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:6


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:9


acceptMaxAmountDebitNoteFilter

▸ acceptMaxAmountDebitNoteFilter(maxAmount): (debitNote: DebitNote) => Promise<boolean>

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

Parameters

NameType
maxAmountnumber

Returns

fn

▸ (debitNote): Promise<boolean>

Parameters
NameType
debitNoteDebitNote
Returns

Promise<boolean>

Defined in

src/payment/strategy.ts:12


acceptMaxAmountInvoiceFilter

▸ acceptMaxAmountInvoiceFilter(maxAmount): (invoice: Invoice) => Promise<boolean>

A custom filter that only accepts invoices below a given value

Parameters

NameType
maxAmountnumber

Returns

fn

▸ (invoice): Promise<boolean>

Parameters
NameType
invoiceInvoice
Returns

Promise<boolean>

Defined in

src/payment/strategy.ts:16