@tonder.io/ionic-lite-sdk 0.0.35-beta.3 → 0.0.35-beta.30

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 (52) hide show
  1. package/README.md +425 -114
  2. package/dist/classes/BaseInlineCheckout.d.ts +19 -18
  3. package/dist/classes/errorResponse.d.ts +1 -1
  4. package/dist/classes/liteCheckout.d.ts +11 -42
  5. package/dist/data/businessApi.d.ts +1 -1
  6. package/dist/data/cardApi.d.ts +1 -1
  7. package/dist/data/checkoutApi.d.ts +2 -1
  8. package/dist/data/customerApi.d.ts +1 -1
  9. package/dist/data/paymentMethodApi.d.ts +2 -2
  10. package/dist/helpers/skyflow.d.ts +1 -1
  11. package/dist/index.d.ts +3 -1
  12. package/dist/index.js +1 -1
  13. package/dist/types/card.d.ts +1 -0
  14. package/dist/types/checkout.d.ts +2 -1
  15. package/dist/types/commons.d.ts +8 -3
  16. package/dist/types/customer.d.ts +10 -0
  17. package/dist/types/liteInlineCheckout.d.ts +151 -0
  18. package/dist/types/transaction.d.ts +101 -0
  19. package/package.json +3 -1
  20. package/src/classes/BaseInlineCheckout.ts +67 -41
  21. package/src/classes/errorResponse.ts +1 -1
  22. package/src/classes/liteCheckout.ts +49 -87
  23. package/src/data/businessApi.ts +1 -1
  24. package/src/data/cardApi.ts +1 -5
  25. package/src/data/checkoutApi.ts +3 -6
  26. package/src/data/customerApi.ts +1 -1
  27. package/src/data/paymentMethodApi.ts +2 -2
  28. package/src/helpers/skyflow.ts +1 -1
  29. package/src/helpers/utils.ts +1 -1
  30. package/src/index.ts +9 -1
  31. package/src/types/card.ts +1 -0
  32. package/src/types/checkout.ts +2 -1
  33. package/src/types/commons.ts +104 -99
  34. package/src/types/customer.ts +10 -0
  35. package/src/types/liteInlineCheckout.ts +215 -0
  36. package/src/types/transaction.ts +101 -0
  37. package/tests/classes/liteCheckout.test.ts +2 -2
  38. package/tests/methods/createOrder.test.ts +3 -4
  39. package/tests/methods/createPayment.test.ts +2 -3
  40. package/tests/methods/customerRegister.test.ts +3 -4
  41. package/tests/methods/getBusiness.test.ts +2 -3
  42. package/tests/methods/getCustomerCards.test.ts +2 -3
  43. package/tests/methods/registerCustomerCard.test.ts +2 -2
  44. package/tests/methods/startCheckoutRouter.test.ts +2 -2
  45. package/tests/methods/startCheckoutRouterFull.test.ts +2 -2
  46. package/.idea/aws.xml +0 -17
  47. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  48. package/.idea/prettier.xml +0 -6
  49. package/.idea/vcs.xml +0 -6
  50. package/.idea/workspace.xml +0 -128
  51. package/src/types/index.d.ts +0 -10
  52. package/src/types/liteInlineCheckout.d.ts +0 -191
@@ -1,10 +1,9 @@
1
1
  import "../utils/defaultMock";
2
2
  import { LiteCheckout } from "../../src";
3
3
  import { ErrorResponse } from "../../src/classes/errorResponse";
4
- import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
5
- import { IErrorResponse } from "../../src/types/responses";
6
4
  import { constructorFields } from "../utils/defaultMock";
7
5
  import { GetCustomerCardsResponseClass } from "../utils/mockClasses";
6
+ import {IInlineLiteCheckoutOptions} from "../../src/types/commons";
8
7
 
9
8
  declare global {
10
9
  interface Window {
@@ -14,7 +13,7 @@ declare global {
14
13
  }
15
14
 
16
15
  describe("getCustomerCards", () => {
17
- let checkoutConstructor: LiteCheckoutConstructor,
16
+ let checkoutConstructor: IInlineLiteCheckoutOptions,
18
17
  liteCheckout: LiteCheckout,
19
18
  fetchSpy: jest.SpyInstance,
20
19
  liteCheckoutSpy: jest.SpyInstance;
@@ -1,10 +1,10 @@
1
1
  import "../utils/defaultMock";
2
2
  import { LiteCheckout } from "../../src";
3
- import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
4
3
  import { constructorFields } from "../utils/defaultMock";
5
4
  import { RegisterCustomerCardRequestClass, RegisterCustomerCardResponseClass } from "../utils/mockClasses";
6
5
  import { ErrorResponse } from "../../src/classes/errorResponse";
7
6
  import { IErrorResponse } from "../../src/types/responses";
7
+ import {IInlineLiteCheckoutOptions} from "../../src/types/commons";
8
8
 
9
9
  declare global {
10
10
  interface Window {
@@ -14,7 +14,7 @@ declare global {
14
14
  }
15
15
 
16
16
  describe("registerCustomerCard", () => {
17
- let checkoutConstructor: LiteCheckoutConstructor,
17
+ let checkoutConstructor: IInlineLiteCheckoutOptions,
18
18
  liteCheckout: LiteCheckout,
19
19
  fetchSpy: jest.SpyInstance,
20
20
  liteCheckoutSpy: jest.SpyInstance;
@@ -1,10 +1,10 @@
1
1
  import "../utils/defaultMock";
2
2
  import { LiteCheckout } from "../../src";
3
3
  import { ErrorResponse } from "../../src/classes/errorResponse";
4
- import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
5
4
  import { IErrorResponse } from "../../src/types/responses";
6
5
  import { constructorFields } from "../utils/defaultMock";
7
6
  import { StartCheckoutResponseClass, StartCheckoutRequestClass, CreatePaymentRequestClass } from "../utils/mockClasses";
7
+ import {IInlineLiteCheckoutOptions} from "../../src/types/commons";
8
8
 
9
9
  declare global {
10
10
  interface Window {
@@ -14,7 +14,7 @@ declare global {
14
14
  }
15
15
 
16
16
  describe("startCheckoutRouter", () => {
17
- let checkoutConstructor: LiteCheckoutConstructor,
17
+ let checkoutConstructor: IInlineLiteCheckoutOptions,
18
18
  liteCheckout: LiteCheckout,
19
19
  fetchSpy: jest.SpyInstance,
20
20
  liteCheckoutSpy: jest.SpyInstance;
@@ -1,10 +1,10 @@
1
1
  import "../utils/defaultMock";
2
2
  import { LiteCheckout } from "../../src";
3
3
  import { ErrorResponse } from "../../src/classes/errorResponse";
4
- import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
5
4
  import { IErrorResponse } from "../../src/types/responses";
6
5
  import { constructorFields } from "../utils/defaultMock";
7
6
  import { StartCheckoutResponseClass, StartCheckoutFullRequestClass, BusinessClass, CustomerRegisterClass, OrderResponseClass, CreatePaymentResponseClass } from "../utils/mockClasses";
7
+ import {IInlineLiteCheckoutOptions} from "../../src/types/commons";
8
8
 
9
9
  declare global {
10
10
  interface Window {
@@ -14,7 +14,7 @@ declare global {
14
14
  }
15
15
 
16
16
  describe("startCheckoutRouterFull", () => {
17
- let checkoutConstructor: LiteCheckoutConstructor,
17
+ let checkoutConstructor: IInlineLiteCheckoutOptions,
18
18
  liteCheckout: LiteCheckout,
19
19
  fetchSpy: jest.SpyInstance,
20
20
  liteCheckoutSpy: jest.SpyInstance;
package/.idea/aws.xml DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeProfile" value="profile:default" />
5
- <option name="activeRegion" value="us-east-1" />
6
- <option name="recentlyUsedProfiles">
7
- <list>
8
- <option value="profile:default" />
9
- </list>
10
- </option>
11
- <option name="recentlyUsedRegions">
12
- <list>
13
- <option value="us-east-1" />
14
- </list>
15
- </option>
16
- </component>
17
- </project>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- </profile>
6
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="AUTOMATIC" />
5
- </component>
6
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,128 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AutoImportSettings">
4
- <option name="autoReloadType" value="SELECTIVE" />
5
- </component>
6
- <component name="ChangeListManager">
7
- <list default="true" id="49ce0c58-6ae2-4b0a-9ac0-48692c69c15e" name="Changes" comment="">
8
- <change afterPath="$PROJECT_DIR$/.idea/aws.xml" afterDir="false" />
9
- <change afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" afterDir="false" />
10
- <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
11
- <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
12
- <change afterPath="$PROJECT_DIR$/src/classes/BaseInlineCheckout.ts" afterDir="false" />
13
- <change afterPath="$PROJECT_DIR$/src/data/businessApi.ts" afterDir="false" />
14
- <change afterPath="$PROJECT_DIR$/src/data/cardApi.ts" afterDir="false" />
15
- <change afterPath="$PROJECT_DIR$/src/data/checkoutApi.ts" afterDir="false" />
16
- <change afterPath="$PROJECT_DIR$/src/data/customerApi.ts" afterDir="false" />
17
- <change afterPath="$PROJECT_DIR$/src/data/openPayApi.ts" afterDir="false" />
18
- <change afterPath="$PROJECT_DIR$/src/data/paymentMethodApi.ts" afterDir="false" />
19
- <change afterPath="$PROJECT_DIR$/src/data/skyflowApi.ts" afterDir="false" />
20
- <change afterPath="$PROJECT_DIR$/src/helpers/skyflow.ts" afterDir="false" />
21
- <change afterPath="$PROJECT_DIR$/src/helpers/validations.ts" afterDir="false" />
22
- <change afterPath="$PROJECT_DIR$/src/shared/catalog/paymentMethodsCatalog.ts" afterDir="false" />
23
- <change afterPath="$PROJECT_DIR$/src/shared/constants/messages.ts" afterDir="false" />
24
- <change afterPath="$PROJECT_DIR$/src/shared/constants/paymentMethodAPM.ts" afterDir="false" />
25
- <change afterPath="$PROJECT_DIR$/src/shared/constants/tonderUrl.ts" afterDir="false" />
26
- <change afterPath="$PROJECT_DIR$/src/types/card.ts" afterDir="false" />
27
- <change afterPath="$PROJECT_DIR$/src/types/checkout.ts" afterDir="false" />
28
- <change afterPath="$PROJECT_DIR$/src/types/customer.ts" afterDir="false" />
29
- <change afterPath="$PROJECT_DIR$/src/types/index.d.ts" afterDir="false" />
30
- <change afterPath="$PROJECT_DIR$/src/types/liteInlineCheckout.d.ts" afterDir="false" />
31
- <change afterPath="$PROJECT_DIR$/src/types/paymentMethod.ts" afterDir="false" />
32
- <change afterPath="$PROJECT_DIR$/src/types/validations.d.ts" afterDir="false" />
33
- <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
34
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
35
- <change beforePath="$PROJECT_DIR$/src/classes/errorResponse.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/errorResponse.ts" afterDir="false" />
36
- <change beforePath="$PROJECT_DIR$/src/classes/liteCheckout.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/liteCheckout.ts" afterDir="false" />
37
- <change beforePath="$PROJECT_DIR$/src/helpers/mercadopago.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/mercadopago.ts" afterDir="false" />
38
- <change beforePath="$PROJECT_DIR$/src/helpers/utils.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/utils.ts" afterDir="false" />
39
- <change beforePath="$PROJECT_DIR$/src/types/commons.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/commons.ts" afterDir="false" />
40
- <change beforePath="$PROJECT_DIR$/src/types/requests.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/requests.ts" afterDir="false" />
41
- <change beforePath="$PROJECT_DIR$/tests/classes/liteCheckout.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/classes/liteCheckout.test.ts" afterDir="false" />
42
- <change beforePath="$PROJECT_DIR$/tests/methods/getBusiness.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/getBusiness.test.ts" afterDir="false" />
43
- <change beforePath="$PROJECT_DIR$/tests/methods/getCustomerCards.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/getCustomerCards.test.ts" afterDir="false" />
44
- <change beforePath="$PROJECT_DIR$/tests/methods/getOpenpayDeviceSessionID.test.ts" beforeDir="false" />
45
- <change beforePath="$PROJECT_DIR$/tests/methods/getSkyflowToken.test.ts" beforeDir="false" />
46
- <change beforePath="$PROJECT_DIR$/tests/methods/getVaultToken.test.ts" beforeDir="false" />
47
- <change beforePath="$PROJECT_DIR$/tests/utils/defaultMock.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/utils/defaultMock.ts" afterDir="false" />
48
- <change beforePath="$PROJECT_DIR$/tests/utils/mockClasses.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/utils/mockClasses.ts" afterDir="false" />
49
- </list>
50
- <option name="SHOW_DIALOG" value="false" />
51
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
52
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
53
- <option name="LAST_RESOLUTION" value="IGNORE" />
54
- </component>
55
- <component name="Git.Settings">
56
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
57
- </component>
58
- <component name="MarkdownSettingsMigration">
59
- <option name="stateVersion" value="1" />
60
- </component>
61
- <component name="ProjectColorInfo">{
62
- &quot;customColor&quot;: &quot;&quot;,
63
- &quot;associatedIndex&quot;: 1
64
- }</component>
65
- <component name="ProjectId" id="2lFWiEUFmmZczyeFIMfy8VbaFup" />
66
- <component name="ProjectViewState">
67
- <option name="autoscrollFromSource" value="true" />
68
- <option name="autoscrollToSource" value="true" />
69
- <option name="hideEmptyMiddlePackages" value="true" />
70
- <option name="showLibraryContents" value="true" />
71
- </component>
72
- <component name="PropertiesComponent"><![CDATA[{
73
- "keyToString": {
74
- "RunOnceActivity.OpenProjectViewOnStart": "true",
75
- "RunOnceActivity.ShowReadmeOnStart": "true",
76
- "git-widget-placeholder": "main",
77
- "node.js.detected.package.eslint": "true",
78
- "node.js.detected.package.tslint": "true",
79
- "node.js.selected.package.eslint": "(autodetect)",
80
- "node.js.selected.package.tslint": "(autodetect)",
81
- "nodejs_package_manager_path": "npm",
82
- "prettierjs.PrettierConfiguration.Package": "/Users/davidhernandezalmagro/Desktop/Tonder/ionic-lite/node_modules/prettier",
83
- "settings.editor.selected.configurable": "settings.javascript.prettier",
84
- "ts.external.directory.path": "/Users/davidhernandezalmagro/Desktop/Tonder/ionic-lite/node_modules/typescript/lib",
85
- "vue.rearranger.settings.migration": "true"
86
- }
87
- }]]></component>
88
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
89
- <component name="TaskManager">
90
- <task active="true" id="Default" summary="Default task">
91
- <changelist id="49ce0c58-6ae2-4b0a-9ac0-48692c69c15e" name="Changes" comment="" />
92
- <created>1724776429568</created>
93
- <option name="number" value="Default" />
94
- <option name="presentableId" value="Default" />
95
- <updated>1724776429568</updated>
96
- <workItem from="1724776430626" duration="1847000" />
97
- <workItem from="1724790840744" duration="239000" />
98
- <workItem from="1725305433705" duration="18188000" />
99
- </task>
100
- <servers />
101
- </component>
102
- <component name="TypeScriptGeneratedFilesManager">
103
- <option name="version" value="3" />
104
- </component>
105
- <component name="Vcs.Log.Tabs.Properties">
106
- <option name="TAB_STATES">
107
- <map>
108
- <entry key="MAIN">
109
- <value>
110
- <State />
111
- </value>
112
- </entry>
113
- </map>
114
- </option>
115
- </component>
116
- <component name="XDebuggerManager">
117
- <breakpoint-manager>
118
- <breakpoints>
119
- <line-breakpoint enabled="true" type="javascript">
120
- <url>file://$PROJECT_DIR$/src/classes/liteCheckout.ts</url>
121
- <line>221</line>
122
- <properties lambdaOrdinal="-1" />
123
- <option name="timeStamp" value="16" />
124
- </line-breakpoint>
125
- </breakpoints>
126
- </breakpoint-manager>
127
- </component>
128
- </project>
@@ -1,10 +0,0 @@
1
- export * from './card';
2
- export * from './checkout';
3
- export * from './commons';
4
- export * from './customer';
5
- export * from './paymentMethod';
6
- export * from './liteInlineCheckout';
7
- export * from './validations';
8
- export * from './responses';
9
- export * from './requests';
10
-
@@ -1,191 +0,0 @@
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
- import {APM} from "./commons";
7
- import {ErrorResponse} from "../classes/errorResponse";
8
- import {
9
- CreateOrderRequest,
10
- CreatePaymentRequest,
11
- RegisterCustomerCardRequest,
12
- StartCheckoutFullRequest,
13
- StartCheckoutIdRequest,
14
- StartCheckoutRequest, TokensRequest
15
- } from "./requests";
16
- import {
17
- CreateOrderResponse,
18
- CreatePaymentResponse, CustomerRegisterResponse, GetBusinessResponse,
19
- RegisterCustomerCardResponse,
20
- StartCheckoutResponse
21
- } from "./responses";
22
-
23
- export class ILiteInlineCheckout {
24
- constructor(options: IInlineLiteCheckoutOptions);
25
-
26
- /**
27
- * 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.
28
- * @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
29
- * @returns {Promise<void>}.
30
- * @public
31
- */
32
- configureCheckout(data: IConfigureCheckout): void;
33
-
34
- /**
35
- * Initializes and prepares the checkout for use.
36
- * This method set up the initial environment.
37
- * @returns {Promise<void>} A promise that resolves when the checkout has been initialized.
38
- * @throws {Error} If there's any problem during the checkout initialization.
39
- * @public
40
- */
41
- injectCheckout(): Promise<void>;
42
-
43
- /**
44
- * Processes a payment.
45
- * @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
46
- * @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
47
- *
48
- * @throws {Error} Throws an error if the checkout process fails. The error object contains
49
- * additional `details` property with the response from the server if available.
50
- * @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
51
- *
52
- * @public
53
- */
54
- payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
55
-
56
- /**
57
- * Verifies the 3DS transaction status.
58
- * @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
59
- * @public
60
- */
61
- verify3dsTransaction(): Promise<ITransaction | void>;
62
-
63
- /**
64
- * Retrieves the list of cards associated with a customer.
65
- * @returns {Promise<import("../types").ICustomerCardsResponse>} A promise that resolves with the customer's card data.
66
- *
67
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
68
- *
69
- * @public
70
- */
71
- getCustomerCards(): Promise<ICustomerCardsResponse>;
72
-
73
- /**
74
- * Saves a card to a customer's account. This method can be used to add a new card
75
- * or update an existing one.
76
- * @param {import("../types").ISaveCardRequest} card - The card information to be saved.
77
- * @returns {Promise<import("../types").ISaveCardResponse>} A promise that resolves with the saved card data.
78
- *
79
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
80
- *
81
- * @public
82
- */
83
- saveCustomerCard(
84
- card: ISaveCardRequest,
85
- ): Promise<ISaveCardResponse>;
86
-
87
- /**
88
- * Removes a card from a customer's account.
89
- * @param {string} skyflowId - The unique identifier of the card to be deleted.
90
- * @returns {Promise<string>} A promise that resolves when the card is successfully deleted.
91
- *
92
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
93
- *
94
- * @public
95
- */
96
- removeCustomerCard(
97
- skyflowId: string,
98
- ): Promise<string>;
99
-
100
- /**
101
- * Retrieves the list of available Alternative Payment Methods (APMs).
102
- * @returns {Promise<import("../types").IPaymentMethod[]>} A promise that resolves with the list of APMs.
103
- *
104
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
105
- *
106
- * @public
107
- */
108
- getCustomerPaymentMethods(): Promise<IPaymentMethod[]>;
109
-
110
- /**
111
- * Retrieves the business information.
112
- * @returns {Promise<import("../types").GetBusinessResponse>} A promise that resolves with the business information.
113
- *
114
- * @throws {import("../types").IPublicError} Throws an error object if the operation fails.
115
- *
116
- * @public
117
- */
118
- getBusiness(): Promise<GetBusinessResponse>;
119
-
120
-
121
- // TODO: DEPRECATED
122
- /**
123
- * @deprecated This method is deprecated and will be removed in a future release.
124
- * It is no longer necessary to use this method as customer registration is now automatically handled
125
- * during the payment process or when using card management methods.
126
- */
127
- async customerRegister(email: string): Promise<CustomerRegisterResponse | ErrorResponse>
128
-
129
- // TODO: DEPRECATED
130
- /**
131
- * @deprecated This method is deprecated and will be removed in a future release.
132
- * It is no longer necessary to use this method as order creation is now automatically
133
- * handled when making a payment through the `payment` function.
134
- */
135
- async createOrder(orderItems: CreateOrderRequest): Promise<CreateOrderResponse | ErrorResponse>
136
-
137
- // TODO: DEPRECATED
138
- /**
139
- * @deprecated This method is deprecated and will be removed in a future release.
140
- * It is no longer necessary to use this method as payment creation is now automatically
141
- * handled when making a payment through the `payment` function.
142
- */
143
- async createPayment(paymentItems: CreatePaymentRequest): Promise<CreatePaymentResponse | ErrorResponse>
144
-
145
- // TODO: DEPRECATED
146
- /**
147
- * @deprecated This method is deprecated and will be removed in a future release.
148
- * Use the {@link payment} method
149
- */
150
- async startCheckoutRouter(routerData: StartCheckoutRequest | StartCheckoutIdRequest): Promise<StartCheckoutResponse | ErrorResponse | undefined>
151
-
152
- // TODO: DEPRECATED
153
- /**
154
- * @deprecated This method is deprecated and will be removed in a future release.
155
- * Use the {@link payment} method
156
- */
157
- async startCheckoutRouterFull(routerFullData: StartCheckoutFullRequest): Promise<StartCheckoutResponse | ErrorResponse | undefined>
158
-
159
- // TODO: DEPRECATED
160
- /**
161
- * @deprecated This method is deprecated and will be removed in a future release.
162
- * Use the {@link saveCustomerCard} method
163
- */
164
- async registerCustomerCard(customerToken: string, data: RegisterCustomerCardRequest): Promise<RegisterCustomerCardResponse | ErrorResponse>
165
-
166
-
167
- // TODO: DEPRECATED
168
- /**
169
- * @deprecated This method is deprecated and will be removed in a future release.
170
- * Use the {@link removeCustomerCard} method
171
- */
172
- async deleteCustomerCard(customerToken: string, skyflowId: string = ""): Promise<Boolean | ErrorResponse>
173
-
174
- // TODO: DEPRECATED
175
- /**
176
- * @deprecated This method is deprecated and will be removed in a future release.
177
- * Use the {@link getCustomerPaymentMethods} method
178
- */
179
- async getActiveAPMs(): Promise<APM[]>;
180
-
181
- // TODO: DEPRECATED
182
- /**
183
- * @deprecated This method is deprecated and will be removed in a future release.
184
- * It is no longer necessary to use this method as customer registration is now automatically handled
185
- * during the payment process or when using card management methods.
186
- */
187
- async getSkyflowTokens({vault_id, vault_url, data}: TokensRequest): Promise<any | ErrorResponse>
188
- }
189
-
190
-
191
- export interface IInlineLiteCheckoutOptions extends IInlineCheckoutBaseOptions {}