@drttix/drt-sdk 1.3.5 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/README.md +29 -4
  2. package/azure-pipelines.yml +2 -0
  3. package/dist/cjs/src/functions/sdkConfig.d.ts +47 -16
  4. package/dist/cjs/src/functions/sdkConfig.js +63 -43
  5. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  6. package/dist/cjs/src/generated/portal/core/request.js +41 -7
  7. package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
  8. package/dist/cjs/src/generated/scanner/core/request.js +41 -7
  9. package/dist/cjs/src/generated/scanner/index.d.ts +1 -0
  10. package/dist/cjs/src/generated/scanner/models/OrderScan.d.ts +9 -0
  11. package/dist/cjs/src/generated/scanner/models/OrderScan.js +2 -0
  12. package/dist/cjs/src/generated/scanner/models/TicketScan.d.ts +1 -0
  13. package/dist/cjs/src/generated/scanner/services/ScanningService.d.ts +16 -0
  14. package/dist/cjs/src/generated/scanner/services/ScanningService.js +28 -0
  15. package/dist/cjs/src/generated/scanner/types.d.ts +1 -0
  16. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  17. package/dist/cjs/src/generated/shopper/core/request.js +41 -7
  18. package/dist/cjs/src/generated/shopper/index.d.ts +29 -1
  19. package/dist/cjs/src/generated/shopper/models/AnswerInput.d.ts +6 -0
  20. package/dist/cjs/src/generated/shopper/models/AnswerInput.js +2 -0
  21. package/dist/cjs/src/generated/shopper/models/CartAmounts.d.ts +38 -0
  22. package/dist/cjs/src/generated/shopper/models/CartAmounts.js +2 -0
  23. package/dist/cjs/src/generated/shopper/models/CartClearResult.d.ts +14 -0
  24. package/dist/cjs/src/generated/shopper/models/CartClearResult.js +2 -0
  25. package/dist/cjs/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
  26. package/dist/cjs/src/generated/shopper/models/CartCountsLite.js +2 -0
  27. package/dist/cjs/src/generated/shopper/models/CartTotals.d.ts +22 -0
  28. package/dist/cjs/src/generated/shopper/models/CartTotals.js +2 -0
  29. package/dist/cjs/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
  30. package/dist/cjs/src/generated/shopper/models/CheckoutStep.js +2 -0
  31. package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
  32. package/dist/cjs/src/generated/shopper/models/CheckoutStepsResponse.js +2 -0
  33. package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
  34. package/dist/cjs/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
  35. package/dist/cjs/src/generated/shopper/models/CorrelatedCode.js +2 -0
  36. package/dist/cjs/src/generated/shopper/models/EventLegend.d.ts +12 -0
  37. package/dist/cjs/src/generated/shopper/models/EventLegend.js +2 -0
  38. package/dist/cjs/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
  39. package/dist/cjs/src/generated/shopper/models/EventLegendItem.js +2 -0
  40. package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
  41. package/dist/cjs/src/generated/shopper/models/ExchangeAnswersBody.js +2 -0
  42. package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
  43. package/dist/cjs/src/generated/shopper/models/ExchangeCancelSeatResponse.js +2 -0
  44. package/dist/cjs/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
  45. package/dist/cjs/src/generated/shopper/models/ExchangeShow.js +2 -0
  46. package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
  47. package/dist/cjs/src/generated/shopper/models/ExchangeShowsResponse.js +2 -0
  48. package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
  49. package/dist/cjs/src/generated/shopper/models/ExtendTimerDto.js +2 -0
  50. package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
  51. package/dist/cjs/src/generated/shopper/models/ExtendTimerResponseDto.js +2 -0
  52. package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +2 -0
  53. package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +24 -0
  54. package/dist/cjs/src/generated/shopper/models/GaSelection.js +2 -0
  55. package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +27 -0
  56. package/dist/cjs/src/generated/shopper/models/GaTier.js +2 -0
  57. package/dist/cjs/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
  58. package/dist/cjs/src/generated/shopper/models/LandingProduct.d.ts +11 -0
  59. package/dist/cjs/src/generated/shopper/models/LandingProduct.js +2 -0
  60. package/dist/cjs/src/generated/shopper/models/LandingShow.d.ts +16 -0
  61. package/dist/cjs/src/generated/shopper/models/LandingShow.js +2 -0
  62. package/dist/cjs/src/generated/shopper/models/LandingVenue.d.ts +10 -0
  63. package/dist/cjs/src/generated/shopper/models/LandingVenue.js +2 -0
  64. package/dist/cjs/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
  65. package/dist/cjs/src/generated/shopper/models/NextStepResponse.js +2 -0
  66. package/dist/cjs/src/generated/shopper/models/OrderBalance.d.ts +26 -0
  67. package/dist/cjs/src/generated/shopper/models/OrderBalance.js +2 -0
  68. package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
  69. package/dist/cjs/src/generated/shopper/models/OrderPaymentStatus.js +2 -0
  70. package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
  71. package/dist/cjs/src/generated/shopper/models/PosDefaultInfoResponse.js +2 -0
  72. package/dist/cjs/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
  73. package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
  74. package/dist/cjs/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
  75. package/dist/cjs/src/generated/shopper/models/SetLanguageDto.js +2 -0
  76. package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +14 -0
  77. package/dist/cjs/src/generated/shopper/models/ShowExtras.js +2 -0
  78. package/dist/cjs/src/generated/shopper/models/StreamDetails.d.ts +25 -0
  79. package/dist/cjs/src/generated/shopper/models/StreamDetails.js +2 -0
  80. package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
  81. package/dist/cjs/src/generated/shopper/models/StreamDownloadLink.js +2 -0
  82. package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +20 -4
  83. package/dist/cjs/src/generated/shopper/services/AccountService.js +13 -4
  84. package/dist/cjs/src/generated/shopper/services/CartService.d.ts +76 -7
  85. package/dist/cjs/src/generated/shopper/services/CartService.js +98 -7
  86. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +47 -14
  87. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +50 -19
  88. package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +38 -5
  89. package/dist/cjs/src/generated/shopper/services/CodeService.js +39 -5
  90. package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +23 -2
  91. package/dist/cjs/src/generated/shopper/services/DonationService.js +29 -2
  92. package/dist/cjs/src/generated/shopper/services/EventService.d.ts +46 -4
  93. package/dist/cjs/src/generated/shopper/services/EventService.js +59 -4
  94. package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +25 -5
  95. package/dist/cjs/src/generated/shopper/services/GiftCardService.js +16 -5
  96. package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +209 -16
  97. package/dist/cjs/src/generated/shopper/services/OrderService.js +276 -16
  98. package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +15 -3
  99. package/dist/cjs/src/generated/shopper/services/PaymentService.js +10 -3
  100. package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +15 -3
  101. package/dist/cjs/src/generated/shopper/services/ProductService.js +10 -3
  102. package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +30 -6
  103. package/dist/cjs/src/generated/shopper/services/SeatService.js +19 -6
  104. package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +37 -2
  105. package/dist/cjs/src/generated/shopper/services/SessionService.js +51 -2
  106. package/dist/cjs/src/generated/shopper/types.d.ts +29 -1
  107. package/dist/cjs/src/scripts/build-all.js +83 -19
  108. package/dist/esm/src/functions/sdkConfig.d.ts +47 -16
  109. package/dist/esm/src/functions/sdkConfig.js +61 -41
  110. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  111. package/dist/esm/src/generated/portal/core/request.js +41 -7
  112. package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
  113. package/dist/esm/src/generated/scanner/core/request.js +41 -7
  114. package/dist/esm/src/generated/scanner/index.d.ts +1 -0
  115. package/dist/esm/src/generated/scanner/models/OrderScan.d.ts +9 -0
  116. package/dist/esm/src/generated/scanner/models/OrderScan.js +1 -0
  117. package/dist/esm/src/generated/scanner/models/TicketScan.d.ts +1 -0
  118. package/dist/esm/src/generated/scanner/services/ScanningService.d.ts +16 -0
  119. package/dist/esm/src/generated/scanner/services/ScanningService.js +28 -0
  120. package/dist/esm/src/generated/scanner/types.d.ts +1 -0
  121. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  122. package/dist/esm/src/generated/shopper/core/request.js +41 -7
  123. package/dist/esm/src/generated/shopper/index.d.ts +29 -1
  124. package/dist/esm/src/generated/shopper/models/AnswerInput.d.ts +6 -0
  125. package/dist/esm/src/generated/shopper/models/AnswerInput.js +1 -0
  126. package/dist/esm/src/generated/shopper/models/CartAmounts.d.ts +38 -0
  127. package/dist/esm/src/generated/shopper/models/CartAmounts.js +1 -0
  128. package/dist/esm/src/generated/shopper/models/CartClearResult.d.ts +14 -0
  129. package/dist/esm/src/generated/shopper/models/CartClearResult.js +1 -0
  130. package/dist/esm/src/generated/shopper/models/CartCountsLite.d.ts +14 -0
  131. package/dist/esm/src/generated/shopper/models/CartCountsLite.js +1 -0
  132. package/dist/esm/src/generated/shopper/models/CartTotals.d.ts +22 -0
  133. package/dist/esm/src/generated/shopper/models/CartTotals.js +1 -0
  134. package/dist/esm/src/generated/shopper/models/CheckoutStep.d.ts +10 -0
  135. package/dist/esm/src/generated/shopper/models/CheckoutStep.js +1 -0
  136. package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.d.ts +7 -0
  137. package/dist/esm/src/generated/shopper/models/CheckoutStepsResponse.js +1 -0
  138. package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +3 -13
  139. package/dist/esm/src/generated/shopper/models/CorrelatedCode.d.ts +14 -0
  140. package/dist/esm/src/generated/shopper/models/CorrelatedCode.js +1 -0
  141. package/dist/esm/src/generated/shopper/models/EventLegend.d.ts +12 -0
  142. package/dist/esm/src/generated/shopper/models/EventLegend.js +1 -0
  143. package/dist/esm/src/generated/shopper/models/EventLegendItem.d.ts +9 -0
  144. package/dist/esm/src/generated/shopper/models/EventLegendItem.js +1 -0
  145. package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.d.ts +4 -0
  146. package/dist/esm/src/generated/shopper/models/ExchangeAnswersBody.js +1 -0
  147. package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.d.ts +7 -0
  148. package/dist/esm/src/generated/shopper/models/ExchangeCancelSeatResponse.js +1 -0
  149. package/dist/esm/src/generated/shopper/models/ExchangeShow.d.ts +12 -0
  150. package/dist/esm/src/generated/shopper/models/ExchangeShow.js +1 -0
  151. package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.d.ts +8 -0
  152. package/dist/esm/src/generated/shopper/models/ExchangeShowsResponse.js +1 -0
  153. package/dist/esm/src/generated/shopper/models/ExtendTimerDto.d.ts +6 -0
  154. package/dist/esm/src/generated/shopper/models/ExtendTimerDto.js +1 -0
  155. package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.d.ts +10 -0
  156. package/dist/esm/src/generated/shopper/models/ExtendTimerResponseDto.js +1 -0
  157. package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +2 -0
  158. package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +24 -0
  159. package/dist/esm/src/generated/shopper/models/GaSelection.js +1 -0
  160. package/dist/esm/src/generated/shopper/models/GaTier.d.ts +27 -0
  161. package/dist/esm/src/generated/shopper/models/GaTier.js +1 -0
  162. package/dist/esm/src/generated/shopper/models/LandingPageResponse.d.ts +10 -0
  163. package/dist/esm/src/generated/shopper/models/LandingProduct.d.ts +11 -0
  164. package/dist/esm/src/generated/shopper/models/LandingProduct.js +1 -0
  165. package/dist/esm/src/generated/shopper/models/LandingShow.d.ts +16 -0
  166. package/dist/esm/src/generated/shopper/models/LandingShow.js +1 -0
  167. package/dist/esm/src/generated/shopper/models/LandingVenue.d.ts +10 -0
  168. package/dist/esm/src/generated/shopper/models/LandingVenue.js +1 -0
  169. package/dist/esm/src/generated/shopper/models/NextStepResponse.d.ts +7 -0
  170. package/dist/esm/src/generated/shopper/models/NextStepResponse.js +1 -0
  171. package/dist/esm/src/generated/shopper/models/OrderBalance.d.ts +26 -0
  172. package/dist/esm/src/generated/shopper/models/OrderBalance.js +1 -0
  173. package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.d.ts +14 -0
  174. package/dist/esm/src/generated/shopper/models/OrderPaymentStatus.js +1 -0
  175. package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.d.ts +7 -0
  176. package/dist/esm/src/generated/shopper/models/PosDefaultInfoResponse.js +1 -0
  177. package/dist/esm/src/generated/shopper/models/ProductAddResponse.d.ts +4 -0
  178. package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
  179. package/dist/esm/src/generated/shopper/models/SetLanguageDto.d.ts +6 -0
  180. package/dist/esm/src/generated/shopper/models/SetLanguageDto.js +1 -0
  181. package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +14 -0
  182. package/dist/esm/src/generated/shopper/models/ShowExtras.js +1 -0
  183. package/dist/esm/src/generated/shopper/models/StreamDetails.d.ts +25 -0
  184. package/dist/esm/src/generated/shopper/models/StreamDetails.js +1 -0
  185. package/dist/esm/src/generated/shopper/models/StreamDownloadLink.d.ts +4 -0
  186. package/dist/esm/src/generated/shopper/models/StreamDownloadLink.js +1 -0
  187. package/dist/esm/src/generated/shopper/services/AccountService.d.ts +20 -4
  188. package/dist/esm/src/generated/shopper/services/AccountService.js +13 -4
  189. package/dist/esm/src/generated/shopper/services/CartService.d.ts +76 -7
  190. package/dist/esm/src/generated/shopper/services/CartService.js +98 -7
  191. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +47 -14
  192. package/dist/esm/src/generated/shopper/services/CheckoutService.js +50 -19
  193. package/dist/esm/src/generated/shopper/services/CodeService.d.ts +38 -5
  194. package/dist/esm/src/generated/shopper/services/CodeService.js +39 -5
  195. package/dist/esm/src/generated/shopper/services/DonationService.d.ts +23 -2
  196. package/dist/esm/src/generated/shopper/services/DonationService.js +29 -2
  197. package/dist/esm/src/generated/shopper/services/EventService.d.ts +46 -4
  198. package/dist/esm/src/generated/shopper/services/EventService.js +59 -4
  199. package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +25 -5
  200. package/dist/esm/src/generated/shopper/services/GiftCardService.js +16 -5
  201. package/dist/esm/src/generated/shopper/services/OrderService.d.ts +209 -16
  202. package/dist/esm/src/generated/shopper/services/OrderService.js +276 -16
  203. package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +15 -3
  204. package/dist/esm/src/generated/shopper/services/PaymentService.js +10 -3
  205. package/dist/esm/src/generated/shopper/services/ProductService.d.ts +15 -3
  206. package/dist/esm/src/generated/shopper/services/ProductService.js +10 -3
  207. package/dist/esm/src/generated/shopper/services/SeatService.d.ts +30 -6
  208. package/dist/esm/src/generated/shopper/services/SeatService.js +19 -6
  209. package/dist/esm/src/generated/shopper/services/SessionService.d.ts +37 -2
  210. package/dist/esm/src/generated/shopper/services/SessionService.js +51 -2
  211. package/dist/esm/src/generated/shopper/types.d.ts +29 -1
  212. package/dist/esm/src/scripts/build-all.js +83 -19
  213. package/package.json +3 -2
  214. package/pnpm-workspace.yaml +2 -0
  215. package/src/custom/custom-request.txt +43 -9
  216. package/src/functions/sdkConfig.ts +91 -54
  217. package/src/generated/portal/core/OpenAPI.ts +1 -1
  218. package/src/generated/portal/core/request.ts +43 -9
  219. package/src/generated/scanner/core/OpenAPI.ts +1 -1
  220. package/src/generated/scanner/core/request.ts +43 -9
  221. package/src/generated/scanner/index.ts +1 -0
  222. package/src/generated/scanner/models/OrderScan.ts +14 -0
  223. package/src/generated/scanner/models/TicketScan.ts +1 -0
  224. package/src/generated/scanner/services/ScanningService.ts +38 -0
  225. package/src/generated/scanner/types.ts +1 -0
  226. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  227. package/src/generated/shopper/core/request.ts +43 -9
  228. package/src/generated/shopper/index.ts +29 -1
  229. package/src/generated/shopper/models/AnswerInput.ts +11 -0
  230. package/src/generated/shopper/models/CartAmounts.ts +43 -0
  231. package/src/generated/shopper/models/CartClearResult.ts +19 -0
  232. package/src/generated/shopper/models/CartCountsLite.ts +19 -0
  233. package/src/generated/shopper/models/CartTotals.ts +27 -0
  234. package/src/generated/shopper/models/CheckoutStep.ts +15 -0
  235. package/src/generated/shopper/models/CheckoutStepsResponse.ts +12 -0
  236. package/src/generated/shopper/models/CheckoutSubmitBody.ts +3 -13
  237. package/src/generated/shopper/models/CorrelatedCode.ts +19 -0
  238. package/src/generated/shopper/models/EventLegend.ts +17 -0
  239. package/src/generated/shopper/models/EventLegendItem.ts +14 -0
  240. package/src/generated/shopper/models/ExchangeAnswersBody.ts +9 -0
  241. package/src/generated/shopper/models/ExchangeCancelSeatResponse.ts +12 -0
  242. package/src/generated/shopper/models/ExchangeShow.ts +17 -0
  243. package/src/generated/shopper/models/ExchangeShowsResponse.ts +13 -0
  244. package/src/generated/shopper/models/ExtendTimerDto.ts +11 -0
  245. package/src/generated/shopper/models/ExtendTimerResponseDto.ts +15 -0
  246. package/src/generated/shopper/models/FullEventDetails.ts +2 -0
  247. package/src/generated/shopper/models/GaSelection.ts +29 -0
  248. package/src/generated/shopper/models/GaTier.ts +32 -0
  249. package/src/generated/shopper/models/LandingPageResponse.ts +10 -0
  250. package/src/generated/shopper/models/LandingProduct.ts +16 -0
  251. package/src/generated/shopper/models/LandingShow.ts +21 -0
  252. package/src/generated/shopper/models/LandingVenue.ts +15 -0
  253. package/src/generated/shopper/models/NextStepResponse.ts +12 -0
  254. package/src/generated/shopper/models/OrderBalance.ts +31 -0
  255. package/src/generated/shopper/models/OrderPaymentStatus.ts +19 -0
  256. package/src/generated/shopper/models/PosDefaultInfoResponse.ts +12 -0
  257. package/src/generated/shopper/models/ProductAddResponse.ts +4 -0
  258. package/src/generated/shopper/models/SeatInCart.ts +8 -0
  259. package/src/generated/shopper/models/SetLanguageDto.ts +11 -0
  260. package/src/generated/shopper/models/ShowExtras.ts +19 -0
  261. package/src/generated/shopper/models/StreamDetails.ts +30 -0
  262. package/src/generated/shopper/models/StreamDownloadLink.ts +9 -0
  263. package/src/generated/shopper/services/AccountService.ts +22 -9
  264. package/src/generated/shopper/services/CartService.ts +123 -14
  265. package/src/generated/shopper/services/CheckoutService.ts +69 -29
  266. package/src/generated/shopper/services/CodeService.ts +58 -15
  267. package/src/generated/shopper/services/DonationService.ts +38 -5
  268. package/src/generated/shopper/services/EventService.ts +77 -10
  269. package/src/generated/shopper/services/GiftCardService.ts +28 -12
  270. package/src/generated/shopper/services/OrderService.ts +356 -41
  271. package/src/generated/shopper/services/PaymentService.ts +19 -9
  272. package/src/generated/shopper/services/ProductService.ts +19 -9
  273. package/src/generated/shopper/services/SeatService.ts +38 -19
  274. package/src/generated/shopper/services/SessionService.ts +65 -5
  275. package/src/generated/shopper/types.ts +29 -1
  276. package/src/scripts/build-all.ts +127 -26
  277. package/src/generated/shopper/models/SaveNonceBody.ts +0 -15
@@ -1,17 +1,89 @@
1
1
  import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
+ import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
3
4
  export class OrderService {
4
5
  /**
5
6
  * Get order receipt by guid
6
7
  * Fetches the receipt for an order using its unique guid.
7
8
  * @param guid Unique identifier for an order.
9
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
8
10
  * @returns Receipt Returns the order receipt.
9
11
  * @throws ApiError
10
12
  */
11
- static getReceipt(guid) {
13
+ static getReceipt(guid, context) {
12
14
  return __request(OpenAPI, {
13
15
  method: 'GET',
14
16
  url: '/order/receipt',
17
+ headers: resolveShopperHeaders(context),
18
+ query: {
19
+ 'guid': guid,
20
+ },
21
+ errors: {
22
+ 400: `Bad Request error with error details.`,
23
+ 404: `Not found error with error details.`,
24
+ 500: `Internal Server Error, please contact developers.`,
25
+ },
26
+ });
27
+ }
28
+ /**
29
+ * Stamp the session source order
30
+ * Records the given order as the current session's source order (session.src_order_id) for attribution (ORD-1, legacy order-set-src).
31
+ * @param guid Unique identifier for an order.
32
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
33
+ * @returns SuccessResponse Returns success after stamping the source order.
34
+ * @throws ApiError
35
+ */
36
+ static setOrderSrc(guid, context) {
37
+ return __request(OpenAPI, {
38
+ method: 'POST',
39
+ url: '/order/set-src',
40
+ headers: resolveShopperHeaders(context),
41
+ query: {
42
+ 'guid': guid,
43
+ },
44
+ errors: {
45
+ 400: `Bad Request error with error details.`,
46
+ 404: `Not found error with error details.`,
47
+ 500: `Internal Server Error, please contact developers.`,
48
+ },
49
+ });
50
+ }
51
+ /**
52
+ * Get the balance owed on an order
53
+ * 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).
54
+ * @param guid Unique identifier for an order.
55
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
56
+ * @returns OrderBalance Returns the order balance and adjustment-payment gating.
57
+ * @throws ApiError
58
+ */
59
+ static getOrderBalance(guid, context) {
60
+ return __request(OpenAPI, {
61
+ method: 'GET',
62
+ url: '/order/balance',
63
+ headers: resolveShopperHeaders(context),
64
+ query: {
65
+ 'guid': guid,
66
+ },
67
+ errors: {
68
+ 400: `Bad Request error with error details.`,
69
+ 404: `Not found error with error details.`,
70
+ 500: `Internal Server Error, please contact developers.`,
71
+ },
72
+ });
73
+ }
74
+ /**
75
+ * Poll the payment status of an order
76
+ * 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).
77
+ * @param guid Unique identifier for an order.
78
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
79
+ * @returns OrderPaymentStatus Returns the order payment status.
80
+ * @throws ApiError
81
+ */
82
+ static getOrderPaymentStatus(guid, context) {
83
+ return __request(OpenAPI, {
84
+ method: 'GET',
85
+ url: '/order/payment-status',
86
+ headers: resolveShopperHeaders(context),
15
87
  query: {
16
88
  'guid': guid,
17
89
  },
@@ -26,13 +98,15 @@ export class OrderService {
26
98
  * Get Gwallet link by guid
27
99
  * Fetches the Gwallet link for an order using its unique guid.
28
100
  * @param guid Unique identifier for an order.
101
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
29
102
  * @returns LinkWithSuccess Returns the Gwallet link.
30
103
  * @throws ApiError
31
104
  */
32
- static getGwalletLink(guid) {
105
+ static getGwalletLink(guid, context) {
33
106
  return __request(OpenAPI, {
34
107
  method: 'GET',
35
108
  url: '/order/gwallet',
109
+ headers: resolveShopperHeaders(context),
36
110
  query: {
37
111
  'guid': guid,
38
112
  },
@@ -47,13 +121,15 @@ export class OrderService {
47
121
  * Get testing guid
48
122
  * Fetches a testing guid for development purposes.
49
123
  * @param guid Unique identifier for an order.
124
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
50
125
  * @returns GuidReturn Returns a testing guid.
51
126
  * @throws ApiError
52
127
  */
53
- static getTestingGuid(guid) {
128
+ static getTestingGuid(guid, context) {
54
129
  return __request(OpenAPI, {
55
130
  method: 'GET',
56
131
  url: '/order/testing',
132
+ headers: resolveShopperHeaders(context),
57
133
  query: {
58
134
  'guid': guid,
59
135
  },
@@ -68,13 +144,15 @@ export class OrderService {
68
144
  * Get assign names by guid
69
145
  * Fetches the assign names information for an order using its unique guid.
70
146
  * @param guid Unique identifier for an order.
147
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
71
148
  * @returns AssignNamesReturn Returns the assign names information.
72
149
  * @throws ApiError
73
150
  */
74
- static getAssignNames(guid) {
151
+ static getAssignNames(guid, context) {
75
152
  return __request(OpenAPI, {
76
153
  method: 'GET',
77
154
  url: '/order/assign-names',
155
+ headers: resolveShopperHeaders(context),
78
156
  query: {
79
157
  'guid': guid,
80
158
  },
@@ -89,14 +167,16 @@ export class OrderService {
89
167
  * Post assign names
90
168
  * Assigns names to an order using its unique guid and the provided names.
91
169
  * @param guid Unique identifier for an order.
170
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
92
171
  * @param requestBody Names to be assigned to the order.
93
172
  * @returns SuccessResponse Returns success status after assigning names.
94
173
  * @throws ApiError
95
174
  */
96
- static postAssignNames(guid, requestBody) {
175
+ static postAssignNames(guid, requestBody, context) {
97
176
  return __request(OpenAPI, {
98
177
  method: 'POST',
99
178
  url: '/order/assign-names',
179
+ headers: resolveShopperHeaders(context),
100
180
  query: {
101
181
  'guid': guid,
102
182
  },
@@ -113,14 +193,16 @@ export class OrderService {
113
193
  * Post email tickets
114
194
  * Sends email tickets for an order using its unique guid and the provided email update.
115
195
  * @param guid Unique identifier for an order.
196
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
116
197
  * @param requestBody Email update containing the email address to send tickets.
117
198
  * @returns SuccessResponse Returns success status after sending email tickets.
118
199
  * @throws ApiError
119
200
  */
120
- static postEmailTickets(guid, requestBody) {
201
+ static postEmailTickets(guid, requestBody, context) {
121
202
  return __request(OpenAPI, {
122
203
  method: 'POST',
123
204
  url: '/order/email-tickets',
205
+ headers: resolveShopperHeaders(context),
124
206
  query: {
125
207
  'guid': guid,
126
208
  },
@@ -137,13 +219,15 @@ export class OrderService {
137
219
  * Get ticket block by guid
138
220
  * Fetches the ticket block for an order using its unique guid.
139
221
  * @param guid Unique identifier for an order.
222
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
140
223
  * @returns PickupReturn Returns the ticket block for the order.
141
224
  * @throws ApiError
142
225
  */
143
- static getTicketBlock(guid) {
226
+ static getTicketBlock(guid, context) {
144
227
  return __request(OpenAPI, {
145
228
  method: 'GET',
146
229
  url: '/order/pickup',
230
+ headers: resolveShopperHeaders(context),
147
231
  query: {
148
232
  'guid': guid,
149
233
  },
@@ -158,13 +242,15 @@ export class OrderService {
158
242
  * Post ticket block by guid
159
243
  * Sends the ticket block for an order using its unique guid.
160
244
  * @param guid Unique identifier for an order.
245
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
161
246
  * @returns SuccessResponse Returns the ticket block for the order.
162
247
  * @throws ApiError
163
248
  */
164
- static postPickup(guid) {
249
+ static postPickup(guid, context) {
165
250
  return __request(OpenAPI, {
166
251
  method: 'POST',
167
252
  url: '/order/pickup',
253
+ headers: resolveShopperHeaders(context),
168
254
  query: {
169
255
  'guid': guid,
170
256
  },
@@ -179,13 +265,15 @@ export class OrderService {
179
265
  * Send order receipt via email
180
266
  * Sends the order receipt to the shopper's email address for the specified order guid.
181
267
  * @param guid Unique identifier for an order.
268
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
182
269
  * @returns SuccessResponse Returns success status after emailing the receipt.
183
270
  * @throws ApiError
184
271
  */
185
- static postEmailReceipt(guid) {
272
+ static postEmailReceipt(guid, context) {
186
273
  return __request(OpenAPI, {
187
274
  method: 'POST',
188
275
  url: '/order/email-receipt',
276
+ headers: resolveShopperHeaders(context),
189
277
  query: {
190
278
  'guid': guid,
191
279
  },
@@ -200,13 +288,15 @@ export class OrderService {
200
288
  * Get refund request information
201
289
  * Fetches the refund request information for an order using its unique guid.
202
290
  * @param guid Unique identifier for an order.
291
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
203
292
  * @returns RefundRequestInfo Returns the refund request information for the order.
204
293
  * @throws ApiError
205
294
  */
206
- static getRefundRequest(guid) {
295
+ static getRefundRequest(guid, context) {
207
296
  return __request(OpenAPI, {
208
297
  method: 'GET',
209
298
  url: '/order/refund-request',
299
+ headers: resolveShopperHeaders(context),
210
300
  query: {
211
301
  'guid': guid,
212
302
  },
@@ -221,14 +311,16 @@ export class OrderService {
221
311
  * Submit a refund request
222
312
  * Submits a refund request for an order using its unique guid and the provided refund details.
223
313
  * @param guid Unique identifier for an order.
314
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
224
315
  * @param requestBody Refund request details.
225
316
  * @returns SuccessResponse Returns success status after submitting the refund request.
226
317
  * @throws ApiError
227
318
  */
228
- static postRefundRequest(guid, requestBody) {
319
+ static postRefundRequest(guid, requestBody, context) {
229
320
  return __request(OpenAPI, {
230
321
  method: 'POST',
231
322
  url: '/order/refund-request',
323
+ headers: resolveShopperHeaders(context),
232
324
  query: {
233
325
  'guid': guid,
234
326
  },
@@ -245,14 +337,16 @@ export class OrderService {
245
337
  * Recalculate order totals
246
338
  * Recalculates the totals for an order using the provided recalculation data.
247
339
  * @param guid Unique identifier for an order.
340
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
248
341
  * @param requestBody Order recalculation data.
249
342
  * @returns RecalcResponse Returns the recalculated order totals and success status.
250
343
  * @throws ApiError
251
344
  */
252
- static postRecalcOrder(guid, requestBody) {
345
+ static postRecalcOrder(guid, requestBody, context) {
253
346
  return __request(OpenAPI, {
254
347
  method: 'POST',
255
348
  url: '/order/recalc',
349
+ headers: resolveShopperHeaders(context),
256
350
  query: {
257
351
  'guid': guid,
258
352
  },
@@ -268,14 +362,16 @@ export class OrderService {
268
362
  /**
269
363
  * Donate order in lieu of refund
270
364
  * Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
365
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
271
366
  * @param requestBody Donate order payload containing guid and donatedIpAddress.
272
367
  * @returns SuccessResponse Returns success status after donating the order.
273
368
  * @throws ApiError
274
369
  */
275
- static postDonateOrder(requestBody) {
370
+ static postDonateOrder(requestBody, context) {
276
371
  return __request(OpenAPI, {
277
372
  method: 'POST',
278
373
  url: '/order/donate-order',
374
+ headers: resolveShopperHeaders(context),
279
375
  body: requestBody,
280
376
  mediaType: 'application/json',
281
377
  errors: {
@@ -285,17 +381,69 @@ export class OrderService {
285
381
  },
286
382
  });
287
383
  }
384
+ /**
385
+ * Get virtual-stream details/embed for an order
386
+ * Returns the stream provider/code/embed/links and whether it's available right now (date-gated by the session effective date). The stream must belong to the order (VS-1).
387
+ * @param orderGuid
388
+ * @param streamGuid
389
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
390
+ * @returns StreamDetails Returns the stream details.
391
+ * @throws ApiError
392
+ */
393
+ static getStreamDetails(orderGuid, streamGuid, context) {
394
+ return __request(OpenAPI, {
395
+ method: 'GET',
396
+ url: '/order/stream',
397
+ headers: resolveShopperHeaders(context),
398
+ query: {
399
+ 'orderGuid': orderGuid,
400
+ 'streamGuid': streamGuid,
401
+ },
402
+ errors: {
403
+ 400: `Bad Request error with error details.`,
404
+ 404: `Not found error with error details.`,
405
+ 500: `Internal Server Error, please contact developers.`,
406
+ },
407
+ });
408
+ }
409
+ /**
410
+ * Get the digital-download link for a stream
411
+ * Returns the best-quality digital-download cloud URL for a stream on the order (VS-1, legacy digital-download-get-link).
412
+ * @param orderGuid
413
+ * @param streamGuid
414
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
415
+ * @returns StreamDownloadLink Returns the download link.
416
+ * @throws ApiError
417
+ */
418
+ static getStreamDownloadLink(orderGuid, streamGuid, context) {
419
+ return __request(OpenAPI, {
420
+ method: 'GET',
421
+ url: '/order/stream/download',
422
+ headers: resolveShopperHeaders(context),
423
+ query: {
424
+ 'orderGuid': orderGuid,
425
+ 'streamGuid': streamGuid,
426
+ },
427
+ errors: {
428
+ 400: `Bad Request error with error details.`,
429
+ 404: `Not found error with error details.`,
430
+ 500: `Internal Server Error, please contact developers.`,
431
+ },
432
+ });
433
+ }
288
434
  /**
289
435
  * Register a stream for a shopper
290
436
  * Registers a stream for the specified shopper and account using the provided stream registration details.
437
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
291
438
  * @param requestBody Stream registration details.
292
439
  * @returns RegisterStreamResponse Returns the stream registration response.
293
440
  * @throws ApiError
294
441
  */
295
- static postRegisterStream(requestBody) {
442
+ static postRegisterStream(requestBody, context) {
296
443
  return __request(OpenAPI, {
297
444
  method: 'POST',
298
445
  url: '/order/stream-register',
446
+ headers: resolveShopperHeaders(context),
299
447
  body: requestBody,
300
448
  mediaType: 'application/json',
301
449
  errors: {
@@ -308,14 +456,80 @@ export class OrderService {
308
456
  /**
309
457
  * Deregister a stream for a shopper
310
458
  * Removes the stream registration for the specified shopper and account using the provided stream registration details.
459
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
311
460
  * @param requestBody Stream registration details to be deregistered.
312
461
  * @returns SuccessResponse Returns success status after deregistering the stream.
313
462
  * @throws ApiError
314
463
  */
315
- static deleteRegisteredStream(requestBody) {
464
+ static deleteRegisteredStream(requestBody, context) {
316
465
  return __request(OpenAPI, {
317
466
  method: 'DELETE',
318
467
  url: '/order/stream-register',
468
+ headers: resolveShopperHeaders(context),
469
+ body: requestBody,
470
+ mediaType: 'application/json',
471
+ errors: {
472
+ 400: `Bad Request error with error details.`,
473
+ 404: `Not found error with error details.`,
474
+ 500: `Internal Server Error, please contact developers.`,
475
+ },
476
+ });
477
+ }
478
+ /**
479
+ * List shows available to exchange into
480
+ * 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.
481
+ * @param guid Unique identifier for an order.
482
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
483
+ * @returns ExchangeShowsResponse Returns exchange-eligible shows and held-seat count.
484
+ * @throws ApiError
485
+ */
486
+ static getExchangeShows(guid, context) {
487
+ return __request(OpenAPI, {
488
+ method: 'GET',
489
+ url: '/order/exchange/shows',
490
+ headers: resolveShopperHeaders(context),
491
+ query: {
492
+ 'guid': guid,
493
+ },
494
+ errors: {
495
+ 400: `Bad Request error with error details.`,
496
+ 404: `Not found error with error details.`,
497
+ 500: `Internal Server Error, please contact developers.`,
498
+ },
499
+ });
500
+ }
501
+ /**
502
+ * Get the seats currently held for the exchange
503
+ * Returns the seats held in the exchange cart (EXC-1).
504
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
505
+ * @returns SeatInCart Returns the held exchange seats.
506
+ * @throws ApiError
507
+ */
508
+ static getExchangeSeats(context) {
509
+ return __request(OpenAPI, {
510
+ method: 'GET',
511
+ url: '/order/exchange/seats',
512
+ headers: resolveShopperHeaders(context),
513
+ errors: {
514
+ 400: `Bad Request error with error details.`,
515
+ 404: `Not found error with error details.`,
516
+ 500: `Internal Server Error, please contact developers.`,
517
+ },
518
+ });
519
+ }
520
+ /**
521
+ * Save per-seat answers for the new exchange seats
522
+ * Persists checkout answers for the new seats being exchanged into (EXC-1, legacy exchange-questions-save).
523
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
524
+ * @param requestBody
525
+ * @returns SuccessResponse Returns success after saving answers.
526
+ * @throws ApiError
527
+ */
528
+ static saveExchangeAnswers(requestBody, context) {
529
+ return __request(OpenAPI, {
530
+ method: 'POST',
531
+ url: '/order/exchange/questions',
532
+ headers: resolveShopperHeaders(context),
319
533
  body: requestBody,
320
534
  mediaType: 'application/json',
321
535
  errors: {
@@ -325,17 +539,63 @@ export class OrderService {
325
539
  },
326
540
  });
327
541
  }
542
+ /**
543
+ * Release one held seat during an exchange
544
+ * Releases a single held seat from the exchange cart; clears the cart timer when no held seats remain (EXC-1, legacy exchange-cancel).
545
+ * @param showId
546
+ * @param seatId
547
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
548
+ * @returns ExchangeCancelSeatResponse Returns success and whether the cart timer still runs.
549
+ * @throws ApiError
550
+ */
551
+ static cancelExchangeSeat(showId, seatId, context) {
552
+ return __request(OpenAPI, {
553
+ method: 'DELETE',
554
+ url: '/order/exchange/seat',
555
+ headers: resolveShopperHeaders(context),
556
+ query: {
557
+ 'showId': showId,
558
+ 'seatId': seatId,
559
+ },
560
+ errors: {
561
+ 400: `Bad Request error with error details.`,
562
+ 404: `Not found error with error details.`,
563
+ 500: `Internal Server Error, please contact developers.`,
564
+ },
565
+ });
566
+ }
567
+ /**
568
+ * Cancel an in-progress exchange
569
+ * Aborts an in-progress exchange: releases all held seats, clears the cart timer, and clears the exchange lock (EXC-1, legacy exchange-cancel-all).
570
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
571
+ * @returns SuccessResponse Returns success after cancelling the exchange.
572
+ * @throws ApiError
573
+ */
574
+ static cancelExchange(context) {
575
+ return __request(OpenAPI, {
576
+ method: 'POST',
577
+ url: '/order/exchange/cancel',
578
+ headers: resolveShopperHeaders(context),
579
+ errors: {
580
+ 400: `Bad Request error with error details.`,
581
+ 404: `Not found error with error details.`,
582
+ 500: `Internal Server Error, please contact developers.`,
583
+ },
584
+ });
585
+ }
328
586
  /**
329
587
  * Execute a seat exchange for an order
330
588
  * Swaps seats held in the cart for the seats specified in seatIds on an existing order.
589
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
331
590
  * @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
332
591
  * @returns SuccessResponse Returns success after completing the exchange.
333
592
  * @throws ApiError
334
593
  */
335
- static postExchange(requestBody) {
594
+ static postExchange(requestBody, context) {
336
595
  return __request(OpenAPI, {
337
596
  method: 'POST',
338
597
  url: '/order/exchange',
598
+ headers: resolveShopperHeaders(context),
339
599
  body: requestBody,
340
600
  mediaType: 'application/json',
341
601
  errors: {
@@ -8,24 +8,36 @@ export declare class PaymentService {
8
8
  /**
9
9
  * Summarize payment
10
10
  * Saves the payment data for the shopper with the provided confirmation token.
11
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
11
12
  * @param requestBody Summary request body containing the confirmation token.
12
13
  * @returns SuccessResponse Returns a success response.
13
14
  * @throws ApiError
14
15
  */
15
- static summarizePayment(requestBody: SummaryBody): CancelablePromise<SuccessResponse>;
16
+ static summarizePayment(requestBody: SummaryBody, context?: {
17
+ shopperGuid?: string;
18
+ accountId?: string;
19
+ }): CancelablePromise<SuccessResponse>;
16
20
  /**
17
21
  * Complete payment
18
22
  * Completes the payment for the shopper using the provided cart hash and IP address.
23
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
19
24
  * @param requestBody Payment completion request body containing cart hash and IP address.
20
25
  * @returns PaymentSuccess Returns the result of the payment completion.
21
26
  * @throws ApiError
22
27
  */
23
- static completePayment(requestBody: CompleteBody): CancelablePromise<PaymentSuccess>;
28
+ static completePayment(requestBody: CompleteBody, context?: {
29
+ shopperGuid?: string;
30
+ accountId?: string;
31
+ }): CancelablePromise<PaymentSuccess>;
24
32
  /**
25
33
  * Create payment customer session
26
34
  * Creates a new payment customer session for the shopper and account.
35
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
27
36
  * @returns CreateCustomerResponse Returns the created customer session.
28
37
  * @throws ApiError
29
38
  */
30
- static createCustomerSession(): CancelablePromise<CreateCustomerResponse>;
39
+ static createCustomerSession(context?: {
40
+ shopperGuid?: string;
41
+ accountId?: string;
42
+ }): CancelablePromise<CreateCustomerResponse>;
31
43
  }
@@ -1,17 +1,20 @@
1
1
  import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
+ import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
3
4
  export class PaymentService {
4
5
  /**
5
6
  * Summarize payment
6
7
  * Saves the payment data for the shopper with the provided confirmation token.
8
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
7
9
  * @param requestBody Summary request body containing the confirmation token.
8
10
  * @returns SuccessResponse Returns a success response.
9
11
  * @throws ApiError
10
12
  */
11
- static summarizePayment(requestBody) {
13
+ static summarizePayment(requestBody, context) {
12
14
  return __request(OpenAPI, {
13
15
  method: 'POST',
14
16
  url: '/payment/summary',
17
+ headers: resolveShopperHeaders(context),
15
18
  body: requestBody,
16
19
  mediaType: 'application/json',
17
20
  errors: {
@@ -24,14 +27,16 @@ export class PaymentService {
24
27
  /**
25
28
  * Complete payment
26
29
  * Completes the payment for the shopper using the provided cart hash and IP address.
30
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
27
31
  * @param requestBody Payment completion request body containing cart hash and IP address.
28
32
  * @returns PaymentSuccess Returns the result of the payment completion.
29
33
  * @throws ApiError
30
34
  */
31
- static completePayment(requestBody) {
35
+ static completePayment(requestBody, context) {
32
36
  return __request(OpenAPI, {
33
37
  method: 'POST',
34
38
  url: '/payment/complete',
39
+ headers: resolveShopperHeaders(context),
35
40
  body: requestBody,
36
41
  mediaType: 'application/json',
37
42
  errors: {
@@ -44,13 +49,15 @@ export class PaymentService {
44
49
  /**
45
50
  * Create payment customer session
46
51
  * Creates a new payment customer session for the shopper and account.
52
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
47
53
  * @returns CreateCustomerResponse Returns the created customer session.
48
54
  * @throws ApiError
49
55
  */
50
- static createCustomerSession() {
56
+ static createCustomerSession(context) {
51
57
  return __request(OpenAPI, {
52
58
  method: 'POST',
53
59
  url: '/payment/customer',
60
+ headers: resolveShopperHeaders(context),
54
61
  errors: {
55
62
  400: `Bad Request error with error details.`,
56
63
  404: `Not found error with error details.`,
@@ -8,24 +8,36 @@ export declare class ProductService {
8
8
  /**
9
9
  * Get all products
10
10
  * Retrieves all products available for the specified account.
11
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
11
12
  * @returns ProductData Returns a list of products for the account.
12
13
  * @throws ApiError
13
14
  */
14
- static getProducts(): CancelablePromise<ProductData>;
15
+ static getProducts(context?: {
16
+ shopperGuid?: string;
17
+ accountId?: string;
18
+ }): CancelablePromise<ProductData>;
15
19
  /**
16
20
  * Add a product
17
21
  * Adds a new product to the specified account.
22
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
18
23
  * @param requestBody Product details to add.
19
24
  * @returns ProductAddResponse Returns the result of the product addition.
20
25
  * @throws ApiError
21
26
  */
22
- static addProduct(requestBody: ProductBody): CancelablePromise<ProductAddResponse>;
27
+ static addProduct(requestBody: ProductBody, context?: {
28
+ shopperGuid?: string;
29
+ accountId?: string;
30
+ }): CancelablePromise<ProductAddResponse>;
23
31
  /**
24
32
  * Remove a product
25
33
  * Removes a product from the specified account.
34
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
26
35
  * @param requestBody Product details to remove.
27
36
  * @returns ProductUpdateResponse Returns the result of the product removal.
28
37
  * @throws ApiError
29
38
  */
30
- static deleteProduct(requestBody: ProductDeleteBody): CancelablePromise<ProductUpdateResponse>;
39
+ static deleteProduct(requestBody: ProductDeleteBody, context?: {
40
+ shopperGuid?: string;
41
+ accountId?: string;
42
+ }): CancelablePromise<ProductUpdateResponse>;
31
43
  }