diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 00000000..5bc9c641 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,44 @@ +export type Languages = { + EN: 'en'; + AR: 'ar'; +}; + +export type PaymentTypes = { + ALL: 'ALL'; + CARD: 'CARD'; + WEB: 'WEB'; + APPLE_PAY: 'APPLE_PAY'; +}; + +export type AllowedCadTypes = { + CREDIT: 'CREDIT'; + DEBIT: 'DEBIT'; + ALL: 'ALL'; +}; + +export type UiDisplayModes = { + FOLLOW_DEVICE: 'FOLLOW_DEVICE'; + LIGHT: 'LIGHT'; + DARK: 'DARK'; +}; + +export type TrxMode = { + PURCHASE: 'PURCHASE'; + AUTHORIZE_CAPTURE: 'AUTHORIZE_CAPTURE'; + SAVE_CARD: 'SAVE_CARD'; + TOKENIZE_CARD: 'TOKENIZE_CARD'; +}; + +export type SDKMode = { + Sandbox: 'Sandbox'; + Production: 'Production'; +}; + +export type Listener = { + paymentInit: 'paymentInit'; +}; + +export type SDKAppearanceMode = { + Fullscreen: 1; + Windowed: 0; +}; diff --git a/package.json b/package.json index dd473df0..6ce38546 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.52", "description": "React-Native plugin compatible version of goSellSDK library for both Android and iOS that fully covers payment/authorization/card saving/card tokenization process inside your Android application. Original SDKS", "main": "index.js", + "types": "index.d.ts", "author": "Tap Payments", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"