Fixed build and made some smaller changes

This commit is contained in:
Jan Oberhauser
2019-12-01 16:15:02 +01:00
parent beccf379a1
commit 20eab17b23
7 changed files with 202 additions and 164 deletions

View File

@@ -0,0 +1,38 @@
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[];
}