turf-common 1.2.1-beta.7 → 1.2.1-beta.8
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.
|
@@ -27,7 +27,6 @@ export declare class ChargesModel implements IChargeModel {
|
|
|
27
27
|
clone(): ChargesModel;
|
|
28
28
|
private modifyDelete;
|
|
29
29
|
static getInstance(chargeData: IChargeModel, discountPolicy?: ModificationDiscountPolicy): ChargesModel;
|
|
30
|
-
static assignByInterface(chargeData: IChargeModel, discountPolicy?: ModificationDiscountPolicy): ChargesModel;
|
|
31
30
|
getTotalAmount(): number;
|
|
32
31
|
getPaymentStatus(): "Refund" | "Paid" | "Pending";
|
|
33
32
|
getTotalNetAmount(): number;
|
|
@@ -191,25 +191,32 @@ var ChargesModel = /** @class */ (function () {
|
|
|
191
191
|
Object.assign(chargesModel, chargeData);
|
|
192
192
|
return chargesModel;
|
|
193
193
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
194
|
+
// static assignByInterface(
|
|
195
|
+
// chargeData: IChargeModel,
|
|
196
|
+
// discountPolicy: ModificationDiscountPolicy = ModificationDiscountPolicy.DISCOUNT_CONDITIONAL
|
|
197
|
+
// ): ChargesModel {
|
|
198
|
+
// const newChargeModel = new ChargesModel(
|
|
199
|
+
// chargeData.initialBookingGrossAmount,
|
|
200
|
+
// chargeData.amountPaid,
|
|
201
|
+
// chargeData.couponCode,
|
|
202
|
+
// discountPolicy
|
|
203
|
+
// );
|
|
204
|
+
// newChargeModel.additionalBookingGrossAmount =
|
|
205
|
+
// chargeData.additionalBookingGrossAmount;
|
|
206
|
+
// newChargeModel.initialBookingGrossAmount =
|
|
207
|
+
// chargeData.initialBookingGrossAmount;
|
|
208
|
+
// newChargeModel.cancelledBookingGrossAmount =
|
|
209
|
+
// chargeData.cancelledBookingGrossAmount;
|
|
210
|
+
// newChargeModel.refundPayable = chargeData.refundPayable;
|
|
211
|
+
// newChargeModel.totalRefundedAmount = chargeData.totalRefundedAmount;
|
|
212
|
+
// newChargeModel.amountPaid = chargeData.amountPaid;
|
|
213
|
+
// newChargeModel.totalCancellationCharges =
|
|
214
|
+
// chargeData.totalCancellationCharges;
|
|
215
|
+
// newChargeModel.netTotal = chargeData.netTotal;
|
|
216
|
+
// newChargeModel.couponCode = chargeData.couponCode;
|
|
217
|
+
// newChargeModel.amountPayable = chargeData.amountPayable;
|
|
218
|
+
// return newChargeModel;
|
|
219
|
+
// }
|
|
213
220
|
ChargesModel.prototype.getTotalAmount = function () {
|
|
214
221
|
return this.getNetAmount() + this.totalCancellationCharges;
|
|
215
222
|
};
|