turf-common 1.0.3 → 1.0.4

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,6 +1,5 @@
1
1
  import { IAppBadRequestException } from "../types/app-badrequest-exception.type";
2
2
  export declare class AppBadRequestException extends Error {
3
- private appBadRequestException;
4
3
  constructor(appBadRequestException: IAppBadRequestException);
5
- parse(): IAppBadRequestException;
4
+ parse(appBadRequestException: IAppBadRequestException): IAppBadRequestException;
6
5
  }
@@ -18,14 +18,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.AppBadRequestException = void 0;
19
19
  var AppBadRequestException = /** @class */ (function (_super) {
20
20
  __extends(AppBadRequestException, _super);
21
+ // appBadRequestException: IAppBadRequestException;
21
22
  function AppBadRequestException(appBadRequestException) {
22
23
  var _this = _super.call(this) || this;
23
- _this.appBadRequestException = appBadRequestException;
24
- _this.parse();
24
+ _this.parse(appBadRequestException);
25
25
  return _this;
26
26
  }
27
- AppBadRequestException.prototype.parse = function () {
28
- return this.appBadRequestException;
27
+ AppBadRequestException.prototype.parse = function (appBadRequestException) {
28
+ return appBadRequestException;
29
29
  };
30
30
  return AppBadRequestException;
31
31
  }(Error));
@@ -0,0 +1,12 @@
1
+ export interface IChargeModel {
2
+ initialBookingGrossAmount: number;
3
+ additionalBookingGrossAmount: number;
4
+ cancelledBookingGrossAmount: number;
5
+ totalCancellationCharges: number;
6
+ refundPayable: number;
7
+ netTotal: number;
8
+ amountPaid: number;
9
+ amountPayable: number;
10
+ totalRefundedAmount: number;
11
+ couponCode: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +1,6 @@
1
1
  import { IBookingModification } from "../types/booking-modification.type";
2
2
  import { ModificationDiscountPolicy } from "../enums/modification-discount-policy.enum";
3
- export interface IChargeModel {
4
- initialBookingGrossAmount: number;
5
- additionalBookingGrossAmount: number;
6
- cancelledBookingGrossAmount: number;
7
- totalCancellationCharges: number;
8
- refundPayable: number;
9
- netTotal: number;
10
- amountPaid: number;
11
- amountPayable: number;
12
- totalRefundedAmount: number;
13
- couponCode: string;
14
- }
3
+ import { IChargeModel } from "../interface/charge-model.interface";
15
4
  export declare class ChargesModel implements IChargeModel {
16
5
  initialBookingGrossAmount: number;
17
6
  additionalBookingGrossAmount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",