@nimee/shared-types 1.0.227 → 1.0.228
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.
|
@@ -52,12 +52,6 @@ export interface IMarketPlace {
|
|
|
52
52
|
isOneUserFormPerOrder?: boolean;
|
|
53
53
|
isOnlyForMembers?: boolean;
|
|
54
54
|
allowSplitPayment?: boolean;
|
|
55
|
-
linkPrivacy?: string;
|
|
56
|
-
linkTerms?: string;
|
|
57
|
-
linkTermsOfClubMembership?: string;
|
|
58
|
-
privacy_policy_type?: string;
|
|
59
|
-
terms_of_service_type?: string;
|
|
60
|
-
terms_of_club_membership_type?: string;
|
|
61
55
|
isAutomationActive?: boolean;
|
|
62
56
|
automationProvider?: IAutomationProvider;
|
|
63
57
|
automationToken?: string;
|
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/package.json
CHANGED
|
@@ -56,12 +56,6 @@ export interface IMarketPlace {
|
|
|
56
56
|
isOneUserFormPerOrder?: boolean;
|
|
57
57
|
isOnlyForMembers?: boolean;
|
|
58
58
|
allowSplitPayment?: boolean;
|
|
59
|
-
linkPrivacy?: string;
|
|
60
|
-
linkTerms?: string;
|
|
61
|
-
linkTermsOfClubMembership?: string;
|
|
62
|
-
privacy_policy_type?: string;
|
|
63
|
-
terms_of_service_type?: string;
|
|
64
|
-
terms_of_club_membership_type?: string;
|
|
65
59
|
isAutomationActive?: boolean;
|
|
66
60
|
automationProvider?: IAutomationProvider;
|
|
67
61
|
automationToken?: string;
|
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
|
}
|