sahab-utils 1.2.9 → 1.3.0
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/constants/types.d.ts +661 -659
- package/dist/constants/types.js +79 -79
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -18
- package/dist/ts/calcs.d.ts +34 -34
- package/dist/ts/calcs.js +385 -385
- package/dist/ts/utils.d.ts +3 -3
- package/dist/ts/utils.js +24 -24
- package/package.json +1 -1
package/dist/constants/types.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RegistrationSection = exports.ReviewStatus = exports.ComplaintStatus = exports.ComplaintType = exports.MovementType = exports.OrderPaymentType = exports.OrderStatus = exports.CarSize = void 0;
|
|
4
|
-
var CarSize;
|
|
5
|
-
(function (CarSize) {
|
|
6
|
-
CarSize[CarSize["X_SMALL"] = 0] = "X_SMALL";
|
|
7
|
-
CarSize[CarSize["SMALL"] = 1] = "SMALL";
|
|
8
|
-
CarSize[CarSize["MEDIUM"] = 2] = "MEDIUM";
|
|
9
|
-
CarSize[CarSize["LARGE"] = 3] = "LARGE";
|
|
10
|
-
CarSize[CarSize["X_LARGE"] = 4] = "X_LARGE";
|
|
11
|
-
})(CarSize || (exports.CarSize = CarSize = {}));
|
|
12
|
-
var OrderStatus;
|
|
13
|
-
(function (OrderStatus) {
|
|
14
|
-
OrderStatus[OrderStatus["PENDING"] = 0] = "PENDING";
|
|
15
|
-
OrderStatus[OrderStatus["CONFIRMED"] = 1] = "CONFIRMED";
|
|
16
|
-
OrderStatus[OrderStatus["REJECTED"] = 2] = "REJECTED";
|
|
17
|
-
OrderStatus[OrderStatus["EXPIRED"] = 3] = "EXPIRED";
|
|
18
|
-
OrderStatus[OrderStatus["IN_PROGRESS"] = 4] = "IN_PROGRESS";
|
|
19
|
-
OrderStatus[OrderStatus["COMPLETED"] = 5] = "COMPLETED";
|
|
20
|
-
OrderStatus[OrderStatus["CANCELLED"] = 6] = "CANCELLED";
|
|
21
|
-
OrderStatus[OrderStatus["RATED"] = 7] = "RATED";
|
|
22
|
-
OrderStatus[OrderStatus["STARTED"] = 8] = "STARTED";
|
|
23
|
-
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
24
|
-
var OrderPaymentType;
|
|
25
|
-
(function (OrderPaymentType) {
|
|
26
|
-
OrderPaymentType[OrderPaymentType["APPLE_PAY"] = 0] = "APPLE_PAY";
|
|
27
|
-
OrderPaymentType[OrderPaymentType["CREDIT"] = 1] = "CREDIT";
|
|
28
|
-
OrderPaymentType[OrderPaymentType["CASH"] = 2] = "CASH";
|
|
29
|
-
OrderPaymentType[OrderPaymentType["GOOGLE_PAY"] = 3] = "GOOGLE_PAY";
|
|
30
|
-
OrderPaymentType[OrderPaymentType["SAMSUNG_PAY"] = 4] = "SAMSUNG_PAY";
|
|
31
|
-
OrderPaymentType[OrderPaymentType["STC_PAY"] = 5] = "STC_PAY";
|
|
32
|
-
OrderPaymentType[OrderPaymentType["TABBY"] = 6] = "TABBY";
|
|
33
|
-
OrderPaymentType[OrderPaymentType["TAMARA"] = 7] = "TAMARA";
|
|
34
|
-
})(OrderPaymentType || (exports.OrderPaymentType = OrderPaymentType = {}));
|
|
35
|
-
var MovementType;
|
|
36
|
-
(function (MovementType) {
|
|
37
|
-
MovementType[MovementType["CLIENT_ORDER_PAYMENT"] = 0] = "CLIENT_ORDER_PAYMENT";
|
|
38
|
-
MovementType[MovementType["CLIENT_BALANCE_TOP_UP"] = 1] = "CLIENT_BALANCE_TOP_UP";
|
|
39
|
-
MovementType[MovementType["PROVIDER_NEGATIVE_BALANCE_PAYMENT"] = 2] = "PROVIDER_NEGATIVE_BALANCE_PAYMENT";
|
|
40
|
-
MovementType[MovementType["PROVIDER_POSITIVE_BALANCE_PAYMENT"] = 3] = "PROVIDER_POSITIVE_BALANCE_PAYMENT";
|
|
41
|
-
MovementType[MovementType["ORDER_REFUND"] = 4] = "ORDER_REFUND";
|
|
42
|
-
MovementType[MovementType["SAHAB_PAYMENT_TO_PROVIDER"] = 5] = "SAHAB_PAYMENT_TO_PROVIDER";
|
|
43
|
-
MovementType[MovementType["SAHAB_RECEIVE_FROM_PROVIDER"] = 6] = "SAHAB_RECEIVE_FROM_PROVIDER";
|
|
44
|
-
MovementType[MovementType["USING_BALANCE"] = 7] = "USING_BALANCE";
|
|
45
|
-
})(MovementType || (exports.MovementType = MovementType = {}));
|
|
46
|
-
var ComplaintType;
|
|
47
|
-
(function (ComplaintType) {
|
|
48
|
-
ComplaintType[ComplaintType["BUG"] = 0] = "BUG";
|
|
49
|
-
ComplaintType[ComplaintType["COMPLAINT"] = 1] = "COMPLAINT";
|
|
50
|
-
})(ComplaintType || (exports.ComplaintType = ComplaintType = {}));
|
|
51
|
-
var ComplaintStatus;
|
|
52
|
-
(function (ComplaintStatus) {
|
|
53
|
-
ComplaintStatus[ComplaintStatus["PENDING"] = 0] = "PENDING";
|
|
54
|
-
ComplaintStatus[ComplaintStatus["IN_REVIEW"] = 1] = "IN_REVIEW";
|
|
55
|
-
ComplaintStatus[ComplaintStatus["RESOLVED"] = 2] = "RESOLVED";
|
|
56
|
-
})(ComplaintStatus || (exports.ComplaintStatus = ComplaintStatus = {}));
|
|
57
|
-
var ReviewStatus;
|
|
58
|
-
(function (ReviewStatus) {
|
|
59
|
-
ReviewStatus[ReviewStatus["PENDING"] = 0] = "PENDING";
|
|
60
|
-
ReviewStatus[ReviewStatus["IN_REVIEW"] = 1] = "IN_REVIEW";
|
|
61
|
-
ReviewStatus[ReviewStatus["ACCEPTED"] = 2] = "ACCEPTED";
|
|
62
|
-
ReviewStatus[ReviewStatus["DECLINED"] = 3] = "DECLINED";
|
|
63
|
-
})(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
|
|
64
|
-
var RegistrationSection;
|
|
65
|
-
(function (RegistrationSection) {
|
|
66
|
-
RegistrationSection[RegistrationSection["OWNER_NAME"] = 0] = "OWNER_NAME";
|
|
67
|
-
RegistrationSection[RegistrationSection["CITY"] = 1] = "CITY";
|
|
68
|
-
RegistrationSection[RegistrationSection["RULES"] = 2] = "RULES";
|
|
69
|
-
RegistrationSection[RegistrationSection["BUSINESS_INFO"] = 3] = "BUSINESS_INFO";
|
|
70
|
-
RegistrationSection[RegistrationSection["DRIVERS_INFO"] = 4] = "DRIVERS_INFO";
|
|
71
|
-
RegistrationSection[RegistrationSection["VEHICLE_PERMIT"] = 5] = "VEHICLE_PERMIT";
|
|
72
|
-
RegistrationSection[RegistrationSection["VEHICLE_REGISTRATION"] = 6] = "VEHICLE_REGISTRATION";
|
|
73
|
-
RegistrationSection[RegistrationSection["SERVICES"] = 7] = "SERVICES";
|
|
74
|
-
RegistrationSection[RegistrationSection["ADDONS"] = 8] = "ADDONS";
|
|
75
|
-
RegistrationSection[RegistrationSection["WORKING_HOURS"] = 9] = "WORKING_HOURS";
|
|
76
|
-
RegistrationSection[RegistrationSection["OVERVIEW"] = 10] = "OVERVIEW";
|
|
77
|
-
RegistrationSection[RegistrationSection["STATUS"] = 11] = "STATUS";
|
|
78
|
-
RegistrationSection[RegistrationSection["DONE"] = 12] = "DONE";
|
|
79
|
-
})(RegistrationSection || (exports.RegistrationSection = RegistrationSection = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegistrationSection = exports.ReviewStatus = exports.ComplaintStatus = exports.ComplaintType = exports.MovementType = exports.OrderPaymentType = exports.OrderStatus = exports.CarSize = void 0;
|
|
4
|
+
var CarSize;
|
|
5
|
+
(function (CarSize) {
|
|
6
|
+
CarSize[CarSize["X_SMALL"] = 0] = "X_SMALL";
|
|
7
|
+
CarSize[CarSize["SMALL"] = 1] = "SMALL";
|
|
8
|
+
CarSize[CarSize["MEDIUM"] = 2] = "MEDIUM";
|
|
9
|
+
CarSize[CarSize["LARGE"] = 3] = "LARGE";
|
|
10
|
+
CarSize[CarSize["X_LARGE"] = 4] = "X_LARGE";
|
|
11
|
+
})(CarSize || (exports.CarSize = CarSize = {}));
|
|
12
|
+
var OrderStatus;
|
|
13
|
+
(function (OrderStatus) {
|
|
14
|
+
OrderStatus[OrderStatus["PENDING"] = 0] = "PENDING";
|
|
15
|
+
OrderStatus[OrderStatus["CONFIRMED"] = 1] = "CONFIRMED";
|
|
16
|
+
OrderStatus[OrderStatus["REJECTED"] = 2] = "REJECTED";
|
|
17
|
+
OrderStatus[OrderStatus["EXPIRED"] = 3] = "EXPIRED";
|
|
18
|
+
OrderStatus[OrderStatus["IN_PROGRESS"] = 4] = "IN_PROGRESS";
|
|
19
|
+
OrderStatus[OrderStatus["COMPLETED"] = 5] = "COMPLETED";
|
|
20
|
+
OrderStatus[OrderStatus["CANCELLED"] = 6] = "CANCELLED";
|
|
21
|
+
OrderStatus[OrderStatus["RATED"] = 7] = "RATED";
|
|
22
|
+
OrderStatus[OrderStatus["STARTED"] = 8] = "STARTED";
|
|
23
|
+
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
24
|
+
var OrderPaymentType;
|
|
25
|
+
(function (OrderPaymentType) {
|
|
26
|
+
OrderPaymentType[OrderPaymentType["APPLE_PAY"] = 0] = "APPLE_PAY";
|
|
27
|
+
OrderPaymentType[OrderPaymentType["CREDIT"] = 1] = "CREDIT";
|
|
28
|
+
OrderPaymentType[OrderPaymentType["CASH"] = 2] = "CASH";
|
|
29
|
+
OrderPaymentType[OrderPaymentType["GOOGLE_PAY"] = 3] = "GOOGLE_PAY";
|
|
30
|
+
OrderPaymentType[OrderPaymentType["SAMSUNG_PAY"] = 4] = "SAMSUNG_PAY";
|
|
31
|
+
OrderPaymentType[OrderPaymentType["STC_PAY"] = 5] = "STC_PAY";
|
|
32
|
+
OrderPaymentType[OrderPaymentType["TABBY"] = 6] = "TABBY";
|
|
33
|
+
OrderPaymentType[OrderPaymentType["TAMARA"] = 7] = "TAMARA";
|
|
34
|
+
})(OrderPaymentType || (exports.OrderPaymentType = OrderPaymentType = {}));
|
|
35
|
+
var MovementType;
|
|
36
|
+
(function (MovementType) {
|
|
37
|
+
MovementType[MovementType["CLIENT_ORDER_PAYMENT"] = 0] = "CLIENT_ORDER_PAYMENT";
|
|
38
|
+
MovementType[MovementType["CLIENT_BALANCE_TOP_UP"] = 1] = "CLIENT_BALANCE_TOP_UP";
|
|
39
|
+
MovementType[MovementType["PROVIDER_NEGATIVE_BALANCE_PAYMENT"] = 2] = "PROVIDER_NEGATIVE_BALANCE_PAYMENT";
|
|
40
|
+
MovementType[MovementType["PROVIDER_POSITIVE_BALANCE_PAYMENT"] = 3] = "PROVIDER_POSITIVE_BALANCE_PAYMENT";
|
|
41
|
+
MovementType[MovementType["ORDER_REFUND"] = 4] = "ORDER_REFUND";
|
|
42
|
+
MovementType[MovementType["SAHAB_PAYMENT_TO_PROVIDER"] = 5] = "SAHAB_PAYMENT_TO_PROVIDER";
|
|
43
|
+
MovementType[MovementType["SAHAB_RECEIVE_FROM_PROVIDER"] = 6] = "SAHAB_RECEIVE_FROM_PROVIDER";
|
|
44
|
+
MovementType[MovementType["USING_BALANCE"] = 7] = "USING_BALANCE";
|
|
45
|
+
})(MovementType || (exports.MovementType = MovementType = {}));
|
|
46
|
+
var ComplaintType;
|
|
47
|
+
(function (ComplaintType) {
|
|
48
|
+
ComplaintType[ComplaintType["BUG"] = 0] = "BUG";
|
|
49
|
+
ComplaintType[ComplaintType["COMPLAINT"] = 1] = "COMPLAINT";
|
|
50
|
+
})(ComplaintType || (exports.ComplaintType = ComplaintType = {}));
|
|
51
|
+
var ComplaintStatus;
|
|
52
|
+
(function (ComplaintStatus) {
|
|
53
|
+
ComplaintStatus[ComplaintStatus["PENDING"] = 0] = "PENDING";
|
|
54
|
+
ComplaintStatus[ComplaintStatus["IN_REVIEW"] = 1] = "IN_REVIEW";
|
|
55
|
+
ComplaintStatus[ComplaintStatus["RESOLVED"] = 2] = "RESOLVED";
|
|
56
|
+
})(ComplaintStatus || (exports.ComplaintStatus = ComplaintStatus = {}));
|
|
57
|
+
var ReviewStatus;
|
|
58
|
+
(function (ReviewStatus) {
|
|
59
|
+
ReviewStatus[ReviewStatus["PENDING"] = 0] = "PENDING";
|
|
60
|
+
ReviewStatus[ReviewStatus["IN_REVIEW"] = 1] = "IN_REVIEW";
|
|
61
|
+
ReviewStatus[ReviewStatus["ACCEPTED"] = 2] = "ACCEPTED";
|
|
62
|
+
ReviewStatus[ReviewStatus["DECLINED"] = 3] = "DECLINED";
|
|
63
|
+
})(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
|
|
64
|
+
var RegistrationSection;
|
|
65
|
+
(function (RegistrationSection) {
|
|
66
|
+
RegistrationSection[RegistrationSection["OWNER_NAME"] = 0] = "OWNER_NAME";
|
|
67
|
+
RegistrationSection[RegistrationSection["CITY"] = 1] = "CITY";
|
|
68
|
+
RegistrationSection[RegistrationSection["RULES"] = 2] = "RULES";
|
|
69
|
+
RegistrationSection[RegistrationSection["BUSINESS_INFO"] = 3] = "BUSINESS_INFO";
|
|
70
|
+
RegistrationSection[RegistrationSection["DRIVERS_INFO"] = 4] = "DRIVERS_INFO";
|
|
71
|
+
RegistrationSection[RegistrationSection["VEHICLE_PERMIT"] = 5] = "VEHICLE_PERMIT";
|
|
72
|
+
RegistrationSection[RegistrationSection["VEHICLE_REGISTRATION"] = 6] = "VEHICLE_REGISTRATION";
|
|
73
|
+
RegistrationSection[RegistrationSection["SERVICES"] = 7] = "SERVICES";
|
|
74
|
+
RegistrationSection[RegistrationSection["ADDONS"] = 8] = "ADDONS";
|
|
75
|
+
RegistrationSection[RegistrationSection["WORKING_HOURS"] = 9] = "WORKING_HOURS";
|
|
76
|
+
RegistrationSection[RegistrationSection["OVERVIEW"] = 10] = "OVERVIEW";
|
|
77
|
+
RegistrationSection[RegistrationSection["STATUS"] = 11] = "STATUS";
|
|
78
|
+
RegistrationSection[RegistrationSection["DONE"] = 12] = "DONE";
|
|
79
|
+
})(RegistrationSection || (exports.RegistrationSection = RegistrationSection = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './constants/types';
|
|
2
|
-
export * from './ts/calcs';
|
|
1
|
+
export * from './constants/types';
|
|
2
|
+
export * from './ts/calcs';
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./constants/types"), exports);
|
|
18
|
-
__exportStar(require("./ts/calcs"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./constants/types"), exports);
|
|
18
|
+
__exportStar(require("./ts/calcs"), exports);
|
package/dist/ts/calcs.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { Order } from '../constants/types';
|
|
2
|
-
export declare const SAHAB_PERCENTAGE = 0;
|
|
3
|
-
export declare const ONLINE_SAHAB_PERCENTAGE = 0.03;
|
|
4
|
-
export declare const CLIENT_SAHAB_PERCENTAGE = 0.03;
|
|
5
|
-
export declare function getServicesTotal(order?: Order): number;
|
|
6
|
-
export declare function getSahabDiscountsAmount(order: Order): number;
|
|
7
|
-
export declare function getProviderDiscountsAmount(order: Order): number;
|
|
8
|
-
export declare function getOrderTotalDiscountsAmount(order: Order): number;
|
|
9
|
-
export declare function getCustomerTotalToPay(order: Order): number;
|
|
10
|
-
export declare function getProviderTransferAmount(order: Order): number;
|
|
11
|
-
export declare function getProviderProfits(order: Order): number;
|
|
12
|
-
export declare function getOnlineProcessingFees(order: Order): number;
|
|
13
|
-
export declare function getSahabFees(order: Order): number;
|
|
14
|
-
export declare function calcOrdersData(orders: Order[]): {
|
|
15
|
-
name: string;
|
|
16
|
-
providerId: string;
|
|
17
|
-
numCashOrders: number;
|
|
18
|
-
numOnlineOrders: number;
|
|
19
|
-
providerCashRevenue: string;
|
|
20
|
-
providerOnlineRevenue: string;
|
|
21
|
-
totalProviderRevenue: string;
|
|
22
|
-
totalCashTransfer: string;
|
|
23
|
-
totalOnlineTransfer: string;
|
|
24
|
-
sahabCashRevenue: string;
|
|
25
|
-
sahabOnlineRevenue: string;
|
|
26
|
-
totalTransfer: string;
|
|
27
|
-
totalSahabRevenue: string;
|
|
28
|
-
};
|
|
29
|
-
export declare function calculatePromoCodeAmount(order: Order): number;
|
|
30
|
-
export declare function calculateOrderPercentage({ isPaid, paymentId, providerPercentage, }: {
|
|
31
|
-
isPaid: boolean;
|
|
32
|
-
paymentId: string;
|
|
33
|
-
providerPercentage: number;
|
|
34
|
-
}): number;
|
|
1
|
+
import { Order } from '../constants/types';
|
|
2
|
+
export declare const SAHAB_PERCENTAGE = 0;
|
|
3
|
+
export declare const ONLINE_SAHAB_PERCENTAGE = 0.03;
|
|
4
|
+
export declare const CLIENT_SAHAB_PERCENTAGE = 0.03;
|
|
5
|
+
export declare function getServicesTotal(order?: Order): number;
|
|
6
|
+
export declare function getSahabDiscountsAmount(order: Order): number;
|
|
7
|
+
export declare function getProviderDiscountsAmount(order: Order): number;
|
|
8
|
+
export declare function getOrderTotalDiscountsAmount(order: Order): number;
|
|
9
|
+
export declare function getCustomerTotalToPay(order: Order): number;
|
|
10
|
+
export declare function getProviderTransferAmount(order: Order): number;
|
|
11
|
+
export declare function getProviderProfits(order: Order): number;
|
|
12
|
+
export declare function getOnlineProcessingFees(order: Order): number;
|
|
13
|
+
export declare function getSahabFees(order: Order): number;
|
|
14
|
+
export declare function calcOrdersData(orders: Order[]): {
|
|
15
|
+
name: string;
|
|
16
|
+
providerId: string;
|
|
17
|
+
numCashOrders: number;
|
|
18
|
+
numOnlineOrders: number;
|
|
19
|
+
providerCashRevenue: string;
|
|
20
|
+
providerOnlineRevenue: string;
|
|
21
|
+
totalProviderRevenue: string;
|
|
22
|
+
totalCashTransfer: string;
|
|
23
|
+
totalOnlineTransfer: string;
|
|
24
|
+
sahabCashRevenue: string;
|
|
25
|
+
sahabOnlineRevenue: string;
|
|
26
|
+
totalTransfer: string;
|
|
27
|
+
totalSahabRevenue: string;
|
|
28
|
+
};
|
|
29
|
+
export declare function calculatePromoCodeAmount(order: Order): number;
|
|
30
|
+
export declare function calculateOrderPercentage({ isPaid, paymentId, providerPercentage, }: {
|
|
31
|
+
isPaid: boolean;
|
|
32
|
+
paymentId: string;
|
|
33
|
+
providerPercentage: number;
|
|
34
|
+
}): number;
|