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
: DebitNote
) => 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 | DebitNote |
Returns
Promise
<boolean
>
Defined in
acceptMaxAmountInvoiceFilter
▸ acceptMaxAmountInvoiceFilter(maxAmount
): (invoice
: Invoice
) => 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 | Invoice |
Returns
Promise
<boolean
>
Defined in
Was this helpful?