@ventrata/octo-types 0.0.10 → 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/GoogleOptions.d.ts +1 -1
- 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 +5 -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 +644 -161
- package/dist/schemas/AvailabilityCalendar.d.ts +609 -138
- package/dist/schemas/AvailabilityCalendarExtras.d.ts +90 -0
- package/dist/schemas/AvailabilityCalendarOffers.d.ts +86 -0
- package/dist/schemas/AvailabilityCalendarPricing.d.ts +423 -123
- 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 +423 -123
- package/dist/schemas/AvailabilityResources.d.ts +8 -0
- package/dist/schemas/AvailabilityUpdate.d.ts +856 -306
- 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/GoogleOptions.d.ts +3 -3
- 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 +143 -87
- package/dist/schemas/PricingUnitExtras.d.ts +83 -85
- package/dist/schemas/ProductContent.d.ts +46 -116
- package/dist/schemas/ProductGoogle.d.ts +5 -5
- 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/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
|
};
|
|
@@ -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
|
+
};
|
package/dist/models/Pricing.d.ts
CHANGED
|
@@ -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
|
-
|
|
30
|
+
extraPricing?: Array<ExtraPricing>;
|
|
31
|
+
extraPricingFrom?: Array<ExtraPricing>;
|
|
30
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtraPricing } from './ExtraPricing';
|
|
2
|
+
import type { OfferDiscount } from './OfferDiscount';
|
|
2
3
|
import type { Tax } from './Tax';
|
|
3
4
|
import type { UnitType } from './UnitType';
|
|
4
5
|
export type PricingUnit = {
|
|
@@ -31,5 +32,7 @@ export type PricingUnit = {
|
|
|
31
32
|
*/
|
|
32
33
|
unitId: string;
|
|
33
34
|
unitType: UnitType;
|
|
34
|
-
|
|
35
|
+
offerDiscount?: OfferDiscount | null;
|
|
36
|
+
extraPricing?: Array<ExtraPricing>;
|
|
37
|
+
extraPricingFrom?: Array<ExtraPricing>;
|
|
35
38
|
};
|
package/dist/models/Product.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -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 {
|
|
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
|
-
|
|
49
|
-
*/
|
|
50
|
-
value?: string;
|
|
7
|
+
question: Question;
|
|
8
|
+
value: string | null;
|
|
51
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RealaxGateway = Record<string, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum SettlementMethod {
|
|
2
|
-
DEFERRED = "
|
|
3
|
-
DEPOSIT = "
|
|
4
|
-
DIRECT = "
|
|
5
|
-
VOUCHER = "
|
|
6
|
-
WHOLESALE = "
|
|
2
|
+
DEFERRED = "DEFERRED",
|
|
3
|
+
DEPOSIT = "DEPOSIT",
|
|
4
|
+
DIRECT = "DIRECT",
|
|
5
|
+
VOUCHER = "VOUCHER",
|
|
6
|
+
WHOLESALE = "WHOLESALE"
|
|
7
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
|
+
};
|
package/dist/models/Ticket.d.ts
CHANGED
package/dist/models/Unit.d.ts
CHANGED
|
@@ -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
|
|
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
|
};
|