@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
@@ -0,0 +1,15 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type LandingVenue = {
6
+ id: number;
7
+ name: string | null;
8
+ locationName: string | null;
9
+ address: string | null;
10
+ city: string | null;
11
+ state: string | null;
12
+ postal: string | null;
13
+ parking: string | null;
14
+ };
15
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type NextStepResponse = {
6
+ success: boolean;
7
+ /**
8
+ * The next wizard step given the current one. One of: 'expired', 'ada', 'tiers', 'merchandise', 'donations', 'checkout', 'confirm', 'receipt', or '' when there is no further step.
9
+ */
10
+ step: string;
11
+ };
12
+
@@ -0,0 +1,31 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type OrderBalance = {
6
+ /**
7
+ * Order total.
8
+ */
9
+ orderTotal: number;
10
+ /**
11
+ * Amount already charged/paid.
12
+ */
13
+ chargedTotal: number;
14
+ /**
15
+ * Balance still owed (orderTotal − chargedTotal, floored at 0).
16
+ */
17
+ balanceOwed: number;
18
+ /**
19
+ * Net accounting ledger balance for the order (authoritative; may differ from balanceOwed when gift cards/adjustments are involved).
20
+ */
21
+ ledgerBalance: number;
22
+ /**
23
+ * Whether the account allows collecting an additional payment on an order balance (studio_settings.enable_adjustment_payment).
24
+ */
25
+ enableAdjustmentPayment: number;
26
+ /**
27
+ * Whether payment is disabled on this order.
28
+ */
29
+ paymentDisabled: number;
30
+ };
31
+
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type OrderPaymentStatus = {
6
+ /**
7
+ * True once the order balance is fully covered.
8
+ */
9
+ paid: boolean;
10
+ /**
11
+ * Remaining balance owed on the order.
12
+ */
13
+ balanceOwed: number;
14
+ /**
15
+ * Whether payment is disabled on this order.
16
+ */
17
+ paymentDisabled: number;
18
+ };
19
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type PosDefaultInfoResponse = {
6
+ firstName: string | null;
7
+ lastName: string | null;
8
+ email: string | null;
9
+ phone: string | null;
10
+ success: boolean;
11
+ };
12
+
@@ -7,6 +7,10 @@ export type ProductAddResponse = {
7
7
  message: string;
8
8
  guid?: string;
9
9
  qty?: number;
10
+ /**
11
+ * True when the requested quantity exceeded availability and was clamped down to what remained (PROD-1). The final quantity is `qty`.
12
+ */
13
+ adjustedQty?: boolean;
10
14
  error?: string;
11
15
  };
12
16
 
@@ -22,5 +22,13 @@ export type SeatInCart = {
22
22
  isLivestream: number;
23
23
  tierName: string;
24
24
  tierId: number;
25
+ /**
26
+ * Taxable seat price = price − discount − serviceCharge (legacy cart-get seatPriceTaxable).
27
+ */
28
+ seatPriceTaxable: number;
29
+ /**
30
+ * The priority code applied to this seat, if any (legacy priorityCodeID).
31
+ */
32
+ priorityCodeId: number | null;
25
33
  };
26
34
 
@@ -0,0 +1,11 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SetLanguageDto = {
6
+ /**
7
+ * The language code to set (e.g. "en").
8
+ */
9
+ lang: string;
10
+ };
11
+
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type ShowExtras = {
6
+ /**
7
+ * Whether the event is hidden behind a priority code; the UI should prompt for a code before showing the seat map (legacy hidden_priority).
8
+ */
9
+ hiddenPriority: number;
10
+ /**
11
+ * Comma-separated list of disabled floor ids, if any.
12
+ */
13
+ disabledFloors: string | null;
14
+ /**
15
+ * Maximum age for a lap child, if a lap-child policy applies.
16
+ */
17
+ lapChildMaxAge: number | null;
18
+ };
19
+
@@ -0,0 +1,30 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type StreamDetails = {
6
+ providerId: number;
7
+ streamCode: string | null;
8
+ name: string | null;
9
+ hrefSd: string | null;
10
+ hrefHd: string | null;
11
+ streamGuid: string;
12
+ embedCode: string | null;
13
+ directLink: string | null;
14
+ /**
15
+ * Direct-link password / digital-asset password, if set.
16
+ */
17
+ directLinkPw: string | null;
18
+ title: string | null;
19
+ /**
20
+ * Whether the stream is available right now.
21
+ */
22
+ isAvailable: number;
23
+ /**
24
+ * Whether the stream window has passed.
25
+ */
26
+ isExpired: number;
27
+ dateAvailable: string | null;
28
+ dateUnavailable: string | null;
29
+ };
30
+
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type StreamDownloadLink = {
6
+ success: boolean;
7
+ url: string | null;
8
+ };
9
+
@@ -8,19 +8,23 @@ import type { SiteDisposition } from '../models/SiteDisposition';
8
8
  import type { SiteTheme } from '../models/SiteTheme';
9
9
  import type { CancelablePromise } from '../core/CancelablePromise';
10
10
  import { OpenAPI } from '../core/OpenAPI';
11
- import { request as __request } from '../core/request';
11
+ import { request as __request } from '../core/request';
12
+ import { resolveShopperHeaders } from '../../../functions/sdkConfig';
12
13
  export class AccountService {
13
14
  /**
14
15
  * Get the site theme
15
16
  * Retrieves the current theme for the site.
17
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
16
18
  * @returns SiteTheme Returns the site theme.
17
19
  * @throws ApiError
18
20
  */
19
- public static getTheme(
21
+ public static getTheme(
22
+ context?: { shopperGuid?: string; accountId?: string },
20
23
  ): CancelablePromise<SiteTheme> {
21
24
  return __request(OpenAPI, {
22
25
  method: 'GET',
23
- url: '/theme',
26
+ url: '/theme',
27
+ headers: resolveShopperHeaders(context),
24
28
  errors: {
25
29
  400: `Bad Request error with error details.`,
26
30
  404: `Not found error with error details.`,
@@ -31,14 +35,17 @@ export class AccountService {
31
35
  /**
32
36
  * Get the site disposition
33
37
  * Retrieves the current disposition for the site.
38
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
34
39
  * @returns SiteDisposition Returns the site disposition.
35
40
  * @throws ApiError
36
41
  */
37
- public static getDisposition(
42
+ public static getDisposition(
43
+ context?: { shopperGuid?: string; accountId?: string },
38
44
  ): CancelablePromise<SiteDisposition> {
39
45
  return __request(OpenAPI, {
40
46
  method: 'GET',
41
- url: '/disposition',
47
+ url: '/disposition',
48
+ headers: resolveShopperHeaders(context),
42
49
  errors: {
43
50
  400: `Bad Request error with error details.`,
44
51
  404: `Not found error with error details.`,
@@ -49,14 +56,17 @@ export class AccountService {
49
56
  /**
50
57
  * Get the root site configuration
51
58
  * Retrieves the root configuration including theme, disposition, and details.
59
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
52
60
  * @returns RootConfigResponse Returns the root site configuration.
53
61
  * @throws ApiError
54
62
  */
55
- public static getRoot(
63
+ public static getRoot(
64
+ context?: { shopperGuid?: string; accountId?: string },
56
65
  ): CancelablePromise<RootConfigResponse> {
57
66
  return __request(OpenAPI, {
58
67
  method: 'GET',
59
- url: '/root',
68
+ url: '/root',
69
+ headers: resolveShopperHeaders(context),
60
70
  errors: {
61
71
  400: `Bad Request error with error details.`,
62
72
  404: `Not found error with error details.`,
@@ -67,14 +77,17 @@ export class AccountService {
67
77
  /**
68
78
  * Get the landing page configuration
69
79
  * Retrieves the landing page configuration including theme, disposition, and album details.
80
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
70
81
  * @returns LandingPageResponse Returns the landing page configuration.
71
82
  * @throws ApiError
72
83
  */
73
- public static getLandingPage(
84
+ public static getLandingPage(
85
+ context?: { shopperGuid?: string; accountId?: string },
74
86
  ): CancelablePromise<LandingPageResponse> {
75
87
  return __request(OpenAPI, {
76
88
  method: 'GET',
77
- url: '/landing',
89
+ url: '/landing',
90
+ headers: resolveShopperHeaders(context),
78
91
  errors: {
79
92
  400: `Bad Request error with error details.`,
80
93
  404: `Not found error with error details.`,
@@ -2,25 +2,33 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { CartAmounts } from '../models/CartAmounts';
6
+ import type { CartClearResult } from '../models/CartClearResult';
7
+ import type { CartCountsLite } from '../models/CartCountsLite';
5
8
  import type { CartHashResponse } from '../models/CartHashResponse';
6
9
  import type { CartSummary } from '../models/CartSummary';
10
+ import type { CartTotals } from '../models/CartTotals';
7
11
  import type { CartWithTime } from '../models/CartWithTime';
8
12
  import type { CashPaymentDetail } from '../models/CashPaymentDetail';
9
13
  import type { CancelablePromise } from '../core/CancelablePromise';
10
14
  import { OpenAPI } from '../core/OpenAPI';
11
- import { request as __request } from '../core/request';
15
+ import { request as __request } from '../core/request';
16
+ import { resolveShopperHeaders } from '../../../functions/sdkConfig';
12
17
  export class CartService {
13
18
  /**
14
19
  * Get Cart
15
20
  * Retrieves the cart along with its associated time.
21
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
16
22
  * @returns CartWithTime Cart retrieved successfully with time.
17
23
  * @throws ApiError
18
24
  */
19
- public static getCart(
25
+ public static getCart(
26
+ context?: { shopperGuid?: string; accountId?: string },
20
27
  ): CancelablePromise<CartWithTime> {
21
28
  return __request(OpenAPI, {
22
29
  method: 'GET',
23
- url: '/cart',
30
+ url: '/cart',
31
+ headers: resolveShopperHeaders(context),
24
32
  errors: {
25
33
  400: `Bad Request error with error details.`,
26
34
  404: `Not found error with error details.`,
@@ -30,15 +38,18 @@ export class CartService {
30
38
  }
31
39
  /**
32
40
  * Delete Cart
33
- * Deletes the cart for the specified shopper and account.
34
- * @returns any Cart deleted successfully.
41
+ * Clears the entire cart (seats, products, donations) for the shopper. Respects the session lock: if the session is locked (e.g. an in-flight payment) the cart is left intact and { cleared: false, locked: true } is returned.
42
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
43
+ * @returns CartClearResult Cart clear result.
35
44
  * @throws ApiError
36
45
  */
37
- public static deleteCart(
38
- ): CancelablePromise<any> {
46
+ public static deleteCart(
47
+ context?: { shopperGuid?: string; accountId?: string },
48
+ ): CancelablePromise<CartClearResult> {
39
49
  return __request(OpenAPI, {
40
50
  method: 'DELETE',
41
- url: '/cart',
51
+ url: '/cart',
52
+ headers: resolveShopperHeaders(context),
42
53
  errors: {
43
54
  400: `Bad Request error with error details.`,
44
55
  404: `Not found error with error details.`,
@@ -49,14 +60,17 @@ export class CartService {
49
60
  /**
50
61
  * Get Cart Summary
51
62
  * Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
63
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
52
64
  * @returns CartSummary Cart summary retrieved successfully.
53
65
  * @throws ApiError
54
66
  */
55
- public static getCartSummary(
67
+ public static getCartSummary(
68
+ context?: { shopperGuid?: string; accountId?: string },
56
69
  ): CancelablePromise<CartSummary> {
57
70
  return __request(OpenAPI, {
58
71
  method: 'GET',
59
- url: '/cart/summary',
72
+ url: '/cart/summary',
73
+ headers: resolveShopperHeaders(context),
60
74
  errors: {
61
75
  400: `Bad Request error with error details.`,
62
76
  404: `Not found error with error details.`,
@@ -67,14 +81,17 @@ export class CartService {
67
81
  /**
68
82
  * Get Cart Hash
69
83
  * Returns the computed cart hash for the current shopper session.
84
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
70
85
  * @returns CartHashResponse Cart hash retrieved successfully.
71
86
  * @throws ApiError
72
87
  */
73
- public static getCartHash(
88
+ public static getCartHash(
89
+ context?: { shopperGuid?: string; accountId?: string },
74
90
  ): CancelablePromise<CartHashResponse> {
75
91
  return __request(OpenAPI, {
76
92
  method: 'GET',
77
- url: '/cart/hash',
93
+ url: '/cart/hash',
94
+ headers: resolveShopperHeaders(context),
78
95
  errors: {
79
96
  400: `Bad Request error with error details.`,
80
97
  404: `Not found error with error details.`,
@@ -85,14 +102,106 @@ export class CartService {
85
102
  /**
86
103
  * Get Cash Payment Detail
87
104
  * Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
105
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
88
106
  * @returns CashPaymentDetail Cash payment detail retrieved successfully.
89
107
  * @throws ApiError
90
108
  */
91
- public static getCashPaymentDetail(
109
+ public static getCashPaymentDetail(
110
+ context?: { shopperGuid?: string; accountId?: string },
92
111
  ): CancelablePromise<CashPaymentDetail> {
93
112
  return __request(OpenAPI, {
94
113
  method: 'GET',
95
- url: '/cart/cash-payment-detail',
114
+ url: '/cart/cash-payment-detail',
115
+ headers: resolveShopperHeaders(context),
116
+ errors: {
117
+ 400: `Bad Request error with error details.`,
118
+ 404: `Not found error with error details.`,
119
+ 500: `Internal Server Error, please contact developers.`,
120
+ },
121
+ });
122
+ }
123
+ /**
124
+ * Get lightweight cart counts
125
+ * Returns a cheap cart summary for header/badge polling: seat count, product count, and seconds remaining on the cart timer.
126
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
127
+ * @returns CartCountsLite Cart counts retrieved successfully.
128
+ * @throws ApiError
129
+ */
130
+ public static getCartCounts(
131
+ context?: { shopperGuid?: string; accountId?: string },
132
+ ): CancelablePromise<CartCountsLite> {
133
+ return __request(OpenAPI, {
134
+ method: 'GET',
135
+ url: '/cart/counts',
136
+ headers: resolveShopperHeaders(context),
137
+ errors: {
138
+ 400: `Bad Request error with error details.`,
139
+ 404: `Not found error with error details.`,
140
+ 500: `Internal Server Error, please contact developers.`,
141
+ },
142
+ });
143
+ }
144
+ /**
145
+ * Get cart totals
146
+ * Recomputes the cart (custom logic, coupon, sales tax) and returns the current totals ledger. Call after any cart mutation.
147
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
148
+ * @returns CartTotals Cart totals retrieved successfully.
149
+ * @throws ApiError
150
+ */
151
+ public static getCartTotals(
152
+ context?: { shopperGuid?: string; accountId?: string },
153
+ ): CancelablePromise<CartTotals> {
154
+ return __request(OpenAPI, {
155
+ method: 'GET',
156
+ url: '/cart/totals',
157
+ headers: resolveShopperHeaders(context),
158
+ errors: {
159
+ 400: `Bad Request error with error details.`,
160
+ 404: `Not found error with error details.`,
161
+ 500: `Internal Server Error, please contact developers.`,
162
+ },
163
+ });
164
+ }
165
+ /**
166
+ * Get cart amounts ledger
167
+ * Returns the full amounts ledger (item/product/donation/order/tax totals, coupon, discount, payments, and gift cards + adjustments).
168
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
169
+ * @returns CartAmounts Cart amounts retrieved successfully.
170
+ * @throws ApiError
171
+ */
172
+ public static getCartAmounts(
173
+ context?: { shopperGuid?: string; accountId?: string },
174
+ ): CancelablePromise<CartAmounts> {
175
+ return __request(OpenAPI, {
176
+ method: 'GET',
177
+ url: '/cart/amounts',
178
+ headers: resolveShopperHeaders(context),
179
+ errors: {
180
+ 400: `Bad Request error with error details.`,
181
+ 404: `Not found error with error details.`,
182
+ 500: `Internal Server Error, please contact developers.`,
183
+ },
184
+ });
185
+ }
186
+ /**
187
+ * Clear a single show from the cart
188
+ * Removes only the given show's seats from the cart, leaving merchandise and donations intact, then re-runs the recompute chain. Respects the session lock like DELETE /cart.
189
+ * @param showId
190
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
191
+ * @returns CartClearResult Show clear result.
192
+ * @throws ApiError
193
+ */
194
+ public static clearCartShow(
195
+ showId: number,
196
+ context?: { shopperGuid?: string; accountId?: string },
197
+ ): CancelablePromise<CartClearResult> {
198
+ return __request(OpenAPI, {
199
+ method: 'DELETE',
200
+ url: '/cart/show/{showId}',
201
+ path: {
202
+ 'showId': showId,
203
+ },
204
+ headers: resolveShopperHeaders(context),
96
205
  errors: {
97
206
  400: `Bad Request error with error details.`,
98
207
  404: `Not found error with error details.`,
@@ -3,25 +3,31 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { CheckoutPageData } from '../models/CheckoutPageData';
6
+ import type { CheckoutStepsResponse } from '../models/CheckoutStepsResponse';
6
7
  import type { CheckoutSubmitBody } from '../models/CheckoutSubmitBody';
7
8
  import type { CheckoutSuccessResponse } from '../models/CheckoutSuccessResponse';
9
+ import type { NextStepResponse } from '../models/NextStepResponse';
10
+ import type { PosDefaultInfoResponse } from '../models/PosDefaultInfoResponse';
8
11
  import type { SaveDetailsBody } from '../models/SaveDetailsBody';
9
- import type { SaveNonceBody } from '../models/SaveNonceBody';
10
12
  import type { CancelablePromise } from '../core/CancelablePromise';
11
13
  import { OpenAPI } from '../core/OpenAPI';
12
- import { request as __request } from '../core/request';
14
+ import { request as __request } from '../core/request';
15
+ import { resolveShopperHeaders } from '../../../functions/sdkConfig';
13
16
  export class CheckoutService {
14
17
  /**
15
18
  * Get checkout page data
16
19
  * Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
20
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
17
21
  * @returns CheckoutPageData Returns checkout page data.
18
22
  * @throws ApiError
19
23
  */
20
- public static getCheckout(
24
+ public static getCheckout(
25
+ context?: { shopperGuid?: string; accountId?: string },
21
26
  ): CancelablePromise<CheckoutPageData> {
22
27
  return __request(OpenAPI, {
23
28
  method: 'GET',
24
- url: '/checkout',
29
+ url: '/checkout',
30
+ headers: resolveShopperHeaders(context),
25
31
  errors: {
26
32
  400: `Bad Request error with error details.`,
27
33
  404: `Not found error with error details.`,
@@ -31,17 +37,20 @@ export class CheckoutService {
31
37
  }
32
38
  /**
33
39
  * Submit checkout
34
- * Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
40
+ * Validates and saves checkout form data, enforcing studio custom validation and priority-code minimum-seats before payment. Stripe-only payment flow.
41
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
35
42
  * @param requestBody Checkout form data.
36
43
  * @returns CheckoutSuccessResponse Returns success response.
37
44
  * @throws ApiError
38
45
  */
39
- public static submitCheckout(
40
- requestBody: CheckoutSubmitBody,
46
+ public static submitCheckout(
47
+ requestBody: CheckoutSubmitBody,
48
+ context?: { shopperGuid?: string; accountId?: string },
41
49
  ): CancelablePromise<CheckoutSuccessResponse> {
42
50
  return __request(OpenAPI, {
43
51
  method: 'POST',
44
- url: '/checkout',
52
+ url: '/checkout',
53
+ headers: resolveShopperHeaders(context),
45
54
  body: requestBody,
46
55
  mediaType: 'application/json',
47
56
  errors: {
@@ -52,20 +61,24 @@ export class CheckoutService {
52
61
  });
53
62
  }
54
63
  /**
55
- * Save payment nonce
56
- * Saves a payment nonce (token) from Authorize.net or Moneris to the session.
57
- * @param requestBody Nonce data to save.
58
- * @returns CheckoutSuccessResponse Returns success response.
64
+ * Get the next checkout step
65
+ * Server-side checkout wizard driver. Given the current step, returns the next applicable one (expiry ADA tiers merchandise → donations → checkout → confirm → receipt). JSON only.
66
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
67
+ * @param curr The current step. Defaults to 'seats'.
68
+ * @returns NextStepResponse Returns the next step.
59
69
  * @throws ApiError
60
70
  */
61
- public static saveNonce(
62
- requestBody: SaveNonceBody,
63
- ): CancelablePromise<CheckoutSuccessResponse> {
71
+ public static getNextStep(
72
+ context?: { shopperGuid?: string; accountId?: string },
73
+ curr?: string,
74
+ ): CancelablePromise<NextStepResponse> {
64
75
  return __request(OpenAPI, {
65
- method: 'POST',
66
- url: '/checkout/nonce',
67
- body: requestBody,
68
- mediaType: 'application/json',
76
+ method: 'GET',
77
+ url: '/checkout/next-step',
78
+ headers: resolveShopperHeaders(context),
79
+ query: {
80
+ 'curr': curr,
81
+ },
69
82
  errors: {
70
83
  400: `Bad Request error with error details.`,
71
84
  404: `Not found error with error details.`,
@@ -74,16 +87,19 @@ export class CheckoutService {
74
87
  });
75
88
  }
76
89
  /**
77
- * Clear payment nonce
78
- * Clears the payment nonce and related CC fields from the session.
79
- * @returns CheckoutSuccessResponse Returns success response.
90
+ * Get applicable checkout steps
91
+ * Returns the wizard steps that apply to this session, in order, with required flags. Merchandise and donations appear only when items or funds are available. JSON only (replaces the legacy HTML step bar).
92
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
93
+ * @returns CheckoutStepsResponse Returns the applicable steps.
80
94
  * @throws ApiError
81
95
  */
82
- public static clearNonce(
83
- ): CancelablePromise<CheckoutSuccessResponse> {
96
+ public static getSteps(
97
+ context?: { shopperGuid?: string; accountId?: string },
98
+ ): CancelablePromise<CheckoutStepsResponse> {
84
99
  return __request(OpenAPI, {
85
- method: 'DELETE',
86
- url: '/checkout/nonce',
100
+ method: 'GET',
101
+ url: '/checkout/steps',
102
+ headers: resolveShopperHeaders(context),
87
103
  errors: {
88
104
  400: `Bad Request error with error details.`,
89
105
  404: `Not found error with error details.`,
@@ -94,16 +110,19 @@ export class CheckoutService {
94
110
  /**
95
111
  * Auto-save checkout details
96
112
  * Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
113
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
97
114
  * @param requestBody Partial checkout data to auto-save.
98
115
  * @returns CheckoutSuccessResponse Returns success response.
99
116
  * @throws ApiError
100
117
  */
101
- public static saveDetails(
102
- requestBody: SaveDetailsBody,
118
+ public static saveDetails(
119
+ requestBody: SaveDetailsBody,
120
+ context?: { shopperGuid?: string; accountId?: string },
103
121
  ): CancelablePromise<CheckoutSuccessResponse> {
104
122
  return __request(OpenAPI, {
105
123
  method: 'POST',
106
- url: '/checkout/details',
124
+ url: '/checkout/details',
125
+ headers: resolveShopperHeaders(context),
107
126
  body: requestBody,
108
127
  mediaType: 'application/json',
109
128
  errors: {
@@ -113,4 +132,25 @@ export class CheckoutService {
113
132
  },
114
133
  });
115
134
  }
135
+ /**
136
+ * Fill contact fields from POS defaults
137
+ * Fills empty session contact fields (name/email/phone) from the account POS defaults and returns the resulting contact. Logged-in shoppers only (legacy default-shopper-set-info).
138
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
139
+ * @returns PosDefaultInfoResponse Returns the filled-in contact info.
140
+ * @throws ApiError
141
+ */
142
+ public static fillDefaultInfo(
143
+ context?: { shopperGuid?: string; accountId?: string },
144
+ ): CancelablePromise<PosDefaultInfoResponse> {
145
+ return __request(OpenAPI, {
146
+ method: 'POST',
147
+ url: '/checkout/default-info',
148
+ headers: resolveShopperHeaders(context),
149
+ errors: {
150
+ 400: `Bad Request error with error details.`,
151
+ 404: `Not found error with error details.`,
152
+ 500: `Internal Server Error, please contact developers.`,
153
+ },
154
+ });
155
+ }
116
156
  }