@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,27 +3,32 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { CodeDto } from '../models/CodeDto';
|
|
6
|
+
import type { CorrelatedCode } from '../models/CorrelatedCode';
|
|
6
7
|
import type { HasAccessResponse } from '../models/HasAccessResponse';
|
|
7
8
|
import type { PriorityCode } from '../models/PriorityCode';
|
|
8
9
|
import type { SuccessWithTime } from '../models/SuccessWithTime';
|
|
9
10
|
import type { UniversalCodeResponse } from '../models/UniversalCodeResponse';
|
|
10
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
12
|
import { OpenAPI } from '../core/OpenAPI';
|
|
12
|
-
import { request as __request } from '../core/request';
|
|
13
|
+
import { request as __request } from '../core/request';
|
|
14
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig';
|
|
13
15
|
export class CodeService {
|
|
14
16
|
/**
|
|
15
17
|
* Request access to an event
|
|
16
18
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
17
19
|
* @param eventId ID of the event for which access is requested
|
|
20
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
18
21
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
19
22
|
* @throws ApiError
|
|
20
23
|
*/
|
|
21
24
|
public static requestEventAccess(
|
|
22
|
-
eventId: number,
|
|
25
|
+
eventId: number,
|
|
26
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
23
27
|
): CancelablePromise<HasAccessResponse> {
|
|
24
28
|
return __request(OpenAPI, {
|
|
25
29
|
method: 'GET',
|
|
26
|
-
url: '/code/access',
|
|
30
|
+
url: '/code/access',
|
|
31
|
+
headers: resolveShopperHeaders(context),
|
|
27
32
|
query: {
|
|
28
33
|
'eventId': eventId,
|
|
29
34
|
},
|
|
@@ -34,19 +39,48 @@ export class CodeService {
|
|
|
34
39
|
},
|
|
35
40
|
});
|
|
36
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* List the codes correlated to a patron code
|
|
44
|
+
* Given a patron code, returns the priority/coupon codes tied to that patron's email so the shopper can choose which to apply (CODE-3).
|
|
45
|
+
* @param code The patron code to look up.
|
|
46
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
47
|
+
* @returns CorrelatedCode Returns the correlated codes.
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
public static getPatronCodes(
|
|
51
|
+
code: string,
|
|
52
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
53
|
+
): CancelablePromise<Array<CorrelatedCode>> {
|
|
54
|
+
return __request(OpenAPI, {
|
|
55
|
+
method: 'GET',
|
|
56
|
+
url: '/code/patron',
|
|
57
|
+
headers: resolveShopperHeaders(context),
|
|
58
|
+
query: {
|
|
59
|
+
'code': code,
|
|
60
|
+
},
|
|
61
|
+
errors: {
|
|
62
|
+
400: `Bad Request error with error details.`,
|
|
63
|
+
404: `Not found error with error details.`,
|
|
64
|
+
500: `Internal Server Error, please contact developers.`,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
37
68
|
/**
|
|
38
69
|
* Apply a code to the current shopper session
|
|
39
70
|
* Applies a code to the current shopper session.
|
|
71
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
40
72
|
* @param requestBody Code to be applied
|
|
41
73
|
* @returns SuccessWithTime Code applied successfully.
|
|
42
74
|
* @throws ApiError
|
|
43
75
|
*/
|
|
44
|
-
public static applyCode(
|
|
45
|
-
requestBody: CodeDto,
|
|
76
|
+
public static applyCode(
|
|
77
|
+
requestBody: CodeDto,
|
|
78
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
46
79
|
): CancelablePromise<SuccessWithTime> {
|
|
47
80
|
return __request(OpenAPI, {
|
|
48
81
|
method: 'POST',
|
|
49
|
-
url: '/code',
|
|
82
|
+
url: '/code',
|
|
83
|
+
headers: resolveShopperHeaders(context),
|
|
50
84
|
body: requestBody,
|
|
51
85
|
mediaType: 'application/json',
|
|
52
86
|
errors: {
|
|
@@ -59,16 +93,19 @@ export class CodeService {
|
|
|
59
93
|
/**
|
|
60
94
|
* Apply a coupon to the current shopper session
|
|
61
95
|
* Applies a coupon to the current shopper session.
|
|
96
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
62
97
|
* @param requestBody Coupon code to be applied
|
|
63
98
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
64
99
|
* @throws ApiError
|
|
65
100
|
*/
|
|
66
|
-
public static applyCoupon(
|
|
67
|
-
requestBody: CodeDto,
|
|
101
|
+
public static applyCoupon(
|
|
102
|
+
requestBody: CodeDto,
|
|
103
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
68
104
|
): CancelablePromise<UniversalCodeResponse> {
|
|
69
105
|
return __request(OpenAPI, {
|
|
70
106
|
method: 'POST',
|
|
71
|
-
url: '/code/discount',
|
|
107
|
+
url: '/code/discount',
|
|
108
|
+
headers: resolveShopperHeaders(context),
|
|
72
109
|
body: requestBody,
|
|
73
110
|
mediaType: 'application/json',
|
|
74
111
|
errors: {
|
|
@@ -81,16 +118,19 @@ export class CodeService {
|
|
|
81
118
|
/**
|
|
82
119
|
* Remove a coupon from the current shopper session
|
|
83
120
|
* Removes a coupon from the current shopper session.
|
|
121
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
84
122
|
* @param requestBody Coupon code to be removed
|
|
85
123
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
86
124
|
* @throws ApiError
|
|
87
125
|
*/
|
|
88
|
-
public static removeCoupon(
|
|
89
|
-
requestBody: CodeDto,
|
|
126
|
+
public static removeCoupon(
|
|
127
|
+
requestBody: CodeDto,
|
|
128
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
90
129
|
): CancelablePromise<UniversalCodeResponse> {
|
|
91
130
|
return __request(OpenAPI, {
|
|
92
131
|
method: 'DELETE',
|
|
93
|
-
url: '/code/discount',
|
|
132
|
+
url: '/code/discount',
|
|
133
|
+
headers: resolveShopperHeaders(context),
|
|
94
134
|
body: requestBody,
|
|
95
135
|
mediaType: 'application/json',
|
|
96
136
|
errors: {
|
|
@@ -103,16 +143,19 @@ export class CodeService {
|
|
|
103
143
|
/**
|
|
104
144
|
* Apply Priority Code
|
|
105
145
|
* Applies a priority code to the cart.
|
|
146
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
106
147
|
* @param requestBody Priority code data to be applied
|
|
107
148
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
108
149
|
* @throws ApiError
|
|
109
150
|
*/
|
|
110
|
-
public static applyPriorityCode(
|
|
111
|
-
requestBody: PriorityCode,
|
|
151
|
+
public static applyPriorityCode(
|
|
152
|
+
requestBody: PriorityCode,
|
|
153
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
112
154
|
): CancelablePromise<SuccessWithTime> {
|
|
113
155
|
return __request(OpenAPI, {
|
|
114
156
|
method: 'POST',
|
|
115
|
-
url: '/code/priority',
|
|
157
|
+
url: '/code/priority',
|
|
158
|
+
headers: resolveShopperHeaders(context),
|
|
116
159
|
body: requestBody,
|
|
117
160
|
mediaType: 'application/json',
|
|
118
161
|
errors: {
|
|
@@ -5,21 +5,26 @@
|
|
|
5
5
|
import type { DonationContribution } from '../models/DonationContribution';
|
|
6
6
|
import type { DonationResult } from '../models/DonationResult';
|
|
7
7
|
import type { DonationsandContributions } from '../models/DonationsandContributions';
|
|
8
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
8
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
10
|
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
-
import { request as __request } from '../core/request';
|
|
11
|
+
import { request as __request } from '../core/request';
|
|
12
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig';
|
|
11
13
|
export class DonationService {
|
|
12
14
|
/**
|
|
13
15
|
* Get all donations for a shopper
|
|
14
16
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
17
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
15
18
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
16
19
|
* @throws ApiError
|
|
17
20
|
*/
|
|
18
|
-
public static getDonations(
|
|
21
|
+
public static getDonations(
|
|
22
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
19
23
|
): CancelablePromise<DonationsandContributions> {
|
|
20
24
|
return __request(OpenAPI, {
|
|
21
25
|
method: 'GET',
|
|
22
|
-
url: '/donation',
|
|
26
|
+
url: '/donation',
|
|
27
|
+
headers: resolveShopperHeaders(context),
|
|
23
28
|
errors: {
|
|
24
29
|
400: `Bad Request error with error details.`,
|
|
25
30
|
404: `Not found error with error details.`,
|
|
@@ -31,13 +36,15 @@ export class DonationService {
|
|
|
31
36
|
* Add a donation or contribution
|
|
32
37
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
33
38
|
* @param ipAddress API key for authentication.
|
|
39
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
34
40
|
* @param requestBody Donation or contribution details to add.
|
|
35
41
|
* @returns DonationResult Returns the result of the donation addition.
|
|
36
42
|
* @throws ApiError
|
|
37
43
|
*/
|
|
38
44
|
public static postDonation(
|
|
39
|
-
ipAddress: string,
|
|
40
|
-
requestBody: DonationContribution,
|
|
45
|
+
ipAddress: string,
|
|
46
|
+
requestBody: DonationContribution,
|
|
47
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
41
48
|
): CancelablePromise<DonationResult> {
|
|
42
49
|
return __request(OpenAPI, {
|
|
43
50
|
method: 'POST',
|
|
@@ -54,4 +61,30 @@ export class DonationService {
|
|
|
54
61
|
},
|
|
55
62
|
});
|
|
56
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Remove a donation from the cart
|
|
66
|
+
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
67
|
+
* @param fundId The donation fund id to remove.
|
|
68
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
69
|
+
* @returns SuccessResponse Returns success after removing the donation.
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
public static deleteDonation(
|
|
73
|
+
fundId: number,
|
|
74
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
75
|
+
): CancelablePromise<SuccessResponse> {
|
|
76
|
+
return __request(OpenAPI, {
|
|
77
|
+
method: 'DELETE',
|
|
78
|
+
url: '/donation',
|
|
79
|
+
headers: resolveShopperHeaders(context),
|
|
80
|
+
query: {
|
|
81
|
+
'fundId': fundId,
|
|
82
|
+
},
|
|
83
|
+
errors: {
|
|
84
|
+
400: `Bad Request error with error details.`,
|
|
85
|
+
404: `Not found error with error details.`,
|
|
86
|
+
500: `Internal Server Error, please contact developers.`,
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
}
|
|
57
90
|
}
|
|
@@ -2,26 +2,32 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { EventLegend } from '../models/EventLegend';
|
|
5
6
|
import type { FullEventDetails } from '../models/FullEventDetails';
|
|
7
|
+
import type { GaSelection } from '../models/GaSelection';
|
|
6
8
|
import type { GetEventsResponse } from '../models/GetEventsResponse';
|
|
7
9
|
import type { PerformerEventList } from '../models/PerformerEventList';
|
|
8
10
|
import type { WaitlistResponse } from '../models/WaitlistResponse';
|
|
9
11
|
import type { WaitlistUpdate } from '../models/WaitlistUpdate';
|
|
10
12
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
13
|
import { OpenAPI } from '../core/OpenAPI';
|
|
12
|
-
import { request as __request } from '../core/request';
|
|
14
|
+
import { request as __request } from '../core/request';
|
|
15
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig';
|
|
13
16
|
export class EventService {
|
|
14
17
|
/**
|
|
15
18
|
* Get all events for a shopper
|
|
16
19
|
* Retrieves all events associated with the shopper.
|
|
20
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
17
21
|
* @returns GetEventsResponse Returns a list of events and their groups.
|
|
18
22
|
* @throws ApiError
|
|
19
23
|
*/
|
|
20
|
-
public static getEvents(
|
|
24
|
+
public static getEvents(
|
|
25
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
21
26
|
): CancelablePromise<GetEventsResponse> {
|
|
22
27
|
return __request(OpenAPI, {
|
|
23
28
|
method: 'GET',
|
|
24
|
-
url: '/event',
|
|
29
|
+
url: '/event',
|
|
30
|
+
headers: resolveShopperHeaders(context),
|
|
25
31
|
errors: {
|
|
26
32
|
400: `Bad Request error with error details.`,
|
|
27
33
|
404: `Not found error with error details.`,
|
|
@@ -33,15 +39,18 @@ export class EventService {
|
|
|
33
39
|
* Get events for a specific performer
|
|
34
40
|
* Retrieves events associated with a specific performer.
|
|
35
41
|
* @param performer The name of the performer to filter events by.
|
|
42
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
43
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
37
44
|
* @throws ApiError
|
|
38
45
|
*/
|
|
39
46
|
public static getPerformers(
|
|
40
|
-
performer: string,
|
|
47
|
+
performer: string,
|
|
48
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
41
49
|
): CancelablePromise<Array<PerformerEventList>> {
|
|
42
50
|
return __request(OpenAPI, {
|
|
43
51
|
method: 'GET',
|
|
44
|
-
url: '/event/performer',
|
|
52
|
+
url: '/event/performer',
|
|
53
|
+
headers: resolveShopperHeaders(context),
|
|
45
54
|
query: {
|
|
46
55
|
'performer': performer,
|
|
47
56
|
},
|
|
@@ -56,18 +65,73 @@ export class EventService {
|
|
|
56
65
|
* Get event details by ID
|
|
57
66
|
* Retrieves detailed information for a specific event.
|
|
58
67
|
* @param id
|
|
68
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
59
69
|
* @returns FullEventDetails Returns the event details.
|
|
60
70
|
* @throws ApiError
|
|
61
71
|
*/
|
|
62
72
|
public static getEventById(
|
|
63
|
-
id: number,
|
|
73
|
+
id: number,
|
|
74
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
64
75
|
): CancelablePromise<FullEventDetails> {
|
|
65
76
|
return __request(OpenAPI, {
|
|
66
77
|
method: 'GET',
|
|
67
78
|
url: '/event/{id}',
|
|
68
79
|
path: {
|
|
69
80
|
'id': id,
|
|
70
|
-
},
|
|
81
|
+
},
|
|
82
|
+
headers: resolveShopperHeaders(context),
|
|
83
|
+
errors: {
|
|
84
|
+
400: `Bad Request error with error details.`,
|
|
85
|
+
404: `Not found error with error details.`,
|
|
86
|
+
500: `Internal Server Error, please contact developers.`,
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get the seat-map legend for an event
|
|
92
|
+
* Returns the structured seat-map legend (per-tier color/label, the raw legend text, and the chair-token color map) as JSON (SEAT-2).
|
|
93
|
+
* @param id
|
|
94
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
95
|
+
* @returns EventLegend Returns the event legend.
|
|
96
|
+
* @throws ApiError
|
|
97
|
+
*/
|
|
98
|
+
public static getEventLegend(
|
|
99
|
+
id: number,
|
|
100
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
101
|
+
): CancelablePromise<EventLegend> {
|
|
102
|
+
return __request(OpenAPI, {
|
|
103
|
+
method: 'GET',
|
|
104
|
+
url: '/event/{id}/legend',
|
|
105
|
+
path: {
|
|
106
|
+
'id': id,
|
|
107
|
+
},
|
|
108
|
+
headers: resolveShopperHeaders(context),
|
|
109
|
+
errors: {
|
|
110
|
+
400: `Bad Request error with error details.`,
|
|
111
|
+
404: `Not found error with error details.`,
|
|
112
|
+
500: `Internal Server Error, please contact developers.`,
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Get GA / best-available selection data for an event
|
|
118
|
+
* Returns the GA/BA purchase-view payload: per-tier advance/door/effective price, capacity & remaining, plus order limits and lap-child policy (SEAT-3).
|
|
119
|
+
* @param id
|
|
120
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
121
|
+
* @returns GaSelection Returns the GA selection payload.
|
|
122
|
+
* @throws ApiError
|
|
123
|
+
*/
|
|
124
|
+
public static getGaSelection(
|
|
125
|
+
id: number,
|
|
126
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
127
|
+
): CancelablePromise<GaSelection> {
|
|
128
|
+
return __request(OpenAPI, {
|
|
129
|
+
method: 'GET',
|
|
130
|
+
url: '/event/{id}/ga',
|
|
131
|
+
path: {
|
|
132
|
+
'id': id,
|
|
133
|
+
},
|
|
134
|
+
headers: resolveShopperHeaders(context),
|
|
71
135
|
errors: {
|
|
72
136
|
400: `Bad Request error with error details.`,
|
|
73
137
|
404: `Not found error with error details.`,
|
|
@@ -78,16 +142,19 @@ export class EventService {
|
|
|
78
142
|
/**
|
|
79
143
|
* Assign names to the waitlist
|
|
80
144
|
* Updates the waitlist with shopper details.
|
|
145
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
81
146
|
* @param requestBody Details of the waitlist update
|
|
82
147
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
83
148
|
* @throws ApiError
|
|
84
149
|
*/
|
|
85
|
-
public static postWishlist(
|
|
86
|
-
requestBody: WaitlistUpdate,
|
|
150
|
+
public static postWishlist(
|
|
151
|
+
requestBody: WaitlistUpdate,
|
|
152
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
87
153
|
): CancelablePromise<WaitlistResponse> {
|
|
88
154
|
return __request(OpenAPI, {
|
|
89
155
|
method: 'POST',
|
|
90
|
-
url: '/event/waitlist',
|
|
156
|
+
url: '/event/waitlist',
|
|
157
|
+
headers: resolveShopperHeaders(context),
|
|
91
158
|
body: requestBody,
|
|
92
159
|
mediaType: 'application/json',
|
|
93
160
|
errors: {
|
|
@@ -10,23 +10,27 @@ import type { GiftCardLookupResponse } from '../models/GiftCardLookupResponse';
|
|
|
10
10
|
import type { GiftCardRemoveResponse } from '../models/GiftCardRemoveResponse';
|
|
11
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
12
|
import { OpenAPI } from '../core/OpenAPI';
|
|
13
|
-
import { request as __request } from '../core/request';
|
|
13
|
+
import { request as __request } from '../core/request';
|
|
14
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig';
|
|
14
15
|
export class GiftCardService {
|
|
15
16
|
/**
|
|
16
17
|
* Look up a gift card by code and PIN
|
|
17
18
|
* Retrieves gift card balance and availability information for the specified code and PIN.
|
|
18
19
|
* @param code Gift card code
|
|
19
20
|
* @param pin Gift card PIN
|
|
21
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
20
22
|
* @returns GiftCardLookupResponse Returns gift card balance and availability information.
|
|
21
23
|
* @throws ApiError
|
|
22
24
|
*/
|
|
23
25
|
public static lookupGiftCard(
|
|
24
26
|
code: string,
|
|
25
|
-
pin: string,
|
|
27
|
+
pin: string,
|
|
28
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
26
29
|
): CancelablePromise<GiftCardLookupResponse> {
|
|
27
30
|
return __request(OpenAPI, {
|
|
28
31
|
method: 'GET',
|
|
29
|
-
url: '/gift-card',
|
|
32
|
+
url: '/gift-card',
|
|
33
|
+
headers: resolveShopperHeaders(context),
|
|
30
34
|
query: {
|
|
31
35
|
'code': code,
|
|
32
36
|
'pin': pin,
|
|
@@ -41,16 +45,19 @@ export class GiftCardService {
|
|
|
41
45
|
/**
|
|
42
46
|
* Apply a gift card to the current session
|
|
43
47
|
* Applies a gift card to the current shopper session. Removes any previously applied gift card.
|
|
48
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
44
49
|
* @param requestBody Gift card details to apply
|
|
45
50
|
* @returns GiftCardApplyResponse Gift card applied successfully.
|
|
46
51
|
* @throws ApiError
|
|
47
52
|
*/
|
|
48
|
-
public static applyGiftCard(
|
|
49
|
-
requestBody: GiftCardApplyDto,
|
|
53
|
+
public static applyGiftCard(
|
|
54
|
+
requestBody: GiftCardApplyDto,
|
|
55
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
50
56
|
): CancelablePromise<GiftCardApplyResponse> {
|
|
51
57
|
return __request(OpenAPI, {
|
|
52
58
|
method: 'POST',
|
|
53
|
-
url: '/gift-card',
|
|
59
|
+
url: '/gift-card',
|
|
60
|
+
headers: resolveShopperHeaders(context),
|
|
54
61
|
body: requestBody,
|
|
55
62
|
mediaType: 'application/json',
|
|
56
63
|
errors: {
|
|
@@ -63,14 +70,17 @@ export class GiftCardService {
|
|
|
63
70
|
/**
|
|
64
71
|
* Remove the gift card from the current session
|
|
65
72
|
* Removes all gift cards from the current shopper session and recalculates payment totals.
|
|
73
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
66
74
|
* @returns GiftCardRemoveResponse Gift card removed successfully.
|
|
67
75
|
* @throws ApiError
|
|
68
76
|
*/
|
|
69
|
-
public static removeGiftCard(
|
|
77
|
+
public static removeGiftCard(
|
|
78
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
70
79
|
): CancelablePromise<GiftCardRemoveResponse> {
|
|
71
80
|
return __request(OpenAPI, {
|
|
72
81
|
method: 'DELETE',
|
|
73
|
-
url: '/gift-card',
|
|
82
|
+
url: '/gift-card',
|
|
83
|
+
headers: resolveShopperHeaders(context),
|
|
74
84
|
errors: {
|
|
75
85
|
400: `Bad Request error with error details.`,
|
|
76
86
|
404: `Not found error with error details.`,
|
|
@@ -81,14 +91,17 @@ export class GiftCardService {
|
|
|
81
91
|
/**
|
|
82
92
|
* Get gift card checkout information
|
|
83
93
|
* Retrieves gift card information for the checkout page, including applied gift card details and remaining balance.
|
|
94
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
84
95
|
* @returns GiftCardCheckoutInfo Returns gift card checkout information.
|
|
85
96
|
* @throws ApiError
|
|
86
97
|
*/
|
|
87
|
-
public static getGiftCardCheckoutInfo(
|
|
98
|
+
public static getGiftCardCheckoutInfo(
|
|
99
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
88
100
|
): CancelablePromise<GiftCardCheckoutInfo> {
|
|
89
101
|
return __request(OpenAPI, {
|
|
90
102
|
method: 'GET',
|
|
91
|
-
url: '/gift-card/checkout',
|
|
103
|
+
url: '/gift-card/checkout',
|
|
104
|
+
headers: resolveShopperHeaders(context),
|
|
92
105
|
errors: {
|
|
93
106
|
400: `Bad Request error with error details.`,
|
|
94
107
|
404: `Not found error with error details.`,
|
|
@@ -99,14 +112,17 @@ export class GiftCardService {
|
|
|
99
112
|
/**
|
|
100
113
|
* Get gift card edit form data
|
|
101
114
|
* Retrieves the currently applied gift card information for editing purposes.
|
|
115
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
102
116
|
* @returns GiftCardEditFormResponse Returns the applied gift card code and amount.
|
|
103
117
|
* @throws ApiError
|
|
104
118
|
*/
|
|
105
|
-
public static getGiftCardEditForm(
|
|
119
|
+
public static getGiftCardEditForm(
|
|
120
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
106
121
|
): CancelablePromise<GiftCardEditFormResponse> {
|
|
107
122
|
return __request(OpenAPI, {
|
|
108
123
|
method: 'GET',
|
|
109
|
-
url: '/gift-card/edit',
|
|
124
|
+
url: '/gift-card/edit',
|
|
125
|
+
headers: resolveShopperHeaders(context),
|
|
110
126
|
errors: {
|
|
111
127
|
400: `Bad Request error with error details.`,
|
|
112
128
|
404: `Not found error with error details.`,
|