n8n/packages/nodes-base/nodes/PayPal/PaymentInteface.ts
Jan Oberhauser 785b0e385e 👕 Fix lint issue
2021-01-13 20:20:30 +01:00

39 lines
684 B
TypeScript

import { IDataObject } from 'n8n-workflow';
export enum RecipientType {
email = 'EMAIL',
phone = 'PHONE',
paypalId = 'PAYPAL_ID',
}
export enum RecipientWallet {
paypal = 'PAYPAL',
venmo = 'VENMO',
}
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[];
}