JS API Reference
Module: payment/strategy
Table of contents
Functions
- acceptAllDebitNotesFilter
- acceptAllInvoicesFilter
- acceptMaxAmountDebitNoteFilter
- acceptMaxAmountInvoiceFilter
Functions
acceptAllDebitNotesFilter
▸ acceptAllDebitNotesFilter(): () => Promise
<boolean
>
Default DebitNotes filter that accept all debit notes without any validation
Returns
fn
▸ (): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
acceptAllInvoicesFilter
▸ acceptAllInvoicesFilter(): () => Promise
<boolean
>
Default Invoices filter that accept all invoices without any validation
Returns
fn
▸ (): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
acceptMaxAmountDebitNoteFilter
▸ acceptMaxAmountDebitNoteFilter(maxAmount
): (debitNote
: DebitNoteDTO
) => Promise
<boolean
>
A custom filter that only accepts debit notes below a given value
Parameters
Name | Type |
---|---|
maxAmount | number |
Returns
fn
▸ (debitNote
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
debitNote | DebitNoteDTO |
Returns
Promise
<boolean
>
Defined in
acceptMaxAmountInvoiceFilter
▸ acceptMaxAmountInvoiceFilter(maxAmount
): (invoice
: InvoiceDTO
) => Promise
<boolean
>
A custom filter that only accepts invoices below a given value
Parameters
Name | Type |
---|---|
maxAmount | number |
Returns
fn
▸ (invoice
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
invoice | InvoiceDTO |
Returns
Promise
<boolean
>