@tonder.io/ionic-full-sdk 0.0.11-beta → 0.0.12-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cypress.config.js CHANGED
@@ -1,9 +1,9 @@
1
- const { defineConfig } = require("cypress");
2
-
3
- module.exports = defineConfig({
4
- e2e: {
5
- setupNodeEvents(on, config) {
6
- // implement node event listeners here
7
- },
8
- },
9
- });
1
+ const { defineConfig } = require("cypress");
2
+
3
+ module.exports = defineConfig({
4
+ e2e: {
5
+ setupNodeEvents(on, config) {
6
+ // implement node event listeners here
7
+ },
8
+ },
9
+ });
@@ -62,7 +62,7 @@ export declare class InlineCheckout {
62
62
  setCartTotal(total: string | number): void;
63
63
  setCallback(cb: any): void;
64
64
  injectCheckout(): void;
65
- loadCardsList(cards: Card[]): void;
65
+ loadCardsList(cards: Card[], token: string): void;
66
66
  getCustomer(email: string): Promise<ErrorResponse | CustomerRegisterResponse>;
67
67
  removeCheckout(): void;
68
68
  }
@@ -0,0 +1,18 @@
1
+ declare global {
2
+ interface Window {
3
+ OpenPay: any;
4
+ }
5
+ }
6
+ export declare function getOpenpayDeviceSessionID(merchant_id: string, public_key: string, signal: AbortSignal): Promise<any>;
7
+ export declare function getBusiness(baseUrlTonder: string, signal: AbortSignal, apiKeyTonder?: string): Promise<any>;
8
+ export declare function customerRegister(baseUrlTonder: string, email: string, signal: AbortSignal, apiKeyTonder?: string): Promise<any>;
9
+ export declare function createOrder(baseUrlTonder: string, orderItems: any, apiKeyTonder?: string): Promise<any>;
10
+ export declare function createPayment(baseUrlTonder: string, paymentItems: {
11
+ business_pk: string;
12
+ }, apiKeyTonder?: string): Promise<any>;
13
+ export declare function startCheckoutRouter(baseUrlTonder: string, routerItems: any, apiKeyTonder?: string): Promise<any>;
14
+ export declare function getVaultToken({ baseUrl, apiKey, signal }: {
15
+ baseUrl: string;
16
+ apiKey: string;
17
+ signal: AbortSignal;
18
+ }): Promise<any>;