@tonder.io/ionic-lite-sdk 0.0.31-beta → 0.0.33-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 (34) hide show
  1. package/.gitlab-ci.yml +28 -28
  2. package/README.md +202 -592
  3. package/dist/classes/3dsHandler.d.ts +36 -0
  4. package/dist/classes/liteCheckout.d.ts +13 -4
  5. package/dist/index.js +1 -1
  6. package/dist/types/requests.d.ts +3 -0
  7. package/dist/types/responses.d.ts +1 -0
  8. package/jest.config.ts +14 -14
  9. package/package.json +38 -38
  10. package/rollup.config.js +16 -16
  11. package/src/classes/3dsHandler.ts +254 -0
  12. package/src/classes/errorResponse.ts +16 -16
  13. package/src/classes/liteCheckout.ts +535 -462
  14. package/src/helpers/utils.ts +12 -12
  15. package/src/index.ts +4 -4
  16. package/src/types/commons.ts +62 -62
  17. package/src/types/requests.ts +93 -89
  18. package/src/types/responses.ts +188 -187
  19. package/src/types/skyflow.ts +17 -17
  20. package/tests/classes/liteCheckout.test.ts +57 -57
  21. package/tests/methods/createOrder.test.ts +142 -142
  22. package/tests/methods/createPayment.test.ts +122 -122
  23. package/tests/methods/customerRegister.test.ts +119 -119
  24. package/tests/methods/getBusiness.test.ts +115 -115
  25. package/tests/methods/getCustomerCards.test.ts +117 -117
  26. package/tests/methods/getOpenpayDeviceSessionID.test.ts +94 -94
  27. package/tests/methods/getSkyflowToken.test.ts +154 -154
  28. package/tests/methods/getVaultToken.test.ts +106 -106
  29. package/tests/methods/registerCustomerCard.test.ts +117 -117
  30. package/tests/methods/startCheckoutRouter.test.ts +119 -119
  31. package/tests/methods/startCheckoutRouterFull.test.ts +138 -138
  32. package/tests/utils/defaultMock.ts +20 -20
  33. package/tests/utils/mockClasses.ts +651 -649
  34. package/tsconfig.json +18 -18
package/.gitlab-ci.yml CHANGED
@@ -1,29 +1,29 @@
1
- image: grupoapok/awscli:18
2
-
3
- stages:
4
- - test
5
- - deploy
6
-
7
- test:
8
- stage: test
9
- only:
10
- - development
11
- before_script:
12
- - npm install
13
- script:
14
- - npm run test
15
-
16
- deploy:
17
- stage: deploy
18
- only:
19
- - tags
20
- before_script:
21
- - |
22
- {
23
- echo "@tonder.io:registry=https://registry.npmjs.org/"
24
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
25
- } | tee -a .npmrc
26
- script:
27
- - npm install
28
- - npm run build
1
+ image: grupoapok/awscli:18
2
+
3
+ stages:
4
+ - test
5
+ - deploy
6
+
7
+ test:
8
+ stage: test
9
+ only:
10
+ - development
11
+ before_script:
12
+ - npm install
13
+ script:
14
+ - npm run test
15
+
16
+ deploy:
17
+ stage: deploy
18
+ only:
19
+ - tags
20
+ before_script:
21
+ - |
22
+ {
23
+ echo "@tonder.io:registry=https://registry.npmjs.org/"
24
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
25
+ } | tee -a .npmrc
26
+ script:
27
+ - npm install
28
+ - npm run build
29
29
  - npm publish --access=public