@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.OrderService = 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 OrderService {
8
7
  /**
9
8
  * Get order receipt by guid
10
9
  * Fetches the receipt for an order using its unique guid.
11
10
  * @param guid Unique identifier for an order.
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 Receipt Returns the order receipt.
14
14
  * @throws ApiError
15
15
  */
16
- static getReceipt(guid, context) {
16
+ static getReceipt(guid, context, xDrtDomain) {
17
17
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
18
18
  method: 'GET',
19
19
  url: '/order/receipt',
20
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
20
+ headers: {
21
+ 'x-drt-domain': xDrtDomain,
22
+ },
21
23
  query: {
22
24
  'guid': guid,
23
25
  },
@@ -33,14 +35,17 @@ class OrderService {
33
35
  * Records the given order as the current session's source order (session.src_order_id) for attribution (ORD-1, legacy order-set-src).
34
36
  * @param guid Unique identifier for an order.
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 stamping the source order.
37
40
  * @throws ApiError
38
41
  */
39
- static setOrderSrc(guid, context) {
42
+ static setOrderSrc(guid, context, xDrtDomain) {
40
43
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
41
44
  method: 'POST',
42
45
  url: '/order/set-src',
43
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
46
+ headers: {
47
+ 'x-drt-domain': xDrtDomain,
48
+ },
44
49
  query: {
45
50
  'guid': guid,
46
51
  },
@@ -56,14 +61,17 @@ class OrderService {
56
61
  * Returns the balance owed on an existing order and whether the account offers an additional payment (enable_adjustment_payment). Read-only — the charge itself is collected by the Stripe Payment Element on the frontend and recorded downstream (PAY-1).
57
62
  * @param guid Unique identifier for an order.
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 OrderBalance Returns the order balance and adjustment-payment gating.
60
66
  * @throws ApiError
61
67
  */
62
- static getOrderBalance(guid, context) {
68
+ static getOrderBalance(guid, context, xDrtDomain) {
63
69
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
64
70
  method: 'GET',
65
71
  url: '/order/balance',
66
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
72
+ headers: {
73
+ 'x-drt-domain': xDrtDomain,
74
+ },
67
75
  query: {
68
76
  'guid': guid,
69
77
  },
@@ -79,14 +87,17 @@ class OrderService {
79
87
  * Returns whether an order is fully paid (for the pay-by-link page to poll). The Stripe link/intent is created on the frontend via the existing /payment* flow; this endpoint only reports completion (PAY-2).
80
88
  * @param guid Unique identifier for an order.
81
89
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
90
+ * @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).
82
91
  * @returns OrderPaymentStatus Returns the order payment status.
83
92
  * @throws ApiError
84
93
  */
85
- static getOrderPaymentStatus(guid, context) {
94
+ static getOrderPaymentStatus(guid, context, xDrtDomain) {
86
95
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
87
96
  method: 'GET',
88
97
  url: '/order/payment-status',
89
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
98
+ headers: {
99
+ 'x-drt-domain': xDrtDomain,
100
+ },
90
101
  query: {
91
102
  'guid': guid,
92
103
  },
@@ -97,19 +108,73 @@ class OrderService {
97
108
  },
98
109
  });
99
110
  }
111
+ /**
112
+ * Find an existing order
113
+ * The Box Office Help Desk lookup: at least TWO of phone, order number and last-four-of-card, scoped to the calling studio. Fewer than two factors is refused — any one of them alone is guessable. Returns order numbers with their receipt guids, newest first.
114
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
115
+ * @param requestBody
116
+ * @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
+ * @returns OrderLookupResult Matching orders, newest first. An empty list is a valid answer.
118
+ * @throws ApiError
119
+ */
120
+ static lookupOrders(requestBody, context, xDrtDomain) {
121
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
122
+ method: 'POST',
123
+ url: '/order/lookup',
124
+ headers: {
125
+ 'x-drt-domain': xDrtDomain,
126
+ },
127
+ body: requestBody,
128
+ mediaType: 'application/json',
129
+ errors: {
130
+ 400: `Fewer than two identification factors.`,
131
+ 404: `Not found error with error details.`,
132
+ 500: `Internal Server Error, please contact developers.`,
133
+ },
134
+ });
135
+ }
100
136
  /**
101
137
  * Get Gwallet link by guid
102
138
  * Fetches the Gwallet link for an order using its unique guid.
103
139
  * @param guid Unique identifier for an order.
104
140
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
141
+ * @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).
105
142
  * @returns LinkWithSuccess Returns the Gwallet link.
106
143
  * @throws ApiError
107
144
  */
108
- static getGwalletLink(guid, context) {
145
+ static getGwalletLink(guid, context, xDrtDomain) {
109
146
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
110
147
  method: 'GET',
111
148
  url: '/order/gwallet',
112
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
149
+ headers: {
150
+ 'x-drt-domain': xDrtDomain,
151
+ },
152
+ query: {
153
+ 'guid': guid,
154
+ },
155
+ errors: {
156
+ 400: `Bad Request error with error details.`,
157
+ 404: `Not found error with error details.`,
158
+ 500: `Internal Server Error, please contact developers.`,
159
+ },
160
+ });
161
+ }
162
+ /**
163
+ * Get Gwallet link by block-of-tickets guid
164
+ * Fetches the Google Wallet link for a block of tickets using the block guid — the ticket-pickup page, where the recipient holds the block guid and never sees the order.
165
+ * @param guid Unique identifier for an order.
166
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
167
+ * @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).
168
+ * @returns LinkWithSuccess Returns the Gwallet link.
169
+ * @throws ApiError
170
+ */
171
+ static getGwalletBlockLink(guid, context, xDrtDomain) {
172
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
173
+ method: 'GET',
174
+ url: '/order/gwallet-block',
175
+ headers: {
176
+ 'x-drt-domain': xDrtDomain,
177
+ },
113
178
  query: {
114
179
  'guid': guid,
115
180
  },
@@ -125,14 +190,17 @@ class OrderService {
125
190
  * Fetches a random order guid for development purposes. Requires a logged-in operator session — returns 403 for a plain shopper.
126
191
  * @param guid Unique identifier for an order.
127
192
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
193
+ * @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).
128
194
  * @returns GuidReturn Returns a testing guid.
129
195
  * @throws ApiError
130
196
  */
131
- static getTestingGuid(guid, context) {
197
+ static getTestingGuid(guid, context, xDrtDomain) {
132
198
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
133
199
  method: 'GET',
134
200
  url: '/order/testing',
135
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
201
+ headers: {
202
+ 'x-drt-domain': xDrtDomain,
203
+ },
136
204
  query: {
137
205
  'guid': guid,
138
206
  },
@@ -148,14 +216,17 @@ class OrderService {
148
216
  * Fetches the assign names information for an order using its unique guid.
149
217
  * @param guid Unique identifier for an order.
150
218
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
219
+ * @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).
151
220
  * @returns AssignNamesReturn Returns the assign names information.
152
221
  * @throws ApiError
153
222
  */
154
- static getAssignNames(guid, context) {
223
+ static getAssignNames(guid, context, xDrtDomain) {
155
224
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
156
225
  method: 'GET',
157
226
  url: '/order/assign-names',
158
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
227
+ headers: {
228
+ 'x-drt-domain': xDrtDomain,
229
+ },
159
230
  query: {
160
231
  'guid': guid,
161
232
  },
@@ -172,14 +243,17 @@ class OrderService {
172
243
  * @param guid Unique identifier for an order.
173
244
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
174
245
  * @param requestBody Names to be assigned to the order.
246
+ * @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).
175
247
  * @returns SuccessResponse Returns success status after assigning names.
176
248
  * @throws ApiError
177
249
  */
178
- static postAssignNames(guid, requestBody, context) {
250
+ static postAssignNames(guid, requestBody, context, xDrtDomain) {
179
251
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
180
252
  method: 'POST',
181
253
  url: '/order/assign-names',
182
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
254
+ headers: {
255
+ 'x-drt-domain': xDrtDomain,
256
+ },
183
257
  query: {
184
258
  'guid': guid,
185
259
  },
@@ -198,14 +272,17 @@ class OrderService {
198
272
  * @param guid Unique identifier for an order.
199
273
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
200
274
  * @param requestBody Email update containing the email address to send tickets.
275
+ * @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).
201
276
  * @returns SuccessResponse Returns success status after sending email tickets.
202
277
  * @throws ApiError
203
278
  */
204
- static postEmailTickets(guid, requestBody, context) {
279
+ static postEmailTickets(guid, requestBody, context, xDrtDomain) {
205
280
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
206
281
  method: 'POST',
207
282
  url: '/order/email-tickets',
208
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
283
+ headers: {
284
+ 'x-drt-domain': xDrtDomain,
285
+ },
209
286
  query: {
210
287
  'guid': guid,
211
288
  },
@@ -223,14 +300,17 @@ class OrderService {
223
300
  * Fetches the ticket block for an order using its unique guid.
224
301
  * @param guid Unique identifier for an order.
225
302
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
303
+ * @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).
226
304
  * @returns PickupReturn Returns the ticket block for the order.
227
305
  * @throws ApiError
228
306
  */
229
- static getTicketBlock(guid, context) {
307
+ static getTicketBlock(guid, context, xDrtDomain) {
230
308
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
231
309
  method: 'GET',
232
310
  url: '/order/pickup',
233
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
311
+ headers: {
312
+ 'x-drt-domain': xDrtDomain,
313
+ },
234
314
  query: {
235
315
  'guid': guid,
236
316
  },
@@ -246,14 +326,17 @@ class OrderService {
246
326
  * Sends the ticket block for an order using its unique guid.
247
327
  * @param guid Unique identifier for an order.
248
328
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
329
+ * @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).
249
330
  * @returns SuccessResponse Returns the ticket block for the order.
250
331
  * @throws ApiError
251
332
  */
252
- static postPickup(guid, context) {
333
+ static postPickup(guid, context, xDrtDomain) {
253
334
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
254
335
  method: 'POST',
255
336
  url: '/order/pickup',
256
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
337
+ headers: {
338
+ 'x-drt-domain': xDrtDomain,
339
+ },
257
340
  query: {
258
341
  'guid': guid,
259
342
  },
@@ -269,14 +352,17 @@ class OrderService {
269
352
  * Sends the order receipt to the shopper's email address for the specified order guid.
270
353
  * @param guid Unique identifier for an order.
271
354
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
355
+ * @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).
272
356
  * @returns SuccessResponse Returns success status after emailing the receipt.
273
357
  * @throws ApiError
274
358
  */
275
- static postEmailReceipt(guid, context) {
359
+ static postEmailReceipt(guid, context, xDrtDomain) {
276
360
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
277
361
  method: 'POST',
278
362
  url: '/order/email-receipt',
279
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
363
+ headers: {
364
+ 'x-drt-domain': xDrtDomain,
365
+ },
280
366
  query: {
281
367
  'guid': guid,
282
368
  },
@@ -292,14 +378,17 @@ class OrderService {
292
378
  * Fetches the refund request information for an order using its unique guid.
293
379
  * @param guid Unique identifier for an order.
294
380
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
381
+ * @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).
295
382
  * @returns RefundRequestInfo Returns the refund request information for the order.
296
383
  * @throws ApiError
297
384
  */
298
- static getRefundRequest(guid, context) {
385
+ static getRefundRequest(guid, context, xDrtDomain) {
299
386
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
300
387
  method: 'GET',
301
388
  url: '/order/refund-request',
302
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
389
+ headers: {
390
+ 'x-drt-domain': xDrtDomain,
391
+ },
303
392
  query: {
304
393
  'guid': guid,
305
394
  },
@@ -316,14 +405,17 @@ class OrderService {
316
405
  * @param guid Unique identifier for an order.
317
406
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
318
407
  * @param requestBody Refund request details.
408
+ * @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).
319
409
  * @returns SuccessResponse Returns success status after submitting the refund request.
320
410
  * @throws ApiError
321
411
  */
322
- static postRefundRequest(guid, requestBody, context) {
412
+ static postRefundRequest(guid, requestBody, context, xDrtDomain) {
323
413
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
324
414
  method: 'POST',
325
415
  url: '/order/refund-request',
326
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
416
+ headers: {
417
+ 'x-drt-domain': xDrtDomain,
418
+ },
327
419
  query: {
328
420
  'guid': guid,
329
421
  },
@@ -342,14 +434,17 @@ class OrderService {
342
434
  * @param guid Unique identifier for an order.
343
435
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
344
436
  * @param requestBody Order recalculation data.
437
+ * @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).
345
438
  * @returns RecalcResponse Returns the recalculated order totals and success status.
346
439
  * @throws ApiError
347
440
  */
348
- static postRecalcOrder(guid, requestBody, context) {
441
+ static postRecalcOrder(guid, requestBody, context, xDrtDomain) {
349
442
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
350
443
  method: 'POST',
351
444
  url: '/order/recalc',
352
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
445
+ headers: {
446
+ 'x-drt-domain': xDrtDomain,
447
+ },
353
448
  query: {
354
449
  'guid': guid,
355
450
  },
@@ -367,14 +462,17 @@ class OrderService {
367
462
  * Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
368
463
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
369
464
  * @param requestBody Donate order payload containing guid and donatedIpAddress.
465
+ * @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).
370
466
  * @returns SuccessResponse Returns success status after donating the order.
371
467
  * @throws ApiError
372
468
  */
373
- static postDonateOrder(requestBody, context) {
469
+ static postDonateOrder(requestBody, context, xDrtDomain) {
374
470
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
375
471
  method: 'POST',
376
472
  url: '/order/donate-order',
377
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
473
+ headers: {
474
+ 'x-drt-domain': xDrtDomain,
475
+ },
378
476
  body: requestBody,
379
477
  mediaType: 'application/json',
380
478
  errors: {
@@ -390,14 +488,17 @@ class OrderService {
390
488
  * @param orderGuid
391
489
  * @param streamGuid
392
490
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
491
+ * @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).
393
492
  * @returns StreamDetails Returns the stream details.
394
493
  * @throws ApiError
395
494
  */
396
- static getStreamDetails(orderGuid, streamGuid, context) {
495
+ static getStreamDetails(orderGuid, streamGuid, context, xDrtDomain) {
397
496
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
398
497
  method: 'GET',
399
498
  url: '/order/stream',
400
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
499
+ headers: {
500
+ 'x-drt-domain': xDrtDomain,
501
+ },
401
502
  query: {
402
503
  'orderGuid': orderGuid,
403
504
  'streamGuid': streamGuid,
@@ -409,20 +510,186 @@ class OrderService {
409
510
  },
410
511
  });
411
512
  }
513
+ /**
514
+ * Is this device still authorised to watch? (VS-2)
515
+ * The watch heartbeat, polled while a stream plays (legacy tv/rpc/check-auth.cfm, every 10s from the receipt and every 30s from /tv). Authorised means an assoc row exists for this registration guid, scoped to the stream (and to the order when one is supplied), matching either the caller's IP or their access guid — so every revoke path in the system (the studio reset, a per-row invite reset, Stop Watching, deleting the row) closes playback within one poll. A row matched on the ACCESS GUID from a new address re-binds the stored IP, which is what lets a phone move from wifi to cellular and keep playing. `expired` is judged against the session effective date and falls back to the show end when date_unavailable is NULL. Staff sessions always pass.
516
+ * @param registrationGuid
517
+ * @param streamGuid
518
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
519
+ * @param accessGuid
520
+ * @param orderGuid
521
+ * @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).
522
+ * @returns StreamAuthorization Returns the authorisation decision.
523
+ * @throws ApiError
524
+ */
525
+ static getStreamAuthorization(registrationGuid, streamGuid, context, accessGuid, orderGuid, xDrtDomain) {
526
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
527
+ method: 'GET',
528
+ url: '/order/stream/authorized',
529
+ headers: {
530
+ 'x-drt-domain': xDrtDomain,
531
+ },
532
+ query: {
533
+ 'registrationGuid': registrationGuid,
534
+ 'streamGuid': streamGuid,
535
+ 'accessGuid': accessGuid,
536
+ 'orderGuid': orderGuid,
537
+ },
538
+ errors: {
539
+ 400: `Bad Request error with error details.`,
540
+ 404: `Not found error with error details.`,
541
+ 500: `Internal Server Error, please contact developers.`,
542
+ },
543
+ });
544
+ }
545
+ /**
546
+ * Resolve a shared /tv/{code} watch link (VS-2)
547
+ * Takes the qecom_order_virtual_stream_assoc guid that dbo.sendVideoLink mails to each invited viewer and answers the playback payload for it (legacy tv/index.cfm). On first view the row is bound to the caller's IP and an access guid is minted. A caller from a different IP with no matching access guid is refused; one holding the token re-binds the row instead. Staff skip both. Availability is judged against the session effective date, not the wall clock legacy used, and falls back to the show start/end. It deliberately does NOT return the order guid: that is a bearer token for the whole receipt and a watch link is forwarded by design.
548
+ * @param code
549
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
550
+ * @param accessGuid
551
+ * @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).
552
+ * @returns SharedStream Returns the shared stream.
553
+ * @throws ApiError
554
+ */
555
+ static getSharedStream(code, context, accessGuid, xDrtDomain) {
556
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
557
+ method: 'GET',
558
+ url: '/order/stream/shared',
559
+ headers: {
560
+ 'x-drt-domain': xDrtDomain,
561
+ },
562
+ query: {
563
+ 'code': code,
564
+ 'accessGuid': accessGuid,
565
+ },
566
+ errors: {
567
+ 400: `Bad Request error with error details.`,
568
+ 404: `Not found error with error details.`,
569
+ 500: `Internal Server Error, please contact developers.`,
570
+ },
571
+ });
572
+ }
573
+ /**
574
+ * The stream invite list for an order (VS-3)
575
+ * One row per ticket purchased for the stream's show on this order — which is the only concurrency cap the product has (legacy virtual-stream-email-form.cfm). No assoc guid is returned: the guid is the watch credential, and the buyer's tool is "send the email", not "hand me the token".
576
+ * @param orderGuid
577
+ * @param streamGuid
578
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
579
+ * @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).
580
+ * @returns StreamInvitesResponse Returns the invite rows.
581
+ * @throws ApiError
582
+ */
583
+ static getStreamInvites(orderGuid, streamGuid, context, xDrtDomain) {
584
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
585
+ method: 'GET',
586
+ url: '/order/stream/invites',
587
+ headers: {
588
+ 'x-drt-domain': xDrtDomain,
589
+ },
590
+ query: {
591
+ 'orderGuid': orderGuid,
592
+ 'streamGuid': streamGuid,
593
+ },
594
+ errors: {
595
+ 400: `Bad Request error with error details.`,
596
+ 404: `Not found error with error details.`,
597
+ 500: `Internal Server Error, please contact developers.`,
598
+ },
599
+ });
600
+ }
601
+ /**
602
+ * Save the stream invite rows and send the links (VS-3)
603
+ * Row 1 is the buyer and is required. An emptied or changed address deletes its row, which revokes that link — the intended behaviour, not a side effect. A new or changed address gets a fresh guid and dbo.sendVideoLink mails it; `resend` re-mails unchanged rows too (legacy virtual-stream-email-send.cfm).
604
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
605
+ * @param requestBody Invite rows.
606
+ * @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).
607
+ * @returns SaveStreamInvitesResponse Returns how many invite emails were sent.
608
+ * @throws ApiError
609
+ */
610
+ static saveStreamInvites(requestBody, context, xDrtDomain) {
611
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
612
+ method: 'POST',
613
+ url: '/order/stream/invites',
614
+ headers: {
615
+ 'x-drt-domain': xDrtDomain,
616
+ },
617
+ body: requestBody,
618
+ mediaType: 'application/json',
619
+ errors: {
620
+ 400: `Bad Request error with error details.`,
621
+ 404: `Not found error with error details.`,
622
+ 500: `Internal Server Error, please contact developers.`,
623
+ },
624
+ });
625
+ }
626
+ /**
627
+ * Clear one invite row's registration (VS-3)
628
+ * Nulls ip_address + access_guid for ONE invite row, so that viewer can start again on a new network. Deliberately per-row: the legacy checkbox promised "clear that email's IP registration" but its SQL had no guid filter and reset every viewer on the stream, the purchaser included.
629
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
630
+ * @param requestBody Which invite row to reset.
631
+ * @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).
632
+ * @returns SuccessResponse Returns success.
633
+ * @throws ApiError
634
+ */
635
+ static resetStreamInvite(requestBody, context, xDrtDomain) {
636
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
637
+ method: 'POST',
638
+ url: '/order/stream/invites/reset',
639
+ headers: {
640
+ 'x-drt-domain': xDrtDomain,
641
+ },
642
+ body: requestBody,
643
+ mediaType: 'application/json',
644
+ errors: {
645
+ 400: `Bad Request error with error details.`,
646
+ 404: `Not found error with error details.`,
647
+ 500: `Internal Server Error, please contact developers.`,
648
+ },
649
+ });
650
+ }
651
+ /**
652
+ * Record a digital-asset download (VS-4)
653
+ * Proves the asset ↔ order ↔ seat linkage, writes digital_asset_download_log (asset, order, IP) and returns the href from the same statement (legacy r/digital-asset-download.cfm). The IP is the server's own req.ip — a browser-supplied one would make the audit trail AdminPortal shows studios forgeable.
654
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
655
+ * @param requestBody The order and asset to log.
656
+ * @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).
657
+ * @returns AssetDownloadResponse Returns the asset href.
658
+ * @throws ApiError
659
+ */
660
+ static logAssetDownload(requestBody, context, xDrtDomain) {
661
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
662
+ method: 'POST',
663
+ url: '/order/asset-download',
664
+ headers: {
665
+ 'x-drt-domain': xDrtDomain,
666
+ },
667
+ body: requestBody,
668
+ mediaType: 'application/json',
669
+ errors: {
670
+ 400: `Bad Request error with error details.`,
671
+ 404: `Not found error with error details.`,
672
+ 500: `Internal Server Error, please contact developers.`,
673
+ },
674
+ });
675
+ }
412
676
  /**
413
677
  * Get the digital-download link for a stream
414
678
  * Returns the best-quality digital-download cloud URL for a stream on the order (VS-1, legacy digital-download-get-link).
415
679
  * @param orderGuid
416
680
  * @param streamGuid
417
681
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
682
+ * @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).
418
683
  * @returns StreamDownloadLink Returns the download link.
419
684
  * @throws ApiError
420
685
  */
421
- static getStreamDownloadLink(orderGuid, streamGuid, context) {
686
+ static getStreamDownloadLink(orderGuid, streamGuid, context, xDrtDomain) {
422
687
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
423
688
  method: 'GET',
424
689
  url: '/order/stream/download',
425
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
690
+ headers: {
691
+ 'x-drt-domain': xDrtDomain,
692
+ },
426
693
  query: {
427
694
  'orderGuid': orderGuid,
428
695
  'streamGuid': streamGuid,
@@ -439,14 +706,17 @@ class OrderService {
439
706
  * Registers a stream for the specified shopper and account using the provided stream registration details.
440
707
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
441
708
  * @param requestBody Stream registration details.
709
+ * @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).
442
710
  * @returns RegisterStreamResponse Returns the stream registration response.
443
711
  * @throws ApiError
444
712
  */
445
- static postRegisterStream(requestBody, context) {
713
+ static postRegisterStream(requestBody, context, xDrtDomain) {
446
714
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
447
715
  method: 'POST',
448
716
  url: '/order/stream-register',
449
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
717
+ headers: {
718
+ 'x-drt-domain': xDrtDomain,
719
+ },
450
720
  body: requestBody,
451
721
  mediaType: 'application/json',
452
722
  errors: {
@@ -461,14 +731,17 @@ class OrderService {
461
731
  * Removes the stream registration for the specified shopper and account using the provided stream registration details.
462
732
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
463
733
  * @param requestBody Stream registration details to be deregistered.
734
+ * @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).
464
735
  * @returns SuccessResponse Returns success status after deregistering the stream.
465
736
  * @throws ApiError
466
737
  */
467
- static deleteRegisteredStream(requestBody, context) {
738
+ static deleteRegisteredStream(requestBody, context, xDrtDomain) {
468
739
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
469
740
  method: 'DELETE',
470
741
  url: '/order/stream-register',
471
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
742
+ headers: {
743
+ 'x-drt-domain': xDrtDomain,
744
+ },
472
745
  body: requestBody,
473
746
  mediaType: 'application/json',
474
747
  errors: {
@@ -483,14 +756,17 @@ class OrderService {
483
756
  * Validates the order and exchange policy, applies the re-modification block (an already-exchanged order or one with a live refund request is rejected, clearing any stale lock), and arms the session exchange lock (modifyingOrderId) that /order/exchange/validate, /order/exchange/upcharge, and POST /order/exchange require (EXT-2, legacy r/exchange.cfm page load). Returns the refund-messaging and online-upcharge gating flags for the exchange UI.
484
757
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
485
758
  * @param requestBody
759
+ * @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).
486
760
  * @returns ExchangeStartResponse Exchange started; lock armed.
487
761
  * @throws ApiError
488
762
  */
489
- static startExchange(requestBody, context) {
763
+ static startExchange(requestBody, context, xDrtDomain) {
490
764
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
491
765
  method: 'POST',
492
766
  url: '/order/exchange/start',
493
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
767
+ headers: {
768
+ 'x-drt-domain': xDrtDomain,
769
+ },
494
770
  body: requestBody,
495
771
  mediaType: 'application/json',
496
772
  errors: {
@@ -505,14 +781,17 @@ class OrderService {
505
781
  * Returns the seats on the order that can be exchanged out, with hasStarted/hasEnded flags so the UI can block ended shows (EXT-9, legacy r/exchange.cfm seat list). Ended-show seats are also rejected server-side at execute time.
506
782
  * @param guid Unique identifier for an order.
507
783
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
784
+ * @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).
508
785
  * @returns ExchangeEligibleSeatsResponse Returns the exchange-eligible seats.
509
786
  * @throws ApiError
510
787
  */
511
- static getExchangeEligibleSeats(guid, context) {
788
+ static getExchangeEligibleSeats(guid, context, xDrtDomain) {
512
789
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
513
790
  method: 'GET',
514
791
  url: '/order/exchange/eligible-seats',
515
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
792
+ headers: {
793
+ 'x-drt-domain': xDrtDomain,
794
+ },
516
795
  query: {
517
796
  'guid': guid,
518
797
  },
@@ -528,14 +807,17 @@ class OrderService {
528
807
  * Returns the shows a buyer can exchange into (ticketed, on sale, in the future) plus how many seats they already hold (EXC-1). Load GA tiers/pricing for a target via GET /event/:id/ga.
529
808
  * @param guid Unique identifier for an order.
530
809
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
810
+ * @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).
531
811
  * @returns ExchangeShowsResponse Returns exchange-eligible shows and held-seat count.
532
812
  * @throws ApiError
533
813
  */
534
- static getExchangeShows(guid, context) {
814
+ static getExchangeShows(guid, context, xDrtDomain) {
535
815
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
536
816
  method: 'GET',
537
817
  url: '/order/exchange/shows',
538
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
818
+ headers: {
819
+ 'x-drt-domain': xDrtDomain,
820
+ },
539
821
  query: {
540
822
  'guid': guid,
541
823
  },
@@ -550,14 +832,17 @@ class OrderService {
550
832
  * Get the seats currently held for the exchange
551
833
  * Returns the seats held in the exchange cart (EXC-1).
552
834
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
835
+ * @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).
553
836
  * @returns SeatInCart Returns the held exchange seats.
554
837
  * @throws ApiError
555
838
  */
556
- static getExchangeSeats(context) {
839
+ static getExchangeSeats(context, xDrtDomain) {
557
840
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
558
841
  method: 'GET',
559
842
  url: '/order/exchange/seats',
560
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
843
+ headers: {
844
+ 'x-drt-domain': xDrtDomain,
845
+ },
561
846
  errors: {
562
847
  400: `Bad Request error with error details.`,
563
848
  404: `Not found error with error details.`,
@@ -570,14 +855,17 @@ class OrderService {
570
855
  * Persists checkout answers for the new seats being exchanged into (EXC-1, legacy exchange-questions-save).
571
856
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
572
857
  * @param requestBody
858
+ * @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).
573
859
  * @returns SuccessResponse Returns success after saving answers.
574
860
  * @throws ApiError
575
861
  */
576
- static saveExchangeAnswers(requestBody, context) {
862
+ static saveExchangeAnswers(requestBody, context, xDrtDomain) {
577
863
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
578
864
  method: 'POST',
579
865
  url: '/order/exchange/questions',
580
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
866
+ headers: {
867
+ 'x-drt-domain': xDrtDomain,
868
+ },
581
869
  body: requestBody,
582
870
  mediaType: 'application/json',
583
871
  errors: {
@@ -593,14 +881,17 @@ class OrderService {
593
881
  * @param showId
594
882
  * @param seatId
595
883
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
884
+ * @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).
596
885
  * @returns ExchangeCancelSeatResponse Returns success and whether the cart timer still runs.
597
886
  * @throws ApiError
598
887
  */
599
- static cancelExchangeSeat(showId, seatId, context) {
888
+ static cancelExchangeSeat(showId, seatId, context, xDrtDomain) {
600
889
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
601
890
  method: 'DELETE',
602
891
  url: '/order/exchange/seat',
603
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
892
+ headers: {
893
+ 'x-drt-domain': xDrtDomain,
894
+ },
604
895
  query: {
605
896
  'showId': showId,
606
897
  'seatId': seatId,
@@ -616,14 +907,17 @@ class OrderService {
616
907
  * Cancel an in-progress exchange
617
908
  * Aborts an in-progress exchange: releases all held seats, clears the cart timer, and clears the exchange lock (EXC-1, legacy exchange-cancel-all).
618
909
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
910
+ * @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).
619
911
  * @returns ExchangeCancelResponse Returns success and whether the exchange lock was cleared.
620
912
  * @throws ApiError
621
913
  */
622
- static cancelExchange(context) {
914
+ static cancelExchange(context, xDrtDomain) {
623
915
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
624
916
  method: 'POST',
625
917
  url: '/order/exchange/cancel',
626
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
918
+ headers: {
919
+ 'x-drt-domain': xDrtDomain,
920
+ },
627
921
  errors: {
628
922
  400: `Bad Request error with error details.`,
629
923
  404: `Not found error with error details.`,
@@ -636,14 +930,17 @@ class OrderService {
636
930
  * Swaps seats held in the cart for the seats specified in seatIds on an existing order.
637
931
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
638
932
  * @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
933
+ * @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).
639
934
  * @returns SuccessResponse Returns success after completing the exchange.
640
935
  * @throws ApiError
641
936
  */
642
- static postExchange(requestBody, context) {
937
+ static postExchange(requestBody, context, xDrtDomain) {
643
938
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
644
939
  method: 'POST',
645
940
  url: '/order/exchange',
646
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
941
+ headers: {
942
+ 'x-drt-domain': xDrtDomain,
943
+ },
647
944
  body: requestBody,
648
945
  mediaType: 'application/json',
649
946
  errors: {
@@ -658,14 +955,17 @@ class OrderService {
658
955
  * Reruns the studio's order validation rules against the recalculated post-exchange order WITHOUT swapping seats or collecting any payment (EXC-4) — used by the legacy exchange tool's execute step for even exchanges and downgrades, which never reach the upcharge endpoint. The session must hold the exchange lock for the order and the held cart must match the outgoing seats. A failing rule rejects with ORDER_VALIDATION_FAILED ("Order validation has failed."). Returns the money consequence (balanceOwed / refundDue / willCreateRefund) so the review step can show it before the buyer confirms (EXT-5).
659
956
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
660
957
  * @param requestBody Validation request containing the order GUID and the seats being exchanged out.
958
+ * @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).
661
959
  * @returns ExchangeValidateResponse Returns success plus the recalculated money consequence.
662
960
  * @throws ApiError
663
961
  */
664
- static validateExchange(requestBody, context) {
962
+ static validateExchange(requestBody, context, xDrtDomain) {
665
963
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
666
964
  method: 'POST',
667
965
  url: '/order/exchange/validate',
668
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
966
+ headers: {
967
+ 'x-drt-domain': xDrtDomain,
968
+ },
669
969
  body: requestBody,
670
970
  mediaType: 'application/json',
671
971
  errors: {
@@ -680,14 +980,17 @@ class OrderService {
680
980
  * Charges the additional amount owed for an in-progress exchange WITHOUT swapping seats (EXC-3) — used by the legacy exchange tool, whose execute step performs the seat swap itself. The session must hold the exchange lock for the order, the held cart must match the outgoing seats, and the amount is recomputed server-side before Payment-API charges the card saved by /payment/customer + /payment/summary.
681
981
  * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
682
982
  * @param requestBody Upcharge request containing the order GUID and the seats being exchanged out.
983
+ * @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).
683
984
  * @returns ExchangeUpchargeResponse Returns the recorded upcharge payment details.
684
985
  * @throws ApiError
685
986
  */
686
- static collectExchangeUpcharge(requestBody, context) {
987
+ static collectExchangeUpcharge(requestBody, context, xDrtDomain) {
687
988
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
688
989
  method: 'POST',
689
990
  url: '/order/exchange/upcharge',
690
- headers: (0, sdkConfig_1.resolveShopperHeaders)(context),
991
+ headers: {
992
+ 'x-drt-domain': xDrtDomain,
993
+ },
691
994
  body: requestBody,
692
995
  mediaType: 'application/json',
693
996
  errors: {