mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
41 lines
834 B
TypeScript
41 lines
834 B
TypeScript
export const RecipientTypes = {
|
|
email: 'EMAIL',
|
|
phone: 'PHONE',
|
|
paypalId: 'PAYPAL_ID',
|
|
} as const;
|
|
|
|
export type RecipientType = (typeof RecipientTypes)[keyof typeof RecipientTypes];
|
|
|
|
export const RecipientWallets = {
|
|
paypal: 'PAYPAL',
|
|
venmo: 'VENMO',
|
|
} as const;
|
|
|
|
export type RecipientWallet = (typeof RecipientWallets)[keyof typeof RecipientWallets];
|
|
|
|
export interface IAmount {
|
|
currency?: string;
|
|
value?: number;
|
|
}
|
|
|
|
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[];
|
|
}
|