@gradientedge/commercetools-utils 5.18.1 → 5.19.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 (363) hide show
  1. package/dist/cjs/api/CommercetoolsApi.d.ts +11 -11
  2. package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -1
  3. package/dist/cjs/api/CommercetoolsApi.js +7 -7
  4. package/dist/cjs/api/CommercetoolsApi.js.map +1 -1
  5. package/dist/cjs/index.d.ts +0 -1
  6. package/dist/cjs/index.d.ts.map +1 -1
  7. package/dist/cjs/index.js +0 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/cjs/types.d.ts +1 -0
  10. package/dist/cjs/types.d.ts.map +1 -1
  11. package/dist/cjs/utils/get-attribute-value.d.ts +1 -1
  12. package/dist/cjs/utils/get-attribute-value.d.ts.map +1 -1
  13. package/dist/cjs/utils/get-attribute-value.js.map +1 -1
  14. package/dist/mjs/api/CommercetoolsApi.d.ts +11 -11
  15. package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -1
  16. package/dist/mjs/api/CommercetoolsApi.js +8 -8
  17. package/dist/mjs/api/CommercetoolsApi.js.map +1 -1
  18. package/dist/mjs/index.d.ts +0 -1
  19. package/dist/mjs/index.d.ts.map +1 -1
  20. package/dist/mjs/index.js +0 -1
  21. package/dist/mjs/index.js.map +1 -1
  22. package/dist/mjs/types.d.ts +1 -0
  23. package/dist/mjs/types.d.ts.map +1 -1
  24. package/dist/mjs/utils/get-attribute-value.d.ts +1 -1
  25. package/dist/mjs/utils/get-attribute-value.d.ts.map +1 -1
  26. package/dist/mjs/utils/get-attribute-value.js.map +1 -1
  27. package/package.json +3 -2
  28. package/dist/cjs/models/associate-role.d.ts +0 -319
  29. package/dist/cjs/models/associate-role.d.ts.map +0 -1
  30. package/dist/cjs/models/associate-role.js +0 -8
  31. package/dist/cjs/models/associate-role.js.map +0 -1
  32. package/dist/cjs/models/attribute-group.d.ts +0 -253
  33. package/dist/cjs/models/attribute-group.d.ts.map +0 -1
  34. package/dist/cjs/models/attribute-group.js +0 -8
  35. package/dist/cjs/models/attribute-group.js.map +0 -1
  36. package/dist/cjs/models/business-unit.d.ts +0 -1197
  37. package/dist/cjs/models/business-unit.d.ts.map +0 -1
  38. package/dist/cjs/models/business-unit.js +0 -8
  39. package/dist/cjs/models/business-unit.js.map +0 -1
  40. package/dist/cjs/models/cart-discount.d.ts +0 -716
  41. package/dist/cjs/models/cart-discount.d.ts.map +0 -1
  42. package/dist/cjs/models/cart-discount.js +0 -8
  43. package/dist/cjs/models/cart-discount.js.map +0 -1
  44. package/dist/cjs/models/cart.d.ts +0 -3366
  45. package/dist/cjs/models/cart.d.ts.map +0 -1
  46. package/dist/cjs/models/cart.js +0 -8
  47. package/dist/cjs/models/cart.js.map +0 -1
  48. package/dist/cjs/models/category.d.ts +0 -634
  49. package/dist/cjs/models/category.d.ts.map +0 -1
  50. package/dist/cjs/models/category.js +0 -8
  51. package/dist/cjs/models/category.js.map +0 -1
  52. package/dist/cjs/models/channel.d.ts +0 -379
  53. package/dist/cjs/models/channel.d.ts.map +0 -1
  54. package/dist/cjs/models/channel.js +0 -8
  55. package/dist/cjs/models/channel.js.map +0 -1
  56. package/dist/cjs/models/common.d.ts +0 -1096
  57. package/dist/cjs/models/common.d.ts.map +0 -1
  58. package/dist/cjs/models/common.js +0 -8
  59. package/dist/cjs/models/common.js.map +0 -1
  60. package/dist/cjs/models/custom-object.d.ts +0 -151
  61. package/dist/cjs/models/custom-object.d.ts.map +0 -1
  62. package/dist/cjs/models/custom-object.js +0 -8
  63. package/dist/cjs/models/custom-object.js.map +0 -1
  64. package/dist/cjs/models/customer-group.d.ts +0 -235
  65. package/dist/cjs/models/customer-group.d.ts.map +0 -1
  66. package/dist/cjs/models/customer-group.js +0 -8
  67. package/dist/cjs/models/customer-group.js.map +0 -1
  68. package/dist/cjs/models/customer.d.ts +0 -1221
  69. package/dist/cjs/models/customer.d.ts.map +0 -1
  70. package/dist/cjs/models/customer.js +0 -8
  71. package/dist/cjs/models/customer.js.map +0 -1
  72. package/dist/cjs/models/discount-code.d.ts +0 -439
  73. package/dist/cjs/models/discount-code.d.ts.map +0 -1
  74. package/dist/cjs/models/discount-code.js +0 -8
  75. package/dist/cjs/models/discount-code.js.map +0 -1
  76. package/dist/cjs/models/error.d.ts +0 -3062
  77. package/dist/cjs/models/error.d.ts.map +0 -1
  78. package/dist/cjs/models/error.js +0 -8
  79. package/dist/cjs/models/error.js.map +0 -1
  80. package/dist/cjs/models/extension.d.ts +0 -335
  81. package/dist/cjs/models/extension.d.ts.map +0 -1
  82. package/dist/cjs/models/extension.js +0 -8
  83. package/dist/cjs/models/extension.js.map +0 -1
  84. package/dist/cjs/models/graph-ql.d.ts +0 -63
  85. package/dist/cjs/models/graph-ql.d.ts.map +0 -1
  86. package/dist/cjs/models/graph-ql.js +0 -8
  87. package/dist/cjs/models/graph-ql.js.map +0 -1
  88. package/dist/cjs/models/index.d.ts +0 -42
  89. package/dist/cjs/models/index.d.ts.map +0 -1
  90. package/dist/cjs/models/index.js +0 -58
  91. package/dist/cjs/models/index.js.map +0 -1
  92. package/dist/cjs/models/inventory.d.ts +0 -327
  93. package/dist/cjs/models/inventory.d.ts.map +0 -1
  94. package/dist/cjs/models/inventory.js +0 -8
  95. package/dist/cjs/models/inventory.js.map +0 -1
  96. package/dist/cjs/models/me.d.ts +0 -2483
  97. package/dist/cjs/models/me.d.ts.map +0 -1
  98. package/dist/cjs/models/me.js +0 -8
  99. package/dist/cjs/models/me.js.map +0 -1
  100. package/dist/cjs/models/message.d.ts +0 -15095
  101. package/dist/cjs/models/message.d.ts.map +0 -1
  102. package/dist/cjs/models/message.js +0 -8
  103. package/dist/cjs/models/message.js.map +0 -1
  104. package/dist/cjs/models/order-edit.d.ts +0 -1645
  105. package/dist/cjs/models/order-edit.d.ts.map +0 -1
  106. package/dist/cjs/models/order-edit.js +0 -8
  107. package/dist/cjs/models/order-edit.js.map +0 -1
  108. package/dist/cjs/models/order.d.ts +0 -2157
  109. package/dist/cjs/models/order.d.ts.map +0 -1
  110. package/dist/cjs/models/order.js +0 -8
  111. package/dist/cjs/models/order.js.map +0 -1
  112. package/dist/cjs/models/payment.d.ts +0 -734
  113. package/dist/cjs/models/payment.d.ts.map +0 -1
  114. package/dist/cjs/models/payment.js +0 -8
  115. package/dist/cjs/models/payment.js.map +0 -1
  116. package/dist/cjs/models/product-discount.d.ts +0 -461
  117. package/dist/cjs/models/product-discount.d.ts.map +0 -1
  118. package/dist/cjs/models/product-discount.js +0 -8
  119. package/dist/cjs/models/product-discount.js.map +0 -1
  120. package/dist/cjs/models/product-selection.d.ts +0 -638
  121. package/dist/cjs/models/product-selection.d.ts.map +0 -1
  122. package/dist/cjs/models/product-selection.js +0 -8
  123. package/dist/cjs/models/product-selection.js.map +0 -1
  124. package/dist/cjs/models/product-type.d.ts +0 -774
  125. package/dist/cjs/models/product-type.d.ts.map +0 -1
  126. package/dist/cjs/models/product-type.js +0 -8
  127. package/dist/cjs/models/product-type.js.map +0 -1
  128. package/dist/cjs/models/product.d.ts +0 -2282
  129. package/dist/cjs/models/product.d.ts.map +0 -1
  130. package/dist/cjs/models/product.js +0 -8
  131. package/dist/cjs/models/product.js.map +0 -1
  132. package/dist/cjs/models/project.d.ts +0 -381
  133. package/dist/cjs/models/project.d.ts.map +0 -1
  134. package/dist/cjs/models/project.js +0 -8
  135. package/dist/cjs/models/project.js.map +0 -1
  136. package/dist/cjs/models/quote-request.d.ts +0 -430
  137. package/dist/cjs/models/quote-request.d.ts.map +0 -1
  138. package/dist/cjs/models/quote-request.js +0 -8
  139. package/dist/cjs/models/quote-request.js.map +0 -1
  140. package/dist/cjs/models/quote.d.ts +0 -458
  141. package/dist/cjs/models/quote.d.ts.map +0 -1
  142. package/dist/cjs/models/quote.js +0 -8
  143. package/dist/cjs/models/quote.js.map +0 -1
  144. package/dist/cjs/models/review.d.ts +0 -435
  145. package/dist/cjs/models/review.d.ts.map +0 -1
  146. package/dist/cjs/models/review.js +0 -8
  147. package/dist/cjs/models/review.js.map +0 -1
  148. package/dist/cjs/models/scalar-types.d.ts +0 -9
  149. package/dist/cjs/models/scalar-types.d.ts.map +0 -1
  150. package/dist/cjs/models/scalar-types.js +0 -8
  151. package/dist/cjs/models/scalar-types.js.map +0 -1
  152. package/dist/cjs/models/shipping-method.d.ts +0 -569
  153. package/dist/cjs/models/shipping-method.d.ts.map +0 -1
  154. package/dist/cjs/models/shipping-method.js +0 -8
  155. package/dist/cjs/models/shipping-method.js.map +0 -1
  156. package/dist/cjs/models/shopping-list.d.ts +0 -844
  157. package/dist/cjs/models/shopping-list.d.ts.map +0 -1
  158. package/dist/cjs/models/shopping-list.js +0 -8
  159. package/dist/cjs/models/shopping-list.js.map +0 -1
  160. package/dist/cjs/models/staged-quote.d.ts +0 -338
  161. package/dist/cjs/models/staged-quote.d.ts.map +0 -1
  162. package/dist/cjs/models/staged-quote.js +0 -8
  163. package/dist/cjs/models/staged-quote.js.map +0 -1
  164. package/dist/cjs/models/standalone-price.d.ts +0 -410
  165. package/dist/cjs/models/standalone-price.d.ts.map +0 -1
  166. package/dist/cjs/models/standalone-price.js +0 -8
  167. package/dist/cjs/models/standalone-price.js.map +0 -1
  168. package/dist/cjs/models/state.d.ts +0 -341
  169. package/dist/cjs/models/state.d.ts.map +0 -1
  170. package/dist/cjs/models/state.js +0 -8
  171. package/dist/cjs/models/state.js.map +0 -1
  172. package/dist/cjs/models/store-country.d.ts +0 -14
  173. package/dist/cjs/models/store-country.d.ts.map +0 -1
  174. package/dist/cjs/models/store-country.js +0 -8
  175. package/dist/cjs/models/store-country.js.map +0 -1
  176. package/dist/cjs/models/store.d.ts +0 -547
  177. package/dist/cjs/models/store.d.ts.map +0 -1
  178. package/dist/cjs/models/store.js +0 -8
  179. package/dist/cjs/models/store.js.map +0 -1
  180. package/dist/cjs/models/subscription.d.ts +0 -717
  181. package/dist/cjs/models/subscription.d.ts.map +0 -1
  182. package/dist/cjs/models/subscription.js +0 -8
  183. package/dist/cjs/models/subscription.js.map +0 -1
  184. package/dist/cjs/models/tax-category.d.ts +0 -376
  185. package/dist/cjs/models/tax-category.d.ts.map +0 -1
  186. package/dist/cjs/models/tax-category.js +0 -8
  187. package/dist/cjs/models/tax-category.js.map +0 -1
  188. package/dist/cjs/models/type.d.ts +0 -645
  189. package/dist/cjs/models/type.d.ts.map +0 -1
  190. package/dist/cjs/models/type.js +0 -8
  191. package/dist/cjs/models/type.js.map +0 -1
  192. package/dist/cjs/models/zone.d.ts +0 -234
  193. package/dist/cjs/models/zone.d.ts.map +0 -1
  194. package/dist/cjs/models/zone.js +0 -8
  195. package/dist/cjs/models/zone.js.map +0 -1
  196. package/dist/mjs/models/associate-role.d.ts +0 -319
  197. package/dist/mjs/models/associate-role.d.ts.map +0 -1
  198. package/dist/mjs/models/associate-role.js +0 -7
  199. package/dist/mjs/models/associate-role.js.map +0 -1
  200. package/dist/mjs/models/attribute-group.d.ts +0 -253
  201. package/dist/mjs/models/attribute-group.d.ts.map +0 -1
  202. package/dist/mjs/models/attribute-group.js +0 -7
  203. package/dist/mjs/models/attribute-group.js.map +0 -1
  204. package/dist/mjs/models/business-unit.d.ts +0 -1197
  205. package/dist/mjs/models/business-unit.d.ts.map +0 -1
  206. package/dist/mjs/models/business-unit.js +0 -7
  207. package/dist/mjs/models/business-unit.js.map +0 -1
  208. package/dist/mjs/models/cart-discount.d.ts +0 -716
  209. package/dist/mjs/models/cart-discount.d.ts.map +0 -1
  210. package/dist/mjs/models/cart-discount.js +0 -7
  211. package/dist/mjs/models/cart-discount.js.map +0 -1
  212. package/dist/mjs/models/cart.d.ts +0 -3366
  213. package/dist/mjs/models/cart.d.ts.map +0 -1
  214. package/dist/mjs/models/cart.js +0 -7
  215. package/dist/mjs/models/cart.js.map +0 -1
  216. package/dist/mjs/models/category.d.ts +0 -634
  217. package/dist/mjs/models/category.d.ts.map +0 -1
  218. package/dist/mjs/models/category.js +0 -7
  219. package/dist/mjs/models/category.js.map +0 -1
  220. package/dist/mjs/models/channel.d.ts +0 -379
  221. package/dist/mjs/models/channel.d.ts.map +0 -1
  222. package/dist/mjs/models/channel.js +0 -7
  223. package/dist/mjs/models/channel.js.map +0 -1
  224. package/dist/mjs/models/common.d.ts +0 -1096
  225. package/dist/mjs/models/common.d.ts.map +0 -1
  226. package/dist/mjs/models/common.js +0 -7
  227. package/dist/mjs/models/common.js.map +0 -1
  228. package/dist/mjs/models/custom-object.d.ts +0 -151
  229. package/dist/mjs/models/custom-object.d.ts.map +0 -1
  230. package/dist/mjs/models/custom-object.js +0 -7
  231. package/dist/mjs/models/custom-object.js.map +0 -1
  232. package/dist/mjs/models/customer-group.d.ts +0 -235
  233. package/dist/mjs/models/customer-group.d.ts.map +0 -1
  234. package/dist/mjs/models/customer-group.js +0 -7
  235. package/dist/mjs/models/customer-group.js.map +0 -1
  236. package/dist/mjs/models/customer.d.ts +0 -1221
  237. package/dist/mjs/models/customer.d.ts.map +0 -1
  238. package/dist/mjs/models/customer.js +0 -7
  239. package/dist/mjs/models/customer.js.map +0 -1
  240. package/dist/mjs/models/discount-code.d.ts +0 -439
  241. package/dist/mjs/models/discount-code.d.ts.map +0 -1
  242. package/dist/mjs/models/discount-code.js +0 -7
  243. package/dist/mjs/models/discount-code.js.map +0 -1
  244. package/dist/mjs/models/error.d.ts +0 -3062
  245. package/dist/mjs/models/error.d.ts.map +0 -1
  246. package/dist/mjs/models/error.js +0 -7
  247. package/dist/mjs/models/error.js.map +0 -1
  248. package/dist/mjs/models/extension.d.ts +0 -335
  249. package/dist/mjs/models/extension.d.ts.map +0 -1
  250. package/dist/mjs/models/extension.js +0 -7
  251. package/dist/mjs/models/extension.js.map +0 -1
  252. package/dist/mjs/models/graph-ql.d.ts +0 -63
  253. package/dist/mjs/models/graph-ql.d.ts.map +0 -1
  254. package/dist/mjs/models/graph-ql.js +0 -7
  255. package/dist/mjs/models/graph-ql.js.map +0 -1
  256. package/dist/mjs/models/index.d.ts +0 -42
  257. package/dist/mjs/models/index.d.ts.map +0 -1
  258. package/dist/mjs/models/index.js +0 -42
  259. package/dist/mjs/models/index.js.map +0 -1
  260. package/dist/mjs/models/inventory.d.ts +0 -327
  261. package/dist/mjs/models/inventory.d.ts.map +0 -1
  262. package/dist/mjs/models/inventory.js +0 -7
  263. package/dist/mjs/models/inventory.js.map +0 -1
  264. package/dist/mjs/models/me.d.ts +0 -2483
  265. package/dist/mjs/models/me.d.ts.map +0 -1
  266. package/dist/mjs/models/me.js +0 -7
  267. package/dist/mjs/models/me.js.map +0 -1
  268. package/dist/mjs/models/message.d.ts +0 -15095
  269. package/dist/mjs/models/message.d.ts.map +0 -1
  270. package/dist/mjs/models/message.js +0 -7
  271. package/dist/mjs/models/message.js.map +0 -1
  272. package/dist/mjs/models/order-edit.d.ts +0 -1645
  273. package/dist/mjs/models/order-edit.d.ts.map +0 -1
  274. package/dist/mjs/models/order-edit.js +0 -7
  275. package/dist/mjs/models/order-edit.js.map +0 -1
  276. package/dist/mjs/models/order.d.ts +0 -2157
  277. package/dist/mjs/models/order.d.ts.map +0 -1
  278. package/dist/mjs/models/order.js +0 -7
  279. package/dist/mjs/models/order.js.map +0 -1
  280. package/dist/mjs/models/payment.d.ts +0 -734
  281. package/dist/mjs/models/payment.d.ts.map +0 -1
  282. package/dist/mjs/models/payment.js +0 -7
  283. package/dist/mjs/models/payment.js.map +0 -1
  284. package/dist/mjs/models/product-discount.d.ts +0 -461
  285. package/dist/mjs/models/product-discount.d.ts.map +0 -1
  286. package/dist/mjs/models/product-discount.js +0 -7
  287. package/dist/mjs/models/product-discount.js.map +0 -1
  288. package/dist/mjs/models/product-selection.d.ts +0 -638
  289. package/dist/mjs/models/product-selection.d.ts.map +0 -1
  290. package/dist/mjs/models/product-selection.js +0 -7
  291. package/dist/mjs/models/product-selection.js.map +0 -1
  292. package/dist/mjs/models/product-type.d.ts +0 -774
  293. package/dist/mjs/models/product-type.d.ts.map +0 -1
  294. package/dist/mjs/models/product-type.js +0 -7
  295. package/dist/mjs/models/product-type.js.map +0 -1
  296. package/dist/mjs/models/product.d.ts +0 -2282
  297. package/dist/mjs/models/product.d.ts.map +0 -1
  298. package/dist/mjs/models/product.js +0 -7
  299. package/dist/mjs/models/product.js.map +0 -1
  300. package/dist/mjs/models/project.d.ts +0 -381
  301. package/dist/mjs/models/project.d.ts.map +0 -1
  302. package/dist/mjs/models/project.js +0 -7
  303. package/dist/mjs/models/project.js.map +0 -1
  304. package/dist/mjs/models/quote-request.d.ts +0 -430
  305. package/dist/mjs/models/quote-request.d.ts.map +0 -1
  306. package/dist/mjs/models/quote-request.js +0 -7
  307. package/dist/mjs/models/quote-request.js.map +0 -1
  308. package/dist/mjs/models/quote.d.ts +0 -458
  309. package/dist/mjs/models/quote.d.ts.map +0 -1
  310. package/dist/mjs/models/quote.js +0 -7
  311. package/dist/mjs/models/quote.js.map +0 -1
  312. package/dist/mjs/models/review.d.ts +0 -435
  313. package/dist/mjs/models/review.d.ts.map +0 -1
  314. package/dist/mjs/models/review.js +0 -7
  315. package/dist/mjs/models/review.js.map +0 -1
  316. package/dist/mjs/models/scalar-types.d.ts +0 -9
  317. package/dist/mjs/models/scalar-types.d.ts.map +0 -1
  318. package/dist/mjs/models/scalar-types.js +0 -7
  319. package/dist/mjs/models/scalar-types.js.map +0 -1
  320. package/dist/mjs/models/shipping-method.d.ts +0 -569
  321. package/dist/mjs/models/shipping-method.d.ts.map +0 -1
  322. package/dist/mjs/models/shipping-method.js +0 -7
  323. package/dist/mjs/models/shipping-method.js.map +0 -1
  324. package/dist/mjs/models/shopping-list.d.ts +0 -844
  325. package/dist/mjs/models/shopping-list.d.ts.map +0 -1
  326. package/dist/mjs/models/shopping-list.js +0 -7
  327. package/dist/mjs/models/shopping-list.js.map +0 -1
  328. package/dist/mjs/models/staged-quote.d.ts +0 -338
  329. package/dist/mjs/models/staged-quote.d.ts.map +0 -1
  330. package/dist/mjs/models/staged-quote.js +0 -7
  331. package/dist/mjs/models/staged-quote.js.map +0 -1
  332. package/dist/mjs/models/standalone-price.d.ts +0 -410
  333. package/dist/mjs/models/standalone-price.d.ts.map +0 -1
  334. package/dist/mjs/models/standalone-price.js +0 -7
  335. package/dist/mjs/models/standalone-price.js.map +0 -1
  336. package/dist/mjs/models/state.d.ts +0 -341
  337. package/dist/mjs/models/state.d.ts.map +0 -1
  338. package/dist/mjs/models/state.js +0 -7
  339. package/dist/mjs/models/state.js.map +0 -1
  340. package/dist/mjs/models/store-country.d.ts +0 -14
  341. package/dist/mjs/models/store-country.d.ts.map +0 -1
  342. package/dist/mjs/models/store-country.js +0 -7
  343. package/dist/mjs/models/store-country.js.map +0 -1
  344. package/dist/mjs/models/store.d.ts +0 -547
  345. package/dist/mjs/models/store.d.ts.map +0 -1
  346. package/dist/mjs/models/store.js +0 -7
  347. package/dist/mjs/models/store.js.map +0 -1
  348. package/dist/mjs/models/subscription.d.ts +0 -717
  349. package/dist/mjs/models/subscription.d.ts.map +0 -1
  350. package/dist/mjs/models/subscription.js +0 -7
  351. package/dist/mjs/models/subscription.js.map +0 -1
  352. package/dist/mjs/models/tax-category.d.ts +0 -376
  353. package/dist/mjs/models/tax-category.d.ts.map +0 -1
  354. package/dist/mjs/models/tax-category.js +0 -7
  355. package/dist/mjs/models/tax-category.js.map +0 -1
  356. package/dist/mjs/models/type.d.ts +0 -645
  357. package/dist/mjs/models/type.d.ts.map +0 -1
  358. package/dist/mjs/models/type.js +0 -7
  359. package/dist/mjs/models/type.js.map +0 -1
  360. package/dist/mjs/models/zone.d.ts +0 -234
  361. package/dist/mjs/models/zone.d.ts.map +0 -1
  362. package/dist/mjs/models/zone.js +0 -7
  363. package/dist/mjs/models/zone.js.map +0 -1
@@ -1,1096 +0,0 @@
1
- /**
2
- * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
- * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
- * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
- */
6
- import { AssociateRole, AssociateRoleKeyReference, AssociateRoleReference, AssociateRoleResourceIdentifier } from './associate-role.js';
7
- import { AttributeGroup, AttributeGroupReference, AttributeGroupResourceIdentifier } from './attribute-group.js';
8
- import { BusinessUnit, BusinessUnitKeyReference, BusinessUnitReference, BusinessUnitResourceIdentifier } from './business-unit.js';
9
- import { Cart, CartReference, CartResourceIdentifier, DirectDiscountReference } from './cart.js';
10
- import { CartDiscount, CartDiscountReference, CartDiscountResourceIdentifier } from './cart-discount.js';
11
- import { Category, CategoryReference, CategoryResourceIdentifier } from './category.js';
12
- import { Channel, ChannelReference, ChannelResourceIdentifier } from './channel.js';
13
- import { CustomObject, CustomObjectReference } from './custom-object.js';
14
- import { Customer, CustomerReference, CustomerResourceIdentifier } from './customer.js';
15
- import { CustomerGroup, CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group.js';
16
- import { DiscountCode, DiscountCodeReference, DiscountCodeResourceIdentifier } from './discount-code.js';
17
- import { Extension } from './extension.js';
18
- import { InventoryEntry, InventoryEntryReference, InventoryEntryResourceIdentifier } from './inventory.js';
19
- import { Message } from './message.js';
20
- import { Order, OrderReference, OrderResourceIdentifier } from './order.js';
21
- import { OrderEdit, OrderEditReference, OrderEditResourceIdentifier } from './order-edit.js';
22
- import { Payment, PaymentReference, PaymentResourceIdentifier } from './payment.js';
23
- import { Product, ProductProjection, ProductReference, ProductResourceIdentifier } from './product.js';
24
- import { ProductDiscount, ProductDiscountReference, ProductDiscountResourceIdentifier } from './product-discount.js';
25
- import { ProductSelection, ProductSelectionReference, ProductSelectionResourceIdentifier } from './product-selection.js';
26
- import { ProductType, ProductTypeReference, ProductTypeResourceIdentifier } from './product-type.js';
27
- import { Quote, QuoteReference, QuoteResourceIdentifier } from './quote.js';
28
- import { QuoteRequest, QuoteRequestReference, QuoteRequestResourceIdentifier } from './quote-request.js';
29
- import { Review, ReviewReference, ReviewResourceIdentifier } from './review.js';
30
- import { ShippingMethod, ShippingMethodReference, ShippingMethodResourceIdentifier } from './shipping-method.js';
31
- import { ShoppingList, ShoppingListReference, ShoppingListResourceIdentifier } from './shopping-list.js';
32
- import { StagedQuote, StagedQuoteReference, StagedQuoteResourceIdentifier } from './staged-quote.js';
33
- import { StandalonePrice, StandalonePriceReference, StandalonePriceResourceIdentifier } from './standalone-price.js';
34
- import { State, StateReference, StateResourceIdentifier } from './state.js';
35
- import { Store, StoreKeyReference, StoreReference, StoreResourceIdentifier } from './store.js';
36
- import { Subscription } from './subscription.js';
37
- import { TaxCategory, TaxCategoryReference, TaxCategoryResourceIdentifier } from './tax-category.js';
38
- import { CustomFields, CustomFieldsDraft, Type, TypeReference, TypeResourceIdentifier } from './type.js';
39
- import { Zone, ZoneReference, ZoneResourceIdentifier } from './zone.js';
40
- export interface PagedQueryResponse {
41
- /**
42
- * Number of [results requested](/../api/general-concepts#limit).
43
- *
44
- *
45
- */
46
- readonly limit: number;
47
- /**
48
- * Number of [elements skipped](/../api/general-concepts#offset).
49
- *
50
- *
51
- */
52
- readonly offset: number;
53
- /**
54
- * Actual number of results returned.
55
- *
56
- *
57
- */
58
- readonly count: number;
59
- /**
60
- * Total number of results matching the query.
61
- * This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
62
- * This field is returned by default.
63
- * For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
64
- * When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
65
- *
66
- *
67
- */
68
- readonly total?: number;
69
- /**
70
- *
71
- */
72
- readonly results: BaseResource[];
73
- /**
74
- *
75
- */
76
- readonly meta?: any;
77
- }
78
- export interface Update {
79
- /**
80
- *
81
- */
82
- readonly version: number;
83
- /**
84
- *
85
- */
86
- readonly actions: UpdateAction[];
87
- }
88
- export interface UpdateAction {
89
- /**
90
- *
91
- */
92
- readonly action: string;
93
- }
94
- export interface Asset {
95
- /**
96
- * Unique identifier of the Asset.
97
- *
98
- *
99
- */
100
- readonly id: string;
101
- /**
102
- *
103
- */
104
- readonly sources: AssetSource[];
105
- /**
106
- * Name of the Asset.
107
- *
108
- *
109
- */
110
- readonly name: LocalizedString;
111
- /**
112
- * Description of the Asset.
113
- *
114
- *
115
- */
116
- readonly description?: LocalizedString;
117
- /**
118
- * Keywords for categorizing and organizing Assets.
119
- *
120
- *
121
- */
122
- readonly tags?: string[];
123
- /**
124
- * Custom Fields defined for the Asset.
125
- *
126
- *
127
- */
128
- readonly custom?: CustomFields;
129
- /**
130
- * User-defined unique identifier of the Asset.
131
- *
132
- *
133
- */
134
- readonly key?: string;
135
- }
136
- /**
137
- * Dimensions of the Asset source specified by the number of pixels.
138
- *
139
- */
140
- export interface AssetDimensions {
141
- /**
142
- * Width of the Asset source.
143
- *
144
- *
145
- */
146
- readonly w: number;
147
- /**
148
- * Height of the Asset source.
149
- *
150
- *
151
- */
152
- readonly h: number;
153
- }
154
- export interface AssetDraft {
155
- /**
156
- *
157
- */
158
- readonly sources: AssetSource[];
159
- /**
160
- * Name of the Asset.
161
- *
162
- *
163
- */
164
- readonly name: LocalizedString;
165
- /**
166
- * Description of the Asset.
167
- *
168
- *
169
- */
170
- readonly description?: LocalizedString;
171
- /**
172
- * Keywords for categorizing and organizing Assets.
173
- *
174
- *
175
- */
176
- readonly tags?: string[];
177
- /**
178
- * Custom Fields defined for the Asset.
179
- *
180
- *
181
- */
182
- readonly custom?: CustomFieldsDraft;
183
- /**
184
- * User-defined unique identifier for the Asset.
185
- *
186
- *
187
- */
188
- readonly key?: string;
189
- }
190
- /**
191
- * Representation of an [Asset](#asset) in a specific format, for example a video in a certain encoding, or an image in a certain resolution.
192
- *
193
- */
194
- export interface AssetSource {
195
- /**
196
- * URI of the AssetSource.
197
- *
198
- *
199
- */
200
- readonly uri: string;
201
- /**
202
- * User-defined unique identifier of the AssetSource.
203
- *
204
- */
205
- readonly key?: string;
206
- /**
207
- * Width and height of the AssetSource.
208
- *
209
- *
210
- */
211
- readonly dimensions?: AssetDimensions;
212
- /**
213
- * Indicates the type of content, for example `application/pdf`.
214
- *
215
- *
216
- */
217
- readonly contentType?: string;
218
- }
219
- /**
220
- * Polymorphic base type that represents a postal address and contact details.
221
- * Depending on the read or write action, it can be either [Address](ctp:api:type:Address) or [AddressDraft](ctp:api:type:AddressDraft) that
222
- * only differ in the data type for the optional `custom` field.
223
- *
224
- */
225
- export interface BaseAddress {
226
- /**
227
- * Unique identifier of the Address.
228
- *
229
- * It is not recommended to set it manually since the API overwrites this ID when creating an Address for a [Customer](ctp:api:type:Customer).
230
- * Use `key` instead and omit this field from the request to let the API generate the ID for the Address.
231
- *
232
- *
233
- */
234
- readonly id?: string;
235
- /**
236
- * User-defined identifier of the Address that must be unique when multiple addresses are referenced in [BusinessUnits](ctp:api:type:BusinessUnit), [Customers](ctp:api:type:Customer), and `itemShippingAddresses` (LineItem-specific addresses) of a [Cart](ctp:api:type:Cart), [Order](ctp:api:type:Order), [QuoteRequest](ctp:api:type:QuoteRequest), or [Quote](ctp:api:type:Quote).
237
- *
238
- *
239
- */
240
- readonly key?: string;
241
- /**
242
- * Name of the country.
243
- *
244
- *
245
- */
246
- readonly country: string;
247
- /**
248
- * Title of the contact, for example 'Dr.'
249
- *
250
- *
251
- */
252
- readonly title?: string;
253
- /**
254
- * Salutation of the contact, for example 'Mr.' or 'Ms.'
255
- *
256
- *
257
- */
258
- readonly salutation?: string;
259
- /**
260
- * Given name (first name) of the contact.
261
- *
262
- *
263
- */
264
- readonly firstName?: string;
265
- /**
266
- * Family name (last name) of the contact.
267
- *
268
- *
269
- */
270
- readonly lastName?: string;
271
- /**
272
- * Name of the street.
273
- *
274
- *
275
- */
276
- readonly streetName?: string;
277
- /**
278
- * Street number.
279
- *
280
- *
281
- */
282
- readonly streetNumber?: string;
283
- /**
284
- * Further information on the street address.
285
- *
286
- *
287
- */
288
- readonly additionalStreetInfo?: string;
289
- /**
290
- * Postal code.
291
- *
292
- *
293
- */
294
- readonly postalCode?: string;
295
- /**
296
- * Name of the city.
297
- *
298
- *
299
- */
300
- readonly city?: string;
301
- /**
302
- * Name of the region.
303
- *
304
- *
305
- */
306
- readonly region?: string;
307
- /**
308
- * Name of the state, for example, Colorado.
309
- *
310
- *
311
- */
312
- readonly state?: string;
313
- /**
314
- * Name of the company.
315
- *
316
- *
317
- */
318
- readonly company?: string;
319
- /**
320
- * Name of the department.
321
- *
322
- *
323
- */
324
- readonly department?: string;
325
- /**
326
- * Number or name of the building.
327
- *
328
- *
329
- */
330
- readonly building?: string;
331
- /**
332
- * Number or name of the apartment.
333
- *
334
- *
335
- */
336
- readonly apartment?: string;
337
- /**
338
- * Post office box number.
339
- *
340
- *
341
- */
342
- readonly pOBox?: string;
343
- /**
344
- * Phone number of the contact.
345
- *
346
- *
347
- */
348
- readonly phone?: string;
349
- /**
350
- * Mobile phone number of the contact.
351
- *
352
- *
353
- */
354
- readonly mobile?: string;
355
- /**
356
- * Email address of the contact.
357
- *
358
- *
359
- */
360
- readonly email?: string;
361
- /**
362
- * Fax number of the contact.
363
- *
364
- *
365
- */
366
- readonly fax?: string;
367
- /**
368
- * Further information on the Address.
369
- *
370
- *
371
- */
372
- readonly additionalAddressInfo?: string;
373
- /**
374
- * ID for the contact used in an external system.
375
- *
376
- *
377
- */
378
- readonly externalId?: string;
379
- }
380
- export type _BaseAddress = BaseAddress | Address | AddressDraft;
381
- /**
382
- * Address type returned by read methods.
383
- * Optionally, the `custom` field can be present in addition to the fields of a [BaseAddress](ctp:api:type:BaseAddress).
384
- *
385
- */
386
- export interface Address extends BaseAddress {
387
- /**
388
- * Custom Fields defined for the Address.
389
- *
390
- */
391
- readonly custom?: CustomFields;
392
- }
393
- /**
394
- * Address type to be used on write methods.
395
- * Optionally, use the `custom` field in addition to the fields of a [BaseAddress](ctp:api:type:BaseAddress).
396
- *
397
- */
398
- export interface AddressDraft extends BaseAddress {
399
- /**
400
- * Custom Fields defined for the Address.
401
- *
402
- */
403
- readonly custom?: CustomFieldsDraft;
404
- }
405
- export interface BaseResource {
406
- /**
407
- *
408
- */
409
- readonly id: string;
410
- /**
411
- *
412
- */
413
- readonly version: number;
414
- /**
415
- *
416
- */
417
- readonly createdAt: string;
418
- /**
419
- *
420
- */
421
- readonly lastModifiedAt: string;
422
- }
423
- export type _BaseResource = BaseResource | AssociateRole | AttributeGroup | BusinessUnit | Cart | CartDiscount | Category | Channel | CustomObject | Customer | CustomerGroup | DiscountCode | Extension | InventoryEntry | Message | Order | OrderEdit | Payment | Product | ProductDiscount | ProductProjection | ProductSelection | ProductType | Quote | QuoteRequest | Review | ShippingMethod | ShoppingList | StagedQuote | StandalonePrice | State | Store | Subscription | TaxCategory | Type | Zone;
424
- /**
425
- * These objects represent information about which [API Client](/../api/projects/api-clients) created or modified a resource. For more information, see [Client Logging](/client-logging).
426
- *
427
- */
428
- export interface ClientLogging {
429
- /**
430
- * `id` of the [APIClient](ctp:api:type:ApiClient) which created the resource.
431
- *
432
- *
433
- */
434
- readonly clientId?: string;
435
- /**
436
- * [External user ID](/../api/client-logging#external-user-ids) provided by `X-External-User-ID` HTTP Header.
437
- *
438
- *
439
- */
440
- readonly externalUserId?: string;
441
- /**
442
- * Indicates the [Customer](ctp:api:type:Customer) who modified the resource using a token from the [password flow](/authorization#password-flow).
443
- *
444
- *
445
- */
446
- readonly customer?: CustomerReference;
447
- /**
448
- * Indicates that the resource was modified during an [anonymous session](ctp:api:type:AnonymousSession) with the logged ID.
449
- *
450
- *
451
- */
452
- readonly anonymousId?: string;
453
- }
454
- export type _ClientLogging = ClientLogging | CreatedBy | LastModifiedBy;
455
- /**
456
- * Present on resources created after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked).
457
- */
458
- export interface CreatedBy extends ClientLogging {
459
- /**
460
- * `id` of the [APIClient](ctp:api:type:ApiClient) which created the resource.
461
- *
462
- *
463
- */
464
- readonly clientId?: string;
465
- /**
466
- * [External user ID](/../api/client-logging#external-user-ids) provided by `X-External-User-ID` HTTP Header.
467
- *
468
- *
469
- */
470
- readonly externalUserId?: string;
471
- /**
472
- * Indicates the [Customer](ctp:api:type:Customer) who created the resource using a token from the [password flow](/authorization#password-flow).
473
- *
474
- *
475
- */
476
- readonly customer?: CustomerReference;
477
- /**
478
- * Indicates the [anonymous session](ctp:api:type:AnonymousSession) during which the resource was created.
479
- *
480
- *
481
- */
482
- readonly anonymousId?: string;
483
- }
484
- export interface DiscountedPrice {
485
- /**
486
- * Money value of the discounted price.
487
- *
488
- *
489
- */
490
- readonly value: TypedMoney;
491
- /**
492
- * [ProductDiscount](ctp:api:type:ProductDiscount) related to the discounted price.
493
- *
494
- *
495
- */
496
- readonly discount: ProductDiscountReference;
497
- }
498
- export interface DiscountedPriceDraft {
499
- /**
500
- * Sets the money value for the discounted price.
501
- *
502
- *
503
- */
504
- readonly value: _Money;
505
- /**
506
- * Relates the referenced [ProductDiscount](ctp:api:type:ProductDiscount) to the discounted price.
507
- *
508
- *
509
- */
510
- readonly discount: ProductDiscountReference;
511
- }
512
- /**
513
- * GeoJSON Geometry represents a [Geometry Object](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1) as defined in the GeoJSON standard.
514
- *
515
- */
516
- export type GeoJson = GeoJsonPoint;
517
- export interface GeoJsonPoint {
518
- readonly type: 'Point';
519
- /**
520
- * Longitude (stored on index `[0]`) and latitude (stored on index `[1]`) of the [Point](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.2).
521
- *
522
- *
523
- */
524
- readonly coordinates: number[];
525
- }
526
- export interface Image {
527
- /**
528
- * URL of the image in its original size that must be unique within a single [ProductVariant](ctp:api:type:ProductVariant).
529
- *
530
- *
531
- */
532
- readonly url: string;
533
- /**
534
- * Dimensions of the original image.
535
- *
536
- *
537
- */
538
- readonly dimensions: ImageDimensions;
539
- /**
540
- * Custom label for the image.
541
- *
542
- *
543
- */
544
- readonly label?: string;
545
- }
546
- export interface ImageDimensions {
547
- /**
548
- * Width of the image.
549
- *
550
- */
551
- readonly w: number;
552
- /**
553
- * Height of the image.
554
- *
555
- */
556
- readonly h: number;
557
- }
558
- /**
559
- * A KeyReference represents a loose reference to another resource in the same Project identified by the resource's `key` field. If available, the `key` is immutable and mandatory. KeyReferences do not support [Reference Expansion](/general-concepts#reference-expansion).
560
- *
561
- */
562
- export type KeyReference = AssociateRoleKeyReference | BusinessUnitKeyReference | StoreKeyReference;
563
- /**
564
- * Present on resources modified after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked).
565
- */
566
- export interface LastModifiedBy extends ClientLogging {
567
- /**
568
- * `id` of the [APIClient](ctp:api:type:ApiClient) which modified the resource.
569
- *
570
- *
571
- */
572
- readonly clientId?: string;
573
- /**
574
- * [External user ID](/../api/client-logging#external-user-ids) provided by `X-External-User-ID` HTTP Header.
575
- *
576
- *
577
- */
578
- readonly externalUserId?: string;
579
- /**
580
- * Indicates the [Customer](ctp:api:type:Customer) who modified the resource using a token from the [password flow](/authorization#password-flow).
581
- *
582
- *
583
- */
584
- readonly customer?: CustomerReference;
585
- /**
586
- * Indicates the [anonymous session](ctp:api:type:AnonymousSession) during which the resource was modified.
587
- *
588
- *
589
- */
590
- readonly anonymousId?: string;
591
- }
592
- /**
593
- * JSON object where the keys are of type [Locale](ctp:api:type:Locale), and the values are the strings used for the corresponding language.
594
- *
595
- */
596
- export interface LocalizedString {
597
- [key: string]: string;
598
- }
599
- /**
600
- * Draft type that stores amounts only in cent precision for the specified currency.
601
- *
602
- */
603
- export interface Money {
604
- /**
605
- * Amount in the smallest indivisible unit of a currency, such as:
606
- *
607
- * * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
608
- * * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
609
- *
610
- *
611
- */
612
- readonly centAmount: number;
613
- /**
614
- * Currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
615
- *
616
- *
617
- */
618
- readonly currencyCode: string;
619
- }
620
- export type _Money = Money | TypedMoney | TypedMoneyDraft;
621
- /**
622
- * MoneyType supports two different values, one for amounts in cent precision and another one for sub-cent amounts up to 20 fraction digits.
623
- */
624
- export type MoneyType = 'centPrecision' | 'highPrecision' | string;
625
- /**
626
- * The representation for prices embedded in [LineItems](ctp:api:type:LineItem) and in [ProductVariants](ctp:api:type:ProductVariant) when the [ProductPriceMode](ctp:api:type:ProductPriceModeEnum) is `Embedded`.
627
- * For the `Standalone` ProductPriceMode refer to [StandalonePrice](ctp:api:type:StandalonePrice).
628
- */
629
- export interface Price {
630
- /**
631
- * Unique identifier of this Price.
632
- *
633
- *
634
- */
635
- readonly id: string;
636
- /**
637
- * User-defined identifier of the Price. It is unique per [ProductVariant](ctp:api:type:ProductVariant).
638
- *
639
- *
640
- */
641
- readonly key?: string;
642
- /**
643
- * Money value of this Price.
644
- *
645
- *
646
- */
647
- readonly value: TypedMoney;
648
- /**
649
- * Country for which this Price is valid.
650
- *
651
- *
652
- */
653
- readonly country?: string;
654
- /**
655
- * [CustomerGroup](ctp:api:type:CustomerGroup) for which this Price is valid.
656
- *
657
- *
658
- */
659
- readonly customerGroup?: CustomerGroupReference;
660
- /**
661
- * `ProductDistribution` [Channel](ctp:api:type:Channel) for which this Price is valid.
662
- *
663
- *
664
- */
665
- readonly channel?: ChannelReference;
666
- /**
667
- * Date and time from which this Price is valid.
668
- *
669
- *
670
- */
671
- readonly validFrom?: string;
672
- /**
673
- * Date and time until this Price is valid. Prices that are no longer valid are not automatically removed, but they can be [removed](ctp:api:type:ProductRemovePriceAction) if necessary.
674
- *
675
- *
676
- */
677
- readonly validUntil?: string;
678
- /**
679
- * Is set if a [ProductDiscount](ctp:api:type:ProductDiscount) has been applied.
680
- * If set, the API uses the DiscountedPrice value for the [Line Item Price selection](ctp:api:type:LineItemPriceSelection).
681
- * When a [relative discount](ctp:api:type:ProductDiscountValueRelative) has been applied and the fraction part of the DiscountedPrice `value` is 0.5, the `value` is rounded in favor of the customer with [half-down rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_down).
682
- *
683
- *
684
- */
685
- readonly discounted?: DiscountedPrice;
686
- /**
687
- * Present if different Prices for certain [LineItem](ctp:api:type:LineItem) quantities have been specified.
688
- *
689
- *
690
- */
691
- readonly tiers?: PriceTier[];
692
- /**
693
- * Custom Fields defined for the Price.
694
- *
695
- *
696
- */
697
- readonly custom?: CustomFields;
698
- }
699
- /**
700
- * The draft representation for prices to be embedded into [ProductVariantDrafts](ctp:api:type:ProductVariantDraft) when the [ProductPriceMode](ctp:api:type:ProductPriceModeEnum) is `Embedded`. For the `Standalone` ProductPriceMode use [StandalonePriceDraft](ctp:api:type:StandalonePriceDraft).
701
- */
702
- export interface PriceDraft {
703
- /**
704
- * User-defined identifier for the Price. It must be unique per [ProductVariant](ctp:api:type:ProductVariant).
705
- *
706
- *
707
- */
708
- readonly key?: string;
709
- /**
710
- * Money value of this Price.
711
- *
712
- *
713
- */
714
- readonly value: _Money;
715
- /**
716
- * Set this field if this Price is only valid for the specified country.
717
- *
718
- *
719
- */
720
- readonly country?: string;
721
- /**
722
- * Set this field if this Price is only valid for the referenced [CustomerGroup](ctp:api:type:CustomerGroup).
723
- *
724
- *
725
- */
726
- readonly customerGroup?: CustomerGroupResourceIdentifier;
727
- /**
728
- * Set this field if this Price is only valid for the referenced `ProductDistribution` [Channel](ctp:api:type:Channel).
729
- *
730
- *
731
- */
732
- readonly channel?: ChannelResourceIdentifier;
733
- /**
734
- * Set this field if this Price is only valid from the specified date and time. Must be at least 1 ms earlier than `validUntil`.
735
- *
736
- *
737
- */
738
- readonly validFrom?: string;
739
- /**
740
- * Set this field if this Price is only valid until the specified date and time. Must be at least 1 ms later than `validFrom`. Prices that are no longer valid are not automatically removed, but they can be [removed](ctp:api:type:ProductRemovePriceAction) if necessary.
741
- *
742
- *
743
- */
744
- readonly validUntil?: string;
745
- /**
746
- * Set this field to add a DiscountedPrice from an **external service**.
747
- *
748
- * Otherwise, Composable Commerce sets this field automatically if at least one [ProductDiscount](ctp:api:type:ProductDiscount) applies.
749
- * The DiscountedPrice must reference a ProductDiscount with:
750
- *
751
- * * The `isActive` flag set to `true`.
752
- * * A [ProductDiscountValue](ctp:api:type:ProductDiscountValueExternal) of type `external`.
753
- * * A `predicate` that matches the [ProductVariant](ctp:api:type:ProductVariant) the Price is referenced from.
754
- *
755
- *
756
- */
757
- readonly discounted?: DiscountedPriceDraft;
758
- /**
759
- * Set this field to specify different Prices for certain [LineItem](ctp:api:type:LineItem) quantities.
760
- *
761
- *
762
- */
763
- readonly tiers?: PriceTierDraft[];
764
- /**
765
- * Custom Fields for the Price.
766
- *
767
- *
768
- */
769
- readonly custom?: CustomFieldsDraft;
770
- }
771
- /**
772
- * A Price tier is selected instead of the default Price when a certain quantity of the [ProductVariant](ctp:api:type:ProductVariant) is [added to a Cart](/projects/carts#add-lineitem) and ordered.
773
- * _For example: the Price can be lower if more than 10 items are ordered._
774
- * If no Price tier is found for the Order quantity, the base Price is used.
775
- * A Price tier is applied for the entire quantity of a Product Variant put as [LineItem](/projects/carts#lineitem) in a Cart as soon as the minimum quantity for the Price tier is reached.
776
- * The Price tier is applied per Line Item of the Product Variant. If, for example, the same Product Variant appears in the same Cart as several Line Items, (what can be achieved by different values of a Custom Field on the Line Items) for each Line Item the minimum quantity must be reached to get the Price tier.
777
- *
778
- */
779
- export interface PriceTier {
780
- /**
781
- * Minimum quantity this Price tier is valid for.
782
- *
783
- * The minimum quantity is always greater than or equal to 2. The base Price is interpreted as valid for a minimum quantity equal to 1.
784
- *
785
- *
786
- */
787
- readonly minimumQuantity: number;
788
- /**
789
- * Money value that applies when the `minimumQuantity` is greater than or equal to the [LineItem](ctp:api:type:LineItem) `quantity`.
790
- *
791
- * The `currencyCode` of a Price tier is always the same as the `currencyCode` in the `value` of the related Price.
792
- *
793
- *
794
- */
795
- readonly value: TypedMoney;
796
- }
797
- /**
798
- * Specifies a Price tier that applies when the minimum quantity for the [LineItem](ctp:api:type:LineItem) of a ProductVariant with the related Price is reached in a Cart.
799
- *
800
- */
801
- export interface PriceTierDraft {
802
- /**
803
- * Minimum quantity this Price tier is valid for.
804
- *
805
- * The minimum quantity is always greater than or equal to 2. The base Price is interpreted as valid for a minimum quantity equal to 1.
806
- *
807
- *
808
- */
809
- readonly minimumQuantity: number;
810
- /**
811
- * Money value that applies when the `minimumQuantity` is greater than or equal to the [LineItem](ctp:api:type:LineItem) `quantity`.
812
- *
813
- * The `currencyCode` of a Price tier must be the same as the `currencyCode` in the `value` of the related Price.
814
- *
815
- *
816
- */
817
- readonly value: _Money;
818
- }
819
- export interface QueryPrice {
820
- /**
821
- * Unique identifier of the given Price.
822
- *
823
- *
824
- */
825
- readonly id?: string;
826
- /**
827
- * Money value of the given Price.
828
- *
829
- *
830
- */
831
- readonly value: _Money;
832
- /**
833
- * Country for which the given Price is valid.
834
- *
835
- *
836
- */
837
- readonly country?: string;
838
- /**
839
- * [CustomerGroup](ctp:api:type:CustomerGroup) for which the given Price is valid.
840
- *
841
- *
842
- */
843
- readonly customerGroup?: CustomerGroupReference;
844
- /**
845
- * `ProductDistribution` [Channel](ctp:api:type:Channel) for which the given Price is valid.
846
- *
847
- *
848
- */
849
- readonly channel?: ChannelReference;
850
- /**
851
- * Date from which the given Price is valid.
852
- *
853
- *
854
- */
855
- readonly validFrom?: string;
856
- /**
857
- * Date until which the given Price is valid.
858
- *
859
- *
860
- */
861
- readonly validUntil?: string;
862
- /**
863
- * [DiscountedPrice](ctp:api:type:DiscountedPrice) you specify for the given Price.
864
- *
865
- *
866
- */
867
- readonly discounted?: DiscountedPriceDraft;
868
- /**
869
- * Custom Fields for the Price.
870
- *
871
- *
872
- */
873
- readonly custom?: CustomFields;
874
- /**
875
- * Price tier applied when the minimum quantity for the [LineItem](ctp:api:type:LineItem) of a ProductVariant with the related Price is reached in a Cart.
876
- *
877
- *
878
- */
879
- readonly tiers?: PriceTierDraft[];
880
- }
881
- /**
882
- * A Reference represents a loose reference to another resource in the same Project identified by its `id`. The `typeId` indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like [ChannelReference](ctp:api:type:ChannelReference). A referenced resource can be embedded through [Reference Expansion](/general-concepts#reference-expansion). The expanded reference is the value of an additional `obj` field then.
883
- *
884
- */
885
- export type Reference = AssociateRoleReference | AttributeGroupReference | BusinessUnitReference | CartDiscountReference | CartReference | CategoryReference | ChannelReference | CustomObjectReference | CustomerGroupReference | CustomerReference | DirectDiscountReference | DiscountCodeReference | InventoryEntryReference | OrderEditReference | OrderReference | PaymentReference | ProductDiscountReference | ProductReference | ProductSelectionReference | ProductTypeReference | QuoteReference | QuoteRequestReference | ReviewReference | ShippingMethodReference | ShoppingListReference | StagedQuoteReference | StandalonePriceReference | StateReference | StoreReference | TaxCategoryReference | TypeReference | ZoneReference;
886
- /**
887
- * Type of resource the value should reference. Supported resource type identifiers are:
888
- *
889
- */
890
- export type ReferenceTypeId = 'associate-role' | 'attribute-group' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'direct-discount' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-price' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
891
- /**
892
- * Draft type to create a [Reference](ctp:api:type:Reference) or a [KeyReference](ctp:api:type:KeyReference) to a resource. Provide either the `id` or (wherever supported) the `key` of the resource to reference, but depending on the API endpoint the response returns either a Reference or a KeyReference. For example, the field `parent` of a [CategoryDraft](ctp:api:type:CategoryDraft) takes a ResourceIdentifier for its value while the value of the corresponding field of a [Category](ctp:api:type:Category) is a Reference.
893
- *
894
- * Each resource type has its corresponding ResourceIdentifier, like [ChannelResourceIdentifier](ctp:api:type:ChannelResourceIdentifier).
895
- *
896
- */
897
- export type ResourceIdentifier = AssociateRoleResourceIdentifier | AttributeGroupResourceIdentifier | BusinessUnitResourceIdentifier | CartDiscountResourceIdentifier | CartResourceIdentifier | CategoryResourceIdentifier | ChannelResourceIdentifier | CustomerGroupResourceIdentifier | CustomerResourceIdentifier | DiscountCodeResourceIdentifier | InventoryEntryResourceIdentifier | OrderEditResourceIdentifier | OrderResourceIdentifier | PaymentResourceIdentifier | ProductDiscountResourceIdentifier | ProductResourceIdentifier | ProductSelectionResourceIdentifier | ProductTypeResourceIdentifier | QuoteRequestResourceIdentifier | QuoteResourceIdentifier | ReviewResourceIdentifier | ShippingMethodResourceIdentifier | ShoppingListResourceIdentifier | StagedQuoteResourceIdentifier | StandalonePriceResourceIdentifier | StateResourceIdentifier | StoreResourceIdentifier | TaxCategoryResourceIdentifier | TypeResourceIdentifier | ZoneResourceIdentifier;
898
- /**
899
- * Scoped Price is contained in a [ProductVariant](ctp:api:type:ProductVariant) which is returned in response to a
900
- * [Product Projection Search](ctp:api:type:ProductProjectionSearchFilterScopedPrice) request when [Scoped Price Search](ctp:api:type:ScopedPriceSearch) is used.
901
- *
902
- */
903
- export interface ScopedPrice {
904
- /**
905
- * Platform-generated unique identifier of the Price.
906
- *
907
- *
908
- */
909
- readonly id: string;
910
- /**
911
- * Original value of the Price.
912
- *
913
- *
914
- */
915
- readonly value: TypedMoney;
916
- /**
917
- * If available, either the original price `value` or `discounted` value.
918
- *
919
- *
920
- */
921
- readonly currentValue: TypedMoney;
922
- /**
923
- * Country code of the geographic location.
924
- *
925
- *
926
- */
927
- readonly country?: string;
928
- /**
929
- * Reference to a CustomerGroup.
930
- *
931
- *
932
- */
933
- readonly customerGroup?: CustomerGroupReference;
934
- /**
935
- * Reference to a Channel.
936
- *
937
- *
938
- */
939
- readonly channel?: ChannelReference;
940
- /**
941
- * Date and time from which the Price is valid.
942
- *
943
- *
944
- */
945
- readonly validFrom?: string;
946
- /**
947
- * Date and time until which the Price is valid.
948
- *
949
- *
950
- */
951
- readonly validUntil?: string;
952
- /**
953
- * Is set when a matching [ProductDiscount](ctp:api:type:ProductDiscount) exists. If set, the [Cart](ctp:api:type:Cart) uses the discounted value for the [Cart Price calculation](ctp:api:type:CartAddLineItemAction).
954
- *
955
- * When a [relative Product Discount](ctp:api:type:ProductDiscountValueRelative) is applied and the fractional part of the discounted Price is 0.5, the discounted Price is [rounded half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down) in favor of the Customer.
956
- *
957
- *
958
- */
959
- readonly discounted?: DiscountedPrice;
960
- /**
961
- * Custom Fields for the Price.
962
- *
963
- *
964
- */
965
- readonly custom?: CustomFields;
966
- }
967
- /**
968
- * Base polymorphic read-only Money type which is stored in cent precision or high precision. The actual type is determined by the `type` field.
969
- *
970
- */
971
- export type TypedMoney = CentPrecisionMoney | HighPrecisionMoney;
972
- /**
973
- * Object that stores cent amounts in a specific currency.
974
- *
975
- */
976
- export interface CentPrecisionMoney {
977
- readonly type: 'centPrecision';
978
- /**
979
- * Amount in the smallest indivisible unit of a currency, such as:
980
- *
981
- * * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
982
- * * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
983
- *
984
- *
985
- */
986
- readonly centAmount: number;
987
- /**
988
- * Currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
989
- *
990
- *
991
- */
992
- readonly currencyCode: string;
993
- /**
994
- * The number of default fraction digits for the given currency, like `2` for EUR or `0` for JPY.
995
- *
996
- *
997
- */
998
- readonly fractionDigits: number;
999
- }
1000
- /**
1001
- * Money object that stores an amount of a fraction of the smallest indivisible unit of the specified currency.
1002
- */
1003
- export interface HighPrecisionMoney {
1004
- readonly type: 'highPrecision';
1005
- /**
1006
- * Amount in the smallest indivisible unit of a currency, such as:
1007
- *
1008
- * * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
1009
- * * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
1010
- *
1011
- *
1012
- */
1013
- readonly centAmount: number;
1014
- /**
1015
- * Currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
1016
- *
1017
- *
1018
- */
1019
- readonly currencyCode: string;
1020
- /**
1021
- * Number of digits after the decimal separator, greater than the default number of fraction digits for a currency.
1022
- *
1023
- *
1024
- */
1025
- readonly fractionDigits: number;
1026
- /**
1027
- * Amount in 1 / (10 ^ `fractionDigits`) of a currency.
1028
- *
1029
- *
1030
- */
1031
- readonly preciseAmount: number;
1032
- }
1033
- export type TypedMoneyDraft = CentPrecisionMoneyDraft | HighPrecisionMoneyDraft;
1034
- /**
1035
- * This draft type is the alternative to [Money](ctp:api:type:Money).
1036
- *
1037
- */
1038
- export interface CentPrecisionMoneyDraft {
1039
- readonly type: 'centPrecision';
1040
- /**
1041
- * Amount in the smallest indivisible unit of a currency, such as:
1042
- *
1043
- * * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
1044
- * * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
1045
- *
1046
- *
1047
- */
1048
- readonly centAmount: number;
1049
- /**
1050
- * Currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
1051
- *
1052
- *
1053
- */
1054
- readonly currencyCode: string;
1055
- /**
1056
- * This field is optional for cent precision. If provided, it must be equal to the default number of fraction digits for the specified currency.
1057
- *
1058
- *
1059
- */
1060
- readonly fractionDigits?: number;
1061
- }
1062
- /**
1063
- * Money draft object to store an amount of a fraction of the smallest indivisible unit of the specified currency.
1064
- */
1065
- export interface HighPrecisionMoneyDraft {
1066
- readonly type: 'highPrecision';
1067
- /**
1068
- * Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:
1069
- *
1070
- * A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.
1071
- *
1072
- * If `centAmount` is not provided, the API calculates the value automatically using the default rounding mode half even.
1073
- *
1074
- *
1075
- */
1076
- readonly centAmount?: number;
1077
- /**
1078
- * Currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
1079
- *
1080
- *
1081
- */
1082
- readonly currencyCode: string;
1083
- /**
1084
- * Number of fraction digits for a specified high precision money. It must be greater than the default number of fraction digits for the specified currency.
1085
- *
1086
- *
1087
- */
1088
- readonly fractionDigits: number;
1089
- /**
1090
- * Amount in 1 / (10 ^ `fractionDigits`) of a currency.
1091
- *
1092
- *
1093
- */
1094
- readonly preciseAmount: number;
1095
- }
1096
- //# sourceMappingURL=common.d.ts.map