Class: ExpectedPaymentsResource
Orders and invoices a merchant pre-declares so an incoming Paybill/Till payment can be matched to them automatically — the dashboard calls these “Orders & invoices”.
Constructors
Constructor
new ExpectedPaymentsResource(http): ExpectedPaymentsResource;Parameters
http
Returns
ExpectedPaymentsResource
Methods
cancel()
cancel(expectedPaymentId): Promise<void>;Cancels an open order/invoice. Rejected if it’s already settled or cancelled.
Parameters
expectedPaymentId
string
Returns
Promise<void>
create()
create(request): Promise<ExpectedPaymentSummaryDto>;Parameters
request
Returns
Promise<ExpectedPaymentSummaryDto>
get()
get(expectedPaymentId): Promise<ExpectedPaymentDetailDto>;Parameters
expectedPaymentId
string
Returns
Promise<ExpectedPaymentDetailDto>
list()
list(params?): Promise<PaginatedExpectedPaymentsDto>;Parameters
params?
ListExpectedPaymentsParams = {}
Returns
Promise<PaginatedExpectedPaymentsDto>
update()
update(expectedPaymentId, request): Promise<ExpectedPaymentDetailDto>;Corrects the amount on an order/invoice. Rejected once any payment has been linked to it.
Parameters
expectedPaymentId
string
request
Returns
Promise<ExpectedPaymentDetailDto>
Last updated on