@tonder.io/ionic-lite-sdk 0.0.35-beta.8 → 0.0.37-beta.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.
- package/.gitlab-ci.yml +28 -28
- package/README.md +532 -202
- package/dist/classes/BaseInlineCheckout.d.ts +21 -19
- package/dist/classes/errorResponse.d.ts +1 -1
- package/dist/classes/liteCheckout.d.ts +15 -43
- package/dist/data/api.d.ts +1 -1
- package/dist/data/businessApi.d.ts +1 -1
- package/dist/data/cardApi.d.ts +1 -1
- package/dist/data/checkoutApi.d.ts +2 -1
- package/dist/data/customerApi.d.ts +1 -1
- package/dist/data/paymentMethodApi.d.ts +2 -2
- package/dist/helpers/skyflow.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/types/card.d.ts +1 -0
- package/dist/types/checkout.d.ts +7 -1
- package/dist/types/commons.d.ts +8 -3
- package/dist/types/customer.d.ts +10 -0
- package/{src → dist}/types/liteInlineCheckout.d.ts +33 -73
- package/dist/types/responses.d.ts +3 -0
- package/jest.config.ts +14 -14
- package/package.json +41 -38
- package/rollup.config.js +16 -16
- package/src/classes/3dsHandler.ts +237 -237
- package/src/classes/BaseInlineCheckout.ts +385 -356
- package/src/classes/errorResponse.ts +16 -16
- package/src/classes/liteCheckout.ts +588 -598
- package/src/data/api.ts +20 -20
- package/src/data/businessApi.ts +18 -18
- package/src/data/cardApi.ts +85 -89
- package/src/data/checkoutApi.ts +84 -87
- package/src/data/customerApi.ts +31 -31
- package/src/data/openPayApi.ts +12 -12
- package/src/data/paymentMethodApi.ts +37 -37
- package/src/data/skyflowApi.ts +20 -20
- package/src/helpers/constants.ts +63 -63
- package/src/helpers/mercadopago.ts +15 -15
- package/src/helpers/skyflow.ts +91 -91
- package/src/helpers/utils.ts +120 -120
- package/src/helpers/validations.ts +55 -55
- package/src/index.ts +12 -10
- package/src/shared/catalog/paymentMethodsCatalog.ts +247 -247
- package/src/shared/constants/messages.ts +10 -10
- package/src/shared/constants/paymentMethodAPM.ts +63 -63
- package/src/shared/constants/tonderUrl.ts +8 -8
- package/src/types/card.ts +35 -34
- package/src/types/checkout.ts +123 -117
- package/src/types/commons.ts +130 -125
- package/src/types/customer.ts +22 -12
- package/src/types/liteInlineCheckout.ts +216 -0
- package/src/types/paymentMethod.ts +23 -23
- package/src/types/requests.ts +114 -114
- package/src/types/responses.ts +193 -189
- package/src/types/skyflow.ts +17 -17
- package/src/types/transaction.ts +101 -101
- package/src/types/validations.d.ts +11 -11
- package/tests/classes/liteCheckout.test.ts +57 -57
- package/tests/methods/createOrder.test.ts +141 -142
- package/tests/methods/createPayment.test.ts +121 -122
- package/tests/methods/customerRegister.test.ts +118 -119
- package/tests/methods/getBusiness.test.ts +114 -115
- package/tests/methods/getCustomerCards.test.ts +112 -113
- package/tests/methods/registerCustomerCard.test.ts +117 -117
- package/tests/methods/startCheckoutRouter.test.ts +119 -119
- package/tests/methods/startCheckoutRouterFull.test.ts +138 -138
- package/tests/utils/defaultMock.ts +21 -21
- package/tests/utils/mockClasses.ts +659 -659
- package/tsconfig.json +18 -18
- package/types/classes/liteCheckout.d.ts +29 -0
- package/types/classes/liteCheckout.js +225 -0
- package/types/classes/liteCheckout.js.map +1 -0
- package/types/helpers/utils.d.ts +3 -0
- package/types/helpers/utils.js +27 -0
- package/types/helpers/utils.js.map +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.js +6 -0
- package/types/index.js.map +1 -0
- package/.idea/aws.xml +0 -17
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -133
- package/src/types/index.d.ts +0 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export class ErrorResponse implements IErrorResponse {
|
|
4
|
-
code?: string | undefined;
|
|
5
|
-
body?: string | undefined;
|
|
6
|
-
name!: string;
|
|
7
|
-
message!: string;
|
|
8
|
-
stack?: string | undefined;
|
|
9
|
-
|
|
10
|
-
constructor({ code, body, name, message, stack }: IErrorResponse) {
|
|
11
|
-
this.code = code;
|
|
12
|
-
this.body = body;
|
|
13
|
-
this.name = name;
|
|
14
|
-
this.message = message;
|
|
15
|
-
this.stack = stack;
|
|
16
|
-
}
|
|
1
|
+
import {IErrorResponse} from "../types/responses";
|
|
2
|
+
|
|
3
|
+
export class ErrorResponse implements IErrorResponse {
|
|
4
|
+
code?: string | undefined;
|
|
5
|
+
body?: string | undefined;
|
|
6
|
+
name!: string;
|
|
7
|
+
message!: string;
|
|
8
|
+
stack?: string | undefined;
|
|
9
|
+
|
|
10
|
+
constructor({ code, body, name, message, stack }: IErrorResponse) {
|
|
11
|
+
this.code = code;
|
|
12
|
+
this.body = body;
|
|
13
|
+
this.name = name;
|
|
14
|
+
this.message = message;
|
|
15
|
+
this.stack = stack;
|
|
16
|
+
}
|
|
17
17
|
}
|