Class PaymentProcessingService
Inheritance
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class PaymentProcessingService : Object, IPaymentProcessingService
Constructors
PaymentProcessingService(IApiService)
Declaration
public PaymentProcessingService(IApiService apiService)
Parameters
Type | Name | Description |
---|---|---|
IApi |
apiService |
Methods
FindPaidPayments(DateTime, DateTime, String)
Gets all Paid payments between begin
and end
dates.
Declaration
public Task<CommissionPayment[]> FindPaidPayments(DateTime begin, DateTime end, string search)
Parameters
Type | Name | Description |
---|---|---|
System. |
begin | Get paid payments after this date. |
System. |
end | Get paid payments before this date. |
System. |
search | Optionally filter by specific Associate |
Returns
Type | Description |
---|---|
System. |
Paid payments found or an empty array. |
GetPaidPaymentByCheckNumber(Int32)
Gets a Paid payment with specified checkNumber
.
Declaration
public Task<CommissionPayment> GetPaidPaymentByCheckNumber(int checkNumber)
Parameters
Type | Name | Description |
---|---|---|
System. |
checkNumber | Check number to look up. |
Returns
Type | Description |
---|---|
System. |
Specified payment. |
Exceptions
Type | Condition |
---|---|
System. |
No record found, or multiple records found. |
GetPaidPaymentByTransactionNumber(String)
Gets a Paid payment with specified transactionNumber
.
Declaration
public Task<CommissionPayment> GetPaidPaymentByTransactionNumber(string transactionNumber)
Parameters
Type | Name | Description |
---|---|---|
System. |
transactionNumber | Transaction number to look up. |
Returns
Type | Description |
---|---|
System. |
Specified payment. |
Exceptions
Type | Condition |
---|---|
System. |
No record found, or multiple records found. |
GetPaidPayments(Int32)
Get all Paid payments to associateId
.
Declaration
public Task<CommissionPayment[]> GetPaidPayments(int associateId)
Parameters
Type | Name | Description |
---|---|---|
System. |
associateId | Associate with payments. |
Returns
Type | Description |
---|---|
System. |
All payments paid to associate, or an empty array. |
GetPayments(Int32, String)
Get all commission payments in batchId
.
Declaration
public Task<CommissionPayment[]> GetPayments(int batchId, string paymentUniqueIdFilter = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
batchId | The batch to get payments for. |
System. |
paymentUniqueIdFilter | Optional to get a specific payment out of the batch. Payment |
Returns
Type | Description |
---|---|
System. |
Commission payments in batch or an empty array. |