@tonder.io/ionic-lite-sdk 0.0.32-beta → 0.0.34-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.
Files changed (40) hide show
  1. package/.gitlab-ci.yml +28 -28
  2. package/README.md +202 -193
  3. package/dist/classes/3dsHandler.d.ts +33 -0
  4. package/dist/classes/liteCheckout.d.ts +16 -6
  5. package/dist/data/api.d.ts +1 -0
  6. package/dist/helpers/constants.d.ts +62 -0
  7. package/dist/helpers/utils.d.ts +8 -0
  8. package/dist/index.js +1 -1
  9. package/dist/types/commons.d.ts +16 -0
  10. package/dist/types/requests.d.ts +14 -2
  11. package/dist/types/responses.d.ts +1 -0
  12. package/jest.config.ts +14 -14
  13. package/package.json +38 -38
  14. package/rollup.config.js +16 -16
  15. package/src/classes/3dsHandler.ts +241 -0
  16. package/src/classes/errorResponse.ts +16 -16
  17. package/src/classes/liteCheckout.ts +521 -462
  18. package/src/data/api.ts +21 -0
  19. package/src/helpers/constants.ts +64 -0
  20. package/src/helpers/utils.ts +315 -12
  21. package/src/index.ts +4 -4
  22. package/src/types/commons.ts +80 -62
  23. package/src/types/requests.ts +105 -89
  24. package/src/types/responses.ts +188 -187
  25. package/src/types/skyflow.ts +17 -17
  26. package/tests/classes/liteCheckout.test.ts +57 -57
  27. package/tests/methods/createOrder.test.ts +142 -142
  28. package/tests/methods/createPayment.test.ts +122 -122
  29. package/tests/methods/customerRegister.test.ts +119 -119
  30. package/tests/methods/getBusiness.test.ts +115 -115
  31. package/tests/methods/getCustomerCards.test.ts +117 -117
  32. package/tests/methods/getOpenpayDeviceSessionID.test.ts +94 -94
  33. package/tests/methods/getSkyflowToken.test.ts +154 -154
  34. package/tests/methods/getVaultToken.test.ts +106 -106
  35. package/tests/methods/registerCustomerCard.test.ts +117 -117
  36. package/tests/methods/startCheckoutRouter.test.ts +119 -119
  37. package/tests/methods/startCheckoutRouterFull.test.ts +138 -138
  38. package/tests/utils/defaultMock.ts +20 -20
  39. package/tests/utils/mockClasses.ts +652 -649
  40. package/tsconfig.json +18 -18
package/tsconfig.json CHANGED
@@ -1,19 +1,19 @@
1
- {
2
- "compilerOptions": {
3
-
4
- /* Language and Environment */
5
- "target": "es2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6
-
7
- /* Modules */
8
- "module": "esnext", /* Specify what module code is generated. */
9
- "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
10
- /* Emit */
11
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
12
- "outDir": "./dist", /* Specify an output folder for all emitted files. */
13
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
14
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
15
- /* Type Checking */
16
- "strict": true,
17
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
18
- }
1
+ {
2
+ "compilerOptions": {
3
+
4
+ /* Language and Environment */
5
+ "target": "es2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6
+
7
+ /* Modules */
8
+ "module": "esnext", /* Specify what module code is generated. */
9
+ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
10
+ /* Emit */
11
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
12
+ "outDir": "./dist", /* Specify an output folder for all emitted files. */
13
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
14
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
15
+ /* Type Checking */
16
+ "strict": true,
17
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
18
+ }
19
19
  }