@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,5 +1,9 @@
|
|
|
1
|
+
import type { CartAmounts } from '../models/CartAmounts';
|
|
2
|
+
import type { CartClearResult } from '../models/CartClearResult';
|
|
3
|
+
import type { CartCountsLite } from '../models/CartCountsLite';
|
|
1
4
|
import type { CartHashResponse } from '../models/CartHashResponse';
|
|
2
5
|
import type { CartSummary } from '../models/CartSummary';
|
|
6
|
+
import type { CartTotals } from '../models/CartTotals';
|
|
3
7
|
import type { CartWithTime } from '../models/CartWithTime';
|
|
4
8
|
import type { CashPaymentDetail } from '../models/CashPaymentDetail';
|
|
5
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -7,36 +11,101 @@ export declare class CartService {
|
|
|
7
11
|
/**
|
|
8
12
|
* Get Cart
|
|
9
13
|
* Retrieves the cart along with its associated time.
|
|
14
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
10
15
|
* @returns CartWithTime Cart retrieved successfully with time.
|
|
11
16
|
* @throws ApiError
|
|
12
17
|
*/
|
|
13
|
-
static getCart(
|
|
18
|
+
static getCart(context?: {
|
|
19
|
+
shopperGuid?: string;
|
|
20
|
+
accountId?: string;
|
|
21
|
+
}): CancelablePromise<CartWithTime>;
|
|
14
22
|
/**
|
|
15
23
|
* Delete Cart
|
|
16
|
-
*
|
|
17
|
-
* @
|
|
24
|
+
* Clears the entire cart (seats, products, donations) for the shopper. Respects the session lock: if the session is locked (e.g. an in-flight payment) the cart is left intact and { cleared: false, locked: true } is returned.
|
|
25
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
26
|
+
* @returns CartClearResult Cart clear result.
|
|
18
27
|
* @throws ApiError
|
|
19
28
|
*/
|
|
20
|
-
static deleteCart(
|
|
29
|
+
static deleteCart(context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<CartClearResult>;
|
|
21
33
|
/**
|
|
22
34
|
* Get Cart Summary
|
|
23
35
|
* Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
|
|
36
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
24
37
|
* @returns CartSummary Cart summary retrieved successfully.
|
|
25
38
|
* @throws ApiError
|
|
26
39
|
*/
|
|
27
|
-
static getCartSummary(
|
|
40
|
+
static getCartSummary(context?: {
|
|
41
|
+
shopperGuid?: string;
|
|
42
|
+
accountId?: string;
|
|
43
|
+
}): CancelablePromise<CartSummary>;
|
|
28
44
|
/**
|
|
29
45
|
* Get Cart Hash
|
|
30
46
|
* Returns the computed cart hash for the current shopper session.
|
|
47
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
31
48
|
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
32
49
|
* @throws ApiError
|
|
33
50
|
*/
|
|
34
|
-
static getCartHash(
|
|
51
|
+
static getCartHash(context?: {
|
|
52
|
+
shopperGuid?: string;
|
|
53
|
+
accountId?: string;
|
|
54
|
+
}): CancelablePromise<CartHashResponse>;
|
|
35
55
|
/**
|
|
36
56
|
* Get Cash Payment Detail
|
|
37
57
|
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
58
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
38
59
|
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
39
60
|
* @throws ApiError
|
|
40
61
|
*/
|
|
41
|
-
static getCashPaymentDetail(
|
|
62
|
+
static getCashPaymentDetail(context?: {
|
|
63
|
+
shopperGuid?: string;
|
|
64
|
+
accountId?: string;
|
|
65
|
+
}): CancelablePromise<CashPaymentDetail>;
|
|
66
|
+
/**
|
|
67
|
+
* Get lightweight cart counts
|
|
68
|
+
* Returns a cheap cart summary for header/badge polling: seat count, product count, and seconds remaining on the cart timer.
|
|
69
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
70
|
+
* @returns CartCountsLite Cart counts retrieved successfully.
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
static getCartCounts(context?: {
|
|
74
|
+
shopperGuid?: string;
|
|
75
|
+
accountId?: string;
|
|
76
|
+
}): CancelablePromise<CartCountsLite>;
|
|
77
|
+
/**
|
|
78
|
+
* Get cart totals
|
|
79
|
+
* Recomputes the cart (custom logic, coupon, sales tax) and returns the current totals ledger. Call after any cart mutation.
|
|
80
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
81
|
+
* @returns CartTotals Cart totals retrieved successfully.
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
static getCartTotals(context?: {
|
|
85
|
+
shopperGuid?: string;
|
|
86
|
+
accountId?: string;
|
|
87
|
+
}): CancelablePromise<CartTotals>;
|
|
88
|
+
/**
|
|
89
|
+
* Get cart amounts ledger
|
|
90
|
+
* Returns the full amounts ledger (item/product/donation/order/tax totals, coupon, discount, payments, and gift cards + adjustments).
|
|
91
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
92
|
+
* @returns CartAmounts Cart amounts retrieved successfully.
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
static getCartAmounts(context?: {
|
|
96
|
+
shopperGuid?: string;
|
|
97
|
+
accountId?: string;
|
|
98
|
+
}): CancelablePromise<CartAmounts>;
|
|
99
|
+
/**
|
|
100
|
+
* Clear a single show from the cart
|
|
101
|
+
* Removes only the given show's seats from the cart, leaving merchandise and donations intact, then re-runs the recompute chain. Respects the session lock like DELETE /cart.
|
|
102
|
+
* @param showId
|
|
103
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
104
|
+
* @returns CartClearResult Show clear result.
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
static clearCartShow(showId: number, context?: {
|
|
108
|
+
shopperGuid?: string;
|
|
109
|
+
accountId?: string;
|
|
110
|
+
}): CancelablePromise<CartClearResult>;
|
|
42
111
|
}
|
|
@@ -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 CartService {
|
|
4
5
|
/**
|
|
5
6
|
* Get Cart
|
|
6
7
|
* Retrieves the cart along with its associated time.
|
|
8
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
7
9
|
* @returns CartWithTime Cart retrieved successfully with time.
|
|
8
10
|
* @throws ApiError
|
|
9
11
|
*/
|
|
10
|
-
static getCart() {
|
|
12
|
+
static getCart(context) {
|
|
11
13
|
return __request(OpenAPI, {
|
|
12
14
|
method: 'GET',
|
|
13
15
|
url: '/cart',
|
|
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,14 +23,16 @@ export class CartService {
|
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* Delete Cart
|
|
23
|
-
*
|
|
24
|
-
* @
|
|
26
|
+
* Clears the entire cart (seats, products, donations) for the shopper. Respects the session lock: if the session is locked (e.g. an in-flight payment) the cart is left intact and { cleared: false, locked: true } is returned.
|
|
27
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
|
+
* @returns CartClearResult Cart clear result.
|
|
25
29
|
* @throws ApiError
|
|
26
30
|
*/
|
|
27
|
-
static deleteCart() {
|
|
31
|
+
static deleteCart(context) {
|
|
28
32
|
return __request(OpenAPI, {
|
|
29
33
|
method: 'DELETE',
|
|
30
34
|
url: '/cart',
|
|
35
|
+
headers: resolveShopperHeaders(context),
|
|
31
36
|
errors: {
|
|
32
37
|
400: `Bad Request error with error details.`,
|
|
33
38
|
404: `Not found error with error details.`,
|
|
@@ -38,13 +43,15 @@ export class CartService {
|
|
|
38
43
|
/**
|
|
39
44
|
* Get Cart Summary
|
|
40
45
|
* Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
|
|
46
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
41
47
|
* @returns CartSummary Cart summary retrieved successfully.
|
|
42
48
|
* @throws ApiError
|
|
43
49
|
*/
|
|
44
|
-
static getCartSummary() {
|
|
50
|
+
static getCartSummary(context) {
|
|
45
51
|
return __request(OpenAPI, {
|
|
46
52
|
method: 'GET',
|
|
47
53
|
url: '/cart/summary',
|
|
54
|
+
headers: resolveShopperHeaders(context),
|
|
48
55
|
errors: {
|
|
49
56
|
400: `Bad Request error with error details.`,
|
|
50
57
|
404: `Not found error with error details.`,
|
|
@@ -55,13 +62,15 @@ export class CartService {
|
|
|
55
62
|
/**
|
|
56
63
|
* Get Cart Hash
|
|
57
64
|
* Returns the computed cart hash for the current shopper session.
|
|
65
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
58
66
|
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
59
67
|
* @throws ApiError
|
|
60
68
|
*/
|
|
61
|
-
static getCartHash() {
|
|
69
|
+
static getCartHash(context) {
|
|
62
70
|
return __request(OpenAPI, {
|
|
63
71
|
method: 'GET',
|
|
64
72
|
url: '/cart/hash',
|
|
73
|
+
headers: resolveShopperHeaders(context),
|
|
65
74
|
errors: {
|
|
66
75
|
400: `Bad Request error with error details.`,
|
|
67
76
|
404: `Not found error with error details.`,
|
|
@@ -72,13 +81,95 @@ export class CartService {
|
|
|
72
81
|
/**
|
|
73
82
|
* Get Cash Payment Detail
|
|
74
83
|
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
84
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
75
85
|
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
76
86
|
* @throws ApiError
|
|
77
87
|
*/
|
|
78
|
-
static getCashPaymentDetail() {
|
|
88
|
+
static getCashPaymentDetail(context) {
|
|
79
89
|
return __request(OpenAPI, {
|
|
80
90
|
method: 'GET',
|
|
81
91
|
url: '/cart/cash-payment-detail',
|
|
92
|
+
headers: resolveShopperHeaders(context),
|
|
93
|
+
errors: {
|
|
94
|
+
400: `Bad Request error with error details.`,
|
|
95
|
+
404: `Not found error with error details.`,
|
|
96
|
+
500: `Internal Server Error, please contact developers.`,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get lightweight cart counts
|
|
102
|
+
* Returns a cheap cart summary for header/badge polling: seat count, product count, and seconds remaining on the cart timer.
|
|
103
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
104
|
+
* @returns CartCountsLite Cart counts retrieved successfully.
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
static getCartCounts(context) {
|
|
108
|
+
return __request(OpenAPI, {
|
|
109
|
+
method: 'GET',
|
|
110
|
+
url: '/cart/counts',
|
|
111
|
+
headers: resolveShopperHeaders(context),
|
|
112
|
+
errors: {
|
|
113
|
+
400: `Bad Request error with error details.`,
|
|
114
|
+
404: `Not found error with error details.`,
|
|
115
|
+
500: `Internal Server Error, please contact developers.`,
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Get cart totals
|
|
121
|
+
* Recomputes the cart (custom logic, coupon, sales tax) and returns the current totals ledger. Call after any cart mutation.
|
|
122
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
123
|
+
* @returns CartTotals Cart totals retrieved successfully.
|
|
124
|
+
* @throws ApiError
|
|
125
|
+
*/
|
|
126
|
+
static getCartTotals(context) {
|
|
127
|
+
return __request(OpenAPI, {
|
|
128
|
+
method: 'GET',
|
|
129
|
+
url: '/cart/totals',
|
|
130
|
+
headers: resolveShopperHeaders(context),
|
|
131
|
+
errors: {
|
|
132
|
+
400: `Bad Request error with error details.`,
|
|
133
|
+
404: `Not found error with error details.`,
|
|
134
|
+
500: `Internal Server Error, please contact developers.`,
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get cart amounts ledger
|
|
140
|
+
* Returns the full amounts ledger (item/product/donation/order/tax totals, coupon, discount, payments, and gift cards + adjustments).
|
|
141
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
142
|
+
* @returns CartAmounts Cart amounts retrieved successfully.
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
static getCartAmounts(context) {
|
|
146
|
+
return __request(OpenAPI, {
|
|
147
|
+
method: 'GET',
|
|
148
|
+
url: '/cart/amounts',
|
|
149
|
+
headers: resolveShopperHeaders(context),
|
|
150
|
+
errors: {
|
|
151
|
+
400: `Bad Request error with error details.`,
|
|
152
|
+
404: `Not found error with error details.`,
|
|
153
|
+
500: `Internal Server Error, please contact developers.`,
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Clear a single show from the cart
|
|
159
|
+
* Removes only the given show's seats from the cart, leaving merchandise and donations intact, then re-runs the recompute chain. Respects the session lock like DELETE /cart.
|
|
160
|
+
* @param showId
|
|
161
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
162
|
+
* @returns CartClearResult Show clear result.
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
static clearCartShow(showId, context) {
|
|
166
|
+
return __request(OpenAPI, {
|
|
167
|
+
method: 'DELETE',
|
|
168
|
+
url: '/cart/show/{showId}',
|
|
169
|
+
path: {
|
|
170
|
+
'showId': showId,
|
|
171
|
+
},
|
|
172
|
+
headers: resolveShopperHeaders(context),
|
|
82
173
|
errors: {
|
|
83
174
|
400: `Bad Request error with error details.`,
|
|
84
175
|
404: `Not found error with error details.`,
|
|
@@ -1,46 +1,79 @@
|
|
|
1
1
|
import type { CheckoutPageData } from '../models/CheckoutPageData';
|
|
2
|
+
import type { CheckoutStepsResponse } from '../models/CheckoutStepsResponse';
|
|
2
3
|
import type { CheckoutSubmitBody } from '../models/CheckoutSubmitBody';
|
|
3
4
|
import type { CheckoutSuccessResponse } from '../models/CheckoutSuccessResponse';
|
|
5
|
+
import type { NextStepResponse } from '../models/NextStepResponse';
|
|
6
|
+
import type { PosDefaultInfoResponse } from '../models/PosDefaultInfoResponse';
|
|
4
7
|
import type { SaveDetailsBody } from '../models/SaveDetailsBody';
|
|
5
|
-
import type { SaveNonceBody } from '../models/SaveNonceBody';
|
|
6
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
9
|
export declare class CheckoutService {
|
|
8
10
|
/**
|
|
9
11
|
* Get checkout page data
|
|
10
12
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
13
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
14
|
* @returns CheckoutPageData Returns checkout page data.
|
|
12
15
|
* @throws ApiError
|
|
13
16
|
*/
|
|
14
|
-
static getCheckout(
|
|
17
|
+
static getCheckout(context?: {
|
|
18
|
+
shopperGuid?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
}): CancelablePromise<CheckoutPageData>;
|
|
15
21
|
/**
|
|
16
22
|
* Submit checkout
|
|
17
|
-
* Validates and saves checkout form data
|
|
23
|
+
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Stripe-only payment flow.
|
|
24
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
18
25
|
* @param requestBody Checkout form data.
|
|
19
26
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
20
27
|
* @throws ApiError
|
|
21
28
|
*/
|
|
22
|
-
static submitCheckout(requestBody: CheckoutSubmitBody
|
|
29
|
+
static submitCheckout(requestBody: CheckoutSubmitBody, context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
34
|
+
* Get the next checkout step
|
|
35
|
+
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
36
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
37
|
+
* @param curr The current step. Defaults to 'seats'.
|
|
38
|
+
* @returns NextStepResponse Returns the next step.
|
|
28
39
|
* @throws ApiError
|
|
29
40
|
*/
|
|
30
|
-
static
|
|
41
|
+
static getNextStep(context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}, curr?: string): CancelablePromise<NextStepResponse>;
|
|
31
45
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
46
|
+
* Get applicable checkout steps
|
|
47
|
+
* 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).
|
|
48
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
49
|
+
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
35
50
|
* @throws ApiError
|
|
36
51
|
*/
|
|
37
|
-
static
|
|
52
|
+
static getSteps(context?: {
|
|
53
|
+
shopperGuid?: string;
|
|
54
|
+
accountId?: string;
|
|
55
|
+
}): CancelablePromise<CheckoutStepsResponse>;
|
|
38
56
|
/**
|
|
39
57
|
* Auto-save checkout details
|
|
40
58
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
59
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
41
60
|
* @param requestBody Partial checkout data to auto-save.
|
|
42
61
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
43
62
|
* @throws ApiError
|
|
44
63
|
*/
|
|
45
|
-
static saveDetails(requestBody: SaveDetailsBody
|
|
64
|
+
static saveDetails(requestBody: SaveDetailsBody, context?: {
|
|
65
|
+
shopperGuid?: string;
|
|
66
|
+
accountId?: string;
|
|
67
|
+
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Fill contact fields from POS defaults
|
|
70
|
+
* 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).
|
|
71
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
72
|
+
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static fillDefaultInfo(context?: {
|
|
76
|
+
shopperGuid?: string;
|
|
77
|
+
accountId?: string;
|
|
78
|
+
}): CancelablePromise<PosDefaultInfoResponse>;
|
|
46
79
|
}
|
|
@@ -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
|
}
|