@hyper.software/common-helpers 1.0.79 → 1.0.80

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.
@@ -18,6 +18,6 @@ export declare const getAccommodationCost: (roomBookings: Array<{
18
18
  pricingRules?: IRoomTypePricePlanPricingRules;
19
19
  personsPayingBreakfast?: number;
20
20
  room?: IRoom;
21
- }>, _checkinDate: Moment, _checkoutDate: Moment, numberOfAdults: number, company?: ICompany, booking?: IBooking) => number;
21
+ }>, _checkinDate: Moment, _checkoutDate: Moment, numberOfAdults: number, booking?: IBooking, company?: ICompany) => number;
22
22
  export declare const ensureValueIsNumber: (value: string | number, isDouble?: boolean) => number | null;
23
23
  export declare const isOtaBooking: (booking: IBooking) => boolean;
@@ -166,7 +166,7 @@ var getCompanyDiscount = function (company, lengthOfStay, totalCost) {
166
166
  return totalCost;
167
167
  };
168
168
  exports.getCompanyDiscount = getCompanyDiscount;
169
- var getAccommodationCost = function (roomBookings, _checkinDate, _checkoutDate, numberOfAdults, company, booking) {
169
+ var getAccommodationCost = function (roomBookings, _checkinDate, _checkoutDate, numberOfAdults, booking, company) {
170
170
  if (!_checkinDate || !_checkoutDate) {
171
171
  return null;
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyper.software/common-helpers",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "author": "Raul Tomescu <tomescu.raul+hyper@gmail.com>",
5
5
  "description": "Hyper Software Common Javascript Helpers",
6
6
  "main": "lib/index.js",