@roomstay/core 0.1.61-2 → 0.1.61-3

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.
@@ -26,6 +26,7 @@ export type IAvailability = {
26
26
  warnings: Warning<string>[];
27
27
  alternativeAvailability?: IAlternativeAvailability;
28
28
  hasMinStayUpsellOpportunities?: boolean;
29
+ promoCodeDetails?: IPromoCodeDetails | null;
29
30
  };
30
31
  export type IAlternativeAvailability = {
31
32
  checkInDate: string;
@@ -71,6 +72,10 @@ export type IRatePlan = {
71
72
  isUpsellRate?: boolean;
72
73
  minNightStayOverride?: number | null;
73
74
  };
75
+ export type IPromoCodeDetails = {
76
+ code: string;
77
+ oneTimeUseOnly: boolean;
78
+ };
74
79
  export type IRoomNight = {
75
80
  available: number;
76
81
  lowestPrice: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.61-2",
3
+ "version": "0.1.61-3",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [