UNPKG

@bebapps/rapyd-sdk

Version:

An un-official [Rapyd](https://rapyd.net) SDK for Node.js.

58 lines (57 loc) 1.98 kB
export interface VirtualAccountNumber { /** * ID of the Virtual Account Number object. String starting with **issuing_**. */ id: `issuing_${string}`; /** * The amount of the transaction, in units of the currency defined in `currency`. Decimal. */ amount: number; /** * Describes the type of bank account number, such as IBAN or ABA, and the actual bank account number. */ bank_account: object; /** * The two-letter ISO 3166-1 ALPHA-2 code for the country. Uppercase. * * To determine the code for a country, see [List Countries](ref:list-countries). */ country: string; /** * Currency for the virtual account number or the transaction. Three-letter ISO 4217 code. Uppercase. */ currency: string; /** * Description of the wallet. */ description: string; /** * ID of the wallet that the virtual account number is assigned to. String starting with **ewallet_**. */ ewallet: `ewallet_${string}`; /** * ID of the Virtual Account Number object. String starting with **issuing_**. */ issued_bank_account: `issuing_${string}`; /** * ID of the virtual account, as provided by the merchant. Limited to 45 characters. */ merchant_reference_id: string; /** * A JSON object defined by the client. */ metadata: object; /** * Indicates the status of the virtual account number object. * * **ACT** - active. */ status: string; /** * List of objects that describe individual transactions in the wallet that were done via the virtual account number. Each object has the following fields: * * `id` - ID of the transaction. String starting with **isutran_**. * * `amount` - Amount of the transaction, in units defined in `currency`. * * `currency` - Currency of the transaction. * * `created_at` - Timestamp for the transaction, in [*Unix time*](ref:glossary). */ transactions: ({ id: unknown; amount: unknown; currency: unknown; created_at: unknown })[]; };