@tonder.io/rn-sdk 0.1.6 → 0.1.7-beta.DEV1799.7abf93b
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 +111 -60
- package/lib/commonjs/core/BaseSDK/index.js +6 -0
- package/lib/commonjs/core/BaseSDK/index.js.map +1 -1
- package/lib/commonjs/core/EnrollmentContainer/index.js +12 -0
- package/lib/commonjs/core/EnrollmentContainer/index.js.map +1 -1
- package/lib/commonjs/core/PaymentLiteContainer/index.js +12 -0
- package/lib/commonjs/core/PaymentLiteContainer/index.js.map +1 -1
- package/lib/commonjs/services/CardService.js +18 -0
- package/lib/commonjs/services/CardService.js.map +1 -1
- package/lib/commonjs/shared/enum/ErrorKeyEnum.js +1 -0
- package/lib/commonjs/shared/enum/ErrorKeyEnum.js.map +1 -1
- package/lib/module/core/BaseSDK/index.js +6 -0
- package/lib/module/core/BaseSDK/index.js.map +1 -1
- package/lib/module/core/EnrollmentContainer/index.js +12 -0
- package/lib/module/core/EnrollmentContainer/index.js.map +1 -1
- package/lib/module/core/PaymentLiteContainer/index.js +12 -0
- package/lib/module/core/PaymentLiteContainer/index.js.map +1 -1
- package/lib/module/services/CardService.js +18 -0
- package/lib/module/services/CardService.js.map +1 -1
- package/lib/module/shared/enum/ErrorKeyEnum.js +1 -0
- package/lib/module/shared/enum/ErrorKeyEnum.js.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CardService.d.ts +6 -1
- package/lib/typescript/commonjs/src/services/CardService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/enum/ErrorKeyEnum.d.ts +1 -0
- package/lib/typescript/commonjs/src/shared/enum/ErrorKeyEnum.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/card.d.ts +6 -0
- package/lib/typescript/commonjs/src/types/card.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/enrollment.d.ts +9 -1
- package/lib/typescript/commonjs/src/types/enrollment.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts +9 -1
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts +2 -1
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts +2 -1
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts +2 -1
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CardService.d.ts +6 -1
- package/lib/typescript/module/src/services/CardService.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/enum/ErrorKeyEnum.d.ts +1 -0
- package/lib/typescript/module/src/shared/enum/ErrorKeyEnum.d.ts.map +1 -1
- package/lib/typescript/module/src/types/card.d.ts +6 -0
- package/lib/typescript/module/src/types/card.d.ts.map +1 -1
- package/lib/typescript/module/src/types/enrollment.d.ts +9 -1
- package/lib/typescript/module/src/types/enrollment.d.ts.map +1 -1
- package/lib/typescript/module/src/types/liteCheckout.d.ts +9 -1
- package/lib/typescript/module/src/types/liteCheckout.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/core/BaseSDK/index.ts +18 -1
- package/src/core/EnrollmentContainer/index.ts +16 -2
- package/src/core/PaymentLiteContainer/index.ts +13 -0
- package/src/services/CardService.ts +28 -0
- package/src/shared/enum/ErrorKeyEnum.ts +1 -0
- package/src/types/card.ts +7 -0
- package/src/types/enrollment.ts +10 -1
- package/src/types/liteCheckout.ts +10 -0
package/src/types/enrollment.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBaseCreateOptions, IBaseResponse, IEvents, SDKOptions } from './base';
|
|
2
2
|
import type { IBaseEnrollmentState } from './baseEnrollment';
|
|
3
3
|
import { SDKType } from './base';
|
|
4
|
-
import type { ISaveCardResponse } from './card';
|
|
4
|
+
import type { ICardsSummaryResponse, ISaveCardResponse } from './card';
|
|
5
5
|
import type { IFormLabels, IFormPlaceholder, IStyles } from './common';
|
|
6
6
|
import type { ICustomer } from './customer';
|
|
7
7
|
import TonderError from '../shared/utils/errors';
|
|
@@ -69,4 +69,13 @@ export interface IEnrollment {
|
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
71
|
reset(): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves a summary of the card associated with a customer.
|
|
75
|
+
* @param {string} id - The unique identifier of the card to retrieve the summary for.
|
|
76
|
+
* @returns {Promise<IBaseResponse<ICardsSummaryResponse>>} A promise that resolves with the customer's card summary data.
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
getCardSummary(id: string): Promise<IBaseResponse<ICardsSummaryResponse>>;
|
|
72
81
|
}
|
|
@@ -10,6 +10,7 @@ import type {
|
|
|
10
10
|
IBaseCallback,
|
|
11
11
|
IInlineCallbacks,
|
|
12
12
|
IBaseResponse,
|
|
13
|
+
ICardsSummaryResponse,
|
|
13
14
|
} from '.';
|
|
14
15
|
import { SDKType } from './base';
|
|
15
16
|
import TonderError from '../shared/utils/errors';
|
|
@@ -104,4 +105,13 @@ export interface IPaymentLiteContainer {
|
|
|
104
105
|
* @public
|
|
105
106
|
*/
|
|
106
107
|
reset(): void;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves a summary of the card associated with a customer.
|
|
111
|
+
* @param {string} id - The unique identifier of the card to retrieve the summary for.
|
|
112
|
+
* @returns {Promise<IBaseResponse<ICardsSummaryResponse>>} A promise that resolves with the customer's card summary data.
|
|
113
|
+
*
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
getCardSummary(id: string): Promise<IBaseResponse<ICardsSummaryResponse>>;
|
|
107
117
|
}
|