@nimee/shared-types 1.0.227 → 1.0.229
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/dist/payment/charge.d.ts
CHANGED
|
@@ -17,6 +17,11 @@ export declare enum IStatusPaymentEnum {
|
|
|
17
17
|
divide_order_complete = "divide_order_complete",
|
|
18
18
|
divide_order_failed = "divide_order_failed"
|
|
19
19
|
}
|
|
20
|
+
export declare enum IChargeTypeEnum {
|
|
21
|
+
MANUAL_CHARGE = "manual-charge",
|
|
22
|
+
TOP_UP = "top-up",
|
|
23
|
+
DEFAULT = "default"
|
|
24
|
+
}
|
|
20
25
|
export interface IChargeModel {
|
|
21
26
|
error: object;
|
|
22
27
|
status_code?: number;
|
|
@@ -57,4 +62,6 @@ export interface IChargeModel {
|
|
|
57
62
|
sale_description?: string;
|
|
58
63
|
nimiFeeType: IFeeCollectionType;
|
|
59
64
|
nimiFee: Number;
|
|
65
|
+
nimiFeePercentage: Number;
|
|
66
|
+
chargeType: IChargeTypeEnum;
|
|
60
67
|
}
|
package/dist/payment/charge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IStatusPaymentEnum = void 0;
|
|
3
|
+
exports.IChargeTypeEnum = exports.IStatusPaymentEnum = void 0;
|
|
4
4
|
var IStatusPaymentEnum;
|
|
5
5
|
(function (IStatusPaymentEnum) {
|
|
6
6
|
IStatusPaymentEnum["pending"] = "pending";
|
|
@@ -20,4 +20,10 @@ var IStatusPaymentEnum;
|
|
|
20
20
|
IStatusPaymentEnum["divide_order_complete"] = "divide_order_complete";
|
|
21
21
|
IStatusPaymentEnum["divide_order_failed"] = "divide_order_failed";
|
|
22
22
|
})(IStatusPaymentEnum || (exports.IStatusPaymentEnum = IStatusPaymentEnum = {}));
|
|
23
|
+
var IChargeTypeEnum;
|
|
24
|
+
(function (IChargeTypeEnum) {
|
|
25
|
+
IChargeTypeEnum["MANUAL_CHARGE"] = "manual-charge";
|
|
26
|
+
IChargeTypeEnum["TOP_UP"] = "top-up";
|
|
27
|
+
IChargeTypeEnum["DEFAULT"] = "default";
|
|
28
|
+
})(IChargeTypeEnum || (exports.IChargeTypeEnum = IChargeTypeEnum = {}));
|
|
23
29
|
//# sourceMappingURL=charge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAiBX;AAjBD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iFAA2D,CAAA;IAC3D,mEAA6C,CAAA;IAC7C,iEAA2C,CAAA;IAC3C,qEAA+C,CAAA;IAC/C,iEAA2C,CAAA;AAC7C,CAAC,EAjBW,kBAAkB,kCAAlB,kBAAkB,QAiB7B"}
|
|
1
|
+
{"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAiBX;AAjBD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iFAA2D,CAAA;IAC3D,mEAA6C,CAAA;IAC7C,iEAA2C,CAAA;IAC3C,qEAA+C,CAAA;IAC/C,iEAA2C,CAAA;AAC7C,CAAC,EAjBW,kBAAkB,kCAAlB,kBAAkB,QAiB7B;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,kDAA+B,CAAA;IAC/B,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
package/dist/user/endUser.d.ts
CHANGED
|
@@ -36,7 +36,9 @@ export interface IEndUserModel {
|
|
|
36
36
|
isAllowMarketingDelivery?: boolean;
|
|
37
37
|
origin?: string;
|
|
38
38
|
credits?: number;
|
|
39
|
-
|
|
39
|
+
externalPurchaseToken?: {
|
|
40
|
+
[paymentProvider: string]: string;
|
|
41
|
+
};
|
|
40
42
|
selectedHrc?: string;
|
|
41
43
|
allergies?: string;
|
|
42
44
|
idOrPassport?: string;
|
package/package.json
CHANGED
package/src/payment/charge.ts
CHANGED
|
@@ -18,6 +18,13 @@ export enum IStatusPaymentEnum {
|
|
|
18
18
|
divide_order_complete = "divide_order_complete",
|
|
19
19
|
divide_order_failed = "divide_order_failed",
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
export enum IChargeTypeEnum {
|
|
23
|
+
MANUAL_CHARGE = "manual-charge",
|
|
24
|
+
TOP_UP = "top-up",
|
|
25
|
+
DEFAULT = "default",
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
export interface IChargeModel {
|
|
22
29
|
error: object;
|
|
23
30
|
status_code?: number; // 0 Status of the request (0 - success, 1 - error)
|
|
@@ -64,4 +71,6 @@ export interface IChargeModel {
|
|
|
64
71
|
sale_description?: string;
|
|
65
72
|
nimiFeeType: IFeeCollectionType;
|
|
66
73
|
nimiFee: Number;
|
|
74
|
+
nimiFeePercentage: Number;
|
|
75
|
+
chargeType: IChargeTypeEnum;
|
|
67
76
|
}
|
package/src/user/endUser.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface IEndUserModel {
|
|
|
30
30
|
isAllowMarketingDelivery?: boolean;
|
|
31
31
|
origin?: string;
|
|
32
32
|
credits?: number;
|
|
33
|
-
|
|
33
|
+
externalPurchaseToken?: { [paymentProvider: string]: string };
|
|
34
34
|
selectedHrc?: string;
|
|
35
35
|
allergies?: string;
|
|
36
36
|
idOrPassport?: string;
|