@ventrata/octo-types 0.0.11 → 0.0.12

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.
Files changed (214) hide show
  1. package/dist/index.d.ts +100 -3
  2. package/dist/models/AdyenGateway.d.ts +9 -0
  3. package/dist/models/AdyenGatewaySession.d.ts +4 -0
  4. package/dist/models/AdyenPaymentMethodsConfiguration.d.ts +10 -0
  5. package/dist/models/AdyenPaymentMethodsConfigurationApplePay.d.ts +3 -0
  6. package/dist/models/AdyenPaymentMethodsConfigurationCard.d.ts +20 -0
  7. package/dist/models/AdyenPaymentMethodsConfigurationCardBillingAddressMode.d.ts +5 -0
  8. package/dist/models/AdyenPaymentMethodsConfigurationGooglePay.d.ts +5 -0
  9. package/dist/models/AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters.d.ts +4 -0
  10. package/dist/models/AdyenPaymentMethodsConfigurationPayPay.d.ts +5 -0
  11. package/dist/models/Availability.d.ts +19 -7
  12. package/dist/models/AvailabilityCalendar.d.ts +2 -0
  13. package/dist/models/AvailabilityCalendarExtras.d.ts +4 -0
  14. package/dist/models/AvailabilityContent.d.ts +12 -7
  15. package/dist/models/AvailabilityExtras.d.ts +4 -0
  16. package/dist/models/AvailabilityResources.d.ts +6 -0
  17. package/dist/models/Booking.d.ts +30 -6
  18. package/dist/models/BookingCardPayments.d.ts +5 -0
  19. package/dist/models/BookingCheckin.d.ts +5 -0
  20. package/dist/models/BookingContent.d.ts +1 -0
  21. package/dist/models/BookingExtras.d.ts +2 -0
  22. package/dist/models/BookingMemberships.d.ts +6 -0
  23. package/dist/models/BookingPackages.d.ts +2 -1
  24. package/dist/models/BookingPickups.d.ts +4 -4
  25. package/dist/models/BookingRentals.d.ts +6 -0
  26. package/dist/models/BridgepayGateway.d.ts +3 -0
  27. package/dist/models/Card.d.ts +8 -0
  28. package/dist/models/CardPayment.d.ts +34 -0
  29. package/dist/models/Category.d.ts +0 -4
  30. package/dist/models/CustomerContact.d.ts +3 -0
  31. package/dist/models/DeliveryFormat.d.ts +2 -1
  32. package/dist/models/DeliveryOption.d.ts +2 -2
  33. package/dist/models/Destination.d.ts +8 -5
  34. package/dist/models/DestinationPricing.d.ts +10 -0
  35. package/dist/models/ExternalGateway.d.ts +1 -0
  36. package/dist/models/{Octo_Pricing.d.ts → ExtraPricing.d.ts} +4 -3
  37. package/dist/models/Gift.d.ts +3 -0
  38. package/dist/models/GiftCardPayments.d.ts +5 -0
  39. package/dist/models/Include.d.ts +2 -1
  40. package/dist/models/Membership.d.ts +11 -0
  41. package/dist/models/MembershipBenefit.d.ts +5 -0
  42. package/dist/models/Octo_DeliveryFormat.d.ts +6 -0
  43. package/dist/models/Offer.d.ts +7 -0
  44. package/dist/models/OfferDiscount.d.ts +2 -2
  45. package/dist/models/OfferMemberships.d.ts +4 -0
  46. package/dist/models/{Octo_Tax.d.ts → OfferTax.d.ts} +2 -2
  47. package/dist/models/OpeningHours.d.ts +4 -3
  48. package/dist/models/OpeningHoursContent.d.ts +4 -3
  49. package/dist/models/Option.d.ts +5 -3
  50. package/dist/models/OptionPricing.d.ts +11 -0
  51. package/dist/models/OptionRentals.d.ts +4 -0
  52. package/dist/models/Order.d.ts +28 -8
  53. package/dist/models/OrderCardPayments.d.ts +5 -0
  54. package/dist/models/OrderCheckin.d.ts +4 -0
  55. package/dist/models/OrderContent.d.ts +7 -0
  56. package/dist/models/OrderGifts.d.ts +2 -0
  57. package/dist/models/OrderMemberships.d.ts +4 -0
  58. package/dist/models/OrderPricing.d.ts +4 -0
  59. package/dist/models/OrderQuestions.d.ts +8 -0
  60. package/dist/models/PaypalGateway.d.ts +4 -0
  61. package/dist/models/PaytrGateway.d.ts +5 -0
  62. package/dist/models/PeachGateway.d.ts +5 -0
  63. package/dist/models/Pricing.d.ts +3 -1
  64. package/dist/models/PricingExtras.d.ts +3 -1
  65. package/dist/models/PricingUnit.d.ts +3 -2
  66. package/dist/models/PricingUnitExtras.d.ts +3 -2
  67. package/dist/models/Product.d.ts +6 -4
  68. package/dist/models/ProductContent.d.ts +4 -4
  69. package/dist/models/ProductMemberships.d.ts +3 -0
  70. package/dist/models/ProductRentals.d.ts +3 -0
  71. package/dist/models/Question.d.ts +0 -4
  72. package/dist/models/QuestionAnswer.d.ts +3 -45
  73. package/dist/models/RealaxGateway.d.ts +1 -0
  74. package/dist/models/RentalDuration.d.ts +9 -0
  75. package/dist/models/Scan.d.ts +5 -0
  76. package/dist/models/SettlementMethod.d.ts +5 -5
  77. package/dist/models/SpreedlyGateway.d.ts +7 -0
  78. package/dist/models/StripeGateway.d.ts +15 -0
  79. package/dist/models/Ticket.d.ts +1 -1
  80. package/dist/models/Unit.d.ts +2 -0
  81. package/dist/models/UnitItem.d.ts +7 -1
  82. package/dist/models/UnitItemExtras.d.ts +4 -0
  83. package/dist/models/UnitItemRedemption.d.ts +4 -0
  84. package/dist/models/UnitMemberships.d.ts +4 -0
  85. package/dist/models/VivawalletGateway.d.ts +4 -0
  86. package/dist/schemas/AdyenGateway.d.ts +285 -0
  87. package/dist/schemas/AdyenGatewaySession.d.ts +11 -0
  88. package/dist/schemas/AdyenPaymentMethodsConfiguration.d.ts +188 -0
  89. package/dist/schemas/AdyenPaymentMethodsConfigurationApplePay.d.ts +8 -0
  90. package/dist/schemas/AdyenPaymentMethodsConfigurationCard.d.ts +92 -0
  91. package/dist/schemas/AdyenPaymentMethodsConfigurationCardBillingAddressMode.d.ts +3 -0
  92. package/dist/schemas/AdyenPaymentMethodsConfigurationGooglePay.d.ts +11 -0
  93. package/dist/schemas/AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters.d.ts +3 -0
  94. package/dist/schemas/AdyenPaymentMethodsConfigurationPayPay.d.ts +14 -0
  95. package/dist/schemas/Availability.d.ts +566 -170
  96. package/dist/schemas/AvailabilityCalendar.d.ts +531 -147
  97. package/dist/schemas/AvailabilityCalendarExtras.d.ts +90 -0
  98. package/dist/schemas/AvailabilityCalendarOffers.d.ts +86 -0
  99. package/dist/schemas/AvailabilityCalendarPricing.d.ts +345 -132
  100. package/dist/schemas/AvailabilityContent.d.ts +25 -19
  101. package/dist/schemas/AvailabilityExtras.d.ts +90 -0
  102. package/dist/schemas/AvailabilityOffers.d.ts +86 -0
  103. package/dist/schemas/AvailabilityPickups.d.ts +4 -4
  104. package/dist/schemas/AvailabilityPricing.d.ts +345 -132
  105. package/dist/schemas/AvailabilityResources.d.ts +8 -0
  106. package/dist/schemas/AvailabilityUpdate.d.ts +758 -317
  107. package/dist/schemas/BookingCardPayments.d.ts +889 -0
  108. package/dist/schemas/BookingCart.d.ts +2 -2
  109. package/dist/schemas/BookingCheckin.d.ts +14 -0
  110. package/dist/schemas/BookingConfirmationBody.d.ts +6 -6
  111. package/dist/schemas/BookingConfirmationRequest.d.ts +10 -10
  112. package/dist/schemas/BookingContact.d.ts +2 -2
  113. package/dist/schemas/BookingContent.d.ts +3 -0
  114. package/dist/schemas/BookingExtras.d.ts +1089 -76
  115. package/dist/schemas/BookingMemberships.d.ts +209 -0
  116. package/dist/schemas/BookingOffers.d.ts +2077 -261
  117. package/dist/schemas/BookingPackages.d.ts +16 -8
  118. package/dist/schemas/BookingPickups.d.ts +16 -7
  119. package/dist/schemas/BookingPricing.d.ts +228 -12
  120. package/dist/schemas/BookingQuestions.d.ts +120 -85
  121. package/dist/schemas/BookingRentals.d.ts +49 -0
  122. package/dist/schemas/BookingReservationBody.d.ts +8 -8
  123. package/dist/schemas/BookingReservationRequest.d.ts +14 -14
  124. package/dist/schemas/BookingUpdate.d.ts +20 -103
  125. package/dist/schemas/BookingUpdateBody.d.ts +6 -6
  126. package/dist/schemas/BookingUpdateRequest.d.ts +10 -10
  127. package/dist/schemas/BridgepayGateway.d.ts +8 -0
  128. package/dist/schemas/Card.d.ts +23 -0
  129. package/dist/schemas/CardPayment.d.ts +668 -0
  130. package/dist/schemas/Category.d.ts +0 -3
  131. package/dist/schemas/ConfirmOrderBody.d.ts +4 -4
  132. package/dist/schemas/CreateOrderBody.d.ts +4 -4
  133. package/dist/schemas/CreateWaitlistRequest.d.ts +4 -4
  134. package/dist/schemas/CustomerContact.d.ts +11 -2
  135. package/dist/schemas/DeliveryOption.d.ts +3 -3
  136. package/dist/schemas/Destination.d.ts +8 -55
  137. package/dist/schemas/DestinationPricing.d.ts +11 -0
  138. package/dist/schemas/ExternalGateway.d.ts +2 -0
  139. package/dist/schemas/Extra.d.ts +456 -24
  140. package/dist/schemas/ExtraItem.d.ts +839 -79
  141. package/dist/schemas/ExtraPricing.d.ts +56 -0
  142. package/dist/schemas/GetYourGuideConnection.d.ts +2 -2
  143. package/dist/schemas/Gift.d.ts +1180 -50
  144. package/dist/schemas/GiftCardPayments.d.ts +889 -0
  145. package/dist/schemas/Include.d.ts +6 -3
  146. package/dist/schemas/ItineraryItem.d.ts +2 -2
  147. package/dist/schemas/Membership.d.ts +124 -0
  148. package/dist/schemas/MembershipBenefit.d.ts +14 -0
  149. package/dist/schemas/Octo_DeliveryFormat.d.ts +3 -0
  150. package/dist/schemas/Offer.d.ts +29 -0
  151. package/dist/schemas/OfferCombination.d.ts +1611 -169
  152. package/dist/schemas/OfferComparison.d.ts +1611 -169
  153. package/dist/schemas/OfferDiscount.d.ts +0 -5
  154. package/dist/schemas/OfferMemberships.d.ts +28 -0
  155. package/dist/schemas/OfferTax.d.ts +17 -0
  156. package/dist/schemas/OpeningHours.d.ts +9 -9
  157. package/dist/schemas/OpeningHoursContent.d.ts +9 -9
  158. package/dist/schemas/OptionContent.d.ts +4 -4
  159. package/dist/schemas/OptionExtras.d.ts +576 -32
  160. package/dist/schemas/OptionPackages.d.ts +14 -7
  161. package/dist/schemas/OptionPickups.d.ts +4 -4
  162. package/dist/schemas/OptionPricing.d.ts +781 -0
  163. package/dist/schemas/OptionQuestions.d.ts +4 -9
  164. package/dist/schemas/OptionRentals.d.ts +43 -0
  165. package/dist/schemas/Order.d.ts +7421 -991
  166. package/dist/schemas/OrderCardPayments.d.ts +889 -0
  167. package/dist/schemas/OrderCheckin.d.ts +11 -0
  168. package/dist/schemas/OrderContent.d.ts +826 -0
  169. package/dist/schemas/OrderGifts.d.ts +2342 -0
  170. package/dist/schemas/OrderMemberships.d.ts +186 -0
  171. package/dist/schemas/OrderOffers.d.ts +2006 -276
  172. package/dist/schemas/OrderPricing.d.ts +393 -0
  173. package/dist/schemas/OrderQuestions.d.ts +139 -0
  174. package/dist/schemas/PackageInclude.d.ts +10 -5
  175. package/dist/schemas/PartnersConnection.d.ts +2 -2
  176. package/dist/schemas/PartnersListConnection.d.ts +28 -111
  177. package/dist/schemas/PaypalGateway.d.ts +11 -0
  178. package/dist/schemas/PaytrGateway.d.ts +14 -0
  179. package/dist/schemas/PeachGateway.d.ts +14 -0
  180. package/dist/schemas/PickupPoint.d.ts +2 -2
  181. package/dist/schemas/Pricing.d.ts +168 -8
  182. package/dist/schemas/PricingExtras.d.ts +170 -3
  183. package/dist/schemas/PricingOffers.d.ts +0 -7
  184. package/dist/schemas/PricingUnit.d.ts +83 -92
  185. package/dist/schemas/PricingUnitExtras.d.ts +83 -85
  186. package/dist/schemas/ProductContent.d.ts +46 -116
  187. package/dist/schemas/ProductMemberships.d.ts +8 -0
  188. package/dist/schemas/ProductRentals.d.ts +8 -0
  189. package/dist/schemas/Question.d.ts +2 -5
  190. package/dist/schemas/QuestionAnswer.d.ts +86 -53
  191. package/dist/schemas/RealaxGateway.d.ts +2 -0
  192. package/dist/schemas/RentalDuration.d.ts +23 -0
  193. package/dist/schemas/Scan.d.ts +14 -0
  194. package/dist/schemas/SpreedlyGateway.d.ts +20 -0
  195. package/dist/schemas/StripeGateway.d.ts +64 -0
  196. package/dist/schemas/Supplier.d.ts +14 -79
  197. package/dist/schemas/SupplierContent.d.ts +14 -79
  198. package/dist/schemas/Ticket.d.ts +8 -8
  199. package/dist/schemas/Unit.d.ts +1069 -75
  200. package/dist/schemas/UnitExtras.d.ts +576 -32
  201. package/dist/schemas/UnitItem.d.ts +4040 -691
  202. package/dist/schemas/UnitItemExtras.d.ts +1833 -0
  203. package/dist/schemas/UnitItemPricing.d.ts +228 -12
  204. package/dist/schemas/UnitItemQuestions.d.ts +120 -85
  205. package/dist/schemas/UnitItemRedemption.d.ts +28 -0
  206. package/dist/schemas/UnitMemberships.d.ts +28 -0
  207. package/dist/schemas/UnitPricing.d.ts +456 -24
  208. package/dist/schemas/UnitQuestions.d.ts +4 -9
  209. package/dist/schemas/UpdateOrderBody.d.ts +4 -4
  210. package/dist/schemas/VivawalletGateway.d.ts +11 -0
  211. package/dist/schemas/Waitlist.d.ts +19 -4
  212. package/dist/schemas/WhoIAm.d.ts +28 -111
  213. package/package.json +1 -1
  214. package/dist/models/Octo_PricingUnit.d.ts +0 -7
@@ -0,0 +1,4 @@
1
+ export type OrderCheckin = {
2
+ checkinAvailable?: boolean;
3
+ checkinUrl?: string | null;
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { Brand } from './Brand';
2
+ import type { Destination } from './Destination';
3
+ export type OrderContent = {
4
+ termsAccepted?: boolean;
5
+ destination?: Destination;
6
+ brand?: Brand;
7
+ };
@@ -1,4 +1,6 @@
1
+ import type { Gift } from './Gift';
1
2
  import type { GiftPayment } from './GiftPayment';
2
3
  export type OrderGifts = {
3
4
  giftPayment?: GiftPayment | null;
5
+ gifts?: Array<Gift>;
4
6
  };
@@ -0,0 +1,4 @@
1
+ import type { Membership } from './Membership';
2
+ export type OrderMemberships = {
3
+ membership?: Membership | null;
4
+ };
@@ -0,0 +1,4 @@
1
+ import type { Pricing } from './Pricing';
2
+ export type OrderPricing = {
3
+ pricing?: Pricing;
4
+ };
@@ -0,0 +1,8 @@
1
+ import type { QuestionAnswer } from './QuestionAnswer';
2
+ export type OrderQuestions = {
3
+ /**
4
+ * An array of questions and andswers that will be included in the order.
5
+ * This field is only present when octo/questions capability is requested.
6
+ */
7
+ questionAnswers?: Array<QuestionAnswer>;
8
+ };
@@ -0,0 +1,4 @@
1
+ export type PaypalGateway = {
2
+ clientId?: string;
3
+ orderId?: string | null;
4
+ };
@@ -0,0 +1,5 @@
1
+ export type PaytrGateway = {
2
+ id?: string | null;
3
+ iframeUrl?: string | null;
4
+ error?: string | null;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type PeachGateway = {
2
+ key?: any;
3
+ entityId?: string;
4
+ checkoutId?: string | null;
5
+ };
@@ -1,3 +1,4 @@
1
+ import type { ExtraPricing } from './ExtraPricing';
1
2
  import type { OfferDiscount } from './OfferDiscount';
2
3
  import type { Tax } from './Tax';
3
4
  export type Pricing = {
@@ -26,5 +27,6 @@ export type Pricing = {
26
27
  */
27
28
  includedTaxes: Array<Tax>;
28
29
  offerDiscount?: OfferDiscount | null;
29
- extraId?: Array<string>;
30
+ extraPricing?: Array<ExtraPricing>;
31
+ extraPricingFrom?: Array<ExtraPricing>;
30
32
  };
@@ -1,3 +1,5 @@
1
+ import type { ExtraPricing } from './ExtraPricing';
1
2
  export type PricingExtras = {
2
- extraId?: Array<string>;
3
+ extraPricing?: Array<ExtraPricing>;
4
+ extraPricingFrom?: Array<ExtraPricing>;
3
5
  };
@@ -1,5 +1,5 @@
1
+ import type { ExtraPricing } from './ExtraPricing';
1
2
  import type { OfferDiscount } from './OfferDiscount';
2
- import type { Pricing } from './Pricing';
3
3
  import type { Tax } from './Tax';
4
4
  import type { UnitType } from './UnitType';
5
5
  export type PricingUnit = {
@@ -33,5 +33,6 @@ export type PricingUnit = {
33
33
  unitId: string;
34
34
  unitType: UnitType;
35
35
  offerDiscount?: OfferDiscount | null;
36
- extraPricing?: Array<Pricing>;
36
+ extraPricing?: Array<ExtraPricing>;
37
+ extraPricingFrom?: Array<ExtraPricing>;
37
38
  };
@@ -1,4 +1,5 @@
1
- import type { Pricing } from './Pricing';
1
+ import type { ExtraPricing } from './ExtraPricing';
2
2
  export type PricingUnitExtras = {
3
- extraPricing?: Array<Pricing>;
3
+ extraPricing?: Array<ExtraPricing>;
4
+ extraPricingFrom?: Array<ExtraPricing>;
4
5
  };
@@ -116,7 +116,7 @@ export type Product = {
116
116
  /**
117
117
  * Short description for this product. Only present when ventrata/content capability is requested.
118
118
  */
119
- shortDescription?: string;
119
+ shortDescription?: string | null;
120
120
  /**
121
121
  * Categories for this product. Only present when ventrata/content capability is requested.
122
122
  */
@@ -157,8 +157,8 @@ export type Product = {
157
157
  * FAQs for this product. Only present when ventrata/content capability is requested.
158
158
  */
159
159
  faqs?: Array<FAQ>;
160
- coverImageUrl?: string;
161
- bannerImageUrl?: string;
160
+ coverImageUrl?: string | null;
161
+ bannerImageUrl?: string | null;
162
162
  videoUrl?: string | null;
163
163
  /**
164
164
  * Gallery image URLs for this product. Only present when ventrata/content capability is requested.
@@ -173,7 +173,7 @@ export type Product = {
173
173
  longitude?: number;
174
174
  address?: string;
175
175
  keywords?: Array<string>;
176
- tagline?: string;
176
+ tagline?: string | null;
177
177
  brand?: Brand;
178
178
  /**
179
179
  * Is on the object when Pricing capability is requested. Default currency for this product, if you omit the currency parameter on future endpoints this is the value the reservation system will fallback to.
@@ -191,4 +191,6 @@ export type Product = {
191
191
  isPackage?: boolean;
192
192
  packageBookingAvailabilityRequired?: boolean;
193
193
  googleOptions?: GoogleOptions;
194
+ isMembership?: boolean;
195
+ isRental?: boolean;
194
196
  };
@@ -35,7 +35,7 @@ export type ProductContent = {
35
35
  /**
36
36
  * Short description for this product. Only present when ventrata/content capability is requested.
37
37
  */
38
- shortDescription?: string;
38
+ shortDescription?: string | null;
39
39
  /**
40
40
  * Categories for this product. Only present when ventrata/content capability is requested.
41
41
  */
@@ -76,8 +76,8 @@ export type ProductContent = {
76
76
  * FAQs for this product. Only present when ventrata/content capability is requested.
77
77
  */
78
78
  faqs?: Array<FAQ>;
79
- coverImageUrl?: string;
80
- bannerImageUrl?: string;
79
+ coverImageUrl?: string | null;
80
+ bannerImageUrl?: string | null;
81
81
  videoUrl?: string | null;
82
82
  /**
83
83
  * Gallery image URLs for this product. Only present when ventrata/content capability is requested.
@@ -92,6 +92,6 @@ export type ProductContent = {
92
92
  longitude?: number;
93
93
  address?: string;
94
94
  keywords?: Array<string>;
95
- tagline?: string;
95
+ tagline?: string | null;
96
96
  brand?: Brand;
97
97
  };
@@ -0,0 +1,3 @@
1
+ export type ProductMemberships = {
2
+ isMembership?: boolean;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type ProductRentals = {
2
+ isRental?: boolean;
3
+ };
@@ -9,10 +9,6 @@ export type Question = {
9
9
  * The question that should be asked to the customer.
10
10
  */
11
11
  label: string | null;
12
- /**
13
- * A hint to help the customer answer the question.
14
- */
15
- hint: string | null;
16
12
  /**
17
13
  * The maximum length of the answer to the question.
18
14
  */
@@ -1,51 +1,9 @@
1
- import type { QuestionInputType } from './QuestionInputType';
2
- import type { SelectOption } from './SelectOption';
1
+ import type { Question } from './Question';
3
2
  export type QuestionAnswer = {
4
- /**
5
- * Unique identifier used in the platform to represent the question.
6
- */
7
- id: string;
8
- /**
9
- * The question that should be asked to the customer.
10
- */
11
- label: string | null;
12
- /**
13
- * A hint to help the customer answer the question.
14
- */
15
- hint: string | null;
16
- /**
17
- * The maximum length of the answer to the question.
18
- */
19
- maxLength: number | null;
20
- /**
21
- * The type of input that should be used to answer the question. Possible values are `radio`, `select`, `textarea`.
22
- */
23
- inputType: QuestionInputType;
24
- /**
25
- * `TRUE` identifies the question as required, and should therefore be answered by the customer
26
- */
27
- required: boolean;
28
- /**
29
- * The options that the customer can select from. Only present when `inputType` is `radio` or `select`.
30
- */
31
- selectOptions: Array<SelectOption>;
32
- coverImageUrl: string | null;
33
- /**
34
- * Description A hint to help the customer answer the question.
35
- */
36
- description: string | null;
37
- shortDescription: string | null;
38
- internalName: string | null;
39
- /**
40
- * Title The question that should be asked to the customer.
41
- */
42
- title: string | null;
43
3
  /**
44
4
  * Unique identifier used in the platform to represent the question.
45
5
  */
46
6
  questionId: string;
47
- /**
48
- * The answer to the question.
49
- */
50
- value?: string;
7
+ question: Question;
8
+ value: string | null;
51
9
  };
@@ -0,0 +1 @@
1
+ export type RealaxGateway = Record<string, any>;
@@ -0,0 +1,9 @@
1
+ import type { DurationUnit } from './DurationUnit';
2
+ export type RentalDuration = {
3
+ id: string;
4
+ title: string;
5
+ shortDescription: string | null;
6
+ durationAmount: number;
7
+ durationUnit: DurationUnit;
8
+ pricingMultiplier: number;
9
+ };
@@ -0,0 +1,5 @@
1
+ export type Scan = {
2
+ id: string;
3
+ action: string;
4
+ utcCreatedAt: string;
5
+ };
@@ -1,7 +1,7 @@
1
1
  export declare enum SettlementMethod {
2
- DEFERRED = "deferred",
3
- DEPOSIT = "deposit",
4
- DIRECT = "direct",
5
- VOUCHER = "voucher",
6
- WHOLESALE = "wholesale"
2
+ DEFERRED = "DEFERRED",
3
+ DEPOSIT = "DEPOSIT",
4
+ DIRECT = "DIRECT",
5
+ VOUCHER = "VOUCHER",
6
+ WHOLESALE = "WHOLESALE"
7
7
  }
@@ -0,0 +1,7 @@
1
+ export type SpreedlyGateway = {
2
+ env?: string;
3
+ nonce?: string;
4
+ timestamp?: string;
5
+ certificateToken?: string;
6
+ signature?: string;
7
+ };
@@ -0,0 +1,15 @@
1
+ export type StripeGateway = {
2
+ version?: string;
3
+ paymentIntent?: {
4
+ id: string;
5
+ publishableKey: string;
6
+ clientSecret: string;
7
+ amount: number;
8
+ currency: string;
9
+ } | null;
10
+ setupIntent?: {
11
+ id: string;
12
+ publishableKey: string;
13
+ clientSecret: string;
14
+ };
15
+ };
@@ -20,5 +20,5 @@ export type Ticket = {
20
20
  /**
21
21
  * An ISO8601 date time in UTC at when the voucher was redeemed, if applicable.
22
22
  */
23
- utcNoshowedAt: string | null;
23
+ utcNoshowedAt?: string | null;
24
24
  };
@@ -1,5 +1,6 @@
1
1
  import type { ContactField } from './ContactField';
2
2
  import type { Extra } from './Extra';
3
+ import type { MembershipBenefit } from './MembershipBenefit';
3
4
  import type { Pricing } from './Pricing';
4
5
  import type { Question } from './Question';
5
6
  import type { UnitRestrictions } from './UnitRestrictions';
@@ -71,4 +72,5 @@ export type Unit = {
71
72
  */
72
73
  questions?: Array<Question>;
73
74
  extras?: Array<Extra>;
75
+ membershipBenefit?: MembershipBenefit | null;
74
76
  };
@@ -1,7 +1,9 @@
1
1
  import type { BookingStatus } from './BookingStatus';
2
2
  import type { CustomerContact } from './CustomerContact';
3
+ import type { ExtraItem } from './ExtraItem';
3
4
  import type { Pricing } from './Pricing';
4
5
  import type { QuestionAnswer } from './QuestionAnswer';
6
+ import type { Scan } from './Scan';
5
7
  import type { Ticket } from './Ticket';
6
8
  import type { Unit } from './Unit';
7
9
  import type { UnitType } from './UnitType';
@@ -73,7 +75,9 @@ export type UnitItem = {
73
75
  utcNoshowedAt: string | null;
74
76
  requiredContactFields?: Array<string>;
75
77
  visibleContactFields?: Array<string>;
76
- unitType?: UnitType;
78
+ unitType: UnitType;
79
+ localDateTimeStart: string | null;
80
+ localDateTimeEnd: string | null;
77
81
  /**
78
82
  * Is on the object when Pricing capability is requested.
79
83
  */
@@ -82,4 +86,6 @@ export type UnitItem = {
82
86
  * Questions for this unit item. Only present when octo/questions capability is requested.
83
87
  */
84
88
  questionAnswers?: Array<QuestionAnswer>;
89
+ extraItems?: Array<ExtraItem>;
90
+ scans?: Array<Scan>;
85
91
  };
@@ -0,0 +1,4 @@
1
+ import type { ExtraItem } from './ExtraItem';
2
+ export type UnitItemExtras = {
3
+ extraItems?: Array<ExtraItem>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import type { Scan } from './Scan';
2
+ export type UnitItemRedemption = {
3
+ scans?: Array<Scan>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import type { MembershipBenefit } from './MembershipBenefit';
2
+ export type UnitMemberships = {
3
+ membershipBenefit?: MembershipBenefit | null;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type VivawalletGateway = {
2
+ orderCode?: string;
3
+ error?: string;
4
+ };
@@ -0,0 +1,285 @@
1
+ import { z } from 'zod';
2
+ export declare const adyenGatewaySchema: z.ZodObject<{
3
+ environment: z.ZodOptional<z.ZodString>;
4
+ clientKey: z.ZodOptional<z.ZodString>;
5
+ session: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6
+ id: z.ZodString;
7
+ sessionData: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ sessionData: string;
11
+ }, {
12
+ id: string;
13
+ sessionData: string;
14
+ }>>>;
15
+ countryCode: z.ZodOptional<z.ZodString>;
16
+ paymentMethodsConfiguration: z.ZodOptional<z.ZodObject<{
17
+ card: z.ZodObject<{
18
+ hasHolderName: z.ZodBoolean;
19
+ billingAddressRequired: z.ZodBoolean;
20
+ billingAddressMode: z.ZodNativeEnum<typeof import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode>;
21
+ data: z.ZodObject<{
22
+ holderName: z.ZodString;
23
+ billingAddress: z.ZodObject<{
24
+ street: z.ZodString;
25
+ postalCode: z.ZodString;
26
+ city: z.ZodString;
27
+ country: z.ZodString;
28
+ stateOrProvince: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ country: string;
31
+ postalCode: string;
32
+ street: string;
33
+ city: string;
34
+ stateOrProvince: string;
35
+ }, {
36
+ country: string;
37
+ postalCode: string;
38
+ street: string;
39
+ city: string;
40
+ stateOrProvince: string;
41
+ }>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ holderName: string;
44
+ billingAddress: {
45
+ country: string;
46
+ postalCode: string;
47
+ street: string;
48
+ city: string;
49
+ stateOrProvince: string;
50
+ };
51
+ }, {
52
+ holderName: string;
53
+ billingAddress: {
54
+ country: string;
55
+ postalCode: string;
56
+ street: string;
57
+ city: string;
58
+ stateOrProvince: string;
59
+ };
60
+ }>;
61
+ clickToPayConfiguration: z.ZodObject<{
62
+ merchantDisplayName: z.ZodString;
63
+ shopperEmail: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ merchantDisplayName: string;
66
+ shopperEmail: string;
67
+ }, {
68
+ merchantDisplayName: string;
69
+ shopperEmail: string;
70
+ }>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ hasHolderName: boolean;
73
+ billingAddressRequired: boolean;
74
+ billingAddressMode: import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode;
75
+ data: {
76
+ holderName: string;
77
+ billingAddress: {
78
+ country: string;
79
+ postalCode: string;
80
+ street: string;
81
+ city: string;
82
+ stateOrProvince: string;
83
+ };
84
+ };
85
+ clickToPayConfiguration: {
86
+ merchantDisplayName: string;
87
+ shopperEmail: string;
88
+ };
89
+ }, {
90
+ hasHolderName: boolean;
91
+ billingAddressRequired: boolean;
92
+ billingAddressMode: import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode;
93
+ data: {
94
+ holderName: string;
95
+ billingAddress: {
96
+ country: string;
97
+ postalCode: string;
98
+ street: string;
99
+ city: string;
100
+ stateOrProvince: string;
101
+ };
102
+ };
103
+ clickToPayConfiguration: {
104
+ merchantDisplayName: string;
105
+ shopperEmail: string;
106
+ };
107
+ }>;
108
+ paypal: z.ZodObject<{
109
+ blockPayPalCreditButton: z.ZodBoolean;
110
+ blockPayPalPayLaterButton: z.ZodBoolean;
111
+ blockPayPalVenmoButton: z.ZodBoolean;
112
+ }, "strip", z.ZodTypeAny, {
113
+ blockPayPalCreditButton: boolean;
114
+ blockPayPalPayLaterButton: boolean;
115
+ blockPayPalVenmoButton: boolean;
116
+ }, {
117
+ blockPayPalCreditButton: boolean;
118
+ blockPayPalPayLaterButton: boolean;
119
+ blockPayPalVenmoButton: boolean;
120
+ }>;
121
+ applepay: z.ZodObject<{
122
+ requiredBillingContactFields: z.ZodArray<z.ZodString, "many">;
123
+ }, "strip", z.ZodTypeAny, {
124
+ requiredBillingContactFields: string[];
125
+ }, {
126
+ requiredBillingContactFields: string[];
127
+ }>;
128
+ googlepay: z.ZodObject<{
129
+ billingAddressRequired: z.ZodBoolean;
130
+ billingAddressParameters: z.ZodNativeEnum<typeof import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ billingAddressRequired: boolean;
133
+ billingAddressParameters: import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters;
134
+ }, {
135
+ billingAddressRequired: boolean;
136
+ billingAddressParameters: import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters;
137
+ }>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ card: {
140
+ hasHolderName: boolean;
141
+ billingAddressRequired: boolean;
142
+ billingAddressMode: import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode;
143
+ data: {
144
+ holderName: string;
145
+ billingAddress: {
146
+ country: string;
147
+ postalCode: string;
148
+ street: string;
149
+ city: string;
150
+ stateOrProvince: string;
151
+ };
152
+ };
153
+ clickToPayConfiguration: {
154
+ merchantDisplayName: string;
155
+ shopperEmail: string;
156
+ };
157
+ };
158
+ paypal: {
159
+ blockPayPalCreditButton: boolean;
160
+ blockPayPalPayLaterButton: boolean;
161
+ blockPayPalVenmoButton: boolean;
162
+ };
163
+ applepay: {
164
+ requiredBillingContactFields: string[];
165
+ };
166
+ googlepay: {
167
+ billingAddressRequired: boolean;
168
+ billingAddressParameters: import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters;
169
+ };
170
+ }, {
171
+ card: {
172
+ hasHolderName: boolean;
173
+ billingAddressRequired: boolean;
174
+ billingAddressMode: import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode;
175
+ data: {
176
+ holderName: string;
177
+ billingAddress: {
178
+ country: string;
179
+ postalCode: string;
180
+ street: string;
181
+ city: string;
182
+ stateOrProvince: string;
183
+ };
184
+ };
185
+ clickToPayConfiguration: {
186
+ merchantDisplayName: string;
187
+ shopperEmail: string;
188
+ };
189
+ };
190
+ paypal: {
191
+ blockPayPalCreditButton: boolean;
192
+ blockPayPalPayLaterButton: boolean;
193
+ blockPayPalVenmoButton: boolean;
194
+ };
195
+ applepay: {
196
+ requiredBillingContactFields: string[];
197
+ };
198
+ googlepay: {
199
+ billingAddressRequired: boolean;
200
+ billingAddressParameters: import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters;
201
+ };
202
+ }>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ environment?: string | undefined;
205
+ clientKey?: string | undefined;
206
+ session?: {
207
+ id: string;
208
+ sessionData: string;
209
+ } | null | undefined;
210
+ countryCode?: string | undefined;
211
+ paymentMethodsConfiguration?: {
212
+ card: {
213
+ hasHolderName: boolean;
214
+ billingAddressRequired: boolean;
215
+ billingAddressMode: import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode;
216
+ data: {
217
+ holderName: string;
218
+ billingAddress: {
219
+ country: string;
220
+ postalCode: string;
221
+ street: string;
222
+ city: string;
223
+ stateOrProvince: string;
224
+ };
225
+ };
226
+ clickToPayConfiguration: {
227
+ merchantDisplayName: string;
228
+ shopperEmail: string;
229
+ };
230
+ };
231
+ paypal: {
232
+ blockPayPalCreditButton: boolean;
233
+ blockPayPalPayLaterButton: boolean;
234
+ blockPayPalVenmoButton: boolean;
235
+ };
236
+ applepay: {
237
+ requiredBillingContactFields: string[];
238
+ };
239
+ googlepay: {
240
+ billingAddressRequired: boolean;
241
+ billingAddressParameters: import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters;
242
+ };
243
+ } | undefined;
244
+ }, {
245
+ environment?: string | undefined;
246
+ clientKey?: string | undefined;
247
+ session?: {
248
+ id: string;
249
+ sessionData: string;
250
+ } | null | undefined;
251
+ countryCode?: string | undefined;
252
+ paymentMethodsConfiguration?: {
253
+ card: {
254
+ hasHolderName: boolean;
255
+ billingAddressRequired: boolean;
256
+ billingAddressMode: import("..").AdyenPaymentMethodsConfigurationCardBillingAddressMode;
257
+ data: {
258
+ holderName: string;
259
+ billingAddress: {
260
+ country: string;
261
+ postalCode: string;
262
+ street: string;
263
+ city: string;
264
+ stateOrProvince: string;
265
+ };
266
+ };
267
+ clickToPayConfiguration: {
268
+ merchantDisplayName: string;
269
+ shopperEmail: string;
270
+ };
271
+ };
272
+ paypal: {
273
+ blockPayPalCreditButton: boolean;
274
+ blockPayPalPayLaterButton: boolean;
275
+ blockPayPalVenmoButton: boolean;
276
+ };
277
+ applepay: {
278
+ requiredBillingContactFields: string[];
279
+ };
280
+ googlepay: {
281
+ billingAddressRequired: boolean;
282
+ billingAddressParameters: import("..").AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters;
283
+ };
284
+ } | undefined;
285
+ }>;