export interface IAmount { value: number currency: string } export interface IFees { cpa: number amount: IAmount } export interface IAddress { city: string company_name?: string complementary?: string country: string first_name: string label: string last_name: string postcode?: string region?: string street: string } export interface IUser { additional_data?: Object address ?: IAddress addresses?: IAddress[] billing_addresses?: IAddress[] email: string first_name?: string language?: string last_name?: string id?: string phone?: string } export interface ICard { id: string preview: string } export interface IAuthorize { card?: ICard encrypted_card?: string token: string user: { email: string phone: string } } export interface ICreate { amount: IAmount cpa: number label?: string notification_url: string order_id?: string source: 'merchant' user: IUser }