@tonder.io/ionic-lite-sdk 0.0.35-beta.24 → 0.0.35-beta.25

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/README.md CHANGED
@@ -33,11 +33,11 @@ Add dependencies to the root of the app (index.html)
33
33
 
34
34
  ## Usage
35
35
  LiteCheckout allows you to build a custom checkout interface using Tonder's core functionality
36
- ## Import LiteCheckout class
36
+ ### Import LiteCheckout class
37
37
  ```javascript
38
38
  import { LiteCheckout } from "@tonder.io/ionic-lite-sdk"
39
39
  ```
40
- ## Create instance
40
+ ### Create instance
41
41
 
42
42
  ```javascript
43
43
  const liteCheckout = new LiteCheckout({
@@ -240,7 +240,7 @@ import { LiteCheckout } from "@tonder.io/ionic-lite-sdk";
240
240
  providedIn: "root",
241
241
  })
242
242
  export class TonderService {
243
- private liteCheckout!: LiteCheckout;
243
+ private liteCheckout!: ILiteCheckout;
244
244
 
245
245
  constructor(@Inject(Object) private sdkParameters: IInlineLiteCheckoutOptions) {
246
246
  this.initializeInlineCheckout();
@@ -334,13 +334,14 @@ import { TonderService } from "./tonder.service";
334
334
  export class TonderCheckoutComponent implements OnInit, OnDestroy {
335
335
  loading = false;
336
336
  checkoutData: IProcessPaymentRequest;
337
- paymentForm = new FormGroup({
338
- name: new FormControl('Pedro Paramo'),
339
- cardNumber: new FormControl('4242424242424242'),
340
- month: new FormControl('12'),
341
- expirationYear: new FormControl('28'),
342
- cvv: new FormControl('123')
343
- });
337
+ paymentForm = new FormGroup({
338
+ name: new FormControl('Pedro Paramo'),
339
+ cardNumber: new FormControl('4242424242424242'),
340
+ month: new FormControl('12'),
341
+ expirationYear: new FormControl('28'),
342
+ cvv: new FormControl('123')
343
+ });
344
+
344
345
  constructor(private tonderService: TonderService) {
345
346
  this.checkoutData = {
346
347
  customer: {
@@ -414,7 +415,7 @@ export class TonderCheckoutComponent implements OnInit, OnDestroy {
414
415
 
415
416
  ## Deprecated Fields
416
417
 
417
- The following functions and fields have been deprecated and should no longer be used. Consider using the recommended alternatives:
418
+ The following fields have been deprecated and should no longer be used. Consider using the recommended alternatives:
418
419
 
419
420
  ### `apiKeyTonder` Property
420
421
 
@@ -433,6 +434,8 @@ The following functions and fields have been deprecated and should no longer be
433
434
 
434
435
  ## Deprecated Functions
435
436
 
437
+ The following functions have been deprecated and should no longer be used. Consider using the recommended alternatives:
438
+
436
439
  ### `customerRegister`
437
440
 
438
441
  - **Deprecated Reason:** This function is no longer necessary as registration is now automatically handled during payment processing or when using card management methods.
@@ -475,8 +478,7 @@ The following functions and fields have been deprecated and should no longer be
475
478
 
476
479
  ### General
477
480
 
478
- - Replace `'your-api-key'`, `'http://your-website.com/checkout'`, `returnUrl`, and `paymentData` with your actual values.
479
- - The `paymentData` should be defined according to your specific requirements.
481
+ - Replace `apiKey`, `mode`, `returnUrl` with your actual values.
480
482
  - Remember to use the `configureCheckout` function after creating an instance of `LiteCheckout`. This ensures that functions such as payment processing, saving cards, deleting cards, and others work correctly.
481
483
 
482
484
  ### Script Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.35-beta.24",
3
+ "version": "0.0.35-beta.25",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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,144 +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 beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/src/classes/BaseInlineCheckout.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/BaseInlineCheckout.ts" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/src/classes/errorResponse.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/errorResponse.ts" afterDir="false" />
14
- <change beforePath="$PROJECT_DIR$/src/classes/liteCheckout.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/liteCheckout.ts" afterDir="false" />
15
- <change beforePath="$PROJECT_DIR$/src/data/businessApi.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/data/businessApi.ts" afterDir="false" />
16
- <change beforePath="$PROJECT_DIR$/src/data/cardApi.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/data/cardApi.ts" afterDir="false" />
17
- <change beforePath="$PROJECT_DIR$/src/data/checkoutApi.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/data/checkoutApi.ts" afterDir="false" />
18
- <change beforePath="$PROJECT_DIR$/src/data/customerApi.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/data/customerApi.ts" afterDir="false" />
19
- <change beforePath="$PROJECT_DIR$/src/data/paymentMethodApi.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/data/paymentMethodApi.ts" afterDir="false" />
20
- <change beforePath="$PROJECT_DIR$/src/helpers/skyflow.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/skyflow.ts" afterDir="false" />
21
- <change beforePath="$PROJECT_DIR$/src/helpers/utils.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/utils.ts" afterDir="false" />
22
- <change beforePath="$PROJECT_DIR$/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.ts" afterDir="false" />
23
- <change beforePath="$PROJECT_DIR$/src/types/card.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/card.ts" afterDir="false" />
24
- <change beforePath="$PROJECT_DIR$/src/types/checkout.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/checkout.ts" afterDir="false" />
25
- <change beforePath="$PROJECT_DIR$/src/types/commons.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/commons.ts" afterDir="false" />
26
- <change beforePath="$PROJECT_DIR$/src/types/index.d.ts" beforeDir="false" />
27
- <change beforePath="$PROJECT_DIR$/src/types/liteInlineCheckout.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/liteInlineCheckout.ts" afterDir="false" />
28
- <change beforePath="$PROJECT_DIR$/tests/classes/liteCheckout.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/classes/liteCheckout.test.ts" afterDir="false" />
29
- <change beforePath="$PROJECT_DIR$/tests/methods/createOrder.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/createOrder.test.ts" afterDir="false" />
30
- <change beforePath="$PROJECT_DIR$/tests/methods/createPayment.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/createPayment.test.ts" afterDir="false" />
31
- <change beforePath="$PROJECT_DIR$/tests/methods/customerRegister.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/customerRegister.test.ts" afterDir="false" />
32
- <change beforePath="$PROJECT_DIR$/tests/methods/getBusiness.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/getBusiness.test.ts" afterDir="false" />
33
- <change beforePath="$PROJECT_DIR$/tests/methods/getCustomerCards.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/getCustomerCards.test.ts" afterDir="false" />
34
- <change beforePath="$PROJECT_DIR$/tests/methods/registerCustomerCard.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/registerCustomerCard.test.ts" afterDir="false" />
35
- <change beforePath="$PROJECT_DIR$/tests/methods/startCheckoutRouter.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/startCheckoutRouter.test.ts" afterDir="false" />
36
- <change beforePath="$PROJECT_DIR$/tests/methods/startCheckoutRouterFull.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/methods/startCheckoutRouterFull.test.ts" afterDir="false" />
37
- </list>
38
- <option name="SHOW_DIALOG" value="false" />
39
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
40
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
41
- <option name="LAST_RESOLUTION" value="IGNORE" />
42
- </component>
43
- <component name="Git.Settings">
44
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
45
- </component>
46
- <component name="MarkdownSettingsMigration">
47
- <option name="stateVersion" value="1" />
48
- </component>
49
- <component name="ProjectColorInfo">{
50
- &quot;customColor&quot;: &quot;&quot;,
51
- &quot;associatedIndex&quot;: 1
52
- }</component>
53
- <component name="ProjectId" id="2lFWiEUFmmZczyeFIMfy8VbaFup" />
54
- <component name="ProjectViewState">
55
- <option name="autoscrollFromSource" value="true" />
56
- <option name="autoscrollToSource" value="true" />
57
- <option name="hideEmptyMiddlePackages" value="true" />
58
- <option name="showLibraryContents" value="true" />
59
- </component>
60
- <component name="PropertiesComponent"><![CDATA[{
61
- "keyToString": {
62
- "RunOnceActivity.OpenProjectViewOnStart": "true",
63
- "RunOnceActivity.ShowReadmeOnStart": "true",
64
- "git-widget-placeholder": "main",
65
- "last_opened_file_path": "/Users/davidhernandezalmagro/Desktop/Tonder/ionic-lite/src/types",
66
- "node.js.detected.package.eslint": "true",
67
- "node.js.detected.package.tslint": "true",
68
- "node.js.selected.package.eslint": "(autodetect)",
69
- "node.js.selected.package.tslint": "(autodetect)",
70
- "nodejs_package_manager_path": "npm",
71
- "prettierjs.PrettierConfiguration.Package": "/Users/davidhernandezalmagro/.nvm/versions/node/v21.2.0/lib/node_modules/prettier",
72
- "settings.editor.selected.configurable": "settings.javascript.prettier",
73
- "ts.external.directory.path": "/Users/davidhernandezalmagro/Desktop/Tonder/ionic-lite/node_modules/typescript/lib",
74
- "vue.rearranger.settings.migration": "true"
75
- }
76
- }]]></component>
77
- <component name="RecentsManager">
78
- <key name="CopyFile.RECENT_KEYS">
79
- <recent name="$PROJECT_DIR$/src/types" />
80
- </key>
81
- <key name="MoveFile.RECENT_KEYS">
82
- <recent name="$PROJECT_DIR$/src" />
83
- <recent name="$PROJECT_DIR$" />
84
- </key>
85
- </component>
86
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
87
- <component name="TaskManager">
88
- <task active="true" id="Default" summary="Default task">
89
- <changelist id="49ce0c58-6ae2-4b0a-9ac0-48692c69c15e" name="Changes" comment="" />
90
- <created>1724776429568</created>
91
- <option name="number" value="Default" />
92
- <option name="presentableId" value="Default" />
93
- <updated>1724776429568</updated>
94
- <workItem from="1724776430626" duration="1847000" />
95
- <workItem from="1724790840744" duration="239000" />
96
- <workItem from="1725305433705" duration="21026000" />
97
- <workItem from="1725333899382" duration="2939000" />
98
- <workItem from="1725337022494" duration="3671000" />
99
- <workItem from="1725378545854" duration="22151000" />
100
- </task>
101
- <servers />
102
- </component>
103
- <component name="TypeScriptGeneratedFilesManager">
104
- <option name="version" value="3" />
105
- </component>
106
- <component name="Vcs.Log.Tabs.Properties">
107
- <option name="TAB_STATES">
108
- <map>
109
- <entry key="MAIN">
110
- <value>
111
- <State />
112
- </value>
113
- </entry>
114
- </map>
115
- </option>
116
- </component>
117
- <component name="XDebuggerManager">
118
- <breakpoint-manager>
119
- <breakpoints>
120
- <line-breakpoint enabled="true" type="javascript">
121
- <url>file://$PROJECT_DIR$/src/classes/liteCheckout.ts</url>
122
- <line>218</line>
123
- <option name="timeStamp" value="16" />
124
- </line-breakpoint>
125
- <line-breakpoint enabled="true" type="javascript">
126
- <url>file://$PROJECT_DIR$/src/types/commons.ts</url>
127
- <line>107</line>
128
- <option name="timeStamp" value="17" />
129
- </line-breakpoint>
130
- <line-breakpoint enabled="true" type="javascript">
131
- <url>file://$PROJECT_DIR$/src/classes/liteCheckout.ts</url>
132
- <line>222</line>
133
- <option name="timeStamp" value="18" />
134
- </line-breakpoint>
135
- <line-breakpoint enabled="true" type="javascript">
136
- <url>file://$PROJECT_DIR$/src/classes/liteCheckout.ts</url>
137
- <line>304</line>
138
- <properties lambdaOrdinal="-1" />
139
- <option name="timeStamp" value="21" />
140
- </line-breakpoint>
141
- </breakpoints>
142
- </breakpoint-manager>
143
- </component>
144
- </project>