assembly-payments
Version:
Assembly Payments API Typescript/Javascript Bindings
38 lines (37 loc) • 1.63 kB
TypeScript
import { Client } from '../client';
import { ListBatchTransactions, SingleBatchTransaction } from '../types';
declare const _default: (client: Client) => {
/**
* @description Retrieve an ordered and paginated list of existing **Batch Transactions**. The list can be filtered by **Account**, **Batch ID**, **Item**, and **Transaction Type**.
*
* @tags Batch Transactions
* @name ListBatchTransactions
* @summary List Batch Transactions
* @request GET:/batch_transactions
* @secure
*/
listBatchTransactions: (params?: {
limit?: number | undefined;
offset?: number | undefined;
account_id?: string | undefined;
batch_id?: string | undefined;
item_id?: string | undefined;
transaction_type?: "payment" | "refund" | "disbursement" | "fee" | "deposit" | "withdrawal" | undefined;
transaction_type_method?: "direct_debit" | "credit_card" | "npp" | "bpay" | "wallet_account_transfer" | "direct_credit" | "wire_transfer" | "misc" | undefined;
direction?: "debit" | "credit" | undefined;
created_before?: string | undefined;
created_after?: string | undefined;
disbursement_bank?: string | undefined;
} | undefined) => Promise<ListBatchTransactions>;
/**
* @description Get a batch transaction using its ID
*
* @tags Batch Transactions
* @name ShowBatchTransaction
* @summary Show Batch Transaction
* @request GET:/batch_transactions/{id}
* @secure
*/
showBatchTransaction: (id: string) => Promise<SingleBatchTransaction>;
};
export default _default;