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
- ChargesModel.assignByInterface = function (chargeData, discountPolicy) {
195
- if (discountPolicy === void 0) { discountPolicy = modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL; }
196
- var newChargeModel = new ChargesModel(chargeData.initialBookingGrossAmount, chargeData.amountPaid, chargeData.couponCode, discountPolicy);
197
- newChargeModel.additionalBookingGrossAmount =
198
- chargeData.additionalBookingGrossAmount;
199
- newChargeModel.initialBookingGrossAmount =
200
- chargeData.initialBookingGrossAmount;
201
- newChargeModel.cancelledBookingGrossAmount =
202
- chargeData.cancelledBookingGrossAmount;
203
- newChargeModel.refundPayable = chargeData.refundPayable;
204
- newChargeModel.totalRefundedAmount = chargeData.totalRefundedAmount;
205
- newChargeModel.amountPaid = chargeData.amountPaid;
206
- newChargeModel.totalCancellationCharges =
207
- chargeData.totalCancellationCharges;
208
- newChargeModel.netTotal = chargeData.netTotal;
209
- newChargeModel.couponCode = chargeData.couponCode;
210
- newChargeModel.amountPayable = chargeData.amountPayable;
211
- return newChargeModel;
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.2.1-beta.7",
3
+ "version": "1.2.1-beta.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",