airtm-bulk-payments
TypeScript icon, indicating that this package has built-in type declarations

1.0.31 • Public • Published

Airtm Bulk Payments

this library

  • Allows create bulk_payments and bulk_payment_items, for backoffice-mightyena and payments-kecleon projects
  • Allows start serveral @airlibs/message-store process for each bulk_payment_items of an bulk_payments id

Usage

Signature:

export interface PaymentType {
    amount: number;
    currency: string;
    internal_note: string;
    note: string;
    receiver_email: string;
    sender_email: string;
}

export interface RequestFileType {
    name: string;
    path: string;
    size: number;
    type: string;
}
...
createPaymentAndItems({ db, userId, payments, file }: { db: Database, userId: string, payments: PaymentType[], file?: RequestFileType }): Promise<object>
startBulkPaymentAndItems({ db, paymentId, token }: { db: Database, paymentId: string, token: string }): Promise<object>

Import the functions into your code

import { createPaymentAndItems, startBulkPaymentAndItems } from '@airtm/bulk-payments';

Readme

Keywords

none

Package Sidebar

Install

npm i airtm-bulk-payments

Weekly Downloads

1

Version

1.0.31

License

UNLICENSED

Unpacked Size

29.8 kB

Total Files

24

Last publish

Collaborators

  • bichocj