@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
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { AssetDownloadRequest } from '../models/AssetDownloadRequest';
|
|
6
|
+
import type { AssetDownloadResponse } from '../models/AssetDownloadResponse';
|
|
5
7
|
import type { AssignNamesReturn } from '../models/AssignNamesReturn';
|
|
6
8
|
import type { DonateOrderRequest } from '../models/DonateOrderRequest';
|
|
7
9
|
import type { EmailUpdate } from '../models/EmailUpdate';
|
|
@@ -21,6 +23,8 @@ import type { GuidReturn } from '../models/GuidReturn';
|
|
|
21
23
|
import type { LinkWithSuccess } from '../models/LinkWithSuccess';
|
|
22
24
|
import type { NameUpdate } from '../models/NameUpdate';
|
|
23
25
|
import type { OrderBalance } from '../models/OrderBalance';
|
|
26
|
+
import type { OrderLookupBody } from '../models/OrderLookupBody';
|
|
27
|
+
import type { OrderLookupResult } from '../models/OrderLookupResult';
|
|
24
28
|
import type { OrderPaymentStatus } from '../models/OrderPaymentStatus';
|
|
25
29
|
import type { OrderRecalc } from '../models/OrderRecalc';
|
|
26
30
|
import type { PickupReturn } from '../models/PickupReturn';
|
|
@@ -30,9 +34,15 @@ import type { RefundRequest } from '../models/RefundRequest';
|
|
|
30
34
|
import type { RefundRequestInfo } from '../models/RefundRequestInfo';
|
|
31
35
|
import type { RegisterStreamRequest } from '../models/RegisterStreamRequest';
|
|
32
36
|
import type { RegisterStreamResponse } from '../models/RegisterStreamResponse';
|
|
37
|
+
import type { ResetStreamInviteRequest } from '../models/ResetStreamInviteRequest';
|
|
38
|
+
import type { SaveStreamInvitesRequest } from '../models/SaveStreamInvitesRequest';
|
|
39
|
+
import type { SaveStreamInvitesResponse } from '../models/SaveStreamInvitesResponse';
|
|
33
40
|
import type { SeatInCart } from '../models/SeatInCart';
|
|
41
|
+
import type { SharedStream } from '../models/SharedStream';
|
|
42
|
+
import type { StreamAuthorization } from '../models/StreamAuthorization';
|
|
34
43
|
import type { StreamDetails } from '../models/StreamDetails';
|
|
35
44
|
import type { StreamDownloadLink } from '../models/StreamDownloadLink';
|
|
45
|
+
import type { StreamInvitesResponse } from '../models/StreamInvitesResponse';
|
|
36
46
|
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
37
47
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
38
48
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -44,17 +54,21 @@ export class OrderService {
|
|
|
44
54
|
* Fetches the receipt for an order using its unique guid.
|
|
45
55
|
* @param guid Unique identifier for an order.
|
|
46
56
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
57
|
+
* @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
58
|
* @returns Receipt Returns the order receipt.
|
|
48
59
|
* @throws ApiError
|
|
49
60
|
*/
|
|
50
61
|
public static getReceipt(
|
|
51
62
|
guid: string,
|
|
52
63
|
context?: { shopperGuid?: string; accountId?: string },
|
|
64
|
+
xDrtDomain?: string,
|
|
53
65
|
): CancelablePromise<Receipt> {
|
|
54
66
|
return __request(OpenAPI, {
|
|
55
67
|
method: 'GET',
|
|
56
68
|
url: '/order/receipt',
|
|
57
|
-
headers:
|
|
69
|
+
headers: {
|
|
70
|
+
'x-drt-domain': xDrtDomain,
|
|
71
|
+
},
|
|
58
72
|
query: {
|
|
59
73
|
'guid': guid,
|
|
60
74
|
},
|
|
@@ -70,17 +84,21 @@ export class OrderService {
|
|
|
70
84
|
* Records the given order as the current session's source order (session.src_order_id) for attribution (ORD-1, legacy order-set-src).
|
|
71
85
|
* @param guid Unique identifier for an order.
|
|
72
86
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
87
|
+
* @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
88
|
* @returns SuccessResponse Returns success after stamping the source order.
|
|
74
89
|
* @throws ApiError
|
|
75
90
|
*/
|
|
76
91
|
public static setOrderSrc(
|
|
77
92
|
guid: string,
|
|
78
93
|
context?: { shopperGuid?: string; accountId?: string },
|
|
94
|
+
xDrtDomain?: string,
|
|
79
95
|
): CancelablePromise<SuccessResponse> {
|
|
80
96
|
return __request(OpenAPI, {
|
|
81
97
|
method: 'POST',
|
|
82
98
|
url: '/order/set-src',
|
|
83
|
-
headers:
|
|
99
|
+
headers: {
|
|
100
|
+
'x-drt-domain': xDrtDomain,
|
|
101
|
+
},
|
|
84
102
|
query: {
|
|
85
103
|
'guid': guid,
|
|
86
104
|
},
|
|
@@ -96,17 +114,21 @@ export class OrderService {
|
|
|
96
114
|
* Returns the balance owed on an existing order and whether the account offers an additional payment (enable_adjustment_payment). Read-only — the charge itself is collected by the Stripe Payment Element on the frontend and recorded downstream (PAY-1).
|
|
97
115
|
* @param guid Unique identifier for an order.
|
|
98
116
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
117
|
+
* @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).
|
|
99
118
|
* @returns OrderBalance Returns the order balance and adjustment-payment gating.
|
|
100
119
|
* @throws ApiError
|
|
101
120
|
*/
|
|
102
121
|
public static getOrderBalance(
|
|
103
122
|
guid: string,
|
|
104
123
|
context?: { shopperGuid?: string; accountId?: string },
|
|
124
|
+
xDrtDomain?: string,
|
|
105
125
|
): CancelablePromise<OrderBalance> {
|
|
106
126
|
return __request(OpenAPI, {
|
|
107
127
|
method: 'GET',
|
|
108
128
|
url: '/order/balance',
|
|
109
|
-
headers:
|
|
129
|
+
headers: {
|
|
130
|
+
'x-drt-domain': xDrtDomain,
|
|
131
|
+
},
|
|
110
132
|
query: {
|
|
111
133
|
'guid': guid,
|
|
112
134
|
},
|
|
@@ -122,17 +144,21 @@ export class OrderService {
|
|
|
122
144
|
* Returns whether an order is fully paid (for the pay-by-link page to poll). The Stripe link/intent is created on the frontend via the existing /payment* flow; this endpoint only reports completion (PAY-2).
|
|
123
145
|
* @param guid Unique identifier for an order.
|
|
124
146
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
147
|
+
* @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).
|
|
125
148
|
* @returns OrderPaymentStatus Returns the order payment status.
|
|
126
149
|
* @throws ApiError
|
|
127
150
|
*/
|
|
128
151
|
public static getOrderPaymentStatus(
|
|
129
152
|
guid: string,
|
|
130
153
|
context?: { shopperGuid?: string; accountId?: string },
|
|
154
|
+
xDrtDomain?: string,
|
|
131
155
|
): CancelablePromise<OrderPaymentStatus> {
|
|
132
156
|
return __request(OpenAPI, {
|
|
133
157
|
method: 'GET',
|
|
134
158
|
url: '/order/payment-status',
|
|
135
|
-
headers:
|
|
159
|
+
headers: {
|
|
160
|
+
'x-drt-domain': xDrtDomain,
|
|
161
|
+
},
|
|
136
162
|
query: {
|
|
137
163
|
'guid': guid,
|
|
138
164
|
},
|
|
@@ -143,22 +169,85 @@ export class OrderService {
|
|
|
143
169
|
},
|
|
144
170
|
});
|
|
145
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Find an existing order
|
|
174
|
+
* The Box Office Help Desk lookup: at least TWO of phone, order number and last-four-of-card, scoped to the calling studio. Fewer than two factors is refused — any one of them alone is guessable. Returns order numbers with their receipt guids, newest first.
|
|
175
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
176
|
+
* @param requestBody
|
|
177
|
+
* @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).
|
|
178
|
+
* @returns OrderLookupResult Matching orders, newest first. An empty list is a valid answer.
|
|
179
|
+
* @throws ApiError
|
|
180
|
+
*/
|
|
181
|
+
public static lookupOrders(
|
|
182
|
+
requestBody: OrderLookupBody,
|
|
183
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
184
|
+
xDrtDomain?: string,
|
|
185
|
+
): CancelablePromise<Array<OrderLookupResult>> {
|
|
186
|
+
return __request(OpenAPI, {
|
|
187
|
+
method: 'POST',
|
|
188
|
+
url: '/order/lookup',
|
|
189
|
+
headers: {
|
|
190
|
+
'x-drt-domain': xDrtDomain,
|
|
191
|
+
},
|
|
192
|
+
body: requestBody,
|
|
193
|
+
mediaType: 'application/json',
|
|
194
|
+
errors: {
|
|
195
|
+
400: `Fewer than two identification factors.`,
|
|
196
|
+
404: `Not found error with error details.`,
|
|
197
|
+
500: `Internal Server Error, please contact developers.`,
|
|
198
|
+
},
|
|
199
|
+
});
|
|
200
|
+
}
|
|
146
201
|
/**
|
|
147
202
|
* Get Gwallet link by guid
|
|
148
203
|
* Fetches the Gwallet link for an order using its unique guid.
|
|
149
204
|
* @param guid Unique identifier for an order.
|
|
150
205
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
206
|
+
* @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).
|
|
151
207
|
* @returns LinkWithSuccess Returns the Gwallet link.
|
|
152
208
|
* @throws ApiError
|
|
153
209
|
*/
|
|
154
210
|
public static getGwalletLink(
|
|
155
211
|
guid: string,
|
|
156
212
|
context?: { shopperGuid?: string; accountId?: string },
|
|
213
|
+
xDrtDomain?: string,
|
|
157
214
|
): CancelablePromise<LinkWithSuccess> {
|
|
158
215
|
return __request(OpenAPI, {
|
|
159
216
|
method: 'GET',
|
|
160
217
|
url: '/order/gwallet',
|
|
161
|
-
headers:
|
|
218
|
+
headers: {
|
|
219
|
+
'x-drt-domain': xDrtDomain,
|
|
220
|
+
},
|
|
221
|
+
query: {
|
|
222
|
+
'guid': guid,
|
|
223
|
+
},
|
|
224
|
+
errors: {
|
|
225
|
+
400: `Bad Request error with error details.`,
|
|
226
|
+
404: `Not found error with error details.`,
|
|
227
|
+
500: `Internal Server Error, please contact developers.`,
|
|
228
|
+
},
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Get Gwallet link by block-of-tickets guid
|
|
233
|
+
* Fetches the Google Wallet link for a block of tickets using the block guid — the ticket-pickup page, where the recipient holds the block guid and never sees the order.
|
|
234
|
+
* @param guid Unique identifier for an order.
|
|
235
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
236
|
+
* @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).
|
|
237
|
+
* @returns LinkWithSuccess Returns the Gwallet link.
|
|
238
|
+
* @throws ApiError
|
|
239
|
+
*/
|
|
240
|
+
public static getGwalletBlockLink(
|
|
241
|
+
guid: string,
|
|
242
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
243
|
+
xDrtDomain?: string,
|
|
244
|
+
): CancelablePromise<LinkWithSuccess> {
|
|
245
|
+
return __request(OpenAPI, {
|
|
246
|
+
method: 'GET',
|
|
247
|
+
url: '/order/gwallet-block',
|
|
248
|
+
headers: {
|
|
249
|
+
'x-drt-domain': xDrtDomain,
|
|
250
|
+
},
|
|
162
251
|
query: {
|
|
163
252
|
'guid': guid,
|
|
164
253
|
},
|
|
@@ -174,17 +263,21 @@ export class OrderService {
|
|
|
174
263
|
* Fetches a random order guid for development purposes. Requires a logged-in operator session — returns 403 for a plain shopper.
|
|
175
264
|
* @param guid Unique identifier for an order.
|
|
176
265
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
266
|
+
* @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).
|
|
177
267
|
* @returns GuidReturn Returns a testing guid.
|
|
178
268
|
* @throws ApiError
|
|
179
269
|
*/
|
|
180
270
|
public static getTestingGuid(
|
|
181
271
|
guid: string,
|
|
182
272
|
context?: { shopperGuid?: string; accountId?: string },
|
|
273
|
+
xDrtDomain?: string,
|
|
183
274
|
): CancelablePromise<GuidReturn> {
|
|
184
275
|
return __request(OpenAPI, {
|
|
185
276
|
method: 'GET',
|
|
186
277
|
url: '/order/testing',
|
|
187
|
-
headers:
|
|
278
|
+
headers: {
|
|
279
|
+
'x-drt-domain': xDrtDomain,
|
|
280
|
+
},
|
|
188
281
|
query: {
|
|
189
282
|
'guid': guid,
|
|
190
283
|
},
|
|
@@ -200,17 +293,21 @@ export class OrderService {
|
|
|
200
293
|
* Fetches the assign names information for an order using its unique guid.
|
|
201
294
|
* @param guid Unique identifier for an order.
|
|
202
295
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
296
|
+
* @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).
|
|
203
297
|
* @returns AssignNamesReturn Returns the assign names information.
|
|
204
298
|
* @throws ApiError
|
|
205
299
|
*/
|
|
206
300
|
public static getAssignNames(
|
|
207
301
|
guid: string,
|
|
208
302
|
context?: { shopperGuid?: string; accountId?: string },
|
|
303
|
+
xDrtDomain?: string,
|
|
209
304
|
): CancelablePromise<AssignNamesReturn> {
|
|
210
305
|
return __request(OpenAPI, {
|
|
211
306
|
method: 'GET',
|
|
212
307
|
url: '/order/assign-names',
|
|
213
|
-
headers:
|
|
308
|
+
headers: {
|
|
309
|
+
'x-drt-domain': xDrtDomain,
|
|
310
|
+
},
|
|
214
311
|
query: {
|
|
215
312
|
'guid': guid,
|
|
216
313
|
},
|
|
@@ -227,6 +324,7 @@ export class OrderService {
|
|
|
227
324
|
* @param guid Unique identifier for an order.
|
|
228
325
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
229
326
|
* @param requestBody Names to be assigned to the order.
|
|
327
|
+
* @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).
|
|
230
328
|
* @returns SuccessResponse Returns success status after assigning names.
|
|
231
329
|
* @throws ApiError
|
|
232
330
|
*/
|
|
@@ -234,11 +332,14 @@ export class OrderService {
|
|
|
234
332
|
guid: string,
|
|
235
333
|
requestBody: NameUpdate,
|
|
236
334
|
context?: { shopperGuid?: string; accountId?: string },
|
|
335
|
+
xDrtDomain?: string,
|
|
237
336
|
): CancelablePromise<SuccessResponse> {
|
|
238
337
|
return __request(OpenAPI, {
|
|
239
338
|
method: 'POST',
|
|
240
339
|
url: '/order/assign-names',
|
|
241
|
-
headers:
|
|
340
|
+
headers: {
|
|
341
|
+
'x-drt-domain': xDrtDomain,
|
|
342
|
+
},
|
|
242
343
|
query: {
|
|
243
344
|
'guid': guid,
|
|
244
345
|
},
|
|
@@ -257,6 +358,7 @@ export class OrderService {
|
|
|
257
358
|
* @param guid Unique identifier for an order.
|
|
258
359
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
259
360
|
* @param requestBody Email update containing the email address to send tickets.
|
|
361
|
+
* @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).
|
|
260
362
|
* @returns SuccessResponse Returns success status after sending email tickets.
|
|
261
363
|
* @throws ApiError
|
|
262
364
|
*/
|
|
@@ -264,11 +366,14 @@ export class OrderService {
|
|
|
264
366
|
guid: string,
|
|
265
367
|
requestBody: EmailUpdate,
|
|
266
368
|
context?: { shopperGuid?: string; accountId?: string },
|
|
369
|
+
xDrtDomain?: string,
|
|
267
370
|
): CancelablePromise<SuccessResponse> {
|
|
268
371
|
return __request(OpenAPI, {
|
|
269
372
|
method: 'POST',
|
|
270
373
|
url: '/order/email-tickets',
|
|
271
|
-
headers:
|
|
374
|
+
headers: {
|
|
375
|
+
'x-drt-domain': xDrtDomain,
|
|
376
|
+
},
|
|
272
377
|
query: {
|
|
273
378
|
'guid': guid,
|
|
274
379
|
},
|
|
@@ -286,17 +391,21 @@ export class OrderService {
|
|
|
286
391
|
* Fetches the ticket block for an order using its unique guid.
|
|
287
392
|
* @param guid Unique identifier for an order.
|
|
288
393
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
394
|
+
* @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).
|
|
289
395
|
* @returns PickupReturn Returns the ticket block for the order.
|
|
290
396
|
* @throws ApiError
|
|
291
397
|
*/
|
|
292
398
|
public static getTicketBlock(
|
|
293
399
|
guid: string,
|
|
294
400
|
context?: { shopperGuid?: string; accountId?: string },
|
|
401
|
+
xDrtDomain?: string,
|
|
295
402
|
): CancelablePromise<PickupReturn> {
|
|
296
403
|
return __request(OpenAPI, {
|
|
297
404
|
method: 'GET',
|
|
298
405
|
url: '/order/pickup',
|
|
299
|
-
headers:
|
|
406
|
+
headers: {
|
|
407
|
+
'x-drt-domain': xDrtDomain,
|
|
408
|
+
},
|
|
300
409
|
query: {
|
|
301
410
|
'guid': guid,
|
|
302
411
|
},
|
|
@@ -312,17 +421,21 @@ export class OrderService {
|
|
|
312
421
|
* Sends the ticket block for an order using its unique guid.
|
|
313
422
|
* @param guid Unique identifier for an order.
|
|
314
423
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
424
|
+
* @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).
|
|
315
425
|
* @returns SuccessResponse Returns the ticket block for the order.
|
|
316
426
|
* @throws ApiError
|
|
317
427
|
*/
|
|
318
428
|
public static postPickup(
|
|
319
429
|
guid: string,
|
|
320
430
|
context?: { shopperGuid?: string; accountId?: string },
|
|
431
|
+
xDrtDomain?: string,
|
|
321
432
|
): CancelablePromise<SuccessResponse> {
|
|
322
433
|
return __request(OpenAPI, {
|
|
323
434
|
method: 'POST',
|
|
324
435
|
url: '/order/pickup',
|
|
325
|
-
headers:
|
|
436
|
+
headers: {
|
|
437
|
+
'x-drt-domain': xDrtDomain,
|
|
438
|
+
},
|
|
326
439
|
query: {
|
|
327
440
|
'guid': guid,
|
|
328
441
|
},
|
|
@@ -338,17 +451,21 @@ export class OrderService {
|
|
|
338
451
|
* Sends the order receipt to the shopper's email address for the specified order guid.
|
|
339
452
|
* @param guid Unique identifier for an order.
|
|
340
453
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
454
|
+
* @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).
|
|
341
455
|
* @returns SuccessResponse Returns success status after emailing the receipt.
|
|
342
456
|
* @throws ApiError
|
|
343
457
|
*/
|
|
344
458
|
public static postEmailReceipt(
|
|
345
459
|
guid: string,
|
|
346
460
|
context?: { shopperGuid?: string; accountId?: string },
|
|
461
|
+
xDrtDomain?: string,
|
|
347
462
|
): CancelablePromise<SuccessResponse> {
|
|
348
463
|
return __request(OpenAPI, {
|
|
349
464
|
method: 'POST',
|
|
350
465
|
url: '/order/email-receipt',
|
|
351
|
-
headers:
|
|
466
|
+
headers: {
|
|
467
|
+
'x-drt-domain': xDrtDomain,
|
|
468
|
+
},
|
|
352
469
|
query: {
|
|
353
470
|
'guid': guid,
|
|
354
471
|
},
|
|
@@ -364,17 +481,21 @@ export class OrderService {
|
|
|
364
481
|
* Fetches the refund request information for an order using its unique guid.
|
|
365
482
|
* @param guid Unique identifier for an order.
|
|
366
483
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
484
|
+
* @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).
|
|
367
485
|
* @returns RefundRequestInfo Returns the refund request information for the order.
|
|
368
486
|
* @throws ApiError
|
|
369
487
|
*/
|
|
370
488
|
public static getRefundRequest(
|
|
371
489
|
guid: string,
|
|
372
490
|
context?: { shopperGuid?: string; accountId?: string },
|
|
491
|
+
xDrtDomain?: string,
|
|
373
492
|
): CancelablePromise<RefundRequestInfo> {
|
|
374
493
|
return __request(OpenAPI, {
|
|
375
494
|
method: 'GET',
|
|
376
495
|
url: '/order/refund-request',
|
|
377
|
-
headers:
|
|
496
|
+
headers: {
|
|
497
|
+
'x-drt-domain': xDrtDomain,
|
|
498
|
+
},
|
|
378
499
|
query: {
|
|
379
500
|
'guid': guid,
|
|
380
501
|
},
|
|
@@ -391,6 +512,7 @@ export class OrderService {
|
|
|
391
512
|
* @param guid Unique identifier for an order.
|
|
392
513
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
393
514
|
* @param requestBody Refund request details.
|
|
515
|
+
* @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).
|
|
394
516
|
* @returns SuccessResponse Returns success status after submitting the refund request.
|
|
395
517
|
* @throws ApiError
|
|
396
518
|
*/
|
|
@@ -398,11 +520,14 @@ export class OrderService {
|
|
|
398
520
|
guid: string,
|
|
399
521
|
requestBody: RefundRequest,
|
|
400
522
|
context?: { shopperGuid?: string; accountId?: string },
|
|
523
|
+
xDrtDomain?: string,
|
|
401
524
|
): CancelablePromise<SuccessResponse> {
|
|
402
525
|
return __request(OpenAPI, {
|
|
403
526
|
method: 'POST',
|
|
404
527
|
url: '/order/refund-request',
|
|
405
|
-
headers:
|
|
528
|
+
headers: {
|
|
529
|
+
'x-drt-domain': xDrtDomain,
|
|
530
|
+
},
|
|
406
531
|
query: {
|
|
407
532
|
'guid': guid,
|
|
408
533
|
},
|
|
@@ -421,6 +546,7 @@ export class OrderService {
|
|
|
421
546
|
* @param guid Unique identifier for an order.
|
|
422
547
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
423
548
|
* @param requestBody Order recalculation data.
|
|
549
|
+
* @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).
|
|
424
550
|
* @returns RecalcResponse Returns the recalculated order totals and success status.
|
|
425
551
|
* @throws ApiError
|
|
426
552
|
*/
|
|
@@ -428,11 +554,14 @@ export class OrderService {
|
|
|
428
554
|
guid: string,
|
|
429
555
|
requestBody: OrderRecalc,
|
|
430
556
|
context?: { shopperGuid?: string; accountId?: string },
|
|
557
|
+
xDrtDomain?: string,
|
|
431
558
|
): CancelablePromise<RecalcResponse> {
|
|
432
559
|
return __request(OpenAPI, {
|
|
433
560
|
method: 'POST',
|
|
434
561
|
url: '/order/recalc',
|
|
435
|
-
headers:
|
|
562
|
+
headers: {
|
|
563
|
+
'x-drt-domain': xDrtDomain,
|
|
564
|
+
},
|
|
436
565
|
query: {
|
|
437
566
|
'guid': guid,
|
|
438
567
|
},
|
|
@@ -450,17 +579,21 @@ export class OrderService {
|
|
|
450
579
|
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
451
580
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
452
581
|
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
582
|
+
* @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).
|
|
453
583
|
* @returns SuccessResponse Returns success status after donating the order.
|
|
454
584
|
* @throws ApiError
|
|
455
585
|
*/
|
|
456
586
|
public static postDonateOrder(
|
|
457
587
|
requestBody: DonateOrderRequest,
|
|
458
588
|
context?: { shopperGuid?: string; accountId?: string },
|
|
589
|
+
xDrtDomain?: string,
|
|
459
590
|
): CancelablePromise<SuccessResponse> {
|
|
460
591
|
return __request(OpenAPI, {
|
|
461
592
|
method: 'POST',
|
|
462
593
|
url: '/order/donate-order',
|
|
463
|
-
headers:
|
|
594
|
+
headers: {
|
|
595
|
+
'x-drt-domain': xDrtDomain,
|
|
596
|
+
},
|
|
464
597
|
body: requestBody,
|
|
465
598
|
mediaType: 'application/json',
|
|
466
599
|
errors: {
|
|
@@ -476,6 +609,7 @@ export class OrderService {
|
|
|
476
609
|
* @param orderGuid
|
|
477
610
|
* @param streamGuid
|
|
478
611
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
612
|
+
* @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).
|
|
479
613
|
* @returns StreamDetails Returns the stream details.
|
|
480
614
|
* @throws ApiError
|
|
481
615
|
*/
|
|
@@ -483,11 +617,14 @@ export class OrderService {
|
|
|
483
617
|
orderGuid: string,
|
|
484
618
|
streamGuid: string,
|
|
485
619
|
context?: { shopperGuid?: string; accountId?: string },
|
|
620
|
+
xDrtDomain?: string,
|
|
486
621
|
): CancelablePromise<StreamDetails> {
|
|
487
622
|
return __request(OpenAPI, {
|
|
488
623
|
method: 'GET',
|
|
489
624
|
url: '/order/stream',
|
|
490
|
-
headers:
|
|
625
|
+
headers: {
|
|
626
|
+
'x-drt-domain': xDrtDomain,
|
|
627
|
+
},
|
|
491
628
|
query: {
|
|
492
629
|
'orderGuid': orderGuid,
|
|
493
630
|
'streamGuid': streamGuid,
|
|
@@ -499,12 +636,205 @@ export class OrderService {
|
|
|
499
636
|
},
|
|
500
637
|
});
|
|
501
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* Is this device still authorised to watch? (VS-2)
|
|
641
|
+
* The watch heartbeat, polled while a stream plays (legacy tv/rpc/check-auth.cfm, every 10s from the receipt and every 30s from /tv). Authorised means an assoc row exists for this registration guid, scoped to the stream (and to the order when one is supplied), matching either the caller's IP or their access guid — so every revoke path in the system (the studio reset, a per-row invite reset, Stop Watching, deleting the row) closes playback within one poll. A row matched on the ACCESS GUID from a new address re-binds the stored IP, which is what lets a phone move from wifi to cellular and keep playing. `expired` is judged against the session effective date and falls back to the show end when date_unavailable is NULL. Staff sessions always pass.
|
|
642
|
+
* @param registrationGuid
|
|
643
|
+
* @param streamGuid
|
|
644
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
645
|
+
* @param accessGuid
|
|
646
|
+
* @param orderGuid
|
|
647
|
+
* @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).
|
|
648
|
+
* @returns StreamAuthorization Returns the authorisation decision.
|
|
649
|
+
* @throws ApiError
|
|
650
|
+
*/
|
|
651
|
+
public static getStreamAuthorization(
|
|
652
|
+
registrationGuid: string,
|
|
653
|
+
streamGuid: string,
|
|
654
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
655
|
+
accessGuid?: string,
|
|
656
|
+
orderGuid?: string,
|
|
657
|
+
xDrtDomain?: string,
|
|
658
|
+
): CancelablePromise<StreamAuthorization> {
|
|
659
|
+
return __request(OpenAPI, {
|
|
660
|
+
method: 'GET',
|
|
661
|
+
url: '/order/stream/authorized',
|
|
662
|
+
headers: {
|
|
663
|
+
'x-drt-domain': xDrtDomain,
|
|
664
|
+
},
|
|
665
|
+
query: {
|
|
666
|
+
'registrationGuid': registrationGuid,
|
|
667
|
+
'streamGuid': streamGuid,
|
|
668
|
+
'accessGuid': accessGuid,
|
|
669
|
+
'orderGuid': orderGuid,
|
|
670
|
+
},
|
|
671
|
+
errors: {
|
|
672
|
+
400: `Bad Request error with error details.`,
|
|
673
|
+
404: `Not found error with error details.`,
|
|
674
|
+
500: `Internal Server Error, please contact developers.`,
|
|
675
|
+
},
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Resolve a shared /tv/{code} watch link (VS-2)
|
|
680
|
+
* Takes the qecom_order_virtual_stream_assoc guid that dbo.sendVideoLink mails to each invited viewer and answers the playback payload for it (legacy tv/index.cfm). On first view the row is bound to the caller's IP and an access guid is minted. A caller from a different IP with no matching access guid is refused; one holding the token re-binds the row instead. Staff skip both. Availability is judged against the session effective date, not the wall clock legacy used, and falls back to the show start/end. It deliberately does NOT return the order guid: that is a bearer token for the whole receipt and a watch link is forwarded by design.
|
|
681
|
+
* @param code
|
|
682
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
683
|
+
* @param accessGuid
|
|
684
|
+
* @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).
|
|
685
|
+
* @returns SharedStream Returns the shared stream.
|
|
686
|
+
* @throws ApiError
|
|
687
|
+
*/
|
|
688
|
+
public static getSharedStream(
|
|
689
|
+
code: string,
|
|
690
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
691
|
+
accessGuid?: string,
|
|
692
|
+
xDrtDomain?: string,
|
|
693
|
+
): CancelablePromise<SharedStream> {
|
|
694
|
+
return __request(OpenAPI, {
|
|
695
|
+
method: 'GET',
|
|
696
|
+
url: '/order/stream/shared',
|
|
697
|
+
headers: {
|
|
698
|
+
'x-drt-domain': xDrtDomain,
|
|
699
|
+
},
|
|
700
|
+
query: {
|
|
701
|
+
'code': code,
|
|
702
|
+
'accessGuid': accessGuid,
|
|
703
|
+
},
|
|
704
|
+
errors: {
|
|
705
|
+
400: `Bad Request error with error details.`,
|
|
706
|
+
404: `Not found error with error details.`,
|
|
707
|
+
500: `Internal Server Error, please contact developers.`,
|
|
708
|
+
},
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* The stream invite list for an order (VS-3)
|
|
713
|
+
* One row per ticket purchased for the stream's show on this order — which is the only concurrency cap the product has (legacy virtual-stream-email-form.cfm). No assoc guid is returned: the guid is the watch credential, and the buyer's tool is "send the email", not "hand me the token".
|
|
714
|
+
* @param orderGuid
|
|
715
|
+
* @param streamGuid
|
|
716
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
717
|
+
* @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).
|
|
718
|
+
* @returns StreamInvitesResponse Returns the invite rows.
|
|
719
|
+
* @throws ApiError
|
|
720
|
+
*/
|
|
721
|
+
public static getStreamInvites(
|
|
722
|
+
orderGuid: string,
|
|
723
|
+
streamGuid: string,
|
|
724
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
725
|
+
xDrtDomain?: string,
|
|
726
|
+
): CancelablePromise<StreamInvitesResponse> {
|
|
727
|
+
return __request(OpenAPI, {
|
|
728
|
+
method: 'GET',
|
|
729
|
+
url: '/order/stream/invites',
|
|
730
|
+
headers: {
|
|
731
|
+
'x-drt-domain': xDrtDomain,
|
|
732
|
+
},
|
|
733
|
+
query: {
|
|
734
|
+
'orderGuid': orderGuid,
|
|
735
|
+
'streamGuid': streamGuid,
|
|
736
|
+
},
|
|
737
|
+
errors: {
|
|
738
|
+
400: `Bad Request error with error details.`,
|
|
739
|
+
404: `Not found error with error details.`,
|
|
740
|
+
500: `Internal Server Error, please contact developers.`,
|
|
741
|
+
},
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Save the stream invite rows and send the links (VS-3)
|
|
746
|
+
* Row 1 is the buyer and is required. An emptied or changed address deletes its row, which revokes that link — the intended behaviour, not a side effect. A new or changed address gets a fresh guid and dbo.sendVideoLink mails it; `resend` re-mails unchanged rows too (legacy virtual-stream-email-send.cfm).
|
|
747
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
748
|
+
* @param requestBody Invite rows.
|
|
749
|
+
* @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).
|
|
750
|
+
* @returns SaveStreamInvitesResponse Returns how many invite emails were sent.
|
|
751
|
+
* @throws ApiError
|
|
752
|
+
*/
|
|
753
|
+
public static saveStreamInvites(
|
|
754
|
+
requestBody: SaveStreamInvitesRequest,
|
|
755
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
756
|
+
xDrtDomain?: string,
|
|
757
|
+
): CancelablePromise<SaveStreamInvitesResponse> {
|
|
758
|
+
return __request(OpenAPI, {
|
|
759
|
+
method: 'POST',
|
|
760
|
+
url: '/order/stream/invites',
|
|
761
|
+
headers: {
|
|
762
|
+
'x-drt-domain': xDrtDomain,
|
|
763
|
+
},
|
|
764
|
+
body: requestBody,
|
|
765
|
+
mediaType: 'application/json',
|
|
766
|
+
errors: {
|
|
767
|
+
400: `Bad Request error with error details.`,
|
|
768
|
+
404: `Not found error with error details.`,
|
|
769
|
+
500: `Internal Server Error, please contact developers.`,
|
|
770
|
+
},
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Clear one invite row's registration (VS-3)
|
|
775
|
+
* Nulls ip_address + access_guid for ONE invite row, so that viewer can start again on a new network. Deliberately per-row: the legacy checkbox promised "clear that email's IP registration" but its SQL had no guid filter and reset every viewer on the stream, the purchaser included.
|
|
776
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
777
|
+
* @param requestBody Which invite row to reset.
|
|
778
|
+
* @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).
|
|
779
|
+
* @returns SuccessResponse Returns success.
|
|
780
|
+
* @throws ApiError
|
|
781
|
+
*/
|
|
782
|
+
public static resetStreamInvite(
|
|
783
|
+
requestBody: ResetStreamInviteRequest,
|
|
784
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
785
|
+
xDrtDomain?: string,
|
|
786
|
+
): CancelablePromise<SuccessResponse> {
|
|
787
|
+
return __request(OpenAPI, {
|
|
788
|
+
method: 'POST',
|
|
789
|
+
url: '/order/stream/invites/reset',
|
|
790
|
+
headers: {
|
|
791
|
+
'x-drt-domain': xDrtDomain,
|
|
792
|
+
},
|
|
793
|
+
body: requestBody,
|
|
794
|
+
mediaType: 'application/json',
|
|
795
|
+
errors: {
|
|
796
|
+
400: `Bad Request error with error details.`,
|
|
797
|
+
404: `Not found error with error details.`,
|
|
798
|
+
500: `Internal Server Error, please contact developers.`,
|
|
799
|
+
},
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Record a digital-asset download (VS-4)
|
|
804
|
+
* Proves the asset ↔ order ↔ seat linkage, writes digital_asset_download_log (asset, order, IP) and returns the href from the same statement (legacy r/digital-asset-download.cfm). The IP is the server's own req.ip — a browser-supplied one would make the audit trail AdminPortal shows studios forgeable.
|
|
805
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
806
|
+
* @param requestBody The order and asset to log.
|
|
807
|
+
* @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).
|
|
808
|
+
* @returns AssetDownloadResponse Returns the asset href.
|
|
809
|
+
* @throws ApiError
|
|
810
|
+
*/
|
|
811
|
+
public static logAssetDownload(
|
|
812
|
+
requestBody: AssetDownloadRequest,
|
|
813
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
814
|
+
xDrtDomain?: string,
|
|
815
|
+
): CancelablePromise<AssetDownloadResponse> {
|
|
816
|
+
return __request(OpenAPI, {
|
|
817
|
+
method: 'POST',
|
|
818
|
+
url: '/order/asset-download',
|
|
819
|
+
headers: {
|
|
820
|
+
'x-drt-domain': xDrtDomain,
|
|
821
|
+
},
|
|
822
|
+
body: requestBody,
|
|
823
|
+
mediaType: 'application/json',
|
|
824
|
+
errors: {
|
|
825
|
+
400: `Bad Request error with error details.`,
|
|
826
|
+
404: `Not found error with error details.`,
|
|
827
|
+
500: `Internal Server Error, please contact developers.`,
|
|
828
|
+
},
|
|
829
|
+
});
|
|
830
|
+
}
|
|
502
831
|
/**
|
|
503
832
|
* Get the digital-download link for a stream
|
|
504
833
|
* Returns the best-quality digital-download cloud URL for a stream on the order (VS-1, legacy digital-download-get-link).
|
|
505
834
|
* @param orderGuid
|
|
506
835
|
* @param streamGuid
|
|
507
836
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
837
|
+
* @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).
|
|
508
838
|
* @returns StreamDownloadLink Returns the download link.
|
|
509
839
|
* @throws ApiError
|
|
510
840
|
*/
|
|
@@ -512,11 +842,14 @@ export class OrderService {
|
|
|
512
842
|
orderGuid: string,
|
|
513
843
|
streamGuid: string,
|
|
514
844
|
context?: { shopperGuid?: string; accountId?: string },
|
|
845
|
+
xDrtDomain?: string,
|
|
515
846
|
): CancelablePromise<StreamDownloadLink> {
|
|
516
847
|
return __request(OpenAPI, {
|
|
517
848
|
method: 'GET',
|
|
518
849
|
url: '/order/stream/download',
|
|
519
|
-
headers:
|
|
850
|
+
headers: {
|
|
851
|
+
'x-drt-domain': xDrtDomain,
|
|
852
|
+
},
|
|
520
853
|
query: {
|
|
521
854
|
'orderGuid': orderGuid,
|
|
522
855
|
'streamGuid': streamGuid,
|
|
@@ -533,17 +866,21 @@ export class OrderService {
|
|
|
533
866
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
534
867
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
535
868
|
* @param requestBody Stream registration details.
|
|
869
|
+
* @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).
|
|
536
870
|
* @returns RegisterStreamResponse Returns the stream registration response.
|
|
537
871
|
* @throws ApiError
|
|
538
872
|
*/
|
|
539
873
|
public static postRegisterStream(
|
|
540
874
|
requestBody: RegisterStreamRequest,
|
|
541
875
|
context?: { shopperGuid?: string; accountId?: string },
|
|
876
|
+
xDrtDomain?: string,
|
|
542
877
|
): CancelablePromise<RegisterStreamResponse> {
|
|
543
878
|
return __request(OpenAPI, {
|
|
544
879
|
method: 'POST',
|
|
545
880
|
url: '/order/stream-register',
|
|
546
|
-
headers:
|
|
881
|
+
headers: {
|
|
882
|
+
'x-drt-domain': xDrtDomain,
|
|
883
|
+
},
|
|
547
884
|
body: requestBody,
|
|
548
885
|
mediaType: 'application/json',
|
|
549
886
|
errors: {
|
|
@@ -558,17 +895,21 @@ export class OrderService {
|
|
|
558
895
|
* Removes the stream registration for the specified shopper and account using the provided stream registration details.
|
|
559
896
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
560
897
|
* @param requestBody Stream registration details to be deregistered.
|
|
898
|
+
* @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).
|
|
561
899
|
* @returns SuccessResponse Returns success status after deregistering the stream.
|
|
562
900
|
* @throws ApiError
|
|
563
901
|
*/
|
|
564
902
|
public static deleteRegisteredStream(
|
|
565
903
|
requestBody: RegisterStreamRequest,
|
|
566
904
|
context?: { shopperGuid?: string; accountId?: string },
|
|
905
|
+
xDrtDomain?: string,
|
|
567
906
|
): CancelablePromise<SuccessResponse> {
|
|
568
907
|
return __request(OpenAPI, {
|
|
569
908
|
method: 'DELETE',
|
|
570
909
|
url: '/order/stream-register',
|
|
571
|
-
headers:
|
|
910
|
+
headers: {
|
|
911
|
+
'x-drt-domain': xDrtDomain,
|
|
912
|
+
},
|
|
572
913
|
body: requestBody,
|
|
573
914
|
mediaType: 'application/json',
|
|
574
915
|
errors: {
|
|
@@ -583,17 +924,21 @@ export class OrderService {
|
|
|
583
924
|
* Validates the order and exchange policy, applies the re-modification block (an already-exchanged order or one with a live refund request is rejected, clearing any stale lock), and arms the session exchange lock (modifyingOrderId) that /order/exchange/validate, /order/exchange/upcharge, and POST /order/exchange require (EXT-2, legacy r/exchange.cfm page load). Returns the refund-messaging and online-upcharge gating flags for the exchange UI.
|
|
584
925
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
585
926
|
* @param requestBody
|
|
927
|
+
* @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).
|
|
586
928
|
* @returns ExchangeStartResponse Exchange started; lock armed.
|
|
587
929
|
* @throws ApiError
|
|
588
930
|
*/
|
|
589
931
|
public static startExchange(
|
|
590
932
|
requestBody: ExchangeStartRequest,
|
|
591
933
|
context?: { shopperGuid?: string; accountId?: string },
|
|
934
|
+
xDrtDomain?: string,
|
|
592
935
|
): CancelablePromise<ExchangeStartResponse> {
|
|
593
936
|
return __request(OpenAPI, {
|
|
594
937
|
method: 'POST',
|
|
595
938
|
url: '/order/exchange/start',
|
|
596
|
-
headers:
|
|
939
|
+
headers: {
|
|
940
|
+
'x-drt-domain': xDrtDomain,
|
|
941
|
+
},
|
|
597
942
|
body: requestBody,
|
|
598
943
|
mediaType: 'application/json',
|
|
599
944
|
errors: {
|
|
@@ -608,17 +953,21 @@ export class OrderService {
|
|
|
608
953
|
* Returns the seats on the order that can be exchanged out, with hasStarted/hasEnded flags so the UI can block ended shows (EXT-9, legacy r/exchange.cfm seat list). Ended-show seats are also rejected server-side at execute time.
|
|
609
954
|
* @param guid Unique identifier for an order.
|
|
610
955
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
956
|
+
* @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).
|
|
611
957
|
* @returns ExchangeEligibleSeatsResponse Returns the exchange-eligible seats.
|
|
612
958
|
* @throws ApiError
|
|
613
959
|
*/
|
|
614
960
|
public static getExchangeEligibleSeats(
|
|
615
961
|
guid: string,
|
|
616
962
|
context?: { shopperGuid?: string; accountId?: string },
|
|
963
|
+
xDrtDomain?: string,
|
|
617
964
|
): CancelablePromise<ExchangeEligibleSeatsResponse> {
|
|
618
965
|
return __request(OpenAPI, {
|
|
619
966
|
method: 'GET',
|
|
620
967
|
url: '/order/exchange/eligible-seats',
|
|
621
|
-
headers:
|
|
968
|
+
headers: {
|
|
969
|
+
'x-drt-domain': xDrtDomain,
|
|
970
|
+
},
|
|
622
971
|
query: {
|
|
623
972
|
'guid': guid,
|
|
624
973
|
},
|
|
@@ -634,17 +983,21 @@ export class OrderService {
|
|
|
634
983
|
* Returns the shows a buyer can exchange into (ticketed, on sale, in the future) plus how many seats they already hold (EXC-1). Load GA tiers/pricing for a target via GET /event/:id/ga.
|
|
635
984
|
* @param guid Unique identifier for an order.
|
|
636
985
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
986
|
+
* @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).
|
|
637
987
|
* @returns ExchangeShowsResponse Returns exchange-eligible shows and held-seat count.
|
|
638
988
|
* @throws ApiError
|
|
639
989
|
*/
|
|
640
990
|
public static getExchangeShows(
|
|
641
991
|
guid: string,
|
|
642
992
|
context?: { shopperGuid?: string; accountId?: string },
|
|
993
|
+
xDrtDomain?: string,
|
|
643
994
|
): CancelablePromise<ExchangeShowsResponse> {
|
|
644
995
|
return __request(OpenAPI, {
|
|
645
996
|
method: 'GET',
|
|
646
997
|
url: '/order/exchange/shows',
|
|
647
|
-
headers:
|
|
998
|
+
headers: {
|
|
999
|
+
'x-drt-domain': xDrtDomain,
|
|
1000
|
+
},
|
|
648
1001
|
query: {
|
|
649
1002
|
'guid': guid,
|
|
650
1003
|
},
|
|
@@ -659,16 +1012,20 @@ export class OrderService {
|
|
|
659
1012
|
* Get the seats currently held for the exchange
|
|
660
1013
|
* Returns the seats held in the exchange cart (EXC-1).
|
|
661
1014
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
1015
|
+
* @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).
|
|
662
1016
|
* @returns SeatInCart Returns the held exchange seats.
|
|
663
1017
|
* @throws ApiError
|
|
664
1018
|
*/
|
|
665
1019
|
public static getExchangeSeats(
|
|
666
1020
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1021
|
+
xDrtDomain?: string,
|
|
667
1022
|
): CancelablePromise<Array<SeatInCart>> {
|
|
668
1023
|
return __request(OpenAPI, {
|
|
669
1024
|
method: 'GET',
|
|
670
1025
|
url: '/order/exchange/seats',
|
|
671
|
-
headers:
|
|
1026
|
+
headers: {
|
|
1027
|
+
'x-drt-domain': xDrtDomain,
|
|
1028
|
+
},
|
|
672
1029
|
errors: {
|
|
673
1030
|
400: `Bad Request error with error details.`,
|
|
674
1031
|
404: `Not found error with error details.`,
|
|
@@ -681,17 +1038,21 @@ export class OrderService {
|
|
|
681
1038
|
* Persists checkout answers for the new seats being exchanged into (EXC-1, legacy exchange-questions-save).
|
|
682
1039
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
683
1040
|
* @param requestBody
|
|
1041
|
+
* @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).
|
|
684
1042
|
* @returns SuccessResponse Returns success after saving answers.
|
|
685
1043
|
* @throws ApiError
|
|
686
1044
|
*/
|
|
687
1045
|
public static saveExchangeAnswers(
|
|
688
1046
|
requestBody: ExchangeAnswersBody,
|
|
689
1047
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1048
|
+
xDrtDomain?: string,
|
|
690
1049
|
): CancelablePromise<SuccessResponse> {
|
|
691
1050
|
return __request(OpenAPI, {
|
|
692
1051
|
method: 'POST',
|
|
693
1052
|
url: '/order/exchange/questions',
|
|
694
|
-
headers:
|
|
1053
|
+
headers: {
|
|
1054
|
+
'x-drt-domain': xDrtDomain,
|
|
1055
|
+
},
|
|
695
1056
|
body: requestBody,
|
|
696
1057
|
mediaType: 'application/json',
|
|
697
1058
|
errors: {
|
|
@@ -707,6 +1068,7 @@ export class OrderService {
|
|
|
707
1068
|
* @param showId
|
|
708
1069
|
* @param seatId
|
|
709
1070
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
1071
|
+
* @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).
|
|
710
1072
|
* @returns ExchangeCancelSeatResponse Returns success and whether the cart timer still runs.
|
|
711
1073
|
* @throws ApiError
|
|
712
1074
|
*/
|
|
@@ -714,11 +1076,14 @@ export class OrderService {
|
|
|
714
1076
|
showId: number,
|
|
715
1077
|
seatId: number,
|
|
716
1078
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1079
|
+
xDrtDomain?: string,
|
|
717
1080
|
): CancelablePromise<ExchangeCancelSeatResponse> {
|
|
718
1081
|
return __request(OpenAPI, {
|
|
719
1082
|
method: 'DELETE',
|
|
720
1083
|
url: '/order/exchange/seat',
|
|
721
|
-
headers:
|
|
1084
|
+
headers: {
|
|
1085
|
+
'x-drt-domain': xDrtDomain,
|
|
1086
|
+
},
|
|
722
1087
|
query: {
|
|
723
1088
|
'showId': showId,
|
|
724
1089
|
'seatId': seatId,
|
|
@@ -734,16 +1099,20 @@ export class OrderService {
|
|
|
734
1099
|
* Cancel an in-progress exchange
|
|
735
1100
|
* Aborts an in-progress exchange: releases all held seats, clears the cart timer, and clears the exchange lock (EXC-1, legacy exchange-cancel-all).
|
|
736
1101
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
1102
|
+
* @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).
|
|
737
1103
|
* @returns ExchangeCancelResponse Returns success and whether the exchange lock was cleared.
|
|
738
1104
|
* @throws ApiError
|
|
739
1105
|
*/
|
|
740
1106
|
public static cancelExchange(
|
|
741
1107
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1108
|
+
xDrtDomain?: string,
|
|
742
1109
|
): CancelablePromise<ExchangeCancelResponse> {
|
|
743
1110
|
return __request(OpenAPI, {
|
|
744
1111
|
method: 'POST',
|
|
745
1112
|
url: '/order/exchange/cancel',
|
|
746
|
-
headers:
|
|
1113
|
+
headers: {
|
|
1114
|
+
'x-drt-domain': xDrtDomain,
|
|
1115
|
+
},
|
|
747
1116
|
errors: {
|
|
748
1117
|
400: `Bad Request error with error details.`,
|
|
749
1118
|
404: `Not found error with error details.`,
|
|
@@ -756,17 +1125,21 @@ export class OrderService {
|
|
|
756
1125
|
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
757
1126
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
758
1127
|
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
1128
|
+
* @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).
|
|
759
1129
|
* @returns SuccessResponse Returns success after completing the exchange.
|
|
760
1130
|
* @throws ApiError
|
|
761
1131
|
*/
|
|
762
1132
|
public static postExchange(
|
|
763
1133
|
requestBody: ExchangeRequest,
|
|
764
1134
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1135
|
+
xDrtDomain?: string,
|
|
765
1136
|
): CancelablePromise<SuccessResponse> {
|
|
766
1137
|
return __request(OpenAPI, {
|
|
767
1138
|
method: 'POST',
|
|
768
1139
|
url: '/order/exchange',
|
|
769
|
-
headers:
|
|
1140
|
+
headers: {
|
|
1141
|
+
'x-drt-domain': xDrtDomain,
|
|
1142
|
+
},
|
|
770
1143
|
body: requestBody,
|
|
771
1144
|
mediaType: 'application/json',
|
|
772
1145
|
errors: {
|
|
@@ -781,17 +1154,21 @@ export class OrderService {
|
|
|
781
1154
|
* Reruns the studio's order validation rules against the recalculated post-exchange order WITHOUT swapping seats or collecting any payment (EXC-4) — used by the legacy exchange tool's execute step for even exchanges and downgrades, which never reach the upcharge endpoint. The session must hold the exchange lock for the order and the held cart must match the outgoing seats. A failing rule rejects with ORDER_VALIDATION_FAILED ("Order validation has failed."). Returns the money consequence (balanceOwed / refundDue / willCreateRefund) so the review step can show it before the buyer confirms (EXT-5).
|
|
782
1155
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
783
1156
|
* @param requestBody Validation request containing the order GUID and the seats being exchanged out.
|
|
1157
|
+
* @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).
|
|
784
1158
|
* @returns ExchangeValidateResponse Returns success plus the recalculated money consequence.
|
|
785
1159
|
* @throws ApiError
|
|
786
1160
|
*/
|
|
787
1161
|
public static validateExchange(
|
|
788
1162
|
requestBody: ExchangeValidateRequest,
|
|
789
1163
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1164
|
+
xDrtDomain?: string,
|
|
790
1165
|
): CancelablePromise<ExchangeValidateResponse> {
|
|
791
1166
|
return __request(OpenAPI, {
|
|
792
1167
|
method: 'POST',
|
|
793
1168
|
url: '/order/exchange/validate',
|
|
794
|
-
headers:
|
|
1169
|
+
headers: {
|
|
1170
|
+
'x-drt-domain': xDrtDomain,
|
|
1171
|
+
},
|
|
795
1172
|
body: requestBody,
|
|
796
1173
|
mediaType: 'application/json',
|
|
797
1174
|
errors: {
|
|
@@ -806,17 +1183,21 @@ export class OrderService {
|
|
|
806
1183
|
* Charges the additional amount owed for an in-progress exchange WITHOUT swapping seats (EXC-3) — used by the legacy exchange tool, whose execute step performs the seat swap itself. The session must hold the exchange lock for the order, the held cart must match the outgoing seats, and the amount is recomputed server-side before Payment-API charges the card saved by /payment/customer + /payment/summary.
|
|
807
1184
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
808
1185
|
* @param requestBody Upcharge request containing the order GUID and the seats being exchanged out.
|
|
1186
|
+
* @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).
|
|
809
1187
|
* @returns ExchangeUpchargeResponse Returns the recorded upcharge payment details.
|
|
810
1188
|
* @throws ApiError
|
|
811
1189
|
*/
|
|
812
1190
|
public static collectExchangeUpcharge(
|
|
813
1191
|
requestBody: ExchangeUpchargeRequest,
|
|
814
1192
|
context?: { shopperGuid?: string; accountId?: string },
|
|
1193
|
+
xDrtDomain?: string,
|
|
815
1194
|
): CancelablePromise<ExchangeUpchargeResponse> {
|
|
816
1195
|
return __request(OpenAPI, {
|
|
817
1196
|
method: 'POST',
|
|
818
1197
|
url: '/order/exchange/upcharge',
|
|
819
|
-
headers:
|
|
1198
|
+
headers: {
|
|
1199
|
+
'x-drt-domain': xDrtDomain,
|
|
1200
|
+
},
|
|
820
1201
|
body: requestBody,
|
|
821
1202
|
mediaType: 'application/json',
|
|
822
1203
|
errors: {
|