@drttix/drt-sdk 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/src/definitions/portal.d.ts +6 -0
- package/dist/cjs/src/definitions/portal.js +46 -40
- package/dist/cjs/src/definitions/shopper.d.ts +2 -0
- package/dist/cjs/src/definitions/shopper.js +6 -4
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +23 -1
- package/dist/cjs/src/generated/portal/index.js +10 -2
- package/dist/cjs/src/generated/portal/models/ActivityLogEntryDto.d.ts +13 -0
- package/dist/cjs/src/generated/portal/models/ActivityLogEntryDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ActivityLogResponseDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/ActivityLogResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/BulkEditRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/CreateDocumentResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/CreateImageFileResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/CreatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/CreateShowRequestDto.d.ts +9 -1
- package/dist/cjs/src/generated/portal/models/CreateShowTimeDto.d.ts +52 -0
- package/dist/cjs/src/generated/portal/models/CreateTicketTypeDto.d.ts +4 -1
- package/dist/cjs/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/cjs/src/generated/portal/models/CreateUpdateQuestionRequestDto.d.ts +8 -8
- package/dist/cjs/src/generated/portal/models/DashboardResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/DownloadTicketsResponseDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/DownloadTicketsResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/EditMailRequestDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/EditMailRequestDto.js +9 -0
- package/dist/cjs/src/generated/portal/models/FacebookRescrapeResponseDto.d.ts +12 -0
- package/dist/cjs/src/generated/portal/models/FacebookRescrapeResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ImportBlockedSeatResponse.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerOrderDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerOrderDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerShowDto.d.ts +10 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerShowDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixDetailsResponseDto.d.ts +18 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixDetailsResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixLoginUrlResponseDto.d.ts +11 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixLoginUrlResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PricingSetBodyDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/PricingSetBodyDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PricingSetRuleDto.d.ts +10 -0
- package/dist/cjs/src/generated/portal/models/PricingSetRuleDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/RefundDetailResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerInterviewDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerInterviewDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerPricingSetDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerPricingSetDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerRuleDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerRuleDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerSectionDto.d.ts +9 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerSectionDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerShowDto.d.ts +8 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerShowDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetRequestDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +8 -0
- package/dist/cjs/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.d.ts +9 -0
- package/dist/cjs/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ShowPricing.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/ShowRevenueVisualizerResponseDto.d.ts +12 -0
- package/dist/cjs/src/generated/portal/models/ShowRevenueVisualizerResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ShowsList.d.ts +44 -0
- package/dist/cjs/src/generated/portal/models/SoldTicketsResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/SuccessResponse.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/UpdatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/services/ClientToolsPerformancePixService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsPerformancePixService.js +40 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsTicketingLinkService.d.ts +9 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsTicketingLinkService.js +16 -0
- package/dist/cjs/src/generated/portal/services/FeaturesBlockedSeatsService.d.ts +4 -3
- package/dist/cjs/src/generated/portal/services/FeaturesBlockedSeatsService.js +2 -2
- package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +32 -0
- package/dist/cjs/src/generated/portal/services/ShowsService.js +63 -0
- package/dist/cjs/src/generated/portal/services/SuperUserActivityLogService.d.ts +26 -0
- package/dist/cjs/src/generated/portal/services/SuperUserActivityLogService.js +54 -0
- package/dist/cjs/src/generated/portal/services/SuperuserPerformancePixService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/SuperuserPerformancePixService.js +40 -0
- package/dist/cjs/src/generated/portal/types.d.ts +19 -1
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +27 -1
- package/dist/cjs/src/generated/shopper/index.js +5 -1
- package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/DayPassDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/DayPassDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventGroup.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +5 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/GetEventsResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.js +12 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/OrderSeat.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/RecalcReturn.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.js +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupRequest.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/TimedEntrySlot.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/TimedEntrySlot.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/cjs/src/generated/shopper/services/CartService.js +50 -21
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/cjs/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +27 -6
- package/dist/cjs/src/generated/shopper/services/EventService.js +55 -13
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/cjs/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.js +78 -0
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +47 -8
- package/dist/cjs/src/generated/shopper/services/SeatService.js +96 -17
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +53 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.js +102 -13
- package/dist/cjs/src/generated/shopper/types.d.ts +25 -1
- package/dist/cjs/src/staging/index.d.ts +4 -0
- package/dist/cjs/src/staging/portal.d.ts +6 -0
- package/dist/cjs/src/staging/portal.js +46 -40
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/src/definitions/portal.d.ts +6 -0
- package/dist/esm/src/definitions/portal.js +6 -0
- package/dist/esm/src/definitions/shopper.d.ts +2 -0
- package/dist/esm/src/definitions/shopper.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +23 -1
- package/dist/esm/src/generated/portal/index.js +4 -0
- package/dist/esm/src/generated/portal/models/ActivityLogEntryDto.d.ts +13 -0
- package/dist/esm/src/generated/portal/models/ActivityLogEntryDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ActivityLogResponseDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/ActivityLogResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/BulkEditRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/CreateDocumentResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/CreateImageFileResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/CreatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/CreateShowRequestDto.d.ts +9 -1
- package/dist/esm/src/generated/portal/models/CreateShowTimeDto.d.ts +52 -0
- package/dist/esm/src/generated/portal/models/CreateTicketTypeDto.d.ts +4 -1
- package/dist/esm/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/esm/src/generated/portal/models/CreateUpdateQuestionRequestDto.d.ts +8 -8
- package/dist/esm/src/generated/portal/models/DashboardResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/DownloadTicketsResponseDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/DownloadTicketsResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/EditMailRequestDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/EditMailRequestDto.js +8 -1
- package/dist/esm/src/generated/portal/models/FacebookRescrapeResponseDto.d.ts +12 -0
- package/dist/esm/src/generated/portal/models/FacebookRescrapeResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ImportBlockedSeatResponse.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerOrderDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerOrderDto.js +1 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerShowDto.d.ts +10 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerShowDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PerformancePixDetailsResponseDto.d.ts +18 -0
- package/dist/esm/src/generated/portal/models/PerformancePixDetailsResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PerformancePixLoginUrlResponseDto.d.ts +11 -0
- package/dist/esm/src/generated/portal/models/PerformancePixLoginUrlResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PricingSetBodyDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/PricingSetBodyDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PricingSetRuleDto.d.ts +10 -0
- package/dist/esm/src/generated/portal/models/PricingSetRuleDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/RefundDetailResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerInterviewDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerInterviewDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerPricingSetDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerPricingSetDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerRuleDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerRuleDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerSectionDto.d.ts +9 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerSectionDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerShowDto.d.ts +8 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerShowDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetRequestDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +8 -0
- package/dist/esm/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.d.ts +9 -0
- package/dist/esm/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ShowPricing.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/ShowRevenueVisualizerResponseDto.d.ts +12 -0
- package/dist/esm/src/generated/portal/models/ShowRevenueVisualizerResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ShowsList.d.ts +44 -0
- package/dist/esm/src/generated/portal/models/SoldTicketsResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/SuccessResponse.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/UpdatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/services/ClientToolsPerformancePixService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/ClientToolsPerformancePixService.js +36 -0
- package/dist/esm/src/generated/portal/services/ClientToolsTicketingLinkService.d.ts +9 -0
- package/dist/esm/src/generated/portal/services/ClientToolsTicketingLinkService.js +16 -0
- package/dist/esm/src/generated/portal/services/FeaturesBlockedSeatsService.d.ts +4 -3
- package/dist/esm/src/generated/portal/services/FeaturesBlockedSeatsService.js +2 -2
- package/dist/esm/src/generated/portal/services/ShowsService.d.ts +32 -0
- package/dist/esm/src/generated/portal/services/ShowsService.js +63 -0
- package/dist/esm/src/generated/portal/services/SuperUserActivityLogService.d.ts +26 -0
- package/dist/esm/src/generated/portal/services/SuperUserActivityLogService.js +50 -0
- package/dist/esm/src/generated/portal/services/SuperuserPerformancePixService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/SuperuserPerformancePixService.js +36 -0
- package/dist/esm/src/generated/portal/types.d.ts +19 -1
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +27 -1
- package/dist/esm/src/generated/shopper/index.js +2 -0
- package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/DayPassDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/DayPassDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventGroup.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +5 -0
- package/dist/esm/src/generated/shopper/models/GaTier.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/GetEventsResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.js +9 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/OrderSeat.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.js +1 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/RecalcReturn.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.js +1 -0
- package/dist/esm/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupRequest.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/TimedEntrySlot.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/TimedEntrySlot.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/esm/src/generated/shopper/services/CartService.js +50 -21
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/esm/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +27 -6
- package/dist/esm/src/generated/shopper/services/EventService.js +55 -13
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/esm/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.js +74 -0
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +47 -8
- package/dist/esm/src/generated/shopper/services/SeatService.js +96 -17
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +53 -6
- package/dist/esm/src/generated/shopper/services/SessionService.js +102 -13
- package/dist/esm/src/generated/shopper/types.d.ts +25 -1
- package/dist/esm/src/staging/index.d.ts +4 -0
- package/dist/esm/src/staging/portal.d.ts +6 -0
- package/dist/esm/src/staging/portal.js +6 -0
- package/package.json +1 -1
- package/src/definitions/portal.ts +6 -0
- package/src/definitions/shopper.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +23 -1
- package/src/generated/portal/models/ActivityLogEntryDto.ts +18 -0
- package/src/generated/portal/models/ActivityLogResponseDto.ts +10 -0
- package/src/generated/portal/models/BulkEditRequestDto.ts +2 -2
- package/src/generated/portal/models/CreateDocumentResponseDto.ts +1 -0
- package/src/generated/portal/models/CreateImageFileResponseDto.ts +1 -0
- package/src/generated/portal/models/CreatePriorityCodeRequestDto.ts +2 -2
- package/src/generated/portal/models/CreateShowRequestDto.ts +9 -1
- package/src/generated/portal/models/CreateShowTimeDto.ts +52 -0
- package/src/generated/portal/models/CreateTicketTypeDto.ts +4 -1
- package/src/generated/portal/models/CreateUpdateProductRequestDto.ts +4 -4
- package/src/generated/portal/models/CreateUpdateQuestionRequestDto.ts +8 -8
- package/src/generated/portal/models/DashboardResponseDto.ts +4 -0
- package/src/generated/portal/models/DownloadTicketsResponseDto.ts +12 -0
- package/src/generated/portal/models/EditMailRequestDto.ts +7 -0
- package/src/generated/portal/models/FacebookRescrapeResponseDto.ts +17 -0
- package/src/generated/portal/models/ImportBlockedSeatResponse.ts +1 -0
- package/src/generated/portal/models/OccupancyVisualizerOrderDto.ts +10 -0
- package/src/generated/portal/models/OccupancyVisualizerShowDto.ts +15 -0
- package/src/generated/portal/models/PerformancePixDetailsResponseDto.ts +23 -0
- package/src/generated/portal/models/PerformancePixLoginUrlResponseDto.ts +16 -0
- package/src/generated/portal/models/PricingSetBodyDto.ts +10 -0
- package/src/generated/portal/models/PricingSetRuleDto.ts +15 -0
- package/src/generated/portal/models/ProductDetailResponseDto.ts +2 -2
- package/src/generated/portal/models/RefundDetailResponseDto.ts +4 -0
- package/src/generated/portal/models/RevenueVisualizerInterviewDto.ts +10 -0
- package/src/generated/portal/models/RevenueVisualizerPricingSetDto.ts +12 -0
- package/src/generated/portal/models/RevenueVisualizerRuleDto.ts +12 -0
- package/src/generated/portal/models/RevenueVisualizerSectionDto.ts +14 -0
- package/src/generated/portal/models/RevenueVisualizerShowDto.ts +13 -0
- package/src/generated/portal/models/SavePricingSetRequestDto.ts +11 -0
- package/src/generated/portal/models/SavePricingSetResponseDto.ts +9 -0
- package/src/generated/portal/models/SeatResponseDto.ts +1 -0
- package/src/generated/portal/models/SettingsDetailsResponseDto.ts +8 -0
- package/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.ts +14 -0
- package/src/generated/portal/models/ShowPricing.ts +1 -0
- package/src/generated/portal/models/ShowRevenueVisualizerResponseDto.ts +17 -0
- package/src/generated/portal/models/ShowsList.ts +44 -0
- package/src/generated/portal/models/SoldTicketsResponseDto.ts +1 -0
- package/src/generated/portal/models/SuccessResponse.ts +1 -0
- package/src/generated/portal/models/UpdatePriorityCodeRequestDto.ts +2 -2
- package/src/generated/portal/services/ClientToolsPerformancePixService.ts +47 -0
- package/src/generated/portal/services/ClientToolsTicketingLinkService.ts +19 -0
- package/src/generated/portal/services/FeaturesBlockedSeatsService.ts +4 -3
- package/src/generated/portal/services/ShowsService.ts +77 -0
- package/src/generated/portal/services/SuperUserActivityLogService.ts +66 -0
- package/src/generated/portal/services/SuperuserPerformancePixService.ts +47 -0
- package/src/generated/portal/types.ts +19 -1
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +27 -1
- package/src/generated/shopper/models/Account.ts +4 -0
- package/src/generated/shopper/models/AssetDownloadRequest.ts +9 -0
- package/src/generated/shopper/models/AssetDownloadResponse.ts +12 -0
- package/src/generated/shopper/models/CapabilityManifestDto.ts +5 -1
- package/src/generated/shopper/models/ClientRequestErrorResponse.ts +11 -0
- package/src/generated/shopper/models/CreatePaymentLinkBody.ts +23 -0
- package/src/generated/shopper/models/CreatePaymentLinkResponse.ts +45 -0
- package/src/generated/shopper/models/DayPassDto.ts +15 -0
- package/src/generated/shopper/models/EventDetails.ts +4 -0
- package/src/generated/shopper/models/EventFormat.ts +12 -0
- package/src/generated/shopper/models/EventGroup.ts +20 -0
- package/src/generated/shopper/models/EventListItem.ts +4 -0
- package/src/generated/shopper/models/ExchangeValidateResponse.ts +4 -0
- package/src/generated/shopper/models/FullEventDetails.ts +4 -0
- package/src/generated/shopper/models/GaSelection.ts +5 -0
- package/src/generated/shopper/models/GaTier.ts +11 -0
- package/src/generated/shopper/models/GetEventsResponse.ts +4 -0
- package/src/generated/shopper/models/ManifestSeat.ts +19 -0
- package/src/generated/shopper/models/OrderLookupBody.ts +19 -0
- package/src/generated/shopper/models/OrderLookupResult.ts +19 -0
- package/src/generated/shopper/models/OrderRefundDetails.ts +1 -0
- package/src/generated/shopper/models/OrderSeat.ts +8 -0
- package/src/generated/shopper/models/PaymentLinkSession.ts +23 -0
- package/src/generated/shopper/models/PaymentLinkStatus.ts +37 -0
- package/src/generated/shopper/models/RecalcReturn.ts +8 -0
- package/src/generated/shopper/models/Receipt.ts +2 -0
- package/src/generated/shopper/models/RefundExchangeOffer.ts +43 -0
- package/src/generated/shopper/models/RefundReason.ts +1 -0
- package/src/generated/shopper/models/RefundRequestInfo.ts +2 -0
- package/src/generated/shopper/models/RegisterStreamResponse.ts +4 -0
- package/src/generated/shopper/models/ResetStreamInviteRequest.ts +13 -0
- package/src/generated/shopper/models/SaveStreamInvitesRequest.ts +15 -0
- package/src/generated/shopper/models/SaveStreamInvitesResponse.ts +12 -0
- package/src/generated/shopper/models/SeatInCart.ts +8 -0
- package/src/generated/shopper/models/SeatManifest.ts +25 -0
- package/src/generated/shopper/models/SetShowGroupRequest.ts +11 -0
- package/src/generated/shopper/models/SetShowGroupResponse.ts +12 -0
- package/src/generated/shopper/models/SharedStream.ts +42 -0
- package/src/generated/shopper/models/ShowExtras.ts +4 -0
- package/src/generated/shopper/models/StartSupportSessionDto.ts +15 -0
- package/src/generated/shopper/models/StreamAuthorization.ts +19 -0
- package/src/generated/shopper/models/StreamInvite.ts +24 -0
- package/src/generated/shopper/models/StreamInviteInput.ts +12 -0
- package/src/generated/shopper/models/StreamInvitesResponse.ts +13 -0
- package/src/generated/shopper/models/SupportSessionStateDto.ts +19 -0
- package/src/generated/shopper/models/TimedEntrySlot.ts +43 -0
- package/src/generated/shopper/services/AccountService.ts +20 -4
- package/src/generated/shopper/services/CartService.ts +50 -10
- package/src/generated/shopper/services/CheckoutService.ts +40 -8
- package/src/generated/shopper/services/CodeService.ts +60 -6
- package/src/generated/shopper/services/DonationService.ts +13 -2
- package/src/generated/shopper/services/EventService.ts +61 -6
- package/src/generated/shopper/services/GiftCardService.ts +25 -5
- package/src/generated/shopper/services/OrderService.ts +411 -30
- package/src/generated/shopper/services/PaymentLinkService.ts +93 -0
- package/src/generated/shopper/services/PaymentService.ts +16 -4
- package/src/generated/shopper/services/ProductService.ts +15 -3
- package/src/generated/shopper/services/SeatService.ts +105 -8
- package/src/generated/shopper/services/SessionService.ts +116 -6
- package/src/generated/shopper/types.ts +25 -1
- package/src/staging/portal.ts +6 -0
- package/src/generated/shopper/models/PaymentFail.ts +0 -23
|
@@ -1,19 +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';
|
|
4
3
|
export class CartService {
|
|
5
4
|
/**
|
|
6
5
|
* Get Cart
|
|
7
6
|
* Retrieves the cart along with its associated time.
|
|
8
7
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
8
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
9
9
|
* @returns CartWithTime Cart retrieved successfully with time.
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
12
|
-
static getCart(context) {
|
|
12
|
+
static getCart(context, xDrtDomain) {
|
|
13
13
|
return __request(OpenAPI, {
|
|
14
14
|
method: 'GET',
|
|
15
15
|
url: '/cart',
|
|
16
|
-
headers:
|
|
16
|
+
headers: {
|
|
17
|
+
'x-drt-domain': xDrtDomain,
|
|
18
|
+
},
|
|
17
19
|
errors: {
|
|
18
20
|
400: `Bad Request error with error details.`,
|
|
19
21
|
404: `Not found error with error details.`,
|
|
@@ -25,14 +27,17 @@ export class CartService {
|
|
|
25
27
|
* Delete Cart
|
|
26
28
|
* 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
29
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
30
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
28
31
|
* @returns CartClearResult Cart clear result.
|
|
29
32
|
* @throws ApiError
|
|
30
33
|
*/
|
|
31
|
-
static deleteCart(context) {
|
|
34
|
+
static deleteCart(context, xDrtDomain) {
|
|
32
35
|
return __request(OpenAPI, {
|
|
33
36
|
method: 'DELETE',
|
|
34
37
|
url: '/cart',
|
|
35
|
-
headers:
|
|
38
|
+
headers: {
|
|
39
|
+
'x-drt-domain': xDrtDomain,
|
|
40
|
+
},
|
|
36
41
|
errors: {
|
|
37
42
|
400: `Bad Request error with error details.`,
|
|
38
43
|
404: `Not found error with error details.`,
|
|
@@ -44,14 +49,17 @@ export class CartService {
|
|
|
44
49
|
* Get Cart Summary
|
|
45
50
|
* 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
51
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
52
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
47
53
|
* @returns CartSummary Cart summary retrieved successfully.
|
|
48
54
|
* @throws ApiError
|
|
49
55
|
*/
|
|
50
|
-
static getCartSummary(context) {
|
|
56
|
+
static getCartSummary(context, xDrtDomain) {
|
|
51
57
|
return __request(OpenAPI, {
|
|
52
58
|
method: 'GET',
|
|
53
59
|
url: '/cart/summary',
|
|
54
|
-
headers:
|
|
60
|
+
headers: {
|
|
61
|
+
'x-drt-domain': xDrtDomain,
|
|
62
|
+
},
|
|
55
63
|
errors: {
|
|
56
64
|
400: `Bad Request error with error details.`,
|
|
57
65
|
404: `Not found error with error details.`,
|
|
@@ -63,14 +71,17 @@ export class CartService {
|
|
|
63
71
|
* Get Cart Hash
|
|
64
72
|
* Returns the computed cart hash for the current shopper session.
|
|
65
73
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
74
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
66
75
|
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
67
76
|
* @throws ApiError
|
|
68
77
|
*/
|
|
69
|
-
static getCartHash(context) {
|
|
78
|
+
static getCartHash(context, xDrtDomain) {
|
|
70
79
|
return __request(OpenAPI, {
|
|
71
80
|
method: 'GET',
|
|
72
81
|
url: '/cart/hash',
|
|
73
|
-
headers:
|
|
82
|
+
headers: {
|
|
83
|
+
'x-drt-domain': xDrtDomain,
|
|
84
|
+
},
|
|
74
85
|
errors: {
|
|
75
86
|
400: `Bad Request error with error details.`,
|
|
76
87
|
404: `Not found error with error details.`,
|
|
@@ -82,14 +93,17 @@ export class CartService {
|
|
|
82
93
|
* Get Cash Payment Detail (operator only)
|
|
83
94
|
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials. Requires a logged-in operator session — returns 403 for a plain shopper.
|
|
84
95
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
96
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
85
97
|
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
86
98
|
* @throws ApiError
|
|
87
99
|
*/
|
|
88
|
-
static getCashPaymentDetail(context) {
|
|
100
|
+
static getCashPaymentDetail(context, xDrtDomain) {
|
|
89
101
|
return __request(OpenAPI, {
|
|
90
102
|
method: 'GET',
|
|
91
103
|
url: '/cart/cash-payment-detail',
|
|
92
|
-
headers:
|
|
104
|
+
headers: {
|
|
105
|
+
'x-drt-domain': xDrtDomain,
|
|
106
|
+
},
|
|
93
107
|
errors: {
|
|
94
108
|
400: `Bad Request error with error details.`,
|
|
95
109
|
404: `Not found error with error details.`,
|
|
@@ -101,14 +115,17 @@ export class CartService {
|
|
|
101
115
|
* Get lightweight cart counts
|
|
102
116
|
* Returns a cheap cart summary for header/badge polling: seat count, product count, and seconds remaining on the cart timer.
|
|
103
117
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
118
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
104
119
|
* @returns CartCountsLite Cart counts retrieved successfully.
|
|
105
120
|
* @throws ApiError
|
|
106
121
|
*/
|
|
107
|
-
static getCartCounts(context) {
|
|
122
|
+
static getCartCounts(context, xDrtDomain) {
|
|
108
123
|
return __request(OpenAPI, {
|
|
109
124
|
method: 'GET',
|
|
110
125
|
url: '/cart/counts',
|
|
111
|
-
headers:
|
|
126
|
+
headers: {
|
|
127
|
+
'x-drt-domain': xDrtDomain,
|
|
128
|
+
},
|
|
112
129
|
errors: {
|
|
113
130
|
400: `Bad Request error with error details.`,
|
|
114
131
|
404: `Not found error with error details.`,
|
|
@@ -120,14 +137,17 @@ export class CartService {
|
|
|
120
137
|
* Get the pricing-tiers page data
|
|
121
138
|
* Held seats that need a pricing-tier selection (their section offers more than one applicable tier), each with its tier options — fee-inclusive, door-pricing-aware prices. Empty seats list = the tiers step should be skipped; this agrees with GET /checkout/next-step by construction (PROJ-903). Change a tier with POST /seat/update-tier.
|
|
122
139
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
140
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
123
141
|
* @returns CartTiersResponse Cart tier-selection data retrieved successfully.
|
|
124
142
|
* @throws ApiError
|
|
125
143
|
*/
|
|
126
|
-
static getCartTiers(context) {
|
|
144
|
+
static getCartTiers(context, xDrtDomain) {
|
|
127
145
|
return __request(OpenAPI, {
|
|
128
146
|
method: 'GET',
|
|
129
147
|
url: '/cart/tiers',
|
|
130
|
-
headers:
|
|
148
|
+
headers: {
|
|
149
|
+
'x-drt-domain': xDrtDomain,
|
|
150
|
+
},
|
|
131
151
|
errors: {
|
|
132
152
|
400: `Bad Request error with error details.`,
|
|
133
153
|
404: `Not found error with error details.`,
|
|
@@ -139,14 +159,17 @@ export class CartService {
|
|
|
139
159
|
* Get cart totals
|
|
140
160
|
* Recomputes the cart (custom logic, coupon, sales tax) and returns the current totals ledger. Call after any cart mutation.
|
|
141
161
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
162
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
142
163
|
* @returns CartTotals Cart totals retrieved successfully.
|
|
143
164
|
* @throws ApiError
|
|
144
165
|
*/
|
|
145
|
-
static getCartTotals(context) {
|
|
166
|
+
static getCartTotals(context, xDrtDomain) {
|
|
146
167
|
return __request(OpenAPI, {
|
|
147
168
|
method: 'GET',
|
|
148
169
|
url: '/cart/totals',
|
|
149
|
-
headers:
|
|
170
|
+
headers: {
|
|
171
|
+
'x-drt-domain': xDrtDomain,
|
|
172
|
+
},
|
|
150
173
|
errors: {
|
|
151
174
|
400: `Bad Request error with error details.`,
|
|
152
175
|
404: `Not found error with error details.`,
|
|
@@ -158,14 +181,17 @@ export class CartService {
|
|
|
158
181
|
* Get cart amounts ledger
|
|
159
182
|
* Returns the full amounts ledger (item/product/donation/order/tax totals, coupon, discount, payments, and gift cards + adjustments).
|
|
160
183
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
184
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
161
185
|
* @returns CartAmounts Cart amounts retrieved successfully.
|
|
162
186
|
* @throws ApiError
|
|
163
187
|
*/
|
|
164
|
-
static getCartAmounts(context) {
|
|
188
|
+
static getCartAmounts(context, xDrtDomain) {
|
|
165
189
|
return __request(OpenAPI, {
|
|
166
190
|
method: 'GET',
|
|
167
191
|
url: '/cart/amounts',
|
|
168
|
-
headers:
|
|
192
|
+
headers: {
|
|
193
|
+
'x-drt-domain': xDrtDomain,
|
|
194
|
+
},
|
|
169
195
|
errors: {
|
|
170
196
|
400: `Bad Request error with error details.`,
|
|
171
197
|
404: `Not found error with error details.`,
|
|
@@ -178,17 +204,20 @@ export class CartService {
|
|
|
178
204
|
* 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.
|
|
179
205
|
* @param showId
|
|
180
206
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
207
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
181
208
|
* @returns CartClearResult Show clear result.
|
|
182
209
|
* @throws ApiError
|
|
183
210
|
*/
|
|
184
|
-
static clearCartShow(showId, context) {
|
|
211
|
+
static clearCartShow(showId, context, xDrtDomain) {
|
|
185
212
|
return __request(OpenAPI, {
|
|
186
213
|
method: 'DELETE',
|
|
187
214
|
url: '/cart/show/{showId}',
|
|
188
215
|
path: {
|
|
189
216
|
'showId': showId,
|
|
190
217
|
},
|
|
191
|
-
headers:
|
|
218
|
+
headers: {
|
|
219
|
+
'x-drt-domain': xDrtDomain,
|
|
220
|
+
},
|
|
192
221
|
errors: {
|
|
193
222
|
400: `Bad Request error with error details.`,
|
|
194
223
|
404: `Not found error with error details.`,
|
|
@@ -12,92 +12,100 @@ export declare class CheckoutService {
|
|
|
12
12
|
* Get checkout page data
|
|
13
13
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
14
14
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
15
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
15
16
|
* @returns CheckoutPageData Returns checkout page data.
|
|
16
17
|
* @throws ApiError
|
|
17
18
|
*/
|
|
18
19
|
static getCheckout(context?: {
|
|
19
20
|
shopperGuid?: string;
|
|
20
21
|
accountId?: string;
|
|
21
|
-
}): CancelablePromise<CheckoutPageData>;
|
|
22
|
+
}, xDrtDomain?: string): CancelablePromise<CheckoutPageData>;
|
|
22
23
|
/**
|
|
23
24
|
* Submit checkout
|
|
24
25
|
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Supports both token (EMS/Authorize.net) and Stripe payment flows.
|
|
25
26
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
26
27
|
* @param requestBody Checkout form data.
|
|
28
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
27
29
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
28
30
|
* @throws ApiError
|
|
29
31
|
*/
|
|
30
32
|
static submitCheckout(requestBody: CheckoutSubmitBody, context?: {
|
|
31
33
|
shopperGuid?: string;
|
|
32
34
|
accountId?: string;
|
|
33
|
-
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
35
|
+
}, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
|
|
34
36
|
/**
|
|
35
37
|
* Get the next checkout step
|
|
36
38
|
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
37
39
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
38
40
|
* @param curr The current step. Defaults to 'seats'.
|
|
41
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
39
42
|
* @returns NextStepResponse Returns the next step.
|
|
40
43
|
* @throws ApiError
|
|
41
44
|
*/
|
|
42
45
|
static getNextStep(context?: {
|
|
43
46
|
shopperGuid?: string;
|
|
44
47
|
accountId?: string;
|
|
45
|
-
}, curr?: string): CancelablePromise<NextStepResponse>;
|
|
48
|
+
}, curr?: string, xDrtDomain?: string): CancelablePromise<NextStepResponse>;
|
|
46
49
|
/**
|
|
47
50
|
* Get applicable checkout steps
|
|
48
51
|
* 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).
|
|
49
52
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
53
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
50
54
|
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
51
55
|
* @throws ApiError
|
|
52
56
|
*/
|
|
53
57
|
static getSteps(context?: {
|
|
54
58
|
shopperGuid?: string;
|
|
55
59
|
accountId?: string;
|
|
56
|
-
}): CancelablePromise<CheckoutStepsResponse>;
|
|
60
|
+
}, xDrtDomain?: string): CancelablePromise<CheckoutStepsResponse>;
|
|
57
61
|
/**
|
|
58
62
|
* Save payment nonce
|
|
59
63
|
* Saves a payment nonce (token) from EMS/Authorize.net to the session.
|
|
60
64
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
61
65
|
* @param requestBody Nonce data to save.
|
|
66
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
62
67
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
63
68
|
* @throws ApiError
|
|
64
69
|
*/
|
|
65
70
|
static saveNonce(requestBody: SaveNonceBody, context?: {
|
|
66
71
|
shopperGuid?: string;
|
|
67
72
|
accountId?: string;
|
|
68
|
-
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
73
|
+
}, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
|
|
69
74
|
/**
|
|
70
75
|
* Clear payment nonce
|
|
71
76
|
* Clears the payment nonce and related CC fields from the session.
|
|
72
77
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
78
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
73
79
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
74
80
|
* @throws ApiError
|
|
75
81
|
*/
|
|
76
82
|
static clearNonce(context?: {
|
|
77
83
|
shopperGuid?: string;
|
|
78
84
|
accountId?: string;
|
|
79
|
-
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
85
|
+
}, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
|
|
80
86
|
/**
|
|
81
87
|
* Auto-save checkout details
|
|
82
88
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
83
89
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
84
90
|
* @param requestBody Partial checkout data to auto-save.
|
|
91
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
85
92
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
86
93
|
* @throws ApiError
|
|
87
94
|
*/
|
|
88
95
|
static saveDetails(requestBody: SaveDetailsBody, context?: {
|
|
89
96
|
shopperGuid?: string;
|
|
90
97
|
accountId?: string;
|
|
91
|
-
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
98
|
+
}, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
|
|
92
99
|
/**
|
|
93
100
|
* Fill contact fields from POS defaults
|
|
94
101
|
* 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).
|
|
95
102
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
103
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
96
104
|
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
97
105
|
* @throws ApiError
|
|
98
106
|
*/
|
|
99
107
|
static fillDefaultInfo(context?: {
|
|
100
108
|
shopperGuid?: string;
|
|
101
109
|
accountId?: string;
|
|
102
|
-
}): CancelablePromise<PosDefaultInfoResponse>;
|
|
110
|
+
}, xDrtDomain?: string): CancelablePromise<PosDefaultInfoResponse>;
|
|
103
111
|
}
|
|
@@ -1,19 +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';
|
|
4
3
|
export class CheckoutService {
|
|
5
4
|
/**
|
|
6
5
|
* Get checkout page data
|
|
7
6
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
8
7
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
8
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
9
9
|
* @returns CheckoutPageData Returns checkout page data.
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
12
|
-
static getCheckout(context) {
|
|
12
|
+
static getCheckout(context, xDrtDomain) {
|
|
13
13
|
return __request(OpenAPI, {
|
|
14
14
|
method: 'GET',
|
|
15
15
|
url: '/checkout',
|
|
16
|
-
headers:
|
|
16
|
+
headers: {
|
|
17
|
+
'x-drt-domain': xDrtDomain,
|
|
18
|
+
},
|
|
17
19
|
errors: {
|
|
18
20
|
400: `Bad Request error with error details.`,
|
|
19
21
|
404: `Not found error with error details.`,
|
|
@@ -26,14 +28,17 @@ export class CheckoutService {
|
|
|
26
28
|
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Supports both token (EMS/Authorize.net) and Stripe payment flows.
|
|
27
29
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
30
|
* @param requestBody Checkout form data.
|
|
31
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
29
32
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
30
33
|
* @throws ApiError
|
|
31
34
|
*/
|
|
32
|
-
static submitCheckout(requestBody, context) {
|
|
35
|
+
static submitCheckout(requestBody, context, xDrtDomain) {
|
|
33
36
|
return __request(OpenAPI, {
|
|
34
37
|
method: 'POST',
|
|
35
38
|
url: '/checkout',
|
|
36
|
-
headers:
|
|
39
|
+
headers: {
|
|
40
|
+
'x-drt-domain': xDrtDomain,
|
|
41
|
+
},
|
|
37
42
|
body: requestBody,
|
|
38
43
|
mediaType: 'application/json',
|
|
39
44
|
errors: {
|
|
@@ -48,14 +53,17 @@ export class CheckoutService {
|
|
|
48
53
|
* 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
54
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
50
55
|
* @param curr The current step. Defaults to 'seats'.
|
|
56
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
51
57
|
* @returns NextStepResponse Returns the next step.
|
|
52
58
|
* @throws ApiError
|
|
53
59
|
*/
|
|
54
|
-
static getNextStep(context, curr) {
|
|
60
|
+
static getNextStep(context, curr, xDrtDomain) {
|
|
55
61
|
return __request(OpenAPI, {
|
|
56
62
|
method: 'GET',
|
|
57
63
|
url: '/checkout/next-step',
|
|
58
|
-
headers:
|
|
64
|
+
headers: {
|
|
65
|
+
'x-drt-domain': xDrtDomain,
|
|
66
|
+
},
|
|
59
67
|
query: {
|
|
60
68
|
'curr': curr,
|
|
61
69
|
},
|
|
@@ -70,14 +78,17 @@ export class CheckoutService {
|
|
|
70
78
|
* Get applicable checkout steps
|
|
71
79
|
* 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
80
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
81
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
73
82
|
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
74
83
|
* @throws ApiError
|
|
75
84
|
*/
|
|
76
|
-
static getSteps(context) {
|
|
85
|
+
static getSteps(context, xDrtDomain) {
|
|
77
86
|
return __request(OpenAPI, {
|
|
78
87
|
method: 'GET',
|
|
79
88
|
url: '/checkout/steps',
|
|
80
|
-
headers:
|
|
89
|
+
headers: {
|
|
90
|
+
'x-drt-domain': xDrtDomain,
|
|
91
|
+
},
|
|
81
92
|
errors: {
|
|
82
93
|
400: `Bad Request error with error details.`,
|
|
83
94
|
404: `Not found error with error details.`,
|
|
@@ -90,14 +101,17 @@ export class CheckoutService {
|
|
|
90
101
|
* Saves a payment nonce (token) from EMS/Authorize.net to the session.
|
|
91
102
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
92
103
|
* @param requestBody Nonce data to save.
|
|
104
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
93
105
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
94
106
|
* @throws ApiError
|
|
95
107
|
*/
|
|
96
|
-
static saveNonce(requestBody, context) {
|
|
108
|
+
static saveNonce(requestBody, context, xDrtDomain) {
|
|
97
109
|
return __request(OpenAPI, {
|
|
98
110
|
method: 'POST',
|
|
99
111
|
url: '/checkout/nonce',
|
|
100
|
-
headers:
|
|
112
|
+
headers: {
|
|
113
|
+
'x-drt-domain': xDrtDomain,
|
|
114
|
+
},
|
|
101
115
|
body: requestBody,
|
|
102
116
|
mediaType: 'application/json',
|
|
103
117
|
errors: {
|
|
@@ -111,14 +125,17 @@ export class CheckoutService {
|
|
|
111
125
|
* Clear payment nonce
|
|
112
126
|
* Clears the payment nonce and related CC fields from the session.
|
|
113
127
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
128
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
114
129
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
115
130
|
* @throws ApiError
|
|
116
131
|
*/
|
|
117
|
-
static clearNonce(context) {
|
|
132
|
+
static clearNonce(context, xDrtDomain) {
|
|
118
133
|
return __request(OpenAPI, {
|
|
119
134
|
method: 'DELETE',
|
|
120
135
|
url: '/checkout/nonce',
|
|
121
|
-
headers:
|
|
136
|
+
headers: {
|
|
137
|
+
'x-drt-domain': xDrtDomain,
|
|
138
|
+
},
|
|
122
139
|
errors: {
|
|
123
140
|
400: `Bad Request error with error details.`,
|
|
124
141
|
404: `Not found error with error details.`,
|
|
@@ -131,14 +148,17 @@ export class CheckoutService {
|
|
|
131
148
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
132
149
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
133
150
|
* @param requestBody Partial checkout data to auto-save.
|
|
151
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
134
152
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
135
153
|
* @throws ApiError
|
|
136
154
|
*/
|
|
137
|
-
static saveDetails(requestBody, context) {
|
|
155
|
+
static saveDetails(requestBody, context, xDrtDomain) {
|
|
138
156
|
return __request(OpenAPI, {
|
|
139
157
|
method: 'POST',
|
|
140
158
|
url: '/checkout/details',
|
|
141
|
-
headers:
|
|
159
|
+
headers: {
|
|
160
|
+
'x-drt-domain': xDrtDomain,
|
|
161
|
+
},
|
|
142
162
|
body: requestBody,
|
|
143
163
|
mediaType: 'application/json',
|
|
144
164
|
errors: {
|
|
@@ -152,14 +172,17 @@ export class CheckoutService {
|
|
|
152
172
|
* Fill contact fields from POS defaults
|
|
153
173
|
* 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).
|
|
154
174
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
175
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
155
176
|
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
156
177
|
* @throws ApiError
|
|
157
178
|
*/
|
|
158
|
-
static fillDefaultInfo(context) {
|
|
179
|
+
static fillDefaultInfo(context, xDrtDomain) {
|
|
159
180
|
return __request(OpenAPI, {
|
|
160
181
|
method: 'POST',
|
|
161
182
|
url: '/checkout/default-info',
|
|
162
|
-
headers:
|
|
183
|
+
headers: {
|
|
184
|
+
'x-drt-domain': xDrtDomain,
|
|
185
|
+
},
|
|
163
186
|
errors: {
|
|
164
187
|
400: `Bad Request error with error details.`,
|
|
165
188
|
404: `Not found error with error details.`,
|
|
@@ -2,6 +2,7 @@ import type { CodeDto } from '../models/CodeDto';
|
|
|
2
2
|
import type { CorrelatedCode } from '../models/CorrelatedCode';
|
|
3
3
|
import type { HasAccessResponse } from '../models/HasAccessResponse';
|
|
4
4
|
import type { PriorityCode } from '../models/PriorityCode';
|
|
5
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
5
6
|
import type { SuccessWithTime } from '../models/SuccessWithTime';
|
|
6
7
|
import type { UniversalCodeResponse } from '../models/UniversalCodeResponse';
|
|
7
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -11,71 +12,90 @@ export declare class CodeService {
|
|
|
11
12
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
12
13
|
* @param eventId ID of the event for which access is requested
|
|
13
14
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
15
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
14
16
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
15
17
|
* @throws ApiError
|
|
16
18
|
*/
|
|
17
19
|
static requestEventAccess(eventId: number, context?: {
|
|
18
20
|
shopperGuid?: string;
|
|
19
21
|
accountId?: string;
|
|
20
|
-
}): CancelablePromise<HasAccessResponse>;
|
|
22
|
+
}, xDrtDomain?: string): CancelablePromise<HasAccessResponse>;
|
|
21
23
|
/**
|
|
22
24
|
* List the codes correlated to a patron code
|
|
23
25
|
* 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
26
|
* @param code The patron code to look up.
|
|
25
27
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
26
29
|
* @returns CorrelatedCode Returns the correlated codes.
|
|
27
30
|
* @throws ApiError
|
|
28
31
|
*/
|
|
29
32
|
static getPatronCodes(code: string, context?: {
|
|
30
33
|
shopperGuid?: string;
|
|
31
34
|
accountId?: string;
|
|
32
|
-
}): CancelablePromise<Array<CorrelatedCode>>;
|
|
35
|
+
}, xDrtDomain?: string): CancelablePromise<Array<CorrelatedCode>>;
|
|
33
36
|
/**
|
|
34
37
|
* Apply a code to the current shopper session
|
|
35
38
|
* Applies a code to the current shopper session.
|
|
36
39
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
37
40
|
* @param requestBody Code to be applied
|
|
41
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
38
42
|
* @returns SuccessWithTime Code applied successfully.
|
|
39
43
|
* @throws ApiError
|
|
40
44
|
*/
|
|
41
45
|
static applyCode(requestBody: CodeDto, context?: {
|
|
42
46
|
shopperGuid?: string;
|
|
43
47
|
accountId?: string;
|
|
44
|
-
}): CancelablePromise<SuccessWithTime>;
|
|
48
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessWithTime>;
|
|
45
49
|
/**
|
|
46
50
|
* Apply a coupon to the current shopper session
|
|
47
51
|
* Applies a coupon to the current shopper session.
|
|
48
52
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
49
53
|
* @param requestBody Coupon code to be applied
|
|
54
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
50
55
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
51
56
|
* @throws ApiError
|
|
52
57
|
*/
|
|
53
58
|
static applyCoupon(requestBody: CodeDto, context?: {
|
|
54
59
|
shopperGuid?: string;
|
|
55
60
|
accountId?: string;
|
|
56
|
-
}): CancelablePromise<UniversalCodeResponse>;
|
|
61
|
+
}, xDrtDomain?: string): CancelablePromise<UniversalCodeResponse>;
|
|
57
62
|
/**
|
|
58
63
|
* Remove a coupon from the current shopper session
|
|
59
64
|
* Removes a coupon from the current shopper session.
|
|
60
65
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
61
66
|
* @param requestBody Coupon code to be removed
|
|
67
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
62
68
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
63
69
|
* @throws ApiError
|
|
64
70
|
*/
|
|
65
71
|
static removeCoupon(requestBody: CodeDto, context?: {
|
|
66
72
|
shopperGuid?: string;
|
|
67
73
|
accountId?: string;
|
|
68
|
-
}): CancelablePromise<UniversalCodeResponse>;
|
|
74
|
+
}, xDrtDomain?: string): CancelablePromise<UniversalCodeResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Decline a reservation code
|
|
77
|
+
* Releases the seats a reservation code is holding — the waitlist offer email's decline link. Idempotent and silent: an unknown, foreign or already-declined code answers success and does nothing.
|
|
78
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
79
|
+
* @param requestBody Reservation code to decline
|
|
80
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
81
|
+
* @returns SuccessResponse The decline was recorded.
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
static declineReservationCode(requestBody: CodeDto, context?: {
|
|
85
|
+
shopperGuid?: string;
|
|
86
|
+
accountId?: string;
|
|
87
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessResponse>;
|
|
69
88
|
/**
|
|
70
89
|
* Apply Priority Code
|
|
71
90
|
* Applies a priority code to the cart.
|
|
72
91
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
73
92
|
* @param requestBody Priority code data to be applied
|
|
93
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
74
94
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
75
95
|
* @throws ApiError
|
|
76
96
|
*/
|
|
77
97
|
static applyPriorityCode(requestBody: PriorityCode, context?: {
|
|
78
98
|
shopperGuid?: string;
|
|
79
99
|
accountId?: string;
|
|
80
|
-
}): CancelablePromise<SuccessWithTime>;
|
|
100
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessWithTime>;
|
|
81
101
|
}
|