@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.
- package/.gitlab-ci.yml +18 -18
- package/README.md +448 -448
- package/cypress.config.js +9 -9
- package/index.js.example +49 -49
- package/package.json +27 -27
- package/rollup.config.js +14 -14
- package/src/classes/3dsHandler.ts +101 -101
- package/src/classes/checkout.ts +147 -147
- package/src/classes/inlineCheckout.ts +553 -553
- package/src/helpers/skyflow.ts +172 -172
- package/src/helpers/styles.ts +60 -60
- package/src/helpers/template.ts +295 -295
- package/src/helpers/utils.ts +135 -135
- package/src/index-dev.js +120 -120
- package/src/index.html +57 -57
- package/src/index.ts +6 -6
- package/src/types/commons.ts +42 -42
- package/src/types/skyflow.ts +40 -40
- package/tsconfig.json +22 -22
- package/dist/classes/3dsHandler.d.ts +0 -20
- package/dist/classes/checkout.d.ts +0 -39
- package/dist/classes/inlineCheckout.d.ts +0 -68
- package/dist/data/api.d.ts +0 -18
- package/dist/helpers/skyflow.d.ts +0 -14
- package/dist/helpers/styles.d.ts +0 -1
- package/dist/helpers/template.d.ts +0 -21
- package/dist/helpers/utils.d.ts +0 -21
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -1
- package/dist/types/commons-ds.d.ts +0 -40
- package/dist/types/commons.d.ts +0 -40
- package/dist/types/skyflow.d.ts +0 -39
- package/dist/types/skyflow.ds.d.ts +0 -39
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export type Customer = {
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
country: string;
|
|
5
|
-
street: string;
|
|
6
|
-
city: string;
|
|
7
|
-
state: string;
|
|
8
|
-
postCode: string;
|
|
9
|
-
email: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
};
|
|
12
|
-
export type Business = {
|
|
13
|
-
vault_id: string;
|
|
14
|
-
vault_url: string;
|
|
15
|
-
openpay_keys: {
|
|
16
|
-
merchant_id: string;
|
|
17
|
-
public_key: string;
|
|
18
|
-
};
|
|
19
|
-
reference: string;
|
|
20
|
-
business: {
|
|
21
|
-
pk: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export type OrderItem = {
|
|
25
|
-
description: string;
|
|
26
|
-
quantity: number;
|
|
27
|
-
price_unit: number;
|
|
28
|
-
discount: number;
|
|
29
|
-
taxes: number;
|
|
30
|
-
product_reference: number;
|
|
31
|
-
name: string;
|
|
32
|
-
amount_total: number;
|
|
33
|
-
};
|
|
34
|
-
export type PaymentData = {
|
|
35
|
-
customer: Customer;
|
|
36
|
-
cart: {
|
|
37
|
-
total: string | number;
|
|
38
|
-
items: OrderItem[];
|
|
39
|
-
};
|
|
40
|
-
};
|
package/dist/types/commons.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export type Customer = {
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
country: string;
|
|
5
|
-
street: string;
|
|
6
|
-
city: string;
|
|
7
|
-
state: string;
|
|
8
|
-
postCode: string;
|
|
9
|
-
email: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
};
|
|
12
|
-
export type Business = {
|
|
13
|
-
vault_id: string;
|
|
14
|
-
vault_url: string;
|
|
15
|
-
openpay_keys: {
|
|
16
|
-
merchant_id: string;
|
|
17
|
-
public_key: string;
|
|
18
|
-
};
|
|
19
|
-
reference: string;
|
|
20
|
-
business: {
|
|
21
|
-
pk: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export type OrderItem = {
|
|
25
|
-
description: string;
|
|
26
|
-
quantity: number;
|
|
27
|
-
price_unit: number;
|
|
28
|
-
discount: number;
|
|
29
|
-
taxes: number;
|
|
30
|
-
product_reference: number;
|
|
31
|
-
name: string;
|
|
32
|
-
amount_total: number;
|
|
33
|
-
};
|
|
34
|
-
export type PaymentData = {
|
|
35
|
-
customer: Customer;
|
|
36
|
-
cart: {
|
|
37
|
-
total: string | number;
|
|
38
|
-
items: OrderItem[];
|
|
39
|
-
};
|
|
40
|
-
};
|
package/dist/types/skyflow.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
type SkyflowRecord = {
|
|
2
|
-
method: string;
|
|
3
|
-
quorum?: boolean;
|
|
4
|
-
tableName: string;
|
|
5
|
-
fields?: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
ID?: string;
|
|
9
|
-
tokenization?: boolean;
|
|
10
|
-
batchID?: string;
|
|
11
|
-
redaction?: "DEFAULT" | "REDACTED" | "MASKED" | "PLAIN_TEXT";
|
|
12
|
-
downloadURL?: boolean;
|
|
13
|
-
upsert?: string;
|
|
14
|
-
tokens?: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type VaultRequest = {
|
|
19
|
-
records: SkyflowRecord[];
|
|
20
|
-
continueOnError?: boolean;
|
|
21
|
-
byot?: "DISABLE" | "ENABLE" | "ENABLE_STRICT";
|
|
22
|
-
};
|
|
23
|
-
export type TokensRequest = {
|
|
24
|
-
baseUrl: string;
|
|
25
|
-
vault_id: string;
|
|
26
|
-
vault_url: string;
|
|
27
|
-
apiKey: string;
|
|
28
|
-
signal: AbortSignal;
|
|
29
|
-
data: {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export type TokensResponse = {
|
|
34
|
-
vaultID: string;
|
|
35
|
-
responses: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
type SkyflowRecord = {
|
|
2
|
-
method: string;
|
|
3
|
-
quorum?: boolean;
|
|
4
|
-
tableName: string;
|
|
5
|
-
fields?: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
ID?: string;
|
|
9
|
-
tokenization?: boolean;
|
|
10
|
-
batchID?: string;
|
|
11
|
-
redaction?: "DEFAULT" | "REDACTED" | "MASKED" | "PLAIN_TEXT";
|
|
12
|
-
downloadURL?: boolean;
|
|
13
|
-
upsert?: string;
|
|
14
|
-
tokens?: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type VaultRequest = {
|
|
19
|
-
records: SkyflowRecord[];
|
|
20
|
-
continueOnError?: boolean;
|
|
21
|
-
byot?: "DISABLE" | "ENABLE" | "ENABLE_STRICT";
|
|
22
|
-
};
|
|
23
|
-
export type TokensRequest = {
|
|
24
|
-
baseUrl: string;
|
|
25
|
-
vault_id: string;
|
|
26
|
-
vault_url: string;
|
|
27
|
-
apiKey: string;
|
|
28
|
-
signal: AbortSignal;
|
|
29
|
-
data: {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export type TokensResponse = {
|
|
34
|
-
vaultID: string;
|
|
35
|
-
responses: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
export {};
|