@augno/sdk 0.17.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/CHANGELOG.md +5 -4
  2. package/package.json +1 -1
  3. package/resources/ai/memories.d.mts +6 -6
  4. package/resources/ai/memories.d.mts.map +1 -1
  5. package/resources/ai/memories.d.ts +6 -6
  6. package/resources/ai/memories.d.ts.map +1 -1
  7. package/resources/auth/api-keys/api-keys.d.mts +8 -0
  8. package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
  9. package/resources/auth/api-keys/api-keys.d.ts +8 -0
  10. package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
  11. package/resources/auth/api-keys/api-keys.js.map +1 -1
  12. package/resources/auth/api-keys/api-keys.mjs.map +1 -1
  13. package/resources/catalog/items/attributes.d.mts +3 -0
  14. package/resources/catalog/items/attributes.d.mts.map +1 -1
  15. package/resources/catalog/items/attributes.d.ts +3 -0
  16. package/resources/catalog/items/attributes.d.ts.map +1 -1
  17. package/resources/catalog/items/attributes.js +3 -0
  18. package/resources/catalog/items/attributes.js.map +1 -1
  19. package/resources/catalog/items/attributes.mjs +3 -0
  20. package/resources/catalog/items/attributes.mjs.map +1 -1
  21. package/resources/catalog/materials/materials.d.mts +6 -0
  22. package/resources/catalog/materials/materials.d.mts.map +1 -1
  23. package/resources/catalog/materials/materials.d.ts +6 -0
  24. package/resources/catalog/materials/materials.d.ts.map +1 -1
  25. package/resources/catalog/materials/materials.js.map +1 -1
  26. package/resources/catalog/materials/materials.mjs.map +1 -1
  27. package/resources/catalog/parts/parts.d.mts +6 -0
  28. package/resources/catalog/parts/parts.d.mts.map +1 -1
  29. package/resources/catalog/parts/parts.d.ts +6 -0
  30. package/resources/catalog/parts/parts.d.ts.map +1 -1
  31. package/resources/catalog/parts/parts.js.map +1 -1
  32. package/resources/catalog/parts/parts.mjs.map +1 -1
  33. package/resources/catalog/products/products.d.mts +6 -4
  34. package/resources/catalog/products/products.d.mts.map +1 -1
  35. package/resources/catalog/products/products.d.ts +6 -4
  36. package/resources/catalog/products/products.d.ts.map +1 -1
  37. package/resources/catalog/products/products.js.map +1 -1
  38. package/resources/catalog/products/products.mjs.map +1 -1
  39. package/resources/core/actions.d.mts +73 -0
  40. package/resources/core/actions.d.mts.map +1 -0
  41. package/resources/core/actions.d.ts +73 -0
  42. package/resources/core/actions.d.ts.map +1 -0
  43. package/resources/core/actions.js +36 -0
  44. package/resources/core/actions.js.map +1 -0
  45. package/resources/core/actions.mjs +32 -0
  46. package/resources/core/actions.mjs.map +1 -0
  47. package/resources/core/audit-events.d.mts +4 -4
  48. package/resources/core/audit-events.d.mts.map +1 -1
  49. package/resources/core/audit-events.d.ts +4 -4
  50. package/resources/core/audit-events.d.ts.map +1 -1
  51. package/resources/core/core.d.mts +6 -2
  52. package/resources/core/core.d.mts.map +1 -1
  53. package/resources/core/core.d.ts +6 -2
  54. package/resources/core/core.d.ts.map +1 -1
  55. package/resources/core/core.js +4 -0
  56. package/resources/core/core.js.map +1 -1
  57. package/resources/core/core.mjs +4 -0
  58. package/resources/core/core.mjs.map +1 -1
  59. package/resources/core/index.d.mts +1 -0
  60. package/resources/core/index.d.mts.map +1 -1
  61. package/resources/core/index.d.ts +1 -0
  62. package/resources/core/index.d.ts.map +1 -1
  63. package/resources/core/index.js +3 -1
  64. package/resources/core/index.js.map +1 -1
  65. package/resources/core/index.mjs +1 -0
  66. package/resources/core/index.mjs.map +1 -1
  67. package/resources/core/jobs.d.mts +1 -1
  68. package/resources/core/jobs.d.mts.map +1 -1
  69. package/resources/core/jobs.d.ts +1 -1
  70. package/resources/core/jobs.d.ts.map +1 -1
  71. package/resources/finance/payment-terms.d.mts +5 -5
  72. package/resources/finance/payment-terms.d.mts.map +1 -1
  73. package/resources/finance/payment-terms.d.ts +5 -5
  74. package/resources/finance/payment-terms.d.ts.map +1 -1
  75. package/resources/finance/payment-terms.js.map +1 -1
  76. package/resources/finance/payment-terms.mjs.map +1 -1
  77. package/resources/messaging/conversations/conversations.d.mts +3 -3
  78. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  79. package/resources/messaging/conversations/conversations.d.ts +3 -3
  80. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  81. package/resources/messaging/conversations/conversations.js.map +1 -1
  82. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  83. package/resources/messaging/conversations/links.d.mts +2 -2
  84. package/resources/messaging/conversations/links.d.mts.map +1 -1
  85. package/resources/messaging/conversations/links.d.ts +2 -2
  86. package/resources/messaging/conversations/links.d.ts.map +1 -1
  87. package/resources/messaging/conversations/messages.d.mts +2 -2
  88. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  89. package/resources/messaging/conversations/messages.d.ts +2 -2
  90. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  91. package/resources/messaging/notifications/notifications.d.mts +2 -2
  92. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  93. package/resources/messaging/notifications/notifications.d.ts +2 -2
  94. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  95. package/resources/messaging/notifications/notifications.js.map +1 -1
  96. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  97. package/resources/operations/carriers/carriers.d.mts +5 -5
  98. package/resources/operations/carriers/carriers.d.mts.map +1 -1
  99. package/resources/operations/carriers/carriers.d.ts +5 -5
  100. package/resources/operations/carriers/carriers.d.ts.map +1 -1
  101. package/resources/operations/carriers/service-levels.d.mts +5 -5
  102. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  103. package/resources/operations/carriers/service-levels.d.ts +5 -5
  104. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  105. package/resources/operations/index.d.mts +1 -0
  106. package/resources/operations/index.d.mts.map +1 -1
  107. package/resources/operations/index.d.ts +1 -0
  108. package/resources/operations/index.d.ts.map +1 -1
  109. package/resources/operations/index.js +9 -7
  110. package/resources/operations/index.js.map +1 -1
  111. package/resources/operations/index.mjs +1 -0
  112. package/resources/operations/index.mjs.map +1 -1
  113. package/resources/operations/operating-calendars/closures.d.mts +173 -0
  114. package/resources/operations/operating-calendars/closures.d.mts.map +1 -0
  115. package/resources/operations/operating-calendars/closures.d.ts +173 -0
  116. package/resources/operations/operating-calendars/closures.d.ts.map +1 -0
  117. package/resources/operations/operating-calendars/closures.js +81 -0
  118. package/resources/operations/operating-calendars/closures.js.map +1 -0
  119. package/resources/operations/operating-calendars/closures.mjs +77 -0
  120. package/resources/operations/operating-calendars/closures.mjs.map +1 -0
  121. package/resources/operations/operating-calendars/index.d.mts +3 -0
  122. package/resources/operations/operating-calendars/index.d.mts.map +1 -0
  123. package/resources/operations/operating-calendars/index.d.ts +3 -0
  124. package/resources/operations/operating-calendars/index.d.ts.map +1 -0
  125. package/resources/operations/operating-calendars/index.js +9 -0
  126. package/resources/operations/operating-calendars/index.js.map +1 -0
  127. package/resources/operations/operating-calendars/index.mjs +4 -0
  128. package/resources/operations/operating-calendars/index.mjs.map +1 -0
  129. package/resources/operations/operating-calendars/operating-calendars.d.mts +332 -0
  130. package/resources/operations/operating-calendars/operating-calendars.d.mts.map +1 -0
  131. package/resources/operations/operating-calendars/operating-calendars.d.ts +332 -0
  132. package/resources/operations/operating-calendars/operating-calendars.d.ts.map +1 -0
  133. package/resources/operations/operating-calendars/operating-calendars.js +129 -0
  134. package/resources/operations/operating-calendars/operating-calendars.js.map +1 -0
  135. package/resources/operations/operating-calendars/operating-calendars.mjs +124 -0
  136. package/resources/operations/operating-calendars/operating-calendars.mjs.map +1 -0
  137. package/resources/operations/operating-calendars.d.mts +2 -0
  138. package/resources/operations/operating-calendars.d.mts.map +1 -0
  139. package/resources/operations/operating-calendars.d.ts +2 -0
  140. package/resources/operations/operating-calendars.d.ts.map +1 -0
  141. package/resources/operations/operating-calendars.js +6 -0
  142. package/resources/operations/operating-calendars.js.map +1 -0
  143. package/resources/operations/operating-calendars.mjs +3 -0
  144. package/resources/operations/operating-calendars.mjs.map +1 -0
  145. package/resources/operations/operations.d.mts +4 -0
  146. package/resources/operations/operations.d.mts.map +1 -1
  147. package/resources/operations/operations.d.ts +4 -0
  148. package/resources/operations/operations.d.ts.map +1 -1
  149. package/resources/operations/operations.js +4 -0
  150. package/resources/operations/operations.js.map +1 -1
  151. package/resources/operations/operations.mjs +4 -0
  152. package/resources/operations/operations.mjs.map +1 -1
  153. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +30 -0
  154. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -1
  155. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +30 -0
  156. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
  157. package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
  158. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
  159. package/resources/operations/production-schedules/lines.d.mts +10 -6
  160. package/resources/operations/production-schedules/lines.d.mts.map +1 -1
  161. package/resources/operations/production-schedules/lines.d.ts +10 -6
  162. package/resources/operations/production-schedules/lines.d.ts.map +1 -1
  163. package/resources/operations/shipments/actions.d.mts +3 -3
  164. package/resources/operations/shipments/actions.d.mts.map +1 -1
  165. package/resources/operations/shipments/actions.d.ts +3 -3
  166. package/resources/operations/shipments/actions.d.ts.map +1 -1
  167. package/resources/operations/shipping-terms.d.mts +5 -5
  168. package/resources/operations/shipping-terms.d.mts.map +1 -1
  169. package/resources/operations/shipping-terms.d.ts +5 -5
  170. package/resources/operations/shipping-terms.d.ts.map +1 -1
  171. package/resources/operations/shipping-terms.js.map +1 -1
  172. package/resources/operations/shipping-terms.mjs.map +1 -1
  173. package/resources/sales/account-prices/account-prices.d.mts +1007 -0
  174. package/resources/sales/account-prices/account-prices.d.mts.map +1 -0
  175. package/resources/sales/account-prices/account-prices.d.ts +1007 -0
  176. package/resources/sales/account-prices/account-prices.d.ts.map +1 -0
  177. package/resources/sales/account-prices/account-prices.js +143 -0
  178. package/resources/sales/account-prices/account-prices.js.map +1 -0
  179. package/resources/sales/account-prices/account-prices.mjs +138 -0
  180. package/resources/sales/account-prices/account-prices.mjs.map +1 -0
  181. package/resources/sales/account-prices/actions.d.mts +58 -0
  182. package/resources/sales/account-prices/actions.d.mts.map +1 -0
  183. package/resources/sales/account-prices/actions.d.ts +58 -0
  184. package/resources/sales/account-prices/actions.d.ts.map +1 -0
  185. package/resources/sales/account-prices/actions.js +44 -0
  186. package/resources/sales/account-prices/actions.js.map +1 -0
  187. package/resources/sales/account-prices/actions.mjs +40 -0
  188. package/resources/sales/account-prices/actions.mjs.map +1 -0
  189. package/resources/sales/account-prices/index.d.mts +3 -0
  190. package/resources/sales/account-prices/index.d.mts.map +1 -0
  191. package/resources/sales/account-prices/index.d.ts +3 -0
  192. package/resources/sales/account-prices/index.d.ts.map +1 -0
  193. package/resources/sales/account-prices/index.js +9 -0
  194. package/resources/sales/account-prices/index.js.map +1 -0
  195. package/resources/sales/account-prices/index.mjs +4 -0
  196. package/resources/sales/account-prices/index.mjs.map +1 -0
  197. package/resources/sales/account-prices.d.mts +2 -0
  198. package/resources/sales/account-prices.d.mts.map +1 -0
  199. package/resources/sales/account-prices.d.ts +2 -0
  200. package/resources/sales/account-prices.d.ts.map +1 -0
  201. package/resources/sales/account-prices.js +6 -0
  202. package/resources/sales/account-prices.js.map +1 -0
  203. package/resources/sales/account-prices.mjs +3 -0
  204. package/resources/sales/account-prices.mjs.map +1 -0
  205. package/resources/sales/addresses.d.mts +20 -0
  206. package/resources/sales/addresses.d.mts.map +1 -1
  207. package/resources/sales/addresses.d.ts +20 -0
  208. package/resources/sales/addresses.d.ts.map +1 -1
  209. package/resources/sales/customers/actions.d.mts +2 -2
  210. package/resources/sales/customers/actions.d.mts.map +1 -1
  211. package/resources/sales/customers/actions.d.ts +2 -2
  212. package/resources/sales/customers/actions.d.ts.map +1 -1
  213. package/resources/sales/customers/actions.js.map +1 -1
  214. package/resources/sales/customers/actions.mjs.map +1 -1
  215. package/resources/sales/customers/customers.d.mts +35 -564
  216. package/resources/sales/customers/customers.d.mts.map +1 -1
  217. package/resources/sales/customers/customers.d.ts +35 -564
  218. package/resources/sales/customers/customers.d.ts.map +1 -1
  219. package/resources/sales/customers/customers.js.map +1 -1
  220. package/resources/sales/customers/customers.mjs.map +1 -1
  221. package/resources/sales/customers/index.d.mts +1 -1
  222. package/resources/sales/customers/index.d.mts.map +1 -1
  223. package/resources/sales/customers/index.d.ts +1 -1
  224. package/resources/sales/customers/index.d.ts.map +1 -1
  225. package/resources/sales/customers/index.js.map +1 -1
  226. package/resources/sales/customers/index.mjs.map +1 -1
  227. package/resources/sales/index.d.mts +6 -3
  228. package/resources/sales/index.d.mts.map +1 -1
  229. package/resources/sales/index.d.ts +6 -3
  230. package/resources/sales/index.d.ts.map +1 -1
  231. package/resources/sales/index.js +15 -9
  232. package/resources/sales/index.js.map +1 -1
  233. package/resources/sales/index.mjs +3 -0
  234. package/resources/sales/index.mjs.map +1 -1
  235. package/resources/sales/order-discounts/actions.d.mts +85 -0
  236. package/resources/sales/order-discounts/actions.d.mts.map +1 -0
  237. package/resources/sales/order-discounts/actions.d.ts +85 -0
  238. package/resources/sales/order-discounts/actions.d.ts.map +1 -0
  239. package/resources/sales/order-discounts/actions.js +35 -0
  240. package/resources/sales/order-discounts/actions.js.map +1 -0
  241. package/resources/sales/order-discounts/actions.mjs +31 -0
  242. package/resources/sales/order-discounts/actions.mjs.map +1 -0
  243. package/resources/sales/order-discounts/index.d.mts +3 -0
  244. package/resources/sales/order-discounts/index.d.mts.map +1 -0
  245. package/resources/sales/order-discounts/index.d.ts +3 -0
  246. package/resources/sales/order-discounts/index.d.ts.map +1 -0
  247. package/resources/sales/order-discounts/index.js +9 -0
  248. package/resources/sales/order-discounts/index.js.map +1 -0
  249. package/resources/sales/order-discounts/index.mjs +4 -0
  250. package/resources/sales/order-discounts/index.mjs.map +1 -0
  251. package/resources/sales/order-discounts/order-discounts.d.mts +365 -0
  252. package/resources/sales/order-discounts/order-discounts.d.mts.map +1 -0
  253. package/resources/sales/order-discounts/order-discounts.d.ts +365 -0
  254. package/resources/sales/order-discounts/order-discounts.d.ts.map +1 -0
  255. package/resources/sales/order-discounts/order-discounts.js +125 -0
  256. package/resources/sales/order-discounts/order-discounts.js.map +1 -0
  257. package/resources/sales/order-discounts/order-discounts.mjs +120 -0
  258. package/resources/sales/order-discounts/order-discounts.mjs.map +1 -0
  259. package/resources/sales/order-discounts.d.mts +2 -0
  260. package/resources/sales/order-discounts.d.mts.map +1 -0
  261. package/resources/sales/order-discounts.d.ts +2 -0
  262. package/resources/sales/order-discounts.d.ts.map +1 -0
  263. package/resources/sales/order-discounts.js +6 -0
  264. package/resources/sales/order-discounts.js.map +1 -0
  265. package/resources/sales/order-discounts.mjs +3 -0
  266. package/resources/sales/order-discounts.mjs.map +1 -0
  267. package/resources/sales/priorities.d.mts +4 -44
  268. package/resources/sales/priorities.d.mts.map +1 -1
  269. package/resources/sales/priorities.d.ts +4 -44
  270. package/resources/sales/priorities.d.ts.map +1 -1
  271. package/resources/sales/priorities.js.map +1 -1
  272. package/resources/sales/priorities.mjs.map +1 -1
  273. package/resources/sales/sales-orders/actions.d.mts +205 -1
  274. package/resources/sales/sales-orders/actions.d.mts.map +1 -1
  275. package/resources/sales/sales-orders/actions.d.ts +205 -1
  276. package/resources/sales/sales-orders/actions.d.ts.map +1 -1
  277. package/resources/sales/sales-orders/actions.js +36 -0
  278. package/resources/sales/sales-orders/actions.js.map +1 -1
  279. package/resources/sales/sales-orders/actions.mjs +36 -0
  280. package/resources/sales/sales-orders/actions.mjs.map +1 -1
  281. package/resources/sales/sales-orders/index.d.mts +2 -2
  282. package/resources/sales/sales-orders/index.d.mts.map +1 -1
  283. package/resources/sales/sales-orders/index.d.ts +2 -2
  284. package/resources/sales/sales-orders/index.d.ts.map +1 -1
  285. package/resources/sales/sales-orders/index.js.map +1 -1
  286. package/resources/sales/sales-orders/index.mjs.map +1 -1
  287. package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
  288. package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
  289. package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
  290. package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
  291. package/resources/sales/sales-orders/sales-orders.d.mts +115 -78
  292. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  293. package/resources/sales/sales-orders/sales-orders.d.ts +115 -78
  294. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  295. package/resources/sales/sales-orders/sales-orders.js.map +1 -1
  296. package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
  297. package/resources/sales/sales.d.mts +18 -6
  298. package/resources/sales/sales.d.mts.map +1 -1
  299. package/resources/sales/sales.d.ts +18 -6
  300. package/resources/sales/sales.d.ts.map +1 -1
  301. package/resources/sales/sales.js +12 -0
  302. package/resources/sales/sales.js.map +1 -1
  303. package/resources/sales/sales.mjs +12 -0
  304. package/resources/sales/sales.mjs.map +1 -1
  305. package/resources/sales/volume-discounts.d.mts +684 -0
  306. package/resources/sales/volume-discounts.d.mts.map +1 -0
  307. package/resources/sales/volume-discounts.d.ts +684 -0
  308. package/resources/sales/volume-discounts.d.ts.map +1 -0
  309. package/resources/sales/volume-discounts.js +152 -0
  310. package/resources/sales/volume-discounts.js.map +1 -0
  311. package/resources/sales/volume-discounts.mjs +148 -0
  312. package/resources/sales/volume-discounts.mjs.map +1 -0
  313. package/src/resources/ai/memories.ts +6 -6
  314. package/src/resources/auth/api-keys/api-keys.ts +9 -0
  315. package/src/resources/catalog/items/attributes.ts +3 -0
  316. package/src/resources/catalog/materials/materials.ts +6 -0
  317. package/src/resources/catalog/parts/parts.ts +6 -0
  318. package/src/resources/catalog/products/products.ts +6 -4
  319. package/src/resources/core/actions.ts +89 -0
  320. package/src/resources/core/audit-events.ts +12 -0
  321. package/src/resources/core/core.ts +17 -0
  322. package/src/resources/core/index.ts +6 -0
  323. package/src/resources/core/jobs.ts +3 -0
  324. package/src/resources/finance/payment-terms.ts +8 -5
  325. package/src/resources/messaging/conversations/conversations.ts +9 -0
  326. package/src/resources/messaging/conversations/links.ts +6 -0
  327. package/src/resources/messaging/conversations/messages.ts +6 -0
  328. package/src/resources/messaging/notifications/notifications.ts +6 -0
  329. package/src/resources/operations/carriers/carriers.ts +5 -5
  330. package/src/resources/operations/carriers/service-levels.ts +5 -5
  331. package/src/resources/operations/index.ts +11 -0
  332. package/src/resources/operations/operating-calendars/closures.ts +223 -0
  333. package/src/resources/operations/operating-calendars/index.ts +23 -0
  334. package/src/resources/operations/operating-calendars/operating-calendars.ts +427 -0
  335. package/src/resources/operations/operating-calendars.ts +3 -0
  336. package/src/resources/operations/operations.ts +28 -0
  337. package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +36 -0
  338. package/src/resources/operations/production-schedules/lines.ts +10 -6
  339. package/src/resources/operations/shipments/actions.ts +3 -3
  340. package/src/resources/operations/shipping-terms.ts +8 -5
  341. package/src/resources/sales/account-prices/account-prices.ts +1200 -0
  342. package/src/resources/sales/account-prices/actions.ts +74 -0
  343. package/src/resources/sales/account-prices/index.ts +27 -0
  344. package/src/resources/sales/account-prices.ts +3 -0
  345. package/src/resources/sales/addresses.ts +24 -0
  346. package/src/resources/sales/customers/actions.ts +6 -2
  347. package/src/resources/sales/customers/customers.ts +37 -657
  348. package/src/resources/sales/customers/index.ts +0 -11
  349. package/src/resources/sales/index.ts +50 -13
  350. package/src/resources/sales/order-discounts/actions.ts +102 -0
  351. package/src/resources/sales/order-discounts/index.ts +13 -0
  352. package/src/resources/sales/order-discounts/order-discounts.ts +442 -0
  353. package/src/resources/sales/order-discounts.ts +3 -0
  354. package/src/resources/sales/priorities.ts +3 -51
  355. package/src/resources/sales/sales-orders/actions.ts +252 -0
  356. package/src/resources/sales/sales-orders/index.ts +4 -1
  357. package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
  358. package/src/resources/sales/sales-orders/sales-orders.ts +139 -86
  359. package/src/resources/sales/sales.ts +113 -26
  360. package/src/resources/sales/volume-discounts.ts +813 -0
  361. package/src/version.ts +1 -1
  362. package/version.d.mts +1 -1
  363. package/version.d.ts +1 -1
  364. package/version.js +1 -1
  365. package/version.mjs +1 -1
@@ -0,0 +1,684 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as AccountGroupsAPI from "./account-groups.mjs";
3
+ import * as APIKeysAPI from "../auth/api-keys/api-keys.mjs";
4
+ import * as ItemCategoriesAPI from "../catalog/item-categories/item-categories.mjs";
5
+ import * as ProductLinesAPI from "../catalog/product-lines/product-lines.mjs";
6
+ import * as PropertiesAPI from "../catalog/properties/properties.mjs";
7
+ import * as UnitsAPI from "../catalog/units/units.mjs";
8
+ import { APIPromise } from "../../core/api-promise.mjs";
9
+ import { RequestOptions } from "../../internal/request-options.mjs";
10
+ /**
11
+ * List and manage volume discounts.
12
+ */
13
+ export declare class VolumeDiscounts extends APIResource {
14
+ /**
15
+ * Returns a paginated list of volume discounts, newest first.
16
+ *
17
+ * The search term matches the discount name, the name of a customer group it is
18
+ * scoped to, or the name of a product line it is scoped to. Customer portal users
19
+ * see only discounts with no customer-group restriction plus those scoped to a
20
+ * group their own account belongs to.
21
+ *
22
+ * This endpoint requires the permissions: `discounts:read`, `customers:read`,
23
+ * `suppliers:read`.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const listVolumeDiscount =
28
+ * await client.sales.volumeDiscounts.list();
29
+ * ```
30
+ */
31
+ list(query?: VolumeDiscountListParams | null | undefined, options?: RequestOptions): APIPromise<ListVolumeDiscount>;
32
+ /**
33
+ * Returns a volume discount by ID.
34
+ *
35
+ * This endpoint requires the permissions: `discounts:read`, `customers:read`,
36
+ * `suppliers:read`.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const volumeDiscount =
41
+ * await client.sales.volumeDiscounts.retrieve(
42
+ * 'quds_bn7hto9s10pp',
43
+ * );
44
+ * ```
45
+ */
46
+ retrieve(id: string, query?: VolumeDiscountRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<VolumeDiscount>;
47
+ /**
48
+ * Creates a volume discount with its tiers and scoping associations.
49
+ *
50
+ * The discount name must be unique within the account; creating a discount with an
51
+ * existing name returns a conflict error.
52
+ *
53
+ * Each scoping list narrows the order lines the discount applies to, and an empty
54
+ * list places no restriction on that dimension. Because tier thresholds are
55
+ * compared against quantities converted into `unit_ids`, a discount created
56
+ * without any units never reaches a threshold above zero.
57
+ *
58
+ * This endpoint requires the permission: `discounts:create`.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const volumeDiscount =
63
+ * await client.sales.volumeDiscounts.create({
64
+ * name: 'Bulk Order Discount',
65
+ * tiers: [
66
+ * {
67
+ * name: '100+ Units',
68
+ * discount_percentage:
69
+ * '5.000000000000000000000000000000',
70
+ * threshold: '100.000000000000000000000000000000',
71
+ * },
72
+ * ],
73
+ * });
74
+ * ```
75
+ */
76
+ create(params: VolumeDiscountCreateParams, options?: RequestOptions): APIPromise<VolumeDiscount>;
77
+ /**
78
+ * Partially updates a volume discount.
79
+ *
80
+ * The tier and association lists are only applied when their corresponding `has_*`
81
+ * flag is `true`, in which case they replace the existing set entirely. Tiers use
82
+ * upsert semantics: tiers with an `id` are updated, tiers without one are created,
83
+ * and existing tiers omitted from the list are deleted.
84
+ *
85
+ * The name must remain unique within the account; reusing another discount's name
86
+ * returns a conflict error. Order lines that have already been priced keep the
87
+ * unit price they were given; the revised discount applies to lines priced after
88
+ * the change.
89
+ *
90
+ * This endpoint requires the permission: `discounts:update`.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * const volumeDiscount =
95
+ * await client.sales.volumeDiscounts.update(
96
+ * 'quds_bn7hto9s10pp',
97
+ * {
98
+ * has_attributes: true,
99
+ * has_categories: true,
100
+ * has_customer_groups: true,
101
+ * has_product_lines: true,
102
+ * has_tiers: true,
103
+ * has_units: true,
104
+ * name: 'Updated Bulk Discount',
105
+ * tiers: [
106
+ * {
107
+ * name: '50+ Units',
108
+ * discount_percentage:
109
+ * '10.000000000000000000000000000000',
110
+ * threshold: '50.000000000000000000000000000000',
111
+ * },
112
+ * ],
113
+ * },
114
+ * );
115
+ * ```
116
+ */
117
+ update(id: string, params: VolumeDiscountUpdateParams, options?: RequestOptions): APIPromise<VolumeDiscount>;
118
+ /**
119
+ * Deletes a volume discount along with its tiers and scoping associations.
120
+ *
121
+ * Deletion is permanent; further requests against the deleted ID return an error.
122
+ *
123
+ * Order lines that have already been priced keep the unit price they were given;
124
+ * only lines priced after the deletion lose the discount.
125
+ *
126
+ * This endpoint requires the permission: `discounts:delete`.
127
+ *
128
+ * @example
129
+ * ```ts
130
+ * const volumeDiscount =
131
+ * await client.sales.volumeDiscounts.delete(
132
+ * 'quds_bn7hto9s10pp',
133
+ * );
134
+ * ```
135
+ */
136
+ delete(id: string, options?: RequestOptions): APIPromise<VolumeDiscountDeleteResponse>;
137
+ }
138
+ /**
139
+ * Request to create a volume discount.
140
+ */
141
+ export interface CreateVolumeDiscountRequest {
142
+ /**
143
+ * Display name of the volume discount.
144
+ *
145
+ * Must be unique within the account.
146
+ */
147
+ name: string;
148
+ /**
149
+ * Tiers for this volume discount.
150
+ */
151
+ tiers: Array<CreateVolumeDiscountTierInput>;
152
+ /**
153
+ * Attribute IDs to scope the discount to.
154
+ *
155
+ * When set, an item qualifies only if it has every listed attribute.
156
+ */
157
+ attribute_ids?: Array<string>;
158
+ /**
159
+ * Item category IDs to scope the discount to.
160
+ *
161
+ * When empty, all categories qualify.
162
+ */
163
+ category_ids?: Array<string>;
164
+ /**
165
+ * Account group IDs to scope the discount to specific customer groups.
166
+ *
167
+ * When empty, all customers qualify. A discount scoped to a group the buyer
168
+ * belongs to is preferred over an unscoped one when both could apply to the same
169
+ * order line.
170
+ */
171
+ customer_group_ids?: Array<string>;
172
+ /**
173
+ * Product line IDs to scope the discount to.
174
+ *
175
+ * When empty, all product lines qualify.
176
+ */
177
+ product_line_ids?: Array<string>;
178
+ /**
179
+ * IDs of the units that ordered quantities are measured in when evaluating tier
180
+ * thresholds.
181
+ *
182
+ * Quantities ordered in other units are converted into one of these before being
183
+ * compared against a threshold. Leaving this empty makes the discount inert: the
184
+ * quantity always evaluates to zero, so no threshold above zero is ever reached.
185
+ */
186
+ unit_ids?: Array<string>;
187
+ }
188
+ /**
189
+ * Volume discount tier to create.
190
+ */
191
+ export interface CreateVolumeDiscountTierInput {
192
+ /**
193
+ * Fraction of the price taken off once the threshold is met, as a decimal string.
194
+ *
195
+ * This is a multiplier, not a whole percent: `0.05` takes 5% off. When an order
196
+ * meets several tiers of the same discount, their reductions compound.
197
+ */
198
+ discount_percentage: string;
199
+ /**
200
+ * Display name of the tier.
201
+ */
202
+ name: string;
203
+ /**
204
+ * Minimum ordered quantity at which this tier's discount begins to apply, as a
205
+ * decimal string.
206
+ *
207
+ * The quantity compared against the threshold is the total across every line on
208
+ * the order that falls within the discount's scope, converted into one of the
209
+ * discount's units.
210
+ */
211
+ threshold: string;
212
+ /**
213
+ * ID of another tier that this tier follows.
214
+ *
215
+ * Tier IDs are assigned when the discount is created, so a tier created in this
216
+ * same request cannot be referenced here. The link is stored with the tier but
217
+ * does not affect pricing: every tier whose threshold is met applies, regardless
218
+ * of any parent.
219
+ */
220
+ parent_tier_id?: string;
221
+ }
222
+ /**
223
+ * A single page of resources, together with the metadata needed to page through
224
+ * the rest of the result set.
225
+ */
226
+ export interface ListVolumeDiscount {
227
+ /**
228
+ * Resources in this page.
229
+ */
230
+ data: Array<VolumeDiscount>;
231
+ /**
232
+ * Resource type identifier.
233
+ */
234
+ object: 'list';
235
+ /**
236
+ * PageInfo describes where the current page sits within a paginated result set and
237
+ * how to move to the adjacent pages.
238
+ *
239
+ * Page a list by following the URLs below rather than assembling cursors yourself.
240
+ * For a top-level list endpoint the URL repeats the original request's query
241
+ * string with only the cursor swapped, so following it preserves the same filters,
242
+ * search term, and page size.
243
+ */
244
+ page_info: APIKeysAPI.PageInfo;
245
+ }
246
+ /**
247
+ * A single page of resources, together with the metadata needed to page through
248
+ * the rest of the result set.
249
+ */
250
+ export interface ListVolumeDiscountTier {
251
+ /**
252
+ * Resources in this page.
253
+ */
254
+ data: Array<VolumeDiscountTier>;
255
+ /**
256
+ * Resource type identifier.
257
+ */
258
+ object: 'list';
259
+ /**
260
+ * PageInfo describes where the current page sits within a paginated result set and
261
+ * how to move to the adjacent pages.
262
+ *
263
+ * Page a list by following the URLs below rather than assembling cursors yourself.
264
+ * For a top-level list endpoint the URL repeats the original request's query
265
+ * string with only the cursor swapped, so following it preserves the same filters,
266
+ * search term, and page size.
267
+ */
268
+ page_info: APIKeysAPI.PageInfo;
269
+ }
270
+ /**
271
+ * Request to partially update a volume discount.
272
+ */
273
+ export interface UpdateVolumeDiscountRequest {
274
+ /**
275
+ * Whether to apply the `attribute_ids` field; when `false`, it is ignored.
276
+ */
277
+ has_attributes: boolean;
278
+ /**
279
+ * Whether to apply the `category_ids` field; when `false`, it is ignored.
280
+ */
281
+ has_categories: boolean;
282
+ /**
283
+ * Whether to apply the `customer_group_ids` field; when `false`, it is ignored.
284
+ */
285
+ has_customer_groups: boolean;
286
+ /**
287
+ * Whether to apply the `product_line_ids` field; when `false`, it is ignored.
288
+ */
289
+ has_product_lines: boolean;
290
+ /**
291
+ * Whether to apply the `tiers` field.
292
+ *
293
+ * When `true`, the discount's tiers are replaced with the contents of `tiers` (an
294
+ * empty list deletes all tiers). When `false`, `tiers` is ignored.
295
+ */
296
+ has_tiers: boolean;
297
+ /**
298
+ * Whether to apply the `unit_ids` field; when `false`, it is ignored.
299
+ */
300
+ has_units: boolean;
301
+ /**
302
+ * Attribute IDs to set.
303
+ *
304
+ * Only applied when `has_attributes` is `true`, in which case they replace the
305
+ * existing set entirely.
306
+ */
307
+ attribute_ids?: Array<string>;
308
+ /**
309
+ * Item category IDs to set.
310
+ *
311
+ * Only applied when `has_categories` is `true`, in which case they replace the
312
+ * existing set entirely.
313
+ */
314
+ category_ids?: Array<string>;
315
+ /**
316
+ * Account group IDs to set as customer groups.
317
+ *
318
+ * Only applied when `has_customer_groups` is `true`, in which case they replace
319
+ * the existing set entirely.
320
+ */
321
+ customer_group_ids?: Array<string>;
322
+ /**
323
+ * Display name of the volume discount.
324
+ *
325
+ * Must be unique within the account.
326
+ */
327
+ name?: string;
328
+ /**
329
+ * Product line IDs to set.
330
+ *
331
+ * Only applied when `has_product_lines` is `true`, in which case they replace the
332
+ * existing set entirely.
333
+ */
334
+ product_line_ids?: Array<string>;
335
+ /**
336
+ * The full set of tiers for this discount.
337
+ *
338
+ * Only applied when `has_tiers` is `true`. Tiers with an `id` are updated, tiers
339
+ * without an `id` are created, and existing tiers not present in the list are
340
+ * deleted.
341
+ */
342
+ tiers?: Array<UpdateVolumeDiscountTierInput>;
343
+ /**
344
+ * IDs of the units to set as acceptable units.
345
+ *
346
+ * Only applied when `has_units` is `true`, in which case they replace the existing
347
+ * set entirely. Clearing every unit makes the discount inert, since ordered
348
+ * quantity then always evaluates to zero.
349
+ */
350
+ unit_ids?: Array<string>;
351
+ }
352
+ /**
353
+ * Volume discount tier to upsert.
354
+ *
355
+ * Each entry is written as a whole: send every value you want the tier to keep,
356
+ * since values left out are not carried over from the existing tier.
357
+ */
358
+ export interface UpdateVolumeDiscountTierInput {
359
+ /**
360
+ * ID of an existing tier to update.
361
+ *
362
+ * Omit to create a new tier.
363
+ */
364
+ id?: string;
365
+ /**
366
+ * Fraction of the price taken off once the threshold is met, as a decimal string.
367
+ *
368
+ * This is a multiplier, not a whole percent: `0.05` takes 5% off. When an order
369
+ * meets several tiers of the same discount, their reductions compound.
370
+ */
371
+ discount_percentage?: string;
372
+ /**
373
+ * Display name of the tier.
374
+ */
375
+ name?: string;
376
+ /**
377
+ * ID of another tier in this discount that this tier follows.
378
+ *
379
+ * The link is stored with the tier but does not affect pricing. Omitting it when
380
+ * updating an existing tier clears the link.
381
+ */
382
+ parent_tier_id?: string;
383
+ /**
384
+ * Minimum ordered quantity at which this tier's discount begins to apply, as a
385
+ * decimal string.
386
+ *
387
+ * The quantity compared against the threshold is the total across every line on
388
+ * the order that falls within the discount's scope, converted into one of the
389
+ * discount's units.
390
+ */
391
+ threshold?: string;
392
+ }
393
+ /**
394
+ * A quantity-based discount with tiered percentage rates.
395
+ *
396
+ * A volume discount reduces the price once the ordered quantity reaches a tier's
397
+ * threshold. The customer group associations scope which customers qualify, and
398
+ * the product line, category, and attribute associations scope which order lines
399
+ * qualify; an empty list on any of them means no restriction on that dimension.
400
+ * Acceptable units are not a scope: they are the units the ordered quantity is
401
+ * measured in, and a discount with none of them never reaches a threshold above
402
+ * zero.
403
+ *
404
+ * At most one volume discount is applied to a given order line: among the
405
+ * discounts whose scope the line matches and whose thresholds are met, those
406
+ * scoped to a customer group the buyer belongs to take precedence. An account
407
+ * price for the same line overrides the discounted price entirely.
408
+ */
409
+ export interface VolumeDiscount {
410
+ /**
411
+ * Volume discount ID.
412
+ */
413
+ id: string;
414
+ /**
415
+ * A single page of resources, together with the metadata needed to page through
416
+ * the rest of the result set.
417
+ */
418
+ acceptable_units: UnitsAPI.ListUnit | null;
419
+ /**
420
+ * A single page of resources, together with the metadata needed to page through
421
+ * the rest of the result set.
422
+ */
423
+ attributes: PropertiesAPI.ListAttribute | null;
424
+ /**
425
+ * A single page of resources, together with the metadata needed to page through
426
+ * the rest of the result set.
427
+ */
428
+ categories: ItemCategoriesAPI.ListItemCategory | null;
429
+ /**
430
+ * Creation timestamp.
431
+ */
432
+ created_at: string;
433
+ /**
434
+ * A single page of resources, together with the metadata needed to page through
435
+ * the rest of the result set.
436
+ */
437
+ customer_groups: AccountGroupsAPI.ListAccountGroup | null;
438
+ /**
439
+ * Display name of the volume discount.
440
+ *
441
+ * Must be unique within the account.
442
+ */
443
+ name: string;
444
+ /**
445
+ * Resource type identifier.
446
+ */
447
+ object: 'volume_discount';
448
+ /**
449
+ * A single page of resources, together with the metadata needed to page through
450
+ * the rest of the result set.
451
+ */
452
+ product_lines: ProductLinesAPI.ListProductLine | null;
453
+ /**
454
+ * A single page of resources, together with the metadata needed to page through
455
+ * the rest of the result set.
456
+ */
457
+ tiers: ListVolumeDiscountTier | null;
458
+ /**
459
+ * Last updated timestamp.
460
+ */
461
+ updated_at: string;
462
+ }
463
+ /**
464
+ * A quantity threshold within a volume discount, and the reduction that applies at
465
+ * or above it.
466
+ */
467
+ export interface VolumeDiscountTier {
468
+ /**
469
+ * Volume discount tier ID.
470
+ */
471
+ id: string;
472
+ /**
473
+ * Creation timestamp.
474
+ */
475
+ created_at: string;
476
+ /**
477
+ * Fraction of the price taken off once the threshold is met, as a decimal string.
478
+ *
479
+ * This is a multiplier, not a whole percent: `0.05` takes 5% off. When an order
480
+ * meets several tiers of the same discount, their reductions compound: meeting a
481
+ * `0.1` tier and a `0.2` tier multiplies the price by `0.9 × 0.8`, a 28% reduction
482
+ * overall.
483
+ */
484
+ discount_percentage: string;
485
+ /**
486
+ * Display name of the tier.
487
+ */
488
+ name: string;
489
+ /**
490
+ * Resource type identifier.
491
+ */
492
+ object: 'volume_discount_tier';
493
+ /**
494
+ * Minimum ordered quantity at which this tier's discount begins to apply, as a
495
+ * decimal string.
496
+ *
497
+ * The quantity compared against the threshold is the total across every line on
498
+ * the order that falls within the discount's scope, converted into one of the
499
+ * discount's acceptable units — not the quantity of a single line.
500
+ */
501
+ threshold: string;
502
+ /**
503
+ * Last updated timestamp.
504
+ */
505
+ updated_at: string;
506
+ }
507
+ export interface VolumeDiscountDeleteResponse {
508
+ }
509
+ export interface VolumeDiscountListParams {
510
+ /**
511
+ * Opaque cursor token identifying where the page of results starts.
512
+ *
513
+ * Use the `cursor` value embedded in a previous response's `next_page_url` or
514
+ * `previous_page_url` to fetch the adjacent page. Omit to start from the first
515
+ * page.
516
+ */
517
+ cursor?: string;
518
+ /**
519
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
520
+ * `null`.
521
+ */
522
+ include?: Array<'customer_groups' | 'product_lines' | 'categories' | 'attributes' | 'acceptable_units'>;
523
+ /**
524
+ * Maximum number of results to return in a single page.
525
+ */
526
+ limit?: number;
527
+ /**
528
+ * Free-text search term used to filter results.
529
+ *
530
+ * Which fields are matched against the term varies by endpoint.
531
+ */
532
+ q?: string;
533
+ }
534
+ export interface VolumeDiscountRetrieveParams {
535
+ /**
536
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
537
+ * `null`.
538
+ */
539
+ include?: Array<'customer_groups' | 'product_lines' | 'categories' | 'attributes' | 'acceptable_units'>;
540
+ }
541
+ export interface VolumeDiscountCreateParams {
542
+ /**
543
+ * Body param: Display name of the volume discount.
544
+ *
545
+ * Must be unique within the account.
546
+ */
547
+ name: string;
548
+ /**
549
+ * Body param: Tiers for this volume discount.
550
+ */
551
+ tiers: Array<CreateVolumeDiscountTierInput>;
552
+ /**
553
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
554
+ * are returned as `null`.
555
+ */
556
+ include?: Array<'customer_groups' | 'product_lines' | 'categories' | 'attributes' | 'acceptable_units'>;
557
+ /**
558
+ * Body param: Attribute IDs to scope the discount to.
559
+ *
560
+ * When set, an item qualifies only if it has every listed attribute.
561
+ */
562
+ attribute_ids?: Array<string>;
563
+ /**
564
+ * Body param: Item category IDs to scope the discount to.
565
+ *
566
+ * When empty, all categories qualify.
567
+ */
568
+ category_ids?: Array<string>;
569
+ /**
570
+ * Body param: Account group IDs to scope the discount to specific customer groups.
571
+ *
572
+ * When empty, all customers qualify. A discount scoped to a group the buyer
573
+ * belongs to is preferred over an unscoped one when both could apply to the same
574
+ * order line.
575
+ */
576
+ customer_group_ids?: Array<string>;
577
+ /**
578
+ * Body param: Product line IDs to scope the discount to.
579
+ *
580
+ * When empty, all product lines qualify.
581
+ */
582
+ product_line_ids?: Array<string>;
583
+ /**
584
+ * Body param: IDs of the units that ordered quantities are measured in when
585
+ * evaluating tier thresholds.
586
+ *
587
+ * Quantities ordered in other units are converted into one of these before being
588
+ * compared against a threshold. Leaving this empty makes the discount inert: the
589
+ * quantity always evaluates to zero, so no threshold above zero is ever reached.
590
+ */
591
+ unit_ids?: Array<string>;
592
+ }
593
+ export interface VolumeDiscountUpdateParams {
594
+ /**
595
+ * Body param: Whether to apply the `attribute_ids` field; when `false`, it is
596
+ * ignored.
597
+ */
598
+ has_attributes: boolean;
599
+ /**
600
+ * Body param: Whether to apply the `category_ids` field; when `false`, it is
601
+ * ignored.
602
+ */
603
+ has_categories: boolean;
604
+ /**
605
+ * Body param: Whether to apply the `customer_group_ids` field; when `false`, it is
606
+ * ignored.
607
+ */
608
+ has_customer_groups: boolean;
609
+ /**
610
+ * Body param: Whether to apply the `product_line_ids` field; when `false`, it is
611
+ * ignored.
612
+ */
613
+ has_product_lines: boolean;
614
+ /**
615
+ * Body param: Whether to apply the `tiers` field.
616
+ *
617
+ * When `true`, the discount's tiers are replaced with the contents of `tiers` (an
618
+ * empty list deletes all tiers). When `false`, `tiers` is ignored.
619
+ */
620
+ has_tiers: boolean;
621
+ /**
622
+ * Body param: Whether to apply the `unit_ids` field; when `false`, it is ignored.
623
+ */
624
+ has_units: boolean;
625
+ /**
626
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
627
+ * are returned as `null`.
628
+ */
629
+ include?: Array<'customer_groups' | 'product_lines' | 'categories' | 'attributes' | 'acceptable_units'>;
630
+ /**
631
+ * Body param: Attribute IDs to set.
632
+ *
633
+ * Only applied when `has_attributes` is `true`, in which case they replace the
634
+ * existing set entirely.
635
+ */
636
+ attribute_ids?: Array<string>;
637
+ /**
638
+ * Body param: Item category IDs to set.
639
+ *
640
+ * Only applied when `has_categories` is `true`, in which case they replace the
641
+ * existing set entirely.
642
+ */
643
+ category_ids?: Array<string>;
644
+ /**
645
+ * Body param: Account group IDs to set as customer groups.
646
+ *
647
+ * Only applied when `has_customer_groups` is `true`, in which case they replace
648
+ * the existing set entirely.
649
+ */
650
+ customer_group_ids?: Array<string>;
651
+ /**
652
+ * Body param: Display name of the volume discount.
653
+ *
654
+ * Must be unique within the account.
655
+ */
656
+ name?: string;
657
+ /**
658
+ * Body param: Product line IDs to set.
659
+ *
660
+ * Only applied when `has_product_lines` is `true`, in which case they replace the
661
+ * existing set entirely.
662
+ */
663
+ product_line_ids?: Array<string>;
664
+ /**
665
+ * Body param: The full set of tiers for this discount.
666
+ *
667
+ * Only applied when `has_tiers` is `true`. Tiers with an `id` are updated, tiers
668
+ * without an `id` are created, and existing tiers not present in the list are
669
+ * deleted.
670
+ */
671
+ tiers?: Array<UpdateVolumeDiscountTierInput>;
672
+ /**
673
+ * Body param: IDs of the units to set as acceptable units.
674
+ *
675
+ * Only applied when `has_units` is `true`, in which case they replace the existing
676
+ * set entirely. Clearing every unit makes the discount inert, since ordered
677
+ * quantity then always evaluates to zero.
678
+ */
679
+ unit_ids?: Array<string>;
680
+ }
681
+ export declare namespace VolumeDiscounts {
682
+ export { type CreateVolumeDiscountRequest as CreateVolumeDiscountRequest, type CreateVolumeDiscountTierInput as CreateVolumeDiscountTierInput, type ListVolumeDiscount as ListVolumeDiscount, type ListVolumeDiscountTier as ListVolumeDiscountTier, type UpdateVolumeDiscountRequest as UpdateVolumeDiscountRequest, type UpdateVolumeDiscountTierInput as UpdateVolumeDiscountTierInput, type VolumeDiscount as VolumeDiscount, type VolumeDiscountTier as VolumeDiscountTier, type VolumeDiscountDeleteResponse as VolumeDiscountDeleteResponse, type VolumeDiscountListParams as VolumeDiscountListParams, type VolumeDiscountRetrieveParams as VolumeDiscountRetrieveParams, type VolumeDiscountCreateParams as VolumeDiscountCreateParams, type VolumeDiscountUpdateParams as VolumeDiscountUpdateParams, };
683
+ }
684
+ //# sourceMappingURL=volume-discounts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volume-discounts.d.mts","sourceRoot":"","sources":["../../src/resources/sales/volume-discounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,KAAK,UAAU;OACf,KAAK,iBAAiB;OACtB,KAAK,eAAe;OACpB,KAAK,aAAa;OAClB,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eA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