@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.
- package/dist/index.d.ts +100 -3
- package/dist/models/AdyenGateway.d.ts +9 -0
- package/dist/models/AdyenGatewaySession.d.ts +4 -0
- package/dist/models/AdyenPaymentMethodsConfiguration.d.ts +10 -0
- package/dist/models/AdyenPaymentMethodsConfigurationApplePay.d.ts +3 -0
- package/dist/models/AdyenPaymentMethodsConfigurationCard.d.ts +20 -0
- package/dist/models/AdyenPaymentMethodsConfigurationCardBillingAddressMode.d.ts +5 -0
- package/dist/models/AdyenPaymentMethodsConfigurationGooglePay.d.ts +5 -0
- package/dist/models/AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters.d.ts +4 -0
- package/dist/models/AdyenPaymentMethodsConfigurationPayPay.d.ts +5 -0
- package/dist/models/Availability.d.ts +19 -7
- package/dist/models/AvailabilityCalendar.d.ts +2 -0
- package/dist/models/AvailabilityCalendarExtras.d.ts +4 -0
- package/dist/models/AvailabilityContent.d.ts +12 -7
- package/dist/models/AvailabilityExtras.d.ts +4 -0
- package/dist/models/AvailabilityResources.d.ts +6 -0
- package/dist/models/Booking.d.ts +30 -6
- package/dist/models/BookingCardPayments.d.ts +5 -0
- package/dist/models/BookingCheckin.d.ts +5 -0
- package/dist/models/BookingContent.d.ts +1 -0
- package/dist/models/BookingExtras.d.ts +2 -0
- package/dist/models/BookingMemberships.d.ts +6 -0
- package/dist/models/BookingPackages.d.ts +2 -1
- package/dist/models/BookingPickups.d.ts +4 -4
- package/dist/models/BookingRentals.d.ts +6 -0
- package/dist/models/BridgepayGateway.d.ts +3 -0
- package/dist/models/Card.d.ts +8 -0
- package/dist/models/CardPayment.d.ts +34 -0
- package/dist/models/Category.d.ts +0 -4
- package/dist/models/CustomerContact.d.ts +3 -0
- package/dist/models/DeliveryFormat.d.ts +2 -1
- package/dist/models/DeliveryOption.d.ts +2 -2
- package/dist/models/Destination.d.ts +8 -5
- package/dist/models/DestinationPricing.d.ts +10 -0
- package/dist/models/ExternalGateway.d.ts +1 -0
- package/dist/models/{Octo_Pricing.d.ts → ExtraPricing.d.ts} +4 -3
- package/dist/models/Gift.d.ts +3 -0
- package/dist/models/GiftCardPayments.d.ts +5 -0
- package/dist/models/Include.d.ts +2 -1
- package/dist/models/Membership.d.ts +11 -0
- package/dist/models/MembershipBenefit.d.ts +5 -0
- package/dist/models/Octo_DeliveryFormat.d.ts +6 -0
- package/dist/models/Offer.d.ts +7 -0
- package/dist/models/OfferDiscount.d.ts +2 -2
- package/dist/models/OfferMemberships.d.ts +4 -0
- package/dist/models/{Octo_Tax.d.ts → OfferTax.d.ts} +2 -2
- package/dist/models/OpeningHours.d.ts +4 -3
- package/dist/models/OpeningHoursContent.d.ts +4 -3
- package/dist/models/Option.d.ts +5 -3
- package/dist/models/OptionPricing.d.ts +11 -0
- package/dist/models/OptionRentals.d.ts +4 -0
- package/dist/models/Order.d.ts +28 -8
- package/dist/models/OrderCardPayments.d.ts +5 -0
- package/dist/models/OrderCheckin.d.ts +4 -0
- package/dist/models/OrderContent.d.ts +7 -0
- package/dist/models/OrderGifts.d.ts +2 -0
- package/dist/models/OrderMemberships.d.ts +4 -0
- package/dist/models/OrderPricing.d.ts +4 -0
- package/dist/models/OrderQuestions.d.ts +8 -0
- package/dist/models/PaypalGateway.d.ts +4 -0
- package/dist/models/PaytrGateway.d.ts +5 -0
- package/dist/models/PeachGateway.d.ts +5 -0
- package/dist/models/Pricing.d.ts +3 -1
- package/dist/models/PricingExtras.d.ts +3 -1
- package/dist/models/PricingUnit.d.ts +3 -2
- package/dist/models/PricingUnitExtras.d.ts +3 -2
- package/dist/models/Product.d.ts +6 -4
- package/dist/models/ProductContent.d.ts +4 -4
- package/dist/models/ProductMemberships.d.ts +3 -0
- package/dist/models/ProductRentals.d.ts +3 -0
- package/dist/models/Question.d.ts +0 -4
- package/dist/models/QuestionAnswer.d.ts +3 -45
- package/dist/models/RealaxGateway.d.ts +1 -0
- package/dist/models/RentalDuration.d.ts +9 -0
- package/dist/models/Scan.d.ts +5 -0
- package/dist/models/SettlementMethod.d.ts +5 -5
- package/dist/models/SpreedlyGateway.d.ts +7 -0
- package/dist/models/StripeGateway.d.ts +15 -0
- package/dist/models/Ticket.d.ts +1 -1
- package/dist/models/Unit.d.ts +2 -0
- package/dist/models/UnitItem.d.ts +7 -1
- package/dist/models/UnitItemExtras.d.ts +4 -0
- package/dist/models/UnitItemRedemption.d.ts +4 -0
- package/dist/models/UnitMemberships.d.ts +4 -0
- package/dist/models/VivawalletGateway.d.ts +4 -0
- package/dist/schemas/AdyenGateway.d.ts +285 -0
- package/dist/schemas/AdyenGatewaySession.d.ts +11 -0
- package/dist/schemas/AdyenPaymentMethodsConfiguration.d.ts +188 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationApplePay.d.ts +8 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationCard.d.ts +92 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationCardBillingAddressMode.d.ts +3 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationGooglePay.d.ts +11 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters.d.ts +3 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationPayPay.d.ts +14 -0
- package/dist/schemas/Availability.d.ts +566 -170
- package/dist/schemas/AvailabilityCalendar.d.ts +531 -147
- package/dist/schemas/AvailabilityCalendarExtras.d.ts +90 -0
- package/dist/schemas/AvailabilityCalendarOffers.d.ts +86 -0
- package/dist/schemas/AvailabilityCalendarPricing.d.ts +345 -132
- package/dist/schemas/AvailabilityContent.d.ts +25 -19
- package/dist/schemas/AvailabilityExtras.d.ts +90 -0
- package/dist/schemas/AvailabilityOffers.d.ts +86 -0
- package/dist/schemas/AvailabilityPickups.d.ts +4 -4
- package/dist/schemas/AvailabilityPricing.d.ts +345 -132
- package/dist/schemas/AvailabilityResources.d.ts +8 -0
- package/dist/schemas/AvailabilityUpdate.d.ts +758 -317
- package/dist/schemas/BookingCardPayments.d.ts +889 -0
- package/dist/schemas/BookingCart.d.ts +2 -2
- package/dist/schemas/BookingCheckin.d.ts +14 -0
- package/dist/schemas/BookingConfirmationBody.d.ts +6 -6
- package/dist/schemas/BookingConfirmationRequest.d.ts +10 -10
- package/dist/schemas/BookingContact.d.ts +2 -2
- package/dist/schemas/BookingContent.d.ts +3 -0
- package/dist/schemas/BookingExtras.d.ts +1089 -76
- package/dist/schemas/BookingMemberships.d.ts +209 -0
- package/dist/schemas/BookingOffers.d.ts +2077 -261
- package/dist/schemas/BookingPackages.d.ts +16 -8
- package/dist/schemas/BookingPickups.d.ts +16 -7
- package/dist/schemas/BookingPricing.d.ts +228 -12
- package/dist/schemas/BookingQuestions.d.ts +120 -85
- package/dist/schemas/BookingRentals.d.ts +49 -0
- package/dist/schemas/BookingReservationBody.d.ts +8 -8
- package/dist/schemas/BookingReservationRequest.d.ts +14 -14
- package/dist/schemas/BookingUpdate.d.ts +20 -103
- package/dist/schemas/BookingUpdateBody.d.ts +6 -6
- package/dist/schemas/BookingUpdateRequest.d.ts +10 -10
- package/dist/schemas/BridgepayGateway.d.ts +8 -0
- package/dist/schemas/Card.d.ts +23 -0
- package/dist/schemas/CardPayment.d.ts +668 -0
- package/dist/schemas/Category.d.ts +0 -3
- package/dist/schemas/ConfirmOrderBody.d.ts +4 -4
- package/dist/schemas/CreateOrderBody.d.ts +4 -4
- package/dist/schemas/CreateWaitlistRequest.d.ts +4 -4
- package/dist/schemas/CustomerContact.d.ts +11 -2
- package/dist/schemas/DeliveryOption.d.ts +3 -3
- package/dist/schemas/Destination.d.ts +8 -55
- package/dist/schemas/DestinationPricing.d.ts +11 -0
- package/dist/schemas/ExternalGateway.d.ts +2 -0
- package/dist/schemas/Extra.d.ts +456 -24
- package/dist/schemas/ExtraItem.d.ts +839 -79
- package/dist/schemas/ExtraPricing.d.ts +56 -0
- package/dist/schemas/GetYourGuideConnection.d.ts +2 -2
- package/dist/schemas/Gift.d.ts +1180 -50
- package/dist/schemas/GiftCardPayments.d.ts +889 -0
- package/dist/schemas/Include.d.ts +6 -3
- package/dist/schemas/ItineraryItem.d.ts +2 -2
- package/dist/schemas/Membership.d.ts +124 -0
- package/dist/schemas/MembershipBenefit.d.ts +14 -0
- package/dist/schemas/Octo_DeliveryFormat.d.ts +3 -0
- package/dist/schemas/Offer.d.ts +29 -0
- package/dist/schemas/OfferCombination.d.ts +1611 -169
- package/dist/schemas/OfferComparison.d.ts +1611 -169
- package/dist/schemas/OfferDiscount.d.ts +0 -5
- package/dist/schemas/OfferMemberships.d.ts +28 -0
- package/dist/schemas/OfferTax.d.ts +17 -0
- package/dist/schemas/OpeningHours.d.ts +9 -9
- package/dist/schemas/OpeningHoursContent.d.ts +9 -9
- package/dist/schemas/OptionContent.d.ts +4 -4
- package/dist/schemas/OptionExtras.d.ts +576 -32
- package/dist/schemas/OptionPackages.d.ts +14 -7
- package/dist/schemas/OptionPickups.d.ts +4 -4
- package/dist/schemas/OptionPricing.d.ts +781 -0
- package/dist/schemas/OptionQuestions.d.ts +4 -9
- package/dist/schemas/OptionRentals.d.ts +43 -0
- package/dist/schemas/Order.d.ts +7421 -991
- package/dist/schemas/OrderCardPayments.d.ts +889 -0
- package/dist/schemas/OrderCheckin.d.ts +11 -0
- package/dist/schemas/OrderContent.d.ts +826 -0
- package/dist/schemas/OrderGifts.d.ts +2342 -0
- package/dist/schemas/OrderMemberships.d.ts +186 -0
- package/dist/schemas/OrderOffers.d.ts +2006 -276
- package/dist/schemas/OrderPricing.d.ts +393 -0
- package/dist/schemas/OrderQuestions.d.ts +139 -0
- package/dist/schemas/PackageInclude.d.ts +10 -5
- package/dist/schemas/PartnersConnection.d.ts +2 -2
- package/dist/schemas/PartnersListConnection.d.ts +28 -111
- package/dist/schemas/PaypalGateway.d.ts +11 -0
- package/dist/schemas/PaytrGateway.d.ts +14 -0
- package/dist/schemas/PeachGateway.d.ts +14 -0
- package/dist/schemas/PickupPoint.d.ts +2 -2
- package/dist/schemas/Pricing.d.ts +168 -8
- package/dist/schemas/PricingExtras.d.ts +170 -3
- package/dist/schemas/PricingOffers.d.ts +0 -7
- package/dist/schemas/PricingUnit.d.ts +83 -92
- package/dist/schemas/PricingUnitExtras.d.ts +83 -85
- package/dist/schemas/ProductContent.d.ts +46 -116
- package/dist/schemas/ProductMemberships.d.ts +8 -0
- package/dist/schemas/ProductRentals.d.ts +8 -0
- package/dist/schemas/Question.d.ts +2 -5
- package/dist/schemas/QuestionAnswer.d.ts +86 -53
- package/dist/schemas/RealaxGateway.d.ts +2 -0
- package/dist/schemas/RentalDuration.d.ts +23 -0
- package/dist/schemas/Scan.d.ts +14 -0
- package/dist/schemas/SpreedlyGateway.d.ts +20 -0
- package/dist/schemas/StripeGateway.d.ts +64 -0
- package/dist/schemas/Supplier.d.ts +14 -79
- package/dist/schemas/SupplierContent.d.ts +14 -79
- package/dist/schemas/Ticket.d.ts +8 -8
- package/dist/schemas/Unit.d.ts +1069 -75
- package/dist/schemas/UnitExtras.d.ts +576 -32
- package/dist/schemas/UnitItem.d.ts +4040 -691
- package/dist/schemas/UnitItemExtras.d.ts +1833 -0
- package/dist/schemas/UnitItemPricing.d.ts +228 -12
- package/dist/schemas/UnitItemQuestions.d.ts +120 -85
- package/dist/schemas/UnitItemRedemption.d.ts +28 -0
- package/dist/schemas/UnitMemberships.d.ts +28 -0
- package/dist/schemas/UnitPricing.d.ts +456 -24
- package/dist/schemas/UnitQuestions.d.ts +4 -9
- package/dist/schemas/UpdateOrderBody.d.ts +4 -4
- package/dist/schemas/VivawalletGateway.d.ts +11 -0
- package/dist/schemas/Waitlist.d.ts +19 -4
- package/dist/schemas/WhoIAm.d.ts +28 -111
- package/package.json +1 -1
- package/dist/models/Octo_PricingUnit.d.ts +0 -7
package/dist/models/Booking.d.ts
CHANGED
|
@@ -4,15 +4,19 @@ import type { BookingAdjustment } from './BookingAdjustment';
|
|
|
4
4
|
import type { BookingCancellation } from './BookingCancellation';
|
|
5
5
|
import type { BookingRejection } from './BookingRejection';
|
|
6
6
|
import type { BookingStatus } from './BookingStatus';
|
|
7
|
+
import type { CardPayment } from './CardPayment';
|
|
7
8
|
import type { ContactField } from './ContactField';
|
|
8
9
|
import type { CustomerContact } from './CustomerContact';
|
|
9
10
|
import type { DeliveryMethod } from './DeliveryMethod';
|
|
10
11
|
import type { DurationUnit } from './DurationUnit';
|
|
11
12
|
import type { ExtraItem } from './ExtraItem';
|
|
13
|
+
import type { ExtraPricing } from './ExtraPricing';
|
|
12
14
|
import type { GiftPayment } from './GiftPayment';
|
|
13
15
|
import type { Identity } from './Identity';
|
|
14
16
|
import type { Include } from './Include';
|
|
15
17
|
import type { Label } from './Label';
|
|
18
|
+
import type { Membership } from './Membership';
|
|
19
|
+
import type { MembershipBenefit } from './MembershipBenefit';
|
|
16
20
|
import type { Notice } from './Notice';
|
|
17
21
|
import type { Offer } from './Offer';
|
|
18
22
|
import type { OfferComparison } from './OfferComparison';
|
|
@@ -21,6 +25,7 @@ import type { PickupPoint } from './PickupPoint';
|
|
|
21
25
|
import type { Pricing } from './Pricing';
|
|
22
26
|
import type { Product } from './Product';
|
|
23
27
|
import type { QuestionAnswer } from './QuestionAnswer';
|
|
28
|
+
import type { RentalDuration } from './RentalDuration';
|
|
24
29
|
import type { Reseller } from './Reseller';
|
|
25
30
|
import type { ResourceAllocation } from './ResourceAllocation';
|
|
26
31
|
import type { Seller } from './Seller';
|
|
@@ -94,7 +99,7 @@ export type Booking = {
|
|
|
94
99
|
/**
|
|
95
100
|
* The ID of option booked.
|
|
96
101
|
*/
|
|
97
|
-
option
|
|
102
|
+
option: Option;
|
|
98
103
|
/**
|
|
99
104
|
* The object of booked option.
|
|
100
105
|
*/
|
|
@@ -186,14 +191,16 @@ export type Booking = {
|
|
|
186
191
|
localDateTimeEnd: string;
|
|
187
192
|
emailReceipt: boolean;
|
|
188
193
|
label: Label | null;
|
|
194
|
+
metadata: Record<string, string>;
|
|
195
|
+
updatable: boolean;
|
|
196
|
+
availabilityLocalDateStart: string | null;
|
|
197
|
+
availabilityLocalDateEnd: string | null;
|
|
198
|
+
guide: Seller | null;
|
|
199
|
+
driver: Seller | null;
|
|
189
200
|
/**
|
|
190
201
|
* Whether the booking requires a pickup. This field is only present when octo/pickups capability is requested.
|
|
191
202
|
*/
|
|
192
203
|
pickupRequested?: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* The pickup ID that identifies the pickup in the booking system to make this reservation. This field is only present when octo/pickups capability is requested.
|
|
195
|
-
*/
|
|
196
|
-
pickupId?: string | null;
|
|
197
204
|
/**
|
|
198
205
|
* A hotel name and address that will be included in the booking.
|
|
199
206
|
* This field is only present when octo/pickups capability is requested.
|
|
@@ -212,12 +219,17 @@ export type Booking = {
|
|
|
212
219
|
* A pickup point that will be included in the booking. This field is only present when octo/pickups capability is requested.
|
|
213
220
|
*/
|
|
214
221
|
pickupPoint?: PickupPoint | null;
|
|
222
|
+
pickupPointId?: string | null;
|
|
223
|
+
pickupHotelRoom?: string | null;
|
|
224
|
+
pickupDispatch?: string | null;
|
|
225
|
+
dropoffDispatch?: string | null;
|
|
215
226
|
duration?: string;
|
|
216
227
|
durationAmount?: number;
|
|
217
228
|
durationUnit?: DurationUnit;
|
|
218
229
|
meetingLocalDateTime?: string | null;
|
|
219
230
|
meetingPoint?: string | null;
|
|
220
231
|
meetingPointCoordinates?: string | null;
|
|
232
|
+
meetingPointDirections?: string | null;
|
|
221
233
|
notices?: Array<Notice>;
|
|
222
234
|
termsAccepted?: boolean;
|
|
223
235
|
primary?: boolean;
|
|
@@ -252,6 +264,7 @@ export type Booking = {
|
|
|
252
264
|
resourceAllocations?: Array<ResourceAllocation>;
|
|
253
265
|
giftPayment?: GiftPayment | null;
|
|
254
266
|
extraItems?: Array<ExtraItem>;
|
|
267
|
+
extraPricing?: Array<ExtraPricing>;
|
|
255
268
|
/**
|
|
256
269
|
* Whether the booking is a package.
|
|
257
270
|
* This field is only present when octo/packages capability is requested.
|
|
@@ -261,7 +274,7 @@ export type Booking = {
|
|
|
261
274
|
* The package ID that identifies the package in the booking system to make this reservation.
|
|
262
275
|
* This field is only present when octo/packages capability is requested.
|
|
263
276
|
*/
|
|
264
|
-
packageIncludeId?: string;
|
|
277
|
+
packageIncludeId?: string | null;
|
|
265
278
|
/**
|
|
266
279
|
* A package that will be included in the booking.
|
|
267
280
|
* This field is only present when octo/packages capability is requested.
|
|
@@ -272,10 +285,21 @@ export type Booking = {
|
|
|
272
285
|
* This field is only present when octo/packages capability is requested.
|
|
273
286
|
*/
|
|
274
287
|
packageBookings?: Array<Booking>;
|
|
288
|
+
packageUnitItemUuid?: any;
|
|
275
289
|
/**
|
|
276
290
|
* An array of adjustments that will be included in the booking. This field is only present when octo/adjustments capability is requested.
|
|
277
291
|
*/
|
|
278
292
|
adjustments?: Array<BookingAdjustment>;
|
|
279
293
|
identity?: Identity;
|
|
280
294
|
identityId?: string;
|
|
295
|
+
checkedIn?: boolean;
|
|
296
|
+
checkinAvailable?: boolean;
|
|
297
|
+
checkinUrl?: string | null;
|
|
298
|
+
membershipBenefit?: MembershipBenefit | null;
|
|
299
|
+
membership?: Membership | null;
|
|
300
|
+
isRental?: boolean;
|
|
301
|
+
rentalDurationId?: string | null;
|
|
302
|
+
rentalDuration?: RentalDuration | null;
|
|
303
|
+
cardPayment?: CardPayment | null;
|
|
304
|
+
returnUrl?: string | null;
|
|
281
305
|
};
|
|
@@ -10,7 +10,7 @@ export type BookingPackages = {
|
|
|
10
10
|
* The package ID that identifies the package in the booking system to make this reservation.
|
|
11
11
|
* This field is only present when octo/packages capability is requested.
|
|
12
12
|
*/
|
|
13
|
-
packageIncludeId?: string;
|
|
13
|
+
packageIncludeId?: string | null;
|
|
14
14
|
/**
|
|
15
15
|
* A package that will be included in the booking.
|
|
16
16
|
* This field is only present when octo/packages capability is requested.
|
|
@@ -21,4 +21,5 @@ export type BookingPackages = {
|
|
|
21
21
|
* This field is only present when octo/packages capability is requested.
|
|
22
22
|
*/
|
|
23
23
|
packageBookings?: Array<Booking>;
|
|
24
|
+
packageUnitItemUuid?: any;
|
|
24
25
|
};
|
|
@@ -4,10 +4,6 @@ export type BookingPickups = {
|
|
|
4
4
|
* Whether the booking requires a pickup. This field is only present when octo/pickups capability is requested.
|
|
5
5
|
*/
|
|
6
6
|
pickupRequested?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* The pickup ID that identifies the pickup in the booking system to make this reservation. This field is only present when octo/pickups capability is requested.
|
|
9
|
-
*/
|
|
10
|
-
pickupId?: string | null;
|
|
11
7
|
/**
|
|
12
8
|
* A hotel name and address that will be included in the booking.
|
|
13
9
|
* This field is only present when octo/pickups capability is requested.
|
|
@@ -26,4 +22,8 @@ export type BookingPickups = {
|
|
|
26
22
|
* A pickup point that will be included in the booking. This field is only present when octo/pickups capability is requested.
|
|
27
23
|
*/
|
|
28
24
|
pickupPoint?: PickupPoint | null;
|
|
25
|
+
pickupPointId?: string | null;
|
|
26
|
+
pickupHotelRoom?: string | null;
|
|
27
|
+
pickupDispatch?: string | null;
|
|
28
|
+
dropoffDispatch?: string | null;
|
|
29
29
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AdyenGateway } from './AdyenGateway';
|
|
2
|
+
import type { BridgepayGateway } from './BridgepayGateway';
|
|
3
|
+
import type { Card } from './Card';
|
|
4
|
+
import type { ExternalGateway } from './ExternalGateway';
|
|
5
|
+
import type { PaypalGateway } from './PaypalGateway';
|
|
6
|
+
import type { PaytrGateway } from './PaytrGateway';
|
|
7
|
+
import type { PeachGateway } from './PeachGateway';
|
|
8
|
+
import type { RealaxGateway } from './RealaxGateway';
|
|
9
|
+
import type { SpreedlyGateway } from './SpreedlyGateway';
|
|
10
|
+
import type { StripeGateway } from './StripeGateway';
|
|
11
|
+
import type { VivawalletGateway } from './VivawalletGateway';
|
|
12
|
+
export type CardPayment = {
|
|
13
|
+
id: string;
|
|
14
|
+
gateway: string;
|
|
15
|
+
source: string;
|
|
16
|
+
paid: number;
|
|
17
|
+
paidSurcharge: number;
|
|
18
|
+
balance: number;
|
|
19
|
+
surcharge: number;
|
|
20
|
+
outstandingBalance: number;
|
|
21
|
+
currency: string;
|
|
22
|
+
currencyPrecision: number;
|
|
23
|
+
reusableCards: Array<Card>;
|
|
24
|
+
adyen?: AdyenGateway;
|
|
25
|
+
vivawallet?: VivawalletGateway;
|
|
26
|
+
stripe?: StripeGateway;
|
|
27
|
+
bridgepay?: BridgepayGateway;
|
|
28
|
+
realax?: RealaxGateway;
|
|
29
|
+
paypal?: PaypalGateway;
|
|
30
|
+
external?: ExternalGateway;
|
|
31
|
+
paytr?: PaytrGateway;
|
|
32
|
+
spreedly?: SpreedlyGateway;
|
|
33
|
+
peach?: PeachGateway;
|
|
34
|
+
};
|
|
@@ -31,8 +31,4 @@ export type Category = {
|
|
|
31
31
|
* The URL of the image that represents the category.
|
|
32
32
|
*/
|
|
33
33
|
bannerImageUrl: string | null;
|
|
34
|
-
/**
|
|
35
|
-
* An array of product IDs that the category falls under. This field is not visible if this Category is a product category.
|
|
36
|
-
*/
|
|
37
|
-
productIds: Array<string>;
|
|
38
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Octo_DeliveryFormat } from './Octo_DeliveryFormat';
|
|
2
2
|
export type DeliveryOption = {
|
|
3
3
|
/**
|
|
4
4
|
* The format in which vouchers for this product are delivered. Each format specifies how the vouchers will be represented:
|
|
@@ -9,7 +9,7 @@ export type DeliveryOption = {
|
|
|
9
9
|
* PKPASS_URL: A URL for adding the ticket to Apple Wallet (Passbook) for easy access on iOS devices.
|
|
10
10
|
* This field ensures resellers can understand and integrate the appropriate ticket delivery formats specifically associated with this product."
|
|
11
11
|
*/
|
|
12
|
-
deliveryFormat:
|
|
12
|
+
deliveryFormat: Octo_DeliveryFormat;
|
|
13
13
|
/**
|
|
14
14
|
* The string with the value of the delivery option, e.g. value behind the QRCODE, CODE128, AZTECCODE, or URL hosting the file for PDF_URL or PKPASS_URL)
|
|
15
15
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Brand } from './Brand';
|
|
2
|
-
import type { Category } from './Category';
|
|
3
2
|
import type { DestinationContact } from './DestinationContact';
|
|
4
3
|
import type { Notice } from './Notice';
|
|
5
4
|
export type Destination = {
|
|
@@ -78,11 +77,15 @@ export type Destination = {
|
|
|
78
77
|
* The Instagram URL for the destination.
|
|
79
78
|
*/
|
|
80
79
|
instagramUrl: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* An array of categories that the destination falls under.
|
|
83
|
-
*/
|
|
84
|
-
categories: Array<Category>;
|
|
85
80
|
tags: Array<string>;
|
|
86
81
|
address: string | null;
|
|
87
82
|
notices: Array<Notice>;
|
|
83
|
+
/**
|
|
84
|
+
* 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.
|
|
85
|
+
*/
|
|
86
|
+
defaultCurrency?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Is on the object when Pricing capability is requested. All the possible currencies that we accept for this product.
|
|
89
|
+
*/
|
|
90
|
+
availableCurrencies?: Array<string>;
|
|
88
91
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type DestinationPricing = {
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
*/
|
|
5
|
+
defaultCurrency?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Is on the object when Pricing capability is requested. All the possible currencies that we accept for this product.
|
|
8
|
+
*/
|
|
9
|
+
availableCurrencies?: Array<string>;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ExternalGateway = Record<string, any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
1
|
+
import type { Tax } from './Tax';
|
|
2
|
+
export type ExtraPricing = {
|
|
3
|
+
extraId: string;
|
|
3
4
|
/**
|
|
4
5
|
* Represents the advertised marketing price, which must be equal to or higher than pricingFrom.retail. Typically used for strike-through pricing, it highlights the original or component-based value of the product when the retail price reflects a discount or bundled offer. For example, a package product combining multiple components (e.g., hotel + tour + meals) may have a total component value of $500 (original), while the bundled retail price is $400. In such cases, the original price is displayed to show savings.This field should only be shown when it is higher than pricingFrom.retail and must accurately reflect a valid reference price, ensuring transparency and trust.
|
|
5
6
|
*/
|
|
@@ -23,5 +24,5 @@ export type Octo_Pricing = {
|
|
|
23
24
|
/**
|
|
24
25
|
* This field defines the number of decimal places used for the currency in the pricingFrom object, ensuring precise representation and preventing rounding errors during calculations. For example, in currencies like USD, which have a precision of 2, prices are expressed in cents (e.g., $45.00 is represented as 4500). In currencies like JPY, which have a precision of 0, prices are expressed as whole yen amounts (e.g., ¥4500 is represented as 4500). By aligning with the specific decimal requirements of different currencies, this field guarantees accurate pricing calculations and consistent handling across various currency formats.
|
|
25
26
|
*/
|
|
26
|
-
includedTaxes: Array<
|
|
27
|
+
includedTaxes: Array<Tax>;
|
|
27
28
|
};
|
package/dist/models/Gift.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Agent } from './Agent';
|
|
2
2
|
import type { BookingCancellation } from './BookingCancellation';
|
|
3
3
|
import type { BookingStatus } from './BookingStatus';
|
|
4
|
+
import type { CardPayment } from './CardPayment';
|
|
4
5
|
import type { ContactField } from './ContactField';
|
|
5
6
|
import type { CustomerContact } from './CustomerContact';
|
|
6
7
|
import type { DeliveryMethod } from './DeliveryMethod';
|
|
@@ -47,4 +48,6 @@ export type Gift = {
|
|
|
47
48
|
voucher: Ticket;
|
|
48
49
|
identity?: Identity;
|
|
49
50
|
identityId?: string;
|
|
51
|
+
cardPayment?: CardPayment | null;
|
|
52
|
+
returnUrl?: string | null;
|
|
50
53
|
};
|
package/dist/models/Include.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CustomerContact } from './CustomerContact';
|
|
2
|
+
export type Membership = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
contact: CustomerContact;
|
|
6
|
+
reference: string | null;
|
|
7
|
+
resellerReference: string;
|
|
8
|
+
supplierReference: string;
|
|
9
|
+
availabilityLocalDateStart: string | null;
|
|
10
|
+
availabilityLocalDateEnd: string | null;
|
|
11
|
+
};
|
package/dist/models/Offer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MembershipBenefit } from './MembershipBenefit';
|
|
1
2
|
import type { NetDiscount } from './NetDiscount';
|
|
2
3
|
import type { OfferRestrictions } from './OfferRestrictions';
|
|
3
4
|
export type Offer = {
|
|
@@ -5,6 +6,10 @@ export type Offer = {
|
|
|
5
6
|
* The title or name of the offer.
|
|
6
7
|
*/
|
|
7
8
|
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* The label of the offer.
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
8
13
|
/**
|
|
9
14
|
* The unique code used to apply the offer.
|
|
10
15
|
*/
|
|
@@ -25,4 +30,6 @@ export type Offer = {
|
|
|
25
30
|
* Indicates whether the offer can currently be applied.
|
|
26
31
|
*/
|
|
27
32
|
usable: boolean;
|
|
33
|
+
unusableReason: string | null;
|
|
34
|
+
membershipBenefit?: MembershipBenefit | null;
|
|
28
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OfferTax } from './OfferTax';
|
|
2
2
|
export type OfferDiscount = {
|
|
3
3
|
/**
|
|
4
4
|
* Net price before discount.
|
|
@@ -11,5 +11,5 @@ export type OfferDiscount = {
|
|
|
11
11
|
/**
|
|
12
12
|
* List of taxes included in the discounted price.
|
|
13
13
|
*/
|
|
14
|
-
includedTaxes: Array<
|
|
14
|
+
includedTaxes: Array<OfferTax>;
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type OfferTax = {
|
|
2
2
|
/**
|
|
3
3
|
* The name of the tax or fee, such as "VAT", "City Tax", or "Service Charge". This field provides clear labeling of the tax or fee being applied, making the pricing structure easier to interpret.
|
|
4
4
|
*/
|
|
@@ -7,9 +7,9 @@ export type Octo_Tax = {
|
|
|
7
7
|
* The value of the tax or fee included in the retail price, expressed in the same currency as the pricingFrom.currency. This value indicates the portion of the end-customer price attributable to the specific tax or fee.
|
|
8
8
|
*/
|
|
9
9
|
retail: number;
|
|
10
|
-
original: number;
|
|
11
10
|
/**
|
|
12
11
|
* The value of the tax or fee included in the net price, expressed in the same currency as the pricingFrom.currency. This value indicates the portion of the reseller’s cost attributable to the specific tax or fee.
|
|
13
12
|
*/
|
|
14
13
|
net: number | null;
|
|
14
|
+
shortDescription: string | null;
|
|
15
15
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DurationUnit } from './DurationUnit';
|
|
1
2
|
/**
|
|
2
3
|
* Defines the opening hours for this availability, even for start time-based availability. Supports multiple periods for breaks in the day.
|
|
3
4
|
*/
|
|
@@ -13,13 +14,13 @@ export type OpeningHours = {
|
|
|
13
14
|
/**
|
|
14
15
|
* Optional label for how frequently the event occurs (e.g., daily, weekly).
|
|
15
16
|
*/
|
|
16
|
-
frequency?: string;
|
|
17
|
+
frequency?: string | null;
|
|
17
18
|
/**
|
|
18
19
|
* Optional numeric amount representing the interval frequency.
|
|
19
20
|
*/
|
|
20
|
-
frequencyAmount?: number;
|
|
21
|
+
frequencyAmount?: number | null;
|
|
21
22
|
/**
|
|
22
23
|
* Optional unit for frequency (e.g., day, week, month).
|
|
23
24
|
*/
|
|
24
|
-
frequencyUnit?:
|
|
25
|
+
frequencyUnit?: DurationUnit;
|
|
25
26
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import type { DurationUnit } from './DurationUnit';
|
|
1
2
|
export type OpeningHoursContent = {
|
|
2
3
|
/**
|
|
3
4
|
* Optional label for how frequently the event occurs (e.g., daily, weekly).
|
|
4
5
|
*/
|
|
5
|
-
frequency?: string;
|
|
6
|
+
frequency?: string | null;
|
|
6
7
|
/**
|
|
7
8
|
* Optional numeric amount representing the interval frequency.
|
|
8
9
|
*/
|
|
9
|
-
frequencyAmount?: number;
|
|
10
|
+
frequencyAmount?: number | null;
|
|
10
11
|
/**
|
|
11
12
|
* Optional unit for frequency (e.g., day, week, month).
|
|
12
13
|
*/
|
|
13
|
-
frequencyUnit?:
|
|
14
|
+
frequencyUnit?: DurationUnit;
|
|
14
15
|
};
|
package/dist/models/Option.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ import type { ContactField } from './ContactField';
|
|
|
2
2
|
import type { DurationUnit } from './DurationUnit';
|
|
3
3
|
import type { Extra } from './Extra';
|
|
4
4
|
import type { ItineraryItem } from './ItineraryItem';
|
|
5
|
-
import type { Octo_Pricing } from './Octo_Pricing';
|
|
6
5
|
import type { OptionRestrictions } from './OptionRestrictions';
|
|
7
6
|
import type { PackageInclude } from './PackageInclude';
|
|
8
7
|
import type { PickupPoint } from './PickupPoint';
|
|
9
8
|
import type { Point } from './Point';
|
|
9
|
+
import type { Pricing } from './Pricing';
|
|
10
10
|
import type { Question } from './Question';
|
|
11
|
+
import type { RentalDuration } from './RentalDuration';
|
|
11
12
|
import type { Unit } from './Unit';
|
|
12
13
|
export type Option = {
|
|
13
14
|
/**
|
|
@@ -143,15 +144,16 @@ export type Option = {
|
|
|
143
144
|
/**
|
|
144
145
|
* Is on the object when Pricing capability is requested.
|
|
145
146
|
*/
|
|
146
|
-
pricingFrom?: Array<
|
|
147
|
+
pricingFrom?: Array<Pricing>;
|
|
147
148
|
/**
|
|
148
149
|
* Is on the object when Pricing capability is requested.
|
|
149
150
|
*/
|
|
150
|
-
pricing?: Array<
|
|
151
|
+
pricing?: Array<Pricing>;
|
|
151
152
|
/**
|
|
152
153
|
* Questions for this option. Only present when octo/questions capability is requested.
|
|
153
154
|
*/
|
|
154
155
|
questions?: Array<Question>;
|
|
155
156
|
extras?: Array<Extra>;
|
|
156
157
|
packageIncludes?: Array<PackageInclude>;
|
|
158
|
+
rentalDurations?: Array<RentalDuration>;
|
|
157
159
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Pricing } from './Pricing';
|
|
2
|
+
export type OptionPricing = {
|
|
3
|
+
/**
|
|
4
|
+
* Is on the object when Pricing capability is requested.
|
|
5
|
+
*/
|
|
6
|
+
pricingFrom?: Array<Pricing>;
|
|
7
|
+
/**
|
|
8
|
+
* Is on the object when Pricing capability is requested.
|
|
9
|
+
*/
|
|
10
|
+
pricing?: Array<Pricing>;
|
|
11
|
+
};
|
package/dist/models/Order.d.ts
CHANGED
|
@@ -1,36 +1,56 @@
|
|
|
1
|
-
import type { Agent } from './Agent';
|
|
2
1
|
import type { Booking } from './Booking';
|
|
2
|
+
import type { Brand } from './Brand';
|
|
3
|
+
import type { CardPayment } from './CardPayment';
|
|
3
4
|
import type { ContactField } from './ContactField';
|
|
4
5
|
import type { CustomerContact } from './CustomerContact';
|
|
6
|
+
import type { Destination } from './Destination';
|
|
7
|
+
import type { Gift } from './Gift';
|
|
5
8
|
import type { GiftPayment } from './GiftPayment';
|
|
6
9
|
import type { Identity } from './Identity';
|
|
10
|
+
import type { Membership } from './Membership';
|
|
7
11
|
import type { OfferCombination } from './OfferCombination';
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
12
|
+
import type { Pricing } from './Pricing';
|
|
13
|
+
import type { QuestionAnswer } from './QuestionAnswer';
|
|
10
14
|
import type { SettlementMethod } from './SettlementMethod';
|
|
11
|
-
import type {
|
|
15
|
+
import type { Ticket } from './Ticket';
|
|
12
16
|
export type Order = {
|
|
13
17
|
id: string;
|
|
14
18
|
testMode: boolean;
|
|
15
19
|
settlementMethod: SettlementMethod;
|
|
20
|
+
settlementMethods: Array<SettlementMethod>;
|
|
16
21
|
supplierReference: string;
|
|
17
22
|
quote: boolean;
|
|
18
23
|
status: string;
|
|
24
|
+
utcCreatedAt: string;
|
|
19
25
|
utcExpiresAt: string | null;
|
|
20
26
|
utcConfirmedAt: string | null;
|
|
27
|
+
utcUpdatedAt: string | null;
|
|
21
28
|
cancellable: boolean;
|
|
22
29
|
confirmable: boolean;
|
|
23
|
-
|
|
24
|
-
agent?: Agent;
|
|
30
|
+
updatable: boolean;
|
|
25
31
|
contact?: CustomerContact;
|
|
26
32
|
emailReceipt?: boolean;
|
|
27
33
|
bookings: Array<Booking>;
|
|
28
34
|
visibleContactFields: Array<ContactField>;
|
|
29
35
|
requiredContactFields: Array<ContactField>;
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
voucher: Ticket | null;
|
|
37
|
+
termsAccepted?: boolean;
|
|
38
|
+
destination?: Destination;
|
|
39
|
+
brand?: Brand;
|
|
40
|
+
pricing?: Pricing;
|
|
41
|
+
/**
|
|
42
|
+
* An array of questions and andswers that will be included in the order.
|
|
43
|
+
* This field is only present when octo/questions capability is requested.
|
|
44
|
+
*/
|
|
45
|
+
questionAnswers?: Array<QuestionAnswer>;
|
|
32
46
|
identity?: Identity;
|
|
33
47
|
identityId?: string;
|
|
34
48
|
offerCombinations?: Array<OfferCombination>;
|
|
35
49
|
giftPayment?: GiftPayment | null;
|
|
50
|
+
gifts?: Array<Gift>;
|
|
51
|
+
checkinAvailable?: boolean;
|
|
52
|
+
checkinUrl?: string | null;
|
|
53
|
+
membership?: Membership | null;
|
|
54
|
+
cardPayment?: CardPayment | null;
|
|
55
|
+
returnUrl?: string | null;
|
|
36
56
|
};
|