UNPKG

tabby-web-sdk

Version:

Web merchant custom implementation for Tabby, the app that lets you split your payments in 4.

61 lines (60 loc) 1.38 kB
export interface Payment { amount: string; currency: "AED"; description: string; buyer: Buyer; shipping_address: ShippingAddress; order: Order; buyer_history: BuyerHistory; order_history: OrderHistory[]; meta: Meta; attachment: Attachment; } export interface Buyer { phone: string; email: string; name: string; dob: string; } export interface ShippingAddress { city: string; address: string; zip: string; } export interface Order { tax_amount: string; shipping_amount: string; discount_amount: string; updated_at: string; reference_id: string; } export interface BuyerHistory { registered_since: string; loyalty_level: number; wishlist_count: number; is_social_networks_connected: boolean; is_phone_number_verified: boolean; is_email_verified: boolean; } export interface OrderHistory { } export interface Meta { order_id: string | null; customer: string | null; } export interface Attachment { body: string; content_type: string; } export interface MerchantUrls { success: string; cancel: string; failure: string; } export interface PaymentRequest { payment: Payment; lang: "ar"; merchant_code: string; merchant_urls: MerchantUrls; token: string | null; }