@drttix/drt-sdk 1.3.4 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -4
- package/azure-pipelines.yml +2 -0
- package/dist/cjs/src/functions/sdkConfig.d.ts +47 -16
- package/dist/cjs/src/functions/sdkConfig.js +63 -43
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/core/request.js +41 -7
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/scanner/core/request.js +41 -7
- package/dist/cjs/src/generated/scanner/index.d.ts +1 -0
- package/dist/cjs/src/generated/scanner/models/OrderScan.d.ts +9 -0
- package/dist/cjs/src/generated/scanner/models/OrderScan.js +2 -0
- package/dist/cjs/src/generated/scanner/models/TicketScan.d.ts +1 -0
- package/dist/cjs/src/generated/scanner/services/ScanningService.d.ts +16 -0
- package/dist/cjs/src/generated/scanner/services/ScanningService.js +28 -0
- package/dist/cjs/src/generated/scanner/types.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/request.js +41 -7
- package/dist/cjs/src/generated/shopper/index.d.ts +29 -2
- package/dist/cjs/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/AnswerInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/CartAmounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartClearResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CartCountsLite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/cjs/src/generated/shopper/models/CartTotals.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStep.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/cjs/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/CorrelatedCode.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventLegend.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventLegend.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
- package/dist/cjs/src/generated/shopper/models/EventLegendItem.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +2 -2
- package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.js +2 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/LandingProduct.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/cjs/src/generated/shopper/models/LandingShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/LandingVenue.js +2 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/NextStepResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/cjs/src/generated/shopper/models/OrderBalance.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/SetLanguageDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/cjs/src/generated/shopper/models/StreamDetails.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/cjs/src/generated/shopper/services/CartService.js +98 -7
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/cjs/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/cjs/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/cjs/src/generated/shopper/services/EventService.js +59 -4
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/cjs/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/cjs/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/cjs/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/cjs/src/generated/shopper/types.d.ts +29 -2
- package/dist/cjs/src/scripts/build-all.js +83 -19
- package/dist/esm/src/functions/sdkConfig.d.ts +47 -16
- package/dist/esm/src/functions/sdkConfig.js +61 -41
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/core/request.js +41 -7
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/scanner/core/request.js +41 -7
- package/dist/esm/src/generated/scanner/index.d.ts +1 -0
- package/dist/esm/src/generated/scanner/models/OrderScan.d.ts +9 -0
- package/dist/esm/src/generated/scanner/models/OrderScan.js +1 -0
- package/dist/esm/src/generated/scanner/models/TicketScan.d.ts +1 -0
- package/dist/esm/src/generated/scanner/services/ScanningService.d.ts +16 -0
- package/dist/esm/src/generated/scanner/services/ScanningService.js +28 -0
- package/dist/esm/src/generated/scanner/types.d.ts +1 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/request.js +41 -7
- package/dist/esm/src/generated/shopper/index.d.ts +29 -2
- package/dist/esm/src/generated/shopper/models/AnswerInput.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/AnswerInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartAmounts.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/CartAmounts.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartClearResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CartClearResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CartCountsLite.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartTotals.d.ts +22 -0
- package/dist/esm/src/generated/shopper/models/CartTotals.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStep.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
- package/dist/esm/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/CorrelatedCode.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventLegend.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventLegend.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
- package/dist/esm/src/generated/shopper/models/EventLegendItem.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +2 -2
- package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +24 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.js +1 -0
- package/dist/esm/src/generated/shopper/models/GaTier.d.ts +27 -0
- package/dist/esm/src/generated/shopper/models/GaTier.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/LandingProduct.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.d.ts +16 -0
- package/dist/esm/src/generated/shopper/models/LandingShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/LandingVenue.js +1 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/NextStepResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.d.ts +26 -0
- package/dist/esm/src/generated/shopper/models/OrderBalance.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/SetLanguageDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.d.ts +25 -0
- package/dist/esm/src/generated/shopper/models/StreamDetails.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StreamDownloadLink.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +20 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +13 -4
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +76 -7
- package/dist/esm/src/generated/shopper/services/CartService.js +98 -7
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +47 -14
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +50 -19
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +38 -5
- package/dist/esm/src/generated/shopper/services/CodeService.js +39 -5
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +23 -2
- package/dist/esm/src/generated/shopper/services/DonationService.js +29 -2
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +46 -4
- package/dist/esm/src/generated/shopper/services/EventService.js +59 -4
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +25 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +16 -5
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +209 -16
- package/dist/esm/src/generated/shopper/services/OrderService.js +276 -16
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +10 -3
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +15 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +10 -3
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -6
- package/dist/esm/src/generated/shopper/services/SeatService.js +19 -6
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +37 -2
- package/dist/esm/src/generated/shopper/services/SessionService.js +51 -2
- package/dist/esm/src/generated/shopper/types.d.ts +29 -2
- package/dist/esm/src/scripts/build-all.js +83 -19
- package/package.json +3 -2
- package/pnpm-workspace.yaml +2 -0
- package/src/custom/custom-request.txt +43 -9
- package/src/functions/sdkConfig.ts +91 -54
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/core/request.ts +43 -9
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/scanner/core/request.ts +43 -9
- package/src/generated/scanner/index.ts +1 -0
- package/src/generated/scanner/models/OrderScan.ts +14 -0
- package/src/generated/scanner/models/TicketScan.ts +1 -0
- package/src/generated/scanner/services/ScanningService.ts +38 -0
- package/src/generated/scanner/types.ts +1 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/request.ts +43 -9
- package/src/generated/shopper/index.ts +29 -2
- package/src/generated/shopper/models/AnswerInput.ts +11 -0
- package/src/generated/shopper/models/CartAmounts.ts +43 -0
- package/src/generated/shopper/models/CartClearResult.ts +19 -0
- package/src/generated/shopper/models/CartCountsLite.ts +19 -0
- package/src/generated/shopper/models/CartTotals.ts +27 -0
- package/src/generated/shopper/models/CheckoutStep.ts +15 -0
- package/src/generated/shopper/models/CheckoutStepsResponse.ts +12 -0
- package/src/generated/shopper/models/CheckoutSubmitBody.ts +3 -13
- package/src/generated/shopper/models/CorrelatedCode.ts +19 -0
- package/src/generated/shopper/models/EventLegend.ts +17 -0
- package/src/generated/shopper/models/EventLegendItem.ts +14 -0
- package/src/generated/shopper/models/ExchangeAnswersBody.ts +9 -0
- package/src/generated/shopper/models/ExchangeCancelSeatResponse.ts +12 -0
- package/src/generated/shopper/models/ExchangeShow.ts +17 -0
- package/src/generated/shopper/models/ExchangeShowsResponse.ts +13 -0
- package/src/generated/shopper/models/ExtendTimerDto.ts +11 -0
- package/src/generated/shopper/models/ExtendTimerResponseDto.ts +15 -0
- package/src/generated/shopper/models/FullEventDetails.ts +2 -2
- package/src/generated/shopper/models/GaSelection.ts +29 -0
- package/src/generated/shopper/models/GaTier.ts +32 -0
- package/src/generated/shopper/models/LandingPageResponse.ts +10 -0
- package/src/generated/shopper/models/LandingProduct.ts +16 -0
- package/src/generated/shopper/models/LandingShow.ts +21 -0
- package/src/generated/shopper/models/LandingVenue.ts +15 -0
- package/src/generated/shopper/models/NextStepResponse.ts +12 -0
- package/src/generated/shopper/models/OrderBalance.ts +31 -0
- package/src/generated/shopper/models/OrderPaymentStatus.ts +19 -0
- package/src/generated/shopper/models/PosDefaultInfoResponse.ts +12 -0
- package/src/generated/shopper/models/ProductAddResponse.ts +4 -0
- package/src/generated/shopper/models/SeatInCart.ts +8 -0
- package/src/generated/shopper/models/SetLanguageDto.ts +11 -0
- package/src/generated/shopper/models/ShowExtras.ts +19 -0
- package/src/generated/shopper/models/StreamDetails.ts +30 -0
- package/src/generated/shopper/models/StreamDownloadLink.ts +9 -0
- package/src/generated/shopper/services/AccountService.ts +22 -9
- package/src/generated/shopper/services/CartService.ts +123 -14
- package/src/generated/shopper/services/CheckoutService.ts +69 -29
- package/src/generated/shopper/services/CodeService.ts +58 -15
- package/src/generated/shopper/services/DonationService.ts +38 -5
- package/src/generated/shopper/services/EventService.ts +77 -10
- package/src/generated/shopper/services/GiftCardService.ts +28 -12
- package/src/generated/shopper/services/OrderService.ts +356 -41
- package/src/generated/shopper/services/PaymentService.ts +19 -9
- package/src/generated/shopper/services/ProductService.ts +19 -9
- package/src/generated/shopper/services/SeatService.ts +38 -19
- package/src/generated/shopper/services/SessionService.ts +65 -5
- package/src/generated/shopper/types.ts +29 -2
- package/src/scripts/build-all.ts +127 -26
- package/src/generated/shopper/models/Chart.ts +0 -13
- package/src/generated/shopper/models/SaveNonceBody.ts +0 -15
|
@@ -1,46 +1,79 @@
|
|
|
1
1
|
import type { CheckoutPageData } from '../models/CheckoutPageData';
|
|
2
|
+
import type { CheckoutStepsResponse } from '../models/CheckoutStepsResponse';
|
|
2
3
|
import type { CheckoutSubmitBody } from '../models/CheckoutSubmitBody';
|
|
3
4
|
import type { CheckoutSuccessResponse } from '../models/CheckoutSuccessResponse';
|
|
5
|
+
import type { NextStepResponse } from '../models/NextStepResponse';
|
|
6
|
+
import type { PosDefaultInfoResponse } from '../models/PosDefaultInfoResponse';
|
|
4
7
|
import type { SaveDetailsBody } from '../models/SaveDetailsBody';
|
|
5
|
-
import type { SaveNonceBody } from '../models/SaveNonceBody';
|
|
6
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
9
|
export declare class CheckoutService {
|
|
8
10
|
/**
|
|
9
11
|
* Get checkout page data
|
|
10
12
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
13
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
14
|
* @returns CheckoutPageData Returns checkout page data.
|
|
12
15
|
* @throws ApiError
|
|
13
16
|
*/
|
|
14
|
-
static getCheckout(
|
|
17
|
+
static getCheckout(context?: {
|
|
18
|
+
shopperGuid?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
}): CancelablePromise<CheckoutPageData>;
|
|
15
21
|
/**
|
|
16
22
|
* Submit checkout
|
|
17
|
-
* Validates and saves checkout form data
|
|
23
|
+
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Stripe-only payment flow.
|
|
24
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
18
25
|
* @param requestBody Checkout form data.
|
|
19
26
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
20
27
|
* @throws ApiError
|
|
21
28
|
*/
|
|
22
|
-
static submitCheckout(requestBody: CheckoutSubmitBody
|
|
29
|
+
static submitCheckout(requestBody: CheckoutSubmitBody, context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
34
|
+
* Get the next checkout step
|
|
35
|
+
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
36
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
37
|
+
* @param curr The current step. Defaults to 'seats'.
|
|
38
|
+
* @returns NextStepResponse Returns the next step.
|
|
28
39
|
* @throws ApiError
|
|
29
40
|
*/
|
|
30
|
-
static
|
|
41
|
+
static getNextStep(context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}, curr?: string): CancelablePromise<NextStepResponse>;
|
|
31
45
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
46
|
+
* Get applicable checkout steps
|
|
47
|
+
* Returns the wizard steps that apply to this session, in order, with required flags. Merchandise and donations appear only when items or funds are available. JSON only (replaces the legacy HTML step bar).
|
|
48
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
49
|
+
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
35
50
|
* @throws ApiError
|
|
36
51
|
*/
|
|
37
|
-
static
|
|
52
|
+
static getSteps(context?: {
|
|
53
|
+
shopperGuid?: string;
|
|
54
|
+
accountId?: string;
|
|
55
|
+
}): CancelablePromise<CheckoutStepsResponse>;
|
|
38
56
|
/**
|
|
39
57
|
* Auto-save checkout details
|
|
40
58
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
59
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
41
60
|
* @param requestBody Partial checkout data to auto-save.
|
|
42
61
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
43
62
|
* @throws ApiError
|
|
44
63
|
*/
|
|
45
|
-
static saveDetails(requestBody: SaveDetailsBody
|
|
64
|
+
static saveDetails(requestBody: SaveDetailsBody, context?: {
|
|
65
|
+
shopperGuid?: string;
|
|
66
|
+
accountId?: string;
|
|
67
|
+
}): CancelablePromise<CheckoutSuccessResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Fill contact fields from POS defaults
|
|
70
|
+
* Fills empty session contact fields (name/email/phone) from the account POS defaults and returns the resulting contact. Logged-in shoppers only (legacy default-shopper-set-info).
|
|
71
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
72
|
+
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static fillDefaultInfo(context?: {
|
|
76
|
+
shopperGuid?: string;
|
|
77
|
+
accountId?: string;
|
|
78
|
+
}): CancelablePromise<PosDefaultInfoResponse>;
|
|
46
79
|
}
|
|
@@ -3,17 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CheckoutService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
+
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
6
7
|
class CheckoutService {
|
|
7
8
|
/**
|
|
8
9
|
* Get checkout page data
|
|
9
10
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
11
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
10
12
|
* @returns CheckoutPageData Returns checkout page data.
|
|
11
13
|
* @throws ApiError
|
|
12
14
|
*/
|
|
13
|
-
static getCheckout() {
|
|
15
|
+
static getCheckout(context) {
|
|
14
16
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
17
|
method: 'GET',
|
|
16
18
|
url: '/checkout',
|
|
19
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
17
20
|
errors: {
|
|
18
21
|
400: `Bad Request error with error details.`,
|
|
19
22
|
404: `Not found error with error details.`,
|
|
@@ -23,15 +26,17 @@ class CheckoutService {
|
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Submit checkout
|
|
26
|
-
* Validates and saves checkout form data
|
|
29
|
+
* Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Stripe-only payment flow.
|
|
30
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
27
31
|
* @param requestBody Checkout form data.
|
|
28
32
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
29
33
|
* @throws ApiError
|
|
30
34
|
*/
|
|
31
|
-
static submitCheckout(requestBody) {
|
|
35
|
+
static submitCheckout(requestBody, context) {
|
|
32
36
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
33
37
|
method: 'POST',
|
|
34
38
|
url: '/checkout',
|
|
39
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
35
40
|
body: requestBody,
|
|
36
41
|
mediaType: 'application/json',
|
|
37
42
|
errors: {
|
|
@@ -42,18 +47,21 @@ class CheckoutService {
|
|
|
42
47
|
});
|
|
43
48
|
}
|
|
44
49
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* @param
|
|
48
|
-
* @
|
|
50
|
+
* Get the next checkout step
|
|
51
|
+
* Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
|
|
52
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
53
|
+
* @param curr The current step. Defaults to 'seats'.
|
|
54
|
+
* @returns NextStepResponse Returns the next step.
|
|
49
55
|
* @throws ApiError
|
|
50
56
|
*/
|
|
51
|
-
static
|
|
57
|
+
static getNextStep(context, curr) {
|
|
52
58
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
53
|
-
method: '
|
|
54
|
-
url: '/checkout/
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
method: 'GET',
|
|
60
|
+
url: '/checkout/next-step',
|
|
61
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
62
|
+
query: {
|
|
63
|
+
'curr': curr,
|
|
64
|
+
},
|
|
57
65
|
errors: {
|
|
58
66
|
400: `Bad Request error with error details.`,
|
|
59
67
|
404: `Not found error with error details.`,
|
|
@@ -62,15 +70,17 @@ class CheckoutService {
|
|
|
62
70
|
});
|
|
63
71
|
}
|
|
64
72
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* @
|
|
73
|
+
* Get applicable checkout steps
|
|
74
|
+
* Returns the wizard steps that apply to this session, in order, with required flags. Merchandise and donations appear only when items or funds are available. JSON only (replaces the legacy HTML step bar).
|
|
75
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
76
|
+
* @returns CheckoutStepsResponse Returns the applicable steps.
|
|
68
77
|
* @throws ApiError
|
|
69
78
|
*/
|
|
70
|
-
static
|
|
79
|
+
static getSteps(context) {
|
|
71
80
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
72
|
-
method: '
|
|
73
|
-
url: '/checkout/
|
|
81
|
+
method: 'GET',
|
|
82
|
+
url: '/checkout/steps',
|
|
83
|
+
headers: (0, sdkConfig_1.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,16 @@ class CheckoutService {
|
|
|
81
91
|
/**
|
|
82
92
|
* Auto-save checkout details
|
|
83
93
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
94
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
84
95
|
* @param requestBody Partial checkout data to auto-save.
|
|
85
96
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
86
97
|
* @throws ApiError
|
|
87
98
|
*/
|
|
88
|
-
static saveDetails(requestBody) {
|
|
99
|
+
static saveDetails(requestBody, context) {
|
|
89
100
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
90
101
|
method: 'POST',
|
|
91
102
|
url: '/checkout/details',
|
|
103
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
92
104
|
body: requestBody,
|
|
93
105
|
mediaType: 'application/json',
|
|
94
106
|
errors: {
|
|
@@ -98,5 +110,24 @@ class CheckoutService {
|
|
|
98
110
|
},
|
|
99
111
|
});
|
|
100
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Fill contact fields from POS defaults
|
|
115
|
+
* Fills empty session contact fields (name/email/phone) from the account POS defaults and returns the resulting contact. Logged-in shoppers only (legacy default-shopper-set-info).
|
|
116
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
117
|
+
* @returns PosDefaultInfoResponse Returns the filled-in contact info.
|
|
118
|
+
* @throws ApiError
|
|
119
|
+
*/
|
|
120
|
+
static fillDefaultInfo(context) {
|
|
121
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
122
|
+
method: 'POST',
|
|
123
|
+
url: '/checkout/default-info',
|
|
124
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
125
|
+
errors: {
|
|
126
|
+
400: `Bad Request error with error details.`,
|
|
127
|
+
404: `Not found error with error details.`,
|
|
128
|
+
500: `Internal Server Error, please contact developers.`,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
101
132
|
}
|
|
102
133
|
exports.CheckoutService = CheckoutService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CodeDto } from '../models/CodeDto';
|
|
2
|
+
import type { CorrelatedCode } from '../models/CorrelatedCode';
|
|
2
3
|
import type { HasAccessResponse } from '../models/HasAccessResponse';
|
|
3
4
|
import type { PriorityCode } from '../models/PriorityCode';
|
|
4
5
|
import type { SuccessWithTime } from '../models/SuccessWithTime';
|
|
@@ -9,40 +10,72 @@ export declare class CodeService {
|
|
|
9
10
|
* Request access to an event
|
|
10
11
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
11
12
|
* @param eventId ID of the event for which access is requested
|
|
13
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
12
14
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
13
15
|
* @throws ApiError
|
|
14
16
|
*/
|
|
15
|
-
static requestEventAccess(eventId: number
|
|
17
|
+
static requestEventAccess(eventId: number, context?: {
|
|
18
|
+
shopperGuid?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
}): CancelablePromise<HasAccessResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List the codes correlated to a patron code
|
|
23
|
+
* Given a patron code, returns the priority/coupon codes tied to that patron's email so the shopper can choose which to apply (CODE-3).
|
|
24
|
+
* @param code The patron code to look up.
|
|
25
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
26
|
+
* @returns CorrelatedCode Returns the correlated codes.
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static getPatronCodes(code: string, context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<Array<CorrelatedCode>>;
|
|
16
33
|
/**
|
|
17
34
|
* Apply a code to the current shopper session
|
|
18
35
|
* Applies a code to the current shopper session.
|
|
36
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
37
|
* @param requestBody Code to be applied
|
|
20
38
|
* @returns SuccessWithTime Code applied successfully.
|
|
21
39
|
* @throws ApiError
|
|
22
40
|
*/
|
|
23
|
-
static applyCode(requestBody: CodeDto
|
|
41
|
+
static applyCode(requestBody: CodeDto, context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}): CancelablePromise<SuccessWithTime>;
|
|
24
45
|
/**
|
|
25
46
|
* Apply a coupon to the current shopper session
|
|
26
47
|
* Applies a coupon to the current shopper session.
|
|
48
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
27
49
|
* @param requestBody Coupon code to be applied
|
|
28
50
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
29
51
|
* @throws ApiError
|
|
30
52
|
*/
|
|
31
|
-
static applyCoupon(requestBody: CodeDto
|
|
53
|
+
static applyCoupon(requestBody: CodeDto, context?: {
|
|
54
|
+
shopperGuid?: string;
|
|
55
|
+
accountId?: string;
|
|
56
|
+
}): CancelablePromise<UniversalCodeResponse>;
|
|
32
57
|
/**
|
|
33
58
|
* Remove a coupon from the current shopper session
|
|
34
59
|
* Removes a coupon from the current shopper session.
|
|
60
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
35
61
|
* @param requestBody Coupon code to be removed
|
|
36
62
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
37
63
|
* @throws ApiError
|
|
38
64
|
*/
|
|
39
|
-
static removeCoupon(requestBody: CodeDto
|
|
65
|
+
static removeCoupon(requestBody: CodeDto, context?: {
|
|
66
|
+
shopperGuid?: string;
|
|
67
|
+
accountId?: string;
|
|
68
|
+
}): CancelablePromise<UniversalCodeResponse>;
|
|
40
69
|
/**
|
|
41
70
|
* Apply Priority Code
|
|
42
71
|
* Applies a priority code to the cart.
|
|
72
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
43
73
|
* @param requestBody Priority code data to be applied
|
|
44
74
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
45
75
|
* @throws ApiError
|
|
46
76
|
*/
|
|
47
|
-
static applyPriorityCode(requestBody: PriorityCode
|
|
77
|
+
static applyPriorityCode(requestBody: PriorityCode, context?: {
|
|
78
|
+
shopperGuid?: string;
|
|
79
|
+
accountId?: string;
|
|
80
|
+
}): CancelablePromise<SuccessWithTime>;
|
|
48
81
|
}
|
|
@@ -3,18 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CodeService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
+
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
6
7
|
class CodeService {
|
|
7
8
|
/**
|
|
8
9
|
* Request access to an event
|
|
9
10
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
10
11
|
* @param eventId ID of the event for which access is requested
|
|
12
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
13
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
12
14
|
* @throws ApiError
|
|
13
15
|
*/
|
|
14
|
-
static requestEventAccess(eventId) {
|
|
16
|
+
static requestEventAccess(eventId, context) {
|
|
15
17
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
18
|
method: 'GET',
|
|
17
19
|
url: '/code/access',
|
|
20
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
18
21
|
query: {
|
|
19
22
|
'eventId': eventId,
|
|
20
23
|
},
|
|
@@ -25,17 +28,42 @@ class CodeService {
|
|
|
25
28
|
},
|
|
26
29
|
});
|
|
27
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* List the codes correlated to a patron code
|
|
33
|
+
* Given a patron code, returns the priority/coupon codes tied to that patron's email so the shopper can choose which to apply (CODE-3).
|
|
34
|
+
* @param code The patron code to look up.
|
|
35
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
|
+
* @returns CorrelatedCode Returns the correlated codes.
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static getPatronCodes(code, context) {
|
|
40
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
41
|
+
method: 'GET',
|
|
42
|
+
url: '/code/patron',
|
|
43
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
44
|
+
query: {
|
|
45
|
+
'code': code,
|
|
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
|
+
}
|
|
28
54
|
/**
|
|
29
55
|
* Apply a code to the current shopper session
|
|
30
56
|
* Applies a code to the current shopper session.
|
|
57
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
31
58
|
* @param requestBody Code to be applied
|
|
32
59
|
* @returns SuccessWithTime Code applied successfully.
|
|
33
60
|
* @throws ApiError
|
|
34
61
|
*/
|
|
35
|
-
static applyCode(requestBody) {
|
|
62
|
+
static applyCode(requestBody, context) {
|
|
36
63
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
64
|
method: 'POST',
|
|
38
65
|
url: '/code',
|
|
66
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
39
67
|
body: requestBody,
|
|
40
68
|
mediaType: 'application/json',
|
|
41
69
|
errors: {
|
|
@@ -48,14 +76,16 @@ class CodeService {
|
|
|
48
76
|
/**
|
|
49
77
|
* Apply a coupon to the current shopper session
|
|
50
78
|
* Applies a coupon to the current shopper session.
|
|
79
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
51
80
|
* @param requestBody Coupon code to be applied
|
|
52
81
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
53
82
|
* @throws ApiError
|
|
54
83
|
*/
|
|
55
|
-
static applyCoupon(requestBody) {
|
|
84
|
+
static applyCoupon(requestBody, context) {
|
|
56
85
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
57
86
|
method: 'POST',
|
|
58
87
|
url: '/code/discount',
|
|
88
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
59
89
|
body: requestBody,
|
|
60
90
|
mediaType: 'application/json',
|
|
61
91
|
errors: {
|
|
@@ -68,14 +98,16 @@ class CodeService {
|
|
|
68
98
|
/**
|
|
69
99
|
* Remove a coupon from the current shopper session
|
|
70
100
|
* Removes a coupon from the current shopper session.
|
|
101
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
71
102
|
* @param requestBody Coupon code to be removed
|
|
72
103
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
73
104
|
* @throws ApiError
|
|
74
105
|
*/
|
|
75
|
-
static removeCoupon(requestBody) {
|
|
106
|
+
static removeCoupon(requestBody, context) {
|
|
76
107
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
77
108
|
method: 'DELETE',
|
|
78
109
|
url: '/code/discount',
|
|
110
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
79
111
|
body: requestBody,
|
|
80
112
|
mediaType: 'application/json',
|
|
81
113
|
errors: {
|
|
@@ -88,14 +120,16 @@ class CodeService {
|
|
|
88
120
|
/**
|
|
89
121
|
* Apply Priority Code
|
|
90
122
|
* Applies a priority code to the cart.
|
|
123
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
91
124
|
* @param requestBody Priority code data to be applied
|
|
92
125
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
93
126
|
* @throws ApiError
|
|
94
127
|
*/
|
|
95
|
-
static applyPriorityCode(requestBody) {
|
|
128
|
+
static applyPriorityCode(requestBody, context) {
|
|
96
129
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
97
130
|
method: 'POST',
|
|
98
131
|
url: '/code/priority',
|
|
132
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
99
133
|
body: requestBody,
|
|
100
134
|
mediaType: 'application/json',
|
|
101
135
|
errors: {
|
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
import type { DonationContribution } from '../models/DonationContribution';
|
|
2
2
|
import type { DonationResult } from '../models/DonationResult';
|
|
3
3
|
import type { DonationsandContributions } from '../models/DonationsandContributions';
|
|
4
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
4
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
6
|
export declare class DonationService {
|
|
6
7
|
/**
|
|
7
8
|
* Get all donations for a shopper
|
|
8
9
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
10
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
9
11
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
10
12
|
* @throws ApiError
|
|
11
13
|
*/
|
|
12
|
-
static getDonations(
|
|
14
|
+
static getDonations(context?: {
|
|
15
|
+
shopperGuid?: string;
|
|
16
|
+
accountId?: string;
|
|
17
|
+
}): CancelablePromise<DonationsandContributions>;
|
|
13
18
|
/**
|
|
14
19
|
* Add a donation or contribution
|
|
15
20
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
16
21
|
* @param ipAddress API key for authentication.
|
|
22
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
17
23
|
* @param requestBody Donation or contribution details to add.
|
|
18
24
|
* @returns DonationResult Returns the result of the donation addition.
|
|
19
25
|
* @throws ApiError
|
|
20
26
|
*/
|
|
21
|
-
static postDonation(ipAddress: string, requestBody: DonationContribution
|
|
27
|
+
static postDonation(ipAddress: string, requestBody: DonationContribution, context?: {
|
|
28
|
+
shopperGuid?: string;
|
|
29
|
+
accountId?: string;
|
|
30
|
+
}): CancelablePromise<DonationResult>;
|
|
31
|
+
/**
|
|
32
|
+
* Remove a donation from the cart
|
|
33
|
+
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
34
|
+
* @param fundId The donation fund id to remove.
|
|
35
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
|
+
* @returns SuccessResponse Returns success after removing the donation.
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static deleteDonation(fundId: number, context?: {
|
|
40
|
+
shopperGuid?: string;
|
|
41
|
+
accountId?: string;
|
|
42
|
+
}): CancelablePromise<SuccessResponse>;
|
|
22
43
|
}
|
|
@@ -3,17 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DonationService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
+
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
6
7
|
class DonationService {
|
|
7
8
|
/**
|
|
8
9
|
* Get all donations for a shopper
|
|
9
10
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
11
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
10
12
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
11
13
|
* @throws ApiError
|
|
12
14
|
*/
|
|
13
|
-
static getDonations() {
|
|
15
|
+
static getDonations(context) {
|
|
14
16
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
17
|
method: 'GET',
|
|
16
18
|
url: '/donation',
|
|
19
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
17
20
|
errors: {
|
|
18
21
|
400: `Bad Request error with error details.`,
|
|
19
22
|
404: `Not found error with error details.`,
|
|
@@ -25,11 +28,12 @@ class DonationService {
|
|
|
25
28
|
* Add a donation or contribution
|
|
26
29
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
27
30
|
* @param ipAddress API key for authentication.
|
|
31
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
32
|
* @param requestBody Donation or contribution details to add.
|
|
29
33
|
* @returns DonationResult Returns the result of the donation addition.
|
|
30
34
|
* @throws ApiError
|
|
31
35
|
*/
|
|
32
|
-
static postDonation(ipAddress, requestBody) {
|
|
36
|
+
static postDonation(ipAddress, requestBody, context) {
|
|
33
37
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
34
38
|
method: 'POST',
|
|
35
39
|
url: '/donation',
|
|
@@ -45,5 +49,28 @@ class DonationService {
|
|
|
45
49
|
},
|
|
46
50
|
});
|
|
47
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Remove a donation from the cart
|
|
54
|
+
* Removes the shopper's donation to the given fund and re-runs the payment/tax recompute chain (legacy donation-delete).
|
|
55
|
+
* @param fundId The donation fund id to remove.
|
|
56
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
57
|
+
* @returns SuccessResponse Returns success after removing the donation.
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static deleteDonation(fundId, context) {
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
+
method: 'DELETE',
|
|
63
|
+
url: '/donation',
|
|
64
|
+
headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
|
|
65
|
+
query: {
|
|
66
|
+
'fundId': fundId,
|
|
67
|
+
},
|
|
68
|
+
errors: {
|
|
69
|
+
400: `Bad Request error with error details.`,
|
|
70
|
+
404: `Not found error with error details.`,
|
|
71
|
+
500: `Internal Server Error, please contact developers.`,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
48
75
|
}
|
|
49
76
|
exports.DonationService = DonationService;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { EventLegend } from '../models/EventLegend';
|
|
1
2
|
import type { FullEventDetails } from '../models/FullEventDetails';
|
|
3
|
+
import type { GaSelection } from '../models/GaSelection';
|
|
2
4
|
import type { GetEventsResponse } from '../models/GetEventsResponse';
|
|
3
5
|
import type { PerformerEventList } from '../models/PerformerEventList';
|
|
4
6
|
import type { WaitlistResponse } from '../models/WaitlistResponse';
|
|
@@ -8,32 +10,72 @@ export declare class EventService {
|
|
|
8
10
|
/**
|
|
9
11
|
* Get all events for a shopper
|
|
10
12
|
* Retrieves all events associated with the shopper.
|
|
13
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
11
14
|
* @returns GetEventsResponse Returns a list of events and their groups.
|
|
12
15
|
* @throws ApiError
|
|
13
16
|
*/
|
|
14
|
-
static getEvents(
|
|
17
|
+
static getEvents(context?: {
|
|
18
|
+
shopperGuid?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
}): CancelablePromise<GetEventsResponse>;
|
|
15
21
|
/**
|
|
16
22
|
* Get events for a specific performer
|
|
17
23
|
* Retrieves events associated with a specific performer.
|
|
18
24
|
* @param performer The name of the performer to filter events by.
|
|
25
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
26
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
20
27
|
* @throws ApiError
|
|
21
28
|
*/
|
|
22
|
-
static getPerformers(performer: string
|
|
29
|
+
static getPerformers(performer: string, context?: {
|
|
30
|
+
shopperGuid?: string;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
}): CancelablePromise<Array<PerformerEventList>>;
|
|
23
33
|
/**
|
|
24
34
|
* Get event details by ID
|
|
25
35
|
* Retrieves detailed information for a specific event.
|
|
26
36
|
* @param id
|
|
37
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
27
38
|
* @returns FullEventDetails Returns the event details.
|
|
28
39
|
* @throws ApiError
|
|
29
40
|
*/
|
|
30
|
-
static getEventById(id: number
|
|
41
|
+
static getEventById(id: number, context?: {
|
|
42
|
+
shopperGuid?: string;
|
|
43
|
+
accountId?: string;
|
|
44
|
+
}): CancelablePromise<FullEventDetails>;
|
|
45
|
+
/**
|
|
46
|
+
* Get the seat-map legend for an event
|
|
47
|
+
* Returns the structured seat-map legend (per-tier color/label, the raw legend text, and the chair-token color map) as JSON (SEAT-2).
|
|
48
|
+
* @param id
|
|
49
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
50
|
+
* @returns EventLegend Returns the event legend.
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static getEventLegend(id: number, context?: {
|
|
54
|
+
shopperGuid?: string;
|
|
55
|
+
accountId?: string;
|
|
56
|
+
}): CancelablePromise<EventLegend>;
|
|
57
|
+
/**
|
|
58
|
+
* Get GA / best-available selection data for an event
|
|
59
|
+
* Returns the GA/BA purchase-view payload: per-tier advance/door/effective price, capacity & remaining, plus order limits and lap-child policy (SEAT-3).
|
|
60
|
+
* @param id
|
|
61
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
62
|
+
* @returns GaSelection Returns the GA selection payload.
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
static getGaSelection(id: number, context?: {
|
|
66
|
+
shopperGuid?: string;
|
|
67
|
+
accountId?: string;
|
|
68
|
+
}): CancelablePromise<GaSelection>;
|
|
31
69
|
/**
|
|
32
70
|
* Assign names to the waitlist
|
|
33
71
|
* Updates the waitlist with shopper details.
|
|
72
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
34
73
|
* @param requestBody Details of the waitlist update
|
|
35
74
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
36
75
|
* @throws ApiError
|
|
37
76
|
*/
|
|
38
|
-
static postWishlist(requestBody: WaitlistUpdate
|
|
77
|
+
static postWishlist(requestBody: WaitlistUpdate, context?: {
|
|
78
|
+
shopperGuid?: string;
|
|
79
|
+
accountId?: string;
|
|
80
|
+
}): CancelablePromise<WaitlistResponse>;
|
|
39
81
|
}
|