turf-common 1.4.2-beta.43 → 1.4.2-beta.45

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.
@@ -1,4 +1,5 @@
1
1
  import { IBookingHistoryEntity } from "../entity";
2
2
  export interface IGetBookingHistoryResponse extends IBookingHistoryEntity {
3
3
  text: string;
4
+ createdByUsername: string;
4
5
  }
@@ -250,7 +250,14 @@ var ChargesModel = /** @class */ (function () {
250
250
  if (discountPolicy === void 0) { discountPolicy = modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL; }
251
251
  var chargesModel = new ChargesModel(chargeData.initialBookingGrossAmount, chargeData.amountPaid, chargeData.couponCode, parseFloat(chargeData.totalBookingHours.toString()), discountPolicy);
252
252
  var initialBookingGrossAmount = chargeData.initialBookingGrossAmount, amountPaid = chargeData.amountPaid, couponCode = chargeData.couponCode, totalBookingHours = chargeData.totalBookingHours, rest = __rest(chargeData, ["initialBookingGrossAmount", "amountPaid", "couponCode", "totalBookingHours"]);
253
- Object.assign(chargesModel, rest);
253
+ chargesModel.additionalBookingGrossAmount = rest.additionalBookingGrossAmount;
254
+ chargesModel.cancelledBookingGrossAmount = rest.cancelledBookingGrossAmount;
255
+ chargesModel.refundPayable = rest.refundPayable;
256
+ chargesModel.totalRefundedAmount = rest.totalRefundedAmount;
257
+ chargesModel.totalCancellationCharges = rest.totalCancellationCharges;
258
+ chargesModel.netTotal = rest.netTotal;
259
+ chargesModel.amountPayable = rest.amountPayable;
260
+ // Object.assign(chargesModel, rest);
254
261
  return chargesModel;
255
262
  };
256
263
  // static assignByInterface(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.4.2-beta.43",
3
+ "version": "1.4.2-beta.45",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",