2023-04-21 04:23:15 -07:00
|
|
|
export const enum RecipientType {
|
2019-11-23 16:36:47 -08:00
|
|
|
email = 'EMAIL',
|
|
|
|
phone = 'PHONE',
|
|
|
|
paypalId = 'PAYPAL_ID',
|
|
|
|
}
|
|
|
|
|
2023-04-21 04:23:15 -07:00
|
|
|
export const enum RecipientWallet {
|
2019-11-23 16:36:47 -08:00
|
|
|
paypal = 'PAYPAL',
|
|
|
|
venmo = 'VENMO',
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAmount {
|
|
|
|
currency?: string;
|
2019-11-26 08:59:27 -08:00
|
|
|
value?: number;
|
2019-11-23 16:36:47 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ISenderBatchHeader {
|
|
|
|
sender_batch_id?: string;
|
|
|
|
email_subject?: string;
|
|
|
|
email_message?: string;
|
|
|
|
note?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IItem {
|
|
|
|
recipient_type?: RecipientType;
|
|
|
|
amount?: IAmount;
|
|
|
|
note?: string;
|
|
|
|
receiver?: string;
|
|
|
|
sender_item_id?: string;
|
|
|
|
recipient_wallet?: RecipientWallet;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPaymentBatch {
|
|
|
|
sender_batch_header?: ISenderBatchHeader;
|
|
|
|
items?: IItem[];
|
|
|
|
}
|