@tonder.io/ionic-full-sdk 0.0.9 → 0.0.10-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.
@@ -1,68 +0,0 @@
1
- import { Card, CollectorIds } from '../helpers/template';
2
- import { LiteCheckout } from '@tonder.io/ionic-lite-sdk';
3
- import { ThreeDSHandler } from './3dsHandler';
4
- import { ErrorResponse } from '@tonder.io/ionic-lite-sdk/dist/classes/errorResponse';
5
- import { Business, PaymentData, OrderItem } from '@tonder.io/ionic-lite-sdk/dist/types/commons';
6
- import { CustomerRegisterResponse } from '@tonder.io/ionic-lite-sdk/dist/types/responses';
7
- import { InCollectorContainer } from '../helpers/skyflow';
8
- export type InlineCheckoutConstructor = {
9
- returnUrl: string;
10
- apiKey: string;
11
- successUrl?: string;
12
- renderPaymentButton: boolean;
13
- callBack?: (params: any) => void;
14
- styles?: any;
15
- containerId?: string;
16
- collectorIds?: CollectorIds;
17
- isOpenPaySandbox?: boolean;
18
- };
19
- export declare class InlineCheckout {
20
- #private;
21
- paymentData: {};
22
- items: never[];
23
- baseUrl: string;
24
- collectContainer: InCollectorContainer | null;
25
- cartTotal?: string | null | number;
26
- apiKeyTonder: string;
27
- returnUrl?: string;
28
- successUrl?: string;
29
- renderPaymentButton: boolean;
30
- callBack: (params: any) => void;
31
- customStyles: any;
32
- abortController: AbortController;
33
- process3ds: ThreeDSHandler;
34
- cb?: () => void;
35
- firstName?: string;
36
- lastName?: string;
37
- country?: string;
38
- address?: string;
39
- city?: string;
40
- state?: string;
41
- postCode?: string;
42
- email?: string;
43
- phone?: string;
44
- merchantData?: Business | ErrorResponse;
45
- cartItems?: any;
46
- injectInterval: any;
47
- containerId: string;
48
- injected: boolean;
49
- cardsInjected: boolean;
50
- collectorIds: CollectorIds;
51
- platforms?: string[];
52
- liteCheckout: LiteCheckout;
53
- clientCards: Card[];
54
- radioChecked: string | null;
55
- fetchingPayment: boolean;
56
- isOpenPaySandbox: boolean;
57
- constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, isOpenPaySandbox }: InlineCheckoutConstructor);
58
- payment(data: any): Promise<unknown>;
59
- setCartItems(items: OrderItem[]): void;
60
- setCustomerEmail(email: string): void;
61
- setPaymentData(data?: PaymentData): void;
62
- setCartTotal(total: string | number): void;
63
- setCallback(cb: any): void;
64
- injectCheckout(): void;
65
- loadCardsList(cards: Card[]): void;
66
- getCustomer(email: string): Promise<ErrorResponse | CustomerRegisterResponse>;
67
- removeCheckout(): void;
68
- }
@@ -1,18 +0,0 @@
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>;
@@ -1,14 +0,0 @@
1
- import CollectElement from "skyflow-js/types/core/external/collect/collect-element";
2
- import { CollectorIds } from "./template";
3
- import CollectorContainer from "skyflow-js/types/core/external/collect/collect-container";
4
- import ComposableContainer from "skyflow-js/types/core/external/collect/compose-collect-container";
5
- import RevealContainer from "skyflow-js/types/core/external/reveal/reveal-container";
6
- import RevealElement from "skyflow-js/types/core/external/reveal/reveal-element";
7
- import ComposableElement from "skyflow-js/types/core/external/collect/compose-collect-element";
8
- export type InCollectorContainer = {
9
- container: CollectorContainer | ComposableContainer | RevealContainer;
10
- elements: {
11
- [index: string]: CollectElement | ComposableElement | RevealElement;
12
- };
13
- };
14
- export declare function initSkyflow(vaultId: string, vaultUrl: string, baseUrl: string, signal: AbortSignal, customStyles: any, collectorIds: CollectorIds, apiKey: string): Promise<InCollectorContainer>;
@@ -1 +0,0 @@
1
- export declare const defaultStyles: any;
@@ -1,21 +0,0 @@
1
- export type CollectorIds = {
2
- holderName: string;
3
- cardNumber: string;
4
- expirationMonth: string;
5
- expirationYear: string;
6
- cvv: string;
7
- tonderPayButton: string;
8
- msgError: string;
9
- msgNotification: string;
10
- cardsListContainer: string;
11
- };
12
- export type Card = {
13
- card_scheme: string;
14
- cardholder_name: string;
15
- card_number: string;
16
- expiration_month: string;
17
- expiration_year: string;
18
- skyflow_id: string;
19
- };
20
- export declare const cardTemplate: (external: boolean, collectorIds: CollectorIds) => string;
21
- export declare const cardItemsTemplate: (external: boolean, cards: Card[]) => string;