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