@drttix/drt-sdk 1.3.4 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -4
- package/azure-pipelines.yml +2 -0
- package/dist/cjs/src/functions/sdkConfig.d.ts +47 -16
- package/dist/cjs/src/functions/sdkConfig.js +63 -43
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/core/request.js +41 -7
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/scanner/core/request.js +41 -7
- package/dist/cjs/src/generated/scanner/index.d.ts +1 -0
- package/dist/cjs/src/generated/scanner/models/OrderScan.d.ts +9 -0
- package/dist/cjs/src/generated/scanner/models/OrderScan.js +2 -0
- package/dist/cjs/src/generated/scanner/models/TicketScan.d.ts +1 -0
- package/dist/cjs/src/generated/scanner/services/ScanningService.d.ts +16 -0
- package/dist/cjs/src/generated/scanner/services/ScanningService.js +28 -0
- package/dist/cjs/src/generated/scanner/types.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/request.js +41 -7
- package/dist/cjs/src/generated/shopper/index.d.ts +29 -2
- package/dist/cjs/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/AnswerInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/cjs/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CorrelatedCode.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventLegend.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventLegend.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
- package/dist/cjs/src/generated/shopper/models/EventLegendItem.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +2 -2
- package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.js +2 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.js +2 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/cjs/src/generated/shopper/services/CartService.js +98 -7
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/cjs/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/cjs/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/cjs/src/generated/shopper/services/EventService.js +59 -4
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/cjs/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/cjs/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/cjs/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/cjs/src/generated/shopper/types.d.ts +29 -2
- package/dist/cjs/src/scripts/build-all.js +83 -19
- package/dist/esm/src/functions/sdkConfig.d.ts +47 -16
- package/dist/esm/src/functions/sdkConfig.js +61 -41
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/core/request.js +41 -7
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/scanner/core/request.js +41 -7
- package/dist/esm/src/generated/scanner/index.d.ts +1 -0
- package/dist/esm/src/generated/scanner/models/OrderScan.d.ts +9 -0
- package/dist/esm/src/generated/scanner/models/OrderScan.js +1 -0
- package/dist/esm/src/generated/scanner/models/TicketScan.d.ts +1 -0
- package/dist/esm/src/generated/scanner/services/ScanningService.d.ts +16 -0
- package/dist/esm/src/generated/scanner/services/ScanningService.js +28 -0
- package/dist/esm/src/generated/scanner/types.d.ts +1 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/request.js +41 -7
- package/dist/esm/src/generated/shopper/index.d.ts +29 -2
- package/dist/esm/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/AnswerInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/CartAmounts.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CartClearResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CartCountsLite.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/esm/src/generated/shopper/models/CartTotals.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStep.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/esm/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CorrelatedCode.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventLegend.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventLegend.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
- package/dist/esm/src/generated/shopper/models/EventLegendItem.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +2 -2
- package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.js +1 -0
- package/dist/esm/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/esm/src/generated/shopper/models/GaTier.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.js +1 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/esm/src/generated/shopper/services/CartService.js +98 -7
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/esm/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/esm/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/esm/src/generated/shopper/services/EventService.js +59 -4
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/esm/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/esm/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/esm/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/esm/src/generated/shopper/types.d.ts +29 -2
- package/dist/esm/src/scripts/build-all.js +83 -19
- package/package.json +3 -2
- package/pnpm-workspace.yaml +2 -0
- package/src/custom/custom-request.txt +43 -9
- package/src/functions/sdkConfig.ts +91 -54
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/core/request.ts +43 -9
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/scanner/core/request.ts +43 -9
- package/src/generated/scanner/index.ts +1 -0
- package/src/generated/scanner/models/OrderScan.ts +14 -0
- package/src/generated/scanner/models/TicketScan.ts +1 -0
- package/src/generated/scanner/services/ScanningService.ts +38 -0
- package/src/generated/scanner/types.ts +1 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/request.ts +43 -9
- package/src/generated/shopper/index.ts +29 -2
- package/src/generated/shopper/models/AnswerInput.ts +11 -0
- package/src/generated/shopper/models/CartAmounts.ts +43 -0
- package/src/generated/shopper/models/CartClearResult.ts +19 -0
- package/src/generated/shopper/models/CartCountsLite.ts +19 -0
- package/src/generated/shopper/models/CartTotals.ts +27 -0
- package/src/generated/shopper/models/CheckoutStep.ts +15 -0
- package/src/generated/shopper/models/CheckoutStepsResponse.ts +12 -0
- package/src/generated/shopper/models/CheckoutSubmitBody.ts +3 -13
- package/src/generated/shopper/models/CorrelatedCode.ts +19 -0
- package/src/generated/shopper/models/EventLegend.ts +17 -0
- package/src/generated/shopper/models/EventLegendItem.ts +14 -0
- package/src/generated/shopper/models/ExchangeAnswersBody.ts +9 -0
- package/src/generated/shopper/models/ExchangeCancelSeatResponse.ts +12 -0
- package/src/generated/shopper/models/ExchangeShow.ts +17 -0
- package/src/generated/shopper/models/ExchangeShowsResponse.ts +13 -0
- package/src/generated/shopper/models/ExtendTimerDto.ts +11 -0
- package/src/generated/shopper/models/ExtendTimerResponseDto.ts +15 -0
- package/src/generated/shopper/models/FullEventDetails.ts +2 -2
- package/src/generated/shopper/models/GaSelection.ts +29 -0
- package/src/generated/shopper/models/GaTier.ts +32 -0
- package/src/generated/shopper/models/LandingPageResponse.ts +10 -0
- package/src/generated/shopper/models/LandingProduct.ts +16 -0
- package/src/generated/shopper/models/LandingShow.ts +21 -0
- package/src/generated/shopper/models/LandingVenue.ts +15 -0
- package/src/generated/shopper/models/NextStepResponse.ts +12 -0
- package/src/generated/shopper/models/OrderBalance.ts +31 -0
- package/src/generated/shopper/models/OrderPaymentStatus.ts +19 -0
- package/src/generated/shopper/models/PosDefaultInfoResponse.ts +12 -0
- package/src/generated/shopper/models/ProductAddResponse.ts +4 -0
- package/src/generated/shopper/models/SeatInCart.ts +8 -0
- package/src/generated/shopper/models/SetLanguageDto.ts +11 -0
- package/src/generated/shopper/models/ShowExtras.ts +19 -0
- package/src/generated/shopper/models/StreamDetails.ts +30 -0
- package/src/generated/shopper/models/StreamDownloadLink.ts +9 -0
- package/src/generated/shopper/services/AccountService.ts +22 -9
- package/src/generated/shopper/services/CartService.ts +123 -14
- package/src/generated/shopper/services/CheckoutService.ts +69 -29
- package/src/generated/shopper/services/CodeService.ts +58 -15
- package/src/generated/shopper/services/DonationService.ts +38 -5
- package/src/generated/shopper/services/EventService.ts +77 -10
- package/src/generated/shopper/services/GiftCardService.ts +28 -12
- package/src/generated/shopper/services/OrderService.ts +356 -41
- package/src/generated/shopper/services/PaymentService.ts +19 -9
- package/src/generated/shopper/services/ProductService.ts +19 -9
- package/src/generated/shopper/services/SeatService.ts +38 -19
- package/src/generated/shopper/services/SessionService.ts +65 -5
- package/src/generated/shopper/types.ts +29 -2
- package/src/scripts/build-all.ts +127 -26
- package/src/generated/shopper/models/Chart.ts +0 -13
- package/src/generated/shopper/models/SaveNonceBody.ts +0 -15
|
@@ -5,10 +5,15 @@
|
|
|
5
5
|
import type { AssignNamesReturn } from '../models/AssignNamesReturn';
|
|
6
6
|
import type { DonateOrderRequest } from '../models/DonateOrderRequest';
|
|
7
7
|
import type { EmailUpdate } from '../models/EmailUpdate';
|
|
8
|
+
import type { ExchangeAnswersBody } from '../models/ExchangeAnswersBody';
|
|
9
|
+
import type { ExchangeCancelSeatResponse } from '../models/ExchangeCancelSeatResponse';
|
|
8
10
|
import type { ExchangeRequest } from '../models/ExchangeRequest';
|
|
11
|
+
import type { ExchangeShowsResponse } from '../models/ExchangeShowsResponse';
|
|
9
12
|
import type { GuidReturn } from '../models/GuidReturn';
|
|
10
13
|
import type { LinkWithSuccess } from '../models/LinkWithSuccess';
|
|
11
14
|
import type { NameUpdate } from '../models/NameUpdate';
|
|
15
|
+
import type { OrderBalance } from '../models/OrderBalance';
|
|
16
|
+
import type { OrderPaymentStatus } from '../models/OrderPaymentStatus';
|
|
12
17
|
import type { OrderRecalc } from '../models/OrderRecalc';
|
|
13
18
|
import type { PickupReturn } from '../models/PickupReturn';
|
|
14
19
|
import type { RecalcResponse } from '../models/RecalcResponse';
|
|
@@ -17,24 +22,109 @@ import type { RefundRequest } from '../models/RefundRequest';
|
|
|
17
22
|
import type { RefundRequestInfo } from '../models/RefundRequestInfo';
|
|
18
23
|
import type { RegisterStreamRequest } from '../models/RegisterStreamRequest';
|
|
19
24
|
import type { RegisterStreamResponse } from '../models/RegisterStreamResponse';
|
|
25
|
+
import type { SeatInCart } from '../models/SeatInCart';
|
|
26
|
+
import type { StreamDetails } from '../models/StreamDetails';
|
|
27
|
+
import type { StreamDownloadLink } from '../models/StreamDownloadLink';
|
|
20
28
|
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
21
29
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
22
30
|
import { OpenAPI } from '../core/OpenAPI';
|
|
23
|
-
import { request as __request } from '../core/request';
|
|
31
|
+
import { request as __request } from '../core/request';
|
|
32
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig';
|
|
24
33
|
export class OrderService {
|
|
25
34
|
/**
|
|
26
35
|
* Get order receipt by guid
|
|
27
36
|
* Fetches the receipt for an order using its unique guid.
|
|
28
37
|
* @param guid Unique identifier for an order.
|
|
38
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
29
39
|
* @returns Receipt Returns the order receipt.
|
|
30
40
|
* @throws ApiError
|
|
31
41
|
*/
|
|
32
42
|
public static getReceipt(
|
|
33
|
-
guid: string,
|
|
43
|
+
guid: string,
|
|
44
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
34
45
|
): CancelablePromise<Receipt> {
|
|
35
46
|
return __request(OpenAPI, {
|
|
36
47
|
method: 'GET',
|
|
37
|
-
url: '/order/receipt',
|
|
48
|
+
url: '/order/receipt',
|
|
49
|
+
headers: resolveShopperHeaders(context),
|
|
50
|
+
query: {
|
|
51
|
+
'guid': guid,
|
|
52
|
+
},
|
|
53
|
+
errors: {
|
|
54
|
+
400: `Bad Request error with error details.`,
|
|
55
|
+
404: `Not found error with error details.`,
|
|
56
|
+
500: `Internal Server Error, please contact developers.`,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Stamp the session source order
|
|
62
|
+
* Records the given order as the current session's source order (session.src_order_id) for attribution (ORD-1, legacy order-set-src).
|
|
63
|
+
* @param guid Unique identifier for an order.
|
|
64
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
65
|
+
* @returns SuccessResponse Returns success after stamping the source order.
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
public static setOrderSrc(
|
|
69
|
+
guid: string,
|
|
70
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
71
|
+
): CancelablePromise<SuccessResponse> {
|
|
72
|
+
return __request(OpenAPI, {
|
|
73
|
+
method: 'POST',
|
|
74
|
+
url: '/order/set-src',
|
|
75
|
+
headers: resolveShopperHeaders(context),
|
|
76
|
+
query: {
|
|
77
|
+
'guid': guid,
|
|
78
|
+
},
|
|
79
|
+
errors: {
|
|
80
|
+
400: `Bad Request error with error details.`,
|
|
81
|
+
404: `Not found error with error details.`,
|
|
82
|
+
500: `Internal Server Error, please contact developers.`,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get the balance owed on an order
|
|
88
|
+
* 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).
|
|
89
|
+
* @param guid Unique identifier for an order.
|
|
90
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
91
|
+
* @returns OrderBalance Returns the order balance and adjustment-payment gating.
|
|
92
|
+
* @throws ApiError
|
|
93
|
+
*/
|
|
94
|
+
public static getOrderBalance(
|
|
95
|
+
guid: string,
|
|
96
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
97
|
+
): CancelablePromise<OrderBalance> {
|
|
98
|
+
return __request(OpenAPI, {
|
|
99
|
+
method: 'GET',
|
|
100
|
+
url: '/order/balance',
|
|
101
|
+
headers: resolveShopperHeaders(context),
|
|
102
|
+
query: {
|
|
103
|
+
'guid': guid,
|
|
104
|
+
},
|
|
105
|
+
errors: {
|
|
106
|
+
400: `Bad Request error with error details.`,
|
|
107
|
+
404: `Not found error with error details.`,
|
|
108
|
+
500: `Internal Server Error, please contact developers.`,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Poll the payment status of an order
|
|
114
|
+
* 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).
|
|
115
|
+
* @param guid Unique identifier for an order.
|
|
116
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
117
|
+
* @returns OrderPaymentStatus Returns the order payment status.
|
|
118
|
+
* @throws ApiError
|
|
119
|
+
*/
|
|
120
|
+
public static getOrderPaymentStatus(
|
|
121
|
+
guid: string,
|
|
122
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
123
|
+
): CancelablePromise<OrderPaymentStatus> {
|
|
124
|
+
return __request(OpenAPI, {
|
|
125
|
+
method: 'GET',
|
|
126
|
+
url: '/order/payment-status',
|
|
127
|
+
headers: resolveShopperHeaders(context),
|
|
38
128
|
query: {
|
|
39
129
|
'guid': guid,
|
|
40
130
|
},
|
|
@@ -49,15 +139,18 @@ export class OrderService {
|
|
|
49
139
|
* Get Gwallet link by guid
|
|
50
140
|
* Fetches the Gwallet link for an order using its unique guid.
|
|
51
141
|
* @param guid Unique identifier for an order.
|
|
142
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
52
143
|
* @returns LinkWithSuccess Returns the Gwallet link.
|
|
53
144
|
* @throws ApiError
|
|
54
145
|
*/
|
|
55
146
|
public static getGwalletLink(
|
|
56
|
-
guid: string,
|
|
147
|
+
guid: string,
|
|
148
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
57
149
|
): CancelablePromise<LinkWithSuccess> {
|
|
58
150
|
return __request(OpenAPI, {
|
|
59
151
|
method: 'GET',
|
|
60
|
-
url: '/order/gwallet',
|
|
152
|
+
url: '/order/gwallet',
|
|
153
|
+
headers: resolveShopperHeaders(context),
|
|
61
154
|
query: {
|
|
62
155
|
'guid': guid,
|
|
63
156
|
},
|
|
@@ -72,15 +165,18 @@ export class OrderService {
|
|
|
72
165
|
* Get testing guid
|
|
73
166
|
* Fetches a testing guid for development purposes.
|
|
74
167
|
* @param guid Unique identifier for an order.
|
|
168
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
75
169
|
* @returns GuidReturn Returns a testing guid.
|
|
76
170
|
* @throws ApiError
|
|
77
171
|
*/
|
|
78
172
|
public static getTestingGuid(
|
|
79
|
-
guid: string,
|
|
173
|
+
guid: string,
|
|
174
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
80
175
|
): CancelablePromise<GuidReturn> {
|
|
81
176
|
return __request(OpenAPI, {
|
|
82
177
|
method: 'GET',
|
|
83
|
-
url: '/order/testing',
|
|
178
|
+
url: '/order/testing',
|
|
179
|
+
headers: resolveShopperHeaders(context),
|
|
84
180
|
query: {
|
|
85
181
|
'guid': guid,
|
|
86
182
|
},
|
|
@@ -95,15 +191,18 @@ export class OrderService {
|
|
|
95
191
|
* Get assign names by guid
|
|
96
192
|
* Fetches the assign names information for an order using its unique guid.
|
|
97
193
|
* @param guid Unique identifier for an order.
|
|
194
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
98
195
|
* @returns AssignNamesReturn Returns the assign names information.
|
|
99
196
|
* @throws ApiError
|
|
100
197
|
*/
|
|
101
198
|
public static getAssignNames(
|
|
102
|
-
guid: string,
|
|
199
|
+
guid: string,
|
|
200
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
103
201
|
): CancelablePromise<AssignNamesReturn> {
|
|
104
202
|
return __request(OpenAPI, {
|
|
105
203
|
method: 'GET',
|
|
106
|
-
url: '/order/assign-names',
|
|
204
|
+
url: '/order/assign-names',
|
|
205
|
+
headers: resolveShopperHeaders(context),
|
|
107
206
|
query: {
|
|
108
207
|
'guid': guid,
|
|
109
208
|
},
|
|
@@ -118,17 +217,20 @@ export class OrderService {
|
|
|
118
217
|
* Post assign names
|
|
119
218
|
* Assigns names to an order using its unique guid and the provided names.
|
|
120
219
|
* @param guid Unique identifier for an order.
|
|
220
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
121
221
|
* @param requestBody Names to be assigned to the order.
|
|
122
222
|
* @returns SuccessResponse Returns success status after assigning names.
|
|
123
223
|
* @throws ApiError
|
|
124
224
|
*/
|
|
125
225
|
public static postAssignNames(
|
|
126
|
-
guid: string,
|
|
127
|
-
requestBody: NameUpdate,
|
|
226
|
+
guid: string,
|
|
227
|
+
requestBody: NameUpdate,
|
|
228
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
128
229
|
): CancelablePromise<SuccessResponse> {
|
|
129
230
|
return __request(OpenAPI, {
|
|
130
231
|
method: 'POST',
|
|
131
|
-
url: '/order/assign-names',
|
|
232
|
+
url: '/order/assign-names',
|
|
233
|
+
headers: resolveShopperHeaders(context),
|
|
132
234
|
query: {
|
|
133
235
|
'guid': guid,
|
|
134
236
|
},
|
|
@@ -145,17 +247,20 @@ export class OrderService {
|
|
|
145
247
|
* Post email tickets
|
|
146
248
|
* Sends email tickets for an order using its unique guid and the provided email update.
|
|
147
249
|
* @param guid Unique identifier for an order.
|
|
250
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
148
251
|
* @param requestBody Email update containing the email address to send tickets.
|
|
149
252
|
* @returns SuccessResponse Returns success status after sending email tickets.
|
|
150
253
|
* @throws ApiError
|
|
151
254
|
*/
|
|
152
255
|
public static postEmailTickets(
|
|
153
|
-
guid: string,
|
|
154
|
-
requestBody: EmailUpdate,
|
|
256
|
+
guid: string,
|
|
257
|
+
requestBody: EmailUpdate,
|
|
258
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
155
259
|
): CancelablePromise<SuccessResponse> {
|
|
156
260
|
return __request(OpenAPI, {
|
|
157
261
|
method: 'POST',
|
|
158
|
-
url: '/order/email-tickets',
|
|
262
|
+
url: '/order/email-tickets',
|
|
263
|
+
headers: resolveShopperHeaders(context),
|
|
159
264
|
query: {
|
|
160
265
|
'guid': guid,
|
|
161
266
|
},
|
|
@@ -172,15 +277,18 @@ export class OrderService {
|
|
|
172
277
|
* Get ticket block by guid
|
|
173
278
|
* Fetches the ticket block for an order using its unique guid.
|
|
174
279
|
* @param guid Unique identifier for an order.
|
|
280
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
175
281
|
* @returns PickupReturn Returns the ticket block for the order.
|
|
176
282
|
* @throws ApiError
|
|
177
283
|
*/
|
|
178
284
|
public static getTicketBlock(
|
|
179
|
-
guid: string,
|
|
285
|
+
guid: string,
|
|
286
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
180
287
|
): CancelablePromise<PickupReturn> {
|
|
181
288
|
return __request(OpenAPI, {
|
|
182
289
|
method: 'GET',
|
|
183
|
-
url: '/order/pickup',
|
|
290
|
+
url: '/order/pickup',
|
|
291
|
+
headers: resolveShopperHeaders(context),
|
|
184
292
|
query: {
|
|
185
293
|
'guid': guid,
|
|
186
294
|
},
|
|
@@ -195,15 +303,18 @@ export class OrderService {
|
|
|
195
303
|
* Post ticket block by guid
|
|
196
304
|
* Sends the ticket block for an order using its unique guid.
|
|
197
305
|
* @param guid Unique identifier for an order.
|
|
306
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
198
307
|
* @returns SuccessResponse Returns the ticket block for the order.
|
|
199
308
|
* @throws ApiError
|
|
200
309
|
*/
|
|
201
310
|
public static postPickup(
|
|
202
|
-
guid: string,
|
|
311
|
+
guid: string,
|
|
312
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
203
313
|
): CancelablePromise<SuccessResponse> {
|
|
204
314
|
return __request(OpenAPI, {
|
|
205
315
|
method: 'POST',
|
|
206
|
-
url: '/order/pickup',
|
|
316
|
+
url: '/order/pickup',
|
|
317
|
+
headers: resolveShopperHeaders(context),
|
|
207
318
|
query: {
|
|
208
319
|
'guid': guid,
|
|
209
320
|
},
|
|
@@ -218,15 +329,18 @@ export class OrderService {
|
|
|
218
329
|
* Send order receipt via email
|
|
219
330
|
* Sends the order receipt to the shopper's email address for the specified order guid.
|
|
220
331
|
* @param guid Unique identifier for an order.
|
|
332
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
221
333
|
* @returns SuccessResponse Returns success status after emailing the receipt.
|
|
222
334
|
* @throws ApiError
|
|
223
335
|
*/
|
|
224
336
|
public static postEmailReceipt(
|
|
225
|
-
guid: string,
|
|
337
|
+
guid: string,
|
|
338
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
226
339
|
): CancelablePromise<SuccessResponse> {
|
|
227
340
|
return __request(OpenAPI, {
|
|
228
341
|
method: 'POST',
|
|
229
|
-
url: '/order/email-receipt',
|
|
342
|
+
url: '/order/email-receipt',
|
|
343
|
+
headers: resolveShopperHeaders(context),
|
|
230
344
|
query: {
|
|
231
345
|
'guid': guid,
|
|
232
346
|
},
|
|
@@ -241,15 +355,18 @@ export class OrderService {
|
|
|
241
355
|
* Get refund request information
|
|
242
356
|
* Fetches the refund request information for an order using its unique guid.
|
|
243
357
|
* @param guid Unique identifier for an order.
|
|
358
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
244
359
|
* @returns RefundRequestInfo Returns the refund request information for the order.
|
|
245
360
|
* @throws ApiError
|
|
246
361
|
*/
|
|
247
362
|
public static getRefundRequest(
|
|
248
|
-
guid: string,
|
|
363
|
+
guid: string,
|
|
364
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
249
365
|
): CancelablePromise<RefundRequestInfo> {
|
|
250
366
|
return __request(OpenAPI, {
|
|
251
367
|
method: 'GET',
|
|
252
|
-
url: '/order/refund-request',
|
|
368
|
+
url: '/order/refund-request',
|
|
369
|
+
headers: resolveShopperHeaders(context),
|
|
253
370
|
query: {
|
|
254
371
|
'guid': guid,
|
|
255
372
|
},
|
|
@@ -264,17 +381,20 @@ export class OrderService {
|
|
|
264
381
|
* Submit a refund request
|
|
265
382
|
* Submits a refund request for an order using its unique guid and the provided refund details.
|
|
266
383
|
* @param guid Unique identifier for an order.
|
|
384
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
267
385
|
* @param requestBody Refund request details.
|
|
268
386
|
* @returns SuccessResponse Returns success status after submitting the refund request.
|
|
269
387
|
* @throws ApiError
|
|
270
388
|
*/
|
|
271
389
|
public static postRefundRequest(
|
|
272
|
-
guid: string,
|
|
273
|
-
requestBody: RefundRequest,
|
|
390
|
+
guid: string,
|
|
391
|
+
requestBody: RefundRequest,
|
|
392
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
274
393
|
): CancelablePromise<SuccessResponse> {
|
|
275
394
|
return __request(OpenAPI, {
|
|
276
395
|
method: 'POST',
|
|
277
|
-
url: '/order/refund-request',
|
|
396
|
+
url: '/order/refund-request',
|
|
397
|
+
headers: resolveShopperHeaders(context),
|
|
278
398
|
query: {
|
|
279
399
|
'guid': guid,
|
|
280
400
|
},
|
|
@@ -291,17 +411,20 @@ export class OrderService {
|
|
|
291
411
|
* Recalculate order totals
|
|
292
412
|
* Recalculates the totals for an order using the provided recalculation data.
|
|
293
413
|
* @param guid Unique identifier for an order.
|
|
414
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
294
415
|
* @param requestBody Order recalculation data.
|
|
295
416
|
* @returns RecalcResponse Returns the recalculated order totals and success status.
|
|
296
417
|
* @throws ApiError
|
|
297
418
|
*/
|
|
298
419
|
public static postRecalcOrder(
|
|
299
|
-
guid: string,
|
|
300
|
-
requestBody: OrderRecalc,
|
|
420
|
+
guid: string,
|
|
421
|
+
requestBody: OrderRecalc,
|
|
422
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
301
423
|
): CancelablePromise<RecalcResponse> {
|
|
302
424
|
return __request(OpenAPI, {
|
|
303
425
|
method: 'POST',
|
|
304
|
-
url: '/order/recalc',
|
|
426
|
+
url: '/order/recalc',
|
|
427
|
+
headers: resolveShopperHeaders(context),
|
|
305
428
|
query: {
|
|
306
429
|
'guid': guid,
|
|
307
430
|
},
|
|
@@ -317,16 +440,19 @@ export class OrderService {
|
|
|
317
440
|
/**
|
|
318
441
|
* Donate order in lieu of refund
|
|
319
442
|
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
443
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
320
444
|
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
321
445
|
* @returns SuccessResponse Returns success status after donating the order.
|
|
322
446
|
* @throws ApiError
|
|
323
447
|
*/
|
|
324
|
-
public static postDonateOrder(
|
|
325
|
-
requestBody: DonateOrderRequest,
|
|
448
|
+
public static postDonateOrder(
|
|
449
|
+
requestBody: DonateOrderRequest,
|
|
450
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
326
451
|
): CancelablePromise<SuccessResponse> {
|
|
327
452
|
return __request(OpenAPI, {
|
|
328
453
|
method: 'POST',
|
|
329
|
-
url: '/order/donate-order',
|
|
454
|
+
url: '/order/donate-order',
|
|
455
|
+
headers: resolveShopperHeaders(context),
|
|
330
456
|
body: requestBody,
|
|
331
457
|
mediaType: 'application/json',
|
|
332
458
|
errors: {
|
|
@@ -336,19 +462,80 @@ export class OrderService {
|
|
|
336
462
|
},
|
|
337
463
|
});
|
|
338
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* Get virtual-stream details/embed for an order
|
|
467
|
+
* Returns the stream provider/code/embed/links and whether it's available right now (date-gated by the session effective date). The stream must belong to the order (VS-1).
|
|
468
|
+
* @param orderGuid
|
|
469
|
+
* @param streamGuid
|
|
470
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
471
|
+
* @returns StreamDetails Returns the stream details.
|
|
472
|
+
* @throws ApiError
|
|
473
|
+
*/
|
|
474
|
+
public static getStreamDetails(
|
|
475
|
+
orderGuid: string,
|
|
476
|
+
streamGuid: string,
|
|
477
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
478
|
+
): CancelablePromise<StreamDetails> {
|
|
479
|
+
return __request(OpenAPI, {
|
|
480
|
+
method: 'GET',
|
|
481
|
+
url: '/order/stream',
|
|
482
|
+
headers: resolveShopperHeaders(context),
|
|
483
|
+
query: {
|
|
484
|
+
'orderGuid': orderGuid,
|
|
485
|
+
'streamGuid': streamGuid,
|
|
486
|
+
},
|
|
487
|
+
errors: {
|
|
488
|
+
400: `Bad Request error with error details.`,
|
|
489
|
+
404: `Not found error with error details.`,
|
|
490
|
+
500: `Internal Server Error, please contact developers.`,
|
|
491
|
+
},
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Get the digital-download link for a stream
|
|
496
|
+
* Returns the best-quality digital-download cloud URL for a stream on the order (VS-1, legacy digital-download-get-link).
|
|
497
|
+
* @param orderGuid
|
|
498
|
+
* @param streamGuid
|
|
499
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
500
|
+
* @returns StreamDownloadLink Returns the download link.
|
|
501
|
+
* @throws ApiError
|
|
502
|
+
*/
|
|
503
|
+
public static getStreamDownloadLink(
|
|
504
|
+
orderGuid: string,
|
|
505
|
+
streamGuid: string,
|
|
506
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
507
|
+
): CancelablePromise<StreamDownloadLink> {
|
|
508
|
+
return __request(OpenAPI, {
|
|
509
|
+
method: 'GET',
|
|
510
|
+
url: '/order/stream/download',
|
|
511
|
+
headers: resolveShopperHeaders(context),
|
|
512
|
+
query: {
|
|
513
|
+
'orderGuid': orderGuid,
|
|
514
|
+
'streamGuid': streamGuid,
|
|
515
|
+
},
|
|
516
|
+
errors: {
|
|
517
|
+
400: `Bad Request error with error details.`,
|
|
518
|
+
404: `Not found error with error details.`,
|
|
519
|
+
500: `Internal Server Error, please contact developers.`,
|
|
520
|
+
},
|
|
521
|
+
});
|
|
522
|
+
}
|
|
339
523
|
/**
|
|
340
524
|
* Register a stream for a shopper
|
|
341
525
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
526
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
342
527
|
* @param requestBody Stream registration details.
|
|
343
528
|
* @returns RegisterStreamResponse Returns the stream registration response.
|
|
344
529
|
* @throws ApiError
|
|
345
530
|
*/
|
|
346
|
-
public static postRegisterStream(
|
|
347
|
-
requestBody: RegisterStreamRequest,
|
|
531
|
+
public static postRegisterStream(
|
|
532
|
+
requestBody: RegisterStreamRequest,
|
|
533
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
348
534
|
): CancelablePromise<RegisterStreamResponse> {
|
|
349
535
|
return __request(OpenAPI, {
|
|
350
536
|
method: 'POST',
|
|
351
|
-
url: '/order/stream-register',
|
|
537
|
+
url: '/order/stream-register',
|
|
538
|
+
headers: resolveShopperHeaders(context),
|
|
352
539
|
body: requestBody,
|
|
353
540
|
mediaType: 'application/json',
|
|
354
541
|
errors: {
|
|
@@ -361,16 +548,19 @@ export class OrderService {
|
|
|
361
548
|
/**
|
|
362
549
|
* Deregister a stream for a shopper
|
|
363
550
|
* Removes the stream registration for the specified shopper and account using the provided stream registration details.
|
|
551
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
364
552
|
* @param requestBody Stream registration details to be deregistered.
|
|
365
553
|
* @returns SuccessResponse Returns success status after deregistering the stream.
|
|
366
554
|
* @throws ApiError
|
|
367
555
|
*/
|
|
368
|
-
public static deleteRegisteredStream(
|
|
369
|
-
requestBody: RegisterStreamRequest,
|
|
556
|
+
public static deleteRegisteredStream(
|
|
557
|
+
requestBody: RegisterStreamRequest,
|
|
558
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
370
559
|
): CancelablePromise<SuccessResponse> {
|
|
371
560
|
return __request(OpenAPI, {
|
|
372
561
|
method: 'DELETE',
|
|
373
|
-
url: '/order/stream-register',
|
|
562
|
+
url: '/order/stream-register',
|
|
563
|
+
headers: resolveShopperHeaders(context),
|
|
374
564
|
body: requestBody,
|
|
375
565
|
mediaType: 'application/json',
|
|
376
566
|
errors: {
|
|
@@ -380,19 +570,144 @@ export class OrderService {
|
|
|
380
570
|
},
|
|
381
571
|
});
|
|
382
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* List shows available to exchange into
|
|
575
|
+
* 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.
|
|
576
|
+
* @param guid Unique identifier for an order.
|
|
577
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
578
|
+
* @returns ExchangeShowsResponse Returns exchange-eligible shows and held-seat count.
|
|
579
|
+
* @throws ApiError
|
|
580
|
+
*/
|
|
581
|
+
public static getExchangeShows(
|
|
582
|
+
guid: string,
|
|
583
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
584
|
+
): CancelablePromise<ExchangeShowsResponse> {
|
|
585
|
+
return __request(OpenAPI, {
|
|
586
|
+
method: 'GET',
|
|
587
|
+
url: '/order/exchange/shows',
|
|
588
|
+
headers: resolveShopperHeaders(context),
|
|
589
|
+
query: {
|
|
590
|
+
'guid': guid,
|
|
591
|
+
},
|
|
592
|
+
errors: {
|
|
593
|
+
400: `Bad Request error with error details.`,
|
|
594
|
+
404: `Not found error with error details.`,
|
|
595
|
+
500: `Internal Server Error, please contact developers.`,
|
|
596
|
+
},
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Get the seats currently held for the exchange
|
|
601
|
+
* Returns the seats held in the exchange cart (EXC-1).
|
|
602
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
603
|
+
* @returns SeatInCart Returns the held exchange seats.
|
|
604
|
+
* @throws ApiError
|
|
605
|
+
*/
|
|
606
|
+
public static getExchangeSeats(
|
|
607
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
608
|
+
): CancelablePromise<Array<SeatInCart>> {
|
|
609
|
+
return __request(OpenAPI, {
|
|
610
|
+
method: 'GET',
|
|
611
|
+
url: '/order/exchange/seats',
|
|
612
|
+
headers: resolveShopperHeaders(context),
|
|
613
|
+
errors: {
|
|
614
|
+
400: `Bad Request error with error details.`,
|
|
615
|
+
404: `Not found error with error details.`,
|
|
616
|
+
500: `Internal Server Error, please contact developers.`,
|
|
617
|
+
},
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Save per-seat answers for the new exchange seats
|
|
622
|
+
* Persists checkout answers for the new seats being exchanged into (EXC-1, legacy exchange-questions-save).
|
|
623
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
624
|
+
* @param requestBody
|
|
625
|
+
* @returns SuccessResponse Returns success after saving answers.
|
|
626
|
+
* @throws ApiError
|
|
627
|
+
*/
|
|
628
|
+
public static saveExchangeAnswers(
|
|
629
|
+
requestBody: ExchangeAnswersBody,
|
|
630
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
631
|
+
): CancelablePromise<SuccessResponse> {
|
|
632
|
+
return __request(OpenAPI, {
|
|
633
|
+
method: 'POST',
|
|
634
|
+
url: '/order/exchange/questions',
|
|
635
|
+
headers: resolveShopperHeaders(context),
|
|
636
|
+
body: requestBody,
|
|
637
|
+
mediaType: 'application/json',
|
|
638
|
+
errors: {
|
|
639
|
+
400: `Bad Request error with error details.`,
|
|
640
|
+
404: `Not found error with error details.`,
|
|
641
|
+
500: `Internal Server Error, please contact developers.`,
|
|
642
|
+
},
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Release one held seat during an exchange
|
|
647
|
+
* Releases a single held seat from the exchange cart; clears the cart timer when no held seats remain (EXC-1, legacy exchange-cancel).
|
|
648
|
+
* @param showId
|
|
649
|
+
* @param seatId
|
|
650
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
651
|
+
* @returns ExchangeCancelSeatResponse Returns success and whether the cart timer still runs.
|
|
652
|
+
* @throws ApiError
|
|
653
|
+
*/
|
|
654
|
+
public static cancelExchangeSeat(
|
|
655
|
+
showId: number,
|
|
656
|
+
seatId: number,
|
|
657
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
658
|
+
): CancelablePromise<ExchangeCancelSeatResponse> {
|
|
659
|
+
return __request(OpenAPI, {
|
|
660
|
+
method: 'DELETE',
|
|
661
|
+
url: '/order/exchange/seat',
|
|
662
|
+
headers: resolveShopperHeaders(context),
|
|
663
|
+
query: {
|
|
664
|
+
'showId': showId,
|
|
665
|
+
'seatId': seatId,
|
|
666
|
+
},
|
|
667
|
+
errors: {
|
|
668
|
+
400: `Bad Request error with error details.`,
|
|
669
|
+
404: `Not found error with error details.`,
|
|
670
|
+
500: `Internal Server Error, please contact developers.`,
|
|
671
|
+
},
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Cancel an in-progress exchange
|
|
676
|
+
* Aborts an in-progress exchange: releases all held seats, clears the cart timer, and clears the exchange lock (EXC-1, legacy exchange-cancel-all).
|
|
677
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
678
|
+
* @returns SuccessResponse Returns success after cancelling the exchange.
|
|
679
|
+
* @throws ApiError
|
|
680
|
+
*/
|
|
681
|
+
public static cancelExchange(
|
|
682
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
683
|
+
): CancelablePromise<SuccessResponse> {
|
|
684
|
+
return __request(OpenAPI, {
|
|
685
|
+
method: 'POST',
|
|
686
|
+
url: '/order/exchange/cancel',
|
|
687
|
+
headers: resolveShopperHeaders(context),
|
|
688
|
+
errors: {
|
|
689
|
+
400: `Bad Request error with error details.`,
|
|
690
|
+
404: `Not found error with error details.`,
|
|
691
|
+
500: `Internal Server Error, please contact developers.`,
|
|
692
|
+
},
|
|
693
|
+
});
|
|
694
|
+
}
|
|
383
695
|
/**
|
|
384
696
|
* Execute a seat exchange for an order
|
|
385
697
|
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
698
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
386
699
|
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
387
700
|
* @returns SuccessResponse Returns success after completing the exchange.
|
|
388
701
|
* @throws ApiError
|
|
389
702
|
*/
|
|
390
|
-
public static postExchange(
|
|
391
|
-
requestBody: ExchangeRequest,
|
|
703
|
+
public static postExchange(
|
|
704
|
+
requestBody: ExchangeRequest,
|
|
705
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
392
706
|
): CancelablePromise<SuccessResponse> {
|
|
393
707
|
return __request(OpenAPI, {
|
|
394
708
|
method: 'POST',
|
|
395
|
-
url: '/order/exchange',
|
|
709
|
+
url: '/order/exchange',
|
|
710
|
+
headers: resolveShopperHeaders(context),
|
|
396
711
|
body: requestBody,
|
|
397
712
|
mediaType: 'application/json',
|
|
398
713
|
errors: {
|