@drttix/drt-sdk 2.0.0 → 2.0.1
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/cjs/index.d.ts +1 -0
- package/dist/cjs/src/definitions/shopper.d.ts +2 -0
- package/dist/cjs/src/definitions/shopper.js +6 -4
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/models/CreateShowRequestDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/ShowsList.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +23 -1
- package/dist/cjs/src/generated/shopper/index.js +5 -1
- package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.js +12 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.js +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/cjs/src/generated/shopper/services/CartService.js +50 -21
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/cjs/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +12 -6
- package/dist/cjs/src/generated/shopper/services/EventService.js +30 -13
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/cjs/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.js +78 -0
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -8
- package/dist/cjs/src/generated/shopper/services/SeatService.js +66 -17
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +39 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.js +77 -13
- package/dist/cjs/src/generated/shopper/types.d.ts +21 -1
- package/dist/cjs/src/staging/index.d.ts +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/src/definitions/shopper.d.ts +2 -0
- package/dist/esm/src/definitions/shopper.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/models/CreateShowRequestDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/ShowsList.d.ts +12 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +23 -1
- package/dist/esm/src/generated/shopper/index.js +2 -0
- package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.js +9 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.js +1 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.js +1 -0
- package/dist/esm/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/esm/src/generated/shopper/services/CartService.js +50 -21
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/esm/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +12 -6
- package/dist/esm/src/generated/shopper/services/EventService.js +30 -13
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/esm/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.js +74 -0
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -8
- package/dist/esm/src/generated/shopper/services/SeatService.js +66 -17
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +39 -6
- package/dist/esm/src/generated/shopper/services/SessionService.js +77 -13
- package/dist/esm/src/generated/shopper/types.d.ts +21 -1
- package/dist/esm/src/staging/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/definitions/shopper.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/models/CreateShowRequestDto.ts +1 -1
- package/src/generated/portal/models/CreateUpdateProductRequestDto.ts +4 -4
- package/src/generated/portal/models/ProductDetailResponseDto.ts +2 -2
- package/src/generated/portal/models/SeatResponseDto.ts +1 -0
- package/src/generated/portal/models/ShowsList.ts +12 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +23 -1
- package/src/generated/shopper/models/Account.ts +4 -0
- package/src/generated/shopper/models/AssetDownloadRequest.ts +9 -0
- package/src/generated/shopper/models/AssetDownloadResponse.ts +12 -0
- package/src/generated/shopper/models/CapabilityManifestDto.ts +5 -1
- package/src/generated/shopper/models/ClientRequestErrorResponse.ts +11 -0
- package/src/generated/shopper/models/CreatePaymentLinkBody.ts +23 -0
- package/src/generated/shopper/models/CreatePaymentLinkResponse.ts +45 -0
- package/src/generated/shopper/models/EventDetails.ts +4 -0
- package/src/generated/shopper/models/EventFormat.ts +12 -0
- package/src/generated/shopper/models/EventListItem.ts +4 -0
- package/src/generated/shopper/models/ExchangeValidateResponse.ts +4 -0
- package/src/generated/shopper/models/FullEventDetails.ts +4 -0
- package/src/generated/shopper/models/ManifestSeat.ts +19 -0
- package/src/generated/shopper/models/OrderLookupBody.ts +19 -0
- package/src/generated/shopper/models/OrderLookupResult.ts +19 -0
- package/src/generated/shopper/models/OrderRefundDetails.ts +1 -0
- package/src/generated/shopper/models/PaymentLinkSession.ts +23 -0
- package/src/generated/shopper/models/PaymentLinkStatus.ts +37 -0
- package/src/generated/shopper/models/Receipt.ts +2 -0
- package/src/generated/shopper/models/RefundExchangeOffer.ts +43 -0
- package/src/generated/shopper/models/RefundReason.ts +1 -0
- package/src/generated/shopper/models/RefundRequestInfo.ts +2 -0
- package/src/generated/shopper/models/RegisterStreamResponse.ts +4 -0
- package/src/generated/shopper/models/ResetStreamInviteRequest.ts +13 -0
- package/src/generated/shopper/models/SaveStreamInvitesRequest.ts +15 -0
- package/src/generated/shopper/models/SaveStreamInvitesResponse.ts +12 -0
- package/src/generated/shopper/models/SeatManifest.ts +25 -0
- package/src/generated/shopper/models/SharedStream.ts +42 -0
- package/src/generated/shopper/models/ShowExtras.ts +4 -0
- package/src/generated/shopper/models/StartSupportSessionDto.ts +15 -0
- package/src/generated/shopper/models/StreamAuthorization.ts +19 -0
- package/src/generated/shopper/models/StreamInvite.ts +24 -0
- package/src/generated/shopper/models/StreamInviteInput.ts +12 -0
- package/src/generated/shopper/models/StreamInvitesResponse.ts +13 -0
- package/src/generated/shopper/models/SupportSessionStateDto.ts +19 -0
- package/src/generated/shopper/services/AccountService.ts +20 -4
- package/src/generated/shopper/services/CartService.ts +50 -10
- package/src/generated/shopper/services/CheckoutService.ts +40 -8
- package/src/generated/shopper/services/CodeService.ts +60 -6
- package/src/generated/shopper/services/DonationService.ts +13 -2
- package/src/generated/shopper/services/EventService.ts +30 -6
- package/src/generated/shopper/services/GiftCardService.ts +25 -5
- package/src/generated/shopper/services/OrderService.ts +411 -30
- package/src/generated/shopper/services/PaymentLinkService.ts +93 -0
- package/src/generated/shopper/services/PaymentService.ts +16 -4
- package/src/generated/shopper/services/ProductService.ts +15 -3
- package/src/generated/shopper/services/SeatService.ts +71 -8
- package/src/generated/shopper/services/SessionService.ts +86 -6
- package/src/generated/shopper/types.ts +21 -1
- package/src/generated/shopper/models/PaymentFail.ts +0 -23
|
@@ -19,16 +19,20 @@ export class CheckoutService {
|
|
|
19
19
|
* Get checkout page data
|
|
20
20
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
21
21
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
22
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
22
23
|
* @returns CheckoutPageData Returns checkout page data.
|
|
23
24
|
* @throws ApiError
|
|
24
25
|
*/
|
|
25
26
|
public static getCheckout(
|
|
26
27
|
context?: { shopperGuid?: string; accountId?: string },
|
|
28
|
+
xDrtDomain?: string,
|
|
27
29
|
): CancelablePromise<CheckoutPageData> {
|
|
28
30
|
return __request(OpenAPI, {
|
|
29
31
|
method: 'GET',
|
|
30
32
|
url: '/checkout',
|
|
31
|
-
headers:
|
|
33
|
+
headers: {
|
|
34
|
+
'x-drt-domain': xDrtDomain,
|
|
35
|
+
},
|
|
32
36
|
errors: {
|
|
33
37
|
400: `Bad Request error with error details.`,
|
|
34
38
|
404: `Not found error with error details.`,
|
|
@@ -41,17 +45,21 @@ export class CheckoutService {
|
|
|
41
45
|
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Supports both token (EMS/Authorize.net) and Stripe payment flows.
|
|
42
46
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
43
47
|
* @param requestBody Checkout form data.
|
|
48
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
44
49
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
45
50
|
* @throws ApiError
|
|
46
51
|
*/
|
|
47
52
|
public static submitCheckout(
|
|
48
53
|
requestBody: CheckoutSubmitBody,
|
|
49
54
|
context?: { shopperGuid?: string; accountId?: string },
|
|
55
|
+
xDrtDomain?: string,
|
|
50
56
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
51
57
|
return __request(OpenAPI, {
|
|
52
58
|
method: 'POST',
|
|
53
59
|
url: '/checkout',
|
|
54
|
-
headers:
|
|
60
|
+
headers: {
|
|
61
|
+
'x-drt-domain': xDrtDomain,
|
|
62
|
+
},
|
|
55
63
|
body: requestBody,
|
|
56
64
|
mediaType: 'application/json',
|
|
57
65
|
errors: {
|
|
@@ -66,17 +74,21 @@ export class CheckoutService {
|
|
|
66
74
|
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
67
75
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
68
76
|
* @param curr The current step. Defaults to 'seats'.
|
|
77
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
69
78
|
* @returns NextStepResponse Returns the next step.
|
|
70
79
|
* @throws ApiError
|
|
71
80
|
*/
|
|
72
81
|
public static getNextStep(
|
|
73
82
|
context?: { shopperGuid?: string; accountId?: string },
|
|
74
83
|
curr?: string,
|
|
84
|
+
xDrtDomain?: string,
|
|
75
85
|
): CancelablePromise<NextStepResponse> {
|
|
76
86
|
return __request(OpenAPI, {
|
|
77
87
|
method: 'GET',
|
|
78
88
|
url: '/checkout/next-step',
|
|
79
|
-
headers:
|
|
89
|
+
headers: {
|
|
90
|
+
'x-drt-domain': xDrtDomain,
|
|
91
|
+
},
|
|
80
92
|
query: {
|
|
81
93
|
'curr': curr,
|
|
82
94
|
},
|
|
@@ -91,16 +103,20 @@ export class CheckoutService {
|
|
|
91
103
|
* Get applicable checkout steps
|
|
92
104
|
* Returns the wizard steps that apply to this session, in order, with required flags. Merchandise and donations appear only when items or funds are available. JSON only (replaces the legacy HTML step bar).
|
|
93
105
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
106
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
94
107
|
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
95
108
|
* @throws ApiError
|
|
96
109
|
*/
|
|
97
110
|
public static getSteps(
|
|
98
111
|
context?: { shopperGuid?: string; accountId?: string },
|
|
112
|
+
xDrtDomain?: string,
|
|
99
113
|
): CancelablePromise<CheckoutStepsResponse> {
|
|
100
114
|
return __request(OpenAPI, {
|
|
101
115
|
method: 'GET',
|
|
102
116
|
url: '/checkout/steps',
|
|
103
|
-
headers:
|
|
117
|
+
headers: {
|
|
118
|
+
'x-drt-domain': xDrtDomain,
|
|
119
|
+
},
|
|
104
120
|
errors: {
|
|
105
121
|
400: `Bad Request error with error details.`,
|
|
106
122
|
404: `Not found error with error details.`,
|
|
@@ -113,17 +129,21 @@ export class CheckoutService {
|
|
|
113
129
|
* Saves a payment nonce (token) from EMS/Authorize.net to the session.
|
|
114
130
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
115
131
|
* @param requestBody Nonce data to save.
|
|
132
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
116
133
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
117
134
|
* @throws ApiError
|
|
118
135
|
*/
|
|
119
136
|
public static saveNonce(
|
|
120
137
|
requestBody: SaveNonceBody,
|
|
121
138
|
context?: { shopperGuid?: string; accountId?: string },
|
|
139
|
+
xDrtDomain?: string,
|
|
122
140
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
123
141
|
return __request(OpenAPI, {
|
|
124
142
|
method: 'POST',
|
|
125
143
|
url: '/checkout/nonce',
|
|
126
|
-
headers:
|
|
144
|
+
headers: {
|
|
145
|
+
'x-drt-domain': xDrtDomain,
|
|
146
|
+
},
|
|
127
147
|
body: requestBody,
|
|
128
148
|
mediaType: 'application/json',
|
|
129
149
|
errors: {
|
|
@@ -137,16 +157,20 @@ export class CheckoutService {
|
|
|
137
157
|
* Clear payment nonce
|
|
138
158
|
* Clears the payment nonce and related CC fields from the session.
|
|
139
159
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
160
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
140
161
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
141
162
|
* @throws ApiError
|
|
142
163
|
*/
|
|
143
164
|
public static clearNonce(
|
|
144
165
|
context?: { shopperGuid?: string; accountId?: string },
|
|
166
|
+
xDrtDomain?: string,
|
|
145
167
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
146
168
|
return __request(OpenAPI, {
|
|
147
169
|
method: 'DELETE',
|
|
148
170
|
url: '/checkout/nonce',
|
|
149
|
-
headers:
|
|
171
|
+
headers: {
|
|
172
|
+
'x-drt-domain': xDrtDomain,
|
|
173
|
+
},
|
|
150
174
|
errors: {
|
|
151
175
|
400: `Bad Request error with error details.`,
|
|
152
176
|
404: `Not found error with error details.`,
|
|
@@ -159,17 +183,21 @@ export class CheckoutService {
|
|
|
159
183
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
160
184
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
161
185
|
* @param requestBody Partial checkout data to auto-save.
|
|
186
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
162
187
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
163
188
|
* @throws ApiError
|
|
164
189
|
*/
|
|
165
190
|
public static saveDetails(
|
|
166
191
|
requestBody: SaveDetailsBody,
|
|
167
192
|
context?: { shopperGuid?: string; accountId?: string },
|
|
193
|
+
xDrtDomain?: string,
|
|
168
194
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
169
195
|
return __request(OpenAPI, {
|
|
170
196
|
method: 'POST',
|
|
171
197
|
url: '/checkout/details',
|
|
172
|
-
headers:
|
|
198
|
+
headers: {
|
|
199
|
+
'x-drt-domain': xDrtDomain,
|
|
200
|
+
},
|
|
173
201
|
body: requestBody,
|
|
174
202
|
mediaType: 'application/json',
|
|
175
203
|
errors: {
|
|
@@ -183,16 +211,20 @@ export class CheckoutService {
|
|
|
183
211
|
* Fill contact fields from POS defaults
|
|
184
212
|
* Fills empty session contact fields (name/email/phone) from the account POS defaults and returns the resulting contact. Logged-in shoppers only (legacy default-shopper-set-info).
|
|
185
213
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
214
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
186
215
|
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
187
216
|
* @throws ApiError
|
|
188
217
|
*/
|
|
189
218
|
public static fillDefaultInfo(
|
|
190
219
|
context?: { shopperGuid?: string; accountId?: string },
|
|
220
|
+
xDrtDomain?: string,
|
|
191
221
|
): CancelablePromise<PosDefaultInfoResponse> {
|
|
192
222
|
return __request(OpenAPI, {
|
|
193
223
|
method: 'POST',
|
|
194
224
|
url: '/checkout/default-info',
|
|
195
|
-
headers:
|
|
225
|
+
headers: {
|
|
226
|
+
'x-drt-domain': xDrtDomain,
|
|
227
|
+
},
|
|
196
228
|
errors: {
|
|
197
229
|
400: `Bad Request error with error details.`,
|
|
198
230
|
404: `Not found error with error details.`,
|
|
@@ -6,6 +6,7 @@ import type { CodeDto } from '../models/CodeDto';
|
|
|
6
6
|
import type { CorrelatedCode } from '../models/CorrelatedCode';
|
|
7
7
|
import type { HasAccessResponse } from '../models/HasAccessResponse';
|
|
8
8
|
import type { PriorityCode } from '../models/PriorityCode';
|
|
9
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
9
10
|
import type { SuccessWithTime } from '../models/SuccessWithTime';
|
|
10
11
|
import type { UniversalCodeResponse } from '../models/UniversalCodeResponse';
|
|
11
12
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -18,17 +19,21 @@ export class CodeService {
|
|
|
18
19
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
19
20
|
* @param eventId ID of the event for which access is requested
|
|
20
21
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
22
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
21
23
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
22
24
|
* @throws ApiError
|
|
23
25
|
*/
|
|
24
26
|
public static requestEventAccess(
|
|
25
27
|
eventId: number,
|
|
26
28
|
context?: { shopperGuid?: string; accountId?: string },
|
|
29
|
+
xDrtDomain?: string,
|
|
27
30
|
): CancelablePromise<HasAccessResponse> {
|
|
28
31
|
return __request(OpenAPI, {
|
|
29
32
|
method: 'GET',
|
|
30
33
|
url: '/code/access',
|
|
31
|
-
headers:
|
|
34
|
+
headers: {
|
|
35
|
+
'x-drt-domain': xDrtDomain,
|
|
36
|
+
},
|
|
32
37
|
query: {
|
|
33
38
|
'eventId': eventId,
|
|
34
39
|
},
|
|
@@ -44,17 +49,21 @@ export class CodeService {
|
|
|
44
49
|
* Given a patron code, returns the priority/coupon codes tied to that patron's email so the shopper can choose which to apply (CODE-3).
|
|
45
50
|
* @param code The patron code to look up.
|
|
46
51
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
52
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
47
53
|
* @returns CorrelatedCode Returns the correlated codes.
|
|
48
54
|
* @throws ApiError
|
|
49
55
|
*/
|
|
50
56
|
public static getPatronCodes(
|
|
51
57
|
code: string,
|
|
52
58
|
context?: { shopperGuid?: string; accountId?: string },
|
|
59
|
+
xDrtDomain?: string,
|
|
53
60
|
): CancelablePromise<Array<CorrelatedCode>> {
|
|
54
61
|
return __request(OpenAPI, {
|
|
55
62
|
method: 'GET',
|
|
56
63
|
url: '/code/patron',
|
|
57
|
-
headers:
|
|
64
|
+
headers: {
|
|
65
|
+
'x-drt-domain': xDrtDomain,
|
|
66
|
+
},
|
|
58
67
|
query: {
|
|
59
68
|
'code': code,
|
|
60
69
|
},
|
|
@@ -70,17 +79,21 @@ export class CodeService {
|
|
|
70
79
|
* Applies a code to the current shopper session.
|
|
71
80
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
72
81
|
* @param requestBody Code to be applied
|
|
82
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
73
83
|
* @returns SuccessWithTime Code applied successfully.
|
|
74
84
|
* @throws ApiError
|
|
75
85
|
*/
|
|
76
86
|
public static applyCode(
|
|
77
87
|
requestBody: CodeDto,
|
|
78
88
|
context?: { shopperGuid?: string; accountId?: string },
|
|
89
|
+
xDrtDomain?: string,
|
|
79
90
|
): CancelablePromise<SuccessWithTime> {
|
|
80
91
|
return __request(OpenAPI, {
|
|
81
92
|
method: 'POST',
|
|
82
93
|
url: '/code',
|
|
83
|
-
headers:
|
|
94
|
+
headers: {
|
|
95
|
+
'x-drt-domain': xDrtDomain,
|
|
96
|
+
},
|
|
84
97
|
body: requestBody,
|
|
85
98
|
mediaType: 'application/json',
|
|
86
99
|
errors: {
|
|
@@ -95,17 +108,21 @@ export class CodeService {
|
|
|
95
108
|
* Applies a coupon to the current shopper session.
|
|
96
109
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
97
110
|
* @param requestBody Coupon code to be applied
|
|
111
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
98
112
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
99
113
|
* @throws ApiError
|
|
100
114
|
*/
|
|
101
115
|
public static applyCoupon(
|
|
102
116
|
requestBody: CodeDto,
|
|
103
117
|
context?: { shopperGuid?: string; accountId?: string },
|
|
118
|
+
xDrtDomain?: string,
|
|
104
119
|
): CancelablePromise<UniversalCodeResponse> {
|
|
105
120
|
return __request(OpenAPI, {
|
|
106
121
|
method: 'POST',
|
|
107
122
|
url: '/code/discount',
|
|
108
|
-
headers:
|
|
123
|
+
headers: {
|
|
124
|
+
'x-drt-domain': xDrtDomain,
|
|
125
|
+
},
|
|
109
126
|
body: requestBody,
|
|
110
127
|
mediaType: 'application/json',
|
|
111
128
|
errors: {
|
|
@@ -120,17 +137,50 @@ export class CodeService {
|
|
|
120
137
|
* Removes a coupon from the current shopper session.
|
|
121
138
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
122
139
|
* @param requestBody Coupon code to be removed
|
|
140
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
123
141
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
124
142
|
* @throws ApiError
|
|
125
143
|
*/
|
|
126
144
|
public static removeCoupon(
|
|
127
145
|
requestBody: CodeDto,
|
|
128
146
|
context?: { shopperGuid?: string; accountId?: string },
|
|
147
|
+
xDrtDomain?: string,
|
|
129
148
|
): CancelablePromise<UniversalCodeResponse> {
|
|
130
149
|
return __request(OpenAPI, {
|
|
131
150
|
method: 'DELETE',
|
|
132
151
|
url: '/code/discount',
|
|
133
|
-
headers:
|
|
152
|
+
headers: {
|
|
153
|
+
'x-drt-domain': xDrtDomain,
|
|
154
|
+
},
|
|
155
|
+
body: requestBody,
|
|
156
|
+
mediaType: 'application/json',
|
|
157
|
+
errors: {
|
|
158
|
+
400: `Bad Request error with error details.`,
|
|
159
|
+
404: `Not found error with error details.`,
|
|
160
|
+
500: `Internal Server Error, please contact developers.`,
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Decline a reservation code
|
|
166
|
+
* Releases the seats a reservation code is holding — the waitlist offer email's decline link. Idempotent and silent: an unknown, foreign or already-declined code answers success and does nothing.
|
|
167
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
168
|
+
* @param requestBody Reservation code to decline
|
|
169
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
170
|
+
* @returns SuccessResponse The decline was recorded.
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
public static declineReservationCode(
|
|
174
|
+
requestBody: CodeDto,
|
|
175
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
176
|
+
xDrtDomain?: string,
|
|
177
|
+
): CancelablePromise<SuccessResponse> {
|
|
178
|
+
return __request(OpenAPI, {
|
|
179
|
+
method: 'POST',
|
|
180
|
+
url: '/code/decline',
|
|
181
|
+
headers: {
|
|
182
|
+
'x-drt-domain': xDrtDomain,
|
|
183
|
+
},
|
|
134
184
|
body: requestBody,
|
|
135
185
|
mediaType: 'application/json',
|
|
136
186
|
errors: {
|
|
@@ -145,17 +195,21 @@ export class CodeService {
|
|
|
145
195
|
* Applies a priority code to the cart.
|
|
146
196
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
147
197
|
* @param requestBody Priority code data to be applied
|
|
198
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
148
199
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
149
200
|
* @throws ApiError
|
|
150
201
|
*/
|
|
151
202
|
public static applyPriorityCode(
|
|
152
203
|
requestBody: PriorityCode,
|
|
153
204
|
context?: { shopperGuid?: string; accountId?: string },
|
|
205
|
+
xDrtDomain?: string,
|
|
154
206
|
): CancelablePromise<SuccessWithTime> {
|
|
155
207
|
return __request(OpenAPI, {
|
|
156
208
|
method: 'POST',
|
|
157
209
|
url: '/code/priority',
|
|
158
|
-
headers:
|
|
210
|
+
headers: {
|
|
211
|
+
'x-drt-domain': xDrtDomain,
|
|
212
|
+
},
|
|
159
213
|
body: requestBody,
|
|
160
214
|
mediaType: 'application/json',
|
|
161
215
|
errors: {
|
|
@@ -15,16 +15,20 @@ export class DonationService {
|
|
|
15
15
|
* Get all donations for a shopper
|
|
16
16
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
17
17
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
18
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
18
19
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
19
20
|
* @throws ApiError
|
|
20
21
|
*/
|
|
21
22
|
public static getDonations(
|
|
22
23
|
context?: { shopperGuid?: string; accountId?: string },
|
|
24
|
+
xDrtDomain?: string,
|
|
23
25
|
): CancelablePromise<DonationsandContributions> {
|
|
24
26
|
return __request(OpenAPI, {
|
|
25
27
|
method: 'GET',
|
|
26
28
|
url: '/donation',
|
|
27
|
-
headers:
|
|
29
|
+
headers: {
|
|
30
|
+
'x-drt-domain': xDrtDomain,
|
|
31
|
+
},
|
|
28
32
|
errors: {
|
|
29
33
|
400: `Bad Request error with error details.`,
|
|
30
34
|
404: `Not found error with error details.`,
|
|
@@ -38,6 +42,7 @@ export class DonationService {
|
|
|
38
42
|
* @param ipAddress API key for authentication.
|
|
39
43
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
40
44
|
* @param requestBody Donation or contribution details to add.
|
|
45
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
41
46
|
* @returns DonationResult Returns the result of the donation addition.
|
|
42
47
|
* @throws ApiError
|
|
43
48
|
*/
|
|
@@ -45,12 +50,14 @@ export class DonationService {
|
|
|
45
50
|
ipAddress: string,
|
|
46
51
|
requestBody: DonationContribution,
|
|
47
52
|
context?: { shopperGuid?: string; accountId?: string },
|
|
53
|
+
xDrtDomain?: string,
|
|
48
54
|
): CancelablePromise<DonationResult> {
|
|
49
55
|
return __request(OpenAPI, {
|
|
50
56
|
method: 'POST',
|
|
51
57
|
url: '/donation',
|
|
52
58
|
headers: {
|
|
53
59
|
'ipAddress': ipAddress,
|
|
60
|
+
'x-drt-domain': xDrtDomain,
|
|
54
61
|
},
|
|
55
62
|
body: requestBody,
|
|
56
63
|
mediaType: 'application/json',
|
|
@@ -66,17 +73,21 @@ export class DonationService {
|
|
|
66
73
|
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
67
74
|
* @param fundId The donation fund id to remove.
|
|
68
75
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
76
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
69
77
|
* @returns SuccessResponse Returns success after removing the donation.
|
|
70
78
|
* @throws ApiError
|
|
71
79
|
*/
|
|
72
80
|
public static deleteDonation(
|
|
73
81
|
fundId: number,
|
|
74
82
|
context?: { shopperGuid?: string; accountId?: string },
|
|
83
|
+
xDrtDomain?: string,
|
|
75
84
|
): CancelablePromise<SuccessResponse> {
|
|
76
85
|
return __request(OpenAPI, {
|
|
77
86
|
method: 'DELETE',
|
|
78
87
|
url: '/donation',
|
|
79
|
-
headers:
|
|
88
|
+
headers: {
|
|
89
|
+
'x-drt-domain': xDrtDomain,
|
|
90
|
+
},
|
|
80
91
|
query: {
|
|
81
92
|
'fundId': fundId,
|
|
82
93
|
},
|
|
@@ -18,16 +18,20 @@ export class EventService {
|
|
|
18
18
|
* Get all events for a shopper
|
|
19
19
|
* Retrieves all events associated with the shopper.
|
|
20
20
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
21
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
21
22
|
* @returns GetEventsResponse Returns a list of events and their groups.
|
|
22
23
|
* @throws ApiError
|
|
23
24
|
*/
|
|
24
25
|
public static getEvents(
|
|
25
26
|
context?: { shopperGuid?: string; accountId?: string },
|
|
27
|
+
xDrtDomain?: string,
|
|
26
28
|
): CancelablePromise<GetEventsResponse> {
|
|
27
29
|
return __request(OpenAPI, {
|
|
28
30
|
method: 'GET',
|
|
29
31
|
url: '/event',
|
|
30
|
-
headers:
|
|
32
|
+
headers: {
|
|
33
|
+
'x-drt-domain': xDrtDomain,
|
|
34
|
+
},
|
|
31
35
|
errors: {
|
|
32
36
|
400: `Bad Request error with error details.`,
|
|
33
37
|
404: `Not found error with error details.`,
|
|
@@ -40,17 +44,21 @@ export class EventService {
|
|
|
40
44
|
* Retrieves events associated with a specific performer.
|
|
41
45
|
* @param performer The name of the performer to filter events by.
|
|
42
46
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
47
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
43
48
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
44
49
|
* @throws ApiError
|
|
45
50
|
*/
|
|
46
51
|
public static getPerformers(
|
|
47
52
|
performer: string,
|
|
48
53
|
context?: { shopperGuid?: string; accountId?: string },
|
|
54
|
+
xDrtDomain?: string,
|
|
49
55
|
): CancelablePromise<Array<PerformerEventList>> {
|
|
50
56
|
return __request(OpenAPI, {
|
|
51
57
|
method: 'GET',
|
|
52
58
|
url: '/event/performer',
|
|
53
|
-
headers:
|
|
59
|
+
headers: {
|
|
60
|
+
'x-drt-domain': xDrtDomain,
|
|
61
|
+
},
|
|
54
62
|
query: {
|
|
55
63
|
'performer': performer,
|
|
56
64
|
},
|
|
@@ -66,12 +74,14 @@ export class EventService {
|
|
|
66
74
|
* Retrieves detailed information for a specific event.
|
|
67
75
|
* @param id
|
|
68
76
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
77
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
69
78
|
* @returns FullEventDetails Returns the event details.
|
|
70
79
|
* @throws ApiError
|
|
71
80
|
*/
|
|
72
81
|
public static getEventById(
|
|
73
82
|
id: number,
|
|
74
83
|
context?: { shopperGuid?: string; accountId?: string },
|
|
84
|
+
xDrtDomain?: string,
|
|
75
85
|
): CancelablePromise<FullEventDetails> {
|
|
76
86
|
return __request(OpenAPI, {
|
|
77
87
|
method: 'GET',
|
|
@@ -79,7 +89,9 @@ export class EventService {
|
|
|
79
89
|
path: {
|
|
80
90
|
'id': id,
|
|
81
91
|
},
|
|
82
|
-
headers:
|
|
92
|
+
headers: {
|
|
93
|
+
'x-drt-domain': xDrtDomain,
|
|
94
|
+
},
|
|
83
95
|
errors: {
|
|
84
96
|
400: `Bad Request error with error details.`,
|
|
85
97
|
404: `Not found error with error details.`,
|
|
@@ -92,12 +104,14 @@ export class EventService {
|
|
|
92
104
|
* Returns the structured seat-map legend (per-tier color/label, the raw legend text, and the chair-token color map) as JSON (SEAT-2).
|
|
93
105
|
* @param id
|
|
94
106
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
107
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
95
108
|
* @returns EventLegend Returns the event legend.
|
|
96
109
|
* @throws ApiError
|
|
97
110
|
*/
|
|
98
111
|
public static getEventLegend(
|
|
99
112
|
id: number,
|
|
100
113
|
context?: { shopperGuid?: string; accountId?: string },
|
|
114
|
+
xDrtDomain?: string,
|
|
101
115
|
): CancelablePromise<EventLegend> {
|
|
102
116
|
return __request(OpenAPI, {
|
|
103
117
|
method: 'GET',
|
|
@@ -105,7 +119,9 @@ export class EventService {
|
|
|
105
119
|
path: {
|
|
106
120
|
'id': id,
|
|
107
121
|
},
|
|
108
|
-
headers:
|
|
122
|
+
headers: {
|
|
123
|
+
'x-drt-domain': xDrtDomain,
|
|
124
|
+
},
|
|
109
125
|
errors: {
|
|
110
126
|
400: `Bad Request error with error details.`,
|
|
111
127
|
404: `Not found error with error details.`,
|
|
@@ -118,12 +134,14 @@ export class EventService {
|
|
|
118
134
|
* Returns the GA/BA purchase-view payload: per-tier advance/door/effective price, capacity & remaining, plus order limits and lap-child policy (SEAT-3).
|
|
119
135
|
* @param id
|
|
120
136
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
137
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
121
138
|
* @returns GaSelection Returns the GA selection payload.
|
|
122
139
|
* @throws ApiError
|
|
123
140
|
*/
|
|
124
141
|
public static getGaSelection(
|
|
125
142
|
id: number,
|
|
126
143
|
context?: { shopperGuid?: string; accountId?: string },
|
|
144
|
+
xDrtDomain?: string,
|
|
127
145
|
): CancelablePromise<GaSelection> {
|
|
128
146
|
return __request(OpenAPI, {
|
|
129
147
|
method: 'GET',
|
|
@@ -131,7 +149,9 @@ export class EventService {
|
|
|
131
149
|
path: {
|
|
132
150
|
'id': id,
|
|
133
151
|
},
|
|
134
|
-
headers:
|
|
152
|
+
headers: {
|
|
153
|
+
'x-drt-domain': xDrtDomain,
|
|
154
|
+
},
|
|
135
155
|
errors: {
|
|
136
156
|
400: `Bad Request error with error details.`,
|
|
137
157
|
404: `Not found error with error details.`,
|
|
@@ -144,17 +164,21 @@ export class EventService {
|
|
|
144
164
|
* Updates the waitlist with shopper details.
|
|
145
165
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
146
166
|
* @param requestBody Details of the waitlist update
|
|
167
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
147
168
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
148
169
|
* @throws ApiError
|
|
149
170
|
*/
|
|
150
171
|
public static postWishlist(
|
|
151
172
|
requestBody: WaitlistUpdate,
|
|
152
173
|
context?: { shopperGuid?: string; accountId?: string },
|
|
174
|
+
xDrtDomain?: string,
|
|
153
175
|
): CancelablePromise<WaitlistResponse> {
|
|
154
176
|
return __request(OpenAPI, {
|
|
155
177
|
method: 'POST',
|
|
156
178
|
url: '/event/waitlist',
|
|
157
|
-
headers:
|
|
179
|
+
headers: {
|
|
180
|
+
'x-drt-domain': xDrtDomain,
|
|
181
|
+
},
|
|
158
182
|
body: requestBody,
|
|
159
183
|
mediaType: 'application/json',
|
|
160
184
|
errors: {
|