@escapenavigator/utils 1.10.5 → 1.10.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.
|
@@ -49,13 +49,14 @@ function getOrderCancelationState({ cancelationReason, cancelationRule, cancelat
|
|
|
49
49
|
const cancelationType = foolFineCancelation
|
|
50
50
|
? questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.FULL_PRICE
|
|
51
51
|
: cancelationRule;
|
|
52
|
-
const fineAmount = (typeof forceFine === 'number' && forceFine) ||
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
const fineAmount = (typeof forceFine === 'number' && forceFine) ||
|
|
53
|
+
+(0, get_cancelation_fee_amount_1.getCancelationFeeAmount)({
|
|
54
|
+
cancelationRule: cancelationType,
|
|
55
|
+
total: playersPrice,
|
|
56
|
+
slotDiscount,
|
|
57
|
+
minimalPrice,
|
|
58
|
+
cancelationAmount,
|
|
59
|
+
}).toFixed(0);
|
|
59
60
|
const chargeAmount = fineAmount - orderPayment;
|
|
60
61
|
/**
|
|
61
62
|
* Кейсы, если игра отменяется в срок
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/utils",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.6",
|
|
18
18
|
"axios": "^0.21.4",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
20
|
"class-validator": "^0.13.2",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"node_modules"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "7032754e57291be53744f898a89e37413318e3d3"
|
|
59
59
|
}
|