UNPKG

@fawry_pay/rn-fawry-pay-registered-sdk

Version:

This is the only official Fawrypay Registered SDK package for React Native

112 lines 3.61 kB
import { NativeEventEmitter } from 'react-native'; export declare function startPayment(addressHierarchy: AddressHierarchy, allow3DPayment: boolean, apiPath: string, baseUrl: string, customerInfo: CustomerInfo, items: BillItems[], lang: FawryLanguages, merchantInfo: MerchantInfo, showLoyaltyContainer: boolean, showTipsView: boolean, showVoucherContainer: boolean, skipReceipt: boolean, beid?: string, branchCode?: string, branchName?: string, scheduledTime?: string, serviceTypeCode?: string, tableId?: number, shippingAddress?: Address): Promise<any>; export declare function openCardsManager(baseUrl: string, lang: FawryLanguages, merchantInfo: MerchantInfo, customerInfo: CustomerInfo): Promise<any>; export declare function openAddressManager(baseUrl: string, lang: FawryLanguages, merchantInfo: MerchantInfo, customerInfo: CustomerInfo, beid: string, addressHierarchy: AddressHierarchy): Promise<any>; export interface BillItems { itemId: string; description: string; quantity: string; price: string; originalPrice: string; width?: string; height?: string; length?: string; weight?: string; variantCode?: string; earningRuleId?: string; imageUrl?: string; specialRequest?: string; tax: number; } export interface MerchantInfo { merchantCode: string; subMerchantCode?: string; merchantSecretCode: string; merchantRefNum: string; } export interface CustomerInfo { customerName: string; customerMobile: string; customerEmail: string; customerProfileId: string; customerCif: string; customerToken: string; } export interface FawryLaunchModel { addressHierarchy: AddressHierarchy; allow3DPayment: boolean; apiPath: string; baseUrl: string; beid: string; branchCode: string; branchName: string; customerInfo: CustomerInfo; items: BillItems[]; lang: FawryLanguages; merchantInfo: MerchantInfo; scheduledTime: string; serviceTypeCode: string; shippingAddress: Address; showLoyaltyContainer: boolean; showTipsView: boolean; showVoucherContainer: boolean; skipReceipt: boolean; tableId: number; } export declare enum FawryLanguages { ENGLISH = "ENGLISH", ARABIC = "ARABIC" } export declare enum AddressHierarchy { MATRIX = "MATRIX", GEOLOCATION = "GEOLOCATION" } export declare class Address { status?: string; apartmentNumber?: string; id?: number; addressType?: AddressType; isDefault?: boolean; area?: Area; street?: Area; governorate?: Area; address?: string; receiverName?: string; city?: Area; buildingNumber?: string; receiverMobile?: string; floorNumber?: string; geolocation?: Geolocation; selected?: boolean; landmark?: string; } export declare class AddressType { namePrimaryLang?: string; id?: string; nameSecondaryLang?: string; code?: string; } export declare class Area { namePrimaryLang?: string; id?: number; nameSecondaryLang?: string; code?: string; } export declare class Geolocation { areaName?: string; cityName?: string; govName?: string; id?: number; latitude?: number; longitude?: number; streetName?: string; } export declare class FawryCallbacks { static FawryEmitter: NativeEventEmitter; static FAWRY_EVENT_PAYMENT_COMPLETED: string; static FAWRY_EVENT_ON_SUCCESS: string; static FAWRY_EVENT_ON_FAIL: string; static FAWRY_EVENT_CARD_MANAGER_FAIL: string; static FAWRY_EVENT_ADDRESS_MANAGER_FAIL: string; } //# sourceMappingURL=index.d.ts.map