@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
|
@@ -3,20 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CheckoutService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
7
6
|
class CheckoutService {
|
|
8
7
|
/**
|
|
9
8
|
* Get checkout page data
|
|
10
9
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
11
10
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
|
+
* @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).
|
|
12
12
|
* @returns CheckoutPageData Returns checkout page data.
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
static getCheckout(context) {
|
|
15
|
+
static getCheckout(context, xDrtDomain) {
|
|
16
16
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
17
|
method: 'GET',
|
|
18
18
|
url: '/checkout',
|
|
19
|
-
headers:
|
|
19
|
+
headers: {
|
|
20
|
+
'x-drt-domain': xDrtDomain,
|
|
21
|
+
},
|
|
20
22
|
errors: {
|
|
21
23
|
400: `Bad Request error with error details.`,
|
|
22
24
|
404: `Not found error with error details.`,
|
|
@@ -29,14 +31,17 @@ class CheckoutService {
|
|
|
29
31
|
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Supports both token (EMS/Authorize.net) and Stripe payment flows.
|
|
30
32
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
31
33
|
* @param requestBody Checkout form data.
|
|
34
|
+
* @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).
|
|
32
35
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
33
36
|
* @throws ApiError
|
|
34
37
|
*/
|
|
35
|
-
static submitCheckout(requestBody, context) {
|
|
38
|
+
static submitCheckout(requestBody, context, xDrtDomain) {
|
|
36
39
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
40
|
method: 'POST',
|
|
38
41
|
url: '/checkout',
|
|
39
|
-
headers:
|
|
42
|
+
headers: {
|
|
43
|
+
'x-drt-domain': xDrtDomain,
|
|
44
|
+
},
|
|
40
45
|
body: requestBody,
|
|
41
46
|
mediaType: 'application/json',
|
|
42
47
|
errors: {
|
|
@@ -51,14 +56,17 @@ class CheckoutService {
|
|
|
51
56
|
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
52
57
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
53
58
|
* @param curr The current step. Defaults to 'seats'.
|
|
59
|
+
* @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).
|
|
54
60
|
* @returns NextStepResponse Returns the next step.
|
|
55
61
|
* @throws ApiError
|
|
56
62
|
*/
|
|
57
|
-
static getNextStep(context, curr) {
|
|
63
|
+
static getNextStep(context, curr, xDrtDomain) {
|
|
58
64
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
59
65
|
method: 'GET',
|
|
60
66
|
url: '/checkout/next-step',
|
|
61
|
-
headers:
|
|
67
|
+
headers: {
|
|
68
|
+
'x-drt-domain': xDrtDomain,
|
|
69
|
+
},
|
|
62
70
|
query: {
|
|
63
71
|
'curr': curr,
|
|
64
72
|
},
|
|
@@ -73,14 +81,17 @@ class CheckoutService {
|
|
|
73
81
|
* Get applicable checkout steps
|
|
74
82
|
* Returns the wizard steps that apply to this session, in order, with required flags. Merchandise and donations appear only when items or funds are available. JSON only (replaces the legacy HTML step bar).
|
|
75
83
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
84
|
+
* @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).
|
|
76
85
|
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
77
86
|
* @throws ApiError
|
|
78
87
|
*/
|
|
79
|
-
static getSteps(context) {
|
|
88
|
+
static getSteps(context, xDrtDomain) {
|
|
80
89
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
81
90
|
method: 'GET',
|
|
82
91
|
url: '/checkout/steps',
|
|
83
|
-
headers:
|
|
92
|
+
headers: {
|
|
93
|
+
'x-drt-domain': xDrtDomain,
|
|
94
|
+
},
|
|
84
95
|
errors: {
|
|
85
96
|
400: `Bad Request error with error details.`,
|
|
86
97
|
404: `Not found error with error details.`,
|
|
@@ -93,14 +104,17 @@ class CheckoutService {
|
|
|
93
104
|
* Saves a payment nonce (token) from EMS/Authorize.net to the session.
|
|
94
105
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
95
106
|
* @param requestBody Nonce data to save.
|
|
107
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
96
108
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
97
109
|
* @throws ApiError
|
|
98
110
|
*/
|
|
99
|
-
static saveNonce(requestBody, context) {
|
|
111
|
+
static saveNonce(requestBody, context, xDrtDomain) {
|
|
100
112
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
101
113
|
method: 'POST',
|
|
102
114
|
url: '/checkout/nonce',
|
|
103
|
-
headers:
|
|
115
|
+
headers: {
|
|
116
|
+
'x-drt-domain': xDrtDomain,
|
|
117
|
+
},
|
|
104
118
|
body: requestBody,
|
|
105
119
|
mediaType: 'application/json',
|
|
106
120
|
errors: {
|
|
@@ -114,14 +128,17 @@ class CheckoutService {
|
|
|
114
128
|
* Clear payment nonce
|
|
115
129
|
* Clears the payment nonce and related CC fields from the session.
|
|
116
130
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
131
|
+
* @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).
|
|
117
132
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
118
133
|
* @throws ApiError
|
|
119
134
|
*/
|
|
120
|
-
static clearNonce(context) {
|
|
135
|
+
static clearNonce(context, xDrtDomain) {
|
|
121
136
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
122
137
|
method: 'DELETE',
|
|
123
138
|
url: '/checkout/nonce',
|
|
124
|
-
headers:
|
|
139
|
+
headers: {
|
|
140
|
+
'x-drt-domain': xDrtDomain,
|
|
141
|
+
},
|
|
125
142
|
errors: {
|
|
126
143
|
400: `Bad Request error with error details.`,
|
|
127
144
|
404: `Not found error with error details.`,
|
|
@@ -134,14 +151,17 @@ class CheckoutService {
|
|
|
134
151
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
135
152
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
136
153
|
* @param requestBody Partial checkout data to auto-save.
|
|
154
|
+
* @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).
|
|
137
155
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
138
156
|
* @throws ApiError
|
|
139
157
|
*/
|
|
140
|
-
static saveDetails(requestBody, context) {
|
|
158
|
+
static saveDetails(requestBody, context, xDrtDomain) {
|
|
141
159
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
142
160
|
method: 'POST',
|
|
143
161
|
url: '/checkout/details',
|
|
144
|
-
headers:
|
|
162
|
+
headers: {
|
|
163
|
+
'x-drt-domain': xDrtDomain,
|
|
164
|
+
},
|
|
145
165
|
body: requestBody,
|
|
146
166
|
mediaType: 'application/json',
|
|
147
167
|
errors: {
|
|
@@ -155,14 +175,17 @@ class CheckoutService {
|
|
|
155
175
|
* Fill contact fields from POS defaults
|
|
156
176
|
* Fills empty session contact fields (name/email/phone) from the account POS defaults and returns the resulting contact. Logged-in shoppers only (legacy default-shopper-set-info).
|
|
157
177
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
178
|
+
* @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).
|
|
158
179
|
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
159
180
|
* @throws ApiError
|
|
160
181
|
*/
|
|
161
|
-
static fillDefaultInfo(context) {
|
|
182
|
+
static fillDefaultInfo(context, xDrtDomain) {
|
|
162
183
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
163
184
|
method: 'POST',
|
|
164
185
|
url: '/checkout/default-info',
|
|
165
|
-
headers:
|
|
186
|
+
headers: {
|
|
187
|
+
'x-drt-domain': xDrtDomain,
|
|
188
|
+
},
|
|
166
189
|
errors: {
|
|
167
190
|
400: `Bad Request error with error details.`,
|
|
168
191
|
404: `Not found error with error details.`,
|
|
@@ -2,6 +2,7 @@ import type { CodeDto } from '../models/CodeDto';
|
|
|
2
2
|
import type { CorrelatedCode } from '../models/CorrelatedCode';
|
|
3
3
|
import type { HasAccessResponse } from '../models/HasAccessResponse';
|
|
4
4
|
import type { PriorityCode } from '../models/PriorityCode';
|
|
5
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
5
6
|
import type { SuccessWithTime } from '../models/SuccessWithTime';
|
|
6
7
|
import type { UniversalCodeResponse } from '../models/UniversalCodeResponse';
|
|
7
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -11,71 +12,90 @@ export declare class CodeService {
|
|
|
11
12
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
12
13
|
* @param eventId ID of the event for which access is requested
|
|
13
14
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
15
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
14
16
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
15
17
|
* @throws ApiError
|
|
16
18
|
*/
|
|
17
19
|
static requestEventAccess(eventId: number, context?: {
|
|
18
20
|
shopperGuid?: string;
|
|
19
21
|
accountId?: string;
|
|
20
|
-
}): CancelablePromise<HasAccessResponse>;
|
|
22
|
+
}, xDrtDomain?: string): CancelablePromise<HasAccessResponse>;
|
|
21
23
|
/**
|
|
22
24
|
* List the codes correlated to a patron code
|
|
23
25
|
* Given a patron code, returns the priority/coupon codes tied to that patron's email so the shopper can choose which to apply (CODE-3).
|
|
24
26
|
* @param code The patron code to look up.
|
|
25
27
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
26
29
|
* @returns CorrelatedCode Returns the correlated codes.
|
|
27
30
|
* @throws ApiError
|
|
28
31
|
*/
|
|
29
32
|
static getPatronCodes(code: string, context?: {
|
|
30
33
|
shopperGuid?: string;
|
|
31
34
|
accountId?: string;
|
|
32
|
-
}): CancelablePromise<Array<CorrelatedCode>>;
|
|
35
|
+
}, xDrtDomain?: string): CancelablePromise<Array<CorrelatedCode>>;
|
|
33
36
|
/**
|
|
34
37
|
* Apply a code to the current shopper session
|
|
35
38
|
* Applies a code to the current shopper session.
|
|
36
39
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
37
40
|
* @param requestBody Code to be applied
|
|
41
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
38
42
|
* @returns SuccessWithTime Code applied successfully.
|
|
39
43
|
* @throws ApiError
|
|
40
44
|
*/
|
|
41
45
|
static applyCode(requestBody: CodeDto, context?: {
|
|
42
46
|
shopperGuid?: string;
|
|
43
47
|
accountId?: string;
|
|
44
|
-
}): CancelablePromise<SuccessWithTime>;
|
|
48
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessWithTime>;
|
|
45
49
|
/**
|
|
46
50
|
* Apply a coupon to the current shopper session
|
|
47
51
|
* Applies a coupon to the current shopper session.
|
|
48
52
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
49
53
|
* @param requestBody Coupon code to be applied
|
|
54
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
50
55
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
51
56
|
* @throws ApiError
|
|
52
57
|
*/
|
|
53
58
|
static applyCoupon(requestBody: CodeDto, context?: {
|
|
54
59
|
shopperGuid?: string;
|
|
55
60
|
accountId?: string;
|
|
56
|
-
}): CancelablePromise<UniversalCodeResponse>;
|
|
61
|
+
}, xDrtDomain?: string): CancelablePromise<UniversalCodeResponse>;
|
|
57
62
|
/**
|
|
58
63
|
* Remove a coupon from the current shopper session
|
|
59
64
|
* Removes a coupon from the current shopper session.
|
|
60
65
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
61
66
|
* @param requestBody Coupon code to be removed
|
|
67
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
62
68
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
63
69
|
* @throws ApiError
|
|
64
70
|
*/
|
|
65
71
|
static removeCoupon(requestBody: CodeDto, context?: {
|
|
66
72
|
shopperGuid?: string;
|
|
67
73
|
accountId?: string;
|
|
68
|
-
}): CancelablePromise<UniversalCodeResponse>;
|
|
74
|
+
}, xDrtDomain?: string): CancelablePromise<UniversalCodeResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Decline a reservation code
|
|
77
|
+
* Releases the seats a reservation code is holding — the waitlist offer email's decline link. Idempotent and silent: an unknown, foreign or already-declined code answers success and does nothing.
|
|
78
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
79
|
+
* @param requestBody Reservation code to decline
|
|
80
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
81
|
+
* @returns SuccessResponse The decline was recorded.
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
static declineReservationCode(requestBody: CodeDto, context?: {
|
|
85
|
+
shopperGuid?: string;
|
|
86
|
+
accountId?: string;
|
|
87
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessResponse>;
|
|
69
88
|
/**
|
|
70
89
|
* Apply Priority Code
|
|
71
90
|
* Applies a priority code to the cart.
|
|
72
91
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
73
92
|
* @param requestBody Priority code data to be applied
|
|
93
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
74
94
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
75
95
|
* @throws ApiError
|
|
76
96
|
*/
|
|
77
97
|
static applyPriorityCode(requestBody: PriorityCode, context?: {
|
|
78
98
|
shopperGuid?: string;
|
|
79
99
|
accountId?: string;
|
|
80
|
-
}): CancelablePromise<SuccessWithTime>;
|
|
100
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessWithTime>;
|
|
81
101
|
}
|
|
@@ -3,21 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CodeService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
7
6
|
class CodeService {
|
|
8
7
|
/**
|
|
9
8
|
* Request access to an event
|
|
10
9
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
11
10
|
* @param eventId ID of the event for which access is requested
|
|
12
11
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
12
|
+
* @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).
|
|
13
13
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
16
|
-
static requestEventAccess(eventId, context) {
|
|
16
|
+
static requestEventAccess(eventId, context, xDrtDomain) {
|
|
17
17
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
18
|
method: 'GET',
|
|
19
19
|
url: '/code/access',
|
|
20
|
-
headers:
|
|
20
|
+
headers: {
|
|
21
|
+
'x-drt-domain': xDrtDomain,
|
|
22
|
+
},
|
|
21
23
|
query: {
|
|
22
24
|
'eventId': eventId,
|
|
23
25
|
},
|
|
@@ -33,14 +35,17 @@ class CodeService {
|
|
|
33
35
|
* Given a patron code, returns the priority/coupon codes tied to that patron's email so the shopper can choose which to apply (CODE-3).
|
|
34
36
|
* @param code The patron code to look up.
|
|
35
37
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
38
|
+
* @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).
|
|
36
39
|
* @returns CorrelatedCode Returns the correlated codes.
|
|
37
40
|
* @throws ApiError
|
|
38
41
|
*/
|
|
39
|
-
static getPatronCodes(code, context) {
|
|
42
|
+
static getPatronCodes(code, context, xDrtDomain) {
|
|
40
43
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
41
44
|
method: 'GET',
|
|
42
45
|
url: '/code/patron',
|
|
43
|
-
headers:
|
|
46
|
+
headers: {
|
|
47
|
+
'x-drt-domain': xDrtDomain,
|
|
48
|
+
},
|
|
44
49
|
query: {
|
|
45
50
|
'code': code,
|
|
46
51
|
},
|
|
@@ -56,14 +61,17 @@ class CodeService {
|
|
|
56
61
|
* Applies a code to the current shopper session.
|
|
57
62
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
58
63
|
* @param requestBody Code to be applied
|
|
64
|
+
* @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).
|
|
59
65
|
* @returns SuccessWithTime Code applied successfully.
|
|
60
66
|
* @throws ApiError
|
|
61
67
|
*/
|
|
62
|
-
static applyCode(requestBody, context) {
|
|
68
|
+
static applyCode(requestBody, context, xDrtDomain) {
|
|
63
69
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
64
70
|
method: 'POST',
|
|
65
71
|
url: '/code',
|
|
66
|
-
headers:
|
|
72
|
+
headers: {
|
|
73
|
+
'x-drt-domain': xDrtDomain,
|
|
74
|
+
},
|
|
67
75
|
body: requestBody,
|
|
68
76
|
mediaType: 'application/json',
|
|
69
77
|
errors: {
|
|
@@ -78,14 +86,17 @@ class CodeService {
|
|
|
78
86
|
* Applies a coupon to the current shopper session.
|
|
79
87
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
80
88
|
* @param requestBody Coupon code to be applied
|
|
89
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
81
90
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
82
91
|
* @throws ApiError
|
|
83
92
|
*/
|
|
84
|
-
static applyCoupon(requestBody, context) {
|
|
93
|
+
static applyCoupon(requestBody, context, xDrtDomain) {
|
|
85
94
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
86
95
|
method: 'POST',
|
|
87
96
|
url: '/code/discount',
|
|
88
|
-
headers:
|
|
97
|
+
headers: {
|
|
98
|
+
'x-drt-domain': xDrtDomain,
|
|
99
|
+
},
|
|
89
100
|
body: requestBody,
|
|
90
101
|
mediaType: 'application/json',
|
|
91
102
|
errors: {
|
|
@@ -100,14 +111,42 @@ class CodeService {
|
|
|
100
111
|
* Removes a coupon from the current shopper session.
|
|
101
112
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
102
113
|
* @param requestBody Coupon code to be removed
|
|
114
|
+
* @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).
|
|
103
115
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
104
116
|
* @throws ApiError
|
|
105
117
|
*/
|
|
106
|
-
static removeCoupon(requestBody, context) {
|
|
118
|
+
static removeCoupon(requestBody, context, xDrtDomain) {
|
|
107
119
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
108
120
|
method: 'DELETE',
|
|
109
121
|
url: '/code/discount',
|
|
110
|
-
headers:
|
|
122
|
+
headers: {
|
|
123
|
+
'x-drt-domain': xDrtDomain,
|
|
124
|
+
},
|
|
125
|
+
body: requestBody,
|
|
126
|
+
mediaType: 'application/json',
|
|
127
|
+
errors: {
|
|
128
|
+
400: `Bad Request error with error details.`,
|
|
129
|
+
404: `Not found error with error details.`,
|
|
130
|
+
500: `Internal Server Error, please contact developers.`,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Decline a reservation code
|
|
136
|
+
* Releases the seats a reservation code is holding — the waitlist offer email's decline link. Idempotent and silent: an unknown, foreign or already-declined code answers success and does nothing.
|
|
137
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
138
|
+
* @param requestBody Reservation code to decline
|
|
139
|
+
* @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).
|
|
140
|
+
* @returns SuccessResponse The decline was recorded.
|
|
141
|
+
* @throws ApiError
|
|
142
|
+
*/
|
|
143
|
+
static declineReservationCode(requestBody, context, xDrtDomain) {
|
|
144
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
145
|
+
method: 'POST',
|
|
146
|
+
url: '/code/decline',
|
|
147
|
+
headers: {
|
|
148
|
+
'x-drt-domain': xDrtDomain,
|
|
149
|
+
},
|
|
111
150
|
body: requestBody,
|
|
112
151
|
mediaType: 'application/json',
|
|
113
152
|
errors: {
|
|
@@ -122,14 +161,17 @@ class CodeService {
|
|
|
122
161
|
* Applies a priority code to the cart.
|
|
123
162
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
124
163
|
* @param requestBody Priority code data to be applied
|
|
164
|
+
* @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
165
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
126
166
|
* @throws ApiError
|
|
127
167
|
*/
|
|
128
|
-
static applyPriorityCode(requestBody, context) {
|
|
168
|
+
static applyPriorityCode(requestBody, context, xDrtDomain) {
|
|
129
169
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
130
170
|
method: 'POST',
|
|
131
171
|
url: '/code/priority',
|
|
132
|
-
headers:
|
|
172
|
+
headers: {
|
|
173
|
+
'x-drt-domain': xDrtDomain,
|
|
174
|
+
},
|
|
133
175
|
body: requestBody,
|
|
134
176
|
mediaType: 'application/json',
|
|
135
177
|
errors: {
|
|
@@ -8,36 +8,39 @@ export declare class DonationService {
|
|
|
8
8
|
* Get all donations for a shopper
|
|
9
9
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
10
10
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
|
+
* @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).
|
|
11
12
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
12
13
|
* @throws ApiError
|
|
13
14
|
*/
|
|
14
15
|
static getDonations(context?: {
|
|
15
16
|
shopperGuid?: string;
|
|
16
17
|
accountId?: string;
|
|
17
|
-
}): CancelablePromise<DonationsandContributions>;
|
|
18
|
+
}, xDrtDomain?: string): CancelablePromise<DonationsandContributions>;
|
|
18
19
|
/**
|
|
19
20
|
* Add a donation or contribution
|
|
20
21
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
21
22
|
* @param ipAddress API key for authentication.
|
|
22
23
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
23
24
|
* @param requestBody Donation or contribution details to add.
|
|
25
|
+
* @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).
|
|
24
26
|
* @returns DonationResult Returns the result of the donation addition.
|
|
25
27
|
* @throws ApiError
|
|
26
28
|
*/
|
|
27
29
|
static postDonation(ipAddress: string, requestBody: DonationContribution, context?: {
|
|
28
30
|
shopperGuid?: string;
|
|
29
31
|
accountId?: string;
|
|
30
|
-
}): CancelablePromise<DonationResult>;
|
|
32
|
+
}, xDrtDomain?: string): CancelablePromise<DonationResult>;
|
|
31
33
|
/**
|
|
32
34
|
* Remove a donation from the cart
|
|
33
35
|
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
34
36
|
* @param fundId The donation fund id to remove.
|
|
35
37
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
38
|
+
* @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).
|
|
36
39
|
* @returns SuccessResponse Returns success after removing the donation.
|
|
37
40
|
* @throws ApiError
|
|
38
41
|
*/
|
|
39
42
|
static deleteDonation(fundId: number, context?: {
|
|
40
43
|
shopperGuid?: string;
|
|
41
44
|
accountId?: string;
|
|
42
|
-
}): CancelablePromise<SuccessResponse>;
|
|
45
|
+
}, xDrtDomain?: string): CancelablePromise<SuccessResponse>;
|
|
43
46
|
}
|
|
@@ -3,20 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DonationService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
7
6
|
class DonationService {
|
|
8
7
|
/**
|
|
9
8
|
* Get all donations for a shopper
|
|
10
9
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
11
10
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
|
+
* @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).
|
|
12
12
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
static getDonations(context) {
|
|
15
|
+
static getDonations(context, xDrtDomain) {
|
|
16
16
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
17
|
method: 'GET',
|
|
18
18
|
url: '/donation',
|
|
19
|
-
headers:
|
|
19
|
+
headers: {
|
|
20
|
+
'x-drt-domain': xDrtDomain,
|
|
21
|
+
},
|
|
20
22
|
errors: {
|
|
21
23
|
400: `Bad Request error with error details.`,
|
|
22
24
|
404: `Not found error with error details.`,
|
|
@@ -30,15 +32,17 @@ class DonationService {
|
|
|
30
32
|
* @param ipAddress API key for authentication.
|
|
31
33
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
32
34
|
* @param requestBody Donation or contribution details to add.
|
|
35
|
+
* @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).
|
|
33
36
|
* @returns DonationResult Returns the result of the donation addition.
|
|
34
37
|
* @throws ApiError
|
|
35
38
|
*/
|
|
36
|
-
static postDonation(ipAddress, requestBody, context) {
|
|
39
|
+
static postDonation(ipAddress, requestBody, context, xDrtDomain) {
|
|
37
40
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
38
41
|
method: 'POST',
|
|
39
42
|
url: '/donation',
|
|
40
43
|
headers: {
|
|
41
44
|
'ipAddress': ipAddress,
|
|
45
|
+
'x-drt-domain': xDrtDomain,
|
|
42
46
|
},
|
|
43
47
|
body: requestBody,
|
|
44
48
|
mediaType: 'application/json',
|
|
@@ -54,14 +58,17 @@ class DonationService {
|
|
|
54
58
|
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
55
59
|
* @param fundId The donation fund id to remove.
|
|
56
60
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
61
|
+
* @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).
|
|
57
62
|
* @returns SuccessResponse Returns success after removing the donation.
|
|
58
63
|
* @throws ApiError
|
|
59
64
|
*/
|
|
60
|
-
static deleteDonation(fundId, context) {
|
|
65
|
+
static deleteDonation(fundId, context, xDrtDomain) {
|
|
61
66
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
67
|
method: 'DELETE',
|
|
63
68
|
url: '/donation',
|
|
64
|
-
headers:
|
|
69
|
+
headers: {
|
|
70
|
+
'x-drt-domain': xDrtDomain,
|
|
71
|
+
},
|
|
65
72
|
query: {
|
|
66
73
|
'fundId': fundId,
|
|
67
74
|
},
|
|
@@ -3,6 +3,8 @@ import type { FullEventDetails } from '../models/FullEventDetails';
|
|
|
3
3
|
import type { GaSelection } from '../models/GaSelection';
|
|
4
4
|
import type { GetEventsResponse } from '../models/GetEventsResponse';
|
|
5
5
|
import type { PerformerEventList } from '../models/PerformerEventList';
|
|
6
|
+
import type { SetShowGroupRequest } from '../models/SetShowGroupRequest';
|
|
7
|
+
import type { SetShowGroupResponse } from '../models/SetShowGroupResponse';
|
|
6
8
|
import type { WaitlistResponse } from '../models/WaitlistResponse';
|
|
7
9
|
import type { WaitlistUpdate } from '../models/WaitlistUpdate';
|
|
8
10
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -11,71 +13,90 @@ export declare class EventService {
|
|
|
11
13
|
* Get all events for a shopper
|
|
12
14
|
* Retrieves all events associated with the shopper.
|
|
13
15
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
16
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
14
17
|
* @returns GetEventsResponse Returns a list of events and their groups.
|
|
15
18
|
* @throws ApiError
|
|
16
19
|
*/
|
|
17
20
|
static getEvents(context?: {
|
|
18
21
|
shopperGuid?: string;
|
|
19
22
|
accountId?: string;
|
|
20
|
-
}): CancelablePromise<GetEventsResponse>;
|
|
23
|
+
}, xDrtDomain?: string): CancelablePromise<GetEventsResponse>;
|
|
21
24
|
/**
|
|
22
25
|
* Get events for a specific performer
|
|
23
26
|
* Retrieves events associated with a specific performer.
|
|
24
27
|
* @param performer The name of the performer to filter events by.
|
|
25
28
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
29
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
26
30
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
27
31
|
* @throws ApiError
|
|
28
32
|
*/
|
|
29
33
|
static getPerformers(performer: string, context?: {
|
|
30
34
|
shopperGuid?: string;
|
|
31
35
|
accountId?: string;
|
|
32
|
-
}): CancelablePromise<Array<PerformerEventList>>;
|
|
36
|
+
}, xDrtDomain?: string): CancelablePromise<Array<PerformerEventList>>;
|
|
37
|
+
/**
|
|
38
|
+
* Scope this session to a show group
|
|
39
|
+
* Pins a show group to the shopper's session (legacy r/apply-sg.cfm), so GET /event answers only that group's shows. Pass groupId: null to clear the scope. 404 when the group does not belong to this studio.
|
|
40
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
41
|
+
* @param requestBody The show group to pin, or null to clear.
|
|
42
|
+
* @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).
|
|
43
|
+
* @returns SetShowGroupResponse The group now pinned, or null when the pin was cleared.
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static setShowGroup(requestBody: SetShowGroupRequest, context?: {
|
|
47
|
+
shopperGuid?: string;
|
|
48
|
+
accountId?: string;
|
|
49
|
+
}, xDrtDomain?: string): CancelablePromise<SetShowGroupResponse>;
|
|
33
50
|
/**
|
|
34
51
|
* Get event details by ID
|
|
35
52
|
* Retrieves detailed information for a specific event.
|
|
36
53
|
* @param id
|
|
37
54
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
55
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
38
56
|
* @returns FullEventDetails Returns the event details.
|
|
39
57
|
* @throws ApiError
|
|
40
58
|
*/
|
|
41
59
|
static getEventById(id: number, context?: {
|
|
42
60
|
shopperGuid?: string;
|
|
43
61
|
accountId?: string;
|
|
44
|
-
}): CancelablePromise<FullEventDetails>;
|
|
62
|
+
}, xDrtDomain?: string): CancelablePromise<FullEventDetails>;
|
|
45
63
|
/**
|
|
46
64
|
* Get the seat-map legend for an event
|
|
47
65
|
* Returns the structured seat-map legend (per-tier color/label, the raw legend text, and the chair-token color map) as JSON (SEAT-2).
|
|
48
66
|
* @param id
|
|
49
67
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
68
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
50
69
|
* @returns EventLegend Returns the event legend.
|
|
51
70
|
* @throws ApiError
|
|
52
71
|
*/
|
|
53
72
|
static getEventLegend(id: number, context?: {
|
|
54
73
|
shopperGuid?: string;
|
|
55
74
|
accountId?: string;
|
|
56
|
-
}): CancelablePromise<EventLegend>;
|
|
75
|
+
}, xDrtDomain?: string): CancelablePromise<EventLegend>;
|
|
57
76
|
/**
|
|
58
77
|
* Get GA / best-available selection data for an event
|
|
59
78
|
* Returns the GA/BA purchase-view payload: per-tier advance/door/effective price, capacity & remaining, plus order limits and lap-child policy (SEAT-3).
|
|
60
79
|
* @param id
|
|
61
80
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
81
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
62
82
|
* @returns GaSelection Returns the GA selection payload.
|
|
63
83
|
* @throws ApiError
|
|
64
84
|
*/
|
|
65
85
|
static getGaSelection(id: number, context?: {
|
|
66
86
|
shopperGuid?: string;
|
|
67
87
|
accountId?: string;
|
|
68
|
-
}): CancelablePromise<GaSelection>;
|
|
88
|
+
}, xDrtDomain?: string): CancelablePromise<GaSelection>;
|
|
69
89
|
/**
|
|
70
90
|
* Assign names to the waitlist
|
|
71
91
|
* Updates the waitlist with shopper details.
|
|
72
92
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
73
93
|
* @param requestBody Details of the waitlist update
|
|
94
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
74
95
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
75
96
|
* @throws ApiError
|
|
76
97
|
*/
|
|
77
98
|
static postWishlist(requestBody: WaitlistUpdate, context?: {
|
|
78
99
|
shopperGuid?: string;
|
|
79
100
|
accountId?: string;
|
|
80
|
-
}): CancelablePromise<WaitlistResponse>;
|
|
101
|
+
}, xDrtDomain?: string): CancelablePromise<WaitlistResponse>;
|
|
81
102
|
}
|