@drttix/drt-sdk 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/src/definitions/shopper.d.ts +2 -0
- package/dist/cjs/src/definitions/shopper.js +6 -4
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/models/CreateShowRequestDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/ShowsList.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +23 -1
- package/dist/cjs/src/generated/shopper/index.js +5 -1
- package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.js +12 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.js +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/cjs/src/generated/shopper/services/CartService.js +50 -21
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/cjs/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +12 -6
- package/dist/cjs/src/generated/shopper/services/EventService.js +30 -13
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/cjs/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.js +78 -0
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -8
- package/dist/cjs/src/generated/shopper/services/SeatService.js +66 -17
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +39 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.js +77 -13
- package/dist/cjs/src/generated/shopper/types.d.ts +21 -1
- package/dist/cjs/src/staging/index.d.ts +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/src/definitions/shopper.d.ts +2 -0
- package/dist/esm/src/definitions/shopper.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/models/CreateShowRequestDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/ShowsList.d.ts +12 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +23 -1
- package/dist/esm/src/generated/shopper/index.js +2 -0
- package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.js +9 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.js +1 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.js +1 -0
- package/dist/esm/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/esm/src/generated/shopper/services/CartService.js +50 -21
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/esm/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +12 -6
- package/dist/esm/src/generated/shopper/services/EventService.js +30 -13
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/esm/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.js +74 -0
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -8
- package/dist/esm/src/generated/shopper/services/SeatService.js +66 -17
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +39 -6
- package/dist/esm/src/generated/shopper/services/SessionService.js +77 -13
- package/dist/esm/src/generated/shopper/types.d.ts +21 -1
- package/dist/esm/src/staging/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/definitions/shopper.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/models/CreateShowRequestDto.ts +1 -1
- package/src/generated/portal/models/CreateUpdateProductRequestDto.ts +4 -4
- package/src/generated/portal/models/ProductDetailResponseDto.ts +2 -2
- package/src/generated/portal/models/SeatResponseDto.ts +1 -0
- package/src/generated/portal/models/ShowsList.ts +12 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +23 -1
- package/src/generated/shopper/models/Account.ts +4 -0
- package/src/generated/shopper/models/AssetDownloadRequest.ts +9 -0
- package/src/generated/shopper/models/AssetDownloadResponse.ts +12 -0
- package/src/generated/shopper/models/CapabilityManifestDto.ts +5 -1
- package/src/generated/shopper/models/ClientRequestErrorResponse.ts +11 -0
- package/src/generated/shopper/models/CreatePaymentLinkBody.ts +23 -0
- package/src/generated/shopper/models/CreatePaymentLinkResponse.ts +45 -0
- package/src/generated/shopper/models/EventDetails.ts +4 -0
- package/src/generated/shopper/models/EventFormat.ts +12 -0
- package/src/generated/shopper/models/EventListItem.ts +4 -0
- package/src/generated/shopper/models/ExchangeValidateResponse.ts +4 -0
- package/src/generated/shopper/models/FullEventDetails.ts +4 -0
- package/src/generated/shopper/models/ManifestSeat.ts +19 -0
- package/src/generated/shopper/models/OrderLookupBody.ts +19 -0
- package/src/generated/shopper/models/OrderLookupResult.ts +19 -0
- package/src/generated/shopper/models/OrderRefundDetails.ts +1 -0
- package/src/generated/shopper/models/PaymentLinkSession.ts +23 -0
- package/src/generated/shopper/models/PaymentLinkStatus.ts +37 -0
- package/src/generated/shopper/models/Receipt.ts +2 -0
- package/src/generated/shopper/models/RefundExchangeOffer.ts +43 -0
- package/src/generated/shopper/models/RefundReason.ts +1 -0
- package/src/generated/shopper/models/RefundRequestInfo.ts +2 -0
- package/src/generated/shopper/models/RegisterStreamResponse.ts +4 -0
- package/src/generated/shopper/models/ResetStreamInviteRequest.ts +13 -0
- package/src/generated/shopper/models/SaveStreamInvitesRequest.ts +15 -0
- package/src/generated/shopper/models/SaveStreamInvitesResponse.ts +12 -0
- package/src/generated/shopper/models/SeatManifest.ts +25 -0
- package/src/generated/shopper/models/SharedStream.ts +42 -0
- package/src/generated/shopper/models/ShowExtras.ts +4 -0
- package/src/generated/shopper/models/StartSupportSessionDto.ts +15 -0
- package/src/generated/shopper/models/StreamAuthorization.ts +19 -0
- package/src/generated/shopper/models/StreamInvite.ts +24 -0
- package/src/generated/shopper/models/StreamInviteInput.ts +12 -0
- package/src/generated/shopper/models/StreamInvitesResponse.ts +13 -0
- package/src/generated/shopper/models/SupportSessionStateDto.ts +19 -0
- package/src/generated/shopper/services/AccountService.ts +20 -4
- package/src/generated/shopper/services/CartService.ts +50 -10
- package/src/generated/shopper/services/CheckoutService.ts +40 -8
- package/src/generated/shopper/services/CodeService.ts +60 -6
- package/src/generated/shopper/services/DonationService.ts +13 -2
- package/src/generated/shopper/services/EventService.ts +30 -6
- package/src/generated/shopper/services/GiftCardService.ts +25 -5
- package/src/generated/shopper/services/OrderService.ts +411 -30
- package/src/generated/shopper/services/PaymentLinkService.ts +93 -0
- package/src/generated/shopper/services/PaymentService.ts +16 -4
- package/src/generated/shopper/services/ProductService.ts +15 -3
- package/src/generated/shopper/services/SeatService.ts +71 -8
- package/src/generated/shopper/services/SessionService.ts +86 -6
- package/src/generated/shopper/types.ts +21 -1
- package/src/generated/shopper/models/PaymentFail.ts +0 -23
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CreatePaymentLinkBody } from '../models/CreatePaymentLinkBody';
|
|
6
|
+
import type { CreatePaymentLinkResponse } from '../models/CreatePaymentLinkResponse';
|
|
7
|
+
import type { PaymentLinkSession } from '../models/PaymentLinkSession';
|
|
8
|
+
import type { PaymentLinkStatus } from '../models/PaymentLinkStatus';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
11
|
+
import { request as __request } from '../core/request';
|
|
12
|
+
import { resolveShopperHeaders } from '../../../functions/sdkConfig';
|
|
13
|
+
export class PaymentLinkService {
|
|
14
|
+
/**
|
|
15
|
+
* Poll the payment link on this session
|
|
16
|
+
* The live (unexpired) link for the calling staff session, if any, plus whether the buyer has paid and what is still owed. Staff only.
|
|
17
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
18
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
19
|
+
* @returns PaymentLinkStatus
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
public static getPaymentLinkStatus(
|
|
23
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
24
|
+
xDrtDomain?: string,
|
|
25
|
+
): CancelablePromise<PaymentLinkStatus> {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: '/payment-link/status',
|
|
29
|
+
headers: {
|
|
30
|
+
'x-drt-domain': xDrtDomain,
|
|
31
|
+
},
|
|
32
|
+
errors: {
|
|
33
|
+
400: `Bad Request error with error details.`,
|
|
34
|
+
403: `Not an operator on this studio.`,
|
|
35
|
+
404: `Not found error with error details.`,
|
|
36
|
+
500: `Internal Server Error, please contact developers.`,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Create and deliver a payment link
|
|
42
|
+
* Mints a short code against the calling staff session and delivers it by SMS, email, or both. An unexpired link on the session is reused rather than replaced. Staff only.
|
|
43
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
44
|
+
* @param requestBody
|
|
45
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
46
|
+
* @returns CreatePaymentLinkResponse
|
|
47
|
+
* @throws ApiError
|
|
48
|
+
*/
|
|
49
|
+
public static createPaymentLink(
|
|
50
|
+
requestBody: CreatePaymentLinkBody,
|
|
51
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
52
|
+
xDrtDomain?: string,
|
|
53
|
+
): CancelablePromise<CreatePaymentLinkResponse> {
|
|
54
|
+
return __request(OpenAPI, {
|
|
55
|
+
method: 'POST',
|
|
56
|
+
url: '/payment-link',
|
|
57
|
+
headers: {
|
|
58
|
+
'x-drt-domain': xDrtDomain,
|
|
59
|
+
},
|
|
60
|
+
body: requestBody,
|
|
61
|
+
mediaType: 'application/json',
|
|
62
|
+
errors: {
|
|
63
|
+
400: `Bad Request error with error details.`,
|
|
64
|
+
403: `Not an operator on this studio.`,
|
|
65
|
+
404: `Not found error with error details.`,
|
|
66
|
+
500: `Internal Server Error, please contact developers.`,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Resolve a payment link for the buyer
|
|
72
|
+
* The amount owed, the name to greet, and the session the payment must be made against. No session of the buyer’s own is involved — the code is the credential. Unknown and expired codes answer 404 alike.
|
|
73
|
+
* @param code
|
|
74
|
+
* @returns PaymentLinkSession
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
public static resolvePaymentLink(
|
|
78
|
+
code: string,
|
|
79
|
+
): CancelablePromise<PaymentLinkSession> {
|
|
80
|
+
return __request(OpenAPI, {
|
|
81
|
+
method: 'GET',
|
|
82
|
+
url: '/payment-link/{code}',
|
|
83
|
+
path: {
|
|
84
|
+
'code': code,
|
|
85
|
+
},
|
|
86
|
+
errors: {
|
|
87
|
+
400: `Bad Request error with error details.`,
|
|
88
|
+
404: `Unknown or expired code.`,
|
|
89
|
+
500: `Internal Server Error, please contact developers.`,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -17,17 +17,21 @@ export class PaymentService {
|
|
|
17
17
|
* Saves the payment data for the shopper with the provided confirmation token.
|
|
18
18
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
19
|
* @param requestBody Summary request body containing the confirmation token.
|
|
20
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
20
21
|
* @returns SuccessResponse Returns a success response.
|
|
21
22
|
* @throws ApiError
|
|
22
23
|
*/
|
|
23
24
|
public static summarizePayment(
|
|
24
25
|
requestBody: SummaryBody,
|
|
25
26
|
context?: { shopperGuid?: string; accountId?: string },
|
|
27
|
+
xDrtDomain?: string,
|
|
26
28
|
): CancelablePromise<SuccessResponse> {
|
|
27
29
|
return __request(OpenAPI, {
|
|
28
30
|
method: 'POST',
|
|
29
31
|
url: '/payment/summary',
|
|
30
|
-
headers:
|
|
32
|
+
headers: {
|
|
33
|
+
'x-drt-domain': xDrtDomain,
|
|
34
|
+
},
|
|
31
35
|
body: requestBody,
|
|
32
36
|
mediaType: 'application/json',
|
|
33
37
|
errors: {
|
|
@@ -42,21 +46,25 @@ export class PaymentService {
|
|
|
42
46
|
* Completes the payment for the shopper using the provided cart hash and IP address.
|
|
43
47
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
44
48
|
* @param requestBody Payment completion request body containing cart hash and IP address.
|
|
49
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
45
50
|
* @returns PaymentSuccess Returns the result of the payment completion.
|
|
46
51
|
* @throws ApiError
|
|
47
52
|
*/
|
|
48
53
|
public static completePayment(
|
|
49
54
|
requestBody: CompleteBody,
|
|
50
55
|
context?: { shopperGuid?: string; accountId?: string },
|
|
56
|
+
xDrtDomain?: string,
|
|
51
57
|
): CancelablePromise<PaymentSuccess> {
|
|
52
58
|
return __request(OpenAPI, {
|
|
53
59
|
method: 'POST',
|
|
54
60
|
url: '/payment/complete',
|
|
55
|
-
headers:
|
|
61
|
+
headers: {
|
|
62
|
+
'x-drt-domain': xDrtDomain,
|
|
63
|
+
},
|
|
56
64
|
body: requestBody,
|
|
57
65
|
mediaType: 'application/json',
|
|
58
66
|
errors: {
|
|
59
|
-
400: `
|
|
67
|
+
400: `The payment was declined or rejected. Carries the downstream errorCode and message.`,
|
|
60
68
|
404: `Not found error with error details.`,
|
|
61
69
|
500: `Internal Server Error, please contact developers.`,
|
|
62
70
|
},
|
|
@@ -66,16 +74,20 @@ export class PaymentService {
|
|
|
66
74
|
* Create payment customer session
|
|
67
75
|
* Creates a new payment customer session for the shopper and account.
|
|
68
76
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
77
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
69
78
|
* @returns CreateCustomerResponse Returns the created customer session.
|
|
70
79
|
* @throws ApiError
|
|
71
80
|
*/
|
|
72
81
|
public static createCustomerSession(
|
|
73
82
|
context?: { shopperGuid?: string; accountId?: string },
|
|
83
|
+
xDrtDomain?: string,
|
|
74
84
|
): CancelablePromise<CreateCustomerResponse> {
|
|
75
85
|
return __request(OpenAPI, {
|
|
76
86
|
method: 'POST',
|
|
77
87
|
url: '/payment/customer',
|
|
78
|
-
headers:
|
|
88
|
+
headers: {
|
|
89
|
+
'x-drt-domain': xDrtDomain,
|
|
90
|
+
},
|
|
79
91
|
errors: {
|
|
80
92
|
400: `Bad Request error with error details.`,
|
|
81
93
|
404: `Not found error with error details.`,
|
|
@@ -16,16 +16,20 @@ export class ProductService {
|
|
|
16
16
|
* Get all products
|
|
17
17
|
* Retrieves all products available for the specified account.
|
|
18
18
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
19
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
19
20
|
* @returns ProductData Returns a list of products for the account.
|
|
20
21
|
* @throws ApiError
|
|
21
22
|
*/
|
|
22
23
|
public static getProducts(
|
|
23
24
|
context?: { shopperGuid?: string; accountId?: string },
|
|
25
|
+
xDrtDomain?: string,
|
|
24
26
|
): CancelablePromise<ProductData> {
|
|
25
27
|
return __request(OpenAPI, {
|
|
26
28
|
method: 'GET',
|
|
27
29
|
url: '/product',
|
|
28
|
-
headers:
|
|
30
|
+
headers: {
|
|
31
|
+
'x-drt-domain': xDrtDomain,
|
|
32
|
+
},
|
|
29
33
|
errors: {
|
|
30
34
|
400: `Bad Request error with error details.`,
|
|
31
35
|
404: `Not found error with error details.`,
|
|
@@ -38,17 +42,21 @@ export class ProductService {
|
|
|
38
42
|
* Adds a new product to the specified account.
|
|
39
43
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
40
44
|
* @param requestBody Product details to add.
|
|
45
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
41
46
|
* @returns ProductAddResponse Returns the result of the product addition.
|
|
42
47
|
* @throws ApiError
|
|
43
48
|
*/
|
|
44
49
|
public static addProduct(
|
|
45
50
|
requestBody: ProductBody,
|
|
46
51
|
context?: { shopperGuid?: string; accountId?: string },
|
|
52
|
+
xDrtDomain?: string,
|
|
47
53
|
): CancelablePromise<ProductAddResponse> {
|
|
48
54
|
return __request(OpenAPI, {
|
|
49
55
|
method: 'POST',
|
|
50
56
|
url: '/product',
|
|
51
|
-
headers:
|
|
57
|
+
headers: {
|
|
58
|
+
'x-drt-domain': xDrtDomain,
|
|
59
|
+
},
|
|
52
60
|
body: requestBody,
|
|
53
61
|
mediaType: 'application/json',
|
|
54
62
|
errors: {
|
|
@@ -63,17 +71,21 @@ export class ProductService {
|
|
|
63
71
|
* Removes a product from the specified account.
|
|
64
72
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
65
73
|
* @param requestBody Product details to remove.
|
|
74
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
66
75
|
* @returns ProductUpdateResponse Returns the result of the product removal.
|
|
67
76
|
* @throws ApiError
|
|
68
77
|
*/
|
|
69
78
|
public static deleteProduct(
|
|
70
79
|
requestBody: ProductDeleteBody,
|
|
71
80
|
context?: { shopperGuid?: string; accountId?: string },
|
|
81
|
+
xDrtDomain?: string,
|
|
72
82
|
): CancelablePromise<ProductUpdateResponse> {
|
|
73
83
|
return __request(OpenAPI, {
|
|
74
84
|
method: 'DELETE',
|
|
75
85
|
url: '/product',
|
|
76
|
-
headers:
|
|
86
|
+
headers: {
|
|
87
|
+
'x-drt-domain': xDrtDomain,
|
|
88
|
+
},
|
|
77
89
|
body: requestBody,
|
|
78
90
|
mediaType: 'application/json',
|
|
79
91
|
errors: {
|
|
@@ -9,6 +9,7 @@ import type { GASeatRelease } from '../models/GASeatRelease';
|
|
|
9
9
|
import type { SeatData } from '../models/SeatData';
|
|
10
10
|
import type { SeatHoldObject } from '../models/SeatHoldObject';
|
|
11
11
|
import type { SeatHoldReturn } from '../models/SeatHoldReturn';
|
|
12
|
+
import type { SeatManifest } from '../models/SeatManifest';
|
|
12
13
|
import type { UpdateTierData } from '../models/UpdateTierData';
|
|
13
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
14
15
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -37,17 +38,21 @@ export class SeatService {
|
|
|
37
38
|
* Streams the occupancy bitfield as application/octet-stream — one bit per seat, MSB-first, in seat-number order. Served from this API's ingest cache (the seat engine pushes every change here), or read from the engine directly on a cache miss. This is the first-paint read and the POLLING fallback; live updates reach the browser over the websocket room provisioned by GET /seat/occupancy/socket.
|
|
38
39
|
* @param eventId The event to read occupancy for.
|
|
39
40
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
41
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
40
42
|
* @returns binary The packed occupancy bitfield.
|
|
41
43
|
* @throws ApiError
|
|
42
44
|
*/
|
|
43
45
|
public static getSeatOccupancy(
|
|
44
46
|
eventId: number,
|
|
45
47
|
context?: { shopperGuid?: string; accountId?: string },
|
|
48
|
+
xDrtDomain?: string,
|
|
46
49
|
): CancelablePromise<Blob> {
|
|
47
50
|
return __request(OpenAPI, {
|
|
48
51
|
method: 'GET',
|
|
49
52
|
url: '/seat/occupancy',
|
|
50
|
-
headers:
|
|
53
|
+
headers: {
|
|
54
|
+
'x-drt-domain': xDrtDomain,
|
|
55
|
+
},
|
|
51
56
|
query: {
|
|
52
57
|
'eventId': eventId,
|
|
53
58
|
},
|
|
@@ -63,17 +68,51 @@ export class SeatService {
|
|
|
63
68
|
* Mints a listen-only websocket-server token bound to this event's occupancy room and returns the connection details: {url, token, roomId, event, expiresAt}. The browser connects with `new WebSocket(url, ["bearer." + token])` and receives {type:"event", event:"occupancy-update", payload:{occupancy}} frames — a 0/1 string, one character per seat, in seat-number order. The token cannot write: the websocket server enforces the listen-only capability itself. No snapshot arrives on join — clients paint from GET /seat/occupancy first. A 503 means "run poll-only for now", not a page failure.
|
|
64
69
|
* @param eventId The event whose occupancy room to join.
|
|
65
70
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
71
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
66
72
|
* @returns any The websocket connection details.
|
|
67
73
|
* @throws ApiError
|
|
68
74
|
*/
|
|
69
75
|
public static getSeatOccupancySocket(
|
|
70
76
|
eventId: number,
|
|
71
77
|
context?: { shopperGuid?: string; accountId?: string },
|
|
78
|
+
xDrtDomain?: string,
|
|
72
79
|
): CancelablePromise<any> {
|
|
73
80
|
return __request(OpenAPI, {
|
|
74
81
|
method: 'GET',
|
|
75
82
|
url: '/seat/occupancy/socket',
|
|
76
|
-
headers:
|
|
83
|
+
headers: {
|
|
84
|
+
'x-drt-domain': xDrtDomain,
|
|
85
|
+
},
|
|
86
|
+
query: {
|
|
87
|
+
'eventId': eventId,
|
|
88
|
+
},
|
|
89
|
+
errors: {
|
|
90
|
+
400: `Bad Request error with error details.`,
|
|
91
|
+
404: `Not found error with error details.`,
|
|
92
|
+
500: `Internal Server Error, please contact developers.`,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Who holds every occupied seat (staff only)
|
|
98
|
+
* One show's occupied seats keyed by seat number — the same numbering GET /seat/occupancy uses — each carrying the buyer name for a sold seat, and no name for a seat that is merely held or blocked. Available seats are absent from the map. Requires a logged-in operator or a whitelisted IP; everyone else gets 403 NOT_STAFF. Cached in memory per studio+event for about five minutes and NEVER refreshed in place, so an entry can lag a very recent sale — `generatedAt` says how far.
|
|
99
|
+
* @param eventId The event to read the manifest for.
|
|
100
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
101
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
102
|
+
* @returns SeatManifest The seat manifest for this event.
|
|
103
|
+
* @throws ApiError
|
|
104
|
+
*/
|
|
105
|
+
public static getSeatManifest(
|
|
106
|
+
eventId: number,
|
|
107
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
108
|
+
xDrtDomain?: string,
|
|
109
|
+
): CancelablePromise<SeatManifest> {
|
|
110
|
+
return __request(OpenAPI, {
|
|
111
|
+
method: 'GET',
|
|
112
|
+
url: '/seat/manifest',
|
|
113
|
+
headers: {
|
|
114
|
+
'x-drt-domain': xDrtDomain,
|
|
115
|
+
},
|
|
77
116
|
query: {
|
|
78
117
|
'eventId': eventId,
|
|
79
118
|
},
|
|
@@ -89,17 +128,21 @@ export class SeatService {
|
|
|
89
128
|
* Holds a reserved seat for the shopper.
|
|
90
129
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
91
130
|
* @param requestBody Seat data for holding a reserved seat
|
|
131
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
92
132
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
93
133
|
* @throws ApiError
|
|
94
134
|
*/
|
|
95
135
|
public static holdReservedSeat(
|
|
96
136
|
requestBody: SeatData,
|
|
97
137
|
context?: { shopperGuid?: string; accountId?: string },
|
|
138
|
+
xDrtDomain?: string,
|
|
98
139
|
): CancelablePromise<SeatHoldReturn> {
|
|
99
140
|
return __request(OpenAPI, {
|
|
100
141
|
method: 'POST',
|
|
101
142
|
url: '/seat/hold-reserved',
|
|
102
|
-
headers:
|
|
143
|
+
headers: {
|
|
144
|
+
'x-drt-domain': xDrtDomain,
|
|
145
|
+
},
|
|
103
146
|
body: requestBody,
|
|
104
147
|
mediaType: 'application/json',
|
|
105
148
|
errors: {
|
|
@@ -114,17 +157,21 @@ export class SeatService {
|
|
|
114
157
|
* Holds a general admission seat for the shopper.
|
|
115
158
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
116
159
|
* @param requestBody Seat data for holding a general admission seat
|
|
160
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
117
161
|
* @returns GAResponse Successfully held the general admission seat.
|
|
118
162
|
* @throws ApiError
|
|
119
163
|
*/
|
|
120
164
|
public static holdGaSeat(
|
|
121
165
|
requestBody: GAHold,
|
|
122
166
|
context?: { shopperGuid?: string; accountId?: string },
|
|
167
|
+
xDrtDomain?: string,
|
|
123
168
|
): CancelablePromise<GAResponse> {
|
|
124
169
|
return __request(OpenAPI, {
|
|
125
170
|
method: 'POST',
|
|
126
171
|
url: '/seat/hold-ga',
|
|
127
|
-
headers:
|
|
172
|
+
headers: {
|
|
173
|
+
'x-drt-domain': xDrtDomain,
|
|
174
|
+
},
|
|
128
175
|
body: requestBody,
|
|
129
176
|
mediaType: 'application/json',
|
|
130
177
|
errors: {
|
|
@@ -139,17 +186,21 @@ export class SeatService {
|
|
|
139
186
|
* Holds a reserved seat for a BA event.
|
|
140
187
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
141
188
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
189
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
142
190
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
143
191
|
* @throws ApiError
|
|
144
192
|
*/
|
|
145
193
|
public static holdBaSeat(
|
|
146
194
|
requestBody: BAHold,
|
|
147
195
|
context?: { shopperGuid?: string; accountId?: string },
|
|
196
|
+
xDrtDomain?: string,
|
|
148
197
|
): CancelablePromise<SeatHoldReturn> {
|
|
149
198
|
return __request(OpenAPI, {
|
|
150
199
|
method: 'POST',
|
|
151
200
|
url: '/seat/hold-ba',
|
|
152
|
-
headers:
|
|
201
|
+
headers: {
|
|
202
|
+
'x-drt-domain': xDrtDomain,
|
|
203
|
+
},
|
|
153
204
|
body: requestBody,
|
|
154
205
|
mediaType: 'application/json',
|
|
155
206
|
errors: {
|
|
@@ -164,17 +215,21 @@ export class SeatService {
|
|
|
164
215
|
* Releases a reserved seat for the shopper.
|
|
165
216
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
166
217
|
* @param requestBody Seat data for releasing a reserved seat
|
|
218
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
167
219
|
* @returns SeatHoldObject Successfully released the reserved seat. Carries the embedded post-release cart state (SEAT-1C).
|
|
168
220
|
* @throws ApiError
|
|
169
221
|
*/
|
|
170
222
|
public static releaseReservedSeat(
|
|
171
223
|
requestBody: SeatData,
|
|
172
224
|
context?: { shopperGuid?: string; accountId?: string },
|
|
225
|
+
xDrtDomain?: string,
|
|
173
226
|
): CancelablePromise<SeatHoldObject> {
|
|
174
227
|
return __request(OpenAPI, {
|
|
175
228
|
method: 'DELETE',
|
|
176
229
|
url: '/seat/release-reserved',
|
|
177
|
-
headers:
|
|
230
|
+
headers: {
|
|
231
|
+
'x-drt-domain': xDrtDomain,
|
|
232
|
+
},
|
|
178
233
|
body: requestBody,
|
|
179
234
|
mediaType: 'application/json',
|
|
180
235
|
errors: {
|
|
@@ -189,17 +244,21 @@ export class SeatService {
|
|
|
189
244
|
* Releases a general admission seat for the shopper.
|
|
190
245
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
191
246
|
* @param requestBody Seat data for releasing a general admission seat
|
|
247
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
192
248
|
* @returns any
|
|
193
249
|
* @throws ApiError
|
|
194
250
|
*/
|
|
195
251
|
public static releaseGaSeat(
|
|
196
252
|
requestBody: GASeatRelease,
|
|
197
253
|
context?: { shopperGuid?: string; accountId?: string },
|
|
254
|
+
xDrtDomain?: string,
|
|
198
255
|
): CancelablePromise<any> {
|
|
199
256
|
return __request(OpenAPI, {
|
|
200
257
|
method: 'DELETE',
|
|
201
258
|
url: '/seat/release-ga',
|
|
202
|
-
headers:
|
|
259
|
+
headers: {
|
|
260
|
+
'x-drt-domain': xDrtDomain,
|
|
261
|
+
},
|
|
203
262
|
body: requestBody,
|
|
204
263
|
mediaType: 'application/json',
|
|
205
264
|
errors: {
|
|
@@ -214,17 +273,21 @@ export class SeatService {
|
|
|
214
273
|
* Updates the tier information for a seat.
|
|
215
274
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
216
275
|
* @param requestBody Data for updating tier information
|
|
276
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
217
277
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
218
278
|
* @throws ApiError
|
|
219
279
|
*/
|
|
220
280
|
public static updateTier(
|
|
221
281
|
requestBody: UpdateTierData,
|
|
222
282
|
context?: { shopperGuid?: string; accountId?: string },
|
|
283
|
+
xDrtDomain?: string,
|
|
223
284
|
): CancelablePromise<UpdateTierData> {
|
|
224
285
|
return __request(OpenAPI, {
|
|
225
286
|
method: 'POST',
|
|
226
287
|
url: '/seat/update-tier',
|
|
227
|
-
headers:
|
|
288
|
+
headers: {
|
|
289
|
+
'x-drt-domain': xDrtDomain,
|
|
290
|
+
},
|
|
228
291
|
body: requestBody,
|
|
229
292
|
mediaType: 'application/json',
|
|
230
293
|
errors: {
|
|
@@ -9,6 +9,8 @@ import type { ExtendTimerResponseDto } from '../models/ExtendTimerResponseDto';
|
|
|
9
9
|
import type { SessionHeartbeatDto } from '../models/SessionHeartbeatDto';
|
|
10
10
|
import type { SessionInfoDto } from '../models/SessionInfoDto';
|
|
11
11
|
import type { SetLanguageDto } from '../models/SetLanguageDto';
|
|
12
|
+
import type { StartSupportSessionDto } from '../models/StartSupportSessionDto';
|
|
13
|
+
import type { SupportSessionStateDto } from '../models/SupportSessionStateDto';
|
|
12
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
13
15
|
import { OpenAPI } from '../core/OpenAPI';
|
|
14
16
|
import { request as __request } from '../core/request';
|
|
@@ -40,16 +42,20 @@ export class SessionService {
|
|
|
40
42
|
* Get Session information
|
|
41
43
|
* Retrieves all Sessions available for the specified account.
|
|
42
44
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
45
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
43
46
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
44
47
|
* @throws ApiError
|
|
45
48
|
*/
|
|
46
49
|
public static getSessions(
|
|
47
50
|
context?: { shopperGuid?: string; accountId?: string },
|
|
51
|
+
xDrtDomain?: string,
|
|
48
52
|
): CancelablePromise<SessionInfoDto> {
|
|
49
53
|
return __request(OpenAPI, {
|
|
50
54
|
method: 'GET',
|
|
51
55
|
url: '/session',
|
|
52
|
-
headers:
|
|
56
|
+
headers: {
|
|
57
|
+
'x-drt-domain': xDrtDomain,
|
|
58
|
+
},
|
|
53
59
|
errors: {
|
|
54
60
|
400: `Bad Request error with error details.`,
|
|
55
61
|
404: `Not found error with error details.`,
|
|
@@ -61,16 +67,20 @@ export class SessionService {
|
|
|
61
67
|
* Get Session Timer Heartbeat
|
|
62
68
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
63
69
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
70
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
64
71
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
65
72
|
* @throws ApiError
|
|
66
73
|
*/
|
|
67
74
|
public static getHeartbeat(
|
|
68
75
|
context?: { shopperGuid?: string; accountId?: string },
|
|
76
|
+
xDrtDomain?: string,
|
|
69
77
|
): CancelablePromise<SessionHeartbeatDto> {
|
|
70
78
|
return __request(OpenAPI, {
|
|
71
79
|
method: 'GET',
|
|
72
80
|
url: '/session/heartbeat',
|
|
73
|
-
headers:
|
|
81
|
+
headers: {
|
|
82
|
+
'x-drt-domain': xDrtDomain,
|
|
83
|
+
},
|
|
74
84
|
errors: {
|
|
75
85
|
400: `Bad Request error with error details.`,
|
|
76
86
|
404: `Not found error with error details.`,
|
|
@@ -83,17 +93,21 @@ export class SessionService {
|
|
|
83
93
|
* Updates the language stored on the shopper session (legacy lang-set).
|
|
84
94
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
85
95
|
* @param requestBody
|
|
96
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
86
97
|
* @returns SessionInfoDto Returns the updated session.
|
|
87
98
|
* @throws ApiError
|
|
88
99
|
*/
|
|
89
100
|
public static setLanguage(
|
|
90
101
|
requestBody: SetLanguageDto,
|
|
91
102
|
context?: { shopperGuid?: string; accountId?: string },
|
|
103
|
+
xDrtDomain?: string,
|
|
92
104
|
): CancelablePromise<SessionInfoDto> {
|
|
93
105
|
return __request(OpenAPI, {
|
|
94
106
|
method: 'POST',
|
|
95
107
|
url: '/session/lang',
|
|
96
|
-
headers:
|
|
108
|
+
headers: {
|
|
109
|
+
'x-drt-domain': xDrtDomain,
|
|
110
|
+
},
|
|
97
111
|
body: requestBody,
|
|
98
112
|
mediaType: 'application/json',
|
|
99
113
|
errors: {
|
|
@@ -107,18 +121,22 @@ export class SessionService {
|
|
|
107
121
|
* Extend the cart timer
|
|
108
122
|
* Extends the cart-hold timer via the Session-Service (legacy extend-cart-timeout). Returns the seconds remaining after extension.
|
|
109
123
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
124
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
110
125
|
* @param requestBody
|
|
111
126
|
* @returns ExtendTimerResponseDto Returns the extended timer state.
|
|
112
127
|
* @throws ApiError
|
|
113
128
|
*/
|
|
114
129
|
public static extendTimer(
|
|
115
130
|
context?: { shopperGuid?: string; accountId?: string },
|
|
131
|
+
xDrtDomain?: string,
|
|
116
132
|
requestBody?: ExtendTimerDto,
|
|
117
133
|
): CancelablePromise<ExtendTimerResponseDto> {
|
|
118
134
|
return __request(OpenAPI, {
|
|
119
135
|
method: 'POST',
|
|
120
136
|
url: '/session/extend',
|
|
121
|
-
headers:
|
|
137
|
+
headers: {
|
|
138
|
+
'x-drt-domain': xDrtDomain,
|
|
139
|
+
},
|
|
122
140
|
body: requestBody,
|
|
123
141
|
mediaType: 'application/json',
|
|
124
142
|
errors: {
|
|
@@ -132,16 +150,20 @@ export class SessionService {
|
|
|
132
150
|
* Shorten the cart timer
|
|
133
151
|
* Shortens the cart-hold timer to 5 seconds from now via the Session-Service (legacy cart-shorten), clearing show_group_id and moving the held seats’ release times with it. Staff debug tool for walking the cart-timeout flow on demand.
|
|
134
152
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
153
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
135
154
|
* @returns ExtendTimerResponseDto Returns the shortened timer state.
|
|
136
155
|
* @throws ApiError
|
|
137
156
|
*/
|
|
138
157
|
public static shortenTimer(
|
|
139
158
|
context?: { shopperGuid?: string; accountId?: string },
|
|
159
|
+
xDrtDomain?: string,
|
|
140
160
|
): CancelablePromise<ExtendTimerResponseDto> {
|
|
141
161
|
return __request(OpenAPI, {
|
|
142
162
|
method: 'POST',
|
|
143
163
|
url: '/session/shorten',
|
|
144
|
-
headers:
|
|
164
|
+
headers: {
|
|
165
|
+
'x-drt-domain': xDrtDomain,
|
|
166
|
+
},
|
|
145
167
|
errors: {
|
|
146
168
|
400: `Bad Request error with error details.`,
|
|
147
169
|
404: `Not found error with error details.`,
|
|
@@ -153,16 +175,74 @@ export class SessionService {
|
|
|
153
175
|
* What this caller may see
|
|
154
176
|
* Returns the operator flag, the debug IP-allowlist flag, and the resulting capability list for the calling session. A rendering hint for the UI — never a permission.
|
|
155
177
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
178
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
156
179
|
* @returns CapabilityManifestDto Capability manifest for the calling session.
|
|
157
180
|
* @throws ApiError
|
|
158
181
|
*/
|
|
159
182
|
public static getCapabilities(
|
|
160
183
|
context?: { shopperGuid?: string; accountId?: string },
|
|
184
|
+
xDrtDomain?: string,
|
|
161
185
|
): CancelablePromise<CapabilityManifestDto> {
|
|
162
186
|
return __request(OpenAPI, {
|
|
163
187
|
method: 'GET',
|
|
164
188
|
url: '/session/capabilities',
|
|
165
|
-
headers:
|
|
189
|
+
headers: {
|
|
190
|
+
'x-drt-domain': xDrtDomain,
|
|
191
|
+
},
|
|
192
|
+
errors: {
|
|
193
|
+
400: `Bad Request error with error details.`,
|
|
194
|
+
404: `Not found error with error details.`,
|
|
195
|
+
500: `Internal Server Error, please contact developers.`,
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Technical assistance state for this session
|
|
201
|
+
* Returns the name on the shopper's session row and whether the session is already flagged for technical assistance. Prefill for the TECH ASSIST tool (legacy rpc/technical-assistant.cfm).
|
|
202
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
203
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
204
|
+
* @returns SupportSessionStateDto The technical assistance state of the calling session.
|
|
205
|
+
* @throws ApiError
|
|
206
|
+
*/
|
|
207
|
+
public static getSupportState(
|
|
208
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
209
|
+
xDrtDomain?: string,
|
|
210
|
+
): CancelablePromise<SupportSessionStateDto> {
|
|
211
|
+
return __request(OpenAPI, {
|
|
212
|
+
method: 'GET',
|
|
213
|
+
url: '/session/support',
|
|
214
|
+
headers: {
|
|
215
|
+
'x-drt-domain': xDrtDomain,
|
|
216
|
+
},
|
|
217
|
+
errors: {
|
|
218
|
+
400: `Bad Request error with error details.`,
|
|
219
|
+
404: `Not found error with error details.`,
|
|
220
|
+
500: `Internal Server Error, please contact developers.`,
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Start a technical assistance session
|
|
226
|
+
* Records the shopper's name on the session row and raises the support flag, so a support representative can find this session (legacy rpc/technical-assistance-start.cfm).
|
|
227
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
228
|
+
* @param requestBody
|
|
229
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
230
|
+
* @returns SupportSessionStateDto The technical assistance state after the flag was raised.
|
|
231
|
+
* @throws ApiError
|
|
232
|
+
*/
|
|
233
|
+
public static startSupportSession(
|
|
234
|
+
requestBody: StartSupportSessionDto,
|
|
235
|
+
context?: { shopperGuid?: string; accountId?: string },
|
|
236
|
+
xDrtDomain?: string,
|
|
237
|
+
): CancelablePromise<SupportSessionStateDto> {
|
|
238
|
+
return __request(OpenAPI, {
|
|
239
|
+
method: 'POST',
|
|
240
|
+
url: '/session/support',
|
|
241
|
+
headers: {
|
|
242
|
+
'x-drt-domain': xDrtDomain,
|
|
243
|
+
},
|
|
244
|
+
body: requestBody,
|
|
245
|
+
mediaType: 'application/json',
|
|
166
246
|
errors: {
|
|
167
247
|
400: `Bad Request error with error details.`,
|
|
168
248
|
404: `Not found error with error details.`,
|