UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

128 lines 3.31 kB
import { IShippingOption, WALLET_TYPE } from './../components/param'; export interface IWalletPaymentSuccessful { id: string; amount: number; currency: string; status: string; payer_name?: string; payer_email?: string; payer_phone?: string; } export interface IWalletUnavailable { wallet?: WALLET_TYPE; } export interface IWalletOnClick { attachResult: (result: Promise<void> | boolean) => void; } export interface IWalletUpdate { wallet_response_code?: string; wallet_order_id?: string; wallet_session_id?: string; payment_source?: { wallet_payment_method_id?: string; card_number_last4?: string; card_scheme?: string; }; wallet_loyalty_account?: { id?: string; barcode?: string; }; shipping?: { address_line1?: string; address_line2?: string; address_postcode?: string; address_city?: string; address_state?: string; address_country?: string; address_company?: string; post_office_box_number?: string; wallet_address_id?: string; wallet_address_name?: string; wallet_address_created_timestamp?: string; wallet_address_updated_timestamp?: string; }; selected_shipping_option?: IShippingOption; } export interface IFlypayPaymentSuccessful { transactionId?: string; transactionStatus?: string; transactionType: string; transactionTimestamp?: string; authorizationId?: string; merchantOrderId?: string; addressId?: string; loyaltyAccountId?: string; amount?: number; currencyCode?: string; merchantNumber?: string; storeId?: string; charge?: { status?: string; }; } export interface IFlypayUpdate { responseCode?: string; sessionId?: string; paymentMethodDetails?: { paymentMethodId?: string; lastFourDigitsOfPan?: string; paymentScheme?: string; }; loyaltyAccountSummary?: { loyaltyAccountId?: string; loyaltyAccountBarcode?: string; }; deliveryAddressDetails?: { addressId?: string; addressLine?: string; line1?: string; line2?: string; line3?: string; postOfficeBoxNumber?: string; postalCode?: string; city?: string; state?: string; countryCode?: string; createdTimestamp?: string; updatedTimestamp?: string; name?: string; companyName?: string; }; } interface AfterPayCallBackData { ref_token: string; charge: { status: string; }; } export interface ButtonColor { background: string; color: string; } export interface AfterpayCallback { type: string; data: AfterPayCallBackData; } export interface IPaypalUpdate { orderID: string; paymentID?: string; paymentToken: string; shipping_address: { city?: string; state?: string; postal_code?: string; country_code?: string; }; selected_shipping_option?: { id: string; label: string; selected: boolean; type: 'SHIPPING' | 'PICKUP'; amount: { currency_code: string; value: string; }; }; } export {}; //# sourceMappingURL=interfaces.d.ts.map