@drttix/drt-sdk 1.3.5 → 1.4.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/README.md +29 -4
- package/azure-pipelines.yml +2 -0
- 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 +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 +33 -1
- package/dist/cjs/src/generated/shopper/index.js +3 -1
- 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/CompletePaymentBody.d.ts +30 -0
- package/dist/cjs/src/generated/shopper/models/CompletePaymentBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ConnectedAccountResponse.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/ConnectedAccountResponse.js +2 -0
- 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/CreatePaymentIntentBody.d.ts +22 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentIntentBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentIntentResponse.d.ts +47 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentIntentResponse.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 -0
- 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/services/StripeService.d.ts +28 -0
- package/dist/cjs/src/generated/shopper/services/StripeService.js +54 -0
- package/dist/cjs/src/generated/shopper/types.d.ts +32 -1
- package/dist/cjs/src/scripts/build-all.js +160 -19
- 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/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 +33 -1
- package/dist/esm/src/generated/shopper/index.js +1 -0
- 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/CompletePaymentBody.d.ts +30 -0
- package/dist/esm/src/generated/shopper/models/CompletePaymentBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/ConnectedAccountResponse.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/ConnectedAccountResponse.js +1 -0
- 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/CreatePaymentIntentBody.d.ts +22 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentIntentBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentIntentResponse.d.ts +47 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentIntentResponse.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 -0
- 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/services/StripeService.d.ts +28 -0
- package/dist/esm/src/generated/shopper/services/StripeService.js +50 -0
- package/dist/esm/src/generated/shopper/types.d.ts +32 -1
- package/dist/esm/src/scripts/build-all.js +160 -19
- package/dist/esm/src/staging/index.d.ts +1 -0
- package/package.json +3 -2
- package/pnpm-workspace.yaml +2 -0
- package/src/custom/custom-request.txt +43 -9
- package/src/definitions/shopper.ts +2 -0
- 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 +33 -1
- 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/ConnectedAccountResponse.ts +23 -0
- package/src/generated/shopper/models/CorrelatedCode.ts +19 -0
- package/src/generated/shopper/models/CreatePaymentIntentBody.ts +27 -0
- package/src/generated/shopper/models/CreatePaymentIntentResponse.ts +52 -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 -0
- 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/services/StripeService.ts +64 -0
- package/src/generated/shopper/types.ts +32 -1
- package/src/scripts/build-all.ts +211 -26
- package/src/generated/shopper/models/SaveNonceBody.ts +0 -15
|
@@ -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: {
|
|
@@ -11,37 +11,57 @@ export declare class GiftCardService {
|
|
|
11
11
|
* Retrieves gift card balance and availability information for the specified code and PIN.
|
|
12
12
|
* @param code Gift card code
|
|
13
13
|
* @param pin Gift card PIN
|
|
14
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
14
15
|
* @returns GiftCardLookupResponse Returns gift card balance and availability information.
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
static lookupGiftCard(code: string, pin: string
|
|
18
|
+
static lookupGiftCard(code: string, pin: string, context?: {
|
|
19
|
+
shopperGuid?: string;
|
|
20
|
+
accountId?: string;
|
|
21
|
+
}): CancelablePromise<GiftCardLookupResponse>;
|
|
18
22
|
/**
|
|
19
23
|
* Apply a gift card to the current session
|
|
20
24
|
* Applies a gift card to the current shopper session. Removes any previously applied gift card.
|
|
25
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
21
26
|
* @param requestBody Gift card details to apply
|
|
22
27
|
* @returns GiftCardApplyResponse Gift card applied successfully.
|
|
23
28
|
* @throws ApiError
|
|
24
29
|
*/
|
|
25
|
-
static applyGiftCard(requestBody: GiftCardApplyDto
|
|
30
|
+
static applyGiftCard(requestBody: GiftCardApplyDto, context?: {
|
|
31
|
+
shopperGuid?: string;
|
|
32
|
+
accountId?: string;
|
|
33
|
+
}): CancelablePromise<GiftCardApplyResponse>;
|
|
26
34
|
/**
|
|
27
35
|
* Remove the gift card from the current session
|
|
28
36
|
* Removes all gift cards from the current shopper session and recalculates payment totals.
|
|
37
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
29
38
|
* @returns GiftCardRemoveResponse Gift card removed successfully.
|
|
30
39
|
* @throws ApiError
|
|
31
40
|
*/
|
|
32
|
-
static removeGiftCard(
|
|
41
|
+
static removeGiftCard(context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}): CancelablePromise<GiftCardRemoveResponse>;
|
|
33
45
|
/**
|
|
34
46
|
* Get gift card checkout information
|
|
35
47
|
* Retrieves gift card information for the checkout page, including applied gift card details and remaining balance.
|
|
48
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
49
|
* @returns GiftCardCheckoutInfo Returns gift card checkout information.
|
|
37
50
|
* @throws ApiError
|
|
38
51
|
*/
|
|
39
|
-
static getGiftCardCheckoutInfo(
|
|
52
|
+
static getGiftCardCheckoutInfo(context?: {
|
|
53
|
+
shopperGuid?: string;
|
|
54
|
+
accountId?: string;
|
|
55
|
+
}): CancelablePromise<GiftCardCheckoutInfo>;
|
|
40
56
|
/**
|
|
41
57
|
* Get gift card edit form data
|
|
42
58
|
* Retrieves the currently applied gift card information for editing purposes.
|
|
59
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
43
60
|
* @returns GiftCardEditFormResponse Returns the applied gift card code and amount.
|
|
44
61
|
* @throws ApiError
|
|
45
62
|
*/
|
|
46
|
-
static getGiftCardEditForm(
|
|
63
|
+
static getGiftCardEditForm(context?: {
|
|
64
|
+
shopperGuid?: string;
|
|
65
|
+
accountId?: string;
|
|
66
|
+
}): CancelablePromise<GiftCardEditFormResponse>;
|
|
47
67
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
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 GiftCardService {
|
|
4
5
|
/**
|
|
5
6
|
* Look up a gift card by code and PIN
|
|
6
7
|
* Retrieves gift card balance and availability information for the specified code and PIN.
|
|
7
8
|
* @param code Gift card code
|
|
8
9
|
* @param pin Gift card PIN
|
|
10
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
9
11
|
* @returns GiftCardLookupResponse Returns gift card balance and availability information.
|
|
10
12
|
* @throws ApiError
|
|
11
13
|
*/
|
|
12
|
-
static lookupGiftCard(code, pin) {
|
|
14
|
+
static lookupGiftCard(code, pin, context) {
|
|
13
15
|
return __request(OpenAPI, {
|
|
14
16
|
method: 'GET',
|
|
15
17
|
url: '/gift-card',
|
|
18
|
+
headers: resolveShopperHeaders(context),
|
|
16
19
|
query: {
|
|
17
20
|
'code': code,
|
|
18
21
|
'pin': pin,
|
|
@@ -27,14 +30,16 @@ export class GiftCardService {
|
|
|
27
30
|
/**
|
|
28
31
|
* Apply a gift card to the current session
|
|
29
32
|
* Applies a gift card to the current shopper session. Removes any previously applied gift card.
|
|
33
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
30
34
|
* @param requestBody Gift card details to apply
|
|
31
35
|
* @returns GiftCardApplyResponse Gift card applied successfully.
|
|
32
36
|
* @throws ApiError
|
|
33
37
|
*/
|
|
34
|
-
static applyGiftCard(requestBody) {
|
|
38
|
+
static applyGiftCard(requestBody, context) {
|
|
35
39
|
return __request(OpenAPI, {
|
|
36
40
|
method: 'POST',
|
|
37
41
|
url: '/gift-card',
|
|
42
|
+
headers: resolveShopperHeaders(context),
|
|
38
43
|
body: requestBody,
|
|
39
44
|
mediaType: 'application/json',
|
|
40
45
|
errors: {
|
|
@@ -47,13 +52,15 @@ export class GiftCardService {
|
|
|
47
52
|
/**
|
|
48
53
|
* Remove the gift card from the current session
|
|
49
54
|
* Removes all gift cards from the current shopper session and recalculates payment totals.
|
|
55
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
50
56
|
* @returns GiftCardRemoveResponse Gift card removed successfully.
|
|
51
57
|
* @throws ApiError
|
|
52
58
|
*/
|
|
53
|
-
static removeGiftCard() {
|
|
59
|
+
static removeGiftCard(context) {
|
|
54
60
|
return __request(OpenAPI, {
|
|
55
61
|
method: 'DELETE',
|
|
56
62
|
url: '/gift-card',
|
|
63
|
+
headers: resolveShopperHeaders(context),
|
|
57
64
|
errors: {
|
|
58
65
|
400: `Bad Request error with error details.`,
|
|
59
66
|
404: `Not found error with error details.`,
|
|
@@ -64,13 +71,15 @@ export class GiftCardService {
|
|
|
64
71
|
/**
|
|
65
72
|
* Get gift card checkout information
|
|
66
73
|
* Retrieves gift card information for the checkout page, including applied gift card details and remaining balance.
|
|
74
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
67
75
|
* @returns GiftCardCheckoutInfo Returns gift card checkout information.
|
|
68
76
|
* @throws ApiError
|
|
69
77
|
*/
|
|
70
|
-
static getGiftCardCheckoutInfo() {
|
|
78
|
+
static getGiftCardCheckoutInfo(context) {
|
|
71
79
|
return __request(OpenAPI, {
|
|
72
80
|
method: 'GET',
|
|
73
81
|
url: '/gift-card/checkout',
|
|
82
|
+
headers: resolveShopperHeaders(context),
|
|
74
83
|
errors: {
|
|
75
84
|
400: `Bad Request error with error details.`,
|
|
76
85
|
404: `Not found error with error details.`,
|
|
@@ -81,13 +90,15 @@ export class GiftCardService {
|
|
|
81
90
|
/**
|
|
82
91
|
* Get gift card edit form data
|
|
83
92
|
* Retrieves the currently applied gift card information for editing purposes.
|
|
93
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
84
94
|
* @returns GiftCardEditFormResponse Returns the applied gift card code and amount.
|
|
85
95
|
* @throws ApiError
|
|
86
96
|
*/
|
|
87
|
-
static getGiftCardEditForm() {
|
|
97
|
+
static getGiftCardEditForm(context) {
|
|
88
98
|
return __request(OpenAPI, {
|
|
89
99
|
method: 'GET',
|
|
90
100
|
url: '/gift-card/edit',
|
|
101
|
+
headers: resolveShopperHeaders(context),
|
|
91
102
|
errors: {
|
|
92
103
|
400: `Bad Request error with error details.`,
|
|
93
104
|
404: `Not found error with error details.`,
|