@drttix/drt-sdk 1.3.4 → 1.4.0
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/README.md +29 -4
- package/azure-pipelines.yml +2 -0
- package/dist/cjs/src/functions/sdkConfig.d.ts +47 -16
- package/dist/cjs/src/functions/sdkConfig.js +63 -43
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/core/request.js +41 -7
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/scanner/core/request.js +41 -7
- package/dist/cjs/src/generated/scanner/index.d.ts +1 -0
- package/dist/cjs/src/generated/scanner/models/OrderScan.d.ts +9 -0
- package/dist/cjs/src/generated/scanner/models/OrderScan.js +2 -0
- package/dist/cjs/src/generated/scanner/models/TicketScan.d.ts +1 -0
- package/dist/cjs/src/generated/scanner/services/ScanningService.d.ts +16 -0
- package/dist/cjs/src/generated/scanner/services/ScanningService.js +28 -0
- package/dist/cjs/src/generated/scanner/types.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/request.js +41 -7
- package/dist/cjs/src/generated/shopper/index.d.ts +29 -2
- package/dist/cjs/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/AnswerInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/cjs/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CorrelatedCode.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventLegend.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventLegend.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
- package/dist/cjs/src/generated/shopper/models/EventLegendItem.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +2 -2
- package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.js +2 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.js +2 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/cjs/src/generated/shopper/services/CartService.js +98 -7
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/cjs/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/cjs/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/cjs/src/generated/shopper/services/EventService.js +59 -4
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/cjs/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/cjs/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/cjs/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/cjs/src/generated/shopper/types.d.ts +29 -2
- package/dist/cjs/src/scripts/build-all.js +83 -19
- package/dist/esm/src/functions/sdkConfig.d.ts +47 -16
- package/dist/esm/src/functions/sdkConfig.js +61 -41
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/core/request.js +41 -7
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/scanner/core/request.js +41 -7
- package/dist/esm/src/generated/scanner/index.d.ts +1 -0
- package/dist/esm/src/generated/scanner/models/OrderScan.d.ts +9 -0
- package/dist/esm/src/generated/scanner/models/OrderScan.js +1 -0
- package/dist/esm/src/generated/scanner/models/TicketScan.d.ts +1 -0
- package/dist/esm/src/generated/scanner/services/ScanningService.d.ts +16 -0
- package/dist/esm/src/generated/scanner/services/ScanningService.js +28 -0
- package/dist/esm/src/generated/scanner/types.d.ts +1 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/request.js +41 -7
- package/dist/esm/src/generated/shopper/index.d.ts +29 -2
- package/dist/esm/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/AnswerInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/CartAmounts.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CartClearResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CartCountsLite.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/esm/src/generated/shopper/models/CartTotals.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStep.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/esm/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CorrelatedCode.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventLegend.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventLegend.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
- package/dist/esm/src/generated/shopper/models/EventLegendItem.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +2 -2
- package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.js +1 -0
- package/dist/esm/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/esm/src/generated/shopper/models/GaTier.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.js +1 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/esm/src/generated/shopper/services/CartService.js +98 -7
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/esm/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/esm/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/esm/src/generated/shopper/services/EventService.js +59 -4
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/esm/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/esm/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/esm/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/esm/src/generated/shopper/types.d.ts +29 -2
- package/dist/esm/src/scripts/build-all.js +83 -19
- package/package.json +3 -2
- package/pnpm-workspace.yaml +2 -0
- package/src/custom/custom-request.txt +43 -9
- package/src/functions/sdkConfig.ts +91 -54
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/core/request.ts +43 -9
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/scanner/core/request.ts +43 -9
- package/src/generated/scanner/index.ts +1 -0
- package/src/generated/scanner/models/OrderScan.ts +14 -0
- package/src/generated/scanner/models/TicketScan.ts +1 -0
- package/src/generated/scanner/services/ScanningService.ts +38 -0
- package/src/generated/scanner/types.ts +1 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/request.ts +43 -9
- package/src/generated/shopper/index.ts +29 -2
- package/src/generated/shopper/models/AnswerInput.ts +11 -0
- package/src/generated/shopper/models/CartAmounts.ts +43 -0
- package/src/generated/shopper/models/CartClearResult.ts +19 -0
- package/src/generated/shopper/models/CartCountsLite.ts +19 -0
- package/src/generated/shopper/models/CartTotals.ts +27 -0
- package/src/generated/shopper/models/CheckoutStep.ts +15 -0
- package/src/generated/shopper/models/CheckoutStepsResponse.ts +12 -0
- package/src/generated/shopper/models/CheckoutSubmitBody.ts +3 -13
- package/src/generated/shopper/models/CorrelatedCode.ts +19 -0
- package/src/generated/shopper/models/EventLegend.ts +17 -0
- package/src/generated/shopper/models/EventLegendItem.ts +14 -0
- package/src/generated/shopper/models/ExchangeAnswersBody.ts +9 -0
- package/src/generated/shopper/models/ExchangeCancelSeatResponse.ts +12 -0
- package/src/generated/shopper/models/ExchangeShow.ts +17 -0
- package/src/generated/shopper/models/ExchangeShowsResponse.ts +13 -0
- package/src/generated/shopper/models/ExtendTimerDto.ts +11 -0
- package/src/generated/shopper/models/ExtendTimerResponseDto.ts +15 -0
- package/src/generated/shopper/models/FullEventDetails.ts +2 -2
- package/src/generated/shopper/models/GaSelection.ts +29 -0
- package/src/generated/shopper/models/GaTier.ts +32 -0
- package/src/generated/shopper/models/LandingPageResponse.ts +10 -0
- package/src/generated/shopper/models/LandingProduct.ts +16 -0
- package/src/generated/shopper/models/LandingShow.ts +21 -0
- package/src/generated/shopper/models/LandingVenue.ts +15 -0
- package/src/generated/shopper/models/NextStepResponse.ts +12 -0
- package/src/generated/shopper/models/OrderBalance.ts +31 -0
- package/src/generated/shopper/models/OrderPaymentStatus.ts +19 -0
- package/src/generated/shopper/models/PosDefaultInfoResponse.ts +12 -0
- package/src/generated/shopper/models/ProductAddResponse.ts +4 -0
- package/src/generated/shopper/models/SeatInCart.ts +8 -0
- package/src/generated/shopper/models/SetLanguageDto.ts +11 -0
- package/src/generated/shopper/models/ShowExtras.ts +19 -0
- package/src/generated/shopper/models/StreamDetails.ts +30 -0
- package/src/generated/shopper/models/StreamDownloadLink.ts +9 -0
- package/src/generated/shopper/services/AccountService.ts +22 -9
- package/src/generated/shopper/services/CartService.ts +123 -14
- package/src/generated/shopper/services/CheckoutService.ts +69 -29
- package/src/generated/shopper/services/CodeService.ts +58 -15
- package/src/generated/shopper/services/DonationService.ts +38 -5
- package/src/generated/shopper/services/EventService.ts +77 -10
- package/src/generated/shopper/services/GiftCardService.ts +28 -12
- package/src/generated/shopper/services/OrderService.ts +356 -41
- package/src/generated/shopper/services/PaymentService.ts +19 -9
- package/src/generated/shopper/services/ProductService.ts +19 -9
- package/src/generated/shopper/services/SeatService.ts +38 -19
- package/src/generated/shopper/services/SessionService.ts +65 -5
- package/src/generated/shopper/types.ts +29 -2
- package/src/scripts/build-all.ts +127 -26
- package/src/generated/shopper/models/Chart.ts +0 -13
- package/src/generated/shopper/models/SaveNonceBody.ts +0 -15
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
|
|
3
4
|
export class CheckoutService {
|
|
4
5
|
/**
|
|
5
6
|
* Get checkout page data
|
|
6
7
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
8
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
7
9
|
* @returns CheckoutPageData Returns checkout page data.
|
|
8
10
|
* @throws ApiError
|
|
9
11
|
*/
|
|
10
|
-
static getCheckout() {
|
|
12
|
+
static getCheckout(context) {
|
|
11
13
|
return __request(OpenAPI, {
|
|
12
14
|
method: 'GET',
|
|
13
15
|
url: '/checkout',
|
|
16
|
+
headers: resolveShopperHeaders(context),
|
|
14
17
|
errors: {
|
|
15
18
|
400: `Bad Request error with error details.`,
|
|
16
19
|
404: `Not found error with error details.`,
|
|
@@ -20,15 +23,17 @@ export class CheckoutService {
|
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* Submit checkout
|
|
23
|
-
* Validates and saves checkout form data
|
|
26
|
+
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Stripe-only payment flow.
|
|
27
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
24
28
|
* @param requestBody Checkout form data.
|
|
25
29
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
26
30
|
* @throws ApiError
|
|
27
31
|
*/
|
|
28
|
-
static submitCheckout(requestBody) {
|
|
32
|
+
static submitCheckout(requestBody, context) {
|
|
29
33
|
return __request(OpenAPI, {
|
|
30
34
|
method: 'POST',
|
|
31
35
|
url: '/checkout',
|
|
36
|
+
headers: resolveShopperHeaders(context),
|
|
32
37
|
body: requestBody,
|
|
33
38
|
mediaType: 'application/json',
|
|
34
39
|
errors: {
|
|
@@ -39,18 +44,21 @@ export class CheckoutService {
|
|
|
39
44
|
});
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @param
|
|
45
|
-
* @
|
|
47
|
+
* Get the next checkout step
|
|
48
|
+
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
49
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
50
|
+
* @param curr The current step. Defaults to 'seats'.
|
|
51
|
+
* @returns NextStepResponse Returns the next step.
|
|
46
52
|
* @throws ApiError
|
|
47
53
|
*/
|
|
48
|
-
static
|
|
54
|
+
static getNextStep(context, curr) {
|
|
49
55
|
return __request(OpenAPI, {
|
|
50
|
-
method: '
|
|
51
|
-
url: '/checkout/
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
method: 'GET',
|
|
57
|
+
url: '/checkout/next-step',
|
|
58
|
+
headers: resolveShopperHeaders(context),
|
|
59
|
+
query: {
|
|
60
|
+
'curr': curr,
|
|
61
|
+
},
|
|
54
62
|
errors: {
|
|
55
63
|
400: `Bad Request error with error details.`,
|
|
56
64
|
404: `Not found error with error details.`,
|
|
@@ -59,15 +67,17 @@ export class CheckoutService {
|
|
|
59
67
|
});
|
|
60
68
|
}
|
|
61
69
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* @
|
|
70
|
+
* Get applicable checkout steps
|
|
71
|
+
* 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).
|
|
72
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
73
|
+
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
65
74
|
* @throws ApiError
|
|
66
75
|
*/
|
|
67
|
-
static
|
|
76
|
+
static getSteps(context) {
|
|
68
77
|
return __request(OpenAPI, {
|
|
69
|
-
method: '
|
|
70
|
-
url: '/checkout/
|
|
78
|
+
method: 'GET',
|
|
79
|
+
url: '/checkout/steps',
|
|
80
|
+
headers: resolveShopperHeaders(context),
|
|
71
81
|
errors: {
|
|
72
82
|
400: `Bad Request error with error details.`,
|
|
73
83
|
404: `Not found error with error details.`,
|
|
@@ -78,14 +88,16 @@ export class CheckoutService {
|
|
|
78
88
|
/**
|
|
79
89
|
* Auto-save checkout details
|
|
80
90
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
91
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
81
92
|
* @param requestBody Partial checkout data to auto-save.
|
|
82
93
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
83
94
|
* @throws ApiError
|
|
84
95
|
*/
|
|
85
|
-
static saveDetails(requestBody) {
|
|
96
|
+
static saveDetails(requestBody, context) {
|
|
86
97
|
return __request(OpenAPI, {
|
|
87
98
|
method: 'POST',
|
|
88
99
|
url: '/checkout/details',
|
|
100
|
+
headers: resolveShopperHeaders(context),
|
|
89
101
|
body: requestBody,
|
|
90
102
|
mediaType: 'application/json',
|
|
91
103
|
errors: {
|
|
@@ -95,4 +107,23 @@ export class CheckoutService {
|
|
|
95
107
|
},
|
|
96
108
|
});
|
|
97
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Fill contact fields from POS defaults
|
|
112
|
+
* 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).
|
|
113
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
114
|
+
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
static fillDefaultInfo(context) {
|
|
118
|
+
return __request(OpenAPI, {
|
|
119
|
+
method: 'POST',
|
|
120
|
+
url: '/checkout/default-info',
|
|
121
|
+
headers: resolveShopperHeaders(context),
|
|
122
|
+
errors: {
|
|
123
|
+
400: `Bad Request error with error details.`,
|
|
124
|
+
404: `Not found error with error details.`,
|
|
125
|
+
500: `Internal Server Error, please contact developers.`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
98
129
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CodeDto } from '../models/CodeDto';
|
|
2
|
+
import type { CorrelatedCode } from '../models/CorrelatedCode';
|
|
2
3
|
import type { HasAccessResponse } from '../models/HasAccessResponse';
|
|
3
4
|
import type { PriorityCode } from '../models/PriorityCode';
|
|
4
5
|
import type { SuccessWithTime } from '../models/SuccessWithTime';
|
|
@@ -9,40 +10,72 @@ export declare class CodeService {
|
|
|
9
10
|
* Request access to an event
|
|
10
11
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
11
12
|
* @param eventId ID of the event for which access is requested
|
|
13
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
12
14
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
13
15
|
* @throws ApiError
|
|
14
16
|
*/
|
|
15
|
-
static requestEventAccess(eventId: number
|
|
17
|
+
static requestEventAccess(eventId: number, context?: {
|
|
18
|
+
shopperGuid?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
}): CancelablePromise<HasAccessResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List the codes correlated to a patron code
|
|
23
|
+
* 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).
|
|
24
|
+
* @param code The patron code to look up.
|
|
25
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
26
|
+
* @returns CorrelatedCode Returns the correlated codes.
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static getPatronCodes(code: string, context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<Array<CorrelatedCode>>;
|
|
16
33
|
/**
|
|
17
34
|
* Apply a code to the current shopper session
|
|
18
35
|
* Applies a code to the current shopper session.
|
|
36
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
37
|
* @param requestBody Code to be applied
|
|
20
38
|
* @returns SuccessWithTime Code applied successfully.
|
|
21
39
|
* @throws ApiError
|
|
22
40
|
*/
|
|
23
|
-
static applyCode(requestBody: CodeDto
|
|
41
|
+
static applyCode(requestBody: CodeDto, context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}): CancelablePromise<SuccessWithTime>;
|
|
24
45
|
/**
|
|
25
46
|
* Apply a coupon to the current shopper session
|
|
26
47
|
* Applies a coupon to the current shopper session.
|
|
48
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
27
49
|
* @param requestBody Coupon code to be applied
|
|
28
50
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
29
51
|
* @throws ApiError
|
|
30
52
|
*/
|
|
31
|
-
static applyCoupon(requestBody: CodeDto
|
|
53
|
+
static applyCoupon(requestBody: CodeDto, context?: {
|
|
54
|
+
shopperGuid?: string;
|
|
55
|
+
accountId?: string;
|
|
56
|
+
}): CancelablePromise<UniversalCodeResponse>;
|
|
32
57
|
/**
|
|
33
58
|
* Remove a coupon from the current shopper session
|
|
34
59
|
* Removes a coupon from the current shopper session.
|
|
60
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
35
61
|
* @param requestBody Coupon code to be removed
|
|
36
62
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
37
63
|
* @throws ApiError
|
|
38
64
|
*/
|
|
39
|
-
static removeCoupon(requestBody: CodeDto
|
|
65
|
+
static removeCoupon(requestBody: CodeDto, context?: {
|
|
66
|
+
shopperGuid?: string;
|
|
67
|
+
accountId?: string;
|
|
68
|
+
}): CancelablePromise<UniversalCodeResponse>;
|
|
40
69
|
/**
|
|
41
70
|
* Apply Priority Code
|
|
42
71
|
* Applies a priority code to the cart.
|
|
72
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
43
73
|
* @param requestBody Priority code data to be applied
|
|
44
74
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
45
75
|
* @throws ApiError
|
|
46
76
|
*/
|
|
47
|
-
static applyPriorityCode(requestBody: PriorityCode
|
|
77
|
+
static applyPriorityCode(requestBody: PriorityCode, context?: {
|
|
78
|
+
shopperGuid?: string;
|
|
79
|
+
accountId?: string;
|
|
80
|
+
}): CancelablePromise<SuccessWithTime>;
|
|
48
81
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
|
|
3
4
|
export class CodeService {
|
|
4
5
|
/**
|
|
5
6
|
* Request access to an event
|
|
6
7
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
7
8
|
* @param eventId ID of the event for which access is requested
|
|
9
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
8
10
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
9
11
|
* @throws ApiError
|
|
10
12
|
*/
|
|
11
|
-
static requestEventAccess(eventId) {
|
|
13
|
+
static requestEventAccess(eventId, context) {
|
|
12
14
|
return __request(OpenAPI, {
|
|
13
15
|
method: 'GET',
|
|
14
16
|
url: '/code/access',
|
|
17
|
+
headers: resolveShopperHeaders(context),
|
|
15
18
|
query: {
|
|
16
19
|
'eventId': eventId,
|
|
17
20
|
},
|
|
@@ -22,17 +25,42 @@ export class CodeService {
|
|
|
22
25
|
},
|
|
23
26
|
});
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* List the codes correlated to a patron code
|
|
30
|
+
* 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).
|
|
31
|
+
* @param code The patron code to look up.
|
|
32
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
33
|
+
* @returns CorrelatedCode Returns the correlated codes.
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static getPatronCodes(code, context) {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: '/code/patron',
|
|
40
|
+
headers: resolveShopperHeaders(context),
|
|
41
|
+
query: {
|
|
42
|
+
'code': code,
|
|
43
|
+
},
|
|
44
|
+
errors: {
|
|
45
|
+
400: `Bad Request error with error details.`,
|
|
46
|
+
404: `Not found error with error details.`,
|
|
47
|
+
500: `Internal Server Error, please contact developers.`,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
25
51
|
/**
|
|
26
52
|
* Apply a code to the current shopper session
|
|
27
53
|
* Applies a code to the current shopper session.
|
|
54
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
55
|
* @param requestBody Code to be applied
|
|
29
56
|
* @returns SuccessWithTime Code applied successfully.
|
|
30
57
|
* @throws ApiError
|
|
31
58
|
*/
|
|
32
|
-
static applyCode(requestBody) {
|
|
59
|
+
static applyCode(requestBody, context) {
|
|
33
60
|
return __request(OpenAPI, {
|
|
34
61
|
method: 'POST',
|
|
35
62
|
url: '/code',
|
|
63
|
+
headers: resolveShopperHeaders(context),
|
|
36
64
|
body: requestBody,
|
|
37
65
|
mediaType: 'application/json',
|
|
38
66
|
errors: {
|
|
@@ -45,14 +73,16 @@ export class CodeService {
|
|
|
45
73
|
/**
|
|
46
74
|
* Apply a coupon to the current shopper session
|
|
47
75
|
* Applies a coupon to the current shopper session.
|
|
76
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
48
77
|
* @param requestBody Coupon code to be applied
|
|
49
78
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
50
79
|
* @throws ApiError
|
|
51
80
|
*/
|
|
52
|
-
static applyCoupon(requestBody) {
|
|
81
|
+
static applyCoupon(requestBody, context) {
|
|
53
82
|
return __request(OpenAPI, {
|
|
54
83
|
method: 'POST',
|
|
55
84
|
url: '/code/discount',
|
|
85
|
+
headers: resolveShopperHeaders(context),
|
|
56
86
|
body: requestBody,
|
|
57
87
|
mediaType: 'application/json',
|
|
58
88
|
errors: {
|
|
@@ -65,14 +95,16 @@ export class CodeService {
|
|
|
65
95
|
/**
|
|
66
96
|
* Remove a coupon from the current shopper session
|
|
67
97
|
* Removes a coupon from the current shopper session.
|
|
98
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
68
99
|
* @param requestBody Coupon code to be removed
|
|
69
100
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
70
101
|
* @throws ApiError
|
|
71
102
|
*/
|
|
72
|
-
static removeCoupon(requestBody) {
|
|
103
|
+
static removeCoupon(requestBody, context) {
|
|
73
104
|
return __request(OpenAPI, {
|
|
74
105
|
method: 'DELETE',
|
|
75
106
|
url: '/code/discount',
|
|
107
|
+
headers: resolveShopperHeaders(context),
|
|
76
108
|
body: requestBody,
|
|
77
109
|
mediaType: 'application/json',
|
|
78
110
|
errors: {
|
|
@@ -85,14 +117,16 @@ export class CodeService {
|
|
|
85
117
|
/**
|
|
86
118
|
* Apply Priority Code
|
|
87
119
|
* Applies a priority code to the cart.
|
|
120
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
88
121
|
* @param requestBody Priority code data to be applied
|
|
89
122
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
90
123
|
* @throws ApiError
|
|
91
124
|
*/
|
|
92
|
-
static applyPriorityCode(requestBody) {
|
|
125
|
+
static applyPriorityCode(requestBody, context) {
|
|
93
126
|
return __request(OpenAPI, {
|
|
94
127
|
method: 'POST',
|
|
95
128
|
url: '/code/priority',
|
|
129
|
+
headers: resolveShopperHeaders(context),
|
|
96
130
|
body: requestBody,
|
|
97
131
|
mediaType: 'application/json',
|
|
98
132
|
errors: {
|
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
import type { DonationContribution } from '../models/DonationContribution';
|
|
2
2
|
import type { DonationResult } from '../models/DonationResult';
|
|
3
3
|
import type { DonationsandContributions } from '../models/DonationsandContributions';
|
|
4
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
4
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
6
|
export declare class DonationService {
|
|
6
7
|
/**
|
|
7
8
|
* Get all donations for a shopper
|
|
8
9
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
10
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
9
11
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
10
12
|
* @throws ApiError
|
|
11
13
|
*/
|
|
12
|
-
static getDonations(
|
|
14
|
+
static getDonations(context?: {
|
|
15
|
+
shopperGuid?: string;
|
|
16
|
+
accountId?: string;
|
|
17
|
+
}): CancelablePromise<DonationsandContributions>;
|
|
13
18
|
/**
|
|
14
19
|
* Add a donation or contribution
|
|
15
20
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
16
21
|
* @param ipAddress API key for authentication.
|
|
22
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
17
23
|
* @param requestBody Donation or contribution details to add.
|
|
18
24
|
* @returns DonationResult Returns the result of the donation addition.
|
|
19
25
|
* @throws ApiError
|
|
20
26
|
*/
|
|
21
|
-
static postDonation(ipAddress: string, requestBody: DonationContribution
|
|
27
|
+
static postDonation(ipAddress: string, requestBody: DonationContribution, context?: {
|
|
28
|
+
shopperGuid?: string;
|
|
29
|
+
accountId?: string;
|
|
30
|
+
}): CancelablePromise<DonationResult>;
|
|
31
|
+
/**
|
|
32
|
+
* Remove a donation from the cart
|
|
33
|
+
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
34
|
+
* @param fundId The donation fund id to remove.
|
|
35
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
|
+
* @returns SuccessResponse Returns success after removing the donation.
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static deleteDonation(fundId: number, context?: {
|
|
40
|
+
shopperGuid?: string;
|
|
41
|
+
accountId?: string;
|
|
42
|
+
}): CancelablePromise<SuccessResponse>;
|
|
22
43
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
|
|
3
4
|
export class DonationService {
|
|
4
5
|
/**
|
|
5
6
|
* Get all donations for a shopper
|
|
6
7
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
8
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
7
9
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
8
10
|
* @throws ApiError
|
|
9
11
|
*/
|
|
10
|
-
static getDonations() {
|
|
12
|
+
static getDonations(context) {
|
|
11
13
|
return __request(OpenAPI, {
|
|
12
14
|
method: 'GET',
|
|
13
15
|
url: '/donation',
|
|
16
|
+
headers: resolveShopperHeaders(context),
|
|
14
17
|
errors: {
|
|
15
18
|
400: `Bad Request error with error details.`,
|
|
16
19
|
404: `Not found error with error details.`,
|
|
@@ -22,11 +25,12 @@ export class DonationService {
|
|
|
22
25
|
* Add a donation or contribution
|
|
23
26
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
24
27
|
* @param ipAddress API key for authentication.
|
|
28
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
25
29
|
* @param requestBody Donation or contribution details to add.
|
|
26
30
|
* @returns DonationResult Returns the result of the donation addition.
|
|
27
31
|
* @throws ApiError
|
|
28
32
|
*/
|
|
29
|
-
static postDonation(ipAddress, requestBody) {
|
|
33
|
+
static postDonation(ipAddress, requestBody, context) {
|
|
30
34
|
return __request(OpenAPI, {
|
|
31
35
|
method: 'POST',
|
|
32
36
|
url: '/donation',
|
|
@@ -42,4 +46,27 @@ export class DonationService {
|
|
|
42
46
|
},
|
|
43
47
|
});
|
|
44
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Remove a donation from the cart
|
|
51
|
+
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
52
|
+
* @param fundId The donation fund id to remove.
|
|
53
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
54
|
+
* @returns SuccessResponse Returns success after removing the donation.
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static deleteDonation(fundId, context) {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: 'DELETE',
|
|
60
|
+
url: '/donation',
|
|
61
|
+
headers: resolveShopperHeaders(context),
|
|
62
|
+
query: {
|
|
63
|
+
'fundId': fundId,
|
|
64
|
+
},
|
|
65
|
+
errors: {
|
|
66
|
+
400: `Bad Request error with error details.`,
|
|
67
|
+
404: `Not found error with error details.`,
|
|
68
|
+
500: `Internal Server Error, please contact developers.`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
45
72
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { EventLegend } from '../models/EventLegend';
|
|
1
2
|
import type { FullEventDetails } from '../models/FullEventDetails';
|
|
3
|
+
import type { GaSelection } from '../models/GaSelection';
|
|
2
4
|
import type { GetEventsResponse } from '../models/GetEventsResponse';
|
|
3
5
|
import type { PerformerEventList } from '../models/PerformerEventList';
|
|
4
6
|
import type { WaitlistResponse } from '../models/WaitlistResponse';
|
|
@@ -8,32 +10,72 @@ export declare class EventService {
|
|
|
8
10
|
/**
|
|
9
11
|
* Get all events for a shopper
|
|
10
12
|
* Retrieves all events associated with the shopper.
|
|
13
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
14
|
* @returns GetEventsResponse Returns a list of events and their groups.
|
|
12
15
|
* @throws ApiError
|
|
13
16
|
*/
|
|
14
|
-
static getEvents(
|
|
17
|
+
static getEvents(context?: {
|
|
18
|
+
shopperGuid?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
}): CancelablePromise<GetEventsResponse>;
|
|
15
21
|
/**
|
|
16
22
|
* Get events for a specific performer
|
|
17
23
|
* Retrieves events associated with a specific performer.
|
|
18
24
|
* @param performer The name of the performer to filter events by.
|
|
25
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
26
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
20
27
|
* @throws ApiError
|
|
21
28
|
*/
|
|
22
|
-
static getPerformers(performer: string
|
|
29
|
+
static getPerformers(performer: string, context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<Array<PerformerEventList>>;
|
|
23
33
|
/**
|
|
24
34
|
* Get event details by ID
|
|
25
35
|
* Retrieves detailed information for a specific event.
|
|
26
36
|
* @param id
|
|
37
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
27
38
|
* @returns FullEventDetails Returns the event details.
|
|
28
39
|
* @throws ApiError
|
|
29
40
|
*/
|
|
30
|
-
static getEventById(id: number
|
|
41
|
+
static getEventById(id: number, context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}): CancelablePromise<FullEventDetails>;
|
|
45
|
+
/**
|
|
46
|
+
* Get the seat-map legend for an event
|
|
47
|
+
* Returns the structured seat-map legend (per-tier color/label, the raw legend text, and the chair-token color map) as JSON (SEAT-2).
|
|
48
|
+
* @param id
|
|
49
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
50
|
+
* @returns EventLegend Returns the event legend.
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static getEventLegend(id: number, context?: {
|
|
54
|
+
shopperGuid?: string;
|
|
55
|
+
accountId?: string;
|
|
56
|
+
}): CancelablePromise<EventLegend>;
|
|
57
|
+
/**
|
|
58
|
+
* Get GA / best-available selection data for an event
|
|
59
|
+
* Returns the GA/BA purchase-view payload: per-tier advance/door/effective price, capacity & remaining, plus order limits and lap-child policy (SEAT-3).
|
|
60
|
+
* @param id
|
|
61
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
62
|
+
* @returns GaSelection Returns the GA selection payload.
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
static getGaSelection(id: number, context?: {
|
|
66
|
+
shopperGuid?: string;
|
|
67
|
+
accountId?: string;
|
|
68
|
+
}): CancelablePromise<GaSelection>;
|
|
31
69
|
/**
|
|
32
70
|
* Assign names to the waitlist
|
|
33
71
|
* Updates the waitlist with shopper details.
|
|
72
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
34
73
|
* @param requestBody Details of the waitlist update
|
|
35
74
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
36
75
|
* @throws ApiError
|
|
37
76
|
*/
|
|
38
|
-
static postWishlist(requestBody: WaitlistUpdate
|
|
77
|
+
static postWishlist(requestBody: WaitlistUpdate, context?: {
|
|
78
|
+
shopperGuid?: string;
|
|
79
|
+
accountId?: string;
|
|
80
|
+
}): CancelablePromise<WaitlistResponse>;
|
|
39
81
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
|
|
3
4
|
export class EventService {
|
|
4
5
|
/**
|
|
5
6
|
* Get all events for a shopper
|
|
6
7
|
* Retrieves all events associated with the shopper.
|
|
8
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
7
9
|
* @returns GetEventsResponse Returns a list of events and their groups.
|
|
8
10
|
* @throws ApiError
|
|
9
11
|
*/
|
|
10
|
-
static getEvents() {
|
|
12
|
+
static getEvents(context) {
|
|
11
13
|
return __request(OpenAPI, {
|
|
12
14
|
method: 'GET',
|
|
13
15
|
url: '/event',
|
|
16
|
+
headers: resolveShopperHeaders(context),
|
|
14
17
|
errors: {
|
|
15
18
|
400: `Bad Request error with error details.`,
|
|
16
19
|
404: `Not found error with error details.`,
|
|
@@ -22,13 +25,15 @@ export class EventService {
|
|
|
22
25
|
* Get events for a specific performer
|
|
23
26
|
* Retrieves events associated with a specific performer.
|
|
24
27
|
* @param performer The name of the performer to filter events by.
|
|
28
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
25
29
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
26
30
|
* @throws ApiError
|
|
27
31
|
*/
|
|
28
|
-
static getPerformers(performer) {
|
|
32
|
+
static getPerformers(performer, context) {
|
|
29
33
|
return __request(OpenAPI, {
|
|
30
34
|
method: 'GET',
|
|
31
35
|
url: '/event/performer',
|
|
36
|
+
headers: resolveShopperHeaders(context),
|
|
32
37
|
query: {
|
|
33
38
|
'performer': performer,
|
|
34
39
|
},
|
|
@@ -43,16 +48,64 @@ export class EventService {
|
|
|
43
48
|
* Get event details by ID
|
|
44
49
|
* Retrieves detailed information for a specific event.
|
|
45
50
|
* @param id
|
|
51
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
46
52
|
* @returns FullEventDetails Returns the event details.
|
|
47
53
|
* @throws ApiError
|
|
48
54
|
*/
|
|
49
|
-
static getEventById(id) {
|
|
55
|
+
static getEventById(id, context) {
|
|
50
56
|
return __request(OpenAPI, {
|
|
51
57
|
method: 'GET',
|
|
52
58
|
url: '/event/{id}',
|
|
53
59
|
path: {
|
|
54
60
|
'id': id,
|
|
55
61
|
},
|
|
62
|
+
headers: resolveShopperHeaders(context),
|
|
63
|
+
errors: {
|
|
64
|
+
400: `Bad Request error with error details.`,
|
|
65
|
+
404: `Not found error with error details.`,
|
|
66
|
+
500: `Internal Server Error, please contact developers.`,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get the seat-map legend for an event
|
|
72
|
+
* Returns the structured seat-map legend (per-tier color/label, the raw legend text, and the chair-token color map) as JSON (SEAT-2).
|
|
73
|
+
* @param id
|
|
74
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
75
|
+
* @returns EventLegend Returns the event legend.
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static getEventLegend(id, context) {
|
|
79
|
+
return __request(OpenAPI, {
|
|
80
|
+
method: 'GET',
|
|
81
|
+
url: '/event/{id}/legend',
|
|
82
|
+
path: {
|
|
83
|
+
'id': id,
|
|
84
|
+
},
|
|
85
|
+
headers: resolveShopperHeaders(context),
|
|
86
|
+
errors: {
|
|
87
|
+
400: `Bad Request error with error details.`,
|
|
88
|
+
404: `Not found error with error details.`,
|
|
89
|
+
500: `Internal Server Error, please contact developers.`,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Get GA / best-available selection data for an event
|
|
95
|
+
* Returns the GA/BA purchase-view payload: per-tier advance/door/effective price, capacity & remaining, plus order limits and lap-child policy (SEAT-3).
|
|
96
|
+
* @param id
|
|
97
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
98
|
+
* @returns GaSelection Returns the GA selection payload.
|
|
99
|
+
* @throws ApiError
|
|
100
|
+
*/
|
|
101
|
+
static getGaSelection(id, context) {
|
|
102
|
+
return __request(OpenAPI, {
|
|
103
|
+
method: 'GET',
|
|
104
|
+
url: '/event/{id}/ga',
|
|
105
|
+
path: {
|
|
106
|
+
'id': id,
|
|
107
|
+
},
|
|
108
|
+
headers: resolveShopperHeaders(context),
|
|
56
109
|
errors: {
|
|
57
110
|
400: `Bad Request error with error details.`,
|
|
58
111
|
404: `Not found error with error details.`,
|
|
@@ -63,14 +116,16 @@ export class EventService {
|
|
|
63
116
|
/**
|
|
64
117
|
* Assign names to the waitlist
|
|
65
118
|
* Updates the waitlist with shopper details.
|
|
119
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
66
120
|
* @param requestBody Details of the waitlist update
|
|
67
121
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
68
122
|
* @throws ApiError
|
|
69
123
|
*/
|
|
70
|
-
static postWishlist(requestBody) {
|
|
124
|
+
static postWishlist(requestBody, context) {
|
|
71
125
|
return __request(OpenAPI, {
|
|
72
126
|
method: 'POST',
|
|
73
127
|
url: '/event/waitlist',
|
|
128
|
+
headers: resolveShopperHeaders(context),
|
|
74
129
|
body: requestBody,
|
|
75
130
|
mediaType: 'application/json',
|
|
76
131
|
errors: {
|