@drttix/drt-sdk 1.3.5 → 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 -1
- package/dist/cjs/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/AnswerInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/cjs/src/generated/shopper/models/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 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.js +2 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.js +2 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/cjs/src/generated/shopper/services/CartService.js +98 -7
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/cjs/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/cjs/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/cjs/src/generated/shopper/services/EventService.js +59 -4
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/cjs/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/cjs/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/cjs/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/cjs/src/generated/shopper/types.d.ts +29 -1
- 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 -1
- 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 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.js +1 -0
- package/dist/esm/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/esm/src/generated/shopper/models/GaTier.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.js +1 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/esm/src/generated/shopper/services/CartService.js +98 -7
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/esm/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/esm/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/esm/src/generated/shopper/services/EventService.js +59 -4
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/esm/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/esm/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/esm/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/esm/src/generated/shopper/types.d.ts +29 -1
- 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 -1
- package/src/generated/shopper/models/AnswerInput.ts +11 -0
- package/src/generated/shopper/models/CartAmounts.ts +43 -0
- package/src/generated/shopper/models/CartClearResult.ts +19 -0
- package/src/generated/shopper/models/CartCountsLite.ts +19 -0
- package/src/generated/shopper/models/CartTotals.ts +27 -0
- package/src/generated/shopper/models/CheckoutStep.ts +15 -0
- package/src/generated/shopper/models/CheckoutStepsResponse.ts +12 -0
- package/src/generated/shopper/models/CheckoutSubmitBody.ts +3 -13
- package/src/generated/shopper/models/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 -0
- package/src/generated/shopper/models/GaSelection.ts +29 -0
- package/src/generated/shopper/models/GaTier.ts +32 -0
- package/src/generated/shopper/models/LandingPageResponse.ts +10 -0
- package/src/generated/shopper/models/LandingProduct.ts +16 -0
- package/src/generated/shopper/models/LandingShow.ts +21 -0
- package/src/generated/shopper/models/LandingVenue.ts +15 -0
- package/src/generated/shopper/models/NextStepResponse.ts +12 -0
- package/src/generated/shopper/models/OrderBalance.ts +31 -0
- package/src/generated/shopper/models/OrderPaymentStatus.ts +19 -0
- package/src/generated/shopper/models/PosDefaultInfoResponse.ts +12 -0
- package/src/generated/shopper/models/ProductAddResponse.ts +4 -0
- package/src/generated/shopper/models/SeatInCart.ts +8 -0
- package/src/generated/shopper/models/SetLanguageDto.ts +11 -0
- package/src/generated/shopper/models/ShowExtras.ts +19 -0
- package/src/generated/shopper/models/StreamDetails.ts +30 -0
- package/src/generated/shopper/models/StreamDownloadLink.ts +9 -0
- package/src/generated/shopper/services/AccountService.ts +22 -9
- package/src/generated/shopper/services/CartService.ts +123 -14
- package/src/generated/shopper/services/CheckoutService.ts +69 -29
- package/src/generated/shopper/services/CodeService.ts +58 -15
- package/src/generated/shopper/services/DonationService.ts +38 -5
- package/src/generated/shopper/services/EventService.ts +77 -10
- package/src/generated/shopper/services/GiftCardService.ts +28 -12
- package/src/generated/shopper/services/OrderService.ts +356 -41
- package/src/generated/shopper/services/PaymentService.ts +19 -9
- package/src/generated/shopper/services/ProductService.ts +19 -9
- package/src/generated/shopper/services/SeatService.ts +38 -19
- package/src/generated/shopper/services/SessionService.ts +65 -5
- package/src/generated/shopper/types.ts +29 -1
- package/src/scripts/build-all.ts +127 -26
- package/src/generated/shopper/models/SaveNonceBody.ts +0 -15
|
@@ -3,18 +3,90 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OrderService = 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");
|
|
6
7
|
class OrderService {
|
|
7
8
|
/**
|
|
8
9
|
* Get order receipt by guid
|
|
9
10
|
* Fetches the receipt for an order using its unique guid.
|
|
10
11
|
* @param guid Unique identifier for an order.
|
|
12
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
13
|
* @returns Receipt Returns the order receipt.
|
|
12
14
|
* @throws ApiError
|
|
13
15
|
*/
|
|
14
|
-
static getReceipt(guid) {
|
|
16
|
+
static getReceipt(guid, context) {
|
|
15
17
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
18
|
method: 'GET',
|
|
17
19
|
url: '/order/receipt',
|
|
20
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
21
|
+
query: {
|
|
22
|
+
'guid': guid,
|
|
23
|
+
},
|
|
24
|
+
errors: {
|
|
25
|
+
400: `Bad Request error with error details.`,
|
|
26
|
+
404: `Not found error with error details.`,
|
|
27
|
+
500: `Internal Server Error, please contact developers.`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Stamp the session source order
|
|
33
|
+
* Records the given order as the current session's source order (session.src_order_id) for attribution (ORD-1, legacy order-set-src).
|
|
34
|
+
* @param guid Unique identifier for an order.
|
|
35
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
|
+
* @returns SuccessResponse Returns success after stamping the source order.
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static setOrderSrc(guid, context) {
|
|
40
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
url: '/order/set-src',
|
|
43
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
44
|
+
query: {
|
|
45
|
+
'guid': guid,
|
|
46
|
+
},
|
|
47
|
+
errors: {
|
|
48
|
+
400: `Bad Request error with error details.`,
|
|
49
|
+
404: `Not found error with error details.`,
|
|
50
|
+
500: `Internal Server Error, please contact developers.`,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get the balance owed on an order
|
|
56
|
+
* 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).
|
|
57
|
+
* @param guid Unique identifier for an order.
|
|
58
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
59
|
+
* @returns OrderBalance Returns the order balance and adjustment-payment gating.
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
static getOrderBalance(guid, context) {
|
|
63
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
64
|
+
method: 'GET',
|
|
65
|
+
url: '/order/balance',
|
|
66
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
67
|
+
query: {
|
|
68
|
+
'guid': guid,
|
|
69
|
+
},
|
|
70
|
+
errors: {
|
|
71
|
+
400: `Bad Request error with error details.`,
|
|
72
|
+
404: `Not found error with error details.`,
|
|
73
|
+
500: `Internal Server Error, please contact developers.`,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Poll the payment status of an order
|
|
79
|
+
* 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).
|
|
80
|
+
* @param guid Unique identifier for an order.
|
|
81
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
82
|
+
* @returns OrderPaymentStatus Returns the order payment status.
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
static getOrderPaymentStatus(guid, context) {
|
|
86
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
87
|
+
method: 'GET',
|
|
88
|
+
url: '/order/payment-status',
|
|
89
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
18
90
|
query: {
|
|
19
91
|
'guid': guid,
|
|
20
92
|
},
|
|
@@ -29,13 +101,15 @@ class OrderService {
|
|
|
29
101
|
* Get Gwallet link by guid
|
|
30
102
|
* Fetches the Gwallet link for an order using its unique guid.
|
|
31
103
|
* @param guid Unique identifier for an order.
|
|
104
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
32
105
|
* @returns LinkWithSuccess Returns the Gwallet link.
|
|
33
106
|
* @throws ApiError
|
|
34
107
|
*/
|
|
35
|
-
static getGwalletLink(guid) {
|
|
108
|
+
static getGwalletLink(guid, context) {
|
|
36
109
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
110
|
method: 'GET',
|
|
38
111
|
url: '/order/gwallet',
|
|
112
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
39
113
|
query: {
|
|
40
114
|
'guid': guid,
|
|
41
115
|
},
|
|
@@ -50,13 +124,15 @@ class OrderService {
|
|
|
50
124
|
* Get testing guid
|
|
51
125
|
* Fetches a testing guid for development purposes.
|
|
52
126
|
* @param guid Unique identifier for an order.
|
|
127
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
53
128
|
* @returns GuidReturn Returns a testing guid.
|
|
54
129
|
* @throws ApiError
|
|
55
130
|
*/
|
|
56
|
-
static getTestingGuid(guid) {
|
|
131
|
+
static getTestingGuid(guid, context) {
|
|
57
132
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
133
|
method: 'GET',
|
|
59
134
|
url: '/order/testing',
|
|
135
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
60
136
|
query: {
|
|
61
137
|
'guid': guid,
|
|
62
138
|
},
|
|
@@ -71,13 +147,15 @@ class OrderService {
|
|
|
71
147
|
* Get assign names by guid
|
|
72
148
|
* Fetches the assign names information for an order using its unique guid.
|
|
73
149
|
* @param guid Unique identifier for an order.
|
|
150
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
74
151
|
* @returns AssignNamesReturn Returns the assign names information.
|
|
75
152
|
* @throws ApiError
|
|
76
153
|
*/
|
|
77
|
-
static getAssignNames(guid) {
|
|
154
|
+
static getAssignNames(guid, context) {
|
|
78
155
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
79
156
|
method: 'GET',
|
|
80
157
|
url: '/order/assign-names',
|
|
158
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
81
159
|
query: {
|
|
82
160
|
'guid': guid,
|
|
83
161
|
},
|
|
@@ -92,14 +170,16 @@ class OrderService {
|
|
|
92
170
|
* Post assign names
|
|
93
171
|
* Assigns names to an order using its unique guid and the provided names.
|
|
94
172
|
* @param guid Unique identifier for an order.
|
|
173
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
95
174
|
* @param requestBody Names to be assigned to the order.
|
|
96
175
|
* @returns SuccessResponse Returns success status after assigning names.
|
|
97
176
|
* @throws ApiError
|
|
98
177
|
*/
|
|
99
|
-
static postAssignNames(guid, requestBody) {
|
|
178
|
+
static postAssignNames(guid, requestBody, context) {
|
|
100
179
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
101
180
|
method: 'POST',
|
|
102
181
|
url: '/order/assign-names',
|
|
182
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
103
183
|
query: {
|
|
104
184
|
'guid': guid,
|
|
105
185
|
},
|
|
@@ -116,14 +196,16 @@ class OrderService {
|
|
|
116
196
|
* Post email tickets
|
|
117
197
|
* Sends email tickets for an order using its unique guid and the provided email update.
|
|
118
198
|
* @param guid Unique identifier for an order.
|
|
199
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
119
200
|
* @param requestBody Email update containing the email address to send tickets.
|
|
120
201
|
* @returns SuccessResponse Returns success status after sending email tickets.
|
|
121
202
|
* @throws ApiError
|
|
122
203
|
*/
|
|
123
|
-
static postEmailTickets(guid, requestBody) {
|
|
204
|
+
static postEmailTickets(guid, requestBody, context) {
|
|
124
205
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
125
206
|
method: 'POST',
|
|
126
207
|
url: '/order/email-tickets',
|
|
208
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
127
209
|
query: {
|
|
128
210
|
'guid': guid,
|
|
129
211
|
},
|
|
@@ -140,13 +222,15 @@ class OrderService {
|
|
|
140
222
|
* Get ticket block by guid
|
|
141
223
|
* Fetches the ticket block for an order using its unique guid.
|
|
142
224
|
* @param guid Unique identifier for an order.
|
|
225
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
143
226
|
* @returns PickupReturn Returns the ticket block for the order.
|
|
144
227
|
* @throws ApiError
|
|
145
228
|
*/
|
|
146
|
-
static getTicketBlock(guid) {
|
|
229
|
+
static getTicketBlock(guid, context) {
|
|
147
230
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
148
231
|
method: 'GET',
|
|
149
232
|
url: '/order/pickup',
|
|
233
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
150
234
|
query: {
|
|
151
235
|
'guid': guid,
|
|
152
236
|
},
|
|
@@ -161,13 +245,15 @@ class OrderService {
|
|
|
161
245
|
* Post ticket block by guid
|
|
162
246
|
* Sends the ticket block for an order using its unique guid.
|
|
163
247
|
* @param guid Unique identifier for an order.
|
|
248
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
164
249
|
* @returns SuccessResponse Returns the ticket block for the order.
|
|
165
250
|
* @throws ApiError
|
|
166
251
|
*/
|
|
167
|
-
static postPickup(guid) {
|
|
252
|
+
static postPickup(guid, context) {
|
|
168
253
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
169
254
|
method: 'POST',
|
|
170
255
|
url: '/order/pickup',
|
|
256
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
171
257
|
query: {
|
|
172
258
|
'guid': guid,
|
|
173
259
|
},
|
|
@@ -182,13 +268,15 @@ class OrderService {
|
|
|
182
268
|
* Send order receipt via email
|
|
183
269
|
* Sends the order receipt to the shopper's email address for the specified order guid.
|
|
184
270
|
* @param guid Unique identifier for an order.
|
|
271
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
185
272
|
* @returns SuccessResponse Returns success status after emailing the receipt.
|
|
186
273
|
* @throws ApiError
|
|
187
274
|
*/
|
|
188
|
-
static postEmailReceipt(guid) {
|
|
275
|
+
static postEmailReceipt(guid, context) {
|
|
189
276
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
190
277
|
method: 'POST',
|
|
191
278
|
url: '/order/email-receipt',
|
|
279
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
192
280
|
query: {
|
|
193
281
|
'guid': guid,
|
|
194
282
|
},
|
|
@@ -203,13 +291,15 @@ class OrderService {
|
|
|
203
291
|
* Get refund request information
|
|
204
292
|
* Fetches the refund request information for an order using its unique guid.
|
|
205
293
|
* @param guid Unique identifier for an order.
|
|
294
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
206
295
|
* @returns RefundRequestInfo Returns the refund request information for the order.
|
|
207
296
|
* @throws ApiError
|
|
208
297
|
*/
|
|
209
|
-
static getRefundRequest(guid) {
|
|
298
|
+
static getRefundRequest(guid, context) {
|
|
210
299
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
211
300
|
method: 'GET',
|
|
212
301
|
url: '/order/refund-request',
|
|
302
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
213
303
|
query: {
|
|
214
304
|
'guid': guid,
|
|
215
305
|
},
|
|
@@ -224,14 +314,16 @@ class OrderService {
|
|
|
224
314
|
* Submit a refund request
|
|
225
315
|
* Submits a refund request for an order using its unique guid and the provided refund details.
|
|
226
316
|
* @param guid Unique identifier for an order.
|
|
317
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
227
318
|
* @param requestBody Refund request details.
|
|
228
319
|
* @returns SuccessResponse Returns success status after submitting the refund request.
|
|
229
320
|
* @throws ApiError
|
|
230
321
|
*/
|
|
231
|
-
static postRefundRequest(guid, requestBody) {
|
|
322
|
+
static postRefundRequest(guid, requestBody, context) {
|
|
232
323
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
233
324
|
method: 'POST',
|
|
234
325
|
url: '/order/refund-request',
|
|
326
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
235
327
|
query: {
|
|
236
328
|
'guid': guid,
|
|
237
329
|
},
|
|
@@ -248,14 +340,16 @@ class OrderService {
|
|
|
248
340
|
* Recalculate order totals
|
|
249
341
|
* Recalculates the totals for an order using the provided recalculation data.
|
|
250
342
|
* @param guid Unique identifier for an order.
|
|
343
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
251
344
|
* @param requestBody Order recalculation data.
|
|
252
345
|
* @returns RecalcResponse Returns the recalculated order totals and success status.
|
|
253
346
|
* @throws ApiError
|
|
254
347
|
*/
|
|
255
|
-
static postRecalcOrder(guid, requestBody) {
|
|
348
|
+
static postRecalcOrder(guid, requestBody, context) {
|
|
256
349
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
257
350
|
method: 'POST',
|
|
258
351
|
url: '/order/recalc',
|
|
352
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
259
353
|
query: {
|
|
260
354
|
'guid': guid,
|
|
261
355
|
},
|
|
@@ -271,14 +365,16 @@ class OrderService {
|
|
|
271
365
|
/**
|
|
272
366
|
* Donate order in lieu of refund
|
|
273
367
|
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
368
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
274
369
|
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
275
370
|
* @returns SuccessResponse Returns success status after donating the order.
|
|
276
371
|
* @throws ApiError
|
|
277
372
|
*/
|
|
278
|
-
static postDonateOrder(requestBody) {
|
|
373
|
+
static postDonateOrder(requestBody, context) {
|
|
279
374
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
280
375
|
method: 'POST',
|
|
281
376
|
url: '/order/donate-order',
|
|
377
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
282
378
|
body: requestBody,
|
|
283
379
|
mediaType: 'application/json',
|
|
284
380
|
errors: {
|
|
@@ -288,17 +384,69 @@ class OrderService {
|
|
|
288
384
|
},
|
|
289
385
|
});
|
|
290
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* Get virtual-stream details/embed for an order
|
|
389
|
+
* 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).
|
|
390
|
+
* @param orderGuid
|
|
391
|
+
* @param streamGuid
|
|
392
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
393
|
+
* @returns StreamDetails Returns the stream details.
|
|
394
|
+
* @throws ApiError
|
|
395
|
+
*/
|
|
396
|
+
static getStreamDetails(orderGuid, streamGuid, context) {
|
|
397
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
398
|
+
method: 'GET',
|
|
399
|
+
url: '/order/stream',
|
|
400
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
401
|
+
query: {
|
|
402
|
+
'orderGuid': orderGuid,
|
|
403
|
+
'streamGuid': streamGuid,
|
|
404
|
+
},
|
|
405
|
+
errors: {
|
|
406
|
+
400: `Bad Request error with error details.`,
|
|
407
|
+
404: `Not found error with error details.`,
|
|
408
|
+
500: `Internal Server Error, please contact developers.`,
|
|
409
|
+
},
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Get the digital-download link for a stream
|
|
414
|
+
* Returns the best-quality digital-download cloud URL for a stream on the order (VS-1, legacy digital-download-get-link).
|
|
415
|
+
* @param orderGuid
|
|
416
|
+
* @param streamGuid
|
|
417
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
418
|
+
* @returns StreamDownloadLink Returns the download link.
|
|
419
|
+
* @throws ApiError
|
|
420
|
+
*/
|
|
421
|
+
static getStreamDownloadLink(orderGuid, streamGuid, context) {
|
|
422
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
423
|
+
method: 'GET',
|
|
424
|
+
url: '/order/stream/download',
|
|
425
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
426
|
+
query: {
|
|
427
|
+
'orderGuid': orderGuid,
|
|
428
|
+
'streamGuid': streamGuid,
|
|
429
|
+
},
|
|
430
|
+
errors: {
|
|
431
|
+
400: `Bad Request error with error details.`,
|
|
432
|
+
404: `Not found error with error details.`,
|
|
433
|
+
500: `Internal Server Error, please contact developers.`,
|
|
434
|
+
},
|
|
435
|
+
});
|
|
436
|
+
}
|
|
291
437
|
/**
|
|
292
438
|
* Register a stream for a shopper
|
|
293
439
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
440
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
294
441
|
* @param requestBody Stream registration details.
|
|
295
442
|
* @returns RegisterStreamResponse Returns the stream registration response.
|
|
296
443
|
* @throws ApiError
|
|
297
444
|
*/
|
|
298
|
-
static postRegisterStream(requestBody) {
|
|
445
|
+
static postRegisterStream(requestBody, context) {
|
|
299
446
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
300
447
|
method: 'POST',
|
|
301
448
|
url: '/order/stream-register',
|
|
449
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
302
450
|
body: requestBody,
|
|
303
451
|
mediaType: 'application/json',
|
|
304
452
|
errors: {
|
|
@@ -311,14 +459,80 @@ class OrderService {
|
|
|
311
459
|
/**
|
|
312
460
|
* Deregister a stream for a shopper
|
|
313
461
|
* Removes the stream registration for the specified shopper and account using the provided stream registration details.
|
|
462
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
314
463
|
* @param requestBody Stream registration details to be deregistered.
|
|
315
464
|
* @returns SuccessResponse Returns success status after deregistering the stream.
|
|
316
465
|
* @throws ApiError
|
|
317
466
|
*/
|
|
318
|
-
static deleteRegisteredStream(requestBody) {
|
|
467
|
+
static deleteRegisteredStream(requestBody, context) {
|
|
319
468
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
320
469
|
method: 'DELETE',
|
|
321
470
|
url: '/order/stream-register',
|
|
471
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
472
|
+
body: requestBody,
|
|
473
|
+
mediaType: 'application/json',
|
|
474
|
+
errors: {
|
|
475
|
+
400: `Bad Request error with error details.`,
|
|
476
|
+
404: `Not found error with error details.`,
|
|
477
|
+
500: `Internal Server Error, please contact developers.`,
|
|
478
|
+
},
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* List shows available to exchange into
|
|
483
|
+
* 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.
|
|
484
|
+
* @param guid Unique identifier for an order.
|
|
485
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
486
|
+
* @returns ExchangeShowsResponse Returns exchange-eligible shows and held-seat count.
|
|
487
|
+
* @throws ApiError
|
|
488
|
+
*/
|
|
489
|
+
static getExchangeShows(guid, context) {
|
|
490
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
491
|
+
method: 'GET',
|
|
492
|
+
url: '/order/exchange/shows',
|
|
493
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
494
|
+
query: {
|
|
495
|
+
'guid': guid,
|
|
496
|
+
},
|
|
497
|
+
errors: {
|
|
498
|
+
400: `Bad Request error with error details.`,
|
|
499
|
+
404: `Not found error with error details.`,
|
|
500
|
+
500: `Internal Server Error, please contact developers.`,
|
|
501
|
+
},
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Get the seats currently held for the exchange
|
|
506
|
+
* Returns the seats held in the exchange cart (EXC-1).
|
|
507
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
508
|
+
* @returns SeatInCart Returns the held exchange seats.
|
|
509
|
+
* @throws ApiError
|
|
510
|
+
*/
|
|
511
|
+
static getExchangeSeats(context) {
|
|
512
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
513
|
+
method: 'GET',
|
|
514
|
+
url: '/order/exchange/seats',
|
|
515
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
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
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Save per-seat answers for the new exchange seats
|
|
525
|
+
* Persists checkout answers for the new seats being exchanged into (EXC-1, legacy exchange-questions-save).
|
|
526
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
527
|
+
* @param requestBody
|
|
528
|
+
* @returns SuccessResponse Returns success after saving answers.
|
|
529
|
+
* @throws ApiError
|
|
530
|
+
*/
|
|
531
|
+
static saveExchangeAnswers(requestBody, context) {
|
|
532
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
533
|
+
method: 'POST',
|
|
534
|
+
url: '/order/exchange/questions',
|
|
535
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
322
536
|
body: requestBody,
|
|
323
537
|
mediaType: 'application/json',
|
|
324
538
|
errors: {
|
|
@@ -328,17 +542,63 @@ class OrderService {
|
|
|
328
542
|
},
|
|
329
543
|
});
|
|
330
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Release one held seat during an exchange
|
|
547
|
+
* Releases a single held seat from the exchange cart; clears the cart timer when no held seats remain (EXC-1, legacy exchange-cancel).
|
|
548
|
+
* @param showId
|
|
549
|
+
* @param seatId
|
|
550
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
551
|
+
* @returns ExchangeCancelSeatResponse Returns success and whether the cart timer still runs.
|
|
552
|
+
* @throws ApiError
|
|
553
|
+
*/
|
|
554
|
+
static cancelExchangeSeat(showId, seatId, context) {
|
|
555
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
556
|
+
method: 'DELETE',
|
|
557
|
+
url: '/order/exchange/seat',
|
|
558
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
559
|
+
query: {
|
|
560
|
+
'showId': showId,
|
|
561
|
+
'seatId': seatId,
|
|
562
|
+
},
|
|
563
|
+
errors: {
|
|
564
|
+
400: `Bad Request error with error details.`,
|
|
565
|
+
404: `Not found error with error details.`,
|
|
566
|
+
500: `Internal Server Error, please contact developers.`,
|
|
567
|
+
},
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Cancel an in-progress exchange
|
|
572
|
+
* Aborts an in-progress exchange: releases all held seats, clears the cart timer, and clears the exchange lock (EXC-1, legacy exchange-cancel-all).
|
|
573
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
574
|
+
* @returns SuccessResponse Returns success after cancelling the exchange.
|
|
575
|
+
* @throws ApiError
|
|
576
|
+
*/
|
|
577
|
+
static cancelExchange(context) {
|
|
578
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
579
|
+
method: 'POST',
|
|
580
|
+
url: '/order/exchange/cancel',
|
|
581
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
582
|
+
errors: {
|
|
583
|
+
400: `Bad Request error with error details.`,
|
|
584
|
+
404: `Not found error with error details.`,
|
|
585
|
+
500: `Internal Server Error, please contact developers.`,
|
|
586
|
+
},
|
|
587
|
+
});
|
|
588
|
+
}
|
|
331
589
|
/**
|
|
332
590
|
* Execute a seat exchange for an order
|
|
333
591
|
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
592
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
334
593
|
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
335
594
|
* @returns SuccessResponse Returns success after completing the exchange.
|
|
336
595
|
* @throws ApiError
|
|
337
596
|
*/
|
|
338
|
-
static postExchange(requestBody) {
|
|
597
|
+
static postExchange(requestBody, context) {
|
|
339
598
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
340
599
|
method: 'POST',
|
|
341
600
|
url: '/order/exchange',
|
|
601
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
342
602
|
body: requestBody,
|
|
343
603
|
mediaType: 'application/json',
|
|
344
604
|
errors: {
|
|
@@ -8,24 +8,36 @@ export declare class PaymentService {
|
|
|
8
8
|
/**
|
|
9
9
|
* Summarize payment
|
|
10
10
|
* Saves the payment data for the shopper with the provided confirmation token.
|
|
11
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
12
|
* @param requestBody Summary request body containing the confirmation token.
|
|
12
13
|
* @returns SuccessResponse Returns a success response.
|
|
13
14
|
* @throws ApiError
|
|
14
15
|
*/
|
|
15
|
-
static summarizePayment(requestBody: SummaryBody
|
|
16
|
+
static summarizePayment(requestBody: SummaryBody, context?: {
|
|
17
|
+
shopperGuid?: string;
|
|
18
|
+
accountId?: string;
|
|
19
|
+
}): CancelablePromise<SuccessResponse>;
|
|
16
20
|
/**
|
|
17
21
|
* Complete payment
|
|
18
22
|
* Completes the payment for the shopper using the provided cart hash and IP address.
|
|
23
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
24
|
* @param requestBody Payment completion request body containing cart hash and IP address.
|
|
20
25
|
* @returns PaymentSuccess Returns the result of the payment completion.
|
|
21
26
|
* @throws ApiError
|
|
22
27
|
*/
|
|
23
|
-
static completePayment(requestBody: CompleteBody
|
|
28
|
+
static completePayment(requestBody: CompleteBody, context?: {
|
|
29
|
+
shopperGuid?: string;
|
|
30
|
+
accountId?: string;
|
|
31
|
+
}): CancelablePromise<PaymentSuccess>;
|
|
24
32
|
/**
|
|
25
33
|
* Create payment customer session
|
|
26
34
|
* Creates a new payment customer session for the shopper and account.
|
|
35
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
27
36
|
* @returns CreateCustomerResponse Returns the created customer session.
|
|
28
37
|
* @throws ApiError
|
|
29
38
|
*/
|
|
30
|
-
static createCustomerSession(
|
|
39
|
+
static createCustomerSession(context?: {
|
|
40
|
+
shopperGuid?: string;
|
|
41
|
+
accountId?: string;
|
|
42
|
+
}): CancelablePromise<CreateCustomerResponse>;
|
|
31
43
|
}
|
|
@@ -3,18 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PaymentService = 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");
|
|
6
7
|
class PaymentService {
|
|
7
8
|
/**
|
|
8
9
|
* Summarize payment
|
|
9
10
|
* Saves the payment data for the shopper with the provided confirmation token.
|
|
11
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
10
12
|
* @param requestBody Summary request body containing the confirmation token.
|
|
11
13
|
* @returns SuccessResponse Returns a success response.
|
|
12
14
|
* @throws ApiError
|
|
13
15
|
*/
|
|
14
|
-
static summarizePayment(requestBody) {
|
|
16
|
+
static summarizePayment(requestBody, context) {
|
|
15
17
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
18
|
method: 'POST',
|
|
17
19
|
url: '/payment/summary',
|
|
20
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
18
21
|
body: requestBody,
|
|
19
22
|
mediaType: 'application/json',
|
|
20
23
|
errors: {
|
|
@@ -27,14 +30,16 @@ class PaymentService {
|
|
|
27
30
|
/**
|
|
28
31
|
* Complete payment
|
|
29
32
|
* Completes the payment for the shopper using the provided cart hash and IP address.
|
|
33
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
30
34
|
* @param requestBody Payment completion request body containing cart hash and IP address.
|
|
31
35
|
* @returns PaymentSuccess Returns the result of the payment completion.
|
|
32
36
|
* @throws ApiError
|
|
33
37
|
*/
|
|
34
|
-
static completePayment(requestBody) {
|
|
38
|
+
static completePayment(requestBody, context) {
|
|
35
39
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
40
|
method: 'POST',
|
|
37
41
|
url: '/payment/complete',
|
|
42
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
38
43
|
body: requestBody,
|
|
39
44
|
mediaType: 'application/json',
|
|
40
45
|
errors: {
|
|
@@ -47,13 +52,15 @@ class PaymentService {
|
|
|
47
52
|
/**
|
|
48
53
|
* Create payment customer session
|
|
49
54
|
* Creates a new payment customer session for the shopper and account.
|
|
55
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
50
56
|
* @returns CreateCustomerResponse Returns the created customer session.
|
|
51
57
|
* @throws ApiError
|
|
52
58
|
*/
|
|
53
|
-
static createCustomerSession() {
|
|
59
|
+
static createCustomerSession(context) {
|
|
54
60
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
55
61
|
method: 'POST',
|
|
56
62
|
url: '/payment/customer',
|
|
63
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
57
64
|
errors: {
|
|
58
65
|
400: `Bad Request error with error details.`,
|
|
59
66
|
404: `Not found error with error details.`,
|
|
@@ -8,24 +8,36 @@ export declare class ProductService {
|
|
|
8
8
|
/**
|
|
9
9
|
* Get all products
|
|
10
10
|
* Retrieves all products available for the specified account.
|
|
11
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
12
|
* @returns ProductData Returns a list of products for the account.
|
|
12
13
|
* @throws ApiError
|
|
13
14
|
*/
|
|
14
|
-
static getProducts(
|
|
15
|
+
static getProducts(context?: {
|
|
16
|
+
shopperGuid?: string;
|
|
17
|
+
accountId?: string;
|
|
18
|
+
}): CancelablePromise<ProductData>;
|
|
15
19
|
/**
|
|
16
20
|
* Add a product
|
|
17
21
|
* Adds a new product to the specified account.
|
|
22
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
18
23
|
* @param requestBody Product details to add.
|
|
19
24
|
* @returns ProductAddResponse Returns the result of the product addition.
|
|
20
25
|
* @throws ApiError
|
|
21
26
|
*/
|
|
22
|
-
static addProduct(requestBody: ProductBody
|
|
27
|
+
static addProduct(requestBody: ProductBody, context?: {
|
|
28
|
+
shopperGuid?: string;
|
|
29
|
+
accountId?: string;
|
|
30
|
+
}): CancelablePromise<ProductAddResponse>;
|
|
23
31
|
/**
|
|
24
32
|
* Remove a product
|
|
25
33
|
* Removes a product from the specified account.
|
|
34
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
26
35
|
* @param requestBody Product details to remove.
|
|
27
36
|
* @returns ProductUpdateResponse Returns the result of the product removal.
|
|
28
37
|
* @throws ApiError
|
|
29
38
|
*/
|
|
30
|
-
static deleteProduct(requestBody: ProductDeleteBody
|
|
39
|
+
static deleteProduct(requestBody: ProductDeleteBody, context?: {
|
|
40
|
+
shopperGuid?: string;
|
|
41
|
+
accountId?: string;
|
|
42
|
+
}): CancelablePromise<ProductUpdateResponse>;
|
|
31
43
|
}
|