@tonder.io/ionic-full-sdk 0.0.34-beta → 0.0.36-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.
@@ -16,9 +16,6 @@ export declare class ThreeDSHandler {
16
16
  removeStorageItem(): void;
17
17
  saveVerifyTransactionUrl(): void;
18
18
  saveUrlWithExpiration(url: string): void;
19
- saveCheckoutId(checkoutId: any): void;
20
- removeCheckoutId(): void;
21
- getCurrentCheckoutId(): any;
22
19
  getUrlWithExpiration(): any;
23
20
  removeVerifyTransactionUrl(): void;
24
21
  getVerifyTransactionUrl(): string | null;
@@ -5,6 +5,7 @@ import { ErrorResponse } from '@tonder.io/ionic-lite-sdk/dist/classes/errorRespo
5
5
  import { Business, PaymentData, OrderItem } from '@tonder.io/ionic-lite-sdk/dist/types/commons';
6
6
  import { CustomerRegisterResponse, StartCheckoutResponse } from '@tonder.io/ionic-lite-sdk/dist/types/responses';
7
7
  import { InCollectorContainer } from '../helpers/skyflow';
8
+ import { APM } from '@tonder.io/ionic-lite-sdk/dist/types/commons';
8
9
  export type InlineCheckoutConstructor = {
9
10
  returnUrl: string;
10
11
  apiKey: string;
@@ -17,6 +18,7 @@ export type InlineCheckoutConstructor = {
17
18
  collectorIds?: CollectorIds;
18
19
  isOpenPaySandbox?: boolean;
19
20
  isEnrollmentCard?: boolean;
21
+ mode?: 'production' | 'stage' | 'sandbox' | 'development';
20
22
  };
21
23
  export declare class InlineCheckout {
22
24
  #private;
@@ -50,6 +52,8 @@ export declare class InlineCheckout {
50
52
  containerId: string;
51
53
  injected: boolean;
52
54
  cardsInjected: boolean;
55
+ apmsInjected: boolean;
56
+ apmsData: APM[];
53
57
  collectorIds: CollectorIds;
54
58
  platforms?: string[];
55
59
  liteCheckout: LiteCheckout;
@@ -61,7 +65,8 @@ export declare class InlineCheckout {
61
65
  card: {};
62
66
  currency: string;
63
67
  isEnrollmentCard: boolean;
64
- constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, isOpenPaySandbox, isEnrollmentCard, renderSaveCardButton, }: InlineCheckoutConstructor);
68
+ mode: 'production' | 'stage' | 'sandbox' | 'development';
69
+ constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, isOpenPaySandbox, isEnrollmentCard, renderSaveCardButton, mode, }: InlineCheckoutConstructor);
65
70
  handle3dsRedirect(response: ErrorResponse | StartCheckoutResponse | false | undefined): Promise<false | ErrorResponse | StartCheckoutResponse | undefined>;
66
71
  payment(data: any): Promise<unknown>;
67
72
  setCartItems(items: OrderItem[]): void;
@@ -0,0 +1,62 @@
1
+ declare enum PAYMENT_METHOD {
2
+ SORIANA = "SORIANA",
3
+ OXXO = "OXXO",
4
+ SPEI = "SPEI",
5
+ CODI = "CODI",
6
+ MERCADOPAGO = "MERCADOPAGO",
7
+ PAYPAL = "PAYPAL",
8
+ COMERCIALMEXICANA = "COMERCIALMEXICANA",
9
+ BANCOMER = "BANCOMER",
10
+ WALMART = "WALMART",
11
+ BODEGA = "BODEGA",
12
+ SAMSCLUB = "SAMSCLUB",
13
+ SUPERAMA = "SUPERAMA",
14
+ CALIMAX = "CALIMAX",
15
+ EXTRA = "EXTRA",
16
+ CIRCULOK = "CIRCULOK",
17
+ SEVEN11 = "7ELEVEN",
18
+ TELECOMM = "TELECOMM",
19
+ BANORTE = "BANORTE",
20
+ BENAVIDES = "BENAVIDES",
21
+ DELAHORRO = "DELAHORRO",
22
+ ELASTURIANO = "ELASTURIANO",
23
+ WALDOS = "WALDOS",
24
+ ALSUPER = "ALSUPER",
25
+ KIOSKO = "KIOSKO",
26
+ STAMARIA = "STAMARIA",
27
+ LAMASBARATA = "LAMASBARATA",
28
+ FARMROMA = "FARMROMA",
29
+ FARMUNION = "FARMUNION",
30
+ FARMATODO = "FARMATODO",
31
+ SFDEASIS = "SFDEASIS",
32
+ FARM911 = "FARM911",
33
+ FARMECONOMICAS = "FARMECONOMICAS",
34
+ FARMMEDICITY = "FARMMEDICITY",
35
+ RIANXEIRA = "RIANXEIRA",
36
+ WESTERNUNION = "WESTERNUNION",
37
+ ZONAPAGO = "ZONAPAGO",
38
+ CAJALOSANDES = "CAJALOSANDES",
39
+ CAJAPAITA = "CAJAPAITA",
40
+ CAJASANTA = "CAJASANTA",
41
+ CAJASULLANA = "CAJASULLANA",
42
+ CAJATRUJILLO = "CAJATRUJILLO",
43
+ EDPYME = "EDPYME",
44
+ KASNET = "KASNET",
45
+ NORANDINO = "NORANDINO",
46
+ QAPAQ = "QAPAQ",
47
+ RAIZ = "RAIZ",
48
+ PAYSER = "PAYSER",
49
+ WUNION = "WUNION",
50
+ BANCOCONTINENTAL = "BANCOCONTINENTAL",
51
+ GMONEY = "GMONEY",
52
+ GOPAY = "GOPAY",
53
+ WU = "WU",
54
+ PUNTOSHEY = "PUNTOSHEY",
55
+ AMPM = "AMPM",
56
+ JUMBOMARKET = "JUMBOMARKET",
57
+ SMELPUEBLO = "SMELPUEBLO",
58
+ BAM = "BAM",
59
+ REFACIL = "REFACIL",
60
+ ACYVALORES = "ACYVALORES"
61
+ }
62
+ export { PAYMENT_METHOD };
@@ -11,4 +11,4 @@ export type InCollectorContainer = {
11
11
  [index: string]: CollectElement | ComposableElement | RevealElement;
12
12
  };
13
13
  };
14
- export declare function initSkyflow(vaultId: string, vaultUrl: string, baseUrl: string, signal: AbortSignal, customStyles: any, collectorIds: CollectorIds, apiKey: string): Promise<InCollectorContainer>;
14
+ export declare function initSkyflow(vaultId: string, vaultUrl: string, baseUrl: string, signal: AbortSignal, customStyles: any | undefined, collectorIds: CollectorIds, apiKey: string): Promise<InCollectorContainer>;
@@ -1,3 +1,4 @@
1
+ import { APM } from '@tonder.io/ionic-lite-sdk/dist/types/commons';
1
2
  export type CollectorIds = {
2
3
  holderName: string;
3
4
  cardNumber: string;
@@ -9,6 +10,7 @@ export type CollectorIds = {
9
10
  msgError: string;
10
11
  msgNotification: string;
11
12
  cardsListContainer: string;
13
+ apmsListContainer?: string;
12
14
  };
13
15
  export type Card = {
14
16
  card_scheme: string;
@@ -18,5 +20,8 @@ export type Card = {
18
20
  expiration_year: string;
19
21
  skyflow_id: string;
20
22
  };
21
- export declare const cardTemplate: (external: boolean, collectorIds: CollectorIds, isEnrollmentCard?: boolean) => string;
23
+ export declare const cardTemplate: (external: boolean, collectorIds: CollectorIds, isEnrollmentCard?: boolean, data?: {
24
+ renderPaymentButton?: boolean;
25
+ }) => string;
22
26
  export declare const cardItemsTemplate: (external: boolean, cards: Card[]) => string;
27
+ export declare const apmItemsTemplate: (external: boolean, apms: APM[]) => string;
@@ -27,4 +27,8 @@ export declare const getBrowserInfo: () => {
27
27
  screen_height: number | null;
28
28
  user_agent: string;
29
29
  };
30
+ export declare const getPaymentMethodDetails: (scheme_data: string) => {
31
+ icon: string;
32
+ label: string;
33
+ };
30
34
  export {};