@vibe-flats/booking-engine-common-server 1.0.163 → 1.0.165

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.
@@ -19,6 +19,9 @@ export declare const COMMON_SERVER: {
19
19
  utilities: string;
20
20
  discountMonthly: string;
21
21
  };
22
+ customFields: {
23
+ devMetaData: string;
24
+ };
22
25
  };
23
26
  hubpost: {
24
27
  objectTypes: {
@@ -24,6 +24,9 @@ exports.COMMON_SERVER = {
24
24
  cleaning: 'Cleaning fee',
25
25
  utilities: 'Utilities',
26
26
  discountMonthly: 'Discount (Monthly Stay)'
27
+ },
28
+ customFields: {
29
+ devMetaData: '69398103813ee90015c79b90' // Field ID for the temporary reservation custom field on Guesty
27
30
  }
28
31
  },
29
32
  hubpost: {
@@ -17,7 +17,7 @@ const vibePrice = (obj) => {
17
17
  // Additional channel markup, added as prop because its available only on quotes
18
18
  const markupValue = markup ? markup / 100 + 1 : 1;
19
19
  // Apply multiplier: Guesty's approach to monthly pricing
20
- const rent = +(stay.reduce((acc, stay) => acc + stay.price, 0) * markupValue).toFixed(0);
20
+ const rent = Math.ceil(stay.reduce((acc, stay) => acc + stay.price, 0) * markupValue);
21
21
  const cleaning = excludeCleaning ? 0 : unit.prices.cleaningFee;
22
22
  const utilities = (excludeUtilities || unit.prices.excludeUtilities) ? 0 : unit.prices.utilities * nights;
23
23
  const subTotal = rent + utilities + cleaning;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.163",
3
+ "version": "1.0.165",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",