@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.
Files changed (254) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/src/definitions/shopper.d.ts +2 -0
  3. package/dist/cjs/src/definitions/shopper.js +6 -4
  4. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  5. package/dist/cjs/src/generated/portal/models/CreateShowRequestDto.d.ts +1 -1
  6. package/dist/cjs/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
  7. package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
  8. package/dist/cjs/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
  9. package/dist/cjs/src/generated/portal/models/ShowsList.d.ts +12 -0
  10. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  11. package/dist/cjs/src/generated/shopper/index.d.ts +23 -1
  12. package/dist/cjs/src/generated/shopper/index.js +5 -1
  13. package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
  14. package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
  15. package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.js +2 -0
  16. package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
  17. package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.js +2 -0
  18. package/dist/cjs/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
  19. package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
  20. package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.js +2 -0
  21. package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
  22. package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.js +2 -0
  23. package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
  24. package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.js +2 -0
  25. package/dist/cjs/src/generated/shopper/models/EventDetails.d.ts +4 -0
  26. package/dist/cjs/src/generated/shopper/models/EventFormat.d.ts +12 -0
  27. package/dist/cjs/src/generated/shopper/models/EventListItem.d.ts +4 -0
  28. package/dist/cjs/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
  29. package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
  30. package/dist/cjs/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
  31. package/dist/cjs/src/generated/shopper/models/ManifestSeat.js +12 -0
  32. package/dist/cjs/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
  33. package/dist/cjs/src/generated/shopper/models/OrderLookupBody.js +2 -0
  34. package/dist/cjs/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
  35. package/dist/cjs/src/generated/shopper/models/OrderLookupResult.js +2 -0
  36. package/dist/cjs/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
  37. package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
  38. package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.js +2 -0
  39. package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
  40. package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.js +2 -0
  41. package/dist/cjs/src/generated/shopper/models/Receipt.d.ts +2 -0
  42. package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
  43. package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.js +2 -0
  44. package/dist/cjs/src/generated/shopper/models/RefundReason.d.ts +1 -0
  45. package/dist/cjs/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
  46. package/dist/cjs/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
  47. package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
  48. package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.js +2 -0
  49. package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
  50. package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.js +2 -0
  51. package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
  52. package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.js +2 -0
  53. package/dist/cjs/src/generated/shopper/models/SeatManifest.d.ts +20 -0
  54. package/dist/cjs/src/generated/shopper/models/SeatManifest.js +2 -0
  55. package/dist/cjs/src/generated/shopper/models/SharedStream.d.ts +37 -0
  56. package/dist/cjs/src/generated/shopper/models/SharedStream.js +2 -0
  57. package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +4 -0
  58. package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
  59. package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.js +2 -0
  60. package/dist/cjs/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
  61. package/dist/cjs/src/generated/shopper/models/StreamAuthorization.js +2 -0
  62. package/dist/cjs/src/generated/shopper/models/StreamInvite.d.ts +19 -0
  63. package/dist/cjs/src/generated/shopper/models/StreamInvite.js +2 -0
  64. package/dist/cjs/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
  65. package/dist/cjs/src/generated/shopper/models/StreamInviteInput.js +2 -0
  66. package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
  67. package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.js +2 -0
  68. package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
  69. package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.js +2 -0
  70. package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +8 -4
  71. package/dist/cjs/src/generated/shopper/services/AccountService.js +20 -9
  72. package/dist/cjs/src/generated/shopper/services/CartService.d.ts +20 -10
  73. package/dist/cjs/src/generated/shopper/services/CartService.js +50 -21
  74. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +16 -8
  75. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +40 -17
  76. package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +26 -6
  77. package/dist/cjs/src/generated/shopper/services/CodeService.js +55 -13
  78. package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +6 -3
  79. package/dist/cjs/src/generated/shopper/services/DonationService.js +13 -6
  80. package/dist/cjs/src/generated/shopper/services/EventService.d.ts +12 -6
  81. package/dist/cjs/src/generated/shopper/services/EventService.js +30 -13
  82. package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +10 -5
  83. package/dist/cjs/src/generated/shopper/services/GiftCardService.js +25 -11
  84. package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +179 -30
  85. package/dist/cjs/src/generated/shopper/services/OrderService.js +364 -61
  86. package/dist/cjs/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
  87. package/dist/cjs/src/generated/shopper/services/PaymentLinkService.js +78 -0
  88. package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +6 -3
  89. package/dist/cjs/src/generated/shopper/services/PaymentService.js +16 -8
  90. package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +6 -3
  91. package/dist/cjs/src/generated/shopper/services/ProductService.js +15 -7
  92. package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -8
  93. package/dist/cjs/src/generated/shopper/services/SeatService.js +66 -17
  94. package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +39 -6
  95. package/dist/cjs/src/generated/shopper/services/SessionService.js +77 -13
  96. package/dist/cjs/src/generated/shopper/types.d.ts +21 -1
  97. package/dist/cjs/src/staging/index.d.ts +1 -0
  98. package/dist/esm/index.d.ts +1 -0
  99. package/dist/esm/src/definitions/shopper.d.ts +2 -0
  100. package/dist/esm/src/definitions/shopper.js +2 -0
  101. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  102. package/dist/esm/src/generated/portal/models/CreateShowRequestDto.d.ts +1 -1
  103. package/dist/esm/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
  104. package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
  105. package/dist/esm/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
  106. package/dist/esm/src/generated/portal/models/ShowsList.d.ts +12 -0
  107. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  108. package/dist/esm/src/generated/shopper/index.d.ts +23 -1
  109. package/dist/esm/src/generated/shopper/index.js +2 -0
  110. package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
  111. package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
  112. package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.js +1 -0
  113. package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
  114. package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.js +1 -0
  115. package/dist/esm/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
  116. package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
  117. package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.js +1 -0
  118. package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
  119. package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.js +1 -0
  120. package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
  121. package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.js +1 -0
  122. package/dist/esm/src/generated/shopper/models/EventDetails.d.ts +4 -0
  123. package/dist/esm/src/generated/shopper/models/EventFormat.d.ts +12 -0
  124. package/dist/esm/src/generated/shopper/models/EventListItem.d.ts +4 -0
  125. package/dist/esm/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
  126. package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
  127. package/dist/esm/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
  128. package/dist/esm/src/generated/shopper/models/ManifestSeat.js +9 -0
  129. package/dist/esm/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
  130. package/dist/esm/src/generated/shopper/models/OrderLookupBody.js +1 -0
  131. package/dist/esm/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
  132. package/dist/esm/src/generated/shopper/models/OrderLookupResult.js +1 -0
  133. package/dist/esm/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
  134. package/dist/esm/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
  135. package/dist/esm/src/generated/shopper/models/PaymentLinkSession.js +1 -0
  136. package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
  137. package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.js +1 -0
  138. package/dist/esm/src/generated/shopper/models/Receipt.d.ts +2 -0
  139. package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
  140. package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.js +1 -0
  141. package/dist/esm/src/generated/shopper/models/RefundReason.d.ts +1 -0
  142. package/dist/esm/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
  143. package/dist/esm/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
  144. package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
  145. package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.js +1 -0
  146. package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
  147. package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.js +1 -0
  148. package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
  149. package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.js +1 -0
  150. package/dist/esm/src/generated/shopper/models/SeatManifest.d.ts +20 -0
  151. package/dist/esm/src/generated/shopper/models/SeatManifest.js +1 -0
  152. package/dist/esm/src/generated/shopper/models/SharedStream.d.ts +37 -0
  153. package/dist/esm/src/generated/shopper/models/SharedStream.js +1 -0
  154. package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +4 -0
  155. package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
  156. package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.js +1 -0
  157. package/dist/esm/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
  158. package/dist/esm/src/generated/shopper/models/StreamAuthorization.js +1 -0
  159. package/dist/esm/src/generated/shopper/models/StreamInvite.d.ts +19 -0
  160. package/dist/esm/src/generated/shopper/models/StreamInvite.js +1 -0
  161. package/dist/esm/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
  162. package/dist/esm/src/generated/shopper/models/StreamInviteInput.js +1 -0
  163. package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
  164. package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.js +1 -0
  165. package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
  166. package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.js +1 -0
  167. package/dist/esm/src/generated/shopper/services/AccountService.d.ts +8 -4
  168. package/dist/esm/src/generated/shopper/services/AccountService.js +20 -9
  169. package/dist/esm/src/generated/shopper/services/CartService.d.ts +20 -10
  170. package/dist/esm/src/generated/shopper/services/CartService.js +50 -21
  171. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +16 -8
  172. package/dist/esm/src/generated/shopper/services/CheckoutService.js +40 -17
  173. package/dist/esm/src/generated/shopper/services/CodeService.d.ts +26 -6
  174. package/dist/esm/src/generated/shopper/services/CodeService.js +55 -13
  175. package/dist/esm/src/generated/shopper/services/DonationService.d.ts +6 -3
  176. package/dist/esm/src/generated/shopper/services/DonationService.js +13 -6
  177. package/dist/esm/src/generated/shopper/services/EventService.d.ts +12 -6
  178. package/dist/esm/src/generated/shopper/services/EventService.js +30 -13
  179. package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +10 -5
  180. package/dist/esm/src/generated/shopper/services/GiftCardService.js +25 -11
  181. package/dist/esm/src/generated/shopper/services/OrderService.d.ts +179 -30
  182. package/dist/esm/src/generated/shopper/services/OrderService.js +364 -61
  183. package/dist/esm/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
  184. package/dist/esm/src/generated/shopper/services/PaymentLinkService.js +74 -0
  185. package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +6 -3
  186. package/dist/esm/src/generated/shopper/services/PaymentService.js +16 -8
  187. package/dist/esm/src/generated/shopper/services/ProductService.d.ts +6 -3
  188. package/dist/esm/src/generated/shopper/services/ProductService.js +15 -7
  189. package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -8
  190. package/dist/esm/src/generated/shopper/services/SeatService.js +66 -17
  191. package/dist/esm/src/generated/shopper/services/SessionService.d.ts +39 -6
  192. package/dist/esm/src/generated/shopper/services/SessionService.js +77 -13
  193. package/dist/esm/src/generated/shopper/types.d.ts +21 -1
  194. package/dist/esm/src/staging/index.d.ts +1 -0
  195. package/package.json +1 -1
  196. package/src/definitions/shopper.ts +2 -0
  197. package/src/generated/portal/core/OpenAPI.ts +1 -1
  198. package/src/generated/portal/models/CreateShowRequestDto.ts +1 -1
  199. package/src/generated/portal/models/CreateUpdateProductRequestDto.ts +4 -4
  200. package/src/generated/portal/models/ProductDetailResponseDto.ts +2 -2
  201. package/src/generated/portal/models/SeatResponseDto.ts +1 -0
  202. package/src/generated/portal/models/ShowsList.ts +12 -0
  203. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  204. package/src/generated/shopper/index.ts +23 -1
  205. package/src/generated/shopper/models/Account.ts +4 -0
  206. package/src/generated/shopper/models/AssetDownloadRequest.ts +9 -0
  207. package/src/generated/shopper/models/AssetDownloadResponse.ts +12 -0
  208. package/src/generated/shopper/models/CapabilityManifestDto.ts +5 -1
  209. package/src/generated/shopper/models/ClientRequestErrorResponse.ts +11 -0
  210. package/src/generated/shopper/models/CreatePaymentLinkBody.ts +23 -0
  211. package/src/generated/shopper/models/CreatePaymentLinkResponse.ts +45 -0
  212. package/src/generated/shopper/models/EventDetails.ts +4 -0
  213. package/src/generated/shopper/models/EventFormat.ts +12 -0
  214. package/src/generated/shopper/models/EventListItem.ts +4 -0
  215. package/src/generated/shopper/models/ExchangeValidateResponse.ts +4 -0
  216. package/src/generated/shopper/models/FullEventDetails.ts +4 -0
  217. package/src/generated/shopper/models/ManifestSeat.ts +19 -0
  218. package/src/generated/shopper/models/OrderLookupBody.ts +19 -0
  219. package/src/generated/shopper/models/OrderLookupResult.ts +19 -0
  220. package/src/generated/shopper/models/OrderRefundDetails.ts +1 -0
  221. package/src/generated/shopper/models/PaymentLinkSession.ts +23 -0
  222. package/src/generated/shopper/models/PaymentLinkStatus.ts +37 -0
  223. package/src/generated/shopper/models/Receipt.ts +2 -0
  224. package/src/generated/shopper/models/RefundExchangeOffer.ts +43 -0
  225. package/src/generated/shopper/models/RefundReason.ts +1 -0
  226. package/src/generated/shopper/models/RefundRequestInfo.ts +2 -0
  227. package/src/generated/shopper/models/RegisterStreamResponse.ts +4 -0
  228. package/src/generated/shopper/models/ResetStreamInviteRequest.ts +13 -0
  229. package/src/generated/shopper/models/SaveStreamInvitesRequest.ts +15 -0
  230. package/src/generated/shopper/models/SaveStreamInvitesResponse.ts +12 -0
  231. package/src/generated/shopper/models/SeatManifest.ts +25 -0
  232. package/src/generated/shopper/models/SharedStream.ts +42 -0
  233. package/src/generated/shopper/models/ShowExtras.ts +4 -0
  234. package/src/generated/shopper/models/StartSupportSessionDto.ts +15 -0
  235. package/src/generated/shopper/models/StreamAuthorization.ts +19 -0
  236. package/src/generated/shopper/models/StreamInvite.ts +24 -0
  237. package/src/generated/shopper/models/StreamInviteInput.ts +12 -0
  238. package/src/generated/shopper/models/StreamInvitesResponse.ts +13 -0
  239. package/src/generated/shopper/models/SupportSessionStateDto.ts +19 -0
  240. package/src/generated/shopper/services/AccountService.ts +20 -4
  241. package/src/generated/shopper/services/CartService.ts +50 -10
  242. package/src/generated/shopper/services/CheckoutService.ts +40 -8
  243. package/src/generated/shopper/services/CodeService.ts +60 -6
  244. package/src/generated/shopper/services/DonationService.ts +13 -2
  245. package/src/generated/shopper/services/EventService.ts +30 -6
  246. package/src/generated/shopper/services/GiftCardService.ts +25 -5
  247. package/src/generated/shopper/services/OrderService.ts +411 -30
  248. package/src/generated/shopper/services/PaymentLinkService.ts +93 -0
  249. package/src/generated/shopper/services/PaymentService.ts +16 -4
  250. package/src/generated/shopper/services/ProductService.ts +15 -3
  251. package/src/generated/shopper/services/SeatService.ts +71 -8
  252. package/src/generated/shopper/services/SessionService.ts +86 -6
  253. package/src/generated/shopper/types.ts +21 -1
  254. package/src/generated/shopper/models/PaymentFail.ts +0 -23
@@ -3,20 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CartService = 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");
7
6
  class CartService {
8
7
  /**
9
8
  * Get Cart
10
9
  * Retrieves the cart along with its associated time.
11
10
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
11
+ * @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).
12
12
  * @returns CartWithTime Cart retrieved successfully with time.
13
13
  * @throws ApiError
14
14
  */
15
- static getCart(context) {
15
+ static getCart(context, xDrtDomain) {
16
16
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
17
17
  method: 'GET',
18
18
  url: '/cart',
19
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
19
+ headers: {
20
+ 'x-drt-domain': xDrtDomain,
21
+ },
20
22
  errors: {
21
23
  400: `Bad Request error with error details.`,
22
24
  404: `Not found error with error details.`,
@@ -28,14 +30,17 @@ class CartService {
28
30
  * Delete Cart
29
31
  * Clears the entire cart (seats, products, donations) for the shopper. Respects the session lock: if the session is locked (e.g. an in-flight payment) the cart is left intact and { cleared: false, locked: true } is returned.
30
32
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
33
+ * @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).
31
34
  * @returns CartClearResult Cart clear result.
32
35
  * @throws ApiError
33
36
  */
34
- static deleteCart(context) {
37
+ static deleteCart(context, xDrtDomain) {
35
38
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
39
  method: 'DELETE',
37
40
  url: '/cart',
38
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
41
+ headers: {
42
+ 'x-drt-domain': xDrtDomain,
43
+ },
39
44
  errors: {
40
45
  400: `Bad Request error with error details.`,
41
46
  404: `Not found error with error details.`,
@@ -47,14 +52,17 @@ class CartService {
47
52
  * Get Cart Summary
48
53
  * Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
49
54
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
55
+ * @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).
50
56
  * @returns CartSummary Cart summary retrieved successfully.
51
57
  * @throws ApiError
52
58
  */
53
- static getCartSummary(context) {
59
+ static getCartSummary(context, xDrtDomain) {
54
60
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
55
61
  method: 'GET',
56
62
  url: '/cart/summary',
57
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
63
+ headers: {
64
+ 'x-drt-domain': xDrtDomain,
65
+ },
58
66
  errors: {
59
67
  400: `Bad Request error with error details.`,
60
68
  404: `Not found error with error details.`,
@@ -66,14 +74,17 @@ class CartService {
66
74
  * Get Cart Hash
67
75
  * Returns the computed cart hash for the current shopper session.
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 CartHashResponse Cart hash retrieved successfully.
70
79
  * @throws ApiError
71
80
  */
72
- static getCartHash(context) {
81
+ static getCartHash(context, xDrtDomain) {
73
82
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
74
83
  method: 'GET',
75
84
  url: '/cart/hash',
76
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
85
+ headers: {
86
+ 'x-drt-domain': xDrtDomain,
87
+ },
77
88
  errors: {
78
89
  400: `Bad Request error with error details.`,
79
90
  404: `Not found error with error details.`,
@@ -85,14 +96,17 @@ class CartService {
85
96
  * Get Cash Payment Detail (operator only)
86
97
  * Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials. Requires a logged-in operator session — returns 403 for a plain shopper.
87
98
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
99
+ * @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).
88
100
  * @returns CashPaymentDetail Cash payment detail retrieved successfully.
89
101
  * @throws ApiError
90
102
  */
91
- static getCashPaymentDetail(context) {
103
+ static getCashPaymentDetail(context, xDrtDomain) {
92
104
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
93
105
  method: 'GET',
94
106
  url: '/cart/cash-payment-detail',
95
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
107
+ headers: {
108
+ 'x-drt-domain': xDrtDomain,
109
+ },
96
110
  errors: {
97
111
  400: `Bad Request error with error details.`,
98
112
  404: `Not found error with error details.`,
@@ -104,14 +118,17 @@ class CartService {
104
118
  * Get lightweight cart counts
105
119
  * Returns a cheap cart summary for header/badge polling: seat count, product count, and seconds remaining on the cart timer.
106
120
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
121
+ * @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).
107
122
  * @returns CartCountsLite Cart counts retrieved successfully.
108
123
  * @throws ApiError
109
124
  */
110
- static getCartCounts(context) {
125
+ static getCartCounts(context, xDrtDomain) {
111
126
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
112
127
  method: 'GET',
113
128
  url: '/cart/counts',
114
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
129
+ headers: {
130
+ 'x-drt-domain': xDrtDomain,
131
+ },
115
132
  errors: {
116
133
  400: `Bad Request error with error details.`,
117
134
  404: `Not found error with error details.`,
@@ -123,14 +140,17 @@ class CartService {
123
140
  * Get the pricing-tiers page data
124
141
  * Held seats that need a pricing-tier selection (their section offers more than one applicable tier), each with its tier options — fee-inclusive, door-pricing-aware prices. Empty seats list = the tiers step should be skipped; this agrees with GET /checkout/next-step by construction (PROJ-903). Change a tier with POST /seat/update-tier.
125
142
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
143
+ * @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).
126
144
  * @returns CartTiersResponse Cart tier-selection data retrieved successfully.
127
145
  * @throws ApiError
128
146
  */
129
- static getCartTiers(context) {
147
+ static getCartTiers(context, xDrtDomain) {
130
148
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
131
149
  method: 'GET',
132
150
  url: '/cart/tiers',
133
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
151
+ headers: {
152
+ 'x-drt-domain': xDrtDomain,
153
+ },
134
154
  errors: {
135
155
  400: `Bad Request error with error details.`,
136
156
  404: `Not found error with error details.`,
@@ -142,14 +162,17 @@ class CartService {
142
162
  * Get cart totals
143
163
  * Recomputes the cart (custom logic, coupon, sales tax) and returns the current totals ledger. Call after any cart mutation.
144
164
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
165
+ * @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).
145
166
  * @returns CartTotals Cart totals retrieved successfully.
146
167
  * @throws ApiError
147
168
  */
148
- static getCartTotals(context) {
169
+ static getCartTotals(context, xDrtDomain) {
149
170
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
150
171
  method: 'GET',
151
172
  url: '/cart/totals',
152
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
173
+ headers: {
174
+ 'x-drt-domain': xDrtDomain,
175
+ },
153
176
  errors: {
154
177
  400: `Bad Request error with error details.`,
155
178
  404: `Not found error with error details.`,
@@ -161,14 +184,17 @@ class CartService {
161
184
  * Get cart amounts ledger
162
185
  * Returns the full amounts ledger (item/product/donation/order/tax totals, coupon, discount, payments, and gift cards + adjustments).
163
186
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
187
+ * @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).
164
188
  * @returns CartAmounts Cart amounts retrieved successfully.
165
189
  * @throws ApiError
166
190
  */
167
- static getCartAmounts(context) {
191
+ static getCartAmounts(context, xDrtDomain) {
168
192
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
169
193
  method: 'GET',
170
194
  url: '/cart/amounts',
171
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
195
+ headers: {
196
+ 'x-drt-domain': xDrtDomain,
197
+ },
172
198
  errors: {
173
199
  400: `Bad Request error with error details.`,
174
200
  404: `Not found error with error details.`,
@@ -181,17 +207,20 @@ class CartService {
181
207
  * Removes only the given show's seats from the cart, leaving merchandise and donations intact, then re-runs the recompute chain. Respects the session lock like DELETE /cart.
182
208
  * @param showId
183
209
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
210
+ * @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).
184
211
  * @returns CartClearResult Show clear result.
185
212
  * @throws ApiError
186
213
  */
187
- static clearCartShow(showId, context) {
214
+ static clearCartShow(showId, context, xDrtDomain) {
188
215
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
189
216
  method: 'DELETE',
190
217
  url: '/cart/show/{showId}',
191
218
  path: {
192
219
  'showId': showId,
193
220
  },
194
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
221
+ headers: {
222
+ 'x-drt-domain': xDrtDomain,
223
+ },
195
224
  errors: {
196
225
  400: `Bad Request error with error details.`,
197
226
  404: `Not found error with error details.`,
@@ -12,92 +12,100 @@ export declare class CheckoutService {
12
12
  * Get checkout page data
13
13
  * Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
14
14
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
15
+ * @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).
15
16
  * @returns CheckoutPageData Returns checkout page data.
16
17
  * @throws ApiError
17
18
  */
18
19
  static getCheckout(context?: {
19
20
  shopperGuid?: string;
20
21
  accountId?: string;
21
- }): CancelablePromise<CheckoutPageData>;
22
+ }, xDrtDomain?: string): CancelablePromise<CheckoutPageData>;
22
23
  /**
23
24
  * Submit checkout
24
25
  * Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Supports both token (EMS/Authorize.net) and Stripe payment flows.
25
26
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
26
27
  * @param requestBody Checkout form data.
28
+ * @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).
27
29
  * @returns CheckoutSuccessResponse Returns success response.
28
30
  * @throws ApiError
29
31
  */
30
32
  static submitCheckout(requestBody: CheckoutSubmitBody, context?: {
31
33
  shopperGuid?: string;
32
34
  accountId?: string;
33
- }): CancelablePromise<CheckoutSuccessResponse>;
35
+ }, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
34
36
  /**
35
37
  * Get the next checkout step
36
38
  * Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry → ADA → tiers → merchandise → donations → checkout → confirm → receipt). JSON only.
37
39
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
38
40
  * @param curr The current step. Defaults to 'seats'.
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).
39
42
  * @returns NextStepResponse Returns the next step.
40
43
  * @throws ApiError
41
44
  */
42
45
  static getNextStep(context?: {
43
46
  shopperGuid?: string;
44
47
  accountId?: string;
45
- }, curr?: string): CancelablePromise<NextStepResponse>;
48
+ }, curr?: string, xDrtDomain?: string): CancelablePromise<NextStepResponse>;
46
49
  /**
47
50
  * Get applicable checkout steps
48
51
  * 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).
49
52
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
53
+ * @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).
50
54
  * @returns CheckoutStepsResponse Returns the applicable steps.
51
55
  * @throws ApiError
52
56
  */
53
57
  static getSteps(context?: {
54
58
  shopperGuid?: string;
55
59
  accountId?: string;
56
- }): CancelablePromise<CheckoutStepsResponse>;
60
+ }, xDrtDomain?: string): CancelablePromise<CheckoutStepsResponse>;
57
61
  /**
58
62
  * Save payment nonce
59
63
  * Saves a payment nonce (token) from EMS/Authorize.net to the session.
60
64
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
61
65
  * @param requestBody Nonce data to save.
66
+ * @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).
62
67
  * @returns CheckoutSuccessResponse Returns success response.
63
68
  * @throws ApiError
64
69
  */
65
70
  static saveNonce(requestBody: SaveNonceBody, context?: {
66
71
  shopperGuid?: string;
67
72
  accountId?: string;
68
- }): CancelablePromise<CheckoutSuccessResponse>;
73
+ }, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
69
74
  /**
70
75
  * Clear payment nonce
71
76
  * Clears the payment nonce and related CC fields from the session.
72
77
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
78
+ * @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).
73
79
  * @returns CheckoutSuccessResponse Returns success response.
74
80
  * @throws ApiError
75
81
  */
76
82
  static clearNonce(context?: {
77
83
  shopperGuid?: string;
78
84
  accountId?: string;
79
- }): CancelablePromise<CheckoutSuccessResponse>;
85
+ }, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
80
86
  /**
81
87
  * Auto-save checkout details
82
88
  * Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
83
89
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
84
90
  * @param requestBody Partial checkout data to auto-save.
91
+ * @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).
85
92
  * @returns CheckoutSuccessResponse Returns success response.
86
93
  * @throws ApiError
87
94
  */
88
95
  static saveDetails(requestBody: SaveDetailsBody, context?: {
89
96
  shopperGuid?: string;
90
97
  accountId?: string;
91
- }): CancelablePromise<CheckoutSuccessResponse>;
98
+ }, xDrtDomain?: string): CancelablePromise<CheckoutSuccessResponse>;
92
99
  /**
93
100
  * Fill contact fields from POS defaults
94
101
  * 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).
95
102
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
103
+ * @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).
96
104
  * @returns PosDefaultInfoResponse Returns the filled-in contact info.
97
105
  * @throws ApiError
98
106
  */
99
107
  static fillDefaultInfo(context?: {
100
108
  shopperGuid?: string;
101
109
  accountId?: string;
102
- }): CancelablePromise<PosDefaultInfoResponse>;
110
+ }, xDrtDomain?: string): CancelablePromise<PosDefaultInfoResponse>;
103
111
  }
@@ -3,20 +3,22 @@ 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");
7
6
  class CheckoutService {
8
7
  /**
9
8
  * Get checkout page data
10
9
  * Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
11
10
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
11
+ * @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).
12
12
  * @returns CheckoutPageData Returns checkout page data.
13
13
  * @throws ApiError
14
14
  */
15
- static getCheckout(context) {
15
+ static getCheckout(context, xDrtDomain) {
16
16
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
17
17
  method: 'GET',
18
18
  url: '/checkout',
19
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
19
+ headers: {
20
+ 'x-drt-domain': xDrtDomain,
21
+ },
20
22
  errors: {
21
23
  400: `Bad Request error with error details.`,
22
24
  404: `Not found error with error details.`,
@@ -29,14 +31,17 @@ class CheckoutService {
29
31
  * Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Supports both token (EMS/Authorize.net) and Stripe payment flows.
30
32
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
31
33
  * @param requestBody Checkout form data.
34
+ * @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).
32
35
  * @returns CheckoutSuccessResponse Returns success response.
33
36
  * @throws ApiError
34
37
  */
35
- static submitCheckout(requestBody, context) {
38
+ static submitCheckout(requestBody, context, xDrtDomain) {
36
39
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
37
40
  method: 'POST',
38
41
  url: '/checkout',
39
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
42
+ headers: {
43
+ 'x-drt-domain': xDrtDomain,
44
+ },
40
45
  body: requestBody,
41
46
  mediaType: 'application/json',
42
47
  errors: {
@@ -51,14 +56,17 @@ class CheckoutService {
51
56
  * 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
57
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
53
58
  * @param curr The current step. Defaults to 'seats'.
59
+ * @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).
54
60
  * @returns NextStepResponse Returns the next step.
55
61
  * @throws ApiError
56
62
  */
57
- static getNextStep(context, curr) {
63
+ static getNextStep(context, curr, xDrtDomain) {
58
64
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
59
65
  method: 'GET',
60
66
  url: '/checkout/next-step',
61
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
67
+ headers: {
68
+ 'x-drt-domain': xDrtDomain,
69
+ },
62
70
  query: {
63
71
  'curr': curr,
64
72
  },
@@ -73,14 +81,17 @@ class CheckoutService {
73
81
  * Get applicable checkout steps
74
82
  * 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
83
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
84
+ * @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).
76
85
  * @returns CheckoutStepsResponse Returns the applicable steps.
77
86
  * @throws ApiError
78
87
  */
79
- static getSteps(context) {
88
+ static getSteps(context, xDrtDomain) {
80
89
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
81
90
  method: 'GET',
82
91
  url: '/checkout/steps',
83
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
92
+ headers: {
93
+ 'x-drt-domain': xDrtDomain,
94
+ },
84
95
  errors: {
85
96
  400: `Bad Request error with error details.`,
86
97
  404: `Not found error with error details.`,
@@ -93,14 +104,17 @@ class CheckoutService {
93
104
  * Saves a payment nonce (token) from EMS/Authorize.net to the session.
94
105
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
95
106
  * @param requestBody Nonce data to save.
107
+ * @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).
96
108
  * @returns CheckoutSuccessResponse Returns success response.
97
109
  * @throws ApiError
98
110
  */
99
- static saveNonce(requestBody, context) {
111
+ static saveNonce(requestBody, context, xDrtDomain) {
100
112
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
101
113
  method: 'POST',
102
114
  url: '/checkout/nonce',
103
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
115
+ headers: {
116
+ 'x-drt-domain': xDrtDomain,
117
+ },
104
118
  body: requestBody,
105
119
  mediaType: 'application/json',
106
120
  errors: {
@@ -114,14 +128,17 @@ class CheckoutService {
114
128
  * Clear payment nonce
115
129
  * Clears the payment nonce and related CC fields from the session.
116
130
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
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).
117
132
  * @returns CheckoutSuccessResponse Returns success response.
118
133
  * @throws ApiError
119
134
  */
120
- static clearNonce(context) {
135
+ static clearNonce(context, xDrtDomain) {
121
136
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
122
137
  method: 'DELETE',
123
138
  url: '/checkout/nonce',
124
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
139
+ headers: {
140
+ 'x-drt-domain': xDrtDomain,
141
+ },
125
142
  errors: {
126
143
  400: `Bad Request error with error details.`,
127
144
  404: `Not found error with error details.`,
@@ -134,14 +151,17 @@ class CheckoutService {
134
151
  * Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
135
152
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
136
153
  * @param requestBody Partial checkout data to auto-save.
154
+ * @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).
137
155
  * @returns CheckoutSuccessResponse Returns success response.
138
156
  * @throws ApiError
139
157
  */
140
- static saveDetails(requestBody, context) {
158
+ static saveDetails(requestBody, context, xDrtDomain) {
141
159
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
142
160
  method: 'POST',
143
161
  url: '/checkout/details',
144
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
162
+ headers: {
163
+ 'x-drt-domain': xDrtDomain,
164
+ },
145
165
  body: requestBody,
146
166
  mediaType: 'application/json',
147
167
  errors: {
@@ -155,14 +175,17 @@ class CheckoutService {
155
175
  * Fill contact fields from POS defaults
156
176
  * 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).
157
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).
158
179
  * @returns PosDefaultInfoResponse Returns the filled-in contact info.
159
180
  * @throws ApiError
160
181
  */
161
- static fillDefaultInfo(context) {
182
+ static fillDefaultInfo(context, xDrtDomain) {
162
183
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
163
184
  method: 'POST',
164
185
  url: '/checkout/default-info',
165
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
186
+ headers: {
187
+ 'x-drt-domain': xDrtDomain,
188
+ },
166
189
  errors: {
167
190
  400: `Bad Request error with error details.`,
168
191
  404: `Not found error with error details.`,
@@ -2,6 +2,7 @@ import type { CodeDto } from '../models/CodeDto';
2
2
  import type { CorrelatedCode } from '../models/CorrelatedCode';
3
3
  import type { HasAccessResponse } from '../models/HasAccessResponse';
4
4
  import type { PriorityCode } from '../models/PriorityCode';
5
+ import type { SuccessResponse } from '../models/SuccessResponse';
5
6
  import type { SuccessWithTime } from '../models/SuccessWithTime';
6
7
  import type { UniversalCodeResponse } from '../models/UniversalCodeResponse';
7
8
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -11,71 +12,90 @@ export declare class CodeService {
11
12
  * Allows a shopper to request access to an event using their shopper GUID and account ID.
12
13
  * @param eventId ID of the event for which access is requested
13
14
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
15
+ * @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).
14
16
  * @returns HasAccessResponse Access request submitted successfully.
15
17
  * @throws ApiError
16
18
  */
17
19
  static requestEventAccess(eventId: number, context?: {
18
20
  shopperGuid?: string;
19
21
  accountId?: string;
20
- }): CancelablePromise<HasAccessResponse>;
22
+ }, xDrtDomain?: string): CancelablePromise<HasAccessResponse>;
21
23
  /**
22
24
  * List the codes correlated to a patron code
23
25
  * 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
26
  * @param code The patron code to look up.
25
27
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
28
+ * @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).
26
29
  * @returns CorrelatedCode Returns the correlated codes.
27
30
  * @throws ApiError
28
31
  */
29
32
  static getPatronCodes(code: string, context?: {
30
33
  shopperGuid?: string;
31
34
  accountId?: string;
32
- }): CancelablePromise<Array<CorrelatedCode>>;
35
+ }, xDrtDomain?: string): CancelablePromise<Array<CorrelatedCode>>;
33
36
  /**
34
37
  * Apply a code to the current shopper session
35
38
  * Applies a code to the current shopper session.
36
39
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
37
40
  * @param requestBody Code to be applied
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).
38
42
  * @returns SuccessWithTime Code applied successfully.
39
43
  * @throws ApiError
40
44
  */
41
45
  static applyCode(requestBody: CodeDto, context?: {
42
46
  shopperGuid?: string;
43
47
  accountId?: string;
44
- }): CancelablePromise<SuccessWithTime>;
48
+ }, xDrtDomain?: string): CancelablePromise<SuccessWithTime>;
45
49
  /**
46
50
  * Apply a coupon to the current shopper session
47
51
  * Applies a coupon to the current shopper session.
48
52
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
49
53
  * @param requestBody Coupon code to be applied
54
+ * @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).
50
55
  * @returns UniversalCodeResponse Coupon applied successfully.
51
56
  * @throws ApiError
52
57
  */
53
58
  static applyCoupon(requestBody: CodeDto, context?: {
54
59
  shopperGuid?: string;
55
60
  accountId?: string;
56
- }): CancelablePromise<UniversalCodeResponse>;
61
+ }, xDrtDomain?: string): CancelablePromise<UniversalCodeResponse>;
57
62
  /**
58
63
  * Remove a coupon from the current shopper session
59
64
  * Removes a coupon from the current shopper session.
60
65
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
61
66
  * @param requestBody Coupon code to be removed
67
+ * @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).
62
68
  * @returns UniversalCodeResponse Coupon removed successfully.
63
69
  * @throws ApiError
64
70
  */
65
71
  static removeCoupon(requestBody: CodeDto, context?: {
66
72
  shopperGuid?: string;
67
73
  accountId?: string;
68
- }): CancelablePromise<UniversalCodeResponse>;
74
+ }, xDrtDomain?: string): CancelablePromise<UniversalCodeResponse>;
75
+ /**
76
+ * Decline a reservation code
77
+ * Releases the seats a reservation code is holding — the waitlist offer email's decline link. Idempotent and silent: an unknown, foreign or already-declined code answers success and does nothing.
78
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
79
+ * @param requestBody Reservation code to decline
80
+ * @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).
81
+ * @returns SuccessResponse The decline was recorded.
82
+ * @throws ApiError
83
+ */
84
+ static declineReservationCode(requestBody: CodeDto, context?: {
85
+ shopperGuid?: string;
86
+ accountId?: string;
87
+ }, xDrtDomain?: string): CancelablePromise<SuccessResponse>;
69
88
  /**
70
89
  * Apply Priority Code
71
90
  * Applies a priority code to the cart.
72
91
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
73
92
  * @param requestBody Priority code data to be applied
93
+ * @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).
74
94
  * @returns SuccessWithTime Priority code applied successfully.
75
95
  * @throws ApiError
76
96
  */
77
97
  static applyPriorityCode(requestBody: PriorityCode, context?: {
78
98
  shopperGuid?: string;
79
99
  accountId?: string;
80
- }): CancelablePromise<SuccessWithTime>;
100
+ }, xDrtDomain?: string): CancelablePromise<SuccessWithTime>;
81
101
  }