JS API Reference

Module: payment/strategy

Table of contents

Functions

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

src/payment/strategy.ts:5


acceptAllInvoicesFilter

acceptAllInvoicesFilter(): () => Promise<boolean>

Default Invoices filter that accept all invoices without any validation

Returns

fn

▸ (): Promise<boolean>

Returns

Promise<boolean>

Defined in

src/payment/strategy.ts:7


acceptMaxAmountDebitNoteFilter

acceptMaxAmountDebitNoteFilter(maxAmount): (debitNote: DebitNoteDTO) => Promise<boolean>

A custom filter that only accepts debit notes below a given value

Parameters

NameType
maxAmountnumber

Returns

fn

▸ (debitNote): Promise<boolean>

Parameters
NameType
debitNoteDebitNoteDTO
Returns

Promise<boolean>

Defined in

src/payment/strategy.ts:10


acceptMaxAmountInvoiceFilter

acceptMaxAmountInvoiceFilter(maxAmount): (invoice: InvoiceDTO) => Promise<boolean>

A custom filter that only accepts invoices below a given value

Parameters

NameType
maxAmountnumber

Returns

fn

▸ (invoice): Promise<boolean>

Parameters
NameType
invoiceInvoiceDTO
Returns

Promise<boolean>

Defined in

src/payment/strategy.ts:14