yajsapi / Exports / rest/payment / Payment
rest/payment.Payment
Payment
_api
new Payment(cfg
: Configuration): Payment
Parameters:
Name | Type |
| Configuration |
Returns: Payment
Defined in: yajsapi/rest/payment.ts:202
• Private
_api: RequestorApi
Defined in: yajsapi/rest/payment.ts:202
▸ accounts(): AsyncGenerator
Returns: AsyncGenerator
Defined in: yajsapi/rest/payment.ts:278
▸ allocation(allocation_id
: string): Promise<Allocation>
Parameters:
Name | Type |
| string |
Returns: Promise<Allocation>
Defined in: yajsapi/rest/payment.ts:257
▸ allocations(): AsyncGenerator<Allocation, any, unknown>
Returns: AsyncGenerator<Allocation, any, unknown>
Defined in: yajsapi/rest/payment.ts:235
▸ debit_note(debit_note_id
: string): Promise<DebitNote>
Parameters:
Name | Type |
| string |
Returns: Promise<DebitNote>
Defined in: yajsapi/rest/payment.ts:292
▸ decorate_demand(ids
: string[]): Promise
Parameters:
Name | Type |
| string[] |
Returns: Promise
Defined in: yajsapi/rest/payment.ts:285
▸ incoming_debit_notes(cancellationToken
: any): AsyncGenerator<DebitNote, any, unknown>
Parameters:
Name | Type |
| any |
Returns: AsyncGenerator<DebitNote, any, unknown>
Defined in: yajsapi/rest/payment.ts:354
▸ incoming_invoices(cancellationToken
: any): AsyncGenerator<Invoice, any, unknown>
Parameters:
Name | Type |
| any |
Returns: AsyncGenerator<Invoice, any, unknown>
Defined in: yajsapi/rest/payment.ts:315
▸ invoice(invoice_id
: string): Promise<Invoice>
Parameters:
Name | Type |
| string |
Returns: Promise<Invoice>
Defined in: yajsapi/rest/payment.ts:308
▸ invoices(): AsyncGenerator<Invoice, any, unknown>
Returns: AsyncGenerator<Invoice, any, unknown>
Defined in: yajsapi/rest/payment.ts:299
▸ new_allocation(amount
: number, payment_platform
: string, payment_address
: string, expires?
: null | Date, make_deposit?
: boolean): ResourceCtx<Allocation>
Parameters:
Name | Type | Default value |
| number | - |
| string | - |
| string | - |
| null | Date | null |
| boolean | false |
Returns: ResourceCtx<Allocation>
Defined in: yajsapi/rest/payment.ts:208