@51eat/sdk 2.0.0 → 2.2.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 (584) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/client/Client.d.ts +0 -3
  3. package/dist/cjs/api/resources/business/client/Client.js +14 -19
  4. package/dist/cjs/api/resources/business/resources/commerce/client/Client.d.ts +18 -0
  5. package/dist/cjs/api/resources/business/resources/commerce/client/Client.js +36 -6
  6. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/client/Client.d.ts +30 -0
  7. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/client/Client.js +116 -0
  8. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/exports.d.ts +2 -0
  9. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/exports.js +21 -0
  10. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.js +1 -0
  12. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/types/GetOptionsCatalogResponse.d.ts +4 -0
  13. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/types/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/types/index.js +17 -0
  15. package/dist/cjs/api/resources/business/resources/commerce/resources/index.d.ts +18 -0
  16. package/dist/cjs/api/resources/business/resources/commerce/resources/index.js +19 -1
  17. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.d.ts +340 -1
  18. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.js +1030 -1
  19. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.d.ts +1 -1
  20. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.js +15 -0
  21. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.ts +10 -0
  22. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.ts +10 -0
  23. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.js +3 -0
  24. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.ts +10 -0
  25. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.js +3 -0
  26. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.ts +10 -0
  27. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.js +3 -0
  28. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.ts +10 -0
  29. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.js +3 -0
  30. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.ts +10 -0
  31. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.js +3 -0
  32. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetProductsLocationsRequest.d.ts +10 -0
  33. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetProductsLocationsRequest.js +3 -0
  34. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.ts +10 -0
  35. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.js +3 -0
  36. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.ts +52 -0
  37. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.js +3 -0
  38. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.ts +12 -0
  39. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.js +3 -0
  40. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.d.ts +15 -0
  41. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.js +3 -0
  42. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.ts +68 -0
  43. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.js +38 -0
  44. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.ts +30 -0
  45. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.ts +46 -0
  47. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.js +3 -0
  48. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.ts +52 -0
  49. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.js +3 -0
  50. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.ts +15 -0
  51. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.js +5 -0
  52. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.ts +4 -0
  53. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.js +3 -0
  54. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.ts +4 -0
  55. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.js +3 -0
  56. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.ts +9 -0
  57. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.js +3 -0
  58. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.ts +4 -0
  59. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.js +3 -0
  60. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.ts +4 -0
  61. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.js +3 -0
  62. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.ts +4 -0
  63. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.js +3 -0
  64. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.d.ts +4 -0
  65. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.js +3 -0
  66. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.ts +1 -0
  67. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.ts +8 -0
  68. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.js +3 -0
  69. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.ts +15 -0
  70. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.js +3 -0
  71. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.ts +4 -0
  72. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.js +3 -0
  73. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.d.ts +4 -0
  74. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.js +3 -0
  75. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.ts +4 -0
  76. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.js +3 -0
  77. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.ts +4 -0
  78. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.js +3 -0
  79. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.ts +4 -0
  80. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.js +3 -0
  81. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.d.ts +14 -0
  82. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.js +14 -0
  83. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/Client.d.ts +80 -0
  84. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/Client.js +142 -49
  85. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/requests/DeleteProductCategoriesRequest.d.ts +1 -0
  86. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/DeleteProductCategoriesRequest.js +3 -0
  87. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +14 -0
  88. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.js +3 -0
  89. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +14 -0
  90. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.js +3 -0
  91. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.d.ts +3 -0
  92. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.js +2 -0
  93. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/index.d.ts +2 -0
  94. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/index.js +18 -0
  95. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.d.ts +4 -0
  96. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.js +3 -0
  97. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.d.ts +4 -0
  98. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.js +3 -0
  99. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.d.ts +4 -0
  100. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.js +3 -0
  101. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/index.d.ts +3 -0
  102. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/index.js +19 -0
  103. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/Client.d.ts +92 -0
  104. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/Client.js +338 -0
  105. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/index.d.ts +1 -0
  106. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/index.js +17 -0
  107. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.d.ts +13 -0
  108. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.js +3 -0
  109. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.d.ts +24 -0
  110. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.js +3 -0
  111. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.d.ts +18 -0
  112. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.js +3 -0
  113. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.d.ts +14 -0
  114. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.js +3 -0
  115. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/index.d.ts +4 -0
  116. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/index.js +2 -0
  117. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/exports.d.ts +2 -0
  118. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/exports.js +21 -0
  119. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/index.d.ts +2 -0
  120. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/index.js +18 -0
  121. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.d.ts +4 -0
  122. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.js +3 -0
  123. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.d.ts +4 -0
  124. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.js +3 -0
  125. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.d.ts +4 -0
  126. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.js +3 -0
  127. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/index.d.ts +3 -0
  128. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/index.js +19 -0
  129. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.d.ts +114 -0
  130. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.js +401 -0
  131. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.d.ts +1 -0
  132. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.js +17 -0
  133. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.ts +10 -0
  134. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.js +3 -0
  135. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.ts +10 -0
  136. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.js +3 -0
  137. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.ts +12 -0
  138. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.js +3 -0
  139. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.ts +49 -0
  140. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.js +17 -0
  141. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.ts +36 -0
  142. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.js +17 -0
  143. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.d.ts +5 -0
  144. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.js +7 -0
  145. package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.d.ts +2 -0
  146. package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.js +21 -0
  147. package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.d.ts +2 -0
  148. package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.js +18 -0
  149. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.ts +8 -0
  150. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.js +3 -0
  151. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.ts +8 -0
  152. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.js +3 -0
  153. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.ts +44 -0
  154. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.js +3 -0
  155. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.ts +8 -0
  156. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.js +3 -0
  157. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.d.ts +4 -0
  158. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.js +20 -0
  159. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.d.ts +104 -0
  160. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.js +380 -0
  161. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.d.ts +1 -0
  162. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.js +17 -0
  163. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.ts +12 -0
  164. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.js +3 -0
  165. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.ts +12 -0
  166. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.js +3 -0
  167. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.ts +9 -0
  168. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.js +3 -0
  169. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.ts +3 -0
  170. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.js +2 -0
  171. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.d.ts +2 -0
  172. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.js +21 -0
  173. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.d.ts +2 -0
  174. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.js +18 -0
  175. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.ts +4 -0
  176. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.js +3 -0
  177. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.ts +4 -0
  178. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.js +3 -0
  179. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.ts +4 -0
  180. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.js +3 -0
  181. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.ts +4 -0
  182. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.js +3 -0
  183. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.ts +4 -0
  184. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.js +3 -0
  185. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.d.ts +5 -0
  186. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.js +21 -0
  187. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.d.ts +163 -0
  188. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.js +537 -0
  189. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.d.ts +1 -0
  190. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.js +17 -0
  191. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.ts +13 -0
  192. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.js +3 -0
  193. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.ts +13 -0
  194. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.js +3 -0
  195. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.ts +13 -0
  196. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.js +3 -0
  197. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.ts +10 -0
  198. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.js +3 -0
  199. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.ts +16 -0
  200. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.js +3 -0
  201. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.ts +54 -0
  202. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.js +17 -0
  203. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.ts +46 -0
  204. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
  205. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.ts +7 -0
  206. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.js +7 -0
  207. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.d.ts +2 -0
  208. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.js +21 -0
  209. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.d.ts +2 -0
  210. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.js +18 -0
  211. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.ts +4 -0
  212. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.js +3 -0
  213. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.ts +8 -0
  214. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.js +3 -0
  215. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.ts +6 -0
  216. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.js +3 -0
  217. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.ts +4 -0
  218. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.js +3 -0
  219. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.ts +4 -0
  220. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.js +3 -0
  221. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.ts +8 -0
  222. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.js +3 -0
  223. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.d.ts +6 -0
  224. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.js +22 -0
  225. package/dist/cjs/api/resources/business/resources/index.d.ts +0 -2
  226. package/dist/cjs/api/resources/business/resources/index.js +1 -3
  227. package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.d.ts +9 -5
  228. package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.js +9 -5
  229. package/dist/cjs/api/types/BusinessCommerceLocation.d.ts +37 -3
  230. package/dist/cjs/api/types/BusinessEvent.d.ts +2 -0
  231. package/dist/cjs/api/types/BusinessLocation.d.ts +29 -0
  232. package/dist/cjs/api/types/BusinessLocation.js +11 -0
  233. package/dist/cjs/api/types/BusinessLocationDetails.d.ts +36 -0
  234. package/dist/cjs/api/types/BusinessLocationDetails.js +11 -0
  235. package/dist/cjs/api/types/BusinessLocationHourException.d.ts +14 -0
  236. package/dist/cjs/api/types/BusinessLocationHourException.js +3 -0
  237. package/dist/cjs/api/types/BusinessLocationOpeningHours.d.ts +17 -0
  238. package/dist/cjs/api/types/BusinessLocationOpeningHours.js +3 -0
  239. package/dist/cjs/api/types/BusinessLocationPickup.d.ts +25 -0
  240. package/dist/cjs/api/types/BusinessLocationPickup.js +14 -0
  241. package/dist/cjs/api/types/BusinessOpeningHourSlot.d.ts +10 -0
  242. package/dist/cjs/api/types/BusinessOpeningHourSlot.js +3 -0
  243. package/dist/cjs/api/types/BusinessPickupSchedule.d.ts +10 -0
  244. package/dist/cjs/api/types/BusinessPickupSchedule.js +3 -0
  245. package/dist/cjs/api/types/BusinessPickupWindow.d.ts +11 -0
  246. package/dist/cjs/api/types/BusinessPickupWindow.js +3 -0
  247. package/dist/cjs/api/types/BusinessSellerTerms.d.ts +10 -0
  248. package/dist/cjs/api/types/BusinessSellerTerms.js +3 -0
  249. package/dist/cjs/api/types/BusinessSelling.d.ts +61 -0
  250. package/dist/cjs/api/types/BusinessSelling.js +16 -0
  251. package/dist/cjs/api/types/Cart.d.ts +1 -1
  252. package/dist/cjs/api/types/CatalogFormOptionsResource.d.ts +87 -0
  253. package/dist/cjs/api/types/CatalogFormOptionsResource.js +17 -0
  254. package/dist/cjs/api/types/CustomerEvent.d.ts +6 -0
  255. package/dist/cjs/api/types/CustomerEventDetail.d.ts +6 -0
  256. package/dist/cjs/api/types/CustomerEventTicketType.d.ts +7 -0
  257. package/dist/cjs/api/types/EventFeedItem.d.ts +6 -0
  258. package/dist/cjs/api/types/ImageResource.d.ts +7 -0
  259. package/dist/cjs/api/types/ImageResource.js +3 -0
  260. package/dist/cjs/api/types/LocationKind.d.ts +12 -0
  261. package/dist/cjs/api/types/LocationKind.js +15 -0
  262. package/dist/cjs/api/types/LocationProductsResource.d.ts +42 -0
  263. package/dist/cjs/api/types/LocationProductsResource.js +19 -0
  264. package/dist/cjs/api/types/ProductCategoryResource.d.ts +4 -0
  265. package/dist/cjs/api/types/ProductResource.d.ts +41 -0
  266. package/dist/cjs/api/types/ProductResource.js +18 -0
  267. package/dist/cjs/api/types/Unit.d.ts +16 -0
  268. package/dist/cjs/api/types/Unit.js +19 -0
  269. package/dist/cjs/api/types/UpdateLocationRequest.d.ts +7 -0
  270. package/dist/cjs/api/types/UpdateLocationRequest.js +3 -0
  271. package/dist/cjs/api/types/VariantInventoryLevelResource.d.ts +9 -0
  272. package/dist/cjs/api/types/VariantInventoryLevelResource.js +3 -0
  273. package/dist/cjs/api/types/VariantResource.d.ts +26 -0
  274. package/dist/cjs/api/types/VariantResource.js +3 -0
  275. package/dist/cjs/api/types/VariantStockLocationResource.d.ts +15 -0
  276. package/dist/cjs/api/types/VariantStockLocationResource.js +11 -0
  277. package/dist/cjs/api/types/index.d.ts +20 -0
  278. package/dist/cjs/api/types/index.js +20 -0
  279. package/dist/cjs/version.d.ts +1 -1
  280. package/dist/cjs/version.js +1 -1
  281. package/dist/esm/BaseClient.mjs +2 -2
  282. package/dist/esm/api/resources/business/client/Client.d.mts +0 -3
  283. package/dist/esm/api/resources/business/client/Client.mjs +0 -5
  284. package/dist/esm/api/resources/business/resources/commerce/client/Client.d.mts +18 -0
  285. package/dist/esm/api/resources/business/resources/commerce/client/Client.mjs +30 -0
  286. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/Client.d.mts +30 -0
  287. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/Client.mjs +79 -0
  288. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/index.d.mts +1 -0
  289. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/index.mjs +1 -0
  290. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/exports.d.mts +2 -0
  291. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/exports.mjs +3 -0
  292. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.d.mts +1 -0
  293. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.mjs +1 -0
  294. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/types/GetOptionsCatalogResponse.d.mts +4 -0
  295. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/types/index.d.mts +1 -0
  296. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/types/index.mjs +1 -0
  297. package/dist/esm/api/resources/business/resources/commerce/resources/index.d.mts +18 -0
  298. package/dist/esm/api/resources/business/resources/commerce/resources/index.mjs +18 -0
  299. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.d.mts +340 -1
  300. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.mjs +1031 -2
  301. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.d.mts +1 -1
  302. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.mjs +1 -1
  303. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.mts +10 -0
  304. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.mts +10 -0
  305. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.mjs +2 -0
  306. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.mts +10 -0
  307. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.mjs +2 -0
  308. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.mts +10 -0
  309. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.mjs +2 -0
  310. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.mts +10 -0
  311. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.mjs +2 -0
  312. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.mts +10 -0
  313. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.mjs +2 -0
  314. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetProductsLocationsRequest.d.mts +10 -0
  315. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetProductsLocationsRequest.mjs +2 -0
  316. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.mts +10 -0
  317. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.mjs +2 -0
  318. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.mts +52 -0
  319. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.mjs +2 -0
  320. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.mts +12 -0
  321. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.mjs +2 -0
  322. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.d.mts +15 -0
  323. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.mjs +2 -0
  324. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.mts +68 -0
  325. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.mjs +35 -0
  326. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.mts +30 -0
  327. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.mjs +2 -0
  328. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.mts +46 -0
  329. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.mjs +2 -0
  330. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.mts +52 -0
  331. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.mjs +2 -0
  332. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.mts +15 -0
  333. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.mjs +1 -0
  334. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.mts +4 -0
  335. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.mjs +2 -0
  336. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.mts +4 -0
  337. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.mjs +2 -0
  338. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.mts +9 -0
  339. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.mjs +2 -0
  340. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.mts +4 -0
  341. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.mjs +2 -0
  342. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.mts +4 -0
  343. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.mjs +2 -0
  344. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.mts +4 -0
  345. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.mjs +2 -0
  346. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.d.mts +4 -0
  347. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.mjs +2 -0
  348. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.mts +1 -0
  349. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.mts +8 -0
  350. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.mjs +2 -0
  351. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.mts +15 -0
  352. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.mjs +2 -0
  353. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.mts +4 -0
  354. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.mjs +2 -0
  355. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.d.mts +4 -0
  356. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.mjs +2 -0
  357. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.mts +4 -0
  358. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.mjs +2 -0
  359. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.mts +4 -0
  360. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.mjs +2 -0
  361. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.mts +4 -0
  362. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.mjs +2 -0
  363. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.d.mts +14 -0
  364. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.mjs +14 -0
  365. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/Client.d.mts +80 -0
  366. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/Client.mjs +142 -49
  367. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/requests/DeleteProductCategoriesRequest.d.mts +1 -0
  368. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/DeleteProductCategoriesRequest.mjs +2 -0
  369. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +14 -0
  370. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.mjs +2 -0
  371. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +14 -0
  372. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.mjs +2 -0
  373. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.d.mts +3 -0
  374. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.mjs +1 -0
  375. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/index.d.mts +2 -0
  376. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/index.mjs +2 -0
  377. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.d.mts +4 -0
  378. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.mjs +2 -0
  379. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.d.mts +4 -0
  380. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.mjs +2 -0
  381. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.d.mts +4 -0
  382. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.mjs +2 -0
  383. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/index.d.mts +3 -0
  384. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/index.mjs +3 -0
  385. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/Client.d.mts +92 -0
  386. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/Client.mjs +301 -0
  387. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/index.d.mts +1 -0
  388. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/index.mjs +1 -0
  389. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.d.mts +13 -0
  390. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.mjs +2 -0
  391. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.d.mts +24 -0
  392. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.mjs +2 -0
  393. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.d.mts +18 -0
  394. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.mjs +2 -0
  395. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.d.mts +14 -0
  396. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.mjs +2 -0
  397. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/index.d.mts +4 -0
  398. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/index.mjs +1 -0
  399. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/exports.d.mts +2 -0
  400. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/exports.mjs +3 -0
  401. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/index.d.mts +2 -0
  402. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/index.mjs +2 -0
  403. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.d.mts +4 -0
  404. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.mjs +2 -0
  405. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.d.mts +4 -0
  406. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.mjs +2 -0
  407. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.d.mts +4 -0
  408. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.mjs +2 -0
  409. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/index.d.mts +3 -0
  410. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/index.mjs +3 -0
  411. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.d.mts +114 -0
  412. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.mjs +364 -0
  413. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.d.mts +1 -0
  414. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.mjs +1 -0
  415. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.mts +10 -0
  416. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.mjs +2 -0
  417. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.mts +10 -0
  418. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.mjs +2 -0
  419. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.mts +12 -0
  420. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.mjs +2 -0
  421. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.mts +49 -0
  422. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.mjs +14 -0
  423. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.mts +36 -0
  424. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.mjs +14 -0
  425. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.d.mts +5 -0
  426. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.mjs +2 -0
  427. package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.d.mts +2 -0
  428. package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.mjs +3 -0
  429. package/dist/esm/api/resources/business/resources/commerce/resources/products/index.d.mts +2 -0
  430. package/dist/esm/api/resources/business/resources/commerce/resources/products/index.mjs +2 -0
  431. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.mts +8 -0
  432. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.mjs +2 -0
  433. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.mts +8 -0
  434. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.mjs +2 -0
  435. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.mts +44 -0
  436. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.mjs +2 -0
  437. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.mts +8 -0
  438. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.mjs +2 -0
  439. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.d.mts +4 -0
  440. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.mjs +4 -0
  441. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.d.mts +104 -0
  442. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.mjs +343 -0
  443. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.d.mts +1 -0
  444. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.mjs +1 -0
  445. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.mts +12 -0
  446. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.mjs +2 -0
  447. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.mts +12 -0
  448. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.mjs +2 -0
  449. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.mts +9 -0
  450. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.mjs +2 -0
  451. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.mts +3 -0
  452. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.mjs +1 -0
  453. package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.d.mts +2 -0
  454. package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.mjs +3 -0
  455. package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.d.mts +2 -0
  456. package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.mjs +2 -0
  457. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.mts +4 -0
  458. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.mjs +2 -0
  459. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.mts +4 -0
  460. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.mjs +2 -0
  461. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.mts +4 -0
  462. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.mjs +2 -0
  463. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.mts +4 -0
  464. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.mjs +2 -0
  465. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.mts +4 -0
  466. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.mjs +2 -0
  467. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.d.mts +5 -0
  468. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.mjs +5 -0
  469. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.d.mts +163 -0
  470. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.mjs +500 -0
  471. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.d.mts +1 -0
  472. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.mjs +1 -0
  473. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.mts +13 -0
  474. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.mjs +2 -0
  475. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.mts +13 -0
  476. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.mjs +2 -0
  477. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.mts +13 -0
  478. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.mjs +2 -0
  479. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.mts +10 -0
  480. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.mjs +2 -0
  481. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.mts +16 -0
  482. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.mjs +2 -0
  483. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.mts +54 -0
  484. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
  485. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.mts +46 -0
  486. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
  487. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.mts +7 -0
  488. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.mjs +2 -0
  489. package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.d.mts +2 -0
  490. package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.mjs +3 -0
  491. package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.d.mts +2 -0
  492. package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.mjs +2 -0
  493. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.mts +4 -0
  494. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.mjs +2 -0
  495. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.mts +8 -0
  496. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.mjs +2 -0
  497. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.mts +6 -0
  498. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.mjs +2 -0
  499. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.mts +4 -0
  500. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.mjs +2 -0
  501. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.mts +4 -0
  502. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.mjs +2 -0
  503. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.mts +8 -0
  504. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.mjs +2 -0
  505. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.d.mts +6 -0
  506. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.mjs +6 -0
  507. package/dist/esm/api/resources/business/resources/index.d.mts +0 -2
  508. package/dist/esm/api/resources/business/resources/index.mjs +0 -2
  509. package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.d.mts +9 -5
  510. package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.mjs +9 -5
  511. package/dist/esm/api/types/BusinessCommerceLocation.d.mts +37 -3
  512. package/dist/esm/api/types/BusinessEvent.d.mts +2 -0
  513. package/dist/esm/api/types/BusinessLocation.d.mts +29 -0
  514. package/dist/esm/api/types/BusinessLocation.mjs +8 -0
  515. package/dist/esm/api/types/BusinessLocationDetails.d.mts +36 -0
  516. package/dist/esm/api/types/BusinessLocationDetails.mjs +8 -0
  517. package/dist/esm/api/types/BusinessLocationHourException.d.mts +14 -0
  518. package/dist/esm/api/types/BusinessLocationHourException.mjs +2 -0
  519. package/dist/esm/api/types/BusinessLocationOpeningHours.d.mts +17 -0
  520. package/dist/esm/api/types/BusinessLocationOpeningHours.mjs +2 -0
  521. package/dist/esm/api/types/BusinessLocationPickup.d.mts +25 -0
  522. package/dist/esm/api/types/BusinessLocationPickup.mjs +11 -0
  523. package/dist/esm/api/types/BusinessOpeningHourSlot.d.mts +10 -0
  524. package/dist/esm/api/types/BusinessOpeningHourSlot.mjs +2 -0
  525. package/dist/esm/api/types/BusinessPickupSchedule.d.mts +10 -0
  526. package/dist/esm/api/types/BusinessPickupSchedule.mjs +2 -0
  527. package/dist/esm/api/types/BusinessPickupWindow.d.mts +11 -0
  528. package/dist/esm/api/types/BusinessPickupWindow.mjs +2 -0
  529. package/dist/esm/api/types/BusinessSellerTerms.d.mts +10 -0
  530. package/dist/esm/api/types/BusinessSellerTerms.mjs +2 -0
  531. package/dist/esm/api/types/BusinessSelling.d.mts +61 -0
  532. package/dist/esm/api/types/BusinessSelling.mjs +13 -0
  533. package/dist/esm/api/types/Cart.d.mts +1 -1
  534. package/dist/esm/api/types/CatalogFormOptionsResource.d.mts +87 -0
  535. package/dist/esm/api/types/CatalogFormOptionsResource.mjs +14 -0
  536. package/dist/esm/api/types/CustomerEvent.d.mts +6 -0
  537. package/dist/esm/api/types/CustomerEventDetail.d.mts +6 -0
  538. package/dist/esm/api/types/CustomerEventTicketType.d.mts +7 -0
  539. package/dist/esm/api/types/EventFeedItem.d.mts +6 -0
  540. package/dist/esm/api/types/ImageResource.d.mts +7 -0
  541. package/dist/esm/api/types/ImageResource.mjs +2 -0
  542. package/dist/esm/api/types/LocationKind.d.mts +12 -0
  543. package/dist/esm/api/types/LocationKind.mjs +12 -0
  544. package/dist/esm/api/types/LocationProductsResource.d.mts +42 -0
  545. package/dist/esm/api/types/LocationProductsResource.mjs +16 -0
  546. package/dist/esm/api/types/ProductCategoryResource.d.mts +4 -0
  547. package/dist/esm/api/types/ProductResource.d.mts +41 -0
  548. package/dist/esm/api/types/ProductResource.mjs +15 -0
  549. package/dist/esm/api/types/Unit.d.mts +16 -0
  550. package/dist/esm/api/types/Unit.mjs +16 -0
  551. package/dist/esm/api/types/UpdateLocationRequest.d.mts +7 -0
  552. package/dist/esm/api/types/UpdateLocationRequest.mjs +2 -0
  553. package/dist/esm/api/types/VariantInventoryLevelResource.d.mts +9 -0
  554. package/dist/esm/api/types/VariantInventoryLevelResource.mjs +2 -0
  555. package/dist/esm/api/types/VariantResource.d.mts +26 -0
  556. package/dist/esm/api/types/VariantResource.mjs +2 -0
  557. package/dist/esm/api/types/VariantStockLocationResource.d.mts +15 -0
  558. package/dist/esm/api/types/VariantStockLocationResource.mjs +8 -0
  559. package/dist/esm/api/types/index.d.mts +20 -0
  560. package/dist/esm/api/types/index.mjs +20 -0
  561. package/dist/esm/version.d.mts +1 -1
  562. package/dist/esm/version.mjs +1 -1
  563. package/package.json +67 -12
  564. package/reference.md +2688 -155
  565. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +0 -51
  566. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.ts +0 -9
  567. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.d.ts +0 -2
  568. package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +0 -51
  569. package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.mts +0 -9
  570. package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.d.mts +0 -2
  571. /package/dist/{esm/api/resources/business/resources/productCategories/client/requests/index.mjs → cjs/api/resources/business/resources/commerce/resources/catalog/client/index.d.ts} +0 -0
  572. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests → commerce/resources/catalog/client}/index.js +0 -0
  573. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/DeleteProductCategoriesRequest.js → commerce/resources/catalog/types/GetOptionsCatalogResponse.js} +0 -0
  574. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoriesRequest.js → commerce/resources/locations/client/requests/ArchiveLocationsRequest.js} +0 -0
  575. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.d.ts +0 -0
  576. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.js +0 -0
  577. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.d.ts +0 -0
  578. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.js +0 -0
  579. /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/DeleteProductCategoriesRequest.mjs → commerce/resources/catalog/types/GetOptionsCatalogResponse.mjs} +0 -0
  580. /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoriesRequest.mjs → commerce/resources/locations/client/requests/ArchiveLocationsRequest.mjs} +0 -0
  581. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.d.mts +0 -0
  582. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.mjs +0 -0
  583. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.d.mts +0 -0
  584. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.mjs +0 -0
package/reference.md CHANGED
@@ -4848,11 +4848,25 @@ await client.business.temporaryLocations.delete({
4848
4848
  </dl>
4849
4849
  </details>
4850
4850
 
4851
- ## Business ProductCategories
4852
- <details><summary><code>client.business.productCategories.<a href="/src/api/resources/business/resources/productCategories/client/Client.ts">list</a>() -> void</code></summary>
4851
+ ## Business Auth Tokens
4852
+ <details><summary><code>client.business.auth.tokens.<a href="/src/api/resources/business/resources/auth/resources/tokens/client/Client.ts">list</a>() -> FiveOneEat.ListTokensResponse</code></summary>
4853
+ <dl>
4854
+ <dd>
4855
+
4856
+ #### 📝 Description
4857
+
4858
+ <dl>
4859
+ <dd>
4860
+
4853
4861
  <dl>
4854
4862
  <dd>
4855
4863
 
4864
+ Retrieve a list of all API tokens for the authenticated business user.
4865
+ </dd>
4866
+ </dl>
4867
+ </dd>
4868
+ </dl>
4869
+
4856
4870
  #### 🔌 Usage
4857
4871
 
4858
4872
  <dl>
@@ -4862,7 +4876,7 @@ await client.business.temporaryLocations.delete({
4862
4876
  <dd>
4863
4877
 
4864
4878
  ```typescript
4865
- await client.business.productCategories.list();
4879
+ await client.business.auth.tokens.list();
4866
4880
 
4867
4881
  ```
4868
4882
  </dd>
@@ -4878,7 +4892,7 @@ await client.business.productCategories.list();
4878
4892
  <dl>
4879
4893
  <dd>
4880
4894
 
4881
- **requestOptions:** `ProductCategoriesClient.RequestOptions`
4895
+ **requestOptions:** `TokensClient.RequestOptions`
4882
4896
 
4883
4897
  </dd>
4884
4898
  </dl>
@@ -4890,10 +4904,24 @@ await client.business.productCategories.list();
4890
4904
  </dl>
4891
4905
  </details>
4892
4906
 
4893
- <details><summary><code>client.business.productCategories.<a href="/src/api/resources/business/resources/productCategories/client/Client.ts">create</a>() -> void</code></summary>
4907
+ <details><summary><code>client.business.auth.tokens.<a href="/src/api/resources/business/resources/auth/resources/tokens/client/Client.ts">revoke</a>({ ...params }) -> FiveOneEat.RevokeTokensResponse</code></summary>
4908
+ <dl>
4909
+ <dd>
4910
+
4911
+ #### 📝 Description
4912
+
4913
+ <dl>
4914
+ <dd>
4915
+
4894
4916
  <dl>
4895
4917
  <dd>
4896
4918
 
4919
+ Delete a specific API token by its ID.
4920
+ </dd>
4921
+ </dl>
4922
+ </dd>
4923
+ </dl>
4924
+
4897
4925
  #### 🔌 Usage
4898
4926
 
4899
4927
  <dl>
@@ -4903,7 +4931,9 @@ await client.business.productCategories.list();
4903
4931
  <dd>
4904
4932
 
4905
4933
  ```typescript
4906
- await client.business.productCategories.create();
4934
+ await client.business.auth.tokens.revoke({
4935
+ token: "token"
4936
+ });
4907
4937
 
4908
4938
  ```
4909
4939
  </dd>
@@ -4919,7 +4949,15 @@ await client.business.productCategories.create();
4919
4949
  <dl>
4920
4950
  <dd>
4921
4951
 
4922
- **requestOptions:** `ProductCategoriesClient.RequestOptions`
4952
+ **request:** `FiveOneEat.business.auth.RevokeTokensRequest`
4953
+
4954
+ </dd>
4955
+ </dl>
4956
+
4957
+ <dl>
4958
+ <dd>
4959
+
4960
+ **requestOptions:** `TokensClient.RequestOptions`
4923
4961
 
4924
4962
  </dd>
4925
4963
  </dl>
@@ -4931,7 +4969,8 @@ await client.business.productCategories.create();
4931
4969
  </dl>
4932
4970
  </details>
4933
4971
 
4934
- <details><summary><code>client.business.productCategories.<a href="/src/api/resources/business/resources/productCategories/client/Client.ts">update</a>({ ...params }) -> void</code></summary>
4972
+ ## Business Bulletins Comments
4973
+ <details><summary><code>client.business.bulletins.comments.<a href="/src/api/resources/business/resources/bulletins/resources/comments/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListCommentsResponse</code></summary>
4935
4974
  <dl>
4936
4975
  <dd>
4937
4976
 
@@ -4944,8 +4983,8 @@ await client.business.productCategories.create();
4944
4983
  <dd>
4945
4984
 
4946
4985
  ```typescript
4947
- await client.business.productCategories.update({
4948
- productCategory: "productCategory"
4986
+ await client.business.bulletins.comments.list({
4987
+ bulletin: "bulletin"
4949
4988
  });
4950
4989
 
4951
4990
  ```
@@ -4962,7 +5001,7 @@ await client.business.productCategories.update({
4962
5001
  <dl>
4963
5002
  <dd>
4964
5003
 
4965
- **request:** `FiveOneEat.business.UpdateProductCategoriesRequest`
5004
+ **request:** `FiveOneEat.business.bulletins.ListCommentsRequest`
4966
5005
 
4967
5006
  </dd>
4968
5007
  </dl>
@@ -4970,7 +5009,7 @@ await client.business.productCategories.update({
4970
5009
  <dl>
4971
5010
  <dd>
4972
5011
 
4973
- **requestOptions:** `ProductCategoriesClient.RequestOptions`
5012
+ **requestOptions:** `CommentsClient.RequestOptions`
4974
5013
 
4975
5014
  </dd>
4976
5015
  </dl>
@@ -4982,10 +5021,25 @@ await client.business.productCategories.update({
4982
5021
  </dl>
4983
5022
  </details>
4984
5023
 
4985
- <details><summary><code>client.business.productCategories.<a href="/src/api/resources/business/resources/productCategories/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
5024
+ <details><summary><code>client.business.bulletins.comments.<a href="/src/api/resources/business/resources/bulletins/resources/comments/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateCommentsResponse</code></summary>
5025
+ <dl>
5026
+ <dd>
5027
+
5028
+ #### 📝 Description
5029
+
5030
+ <dl>
5031
+ <dd>
5032
+
4986
5033
  <dl>
4987
5034
  <dd>
4988
5035
 
5036
+ Omit `parent_id` for a top-level comment. Set `parent_id` to a top-level
5037
+ comment's id to post a one-level reply (replies to replies are not allowed).
5038
+ </dd>
5039
+ </dl>
5040
+ </dd>
5041
+ </dl>
5042
+
4989
5043
  #### 🔌 Usage
4990
5044
 
4991
5045
  <dl>
@@ -4995,8 +5049,9 @@ await client.business.productCategories.update({
4995
5049
  <dd>
4996
5050
 
4997
5051
  ```typescript
4998
- await client.business.productCategories.delete({
4999
- productCategory: "productCategory"
5052
+ await client.business.bulletins.comments.create({
5053
+ bulletin: "bulletin",
5054
+ body: "body"
5000
5055
  });
5001
5056
 
5002
5057
  ```
@@ -5013,7 +5068,7 @@ await client.business.productCategories.delete({
5013
5068
  <dl>
5014
5069
  <dd>
5015
5070
 
5016
- **request:** `FiveOneEat.business.DeleteProductCategoriesRequest`
5071
+ **request:** `FiveOneEat.business.bulletins.StoreBulletinCommentRequest`
5017
5072
 
5018
5073
  </dd>
5019
5074
  </dl>
@@ -5021,7 +5076,7 @@ await client.business.productCategories.delete({
5021
5076
  <dl>
5022
5077
  <dd>
5023
5078
 
5024
- **requestOptions:** `ProductCategoriesClient.RequestOptions`
5079
+ **requestOptions:** `CommentsClient.RequestOptions`
5025
5080
 
5026
5081
  </dd>
5027
5082
  </dl>
@@ -5033,8 +5088,8 @@ await client.business.productCategories.delete({
5033
5088
  </dl>
5034
5089
  </details>
5035
5090
 
5036
- ## Business Auth Tokens
5037
- <details><summary><code>client.business.auth.tokens.<a href="/src/api/resources/business/resources/auth/resources/tokens/client/Client.ts">list</a>() -> FiveOneEat.ListTokensResponse</code></summary>
5091
+ ## Business Commerce ProductCategories
5092
+ <details><summary><code>client.business.commerce.productCategories.<a href="/src/api/resources/business/resources/commerce/resources/productCategories/client/Client.ts">list</a>() -> FiveOneEat.ListProductCategoriesResponse</code></summary>
5038
5093
  <dl>
5039
5094
  <dd>
5040
5095
 
@@ -5046,7 +5101,8 @@ await client.business.productCategories.delete({
5046
5101
  <dl>
5047
5102
  <dd>
5048
5103
 
5049
- Retrieve a list of all API tokens for the authenticated business user.
5104
+ In their order, flat (a child names its parent in `parent_id`), each
5105
+ with `products_count`, the products filed directly under it.
5050
5106
  </dd>
5051
5107
  </dl>
5052
5108
  </dd>
@@ -5061,7 +5117,7 @@ Retrieve a list of all API tokens for the authenticated business user.
5061
5117
  <dd>
5062
5118
 
5063
5119
  ```typescript
5064
- await client.business.auth.tokens.list();
5120
+ await client.business.commerce.productCategories.list();
5065
5121
 
5066
5122
  ```
5067
5123
  </dd>
@@ -5077,7 +5133,7 @@ await client.business.auth.tokens.list();
5077
5133
  <dl>
5078
5134
  <dd>
5079
5135
 
5080
- **requestOptions:** `TokensClient.RequestOptions`
5136
+ **requestOptions:** `ProductCategoriesClient.RequestOptions`
5081
5137
 
5082
5138
  </dd>
5083
5139
  </dl>
@@ -5089,7 +5145,7 @@ await client.business.auth.tokens.list();
5089
5145
  </dl>
5090
5146
  </details>
5091
5147
 
5092
- <details><summary><code>client.business.auth.tokens.<a href="/src/api/resources/business/resources/auth/resources/tokens/client/Client.ts">revoke</a>({ ...params }) -> FiveOneEat.RevokeTokensResponse</code></summary>
5148
+ <details><summary><code>client.business.commerce.productCategories.<a href="/src/api/resources/business/resources/commerce/resources/productCategories/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateProductCategoriesResponse</code></summary>
5093
5149
  <dl>
5094
5150
  <dd>
5095
5151
 
@@ -5101,7 +5157,7 @@ await client.business.auth.tokens.list();
5101
5157
  <dl>
5102
5158
  <dd>
5103
5159
 
5104
- Delete a specific API token by its ID.
5160
+ Answers 201.
5105
5161
  </dd>
5106
5162
  </dl>
5107
5163
  </dd>
@@ -5116,8 +5172,9 @@ Delete a specific API token by its ID.
5116
5172
  <dd>
5117
5173
 
5118
5174
  ```typescript
5119
- await client.business.auth.tokens.revoke({
5120
- token: "token"
5175
+ await client.business.commerce.productCategories.create({
5176
+ "Idempotency-Key": "Idempotency-Key",
5177
+ name: "name"
5121
5178
  });
5122
5179
 
5123
5180
  ```
@@ -5134,7 +5191,7 @@ await client.business.auth.tokens.revoke({
5134
5191
  <dl>
5135
5192
  <dd>
5136
5193
 
5137
- **request:** `FiveOneEat.business.auth.RevokeTokensRequest`
5194
+ **request:** `FiveOneEat.business.commerce.StoreProductCategoryRequest`
5138
5195
 
5139
5196
  </dd>
5140
5197
  </dl>
@@ -5142,7 +5199,7 @@ await client.business.auth.tokens.revoke({
5142
5199
  <dl>
5143
5200
  <dd>
5144
5201
 
5145
- **requestOptions:** `TokensClient.RequestOptions`
5202
+ **requestOptions:** `ProductCategoriesClient.RequestOptions`
5146
5203
 
5147
5204
  </dd>
5148
5205
  </dl>
@@ -5154,8 +5211,7 @@ await client.business.auth.tokens.revoke({
5154
5211
  </dl>
5155
5212
  </details>
5156
5213
 
5157
- ## Business Bulletins Comments
5158
- <details><summary><code>client.business.bulletins.comments.<a href="/src/api/resources/business/resources/bulletins/resources/comments/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListCommentsResponse</code></summary>
5214
+ <details><summary><code>client.business.commerce.productCategories.<a href="/src/api/resources/business/resources/commerce/resources/productCategories/client/Client.ts">update</a>({ ...params }) -> FiveOneEat.UpdateProductCategoriesResponse</code></summary>
5159
5215
  <dl>
5160
5216
  <dd>
5161
5217
 
@@ -5168,8 +5224,9 @@ await client.business.auth.tokens.revoke({
5168
5224
  <dd>
5169
5225
 
5170
5226
  ```typescript
5171
- await client.business.bulletins.comments.list({
5172
- bulletin: "bulletin"
5227
+ await client.business.commerce.productCategories.update({
5228
+ productCategory: "productCategory",
5229
+ name: "name"
5173
5230
  });
5174
5231
 
5175
5232
  ```
@@ -5186,7 +5243,7 @@ await client.business.bulletins.comments.list({
5186
5243
  <dl>
5187
5244
  <dd>
5188
5245
 
5189
- **request:** `FiveOneEat.business.bulletins.ListCommentsRequest`
5246
+ **request:** `FiveOneEat.business.commerce.UpdateProductCategoryRequest`
5190
5247
 
5191
5248
  </dd>
5192
5249
  </dl>
@@ -5194,7 +5251,7 @@ await client.business.bulletins.comments.list({
5194
5251
  <dl>
5195
5252
  <dd>
5196
5253
 
5197
- **requestOptions:** `CommentsClient.RequestOptions`
5254
+ **requestOptions:** `ProductCategoriesClient.RequestOptions`
5198
5255
 
5199
5256
  </dd>
5200
5257
  </dl>
@@ -5206,7 +5263,7 @@ await client.business.bulletins.comments.list({
5206
5263
  </dl>
5207
5264
  </details>
5208
5265
 
5209
- <details><summary><code>client.business.bulletins.comments.<a href="/src/api/resources/business/resources/bulletins/resources/comments/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateCommentsResponse</code></summary>
5266
+ <details><summary><code>client.business.commerce.productCategories.<a href="/src/api/resources/business/resources/commerce/resources/productCategories/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
5210
5267
  <dl>
5211
5268
  <dd>
5212
5269
 
@@ -5218,8 +5275,8 @@ await client.business.bulletins.comments.list({
5218
5275
  <dl>
5219
5276
  <dd>
5220
5277
 
5221
- Omit `parent_id` for a top-level comment. Set `parent_id` to a top-level
5222
- comment's id to post a one-level reply (replies to replies are not allowed).
5278
+ Its children become top-level categories and its products, and theirs,
5279
+ are left uncategorised.
5223
5280
  </dd>
5224
5281
  </dl>
5225
5282
  </dd>
@@ -5234,9 +5291,8 @@ comment's id to post a one-level reply (replies to replies are not allowed).
5234
5291
  <dd>
5235
5292
 
5236
5293
  ```typescript
5237
- await client.business.bulletins.comments.create({
5238
- bulletin: "bulletin",
5239
- body: "body"
5294
+ await client.business.commerce.productCategories.delete({
5295
+ productCategory: "productCategory"
5240
5296
  });
5241
5297
 
5242
5298
  ```
@@ -5253,7 +5309,7 @@ await client.business.bulletins.comments.create({
5253
5309
  <dl>
5254
5310
  <dd>
5255
5311
 
5256
- **request:** `FiveOneEat.business.bulletins.StoreBulletinCommentRequest`
5312
+ **request:** `FiveOneEat.business.commerce.DeleteProductCategoriesRequest`
5257
5313
 
5258
5314
  </dd>
5259
5315
  </dl>
@@ -5261,7 +5317,7 @@ await client.business.bulletins.comments.create({
5261
5317
  <dl>
5262
5318
  <dd>
5263
5319
 
5264
- **requestOptions:** `CommentsClient.RequestOptions`
5320
+ **requestOptions:** `ProductCategoriesClient.RequestOptions`
5265
5321
 
5266
5322
  </dd>
5267
5323
  </dl>
@@ -5288,7 +5344,9 @@ await client.business.bulletins.comments.create({
5288
5344
 
5289
5345
  Every store and stand of the business, main store first and then by
5290
5346
  name, including ones switched off, blocked by the plan or archived.
5291
- For the order list's store filter and the stock screen.
5347
+ Each carries why it can't sell yet (`blocker`) and its open pickup
5348
+ orders still to come (`affected_orders`), the same as the web's list.
5349
+ `can_add_store` says whether the plan has room for another store.
5292
5350
  </dd>
5293
5351
  </dl>
5294
5352
  </dd>
@@ -5331,8 +5389,7 @@ await client.business.commerce.locations.list();
5331
5389
  </dl>
5332
5390
  </details>
5333
5391
 
5334
- ## Business Commerce Orders
5335
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListOrdersResponse</code></summary>
5392
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateLocationsResponse</code></summary>
5336
5393
  <dl>
5337
5394
  <dd>
5338
5395
 
@@ -5344,10 +5401,8 @@ await client.business.commerce.locations.list();
5344
5401
  <dl>
5345
5402
  <dd>
5346
5403
 
5347
- The business's orders, newest first, 25 to a page: `open`, `completed`,
5348
- `cancelled` and `no_show` ones. An order still waiting on its payment,
5349
- or whose payment never went through, isn't listed. Each order carries
5350
- its store, the copy made when it was placed.
5404
+ Answers 201. `kind` is `store` or `stand`. A Free plan has one store,
5405
+ the main one: a second is refused with a form error on `kind`.
5351
5406
  </dd>
5352
5407
  </dl>
5353
5408
  </dd>
@@ -5362,7 +5417,17 @@ its store, the copy made when it was placed.
5362
5417
  <dd>
5363
5418
 
5364
5419
  ```typescript
5365
- await client.business.commerce.orders.list();
5420
+ await client.business.commerce.locations.create({
5421
+ "Idempotency-Key": "Idempotency-Key",
5422
+ kind: "store",
5423
+ name: "name",
5424
+ address: "address",
5425
+ city: "city",
5426
+ state: "state",
5427
+ zipcode: "zipcode",
5428
+ country: "country",
5429
+ timezone: "America/Adak"
5430
+ });
5366
5431
 
5367
5432
  ```
5368
5433
  </dd>
@@ -5378,7 +5443,7 @@ await client.business.commerce.orders.list();
5378
5443
  <dl>
5379
5444
  <dd>
5380
5445
 
5381
- **request:** `FiveOneEat.business.commerce.ListOrdersRequest`
5446
+ **request:** `FiveOneEat.business.commerce.StoreLocationRequest`
5382
5447
 
5383
5448
  </dd>
5384
5449
  </dl>
@@ -5386,7 +5451,7 @@ await client.business.commerce.orders.list();
5386
5451
  <dl>
5387
5452
  <dd>
5388
5453
 
5389
- **requestOptions:** `OrdersClient.RequestOptions`
5454
+ **requestOptions:** `LocationsClient.RequestOptions`
5390
5455
 
5391
5456
  </dd>
5392
5457
  </dl>
@@ -5398,7 +5463,7 @@ await client.business.commerce.orders.list();
5398
5463
  </dl>
5399
5464
  </details>
5400
5465
 
5401
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">get</a>({ ...params }) -> FiveOneEat.GetOrdersResponse</code></summary>
5466
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">getProducts</a>({ ...params }) -> FiveOneEat.GetProductsLocationsResponse</code></summary>
5402
5467
  <dl>
5403
5468
  <dd>
5404
5469
 
@@ -5410,9 +5475,10 @@ await client.business.commerce.orders.list();
5410
5475
  <dl>
5411
5476
  <dd>
5412
5477
 
5413
- With its store, buyer, lines (ordered, handed over, cancelled, still
5414
- open and refunded), payments and event log. A 404 for an order that
5415
- isn't listed.
5478
+ Every product of the business, by name, and the IDs of those sold here
5479
+ (`selected`): online, for pickup, at a store; in person at a stand
5480
+ (`channel`). `location.sells_this_way` is false while the location
5481
+ doesn't sell that way at all, and nothing can be added there.
5416
5482
  </dd>
5417
5483
  </dl>
5418
5484
  </dd>
@@ -5427,8 +5493,8 @@ isn't listed.
5427
5493
  <dd>
5428
5494
 
5429
5495
  ```typescript
5430
- await client.business.commerce.orders.get({
5431
- order: "order"
5496
+ await client.business.commerce.locations.getProducts({
5497
+ location: "location"
5432
5498
  });
5433
5499
 
5434
5500
  ```
@@ -5445,7 +5511,7 @@ await client.business.commerce.orders.get({
5445
5511
  <dl>
5446
5512
  <dd>
5447
5513
 
5448
- **request:** `FiveOneEat.business.commerce.GetOrdersRequest`
5514
+ **request:** `FiveOneEat.business.commerce.GetProductsLocationsRequest`
5449
5515
 
5450
5516
  </dd>
5451
5517
  </dl>
@@ -5453,7 +5519,7 @@ await client.business.commerce.orders.get({
5453
5519
  <dl>
5454
5520
  <dd>
5455
5521
 
5456
- **requestOptions:** `OrdersClient.RequestOptions`
5522
+ **requestOptions:** `LocationsClient.RequestOptions`
5457
5523
 
5458
5524
  </dd>
5459
5525
  </dl>
@@ -5465,7 +5531,7 @@ await client.business.commerce.orders.get({
5465
5531
  </dl>
5466
5532
  </details>
5467
5533
 
5468
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">markReady</a>({ ...params }) -> FiveOneEat.MarkReadyOrdersResponse</code></summary>
5534
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">setProducts</a>({ ...params }) -> FiveOneEat.SetProductsLocationsResponse</code></summary>
5469
5535
  <dl>
5470
5536
  <dd>
5471
5537
 
@@ -5477,7 +5543,14 @@ await client.business.commerce.orders.get({
5477
5543
  <dl>
5478
5544
  <dd>
5479
5545
 
5480
- Only an open pickup order that isn't ready yet. The buyer is told.
5546
+ Sells exactly `product_ids` here, the way the location sells; an empty
5547
+ list takes them all off. Each product's other stores and stands stay
5548
+ as they are. Saving replaces what is there, so a retry is safe.
5549
+ `active: true` switches the location on before adding, `active: false`
5550
+ off after taking off. A product added where the location can't sell it
5551
+ (switched off, archived, or not taking pickup orders or selling in
5552
+ person) is refused with a form error on `availability`, and one that
5553
+ isn't the business's on `product_ids.*`.
5481
5554
  </dd>
5482
5555
  </dl>
5483
5556
  </dd>
@@ -5492,9 +5565,9 @@ Only an open pickup order that isn't ready yet. The buyer is told.
5492
5565
  <dd>
5493
5566
 
5494
5567
  ```typescript
5495
- await client.business.commerce.orders.markReady({
5496
- "Idempotency-Key": "Idempotency-Key",
5497
- order: "order"
5568
+ await client.business.commerce.locations.setProducts({
5569
+ location: "location",
5570
+ product_ids: ["product_ids"]
5498
5571
  });
5499
5572
 
5500
5573
  ```
@@ -5511,7 +5584,7 @@ await client.business.commerce.orders.markReady({
5511
5584
  <dl>
5512
5585
  <dd>
5513
5586
 
5514
- **request:** `FiveOneEat.business.commerce.MarkReadyOrdersRequest`
5587
+ **request:** `FiveOneEat.business.commerce.SetLocationProductsRequest`
5515
5588
 
5516
5589
  </dd>
5517
5590
  </dl>
@@ -5519,7 +5592,7 @@ await client.business.commerce.orders.markReady({
5519
5592
  <dl>
5520
5593
  <dd>
5521
5594
 
5522
- **requestOptions:** `OrdersClient.RequestOptions`
5595
+ **requestOptions:** `LocationsClient.RequestOptions`
5523
5596
 
5524
5597
  </dd>
5525
5598
  </dl>
@@ -5531,26 +5604,10 @@ await client.business.commerce.orders.markReady({
5531
5604
  </dl>
5532
5605
  </details>
5533
5606
 
5534
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">markPickedUp</a>({ ...params }) -> FiveOneEat.MarkPickedUpOrdersResponse</code></summary>
5535
- <dl>
5536
- <dd>
5537
-
5538
- #### 📝 Description
5539
-
5540
- <dl>
5541
- <dd>
5542
-
5607
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">get</a>({ ...params }) -> FiveOneEat.GetLocationsResponse</code></summary>
5543
5608
  <dl>
5544
5609
  <dd>
5545
5610
 
5546
- Send `lines` (the quantity collected, by order line ID) for a partial
5547
- pickup, or nothing for everything still open. The order is `completed`
5548
- once nothing is left.
5549
- </dd>
5550
- </dl>
5551
- </dd>
5552
- </dl>
5553
-
5554
5611
  #### 🔌 Usage
5555
5612
 
5556
5613
  <dl>
@@ -5560,9 +5617,8 @@ once nothing is left.
5560
5617
  <dd>
5561
5618
 
5562
5619
  ```typescript
5563
- await client.business.commerce.orders.markPickedUp({
5564
- "Idempotency-Key": "Idempotency-Key",
5565
- order: "order"
5620
+ await client.business.commerce.locations.get({
5621
+ location: "location"
5566
5622
  });
5567
5623
 
5568
5624
  ```
@@ -5579,7 +5635,7 @@ await client.business.commerce.orders.markPickedUp({
5579
5635
  <dl>
5580
5636
  <dd>
5581
5637
 
5582
- **request:** `FiveOneEat.business.commerce.PickUpOrderRequest`
5638
+ **request:** `FiveOneEat.business.commerce.GetLocationsRequest`
5583
5639
 
5584
5640
  </dd>
5585
5641
  </dl>
@@ -5587,7 +5643,7 @@ await client.business.commerce.orders.markPickedUp({
5587
5643
  <dl>
5588
5644
  <dd>
5589
5645
 
5590
- **requestOptions:** `OrdersClient.RequestOptions`
5646
+ **requestOptions:** `LocationsClient.RequestOptions`
5591
5647
 
5592
5648
  </dd>
5593
5649
  </dl>
@@ -5599,7 +5655,7 @@ await client.business.commerce.orders.markPickedUp({
5599
5655
  </dl>
5600
5656
  </details>
5601
5657
 
5602
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">cancel</a>({ ...params }) -> FiveOneEat.CancelOrdersResponse</code></summary>
5658
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">update</a>({ ...params }) -> FiveOneEat.UpdateLocationsResponse</code></summary>
5603
5659
  <dl>
5604
5660
  <dd>
5605
5661
 
@@ -5611,10 +5667,13 @@ await client.business.commerce.orders.markPickedUp({
5611
5667
  <dl>
5612
5668
  <dd>
5613
5669
 
5614
- Send `lines` to cancel some, or nothing for everything still open. A
5615
- line already handed over can't be cancelled. Paid lines are refunded
5616
- in the same step, with 51Eat's fee share back, unless the buyer has
5617
- disputed the payment.
5670
+ The main store saves only its `name`: its address, timezone and phone
5671
+ are the business's, and any of those sent for it are ignored. An extra
5672
+ store or a stand needs its address, city, state, zipcode and timezone
5673
+ as well (422 on the one missing), and keeps every field it is sent
5674
+ as its new value, so send the whole form.
5675
+ `CommerceRequestBodiesDocumentedTest` keeps the fields below in step
5676
+ with `StoreLocationRequest::detailRules()`.
5618
5677
  </dd>
5619
5678
  </dl>
5620
5679
  </dd>
@@ -5629,10 +5688,9 @@ disputed the payment.
5629
5688
  <dd>
5630
5689
 
5631
5690
  ```typescript
5632
- await client.business.commerce.orders.cancel({
5633
- "Idempotency-Key": "Idempotency-Key",
5634
- order: "order",
5635
- reason: "business_cancelled"
5691
+ await client.business.commerce.locations.update({
5692
+ location: "location",
5693
+ name: "name"
5636
5694
  });
5637
5695
 
5638
5696
  ```
@@ -5649,7 +5707,7 @@ await client.business.commerce.orders.cancel({
5649
5707
  <dl>
5650
5708
  <dd>
5651
5709
 
5652
- **request:** `FiveOneEat.business.commerce.CancelOrderLinesRequest`
5710
+ **request:** `FiveOneEat.business.commerce.UpdateLocationsRequest`
5653
5711
 
5654
5712
  </dd>
5655
5713
  </dl>
@@ -5657,7 +5715,7 @@ await client.business.commerce.orders.cancel({
5657
5715
  <dl>
5658
5716
  <dd>
5659
5717
 
5660
- **requestOptions:** `OrdersClient.RequestOptions`
5718
+ **requestOptions:** `LocationsClient.RequestOptions`
5661
5719
 
5662
5720
  </dd>
5663
5721
  </dl>
@@ -5669,7 +5727,7 @@ await client.business.commerce.orders.cancel({
5669
5727
  </dl>
5670
5728
  </details>
5671
5729
 
5672
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">markNoShow</a>({ ...params }) -> FiveOneEat.MarkNoShowOrdersResponse</code></summary>
5730
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">delete</a>({ ...params }) -> number</code></summary>
5673
5731
  <dl>
5674
5732
  <dd>
5675
5733
 
@@ -5681,9 +5739,8 @@ await client.business.commerce.orders.cancel({
5681
5739
  <dl>
5682
5740
  <dd>
5683
5741
 
5684
- Only once the pickup slot has ended (`pickup.ends_at`). What is still
5685
- open is cancelled and its stock returned. Nothing is refunded: refund
5686
- part or all of it, or keep the payment.
5742
+ Only one that never sold anything and holds no stock: otherwise 409,
5743
+ and it is archived instead. The main store can't be deleted.
5687
5744
  </dd>
5688
5745
  </dl>
5689
5746
  </dd>
@@ -5698,9 +5755,8 @@ part or all of it, or keep the payment.
5698
5755
  <dd>
5699
5756
 
5700
5757
  ```typescript
5701
- await client.business.commerce.orders.markNoShow({
5702
- "Idempotency-Key": "Idempotency-Key",
5703
- order: "order"
5758
+ await client.business.commerce.locations.delete({
5759
+ location: "location"
5704
5760
  });
5705
5761
 
5706
5762
  ```
@@ -5717,7 +5773,7 @@ await client.business.commerce.orders.markNoShow({
5717
5773
  <dl>
5718
5774
  <dd>
5719
5775
 
5720
- **request:** `FiveOneEat.business.commerce.MarkNoShowOrdersRequest`
5776
+ **request:** `FiveOneEat.business.commerce.DeleteLocationsRequest`
5721
5777
 
5722
5778
  </dd>
5723
5779
  </dl>
@@ -5725,7 +5781,7 @@ await client.business.commerce.orders.markNoShow({
5725
5781
  <dl>
5726
5782
  <dd>
5727
5783
 
5728
- **requestOptions:** `OrdersClient.RequestOptions`
5784
+ **requestOptions:** `LocationsClient.RequestOptions`
5729
5785
 
5730
5786
  </dd>
5731
5787
  </dl>
@@ -5737,26 +5793,10 @@ await client.business.commerce.orders.markNoShow({
5737
5793
  </dl>
5738
5794
  </details>
5739
5795
 
5740
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">keepPayment</a>({ ...params }) -> FiveOneEat.KeepPaymentOrdersResponse</code></summary>
5741
- <dl>
5742
- <dd>
5743
-
5744
- #### 📝 Description
5745
-
5796
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">setActive</a>({ ...params }) -> FiveOneEat.SetActiveLocationsResponse</code></summary>
5746
5797
  <dl>
5747
5798
  <dd>
5748
5799
 
5749
- <dl>
5750
- <dd>
5751
-
5752
- The business keeps the money rather than refund it. It's recorded as a
5753
- `payment_kept` event; no money moves, and a refund is still possible
5754
- later. Doing it twice changes nothing.
5755
- </dd>
5756
- </dl>
5757
- </dd>
5758
- </dl>
5759
-
5760
5800
  #### 🔌 Usage
5761
5801
 
5762
5802
  <dl>
@@ -5766,9 +5806,9 @@ later. Doing it twice changes nothing.
5766
5806
  <dd>
5767
5807
 
5768
5808
  ```typescript
5769
- await client.business.commerce.orders.keepPayment({
5770
- "Idempotency-Key": "Idempotency-Key",
5771
- order: "order"
5809
+ await client.business.commerce.locations.setActive({
5810
+ location: "location",
5811
+ active: true
5772
5812
  });
5773
5813
 
5774
5814
  ```
@@ -5785,7 +5825,7 @@ await client.business.commerce.orders.keepPayment({
5785
5825
  <dl>
5786
5826
  <dd>
5787
5827
 
5788
- **request:** `FiveOneEat.business.commerce.KeepPaymentOrdersRequest`
5828
+ **request:** `FiveOneEat.business.commerce.SetLocationActiveRequest`
5789
5829
 
5790
5830
  </dd>
5791
5831
  </dl>
@@ -5793,7 +5833,7 @@ await client.business.commerce.orders.keepPayment({
5793
5833
  <dl>
5794
5834
  <dd>
5795
5835
 
5796
- **requestOptions:** `OrdersClient.RequestOptions`
5836
+ **requestOptions:** `LocationsClient.RequestOptions`
5797
5837
 
5798
5838
  </dd>
5799
5839
  </dl>
@@ -5805,7 +5845,7 @@ await client.business.commerce.orders.keepPayment({
5805
5845
  </dl>
5806
5846
  </details>
5807
5847
 
5808
- <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">refund</a>({ ...params }) -> FiveOneEat.RefundOrdersResponse</code></summary>
5848
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">archive</a>({ ...params }) -> FiveOneEat.ArchiveLocationsResponse</code></summary>
5809
5849
  <dl>
5810
5850
  <dd>
5811
5851
 
@@ -5817,14 +5857,9 @@ await client.business.commerce.orders.keepPayment({
5817
5857
  <dl>
5818
5858
  <dd>
5819
5859
 
5820
- A quantity of each line to refund, why, and per line a store to put the
5821
- returned units back on hand. For `oversell`, `business_cancelled`,
5822
- `unavailable` and `platform_error` the buyer gets 51Eat's fee share
5823
- back too; for `changed_mind`, `no_show` and `other` 51Eat keeps it.
5824
- Nothing can be refunded while the payment is disputed.
5825
-
5826
- A retry with the same `Idempotency-Key` returns the refund already
5827
- made, with the same status, and never refunds twice.
5860
+ Hides it and stops it taking orders, keeping its history and freeing
5861
+ its name and, for a store, its place in the plan's limit. The main
5862
+ store can't be archived.
5828
5863
  </dd>
5829
5864
  </dl>
5830
5865
  </dd>
@@ -5839,14 +5874,8 @@ made, with the same status, and never refunds twice.
5839
5874
  <dd>
5840
5875
 
5841
5876
  ```typescript
5842
- await client.business.commerce.orders.refund({
5843
- "Idempotency-Key": "Idempotency-Key",
5844
- order: "order",
5845
- lines: [{
5846
- order_item_id: "order_item_id",
5847
- quantity: "quantity"
5848
- }],
5849
- reason: "oversell"
5877
+ await client.business.commerce.locations.archive({
5878
+ location: "location"
5850
5879
  });
5851
5880
 
5852
5881
  ```
@@ -5863,7 +5892,7 @@ await client.business.commerce.orders.refund({
5863
5892
  <dl>
5864
5893
  <dd>
5865
5894
 
5866
- **request:** `FiveOneEat.business.commerce.RefundOrderLinesRequest`
5895
+ **request:** `FiveOneEat.business.commerce.ArchiveLocationsRequest`
5867
5896
 
5868
5897
  </dd>
5869
5898
  </dl>
@@ -5871,7 +5900,2507 @@ await client.business.commerce.orders.refund({
5871
5900
  <dl>
5872
5901
  <dd>
5873
5902
 
5874
- **requestOptions:** `OrdersClient.RequestOptions`
5903
+ **requestOptions:** `LocationsClient.RequestOptions`
5904
+
5905
+ </dd>
5906
+ </dl>
5907
+ </dd>
5908
+ </dl>
5909
+
5910
+
5911
+ </dd>
5912
+ </dl>
5913
+ </details>
5914
+
5915
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">flyer</a>({ ...params }) -> FiveOneEat.FlyerLocationsResponse</code></summary>
5916
+ <dl>
5917
+ <dd>
5918
+
5919
+ #### 📝 Description
5920
+
5921
+ <dl>
5922
+ <dd>
5923
+
5924
+ <dl>
5925
+ <dd>
5926
+
5927
+ A download link that works for a few minutes. `url` is null while the
5928
+ flyer is still being generated. Only a stand has a flyer.
5929
+ </dd>
5930
+ </dl>
5931
+ </dd>
5932
+ </dl>
5933
+
5934
+ #### 🔌 Usage
5935
+
5936
+ <dl>
5937
+ <dd>
5938
+
5939
+ <dl>
5940
+ <dd>
5941
+
5942
+ ```typescript
5943
+ await client.business.commerce.locations.flyer({
5944
+ location: "location"
5945
+ });
5946
+
5947
+ ```
5948
+ </dd>
5949
+ </dl>
5950
+ </dd>
5951
+ </dl>
5952
+
5953
+ #### ⚙️ Parameters
5954
+
5955
+ <dl>
5956
+ <dd>
5957
+
5958
+ <dl>
5959
+ <dd>
5960
+
5961
+ **request:** `FiveOneEat.business.commerce.FlyerLocationsRequest`
5962
+
5963
+ </dd>
5964
+ </dl>
5965
+
5966
+ <dl>
5967
+ <dd>
5968
+
5969
+ **requestOptions:** `LocationsClient.RequestOptions`
5970
+
5971
+ </dd>
5972
+ </dl>
5973
+ </dd>
5974
+ </dl>
5975
+
5976
+
5977
+ </dd>
5978
+ </dl>
5979
+ </details>
5980
+
5981
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">offerMainStoreProducts</a>({ ...params }) -> FiveOneEat.OfferMainStoreProductsLocationsResponse</code></summary>
5982
+ <dl>
5983
+ <dd>
5984
+
5985
+ #### 📝 Description
5986
+
5987
+ <dl>
5988
+ <dd>
5989
+
5990
+ <dl>
5991
+ <dd>
5992
+
5993
+ Offers, for pickup, every product the main store offers; those already
5994
+ offered are left as they are. Only an extra store takes products this
5995
+ way. `added` is how many it added, so a second call adds none.
5996
+ </dd>
5997
+ </dl>
5998
+ </dd>
5999
+ </dl>
6000
+
6001
+ #### 🔌 Usage
6002
+
6003
+ <dl>
6004
+ <dd>
6005
+
6006
+ <dl>
6007
+ <dd>
6008
+
6009
+ ```typescript
6010
+ await client.business.commerce.locations.offerMainStoreProducts({
6011
+ location: "location"
6012
+ });
6013
+
6014
+ ```
6015
+ </dd>
6016
+ </dl>
6017
+ </dd>
6018
+ </dl>
6019
+
6020
+ #### ⚙️ Parameters
6021
+
6022
+ <dl>
6023
+ <dd>
6024
+
6025
+ <dl>
6026
+ <dd>
6027
+
6028
+ **request:** `FiveOneEat.business.commerce.OfferMainStoreProductsLocationsRequest`
6029
+
6030
+ </dd>
6031
+ </dl>
6032
+
6033
+ <dl>
6034
+ <dd>
6035
+
6036
+ **requestOptions:** `LocationsClient.RequestOptions`
6037
+
6038
+ </dd>
6039
+ </dl>
6040
+ </dd>
6041
+ </dl>
6042
+
6043
+
6044
+ </dd>
6045
+ </dl>
6046
+ </details>
6047
+
6048
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">getPickup</a>({ ...params }) -> FiveOneEat.GetPickupLocationsResponse</code></summary>
6049
+ <dl>
6050
+ <dd>
6051
+
6052
+ #### 📝 Description
6053
+
6054
+ <dl>
6055
+ <dd>
6056
+
6057
+ <dl>
6058
+ <dd>
6059
+
6060
+ Its pickup settings, weekly windows with slot capacity and date
6061
+ exceptions, and whether the plan lets it take pickup orders
6062
+ (`can_offer_pickup`: a stand needs Pro).
6063
+ </dd>
6064
+ </dl>
6065
+ </dd>
6066
+ </dl>
6067
+
6068
+ #### 🔌 Usage
6069
+
6070
+ <dl>
6071
+ <dd>
6072
+
6073
+ <dl>
6074
+ <dd>
6075
+
6076
+ ```typescript
6077
+ await client.business.commerce.locations.getPickup({
6078
+ location: "location"
6079
+ });
6080
+
6081
+ ```
6082
+ </dd>
6083
+ </dl>
6084
+ </dd>
6085
+ </dl>
6086
+
6087
+ #### ⚙️ Parameters
6088
+
6089
+ <dl>
6090
+ <dd>
6091
+
6092
+ <dl>
6093
+ <dd>
6094
+
6095
+ **request:** `FiveOneEat.business.commerce.GetPickupLocationsRequest`
6096
+
6097
+ </dd>
6098
+ </dl>
6099
+
6100
+ <dl>
6101
+ <dd>
6102
+
6103
+ **requestOptions:** `LocationsClient.RequestOptions`
6104
+
6105
+ </dd>
6106
+ </dl>
6107
+ </dd>
6108
+ </dl>
6109
+
6110
+
6111
+ </dd>
6112
+ </dl>
6113
+ </details>
6114
+
6115
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">updatePickup</a>({ ...params }) -> FiveOneEat.UpdatePickupLocationsResponse</code></summary>
6116
+ <dl>
6117
+ <dd>
6118
+
6119
+ #### 📝 Description
6120
+
6121
+ <dl>
6122
+ <dd>
6123
+
6124
+ <dl>
6125
+ <dd>
6126
+
6127
+ Replaces the whole schedule. A window never runs past midnight and
6128
+ two windows on a day can't overlap. Turning pickup on at a stand on a
6129
+ Free plan is refused with a form error on `offers_pickup`.
6130
+ </dd>
6131
+ </dl>
6132
+ </dd>
6133
+ </dl>
6134
+
6135
+ #### 🔌 Usage
6136
+
6137
+ <dl>
6138
+ <dd>
6139
+
6140
+ <dl>
6141
+ <dd>
6142
+
6143
+ ```typescript
6144
+ await client.business.commerce.locations.updatePickup({
6145
+ location: "location",
6146
+ offers_pickup: true,
6147
+ preparation_minutes: 1,
6148
+ pickup_slot_minutes: 1,
6149
+ windows: [{
6150
+ day_of_week: 1,
6151
+ opens_at: "opens_at",
6152
+ closes_at: "closes_at"
6153
+ }],
6154
+ exceptions: [{
6155
+ starts_on: "starts_on",
6156
+ is_closed: true
6157
+ }]
6158
+ });
6159
+
6160
+ ```
6161
+ </dd>
6162
+ </dl>
6163
+ </dd>
6164
+ </dl>
6165
+
6166
+ #### ⚙️ Parameters
6167
+
6168
+ <dl>
6169
+ <dd>
6170
+
6171
+ <dl>
6172
+ <dd>
6173
+
6174
+ **request:** `FiveOneEat.business.commerce.UpdatePickupScheduleRequest`
6175
+
6176
+ </dd>
6177
+ </dl>
6178
+
6179
+ <dl>
6180
+ <dd>
6181
+
6182
+ **requestOptions:** `LocationsClient.RequestOptions`
6183
+
6184
+ </dd>
6185
+ </dl>
6186
+ </dd>
6187
+ </dl>
6188
+
6189
+
6190
+ </dd>
6191
+ </dl>
6192
+ </details>
6193
+
6194
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">previewPickupAffectedOrders</a>({ ...params }) -> FiveOneEat.PreviewPickupAffectedOrdersLocationsResponse</code></summary>
6195
+ <dl>
6196
+ <dd>
6197
+
6198
+ #### 📝 Description
6199
+
6200
+ <dl>
6201
+ <dd>
6202
+
6203
+ <dl>
6204
+ <dd>
6205
+
6206
+ Send the schedule you are about to save. The answer lists the open
6207
+ pickup orders it would leave outside its windows, so the owner can
6208
+ contact those buyers or cancel the orders first. It changes nothing,
6209
+ and so, unlike the writes, takes no `Idempotency-Key`.
6210
+ </dd>
6211
+ </dl>
6212
+ </dd>
6213
+ </dl>
6214
+
6215
+ #### 🔌 Usage
6216
+
6217
+ <dl>
6218
+ <dd>
6219
+
6220
+ <dl>
6221
+ <dd>
6222
+
6223
+ ```typescript
6224
+ await client.business.commerce.locations.previewPickupAffectedOrders({
6225
+ location: "location",
6226
+ offers_pickup: true,
6227
+ preparation_minutes: 1,
6228
+ pickup_slot_minutes: 1,
6229
+ windows: [{
6230
+ day_of_week: 1,
6231
+ opens_at: "opens_at",
6232
+ closes_at: "closes_at"
6233
+ }],
6234
+ exceptions: [{
6235
+ starts_on: "starts_on",
6236
+ is_closed: true
6237
+ }]
6238
+ });
6239
+
6240
+ ```
6241
+ </dd>
6242
+ </dl>
6243
+ </dd>
6244
+ </dl>
6245
+
6246
+ #### ⚙️ Parameters
6247
+
6248
+ <dl>
6249
+ <dd>
6250
+
6251
+ <dl>
6252
+ <dd>
6253
+
6254
+ **request:** `FiveOneEat.business.commerce.PreviewPickupScheduleRequest`
6255
+
6256
+ </dd>
6257
+ </dl>
6258
+
6259
+ <dl>
6260
+ <dd>
6261
+
6262
+ **requestOptions:** `LocationsClient.RequestOptions`
6263
+
6264
+ </dd>
6265
+ </dl>
6266
+ </dd>
6267
+ </dl>
6268
+
6269
+
6270
+ </dd>
6271
+ </dl>
6272
+ </details>
6273
+
6274
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">getHours</a>({ ...params }) -> FiveOneEat.GetHoursLocationsResponse</code></summary>
6275
+ <dl>
6276
+ <dd>
6277
+
6278
+ #### 📝 Description
6279
+
6280
+ <dl>
6281
+ <dd>
6282
+
6283
+ <dl>
6284
+ <dd>
6285
+
6286
+ Its weekly slots and exceptions, and whether it is open now. The main
6287
+ store and stands answer 404: the main store's hours are the business
6288
+ hours.
6289
+ </dd>
6290
+ </dl>
6291
+ </dd>
6292
+ </dl>
6293
+
6294
+ #### 🔌 Usage
6295
+
6296
+ <dl>
6297
+ <dd>
6298
+
6299
+ <dl>
6300
+ <dd>
6301
+
6302
+ ```typescript
6303
+ await client.business.commerce.locations.getHours({
6304
+ location: "location"
6305
+ });
6306
+
6307
+ ```
6308
+ </dd>
6309
+ </dl>
6310
+ </dd>
6311
+ </dl>
6312
+
6313
+ #### ⚙️ Parameters
6314
+
6315
+ <dl>
6316
+ <dd>
6317
+
6318
+ <dl>
6319
+ <dd>
6320
+
6321
+ **request:** `FiveOneEat.business.commerce.GetHoursLocationsRequest`
6322
+
6323
+ </dd>
6324
+ </dl>
6325
+
6326
+ <dl>
6327
+ <dd>
6328
+
6329
+ **requestOptions:** `LocationsClient.RequestOptions`
6330
+
6331
+ </dd>
6332
+ </dl>
6333
+ </dd>
6334
+ </dl>
6335
+
6336
+
6337
+ </dd>
6338
+ </dl>
6339
+ </details>
6340
+
6341
+ <details><summary><code>client.business.commerce.locations.<a href="/src/api/resources/business/resources/commerce/resources/locations/client/Client.ts">updateHours</a>({ ...params }) -> FiveOneEat.UpdateHoursLocationsResponse</code></summary>
6342
+ <dl>
6343
+ <dd>
6344
+
6345
+ #### 📝 Description
6346
+
6347
+ <dl>
6348
+ <dd>
6349
+
6350
+ <dl>
6351
+ <dd>
6352
+
6353
+ Replaces the whole schedule, with the business hours' rules: a slot
6354
+ may close after midnight, and two slots on a day can't overlap. Send
6355
+ every slot and exception to keep; none to clear them.
6356
+ </dd>
6357
+ </dl>
6358
+ </dd>
6359
+ </dl>
6360
+
6361
+ #### 🔌 Usage
6362
+
6363
+ <dl>
6364
+ <dd>
6365
+
6366
+ <dl>
6367
+ <dd>
6368
+
6369
+ ```typescript
6370
+ await client.business.commerce.locations.updateHours({
6371
+ location: "location",
6372
+ slots: [{
6373
+ day_of_week: 1,
6374
+ opens_at: "opens_at",
6375
+ closes_at: "closes_at"
6376
+ }],
6377
+ exceptions: [{
6378
+ starts_on: "starts_on",
6379
+ is_closed: true
6380
+ }]
6381
+ });
6382
+
6383
+ ```
6384
+ </dd>
6385
+ </dl>
6386
+ </dd>
6387
+ </dl>
6388
+
6389
+ #### ⚙️ Parameters
6390
+
6391
+ <dl>
6392
+ <dd>
6393
+
6394
+ <dl>
6395
+ <dd>
6396
+
6397
+ **request:** `FiveOneEat.business.commerce.UpdateOpeningHoursRequest`
6398
+
6399
+ </dd>
6400
+ </dl>
6401
+
6402
+ <dl>
6403
+ <dd>
6404
+
6405
+ **requestOptions:** `LocationsClient.RequestOptions`
6406
+
6407
+ </dd>
6408
+ </dl>
6409
+ </dd>
6410
+ </dl>
6411
+
6412
+
6413
+ </dd>
6414
+ </dl>
6415
+ </details>
6416
+
6417
+ ## Business Commerce Orders
6418
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListOrdersResponse</code></summary>
6419
+ <dl>
6420
+ <dd>
6421
+
6422
+ #### 📝 Description
6423
+
6424
+ <dl>
6425
+ <dd>
6426
+
6427
+ <dl>
6428
+ <dd>
6429
+
6430
+ The business's orders, newest first, 25 to a page: `open`, `completed`,
6431
+ `cancelled` and `no_show` ones. An order still waiting on its payment,
6432
+ or whose payment never went through, isn't listed. Each order carries
6433
+ its store, the copy made when it was placed.
6434
+ </dd>
6435
+ </dl>
6436
+ </dd>
6437
+ </dl>
6438
+
6439
+ #### 🔌 Usage
6440
+
6441
+ <dl>
6442
+ <dd>
6443
+
6444
+ <dl>
6445
+ <dd>
6446
+
6447
+ ```typescript
6448
+ await client.business.commerce.orders.list();
6449
+
6450
+ ```
6451
+ </dd>
6452
+ </dl>
6453
+ </dd>
6454
+ </dl>
6455
+
6456
+ #### ⚙️ Parameters
6457
+
6458
+ <dl>
6459
+ <dd>
6460
+
6461
+ <dl>
6462
+ <dd>
6463
+
6464
+ **request:** `FiveOneEat.business.commerce.ListOrdersRequest`
6465
+
6466
+ </dd>
6467
+ </dl>
6468
+
6469
+ <dl>
6470
+ <dd>
6471
+
6472
+ **requestOptions:** `OrdersClient.RequestOptions`
6473
+
6474
+ </dd>
6475
+ </dl>
6476
+ </dd>
6477
+ </dl>
6478
+
6479
+
6480
+ </dd>
6481
+ </dl>
6482
+ </details>
6483
+
6484
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">get</a>({ ...params }) -> FiveOneEat.GetOrdersResponse</code></summary>
6485
+ <dl>
6486
+ <dd>
6487
+
6488
+ #### 📝 Description
6489
+
6490
+ <dl>
6491
+ <dd>
6492
+
6493
+ <dl>
6494
+ <dd>
6495
+
6496
+ With its store, buyer, lines (ordered, handed over, cancelled, still
6497
+ open and refunded), payments and event log. A 404 for an order that
6498
+ isn't listed.
6499
+ </dd>
6500
+ </dl>
6501
+ </dd>
6502
+ </dl>
6503
+
6504
+ #### 🔌 Usage
6505
+
6506
+ <dl>
6507
+ <dd>
6508
+
6509
+ <dl>
6510
+ <dd>
6511
+
6512
+ ```typescript
6513
+ await client.business.commerce.orders.get({
6514
+ order: "order"
6515
+ });
6516
+
6517
+ ```
6518
+ </dd>
6519
+ </dl>
6520
+ </dd>
6521
+ </dl>
6522
+
6523
+ #### ⚙️ Parameters
6524
+
6525
+ <dl>
6526
+ <dd>
6527
+
6528
+ <dl>
6529
+ <dd>
6530
+
6531
+ **request:** `FiveOneEat.business.commerce.GetOrdersRequest`
6532
+
6533
+ </dd>
6534
+ </dl>
6535
+
6536
+ <dl>
6537
+ <dd>
6538
+
6539
+ **requestOptions:** `OrdersClient.RequestOptions`
6540
+
6541
+ </dd>
6542
+ </dl>
6543
+ </dd>
6544
+ </dl>
6545
+
6546
+
6547
+ </dd>
6548
+ </dl>
6549
+ </details>
6550
+
6551
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">markReady</a>({ ...params }) -> FiveOneEat.MarkReadyOrdersResponse</code></summary>
6552
+ <dl>
6553
+ <dd>
6554
+
6555
+ #### 📝 Description
6556
+
6557
+ <dl>
6558
+ <dd>
6559
+
6560
+ <dl>
6561
+ <dd>
6562
+
6563
+ Only an open pickup order that isn't ready yet. The buyer is told.
6564
+ </dd>
6565
+ </dl>
6566
+ </dd>
6567
+ </dl>
6568
+
6569
+ #### 🔌 Usage
6570
+
6571
+ <dl>
6572
+ <dd>
6573
+
6574
+ <dl>
6575
+ <dd>
6576
+
6577
+ ```typescript
6578
+ await client.business.commerce.orders.markReady({
6579
+ "Idempotency-Key": "Idempotency-Key",
6580
+ order: "order"
6581
+ });
6582
+
6583
+ ```
6584
+ </dd>
6585
+ </dl>
6586
+ </dd>
6587
+ </dl>
6588
+
6589
+ #### ⚙️ Parameters
6590
+
6591
+ <dl>
6592
+ <dd>
6593
+
6594
+ <dl>
6595
+ <dd>
6596
+
6597
+ **request:** `FiveOneEat.business.commerce.MarkReadyOrdersRequest`
6598
+
6599
+ </dd>
6600
+ </dl>
6601
+
6602
+ <dl>
6603
+ <dd>
6604
+
6605
+ **requestOptions:** `OrdersClient.RequestOptions`
6606
+
6607
+ </dd>
6608
+ </dl>
6609
+ </dd>
6610
+ </dl>
6611
+
6612
+
6613
+ </dd>
6614
+ </dl>
6615
+ </details>
6616
+
6617
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">markPickedUp</a>({ ...params }) -> FiveOneEat.MarkPickedUpOrdersResponse</code></summary>
6618
+ <dl>
6619
+ <dd>
6620
+
6621
+ #### 📝 Description
6622
+
6623
+ <dl>
6624
+ <dd>
6625
+
6626
+ <dl>
6627
+ <dd>
6628
+
6629
+ Send `lines` (the quantity collected, by order line ID) for a partial
6630
+ pickup, or nothing for everything still open. The order is `completed`
6631
+ once nothing is left.
6632
+ </dd>
6633
+ </dl>
6634
+ </dd>
6635
+ </dl>
6636
+
6637
+ #### 🔌 Usage
6638
+
6639
+ <dl>
6640
+ <dd>
6641
+
6642
+ <dl>
6643
+ <dd>
6644
+
6645
+ ```typescript
6646
+ await client.business.commerce.orders.markPickedUp({
6647
+ "Idempotency-Key": "Idempotency-Key",
6648
+ order: "order"
6649
+ });
6650
+
6651
+ ```
6652
+ </dd>
6653
+ </dl>
6654
+ </dd>
6655
+ </dl>
6656
+
6657
+ #### ⚙️ Parameters
6658
+
6659
+ <dl>
6660
+ <dd>
6661
+
6662
+ <dl>
6663
+ <dd>
6664
+
6665
+ **request:** `FiveOneEat.business.commerce.PickUpOrderRequest`
6666
+
6667
+ </dd>
6668
+ </dl>
6669
+
6670
+ <dl>
6671
+ <dd>
6672
+
6673
+ **requestOptions:** `OrdersClient.RequestOptions`
6674
+
6675
+ </dd>
6676
+ </dl>
6677
+ </dd>
6678
+ </dl>
6679
+
6680
+
6681
+ </dd>
6682
+ </dl>
6683
+ </details>
6684
+
6685
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">cancel</a>({ ...params }) -> FiveOneEat.CancelOrdersResponse</code></summary>
6686
+ <dl>
6687
+ <dd>
6688
+
6689
+ #### 📝 Description
6690
+
6691
+ <dl>
6692
+ <dd>
6693
+
6694
+ <dl>
6695
+ <dd>
6696
+
6697
+ Send `lines` to cancel some, or nothing for everything still open. A
6698
+ line already handed over can't be cancelled. Paid lines are refunded
6699
+ in the same step, with 51Eat's fee share back, unless the buyer has
6700
+ disputed the payment.
6701
+ </dd>
6702
+ </dl>
6703
+ </dd>
6704
+ </dl>
6705
+
6706
+ #### 🔌 Usage
6707
+
6708
+ <dl>
6709
+ <dd>
6710
+
6711
+ <dl>
6712
+ <dd>
6713
+
6714
+ ```typescript
6715
+ await client.business.commerce.orders.cancel({
6716
+ "Idempotency-Key": "Idempotency-Key",
6717
+ order: "order",
6718
+ reason: "business_cancelled"
6719
+ });
6720
+
6721
+ ```
6722
+ </dd>
6723
+ </dl>
6724
+ </dd>
6725
+ </dl>
6726
+
6727
+ #### ⚙️ Parameters
6728
+
6729
+ <dl>
6730
+ <dd>
6731
+
6732
+ <dl>
6733
+ <dd>
6734
+
6735
+ **request:** `FiveOneEat.business.commerce.CancelOrderLinesRequest`
6736
+
6737
+ </dd>
6738
+ </dl>
6739
+
6740
+ <dl>
6741
+ <dd>
6742
+
6743
+ **requestOptions:** `OrdersClient.RequestOptions`
6744
+
6745
+ </dd>
6746
+ </dl>
6747
+ </dd>
6748
+ </dl>
6749
+
6750
+
6751
+ </dd>
6752
+ </dl>
6753
+ </details>
6754
+
6755
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">markNoShow</a>({ ...params }) -> FiveOneEat.MarkNoShowOrdersResponse</code></summary>
6756
+ <dl>
6757
+ <dd>
6758
+
6759
+ #### 📝 Description
6760
+
6761
+ <dl>
6762
+ <dd>
6763
+
6764
+ <dl>
6765
+ <dd>
6766
+
6767
+ Only once the pickup slot has ended (`pickup.ends_at`). What is still
6768
+ open is cancelled and its stock returned. Nothing is refunded: refund
6769
+ part or all of it, or keep the payment.
6770
+ </dd>
6771
+ </dl>
6772
+ </dd>
6773
+ </dl>
6774
+
6775
+ #### 🔌 Usage
6776
+
6777
+ <dl>
6778
+ <dd>
6779
+
6780
+ <dl>
6781
+ <dd>
6782
+
6783
+ ```typescript
6784
+ await client.business.commerce.orders.markNoShow({
6785
+ "Idempotency-Key": "Idempotency-Key",
6786
+ order: "order"
6787
+ });
6788
+
6789
+ ```
6790
+ </dd>
6791
+ </dl>
6792
+ </dd>
6793
+ </dl>
6794
+
6795
+ #### ⚙️ Parameters
6796
+
6797
+ <dl>
6798
+ <dd>
6799
+
6800
+ <dl>
6801
+ <dd>
6802
+
6803
+ **request:** `FiveOneEat.business.commerce.MarkNoShowOrdersRequest`
6804
+
6805
+ </dd>
6806
+ </dl>
6807
+
6808
+ <dl>
6809
+ <dd>
6810
+
6811
+ **requestOptions:** `OrdersClient.RequestOptions`
6812
+
6813
+ </dd>
6814
+ </dl>
6815
+ </dd>
6816
+ </dl>
6817
+
6818
+
6819
+ </dd>
6820
+ </dl>
6821
+ </details>
6822
+
6823
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">keepPayment</a>({ ...params }) -> FiveOneEat.KeepPaymentOrdersResponse</code></summary>
6824
+ <dl>
6825
+ <dd>
6826
+
6827
+ #### 📝 Description
6828
+
6829
+ <dl>
6830
+ <dd>
6831
+
6832
+ <dl>
6833
+ <dd>
6834
+
6835
+ The business keeps the money rather than refund it. It's recorded as a
6836
+ `payment_kept` event; no money moves, and a refund is still possible
6837
+ later. Doing it twice changes nothing.
6838
+ </dd>
6839
+ </dl>
6840
+ </dd>
6841
+ </dl>
6842
+
6843
+ #### 🔌 Usage
6844
+
6845
+ <dl>
6846
+ <dd>
6847
+
6848
+ <dl>
6849
+ <dd>
6850
+
6851
+ ```typescript
6852
+ await client.business.commerce.orders.keepPayment({
6853
+ "Idempotency-Key": "Idempotency-Key",
6854
+ order: "order"
6855
+ });
6856
+
6857
+ ```
6858
+ </dd>
6859
+ </dl>
6860
+ </dd>
6861
+ </dl>
6862
+
6863
+ #### ⚙️ Parameters
6864
+
6865
+ <dl>
6866
+ <dd>
6867
+
6868
+ <dl>
6869
+ <dd>
6870
+
6871
+ **request:** `FiveOneEat.business.commerce.KeepPaymentOrdersRequest`
6872
+
6873
+ </dd>
6874
+ </dl>
6875
+
6876
+ <dl>
6877
+ <dd>
6878
+
6879
+ **requestOptions:** `OrdersClient.RequestOptions`
6880
+
6881
+ </dd>
6882
+ </dl>
6883
+ </dd>
6884
+ </dl>
6885
+
6886
+
6887
+ </dd>
6888
+ </dl>
6889
+ </details>
6890
+
6891
+ <details><summary><code>client.business.commerce.orders.<a href="/src/api/resources/business/resources/commerce/resources/orders/client/Client.ts">refund</a>({ ...params }) -> FiveOneEat.RefundOrdersResponse</code></summary>
6892
+ <dl>
6893
+ <dd>
6894
+
6895
+ #### 📝 Description
6896
+
6897
+ <dl>
6898
+ <dd>
6899
+
6900
+ <dl>
6901
+ <dd>
6902
+
6903
+ A quantity of each line to refund, why, and per line a store to put the
6904
+ returned units back on hand. For `oversell`, `business_cancelled`,
6905
+ `unavailable` and `platform_error` the buyer gets 51Eat's fee share
6906
+ back too; for `changed_mind`, `no_show` and `other` 51Eat keeps it.
6907
+ Nothing can be refunded while the payment is disputed.
6908
+
6909
+ A retry with the same `Idempotency-Key` returns the refund already
6910
+ made, with the same status, and never refunds twice.
6911
+ </dd>
6912
+ </dl>
6913
+ </dd>
6914
+ </dl>
6915
+
6916
+ #### 🔌 Usage
6917
+
6918
+ <dl>
6919
+ <dd>
6920
+
6921
+ <dl>
6922
+ <dd>
6923
+
6924
+ ```typescript
6925
+ await client.business.commerce.orders.refund({
6926
+ "Idempotency-Key": "Idempotency-Key",
6927
+ order: "order",
6928
+ lines: [{
6929
+ order_item_id: "order_item_id",
6930
+ quantity: "quantity"
6931
+ }],
6932
+ reason: "oversell"
6933
+ });
6934
+
6935
+ ```
6936
+ </dd>
6937
+ </dl>
6938
+ </dd>
6939
+ </dl>
6940
+
6941
+ #### ⚙️ Parameters
6942
+
6943
+ <dl>
6944
+ <dd>
6945
+
6946
+ <dl>
6947
+ <dd>
6948
+
6949
+ **request:** `FiveOneEat.business.commerce.RefundOrderLinesRequest`
6950
+
6951
+ </dd>
6952
+ </dl>
6953
+
6954
+ <dl>
6955
+ <dd>
6956
+
6957
+ **requestOptions:** `OrdersClient.RequestOptions`
6958
+
6959
+ </dd>
6960
+ </dl>
6961
+ </dd>
6962
+ </dl>
6963
+
6964
+
6965
+ </dd>
6966
+ </dl>
6967
+ </details>
6968
+
6969
+ ## Business Commerce Products
6970
+ <details><summary><code>client.business.commerce.products.<a href="/src/api/resources/business/resources/commerce/resources/products/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListProductsResponse</code></summary>
6971
+ <dl>
6972
+ <dd>
6973
+
6974
+ #### 📝 Description
6975
+
6976
+ <dl>
6977
+ <dd>
6978
+
6979
+ <dl>
6980
+ <dd>
6981
+
6982
+ Newest first, 20 a page, each with its default option and category.
6983
+ `search` keeps those whose name contains it, any case; `location`
6984
+ those offered at that store or stand, either way of buying (ignored
6985
+ unless it's one of the business's unarchived locations); `category`
6986
+ those filed in that category.
6987
+ </dd>
6988
+ </dl>
6989
+ </dd>
6990
+ </dl>
6991
+
6992
+ #### 🔌 Usage
6993
+
6994
+ <dl>
6995
+ <dd>
6996
+
6997
+ <dl>
6998
+ <dd>
6999
+
7000
+ ```typescript
7001
+ await client.business.commerce.products.list();
7002
+
7003
+ ```
7004
+ </dd>
7005
+ </dl>
7006
+ </dd>
7007
+ </dl>
7008
+
7009
+ #### ⚙️ Parameters
7010
+
7011
+ <dl>
7012
+ <dd>
7013
+
7014
+ <dl>
7015
+ <dd>
7016
+
7017
+ **request:** `FiveOneEat.business.commerce.ListProductsRequest`
7018
+
7019
+ </dd>
7020
+ </dl>
7021
+
7022
+ <dl>
7023
+ <dd>
7024
+
7025
+ **requestOptions:** `ProductsClient.RequestOptions`
7026
+
7027
+ </dd>
7028
+ </dl>
7029
+ </dd>
7030
+ </dl>
7031
+
7032
+
7033
+ </dd>
7034
+ </dl>
7035
+ </details>
7036
+
7037
+ <details><summary><code>client.business.commerce.products.<a href="/src/api/resources/business/resources/commerce/resources/products/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateProductsResponse</code></summary>
7038
+ <dl>
7039
+ <dd>
7040
+
7041
+ #### 📝 Description
7042
+
7043
+ <dl>
7044
+ <dd>
7045
+
7046
+ <dl>
7047
+ <dd>
7048
+
7049
+ Answers 201 with the product as `GET /products/{product}` shows it. It
7050
+ starts with one option, the default: `price` prices it, and `compare_at_price`,
7051
+ `unit`, `quantity_step` and `starting_stock` need a price. Without a
7052
+ price the option starts unpriced. Refused with a form error on
7053
+ `payments` until the business can take payments, and on `is_active`
7054
+ when it would go on sale before 51Eat approves the business to sell.
7055
+ </dd>
7056
+ </dl>
7057
+ </dd>
7058
+ </dl>
7059
+
7060
+ #### 🔌 Usage
7061
+
7062
+ <dl>
7063
+ <dd>
7064
+
7065
+ <dl>
7066
+ <dd>
7067
+
7068
+ ```typescript
7069
+ await client.business.commerce.products.create({
7070
+ "Idempotency-Key": "Idempotency-Key",
7071
+ name: "name",
7072
+ tax_code: "tax_code"
7073
+ });
7074
+
7075
+ ```
7076
+ </dd>
7077
+ </dl>
7078
+ </dd>
7079
+ </dl>
7080
+
7081
+ #### ⚙️ Parameters
7082
+
7083
+ <dl>
7084
+ <dd>
7085
+
7086
+ <dl>
7087
+ <dd>
7088
+
7089
+ **request:** `FiveOneEat.business.commerce.StoreProductRequest`
7090
+
7091
+ </dd>
7092
+ </dl>
7093
+
7094
+ <dl>
7095
+ <dd>
7096
+
7097
+ **requestOptions:** `ProductsClient.RequestOptions`
7098
+
7099
+ </dd>
7100
+ </dl>
7101
+ </dd>
7102
+ </dl>
7103
+
7104
+
7105
+ </dd>
7106
+ </dl>
7107
+ </details>
7108
+
7109
+ <details><summary><code>client.business.commerce.products.<a href="/src/api/resources/business/resources/commerce/resources/products/client/Client.ts">get</a>({ ...params }) -> FiveOneEat.GetProductsResponse</code></summary>
7110
+ <dl>
7111
+ <dd>
7112
+
7113
+ #### 📝 Description
7114
+
7115
+ <dl>
7116
+ <dd>
7117
+
7118
+ <dl>
7119
+ <dd>
7120
+
7121
+ With its unarchived options in order, each with its stock at every
7122
+ location, where it's offered (`availability`), its category, photos
7123
+ and tax code.
7124
+ </dd>
7125
+ </dl>
7126
+ </dd>
7127
+ </dl>
7128
+
7129
+ #### 🔌 Usage
7130
+
7131
+ <dl>
7132
+ <dd>
7133
+
7134
+ <dl>
7135
+ <dd>
7136
+
7137
+ ```typescript
7138
+ await client.business.commerce.products.get({
7139
+ product: "product"
7140
+ });
7141
+
7142
+ ```
7143
+ </dd>
7144
+ </dl>
7145
+ </dd>
7146
+ </dl>
7147
+
7148
+ #### ⚙️ Parameters
7149
+
7150
+ <dl>
7151
+ <dd>
7152
+
7153
+ <dl>
7154
+ <dd>
7155
+
7156
+ **request:** `FiveOneEat.business.commerce.GetProductsRequest`
7157
+
7158
+ </dd>
7159
+ </dl>
7160
+
7161
+ <dl>
7162
+ <dd>
7163
+
7164
+ **requestOptions:** `ProductsClient.RequestOptions`
7165
+
7166
+ </dd>
7167
+ </dl>
7168
+ </dd>
7169
+ </dl>
7170
+
7171
+
7172
+ </dd>
7173
+ </dl>
7174
+ </details>
7175
+
7176
+ <details><summary><code>client.business.commerce.products.<a href="/src/api/resources/business/resources/commerce/resources/products/client/Client.ts">update</a>({ ...params }) -> FiveOneEat.UpdateProductsResponse</code></summary>
7177
+ <dl>
7178
+ <dd>
7179
+
7180
+ #### 📝 Description
7181
+
7182
+ <dl>
7183
+ <dd>
7184
+
7185
+ <dl>
7186
+ <dd>
7187
+
7188
+ Saves its details. `availability`, when sent, replaces where it's
7189
+ offered; left out, that stays as it is.
7190
+ </dd>
7191
+ </dl>
7192
+ </dd>
7193
+ </dl>
7194
+
7195
+ #### 🔌 Usage
7196
+
7197
+ <dl>
7198
+ <dd>
7199
+
7200
+ <dl>
7201
+ <dd>
7202
+
7203
+ ```typescript
7204
+ await client.business.commerce.products.update({
7205
+ product: "product",
7206
+ name: "name",
7207
+ tax_code: "tax_code"
7208
+ });
7209
+
7210
+ ```
7211
+ </dd>
7212
+ </dl>
7213
+ </dd>
7214
+ </dl>
7215
+
7216
+ #### ⚙️ Parameters
7217
+
7218
+ <dl>
7219
+ <dd>
7220
+
7221
+ <dl>
7222
+ <dd>
7223
+
7224
+ **request:** `FiveOneEat.business.commerce.UpdateProductRequest`
7225
+
7226
+ </dd>
7227
+ </dl>
7228
+
7229
+ <dl>
7230
+ <dd>
7231
+
7232
+ **requestOptions:** `ProductsClient.RequestOptions`
7233
+
7234
+ </dd>
7235
+ </dl>
7236
+ </dd>
7237
+ </dl>
7238
+
7239
+
7240
+ </dd>
7241
+ </dl>
7242
+ </details>
7243
+
7244
+ <details><summary><code>client.business.commerce.products.<a href="/src/api/resources/business/resources/commerce/resources/products/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
7245
+ <dl>
7246
+ <dd>
7247
+
7248
+ #### 📝 Description
7249
+
7250
+ <dl>
7251
+ <dd>
7252
+
7253
+ <dl>
7254
+ <dd>
7255
+
7256
+ Archives it, so its orders keep it. It leaves the list and every store
7257
+ and stand.
7258
+ </dd>
7259
+ </dl>
7260
+ </dd>
7261
+ </dl>
7262
+
7263
+ #### 🔌 Usage
7264
+
7265
+ <dl>
7266
+ <dd>
7267
+
7268
+ <dl>
7269
+ <dd>
7270
+
7271
+ ```typescript
7272
+ await client.business.commerce.products.delete({
7273
+ product: "product"
7274
+ });
7275
+
7276
+ ```
7277
+ </dd>
7278
+ </dl>
7279
+ </dd>
7280
+ </dl>
7281
+
7282
+ #### ⚙️ Parameters
7283
+
7284
+ <dl>
7285
+ <dd>
7286
+
7287
+ <dl>
7288
+ <dd>
7289
+
7290
+ **request:** `FiveOneEat.business.commerce.DeleteProductsRequest`
7291
+
7292
+ </dd>
7293
+ </dl>
7294
+
7295
+ <dl>
7296
+ <dd>
7297
+
7298
+ **requestOptions:** `ProductsClient.RequestOptions`
7299
+
7300
+ </dd>
7301
+ </dl>
7302
+ </dd>
7303
+ </dl>
7304
+
7305
+
7306
+ </dd>
7307
+ </dl>
7308
+ </details>
7309
+
7310
+ ## Business Commerce Catalog
7311
+ <details><summary><code>client.business.commerce.catalog.<a href="/src/api/resources/business/resources/commerce/resources/catalog/client/Client.ts">getOptions</a>() -> FiveOneEat.GetOptionsCatalogResponse</code></summary>
7312
+ <dl>
7313
+ <dd>
7314
+
7315
+ #### 📝 Description
7316
+
7317
+ <dl>
7318
+ <dd>
7319
+
7320
+ <dl>
7321
+ <dd>
7322
+
7323
+ The units an option is sold in, the tax codes the business's products
7324
+ may use (a restaurant seller's are food and drink, with
7325
+ `prepared_food_tax_code` as the default; everyone else's are general
7326
+ goods), its categories and unarchived locations, and whether it can
7327
+ sell, take payments and put a product on sale (`readiness`).
7328
+ </dd>
7329
+ </dl>
7330
+ </dd>
7331
+ </dl>
7332
+
7333
+ #### 🔌 Usage
7334
+
7335
+ <dl>
7336
+ <dd>
7337
+
7338
+ <dl>
7339
+ <dd>
7340
+
7341
+ ```typescript
7342
+ await client.business.commerce.catalog.getOptions();
7343
+
7344
+ ```
7345
+ </dd>
7346
+ </dl>
7347
+ </dd>
7348
+ </dl>
7349
+
7350
+ #### ⚙️ Parameters
7351
+
7352
+ <dl>
7353
+ <dd>
7354
+
7355
+ <dl>
7356
+ <dd>
7357
+
7358
+ **requestOptions:** `CatalogClient.RequestOptions`
7359
+
7360
+ </dd>
7361
+ </dl>
7362
+ </dd>
7363
+ </dl>
7364
+
7365
+
7366
+ </dd>
7367
+ </dl>
7368
+ </details>
7369
+
7370
+ ## Business Commerce Variants
7371
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListVariantsResponse</code></summary>
7372
+ <dl>
7373
+ <dd>
7374
+
7375
+ #### 📝 Description
7376
+
7377
+ <dl>
7378
+ <dd>
7379
+
7380
+ <dl>
7381
+ <dd>
7382
+
7383
+ Its unarchived options in their order, each with its stock at every
7384
+ location, as `GET /products/{product}` shows them.
7385
+ </dd>
7386
+ </dl>
7387
+ </dd>
7388
+ </dl>
7389
+
7390
+ #### 🔌 Usage
7391
+
7392
+ <dl>
7393
+ <dd>
7394
+
7395
+ <dl>
7396
+ <dd>
7397
+
7398
+ ```typescript
7399
+ await client.business.commerce.variants.list({
7400
+ product: "product"
7401
+ });
7402
+
7403
+ ```
7404
+ </dd>
7405
+ </dl>
7406
+ </dd>
7407
+ </dl>
7408
+
7409
+ #### ⚙️ Parameters
7410
+
7411
+ <dl>
7412
+ <dd>
7413
+
7414
+ <dl>
7415
+ <dd>
7416
+
7417
+ **request:** `FiveOneEat.business.commerce.ListVariantsRequest`
7418
+
7419
+ </dd>
7420
+ </dl>
7421
+
7422
+ <dl>
7423
+ <dd>
7424
+
7425
+ **requestOptions:** `VariantsClient.RequestOptions`
7426
+
7427
+ </dd>
7428
+ </dl>
7429
+ </dd>
7430
+ </dl>
7431
+
7432
+
7433
+ </dd>
7434
+ </dl>
7435
+ </details>
7436
+
7437
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateVariantsResponse</code></summary>
7438
+ <dl>
7439
+ <dd>
7440
+
7441
+ #### 📝 Description
7442
+
7443
+ <dl>
7444
+ <dd>
7445
+
7446
+ <dl>
7447
+ <dd>
7448
+
7449
+ Answers 201. It counts its stock unless `tracks_inventory` is false,
7450
+ starting from `starting_stock` at the locations that hold stock.
7451
+ </dd>
7452
+ </dl>
7453
+ </dd>
7454
+ </dl>
7455
+
7456
+ #### 🔌 Usage
7457
+
7458
+ <dl>
7459
+ <dd>
7460
+
7461
+ <dl>
7462
+ <dd>
7463
+
7464
+ ```typescript
7465
+ await client.business.commerce.variants.create({
7466
+ "Idempotency-Key": "Idempotency-Key",
7467
+ product: "product",
7468
+ name: "name",
7469
+ price: 1.1,
7470
+ unit: "each",
7471
+ quantity_step: 1
7472
+ });
7473
+
7474
+ ```
7475
+ </dd>
7476
+ </dl>
7477
+ </dd>
7478
+ </dl>
7479
+
7480
+ #### ⚙️ Parameters
7481
+
7482
+ <dl>
7483
+ <dd>
7484
+
7485
+ <dl>
7486
+ <dd>
7487
+
7488
+ **request:** `FiveOneEat.business.commerce.StoreVariantRequest`
7489
+
7490
+ </dd>
7491
+ </dl>
7492
+
7493
+ <dl>
7494
+ <dd>
7495
+
7496
+ **requestOptions:** `VariantsClient.RequestOptions`
7497
+
7498
+ </dd>
7499
+ </dl>
7500
+ </dd>
7501
+ </dl>
7502
+
7503
+
7504
+ </dd>
7505
+ </dl>
7506
+ </details>
7507
+
7508
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">get</a>({ ...params }) -> FiveOneEat.GetVariantsResponse</code></summary>
7509
+ <dl>
7510
+ <dd>
7511
+
7512
+ #### 📝 Description
7513
+
7514
+ <dl>
7515
+ <dd>
7516
+
7517
+ <dl>
7518
+ <dd>
7519
+
7520
+ `stock_locations` is each store and stand that counts stock, the main
7521
+ store first, then stores, then stands, with this option's stock there
7522
+ (`level` is null where it has never been counted). `locked` is true
7523
+ once stock or orders count in its unit, so the unit can't change.
7524
+ </dd>
7525
+ </dl>
7526
+ </dd>
7527
+ </dl>
7528
+
7529
+ #### 🔌 Usage
7530
+
7531
+ <dl>
7532
+ <dd>
7533
+
7534
+ <dl>
7535
+ <dd>
7536
+
7537
+ ```typescript
7538
+ await client.business.commerce.variants.get({
7539
+ product: "product",
7540
+ variant: "variant"
7541
+ });
7542
+
7543
+ ```
7544
+ </dd>
7545
+ </dl>
7546
+ </dd>
7547
+ </dl>
7548
+
7549
+ #### ⚙️ Parameters
7550
+
7551
+ <dl>
7552
+ <dd>
7553
+
7554
+ <dl>
7555
+ <dd>
7556
+
7557
+ **request:** `FiveOneEat.business.commerce.GetVariantsRequest`
7558
+
7559
+ </dd>
7560
+ </dl>
7561
+
7562
+ <dl>
7563
+ <dd>
7564
+
7565
+ **requestOptions:** `VariantsClient.RequestOptions`
7566
+
7567
+ </dd>
7568
+ </dl>
7569
+ </dd>
7570
+ </dl>
7571
+
7572
+
7573
+ </dd>
7574
+ </dl>
7575
+ </details>
7576
+
7577
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">update</a>({ ...params }) -> FiveOneEat.UpdateVariantsResponse</code></summary>
7578
+ <dl>
7579
+ <dd>
7580
+
7581
+ #### 📝 Description
7582
+
7583
+ <dl>
7584
+ <dd>
7585
+
7586
+ <dl>
7587
+ <dd>
7588
+
7589
+ Its unit can't change once stock or orders count in it: a form error
7590
+ on `unit`. Left out, `tracks_inventory` and `allow_backorder` stay as
7591
+ they are.
7592
+ </dd>
7593
+ </dl>
7594
+ </dd>
7595
+ </dl>
7596
+
7597
+ #### 🔌 Usage
7598
+
7599
+ <dl>
7600
+ <dd>
7601
+
7602
+ <dl>
7603
+ <dd>
7604
+
7605
+ ```typescript
7606
+ await client.business.commerce.variants.update({
7607
+ product: "product",
7608
+ variant: "variant",
7609
+ name: "name",
7610
+ price: 1.1,
7611
+ unit: "each",
7612
+ quantity_step: 1
7613
+ });
7614
+
7615
+ ```
7616
+ </dd>
7617
+ </dl>
7618
+ </dd>
7619
+ </dl>
7620
+
7621
+ #### ⚙️ Parameters
7622
+
7623
+ <dl>
7624
+ <dd>
7625
+
7626
+ <dl>
7627
+ <dd>
7628
+
7629
+ **request:** `FiveOneEat.business.commerce.UpdateVariantRequest`
7630
+
7631
+ </dd>
7632
+ </dl>
7633
+
7634
+ <dl>
7635
+ <dd>
7636
+
7637
+ **requestOptions:** `VariantsClient.RequestOptions`
7638
+
7639
+ </dd>
7640
+ </dl>
7641
+ </dd>
7642
+ </dl>
7643
+
7644
+
7645
+ </dd>
7646
+ </dl>
7647
+ </details>
7648
+
7649
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
7650
+ <dl>
7651
+ <dd>
7652
+
7653
+ #### 📝 Description
7654
+
7655
+ <dl>
7656
+ <dd>
7657
+
7658
+ <dl>
7659
+ <dd>
7660
+
7661
+ Only one that isn't the default and has no stock or orders: otherwise
7662
+ a form error on `variant`, and it can only be archived.
7663
+ </dd>
7664
+ </dl>
7665
+ </dd>
7666
+ </dl>
7667
+
7668
+ #### 🔌 Usage
7669
+
7670
+ <dl>
7671
+ <dd>
7672
+
7673
+ <dl>
7674
+ <dd>
7675
+
7676
+ ```typescript
7677
+ await client.business.commerce.variants.delete({
7678
+ product: "product",
7679
+ variant: "variant"
7680
+ });
7681
+
7682
+ ```
7683
+ </dd>
7684
+ </dl>
7685
+ </dd>
7686
+ </dl>
7687
+
7688
+ #### ⚙️ Parameters
7689
+
7690
+ <dl>
7691
+ <dd>
7692
+
7693
+ <dl>
7694
+ <dd>
7695
+
7696
+ **request:** `FiveOneEat.business.commerce.DeleteVariantsRequest`
7697
+
7698
+ </dd>
7699
+ </dl>
7700
+
7701
+ <dl>
7702
+ <dd>
7703
+
7704
+ **requestOptions:** `VariantsClient.RequestOptions`
7705
+
7706
+ </dd>
7707
+ </dl>
7708
+ </dd>
7709
+ </dl>
7710
+
7711
+
7712
+ </dd>
7713
+ </dl>
7714
+ </details>
7715
+
7716
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">setPrice</a>({ ...params }) -> FiveOneEat.SetPriceVariantsResponse</code></summary>
7717
+ <dl>
7718
+ <dd>
7719
+
7720
+ #### 📝 Description
7721
+
7722
+ <dl>
7723
+ <dd>
7724
+
7725
+ <dl>
7726
+ <dd>
7727
+
7728
+ Just its price and "was" price, in dollars and cents.
7729
+ </dd>
7730
+ </dl>
7731
+ </dd>
7732
+ </dl>
7733
+
7734
+ #### 🔌 Usage
7735
+
7736
+ <dl>
7737
+ <dd>
7738
+
7739
+ <dl>
7740
+ <dd>
7741
+
7742
+ ```typescript
7743
+ await client.business.commerce.variants.setPrice({
7744
+ product: "product",
7745
+ variant: "variant",
7746
+ price: 1.1
7747
+ });
7748
+
7749
+ ```
7750
+ </dd>
7751
+ </dl>
7752
+ </dd>
7753
+ </dl>
7754
+
7755
+ #### ⚙️ Parameters
7756
+
7757
+ <dl>
7758
+ <dd>
7759
+
7760
+ <dl>
7761
+ <dd>
7762
+
7763
+ **request:** `FiveOneEat.business.commerce.SetVariantPriceRequest`
7764
+
7765
+ </dd>
7766
+ </dl>
7767
+
7768
+ <dl>
7769
+ <dd>
7770
+
7771
+ **requestOptions:** `VariantsClient.RequestOptions`
7772
+
7773
+ </dd>
7774
+ </dl>
7775
+ </dd>
7776
+ </dl>
7777
+
7778
+
7779
+ </dd>
7780
+ </dl>
7781
+ </details>
7782
+
7783
+ <details><summary><code>client.business.commerce.variants.<a href="/src/api/resources/business/resources/commerce/resources/variants/client/Client.ts">archive</a>({ ...params }) -> FiveOneEat.ArchiveVariantsResponse</code></summary>
7784
+ <dl>
7785
+ <dd>
7786
+
7787
+ #### 📝 Description
7788
+
7789
+ <dl>
7790
+ <dd>
7791
+
7792
+ <dl>
7793
+ <dd>
7794
+
7795
+ Takes it off sale, keeping its stock and order history. When it was
7796
+ the default, the next option becomes the default. The product's last
7797
+ option can't be archived: a form error on `variant`; remove the
7798
+ product instead.
7799
+ </dd>
7800
+ </dl>
7801
+ </dd>
7802
+ </dl>
7803
+
7804
+ #### 🔌 Usage
7805
+
7806
+ <dl>
7807
+ <dd>
7808
+
7809
+ <dl>
7810
+ <dd>
7811
+
7812
+ ```typescript
7813
+ await client.business.commerce.variants.archive({
7814
+ product: "product",
7815
+ variant: "variant"
7816
+ });
7817
+
7818
+ ```
7819
+ </dd>
7820
+ </dl>
7821
+ </dd>
7822
+ </dl>
7823
+
7824
+ #### ⚙️ Parameters
7825
+
7826
+ <dl>
7827
+ <dd>
7828
+
7829
+ <dl>
7830
+ <dd>
7831
+
7832
+ **request:** `FiveOneEat.business.commerce.ArchiveVariantsRequest`
7833
+
7834
+ </dd>
7835
+ </dl>
7836
+
7837
+ <dl>
7838
+ <dd>
7839
+
7840
+ **requestOptions:** `VariantsClient.RequestOptions`
7841
+
7842
+ </dd>
7843
+ </dl>
7844
+ </dd>
7845
+ </dl>
7846
+
7847
+
7848
+ </dd>
7849
+ </dl>
7850
+ </details>
7851
+
7852
+ ## Business Commerce ProductImages
7853
+ <details><summary><code>client.business.commerce.productImages.<a href="/src/api/resources/business/resources/commerce/resources/productImages/client/Client.ts">upload</a>({ ...params }) -> FiveOneEat.UploadProductImagesResponse</code></summary>
7854
+ <dl>
7855
+ <dd>
7856
+
7857
+ #### 📝 Description
7858
+
7859
+ <dl>
7860
+ <dd>
7861
+
7862
+ <dl>
7863
+ <dd>
7864
+
7865
+ Multipart, with the photo in `image` (up to 10 MB) and optional
7866
+ `alt_text`. Answers 201. It goes after the product's other photos.
7867
+ </dd>
7868
+ </dl>
7869
+ </dd>
7870
+ </dl>
7871
+
7872
+ #### 🔌 Usage
7873
+
7874
+ <dl>
7875
+ <dd>
7876
+
7877
+ <dl>
7878
+ <dd>
7879
+
7880
+ ```typescript
7881
+ await client.business.commerce.productImages.upload({
7882
+ image: fs.createReadStream("/path/to/your/file"),
7883
+ "Idempotency-Key": "Idempotency-Key",
7884
+ product: "product"
7885
+ });
7886
+
7887
+ ```
7888
+ </dd>
7889
+ </dl>
7890
+ </dd>
7891
+ </dl>
7892
+
7893
+ #### ⚙️ Parameters
7894
+
7895
+ <dl>
7896
+ <dd>
7897
+
7898
+ <dl>
7899
+ <dd>
7900
+
7901
+ **request:** `FiveOneEat.business.commerce.StoreProductImageRequest`
7902
+
7903
+ </dd>
7904
+ </dl>
7905
+
7906
+ <dl>
7907
+ <dd>
7908
+
7909
+ **requestOptions:** `ProductImagesClient.RequestOptions`
7910
+
7911
+ </dd>
7912
+ </dl>
7913
+ </dd>
7914
+ </dl>
7915
+
7916
+
7917
+ </dd>
7918
+ </dl>
7919
+ </details>
7920
+
7921
+ <details><summary><code>client.business.commerce.productImages.<a href="/src/api/resources/business/resources/commerce/resources/productImages/client/Client.ts">reorder</a>({ ...params }) -> FiveOneEat.ReorderProductImagesResponse</code></summary>
7922
+ <dl>
7923
+ <dd>
7924
+
7925
+ #### 📝 Description
7926
+
7927
+ <dl>
7928
+ <dd>
7929
+
7930
+ <dl>
7931
+ <dd>
7932
+
7933
+ Sets each listed photo's `sort_order`; the first is the product's main
7934
+ photo. A listed photo of another product is left alone. Answers with
7935
+ all the product's photos in their new order.
7936
+ </dd>
7937
+ </dl>
7938
+ </dd>
7939
+ </dl>
7940
+
7941
+ #### 🔌 Usage
7942
+
7943
+ <dl>
7944
+ <dd>
7945
+
7946
+ <dl>
7947
+ <dd>
7948
+
7949
+ ```typescript
7950
+ await client.business.commerce.productImages.reorder({
7951
+ product: "product",
7952
+ images: [{
7953
+ id: "id",
7954
+ sort_order: 1
7955
+ }]
7956
+ });
7957
+
7958
+ ```
7959
+ </dd>
7960
+ </dl>
7961
+ </dd>
7962
+ </dl>
7963
+
7964
+ #### ⚙️ Parameters
7965
+
7966
+ <dl>
7967
+ <dd>
7968
+
7969
+ <dl>
7970
+ <dd>
7971
+
7972
+ **request:** `FiveOneEat.business.commerce.ReorderProductImagesRequest`
7973
+
7974
+ </dd>
7975
+ </dl>
7976
+
7977
+ <dl>
7978
+ <dd>
7979
+
7980
+ **requestOptions:** `ProductImagesClient.RequestOptions`
7981
+
7982
+ </dd>
7983
+ </dl>
7984
+ </dd>
7985
+ </dl>
7986
+
7987
+
7988
+ </dd>
7989
+ </dl>
7990
+ </details>
7991
+
7992
+ <details><summary><code>client.business.commerce.productImages.<a href="/src/api/resources/business/resources/commerce/resources/productImages/client/Client.ts">update</a>({ ...params }) -> FiveOneEat.UpdateProductImagesResponse</code></summary>
7993
+ <dl>
7994
+ <dd>
7995
+
7996
+ #### 🔌 Usage
7997
+
7998
+ <dl>
7999
+ <dd>
8000
+
8001
+ <dl>
8002
+ <dd>
8003
+
8004
+ ```typescript
8005
+ await client.business.commerce.productImages.update({
8006
+ product: "product",
8007
+ image: "image"
8008
+ });
8009
+
8010
+ ```
8011
+ </dd>
8012
+ </dl>
8013
+ </dd>
8014
+ </dl>
8015
+
8016
+ #### ⚙️ Parameters
8017
+
8018
+ <dl>
8019
+ <dd>
8020
+
8021
+ <dl>
8022
+ <dd>
8023
+
8024
+ **request:** `FiveOneEat.business.commerce.UpdateProductImageRequest`
8025
+
8026
+ </dd>
8027
+ </dl>
8028
+
8029
+ <dl>
8030
+ <dd>
8031
+
8032
+ **requestOptions:** `ProductImagesClient.RequestOptions`
8033
+
8034
+ </dd>
8035
+ </dl>
8036
+ </dd>
8037
+ </dl>
8038
+
8039
+
8040
+ </dd>
8041
+ </dl>
8042
+ </details>
8043
+
8044
+ <details><summary><code>client.business.commerce.productImages.<a href="/src/api/resources/business/resources/commerce/resources/productImages/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
8045
+ <dl>
8046
+ <dd>
8047
+
8048
+ #### 🔌 Usage
8049
+
8050
+ <dl>
8051
+ <dd>
8052
+
8053
+ <dl>
8054
+ <dd>
8055
+
8056
+ ```typescript
8057
+ await client.business.commerce.productImages.delete({
8058
+ product: "product",
8059
+ image: "image"
8060
+ });
8061
+
8062
+ ```
8063
+ </dd>
8064
+ </dl>
8065
+ </dd>
8066
+ </dl>
8067
+
8068
+ #### ⚙️ Parameters
8069
+
8070
+ <dl>
8071
+ <dd>
8072
+
8073
+ <dl>
8074
+ <dd>
8075
+
8076
+ **request:** `FiveOneEat.business.commerce.DeleteProductImagesRequest`
8077
+
8078
+ </dd>
8079
+ </dl>
8080
+
8081
+ <dl>
8082
+ <dd>
8083
+
8084
+ **requestOptions:** `ProductImagesClient.RequestOptions`
8085
+
8086
+ </dd>
8087
+ </dl>
8088
+ </dd>
8089
+ </dl>
8090
+
8091
+
8092
+ </dd>
8093
+ </dl>
8094
+ </details>
8095
+
8096
+ ## Business Commerce Selling
8097
+ <details><summary><code>client.business.commerce.selling.<a href="/src/api/resources/business/resources/commerce/resources/selling/client/Client.ts">get</a>() -> FiveOneEat.GetSellingResponse</code></summary>
8098
+ <dl>
8099
+ <dd>
8100
+
8101
+ #### 📝 Description
8102
+
8103
+ <dl>
8104
+ <dd>
8105
+
8106
+ <dl>
8107
+ <dd>
8108
+
8109
+ Selling on or off, why it can't sell yet (`blocker`, which leaves out
8110
+ the switch and the seller terms, since `seller_terms` answers those),
8111
+ the seller terms it is on and whether a newer version is due, how many
8112
+ stores and stands sell, and where 51Eat's approval stands.
8113
+ </dd>
8114
+ </dl>
8115
+ </dd>
8116
+ </dl>
8117
+
8118
+ #### 🔌 Usage
8119
+
8120
+ <dl>
8121
+ <dd>
8122
+
8123
+ <dl>
8124
+ <dd>
8125
+
8126
+ ```typescript
8127
+ await client.business.commerce.selling.get();
8128
+
8129
+ ```
8130
+ </dd>
8131
+ </dl>
8132
+ </dd>
8133
+ </dl>
8134
+
8135
+ #### ⚙️ Parameters
8136
+
8137
+ <dl>
8138
+ <dd>
8139
+
8140
+ <dl>
8141
+ <dd>
8142
+
8143
+ **requestOptions:** `SellingClient.RequestOptions`
8144
+
8145
+ </dd>
8146
+ </dl>
8147
+ </dd>
8148
+ </dl>
8149
+
8150
+
8151
+ </dd>
8152
+ </dl>
8153
+ </details>
8154
+
8155
+ <details><summary><code>client.business.commerce.selling.<a href="/src/api/resources/business/resources/commerce/resources/selling/client/Client.ts">update</a>({ ...params }) -> FiveOneEat.UpdateSellingResponse</code></summary>
8156
+ <dl>
8157
+ <dd>
8158
+
8159
+ #### 📝 Description
8160
+
8161
+ <dl>
8162
+ <dd>
8163
+
8164
+ <dl>
8165
+ <dd>
8166
+
8167
+ Switching it on doesn't let the business sell until it has accepted the
8168
+ current seller terms, is approved and has payments set up: `blocker` and
8169
+ `seller_terms.due` still say what is left.
8170
+ </dd>
8171
+ </dl>
8172
+ </dd>
8173
+ </dl>
8174
+
8175
+ #### 🔌 Usage
8176
+
8177
+ <dl>
8178
+ <dd>
8179
+
8180
+ <dl>
8181
+ <dd>
8182
+
8183
+ ```typescript
8184
+ await client.business.commerce.selling.update({
8185
+ enabled: true
8186
+ });
8187
+
8188
+ ```
8189
+ </dd>
8190
+ </dl>
8191
+ </dd>
8192
+ </dl>
8193
+
8194
+ #### ⚙️ Parameters
8195
+
8196
+ <dl>
8197
+ <dd>
8198
+
8199
+ <dl>
8200
+ <dd>
8201
+
8202
+ **request:** `FiveOneEat.business.commerce.UpdateSellingRequest`
8203
+
8204
+ </dd>
8205
+ </dl>
8206
+
8207
+ <dl>
8208
+ <dd>
8209
+
8210
+ **requestOptions:** `SellingClient.RequestOptions`
8211
+
8212
+ </dd>
8213
+ </dl>
8214
+ </dd>
8215
+ </dl>
8216
+
8217
+
8218
+ </dd>
8219
+ </dl>
8220
+ </details>
8221
+
8222
+ <details><summary><code>client.business.commerce.selling.<a href="/src/api/resources/business/resources/commerce/resources/selling/client/Client.ts">getSellerTerms</a>() -> FiveOneEat.GetSellerTermsSellingResponse</code></summary>
8223
+ <dl>
8224
+ <dd>
8225
+
8226
+ #### 📝 Description
8227
+
8228
+ <dl>
8229
+ <dd>
8230
+
8231
+ <dl>
8232
+ <dd>
8233
+
8234
+ The current version with its text as safe HTML, and whether the
8235
+ business has accepted it. 404 before 51Eat publishes the first version.
8236
+ </dd>
8237
+ </dl>
8238
+ </dd>
8239
+ </dl>
8240
+
8241
+ #### 🔌 Usage
8242
+
8243
+ <dl>
8244
+ <dd>
8245
+
8246
+ <dl>
8247
+ <dd>
8248
+
8249
+ ```typescript
8250
+ await client.business.commerce.selling.getSellerTerms();
8251
+
8252
+ ```
8253
+ </dd>
8254
+ </dl>
8255
+ </dd>
8256
+ </dl>
8257
+
8258
+ #### ⚙️ Parameters
8259
+
8260
+ <dl>
8261
+ <dd>
8262
+
8263
+ <dl>
8264
+ <dd>
8265
+
8266
+ **requestOptions:** `SellingClient.RequestOptions`
8267
+
8268
+ </dd>
8269
+ </dl>
8270
+ </dd>
8271
+ </dl>
8272
+
8273
+
8274
+ </dd>
8275
+ </dl>
8276
+ </details>
8277
+
8278
+ <details><summary><code>client.business.commerce.selling.<a href="/src/api/resources/business/resources/commerce/resources/selling/client/Client.ts">acceptSellerTerms</a>({ ...params }) -> FiveOneEat.AcceptSellerTermsSellingResponse</code></summary>
8279
+ <dl>
8280
+ <dd>
8281
+
8282
+ #### 📝 Description
8283
+
8284
+ <dl>
8285
+ <dd>
8286
+
8287
+ <dl>
8288
+ <dd>
8289
+
8290
+ Send the `id` of the version the owner read as `version_id`. Only the
8291
+ owner can accept, the IP address is recorded, and a version that isn't
8292
+ the current one is refused with 422 on `version_id`. Accepting the
8293
+ version the business is already on changes nothing.
8294
+ </dd>
8295
+ </dl>
8296
+ </dd>
8297
+ </dl>
8298
+
8299
+ #### 🔌 Usage
8300
+
8301
+ <dl>
8302
+ <dd>
8303
+
8304
+ <dl>
8305
+ <dd>
8306
+
8307
+ ```typescript
8308
+ await client.business.commerce.selling.acceptSellerTerms({
8309
+ "Idempotency-Key": "Idempotency-Key",
8310
+ version_id: "version_id"
8311
+ });
8312
+
8313
+ ```
8314
+ </dd>
8315
+ </dl>
8316
+ </dd>
8317
+ </dl>
8318
+
8319
+ #### ⚙️ Parameters
8320
+
8321
+ <dl>
8322
+ <dd>
8323
+
8324
+ <dl>
8325
+ <dd>
8326
+
8327
+ **request:** `FiveOneEat.business.commerce.AcceptSellerTermsRequest`
8328
+
8329
+ </dd>
8330
+ </dl>
8331
+
8332
+ <dl>
8333
+ <dd>
8334
+
8335
+ **requestOptions:** `SellingClient.RequestOptions`
8336
+
8337
+ </dd>
8338
+ </dl>
8339
+ </dd>
8340
+ </dl>
8341
+
8342
+
8343
+ </dd>
8344
+ </dl>
8345
+ </details>
8346
+
8347
+ <details><summary><code>client.business.commerce.selling.<a href="/src/api/resources/business/resources/commerce/resources/selling/client/Client.ts">requestApproval</a>({ ...params }) -> FiveOneEat.RequestApprovalSellingResponse</code></summary>
8348
+ <dl>
8349
+ <dd>
8350
+
8351
+ #### 📝 Description
8352
+
8353
+ <dl>
8354
+ <dd>
8355
+
8356
+ <dl>
8357
+ <dd>
8358
+
8359
+ `sells_prepared_food` is only a hint for the admin who decides. Asking
8360
+ again changes nothing and tells nobody twice; a business 51Eat turned
8361
+ down can't ask again (422 on `selling_approval`).
8362
+ </dd>
8363
+ </dl>
8364
+ </dd>
8365
+ </dl>
8366
+
8367
+ #### 🔌 Usage
8368
+
8369
+ <dl>
8370
+ <dd>
8371
+
8372
+ <dl>
8373
+ <dd>
8374
+
8375
+ ```typescript
8376
+ await client.business.commerce.selling.requestApproval({
8377
+ "Idempotency-Key": "Idempotency-Key",
8378
+ sells_prepared_food: true
8379
+ });
8380
+
8381
+ ```
8382
+ </dd>
8383
+ </dl>
8384
+ </dd>
8385
+ </dl>
8386
+
8387
+ #### ⚙️ Parameters
8388
+
8389
+ <dl>
8390
+ <dd>
8391
+
8392
+ <dl>
8393
+ <dd>
8394
+
8395
+ **request:** `FiveOneEat.business.commerce.RequestSellingApprovalRequest`
8396
+
8397
+ </dd>
8398
+ </dl>
8399
+
8400
+ <dl>
8401
+ <dd>
8402
+
8403
+ **requestOptions:** `SellingClient.RequestOptions`
5875
8404
 
5876
8405
  </dd>
5877
8406
  </dl>
@@ -9624,11 +12153,15 @@ await client.commerce.orders.get({
9624
12153
  <dd>
9625
12154
 
9626
12155
  Puts a variant in the cart, or adds to its line when it's there. The
9627
- variant has to be the business's, for sale, and offered at the cart's
9628
- location the cart's way (before a location is chosen, at any of the
9629
- business's locations). The quantity is in the variant's unit, a whole
9630
- number of its `quantity_step`, from 1 to 1000 steps. Answers with the
9631
- cart.
12156
+ variant has to be the business's and for sale. An in-person cart takes
12157
+ what its stand sells. An online cart takes what any of the business's
12158
+ locations offers for pickup: when the cart's own store doesn't, a cart
12159
+ with items keeps its store and the line comes back with `offered_here`
12160
+ false (the quote blocks it until the buyer removes it or switches to a
12161
+ store that offers it), and a cart with no items drops its store, so
12162
+ `location` is null and the buyer chooses one. The quantity is in the
12163
+ variant's unit, a whole number of its `quantity_step`, from 1 to 1000
12164
+ steps. Answers with the cart.
9632
12165
  </dd>
9633
12166
  </dl>
9634
12167
  </dd>