@tonder.io/ionic-lite-sdk 0.0.35-beta.4 → 0.0.35-beta.6
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/.idea/workspace.xml +4 -8
- package/dist/{src/classes → classes}/BaseInlineCheckout.d.ts +1 -1
- package/dist/{src/classes → classes}/errorResponse.d.ts +1 -1
- package/dist/{src/classes → classes}/liteCheckout.d.ts +2 -3
- package/dist/{src/data → data}/businessApi.d.ts +1 -1
- package/dist/{src/data → data}/cardApi.d.ts +1 -1
- package/dist/{src/data → data}/checkoutApi.d.ts +1 -1
- package/dist/{src/data → data}/customerApi.d.ts +1 -1
- package/dist/{src/data → data}/paymentMethodApi.d.ts +1 -1
- package/dist/{src/helpers → helpers}/skyflow.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/classes/BaseInlineCheckout.ts +1 -1
- package/src/classes/errorResponse.ts +1 -1
- package/src/classes/liteCheckout.ts +2 -7
- package/src/data/businessApi.ts +1 -1
- package/src/data/cardApi.ts +1 -1
- package/src/data/checkoutApi.ts +1 -1
- package/src/data/customerApi.ts +1 -1
- package/src/data/paymentMethodApi.ts +1 -1
- package/src/helpers/skyflow.ts +1 -1
- package/src/helpers/utils.ts +1 -1
- package/src/types/card.ts +34 -0
- package/src/types/checkout.ts +118 -0
- package/src/types/commons.ts +125 -0
- package/src/types/customer.ts +12 -0
- package/src/types/index.d.ts +10 -0
- package/src/types/liteInlineCheckout.d.ts +191 -0
- package/src/types/paymentMethod.ts +24 -0
- package/src/types/requests.ts +115 -0
- package/src/types/responses.ts +189 -0
- package/src/types/skyflow.ts +17 -0
- package/src/types/validations.d.ts +11 -0
- package/tests/methods/createOrder.test.ts +1 -1
- package/tests/methods/createPayment.test.ts +1 -1
- package/tests/methods/customerRegister.test.ts +1 -1
- package/tests/methods/getBusiness.test.ts +1 -1
- package/tests/methods/getCustomerCards.test.ts +1 -1
- package/tests/methods/registerCustomerCard.test.ts +1 -1
- package/tests/methods/startCheckoutRouter.test.ts +1 -1
- package/tests/methods/startCheckoutRouterFull.test.ts +1 -1
- package/tests/utils/mockClasses.ts +3 -3
- /package/dist/{src/classes → classes}/3dsHandler.d.ts +0 -0
- /package/dist/{src/data → data}/api.d.ts +0 -0
- /package/dist/{src/data → data}/openPayApi.d.ts +0 -0
- /package/dist/{src/data → data}/skyflowApi.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/constants.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/mercadopago.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/utils.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/validations.d.ts +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/shared → shared}/catalog/paymentMethodsCatalog.d.ts +0 -0
- /package/dist/{src/shared → shared}/constants/messages.d.ts +0 -0
- /package/dist/{src/shared → shared}/constants/paymentMethodAPM.d.ts +0 -0
- /package/dist/{src/shared → shared}/constants/tonderUrl.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import "../utils/defaultMock";
|
|
|
2
2
|
import { LiteCheckout } from "../../src";
|
|
3
3
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
4
4
|
import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
5
|
-
import { IErrorResponse } from "../../types/responses";
|
|
5
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
6
6
|
import { constructorFields } from "../utils/defaultMock";
|
|
7
7
|
import { CreatePaymentResponseClass, CreatePaymentRequestClass } from "../utils/mockClasses";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import "../utils/defaultMock";
|
|
|
2
2
|
import { LiteCheckout } from "../../src";
|
|
3
3
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
4
4
|
import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
5
|
-
import { IErrorResponse } from "../../types/responses";
|
|
5
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
6
6
|
import { constructorFields } from "../utils/defaultMock";
|
|
7
7
|
import { BusinessClass, CustomerRegisterClass } from "../utils/mockClasses";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import "../utils/defaultMock";
|
|
|
2
2
|
import { LiteCheckout } from "../../src";
|
|
3
3
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
4
4
|
import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
5
|
-
import { IErrorResponse } from "../../types/responses";
|
|
5
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
6
6
|
import { constructorFields } from "../utils/defaultMock";
|
|
7
7
|
import { BusinessClass } from "../utils/mockClasses";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import "../utils/defaultMock";
|
|
|
2
2
|
import { LiteCheckout } from "../../src";
|
|
3
3
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
4
4
|
import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
5
|
-
import { IErrorResponse } from "../../types/responses";
|
|
5
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
6
6
|
import { constructorFields } from "../utils/defaultMock";
|
|
7
7
|
import { GetCustomerCardsResponseClass } from "../utils/mockClasses";
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
|
4
4
|
import { constructorFields } from "../utils/defaultMock";
|
|
5
5
|
import { RegisterCustomerCardRequestClass, RegisterCustomerCardResponseClass } from "../utils/mockClasses";
|
|
6
6
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
7
|
-
import { IErrorResponse } from "../../types/responses";
|
|
7
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
8
8
|
|
|
9
9
|
declare global {
|
|
10
10
|
interface Window {
|
|
@@ -2,7 +2,7 @@ import "../utils/defaultMock";
|
|
|
2
2
|
import { LiteCheckout } from "../../src";
|
|
3
3
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
4
4
|
import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
5
|
-
import { IErrorResponse } from "../../types/responses";
|
|
5
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
6
6
|
import { constructorFields } from "../utils/defaultMock";
|
|
7
7
|
import { StartCheckoutResponseClass, StartCheckoutRequestClass, CreatePaymentRequestClass } from "../utils/mockClasses";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import "../utils/defaultMock";
|
|
|
2
2
|
import { LiteCheckout } from "../../src";
|
|
3
3
|
import { ErrorResponse } from "../../src/classes/errorResponse";
|
|
4
4
|
import { LiteCheckoutConstructor } from "../../src/classes/liteCheckout";
|
|
5
|
-
import { IErrorResponse } from "../../types/responses";
|
|
5
|
+
import { IErrorResponse } from "../../src/types/responses";
|
|
6
6
|
import { constructorFields } from "../utils/defaultMock";
|
|
7
7
|
import { StartCheckoutResponseClass, StartCheckoutFullRequestClass, BusinessClass, CustomerRegisterClass, OrderResponseClass, CreatePaymentResponseClass } from "../utils/mockClasses";
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Business, OrderItem } from "../../types/commons";
|
|
1
|
+
import { Business, OrderItem } from "../../src/types/commons";
|
|
2
2
|
import {
|
|
3
3
|
CreateOrderRequest,
|
|
4
4
|
CreatePaymentRequest,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
StartCheckoutRequest,
|
|
7
7
|
StartCheckoutFullRequest,
|
|
8
8
|
StartCheckoutRequestWithCard, TokensSkyflowRequest
|
|
9
|
-
} from "../../types/requests";
|
|
9
|
+
} from "../../src/types/requests";
|
|
10
10
|
import {
|
|
11
11
|
CreateOrderResponse,
|
|
12
12
|
CreatePaymentResponse,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
RegisterCustomerCardResponse,
|
|
16
16
|
StartCheckoutResponse,
|
|
17
17
|
CustomerRegisterResponse
|
|
18
|
-
} from "../../types/responses";
|
|
18
|
+
} from "../../src/types/responses";
|
|
19
19
|
|
|
20
20
|
export class BusinessClass implements Business {
|
|
21
21
|
business!: {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|