From 380dfc37b45d23766acf98e12c5959eea36b76ff Mon Sep 17 00:00:00 2001 From: Sazvan Date: Wed, 3 Oct 2018 20:59:34 +0200 Subject: [PATCH] Add typings (any typings for now) --- index.d.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..132fde7 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,36 @@ +declare module 'react-native-mobilepay'{ + + //FUNCTIONS + + //setup functions + export function setup(merchantId: any, country: any): any + export function setup(merchantId: any, country: any, merchantUrlScheme: any): any + export function setCaptureType(type: any): any + export function setCountry(type: any): any + + //install check functions + export function isMobilePayInstalledDenmark(): any + export function isMobilePayInstalledNorway(): any + export function isMobilePayInstalledFinland(): any + + //timer/delay functions + export function setTimeoutSeconds(seconds: any): any + export function setReturnSeconds(seconds:any): any + + //create payment function + export function createPayment(orderId: any, amount: any): any + + // -------------------------------------------------------------------------------------- + + //TYPES + + //capture types + export const CAPTURE_TYPE_CAPTURE: any + export const CAPTURE_TYPE_RESERVE: any + + //country constants + export const COUNTRY_DENMARK: any + export const COUNTRY_NORWAY: any + export const COUNTRY_FINLAND: any + +} \ No newline at end of file