assembly-payments
Version:
Assembly Payments API Typescript/Javascript Bindings
76 lines (75 loc) • 2.85 kB
TypeScript
import { Client } from '../client';
import { BillPaymentRequestBody, WalletAccount, SingleUser, WalletAccountBpayDetails, SingleDisbursement, WithdrawRequestBody, WalletAccountNppDetails, DepositRequestBody } from '../types';
declare const _default: (client: Client) => {
/**
* @description Pay a bill by withdrawing funds from a **Wallet Account** to a specified bpay account.
*
* @tags Wallet Accounts
* @name BillPayment
* @summary Pay a Bill
* @request POST:/wallet_accounts/{id}/bill_payment
* @secure
*/
billPayment: (id: string, data: BillPaymentRequestBody) => Promise<SingleDisbursement>;
/**
* @description Show the **User** the **Wallet Account** is associated with using a given `:id`.
*
* @tags Wallet Accounts
* @name ShowWalletAccountUser
* @summary Show Wallet Account User
* @request GET:/wallet_accounts/{id}/users
* @secure
*/
showWalletAccountUser: (id: string) => Promise<SingleUser>;
/**
* @description Withdraw funds from a **Wallet Account** to a specified disbursement account.
*
* @tags Wallet Accounts
* @name WithdrawFunds
* @summary Withdraw Funds
* @request POST:/wallet_accounts/{id}/withdraw
* @secure
*/
withdrawFunds: (id: string, data: WithdrawRequestBody) => Promise<SingleDisbursement>;
/**
* @description Deposit funds to a **Wallet Account** from a specified payment account.
*
* @tags Wallet Accounts
* @name DepositFunds
* @summary Deposit Funds
* @request POST:/wallet_accounts/{id}/deposit
* @secure
*/
depositFunds: (id: string, data: DepositRequestBody) => Promise<SingleDisbursement>;
/**
* @description Show details of a specific **Wallet Account** using a given `:id.`
*
* @tags Wallet Accounts
* @name ShowWalletAccount
* @summary Show Wallet Account
* @request GET:/wallet_accounts/{id}
* @secure
*/
showWalletAccount: (id: string) => Promise<WalletAccount>;
/**
* @description Show NPP details of a specific **Wallet Account** using a given `:id.`
*
* @tags Wallet Accounts
* @name ShowWalletAccountNppDetails
* @summary Show Wallet Account NPP Details
* @request GET:/wallet_accounts/{id}/npp_details
* @secure
*/
showWalletAccountNppDetails: (id: string) => Promise<WalletAccountNppDetails>;
/**
* @description Show BPAY details of a specific **Wallet Account** using a given `:id.`
*
* @tags Wallet Accounts
* @name ShowWalletAccountNbpayDetails
* @summary Show Wallet Account BPAY Details
* @request GET:/wallet_accounts/{id}/bpay_details
* @secure
*/
showWalletAccountNbpayDetails: (id: string) => Promise<WalletAccountBpayDetails>;
};
export default _default;