tonder-web-sdk 1.16.1 → 1.16.6-beta.DEV-1433.1

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.
Files changed (105) hide show
  1. package/README.md +134 -40
  2. package/package.json +29 -6
  3. package/types/card.d.ts +17 -17
  4. package/types/checkout.d.ts +85 -87
  5. package/types/common.d.ts +8 -2
  6. package/types/customer.d.ts +10 -10
  7. package/types/index.d.ts +9 -11
  8. package/types/inlineCheckout.d.ts +81 -61
  9. package/types/liteInlineCheckout.d.ts +78 -83
  10. package/types/paymentMethod.d.ts +17 -17
  11. package/types/transaction.d.ts +94 -94
  12. package/v1/bundle.min.js +1 -18
  13. package/.env-example +0 -1
  14. package/cypress/e2e/1-getting-started/todo.cy.js +0 -143
  15. package/cypress/e2e/2-advanced-examples/actions.cy.js +0 -299
  16. package/cypress/e2e/2-advanced-examples/aliasing.cy.js +0 -39
  17. package/cypress/e2e/2-advanced-examples/assertions.cy.js +0 -176
  18. package/cypress/e2e/2-advanced-examples/connectors.cy.js +0 -98
  19. package/cypress/e2e/2-advanced-examples/cookies.cy.js +0 -118
  20. package/cypress/e2e/2-advanced-examples/cypress_api.cy.js +0 -185
  21. package/cypress/e2e/2-advanced-examples/files.cy.js +0 -85
  22. package/cypress/e2e/2-advanced-examples/location.cy.js +0 -32
  23. package/cypress/e2e/2-advanced-examples/misc.cy.js +0 -104
  24. package/cypress/e2e/2-advanced-examples/navigation.cy.js +0 -56
  25. package/cypress/e2e/2-advanced-examples/network_requests.cy.js +0 -163
  26. package/cypress/e2e/2-advanced-examples/querying.cy.js +0 -114
  27. package/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js +0 -201
  28. package/cypress/e2e/2-advanced-examples/storage.cy.js +0 -110
  29. package/cypress/e2e/2-advanced-examples/traversal.cy.js +0 -121
  30. package/cypress/e2e/2-advanced-examples/utilities.cy.js +0 -108
  31. package/cypress/e2e/2-advanced-examples/viewport.cy.js +0 -58
  32. package/cypress/e2e/2-advanced-examples/waiting.cy.js +0 -30
  33. package/cypress/e2e/2-advanced-examples/window.cy.js +0 -22
  34. package/cypress/fixtures/example.json +0 -5
  35. package/cypress/support/commands.js +0 -25
  36. package/cypress/support/e2e.js +0 -20
  37. package/cypress.config.js +0 -9
  38. package/index.js.example +0 -50
  39. package/samples/react/README.md +0 -70
  40. package/samples/react/build/asset-manifest.json +0 -16
  41. package/samples/react/build/favicon.ico +0 -0
  42. package/samples/react/build/index.html +0 -1
  43. package/samples/react/build/logo192.png +0 -0
  44. package/samples/react/build/logo512.png +0 -0
  45. package/samples/react/build/manifest.json +0 -25
  46. package/samples/react/build/robots.txt +0 -3
  47. package/samples/react/build/static/css/main.073c9b0a.css +0 -2
  48. package/samples/react/build/static/css/main.073c9b0a.css.map +0 -1
  49. package/samples/react/build/static/js/787.b83ed06f.chunk.js +0 -2
  50. package/samples/react/build/static/js/787.b83ed06f.chunk.js.map +0 -1
  51. package/samples/react/build/static/js/main.0a848807.js +0 -3
  52. package/samples/react/build/static/js/main.0a848807.js.LICENSE.txt +0 -39
  53. package/samples/react/build/static/js/main.0a848807.js.map +0 -1
  54. package/samples/react/build/static/media/sdk-icons.b491623214b2af4cccdb.png +0 -0
  55. package/samples/react/package-lock.json +0 -28973
  56. package/samples/react/package.json +0 -44
  57. package/samples/react/public/favicon.ico +0 -0
  58. package/samples/react/public/index.html +0 -43
  59. package/samples/react/public/logo192.png +0 -0
  60. package/samples/react/public/logo512.png +0 -0
  61. package/samples/react/public/manifest.json +0 -25
  62. package/samples/react/public/robots.txt +0 -3
  63. package/samples/react/src/App.css +0 -38
  64. package/samples/react/src/App.js +0 -22
  65. package/samples/react/src/App.test.js +0 -8
  66. package/samples/react/src/assets/img/sdk-icons.png +0 -0
  67. package/samples/react/src/components/Cart.js +0 -29
  68. package/samples/react/src/components/ProductCard.js +0 -27
  69. package/samples/react/src/context/CartContext.js +0 -116
  70. package/samples/react/src/index.css +0 -13
  71. package/samples/react/src/index.js +0 -17
  72. package/samples/react/src/logo.svg +0 -1
  73. package/samples/react/src/reportWebVitals.js +0 -13
  74. package/samples/react/src/screens/Checkout.js +0 -82
  75. package/samples/react/src/screens/Store.js +0 -21
  76. package/samples/react/src/setupTests.js +0 -5
  77. package/samples/react/src/storeProducts.js +0 -30
  78. package/src/classes/3dsHandler.js +0 -203
  79. package/src/classes/BaseInlineCheckout.js +0 -324
  80. package/src/classes/LiteInlineCheckout.js +0 -220
  81. package/src/classes/checkout.js +0 -125
  82. package/src/classes/globalLoader.js +0 -29
  83. package/src/classes/inlineCheckout.js +0 -515
  84. package/src/data/apmApi.js +0 -44
  85. package/src/data/businessApi.js +0 -19
  86. package/src/data/cardApi.js +0 -143
  87. package/src/data/checkoutApi.js +0 -92
  88. package/src/data/customerApi.js +0 -37
  89. package/src/data/index.js +0 -17
  90. package/src/data/openPayApi.js +0 -16
  91. package/src/data/skyflowApi.js +0 -18
  92. package/src/helpers/skyflow.js +0 -361
  93. package/src/helpers/styles.js +0 -61
  94. package/src/helpers/template-skeleton.js +0 -59
  95. package/src/helpers/template.js +0 -743
  96. package/src/helpers/utils.js +0 -163
  97. package/src/helpers/validations.js +0 -54
  98. package/src/index-dev.js +0 -307
  99. package/src/index.html +0 -172
  100. package/src/index.js +0 -15
  101. package/src/shared/catalog/paymentMethodsCatalog.js +0 -247
  102. package/src/shared/constants/messages.js +0 -10
  103. package/src/shared/constants/paymentMethodAPM.js +0 -63
  104. package/src/shared/constants/tonderUrl.js +0 -8
  105. package/webpack.config.js +0 -77
package/types/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
- export * from './card';
2
- export * from './checkout';
3
- export * from './common';
4
- export * from './customer';
5
- export * from './transaction';
6
- export * from './paymentMethod';
7
- export * from './inlineCheckout';
8
- export * from './liteInlineCheckout';
9
- export * from './validations';
10
-
11
-
1
+ export * from "./card";
2
+ export * from "./checkout";
3
+ export * from "./common";
4
+ export * from "./customer";
5
+ export * from "./transaction";
6
+ export * from "./paymentMethod";
7
+ export * from "./inlineCheckout";
8
+ export * from "./liteInlineCheckout";
9
+ export * from "./validations";
@@ -1,74 +1,94 @@
1
- import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./common";
2
- import {IProcessPaymentRequest, IStartCheckoutResponse} from "./checkout";
3
- import {ITransaction} from "./transaction";
1
+ import { IBaseCallback, IConfigureCheckout, IInlineCheckoutBaseOptions } from "./common";
2
+ import { IProcessPaymentRequest, IStartCheckoutResponse } from "./checkout";
3
+ import { ITransaction } from "./transaction";
4
4
 
5
5
  export class InlineCheckout {
6
- constructor(options: IInlineCheckoutOptions);
6
+ constructor(options: IInlineCheckoutOptions);
7
7
 
8
- /**
9
- * The configureCheckout function allows you to set initial information, such as the customer's email, which is used to retrieve a list of saved cards.
10
- * @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
11
- * @returns {void}.
12
- * @public
13
- */
14
- configureCheckout(data: IConfigureCheckout): void;
8
+ /**
9
+ * The configureCheckout function allows you to set initial information, such as the customer's email, which is used to retrieve a list of saved cards.
10
+ * @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
11
+ * @returns {void}.
12
+ * @public
13
+ */
14
+ configureCheckout(data: IConfigureCheckout): void;
15
15
 
16
- /**
17
- * Injects the checkout into the DOM and initializes it.
18
- * Checks for an existing container and sets up an observer if needed.
19
- * @returns {void}
20
- * @public
21
- */
22
- injectCheckout(): Promise<void>;
16
+ /**
17
+ * Injects the checkout into the DOM and initializes it.
18
+ * Checks for an existing container and sets up an observer if needed.
19
+ * @returns {void}
20
+ * @public
21
+ */
22
+ injectCheckout(): Promise<void>;
23
23
 
24
- /**
25
- * Processes a payment.
26
- * @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
27
- * @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
28
- *
29
- * @throws {Error} Throws an error if the checkout process fails. The error object contains
30
- * additional `details` property with the response from the server if available.
31
- * @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
32
- *
33
- * @public
34
- */
35
- payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
24
+ /**
25
+ * Processes a payment.
26
+ * @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
27
+ * @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
28
+ *
29
+ * @throws {Error} Throws an error if the checkout process fails. The error object contains
30
+ * additional `details` property with the response from the server if available.
31
+ * @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
32
+ *
33
+ * @public
34
+ */
35
+ payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
36
36
 
37
- /**
38
- * Verifies the 3DS transaction status.
39
- * @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
40
- * @public
41
- */
42
- verify3dsTransaction(): Promise<ITransaction | void>;
37
+ /**
38
+ * Verifies the 3DS transaction status.
39
+ * @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
40
+ * @public
41
+ */
42
+ verify3dsTransaction(): Promise<ITransaction | void>;
43
43
 
44
- /**
45
- * Removes the checkout from the DOM and cleans up associated resources.
46
- *
47
- * This method performs the following actions:
48
- * 1. Resets the injection status flags for the checkout, cards, and APMs.
49
- * 2. Aborts any ongoing requests using the AbortController.
50
- * 3. Creates a new AbortController for future use.
51
- * 4. Clears any existing injection intervals.
52
- *
53
- * Note: This method should be called when you want to completely remove
54
- * the checkout from the page and reset its state.
55
- *
56
- * @returns {void}
57
- * @public
58
- */
59
- removeCheckout(): void;
44
+ /**
45
+ * Removes the checkout from the DOM and cleans up associated resources.
46
+ *
47
+ * This method performs the following actions:
48
+ * 1. Resets the injection status flags for the checkout, cards, and APMs.
49
+ * 2. Aborts any ongoing requests using the AbortController.
50
+ * 3. Creates a new AbortController for future use.
51
+ * 4. Clears any existing injection intervals.
52
+ *
53
+ * Note: This method should be called when you want to completely remove
54
+ * the checkout from the page and reset its state.
55
+ *
56
+ * @returns {void}
57
+ * @public
58
+ */
59
+ removeCheckout(): void;
60
60
  }
61
61
 
62
62
  export type CustomizationOptions = {
63
- saveCards?: {
64
- showSaveCardOption?: boolean;
65
- showSaved?: boolean;
66
- autoSave?: boolean;
67
- }
63
+ displayMode?: "light" | "dark";
64
+ saveCards?: {
65
+ showSaveCardOption?: boolean;
66
+ showSaved?: boolean;
67
+ autoSave?: boolean;
68
+ };
69
+ paymentButton?: {
70
+ show?: boolean;
71
+ text?: string;
72
+ showAmount?: boolean;
73
+ };
74
+ cancelButton?: {
75
+ show?: boolean;
76
+ text?: string;
77
+ };
78
+ paymentMethods?: {
79
+ show?: boolean;
80
+ };
81
+ cardForm?: {
82
+ show?: boolean;
83
+ };
84
+ showMessages?: boolean;
85
+ };
86
+ export interface IInlineCallbacks extends IBaseCallback {
87
+ onCancel?: () => Promise<void>;
68
88
  }
69
89
 
70
- export interface IInlineCheckoutOptions extends IInlineCheckoutBaseOptions{
71
- styles?: Record<string, string>;
72
- renderPaymentButton?: boolean;
73
- customization?: CustomizationOptions;
90
+ export interface IInlineCheckoutOptions extends IInlineCheckoutBaseOptions {
91
+ styles?: Record<string, string>;
92
+ customization?: CustomizationOptions;
93
+ callbacks?: IInlineCallbacks;
74
94
  }
@@ -1,96 +1,91 @@
1
- import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./common";
2
- import {ICustomerCardsResponse, ISaveCardRequest, ISaveCardResponse} from "./card";
3
- import {IPaymentMethod} from "./paymentMethod";
4
- import {IProcessPaymentRequest, IStartCheckoutResponse} from "./checkout";
5
- import {ITransaction} from "./transaction";
1
+ import { IConfigureCheckout, IInlineCheckoutBaseOptions } from "./common";
2
+ import { ICustomerCardsResponse, ISaveCardRequest, ISaveCardResponse } from "./card";
3
+ import { IPaymentMethod } from "./paymentMethod";
4
+ import { IProcessPaymentRequest, IStartCheckoutResponse } from "./checkout";
5
+ import { ITransaction } from "./transaction";
6
6
 
7
7
  export class LiteInlineCheckout {
8
- constructor(options: IInlineLiteCheckoutOptions);
8
+ constructor(options: IInlineLiteCheckoutOptions);
9
9
 
10
- /**
11
- * The configureCheckout function allows you to set initial information, such as the customer's email, which is used to retrieve a list of saved cards.
12
- * @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
13
- * @returns {Promise<void>}.
14
- * @public
15
- */
16
- configureCheckout(data: IConfigureCheckout): void;
10
+ /**
11
+ * The configureCheckout function allows you to set initial information, such as the customer's email, which is used to retrieve a list of saved cards.
12
+ * @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
13
+ * @returns {Promise<void>}.
14
+ * @public
15
+ */
16
+ configureCheckout(data: IConfigureCheckout): void;
17
17
 
18
- /**
19
- * Initializes and prepares the checkout for use.
20
- * This method set up the initial environment.
21
- * @returns {Promise<void>} A promise that resolves when the checkout has been initialized.
22
- * @throws {Error} If there's any problem during the checkout initialization.
23
- * @public
24
- */
25
- injectCheckout(): Promise<void>;
18
+ /**
19
+ * Initializes and prepares the checkout for use.
20
+ * This method set up the initial environment.
21
+ * @returns {Promise<void>} A promise that resolves when the checkout has been initialized.
22
+ * @throws {Error} If there's any problem during the checkout initialization.
23
+ * @public
24
+ */
25
+ injectCheckout(): Promise<void>;
26
26
 
27
- /**
28
- * Processes a payment.
29
- * @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
30
- * @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
31
- *
32
- * @throws {Error} Throws an error if the checkout process fails. The error object contains
33
- * additional `details` property with the response from the server if available.
34
- * @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
35
- *
36
- * @public
37
- */
38
- payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
27
+ /**
28
+ * Processes a payment.
29
+ * @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
30
+ * @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
31
+ *
32
+ * @throws {Error} Throws an error if the checkout process fails. The error object contains
33
+ * additional `details` property with the response from the server if available.
34
+ * @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
35
+ *
36
+ * @public
37
+ */
38
+ payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
39
39
 
40
- /**
41
- * Verifies the 3DS transaction status.
42
- * @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
43
- * @public
44
- */
45
- verify3dsTransaction(): Promise<ITransaction | void>;
40
+ /**
41
+ * Verifies the 3DS transaction status.
42
+ * @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
43
+ * @public
44
+ */
45
+ verify3dsTransaction(): Promise<ITransaction | void>;
46
46
 
47
- /**
48
- * Retrieves the list of cards associated with a customer.
49
- * @returns {Promise<import("../types").ICustomerCardsResponse>} A promise that resolves with the customer's card data.
50
- *
51
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
52
- *
53
- * @public
54
- */
55
- getCustomerCards(): Promise<ICustomerCardsResponse>;
47
+ /**
48
+ * Retrieves the list of cards associated with a customer.
49
+ * @returns {Promise<import("../types").ICustomerCardsResponse>} A promise that resolves with the customer's card data.
50
+ *
51
+ * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
52
+ *
53
+ * @public
54
+ */
55
+ getCustomerCards(): Promise<ICustomerCardsResponse>;
56
56
 
57
- /**
58
- * Saves a card to a customer's account. This method can be used to add a new card
59
- * or update an existing one.
60
- * @param {import("../types").ISaveCardRequest} card - The card information to be saved.
61
- * @returns {Promise<import("../types").ISaveCardResponse>} A promise that resolves with the saved card data.
62
- *
63
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
64
- *
65
- * @public
66
- */
67
- saveCustomerCard(
68
- card: ISaveCardRequest,
69
- ): Promise<ISaveCardResponse>;
57
+ /**
58
+ * Saves a card to a customer's account. This method can be used to add a new card
59
+ * or update an existing one.
60
+ * @param {import("../types").ISaveCardRequest} card - The card information to be saved.
61
+ * @returns {Promise<import("../types").ISaveCardResponse>} A promise that resolves with the saved card data.
62
+ *
63
+ * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
64
+ *
65
+ * @public
66
+ */
67
+ saveCustomerCard(card: ISaveCardRequest): Promise<ISaveCardResponse>;
70
68
 
71
- /**
72
- * Removes a card from a customer's account.
73
- * @param {string} skyflowId - The unique identifier of the card to be deleted.
74
- * @returns {Promise<string>} A promise that resolves when the card is successfully deleted.
75
- *
76
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
77
- *
78
- * @public
79
- */
80
- removeCustomerCard(
81
- skyflowId: string,
82
- ): Promise<void>;
69
+ /**
70
+ * Removes a card from a customer's account.
71
+ * @param {string} skyflowId - The unique identifier of the card to be deleted.
72
+ * @returns {Promise<string>} A promise that resolves when the card is successfully deleted.
73
+ *
74
+ * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
75
+ *
76
+ * @public
77
+ */
78
+ removeCustomerCard(skyflowId: string): Promise<void>;
83
79
 
84
- /**
85
- * Retrieves the list of available Alternative Payment Methods (APMs).
86
- * @returns {Promise<import("../types").IPaymentMethod[]>} A promise that resolves with the list of APMs.
87
- *
88
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
89
- *
90
- * @public
91
- */
92
- getCustomerPaymentMethods(): Promise<IPaymentMethod[]>;
80
+ /**
81
+ * Retrieves the list of available Alternative Payment Methods (APMs).
82
+ * @returns {Promise<import("../types").IPaymentMethod[]>} A promise that resolves with the list of APMs.
83
+ *
84
+ * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
85
+ *
86
+ * @public
87
+ */
88
+ getCustomerPaymentMethods(): Promise<IPaymentMethod[]>;
93
89
  }
94
90
 
95
-
96
91
  export interface IInlineLiteCheckoutOptions extends IInlineCheckoutBaseOptions {}
@@ -1,24 +1,24 @@
1
1
  export interface IPaymentMethodResponse {
2
- count: number;
3
- next: string | null;
4
- previous: string | null;
5
- results: ITonderPaymentMethod[];
2
+ count: number;
3
+ next: string | null;
4
+ previous: string | null;
5
+ results: ITonderPaymentMethod[];
6
6
  }
7
7
 
8
8
  export interface ITonderPaymentMethod {
9
- pk: string;
10
- payment_method: string;
11
- priority: number;
12
- category: string;
13
- unavailable_countries: string[];
14
- status: string;
9
+ pk: string;
10
+ payment_method: string;
11
+ priority: number;
12
+ category: string;
13
+ unavailable_countries: string[];
14
+ status: string;
15
15
  }
16
16
 
17
17
  export interface IPaymentMethod {
18
- id: string;
19
- payment_method: string;
20
- priority: number;
21
- category: string;
22
- icon: string;
23
- label: string;
24
- }
18
+ id: string;
19
+ payment_method: string;
20
+ priority: number;
21
+ category: string;
22
+ icon: string;
23
+ label: string;
24
+ }
@@ -1,101 +1,101 @@
1
1
  export interface ITransaction {
2
+ id: number;
3
+ provider: string;
4
+ country: string;
5
+ currency_code: string;
6
+ transaction_status: string;
7
+ created: string;
8
+ modified: string;
9
+ operation_date: string;
10
+ transaction_reference: string;
11
+ transaction_type: string;
12
+ status: string;
13
+ amount: string;
14
+ related_transaction_reference?: null | string;
15
+ reason?: null | string;
16
+ is_refunded?: null | boolean;
17
+ is_disputed?: null | boolean;
18
+ number_of_payment_attempts: number;
19
+ card_brand?: null | string;
20
+ number_of_installments: number;
21
+ payment?: {
2
22
  id: number;
3
- provider: string;
4
- country: string;
5
- currency_code: string;
6
- transaction_status: string;
7
23
  created: string;
8
24
  modified: string;
9
- operation_date: string;
10
- transaction_reference: string;
11
- transaction_type: string;
12
- status: string;
13
25
  amount: string;
14
- related_transaction_reference?: null | string;
15
- reason?: null | string;
16
- is_refunded?: null | boolean;
17
- is_disputed?: null | boolean;
18
- number_of_payment_attempts: number;
19
- card_brand?: null | string;
20
- number_of_installments: number;
21
- payment?: {
22
- id: number;
23
- created: string;
24
- modified: string;
25
- amount: string;
26
- status: string;
27
- date: string;
28
- paid_date: null | string;
29
- source: null | string;
30
- customer_order_reference: null | string;
31
- client: number;
32
- business: number;
33
- shipping_address?: null | string;
34
- billing_address?: null | string;
35
- order: number;
36
- };
37
- checkout: {
38
- id: string;
39
- created: string;
40
- modified: string;
41
- checkout_data: {
42
- name: string;
43
- amount: number;
44
- source: string;
45
- id_ship: string;
46
- currency: string;
47
- order_id: number;
48
- token_id: string;
49
- last_name: string;
50
- id_product: string;
51
- ip_address: string;
52
- payment_id: number;
53
- return_url: string;
54
- title_ship: string;
55
- business_id: number;
56
- checkout_id: string;
57
- description: string;
58
- browser_info: {
59
- language: string;
60
- time_zone: number;
61
- user_agent: string;
62
- color_depth: number;
63
- screen_width: number;
64
- screen_height: number;
65
- javascript_enabled: boolean;
66
- };
67
- email_client: string;
68
- phone_number: string;
69
- instance_id_ship: string;
70
- quantity_product: number;
71
- device_session_id: null | string;
72
- number_of_payment_attempts: number;
73
- };
74
- number_of_payment_attempts: number;
75
- tried_psps: string[];
76
- rejected_transactions: string[];
77
- routing_step: number;
78
- route_length: number;
79
- last_status: string;
80
- ip_address: string;
81
- is_dynamic_routing: boolean;
82
- is_route_finished: boolean;
83
- business: number;
84
- payment: number;
85
- };
86
- currency: {
87
- id: number;
88
- name: string;
89
- code: string;
90
- symbol: string;
91
- country: null | string;
92
- };
93
- payment_method?: null | {
94
- id: number;
95
- name: string;
96
- display_name: string;
97
- category: string;
98
- is_apm: boolean;
26
+ status: string;
27
+ date: string;
28
+ paid_date: null | string;
29
+ source: null | string;
30
+ customer_order_reference: null | string;
31
+ client: number;
32
+ business: number;
33
+ shipping_address?: null | string;
34
+ billing_address?: null | string;
35
+ order: number;
36
+ };
37
+ checkout: {
38
+ id: string;
39
+ created: string;
40
+ modified: string;
41
+ checkout_data: {
42
+ name: string;
43
+ amount: number;
44
+ source: string;
45
+ id_ship: string;
46
+ currency: string;
47
+ order_id: number;
48
+ token_id: string;
49
+ last_name: string;
50
+ id_product: string;
51
+ ip_address: string;
52
+ payment_id: number;
53
+ return_url: string;
54
+ title_ship: string;
55
+ business_id: number;
56
+ checkout_id: string;
57
+ description: string;
58
+ browser_info: {
59
+ language: string;
60
+ time_zone: number;
61
+ user_agent: string;
62
+ color_depth: number;
63
+ screen_width: number;
64
+ screen_height: number;
65
+ javascript_enabled: boolean;
66
+ };
67
+ email_client: string;
68
+ phone_number: string;
69
+ instance_id_ship: string;
70
+ quantity_product: number;
71
+ device_session_id: null | string;
72
+ number_of_payment_attempts: number;
99
73
  };
100
- issuing_country?: null | string;
74
+ number_of_payment_attempts: number;
75
+ tried_psps: string[];
76
+ rejected_transactions: string[];
77
+ routing_step: number;
78
+ route_length: number;
79
+ last_status: string;
80
+ ip_address: string;
81
+ is_dynamic_routing: boolean;
82
+ is_route_finished: boolean;
83
+ business: number;
84
+ payment: number;
85
+ };
86
+ currency: {
87
+ id: number;
88
+ name: string;
89
+ code: string;
90
+ symbol: string;
91
+ country: null | string;
92
+ };
93
+ payment_method?: null | {
94
+ id: number;
95
+ name: string;
96
+ display_name: string;
97
+ category: string;
98
+ is_apm: boolean;
99
+ };
100
+ issuing_country?: null | string;
101
101
  }