@51eat/sdk 2.0.0 → 2.1.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/business/resources/commerce/client/Client.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/commerce/client/Client.js +17 -2
- package/dist/cjs/api/resources/business/resources/commerce/resources/index.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/index.js +14 -4
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.d.ts +294 -1
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.js +893 -1
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.js +15 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.ts +52 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.ts +68 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.js +38 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.ts +30 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.ts +46 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.ts +52 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.js +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.d.ts +114 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.js +401 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.ts +49 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.ts +36 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.ts +44 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.js +20 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.js +380 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.d.ts +163 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.js +537 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.ts +16 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.ts +54 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.ts +46 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.js +22 -0
- package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.d.ts +9 -5
- package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.js +9 -5
- package/dist/cjs/api/types/BusinessCommerceLocation.d.ts +37 -3
- package/dist/cjs/api/types/BusinessEvent.d.ts +2 -0
- package/dist/cjs/api/types/BusinessLocation.d.ts +29 -0
- package/dist/cjs/api/types/BusinessLocation.js +11 -0
- package/dist/cjs/api/types/BusinessLocationDetails.d.ts +36 -0
- package/dist/cjs/api/types/BusinessLocationDetails.js +11 -0
- package/dist/cjs/api/types/BusinessLocationHourException.d.ts +14 -0
- package/dist/cjs/api/types/BusinessLocationHourException.js +3 -0
- package/dist/cjs/api/types/BusinessLocationOpeningHours.d.ts +17 -0
- package/dist/cjs/api/types/BusinessLocationOpeningHours.js +3 -0
- package/dist/cjs/api/types/BusinessLocationPickup.d.ts +25 -0
- package/dist/cjs/api/types/BusinessLocationPickup.js +14 -0
- package/dist/cjs/api/types/BusinessOpeningHourSlot.d.ts +10 -0
- package/dist/cjs/api/types/BusinessOpeningHourSlot.js +3 -0
- package/dist/cjs/api/types/BusinessPickupSchedule.d.ts +10 -0
- package/dist/cjs/api/types/BusinessPickupSchedule.js +3 -0
- package/dist/cjs/api/types/BusinessPickupWindow.d.ts +11 -0
- package/dist/cjs/api/types/BusinessPickupWindow.js +3 -0
- package/dist/cjs/api/types/BusinessSellerTerms.d.ts +10 -0
- package/dist/cjs/api/types/BusinessSellerTerms.js +3 -0
- package/dist/cjs/api/types/BusinessSelling.d.ts +61 -0
- package/dist/cjs/api/types/BusinessSelling.js +16 -0
- package/dist/cjs/api/types/Cart.d.ts +1 -1
- package/dist/cjs/api/types/CustomerEvent.d.ts +6 -0
- package/dist/cjs/api/types/CustomerEventDetail.d.ts +6 -0
- package/dist/cjs/api/types/CustomerEventTicketType.d.ts +7 -0
- package/dist/cjs/api/types/EventFeedItem.d.ts +6 -0
- package/dist/cjs/api/types/ImageResource.d.ts +7 -0
- package/dist/cjs/api/types/ImageResource.js +3 -0
- package/dist/cjs/api/types/LocationKind.d.ts +12 -0
- package/dist/cjs/api/types/LocationKind.js +15 -0
- package/dist/cjs/api/types/ProductResource.d.ts +41 -0
- package/dist/cjs/api/types/ProductResource.js +18 -0
- package/dist/cjs/api/types/Unit.d.ts +16 -0
- package/dist/cjs/api/types/Unit.js +19 -0
- package/dist/cjs/api/types/UpdateLocationRequest.d.ts +7 -0
- package/dist/cjs/api/types/UpdateLocationRequest.js +3 -0
- package/dist/cjs/api/types/VariantInventoryLevelResource.d.ts +9 -0
- package/dist/cjs/api/types/VariantInventoryLevelResource.js +3 -0
- package/dist/cjs/api/types/VariantResource.d.ts +26 -0
- package/dist/cjs/api/types/VariantResource.js +3 -0
- package/dist/cjs/api/types/VariantStockLocationResource.d.ts +15 -0
- package/dist/cjs/api/types/VariantStockLocationResource.js +11 -0
- package/dist/cjs/api/types/index.d.ts +18 -0
- package/dist/cjs/api/types/index.js +18 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/business/resources/commerce/client/Client.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/commerce/client/Client.mjs +15 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/index.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/index.mjs +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.d.mts +294 -1
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.mjs +894 -2
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.mts +52 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.mts +68 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.mjs +35 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.mts +30 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.mts +46 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.mts +52 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.mjs +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.d.mts +114 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.mjs +364 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.mts +49 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.mts +36 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.mts +44 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.mjs +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.mjs +343 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.mjs +5 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.d.mts +163 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.mjs +500 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.mts +16 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.mts +54 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.mts +46 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.mjs +6 -0
- package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.d.mts +9 -5
- package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.mjs +9 -5
- package/dist/esm/api/types/BusinessCommerceLocation.d.mts +37 -3
- package/dist/esm/api/types/BusinessEvent.d.mts +2 -0
- package/dist/esm/api/types/BusinessLocation.d.mts +29 -0
- package/dist/esm/api/types/BusinessLocation.mjs +8 -0
- package/dist/esm/api/types/BusinessLocationDetails.d.mts +36 -0
- package/dist/esm/api/types/BusinessLocationDetails.mjs +8 -0
- package/dist/esm/api/types/BusinessLocationHourException.d.mts +14 -0
- package/dist/esm/api/types/BusinessLocationHourException.mjs +2 -0
- package/dist/esm/api/types/BusinessLocationOpeningHours.d.mts +17 -0
- package/dist/esm/api/types/BusinessLocationOpeningHours.mjs +2 -0
- package/dist/esm/api/types/BusinessLocationPickup.d.mts +25 -0
- package/dist/esm/api/types/BusinessLocationPickup.mjs +11 -0
- package/dist/esm/api/types/BusinessOpeningHourSlot.d.mts +10 -0
- package/dist/esm/api/types/BusinessOpeningHourSlot.mjs +2 -0
- package/dist/esm/api/types/BusinessPickupSchedule.d.mts +10 -0
- package/dist/esm/api/types/BusinessPickupSchedule.mjs +2 -0
- package/dist/esm/api/types/BusinessPickupWindow.d.mts +11 -0
- package/dist/esm/api/types/BusinessPickupWindow.mjs +2 -0
- package/dist/esm/api/types/BusinessSellerTerms.d.mts +10 -0
- package/dist/esm/api/types/BusinessSellerTerms.mjs +2 -0
- package/dist/esm/api/types/BusinessSelling.d.mts +61 -0
- package/dist/esm/api/types/BusinessSelling.mjs +13 -0
- package/dist/esm/api/types/Cart.d.mts +1 -1
- package/dist/esm/api/types/CustomerEvent.d.mts +6 -0
- package/dist/esm/api/types/CustomerEventDetail.d.mts +6 -0
- package/dist/esm/api/types/CustomerEventTicketType.d.mts +7 -0
- package/dist/esm/api/types/EventFeedItem.d.mts +6 -0
- package/dist/esm/api/types/ImageResource.d.mts +7 -0
- package/dist/esm/api/types/ImageResource.mjs +2 -0
- package/dist/esm/api/types/LocationKind.d.mts +12 -0
- package/dist/esm/api/types/LocationKind.mjs +12 -0
- package/dist/esm/api/types/ProductResource.d.mts +41 -0
- package/dist/esm/api/types/ProductResource.mjs +15 -0
- package/dist/esm/api/types/Unit.d.mts +16 -0
- package/dist/esm/api/types/Unit.mjs +16 -0
- package/dist/esm/api/types/UpdateLocationRequest.d.mts +7 -0
- package/dist/esm/api/types/UpdateLocationRequest.mjs +2 -0
- package/dist/esm/api/types/VariantInventoryLevelResource.d.mts +9 -0
- package/dist/esm/api/types/VariantInventoryLevelResource.mjs +2 -0
- package/dist/esm/api/types/VariantResource.d.mts +26 -0
- package/dist/esm/api/types/VariantResource.mjs +2 -0
- package/dist/esm/api/types/VariantStockLocationResource.d.mts +15 -0
- package/dist/esm/api/types/VariantStockLocationResource.mjs +8 -0
- package/dist/esm/api/types/index.d.mts +18 -0
- package/dist/esm/api/types/index.mjs +18 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +34 -1
- package/reference.md +2115 -83
package/reference.md
CHANGED
|
@@ -5288,7 +5288,9 @@ await client.business.bulletins.comments.create({
|
|
|
5288
5288
|
|
|
5289
5289
|
Every store and stand of the business, main store first and then by
|
|
5290
5290
|
name, including ones switched off, blocked by the plan or archived.
|
|
5291
|
-
|
|
5291
|
+
Each carries why it can't sell yet (`blocker`) and its open pickup
|
|
5292
|
+
orders still to come (`affected_orders`), the same as the web's list.
|
|
5293
|
+
`can_add_store` says whether the plan has room for another store.
|
|
5292
5294
|
</dd>
|
|
5293
5295
|
</dl>
|
|
5294
5296
|
</dd>
|
|
@@ -5327,6 +5329,890 @@ await client.business.commerce.locations.list();
|
|
|
5327
5329
|
</dl>
|
|
5328
5330
|
|
|
5329
5331
|
|
|
5332
|
+
</dd>
|
|
5333
|
+
</dl>
|
|
5334
|
+
</details>
|
|
5335
|
+
|
|
5336
|
+
<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>
|
|
5337
|
+
<dl>
|
|
5338
|
+
<dd>
|
|
5339
|
+
|
|
5340
|
+
#### 📝 Description
|
|
5341
|
+
|
|
5342
|
+
<dl>
|
|
5343
|
+
<dd>
|
|
5344
|
+
|
|
5345
|
+
<dl>
|
|
5346
|
+
<dd>
|
|
5347
|
+
|
|
5348
|
+
Answers 201. `kind` is `store` or `stand`. A Free plan has one store,
|
|
5349
|
+
the main one: a second is refused with a form error on `kind`.
|
|
5350
|
+
</dd>
|
|
5351
|
+
</dl>
|
|
5352
|
+
</dd>
|
|
5353
|
+
</dl>
|
|
5354
|
+
|
|
5355
|
+
#### 🔌 Usage
|
|
5356
|
+
|
|
5357
|
+
<dl>
|
|
5358
|
+
<dd>
|
|
5359
|
+
|
|
5360
|
+
<dl>
|
|
5361
|
+
<dd>
|
|
5362
|
+
|
|
5363
|
+
```typescript
|
|
5364
|
+
await client.business.commerce.locations.create({
|
|
5365
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
5366
|
+
kind: "store",
|
|
5367
|
+
name: "name",
|
|
5368
|
+
address: "address",
|
|
5369
|
+
city: "city",
|
|
5370
|
+
state: "state",
|
|
5371
|
+
zipcode: "zipcode",
|
|
5372
|
+
country: "country",
|
|
5373
|
+
timezone: "America/Adak"
|
|
5374
|
+
});
|
|
5375
|
+
|
|
5376
|
+
```
|
|
5377
|
+
</dd>
|
|
5378
|
+
</dl>
|
|
5379
|
+
</dd>
|
|
5380
|
+
</dl>
|
|
5381
|
+
|
|
5382
|
+
#### ⚙️ Parameters
|
|
5383
|
+
|
|
5384
|
+
<dl>
|
|
5385
|
+
<dd>
|
|
5386
|
+
|
|
5387
|
+
<dl>
|
|
5388
|
+
<dd>
|
|
5389
|
+
|
|
5390
|
+
**request:** `FiveOneEat.business.commerce.StoreLocationRequest`
|
|
5391
|
+
|
|
5392
|
+
</dd>
|
|
5393
|
+
</dl>
|
|
5394
|
+
|
|
5395
|
+
<dl>
|
|
5396
|
+
<dd>
|
|
5397
|
+
|
|
5398
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5399
|
+
|
|
5400
|
+
</dd>
|
|
5401
|
+
</dl>
|
|
5402
|
+
</dd>
|
|
5403
|
+
</dl>
|
|
5404
|
+
|
|
5405
|
+
|
|
5406
|
+
</dd>
|
|
5407
|
+
</dl>
|
|
5408
|
+
</details>
|
|
5409
|
+
|
|
5410
|
+
<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>
|
|
5411
|
+
<dl>
|
|
5412
|
+
<dd>
|
|
5413
|
+
|
|
5414
|
+
#### 🔌 Usage
|
|
5415
|
+
|
|
5416
|
+
<dl>
|
|
5417
|
+
<dd>
|
|
5418
|
+
|
|
5419
|
+
<dl>
|
|
5420
|
+
<dd>
|
|
5421
|
+
|
|
5422
|
+
```typescript
|
|
5423
|
+
await client.business.commerce.locations.get({
|
|
5424
|
+
location: "location"
|
|
5425
|
+
});
|
|
5426
|
+
|
|
5427
|
+
```
|
|
5428
|
+
</dd>
|
|
5429
|
+
</dl>
|
|
5430
|
+
</dd>
|
|
5431
|
+
</dl>
|
|
5432
|
+
|
|
5433
|
+
#### ⚙️ Parameters
|
|
5434
|
+
|
|
5435
|
+
<dl>
|
|
5436
|
+
<dd>
|
|
5437
|
+
|
|
5438
|
+
<dl>
|
|
5439
|
+
<dd>
|
|
5440
|
+
|
|
5441
|
+
**request:** `FiveOneEat.business.commerce.GetLocationsRequest`
|
|
5442
|
+
|
|
5443
|
+
</dd>
|
|
5444
|
+
</dl>
|
|
5445
|
+
|
|
5446
|
+
<dl>
|
|
5447
|
+
<dd>
|
|
5448
|
+
|
|
5449
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5450
|
+
|
|
5451
|
+
</dd>
|
|
5452
|
+
</dl>
|
|
5453
|
+
</dd>
|
|
5454
|
+
</dl>
|
|
5455
|
+
|
|
5456
|
+
|
|
5457
|
+
</dd>
|
|
5458
|
+
</dl>
|
|
5459
|
+
</details>
|
|
5460
|
+
|
|
5461
|
+
<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>
|
|
5462
|
+
<dl>
|
|
5463
|
+
<dd>
|
|
5464
|
+
|
|
5465
|
+
#### 📝 Description
|
|
5466
|
+
|
|
5467
|
+
<dl>
|
|
5468
|
+
<dd>
|
|
5469
|
+
|
|
5470
|
+
<dl>
|
|
5471
|
+
<dd>
|
|
5472
|
+
|
|
5473
|
+
The main store saves only its `name`: its address, timezone and phone
|
|
5474
|
+
are the business's, and any of those sent for it are ignored. An extra
|
|
5475
|
+
store or a stand needs its address, city, state, zipcode and timezone
|
|
5476
|
+
as well (422 on the one missing), and keeps every field it is sent
|
|
5477
|
+
as its new value, so send the whole form.
|
|
5478
|
+
`CommerceRequestBodiesDocumentedTest` keeps the fields below in step
|
|
5479
|
+
with `StoreLocationRequest::detailRules()`.
|
|
5480
|
+
</dd>
|
|
5481
|
+
</dl>
|
|
5482
|
+
</dd>
|
|
5483
|
+
</dl>
|
|
5484
|
+
|
|
5485
|
+
#### 🔌 Usage
|
|
5486
|
+
|
|
5487
|
+
<dl>
|
|
5488
|
+
<dd>
|
|
5489
|
+
|
|
5490
|
+
<dl>
|
|
5491
|
+
<dd>
|
|
5492
|
+
|
|
5493
|
+
```typescript
|
|
5494
|
+
await client.business.commerce.locations.update({
|
|
5495
|
+
location: "location",
|
|
5496
|
+
name: "name"
|
|
5497
|
+
});
|
|
5498
|
+
|
|
5499
|
+
```
|
|
5500
|
+
</dd>
|
|
5501
|
+
</dl>
|
|
5502
|
+
</dd>
|
|
5503
|
+
</dl>
|
|
5504
|
+
|
|
5505
|
+
#### ⚙️ Parameters
|
|
5506
|
+
|
|
5507
|
+
<dl>
|
|
5508
|
+
<dd>
|
|
5509
|
+
|
|
5510
|
+
<dl>
|
|
5511
|
+
<dd>
|
|
5512
|
+
|
|
5513
|
+
**request:** `FiveOneEat.business.commerce.UpdateLocationsRequest`
|
|
5514
|
+
|
|
5515
|
+
</dd>
|
|
5516
|
+
</dl>
|
|
5517
|
+
|
|
5518
|
+
<dl>
|
|
5519
|
+
<dd>
|
|
5520
|
+
|
|
5521
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5522
|
+
|
|
5523
|
+
</dd>
|
|
5524
|
+
</dl>
|
|
5525
|
+
</dd>
|
|
5526
|
+
</dl>
|
|
5527
|
+
|
|
5528
|
+
|
|
5529
|
+
</dd>
|
|
5530
|
+
</dl>
|
|
5531
|
+
</details>
|
|
5532
|
+
|
|
5533
|
+
<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>
|
|
5534
|
+
<dl>
|
|
5535
|
+
<dd>
|
|
5536
|
+
|
|
5537
|
+
#### 📝 Description
|
|
5538
|
+
|
|
5539
|
+
<dl>
|
|
5540
|
+
<dd>
|
|
5541
|
+
|
|
5542
|
+
<dl>
|
|
5543
|
+
<dd>
|
|
5544
|
+
|
|
5545
|
+
Only one that never sold anything and holds no stock: otherwise 409,
|
|
5546
|
+
and it is archived instead. The main store can't be deleted.
|
|
5547
|
+
</dd>
|
|
5548
|
+
</dl>
|
|
5549
|
+
</dd>
|
|
5550
|
+
</dl>
|
|
5551
|
+
|
|
5552
|
+
#### 🔌 Usage
|
|
5553
|
+
|
|
5554
|
+
<dl>
|
|
5555
|
+
<dd>
|
|
5556
|
+
|
|
5557
|
+
<dl>
|
|
5558
|
+
<dd>
|
|
5559
|
+
|
|
5560
|
+
```typescript
|
|
5561
|
+
await client.business.commerce.locations.delete({
|
|
5562
|
+
location: "location"
|
|
5563
|
+
});
|
|
5564
|
+
|
|
5565
|
+
```
|
|
5566
|
+
</dd>
|
|
5567
|
+
</dl>
|
|
5568
|
+
</dd>
|
|
5569
|
+
</dl>
|
|
5570
|
+
|
|
5571
|
+
#### ⚙️ Parameters
|
|
5572
|
+
|
|
5573
|
+
<dl>
|
|
5574
|
+
<dd>
|
|
5575
|
+
|
|
5576
|
+
<dl>
|
|
5577
|
+
<dd>
|
|
5578
|
+
|
|
5579
|
+
**request:** `FiveOneEat.business.commerce.DeleteLocationsRequest`
|
|
5580
|
+
|
|
5581
|
+
</dd>
|
|
5582
|
+
</dl>
|
|
5583
|
+
|
|
5584
|
+
<dl>
|
|
5585
|
+
<dd>
|
|
5586
|
+
|
|
5587
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5588
|
+
|
|
5589
|
+
</dd>
|
|
5590
|
+
</dl>
|
|
5591
|
+
</dd>
|
|
5592
|
+
</dl>
|
|
5593
|
+
|
|
5594
|
+
|
|
5595
|
+
</dd>
|
|
5596
|
+
</dl>
|
|
5597
|
+
</details>
|
|
5598
|
+
|
|
5599
|
+
<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>
|
|
5600
|
+
<dl>
|
|
5601
|
+
<dd>
|
|
5602
|
+
|
|
5603
|
+
#### 🔌 Usage
|
|
5604
|
+
|
|
5605
|
+
<dl>
|
|
5606
|
+
<dd>
|
|
5607
|
+
|
|
5608
|
+
<dl>
|
|
5609
|
+
<dd>
|
|
5610
|
+
|
|
5611
|
+
```typescript
|
|
5612
|
+
await client.business.commerce.locations.setActive({
|
|
5613
|
+
location: "location",
|
|
5614
|
+
active: true
|
|
5615
|
+
});
|
|
5616
|
+
|
|
5617
|
+
```
|
|
5618
|
+
</dd>
|
|
5619
|
+
</dl>
|
|
5620
|
+
</dd>
|
|
5621
|
+
</dl>
|
|
5622
|
+
|
|
5623
|
+
#### ⚙️ Parameters
|
|
5624
|
+
|
|
5625
|
+
<dl>
|
|
5626
|
+
<dd>
|
|
5627
|
+
|
|
5628
|
+
<dl>
|
|
5629
|
+
<dd>
|
|
5630
|
+
|
|
5631
|
+
**request:** `FiveOneEat.business.commerce.SetLocationActiveRequest`
|
|
5632
|
+
|
|
5633
|
+
</dd>
|
|
5634
|
+
</dl>
|
|
5635
|
+
|
|
5636
|
+
<dl>
|
|
5637
|
+
<dd>
|
|
5638
|
+
|
|
5639
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5640
|
+
|
|
5641
|
+
</dd>
|
|
5642
|
+
</dl>
|
|
5643
|
+
</dd>
|
|
5644
|
+
</dl>
|
|
5645
|
+
|
|
5646
|
+
|
|
5647
|
+
</dd>
|
|
5648
|
+
</dl>
|
|
5649
|
+
</details>
|
|
5650
|
+
|
|
5651
|
+
<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>
|
|
5652
|
+
<dl>
|
|
5653
|
+
<dd>
|
|
5654
|
+
|
|
5655
|
+
#### 📝 Description
|
|
5656
|
+
|
|
5657
|
+
<dl>
|
|
5658
|
+
<dd>
|
|
5659
|
+
|
|
5660
|
+
<dl>
|
|
5661
|
+
<dd>
|
|
5662
|
+
|
|
5663
|
+
Hides it and stops it taking orders, keeping its history and freeing
|
|
5664
|
+
its name and, for a store, its place in the plan's limit. The main
|
|
5665
|
+
store can't be archived.
|
|
5666
|
+
</dd>
|
|
5667
|
+
</dl>
|
|
5668
|
+
</dd>
|
|
5669
|
+
</dl>
|
|
5670
|
+
|
|
5671
|
+
#### 🔌 Usage
|
|
5672
|
+
|
|
5673
|
+
<dl>
|
|
5674
|
+
<dd>
|
|
5675
|
+
|
|
5676
|
+
<dl>
|
|
5677
|
+
<dd>
|
|
5678
|
+
|
|
5679
|
+
```typescript
|
|
5680
|
+
await client.business.commerce.locations.archive({
|
|
5681
|
+
location: "location"
|
|
5682
|
+
});
|
|
5683
|
+
|
|
5684
|
+
```
|
|
5685
|
+
</dd>
|
|
5686
|
+
</dl>
|
|
5687
|
+
</dd>
|
|
5688
|
+
</dl>
|
|
5689
|
+
|
|
5690
|
+
#### ⚙️ Parameters
|
|
5691
|
+
|
|
5692
|
+
<dl>
|
|
5693
|
+
<dd>
|
|
5694
|
+
|
|
5695
|
+
<dl>
|
|
5696
|
+
<dd>
|
|
5697
|
+
|
|
5698
|
+
**request:** `FiveOneEat.business.commerce.ArchiveLocationsRequest`
|
|
5699
|
+
|
|
5700
|
+
</dd>
|
|
5701
|
+
</dl>
|
|
5702
|
+
|
|
5703
|
+
<dl>
|
|
5704
|
+
<dd>
|
|
5705
|
+
|
|
5706
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5707
|
+
|
|
5708
|
+
</dd>
|
|
5709
|
+
</dl>
|
|
5710
|
+
</dd>
|
|
5711
|
+
</dl>
|
|
5712
|
+
|
|
5713
|
+
|
|
5714
|
+
</dd>
|
|
5715
|
+
</dl>
|
|
5716
|
+
</details>
|
|
5717
|
+
|
|
5718
|
+
<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>
|
|
5719
|
+
<dl>
|
|
5720
|
+
<dd>
|
|
5721
|
+
|
|
5722
|
+
#### 📝 Description
|
|
5723
|
+
|
|
5724
|
+
<dl>
|
|
5725
|
+
<dd>
|
|
5726
|
+
|
|
5727
|
+
<dl>
|
|
5728
|
+
<dd>
|
|
5729
|
+
|
|
5730
|
+
A download link that works for a few minutes. `url` is null while the
|
|
5731
|
+
flyer is still being generated. Only a stand has a flyer.
|
|
5732
|
+
</dd>
|
|
5733
|
+
</dl>
|
|
5734
|
+
</dd>
|
|
5735
|
+
</dl>
|
|
5736
|
+
|
|
5737
|
+
#### 🔌 Usage
|
|
5738
|
+
|
|
5739
|
+
<dl>
|
|
5740
|
+
<dd>
|
|
5741
|
+
|
|
5742
|
+
<dl>
|
|
5743
|
+
<dd>
|
|
5744
|
+
|
|
5745
|
+
```typescript
|
|
5746
|
+
await client.business.commerce.locations.flyer({
|
|
5747
|
+
location: "location"
|
|
5748
|
+
});
|
|
5749
|
+
|
|
5750
|
+
```
|
|
5751
|
+
</dd>
|
|
5752
|
+
</dl>
|
|
5753
|
+
</dd>
|
|
5754
|
+
</dl>
|
|
5755
|
+
|
|
5756
|
+
#### ⚙️ Parameters
|
|
5757
|
+
|
|
5758
|
+
<dl>
|
|
5759
|
+
<dd>
|
|
5760
|
+
|
|
5761
|
+
<dl>
|
|
5762
|
+
<dd>
|
|
5763
|
+
|
|
5764
|
+
**request:** `FiveOneEat.business.commerce.FlyerLocationsRequest`
|
|
5765
|
+
|
|
5766
|
+
</dd>
|
|
5767
|
+
</dl>
|
|
5768
|
+
|
|
5769
|
+
<dl>
|
|
5770
|
+
<dd>
|
|
5771
|
+
|
|
5772
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5773
|
+
|
|
5774
|
+
</dd>
|
|
5775
|
+
</dl>
|
|
5776
|
+
</dd>
|
|
5777
|
+
</dl>
|
|
5778
|
+
|
|
5779
|
+
|
|
5780
|
+
</dd>
|
|
5781
|
+
</dl>
|
|
5782
|
+
</details>
|
|
5783
|
+
|
|
5784
|
+
<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>
|
|
5785
|
+
<dl>
|
|
5786
|
+
<dd>
|
|
5787
|
+
|
|
5788
|
+
#### 📝 Description
|
|
5789
|
+
|
|
5790
|
+
<dl>
|
|
5791
|
+
<dd>
|
|
5792
|
+
|
|
5793
|
+
<dl>
|
|
5794
|
+
<dd>
|
|
5795
|
+
|
|
5796
|
+
Offers, for pickup, every product the main store offers; those already
|
|
5797
|
+
offered are left as they are. Only an extra store takes products this
|
|
5798
|
+
way. `added` is how many it added, so a second call adds none.
|
|
5799
|
+
</dd>
|
|
5800
|
+
</dl>
|
|
5801
|
+
</dd>
|
|
5802
|
+
</dl>
|
|
5803
|
+
|
|
5804
|
+
#### 🔌 Usage
|
|
5805
|
+
|
|
5806
|
+
<dl>
|
|
5807
|
+
<dd>
|
|
5808
|
+
|
|
5809
|
+
<dl>
|
|
5810
|
+
<dd>
|
|
5811
|
+
|
|
5812
|
+
```typescript
|
|
5813
|
+
await client.business.commerce.locations.offerMainStoreProducts({
|
|
5814
|
+
location: "location"
|
|
5815
|
+
});
|
|
5816
|
+
|
|
5817
|
+
```
|
|
5818
|
+
</dd>
|
|
5819
|
+
</dl>
|
|
5820
|
+
</dd>
|
|
5821
|
+
</dl>
|
|
5822
|
+
|
|
5823
|
+
#### ⚙️ Parameters
|
|
5824
|
+
|
|
5825
|
+
<dl>
|
|
5826
|
+
<dd>
|
|
5827
|
+
|
|
5828
|
+
<dl>
|
|
5829
|
+
<dd>
|
|
5830
|
+
|
|
5831
|
+
**request:** `FiveOneEat.business.commerce.OfferMainStoreProductsLocationsRequest`
|
|
5832
|
+
|
|
5833
|
+
</dd>
|
|
5834
|
+
</dl>
|
|
5835
|
+
|
|
5836
|
+
<dl>
|
|
5837
|
+
<dd>
|
|
5838
|
+
|
|
5839
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5840
|
+
|
|
5841
|
+
</dd>
|
|
5842
|
+
</dl>
|
|
5843
|
+
</dd>
|
|
5844
|
+
</dl>
|
|
5845
|
+
|
|
5846
|
+
|
|
5847
|
+
</dd>
|
|
5848
|
+
</dl>
|
|
5849
|
+
</details>
|
|
5850
|
+
|
|
5851
|
+
<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>
|
|
5852
|
+
<dl>
|
|
5853
|
+
<dd>
|
|
5854
|
+
|
|
5855
|
+
#### 📝 Description
|
|
5856
|
+
|
|
5857
|
+
<dl>
|
|
5858
|
+
<dd>
|
|
5859
|
+
|
|
5860
|
+
<dl>
|
|
5861
|
+
<dd>
|
|
5862
|
+
|
|
5863
|
+
Its pickup settings, weekly windows with slot capacity and date
|
|
5864
|
+
exceptions, and whether the plan lets it take pickup orders
|
|
5865
|
+
(`can_offer_pickup`: a stand needs Pro).
|
|
5866
|
+
</dd>
|
|
5867
|
+
</dl>
|
|
5868
|
+
</dd>
|
|
5869
|
+
</dl>
|
|
5870
|
+
|
|
5871
|
+
#### 🔌 Usage
|
|
5872
|
+
|
|
5873
|
+
<dl>
|
|
5874
|
+
<dd>
|
|
5875
|
+
|
|
5876
|
+
<dl>
|
|
5877
|
+
<dd>
|
|
5878
|
+
|
|
5879
|
+
```typescript
|
|
5880
|
+
await client.business.commerce.locations.getPickup({
|
|
5881
|
+
location: "location"
|
|
5882
|
+
});
|
|
5883
|
+
|
|
5884
|
+
```
|
|
5885
|
+
</dd>
|
|
5886
|
+
</dl>
|
|
5887
|
+
</dd>
|
|
5888
|
+
</dl>
|
|
5889
|
+
|
|
5890
|
+
#### ⚙️ Parameters
|
|
5891
|
+
|
|
5892
|
+
<dl>
|
|
5893
|
+
<dd>
|
|
5894
|
+
|
|
5895
|
+
<dl>
|
|
5896
|
+
<dd>
|
|
5897
|
+
|
|
5898
|
+
**request:** `FiveOneEat.business.commerce.GetPickupLocationsRequest`
|
|
5899
|
+
|
|
5900
|
+
</dd>
|
|
5901
|
+
</dl>
|
|
5902
|
+
|
|
5903
|
+
<dl>
|
|
5904
|
+
<dd>
|
|
5905
|
+
|
|
5906
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5907
|
+
|
|
5908
|
+
</dd>
|
|
5909
|
+
</dl>
|
|
5910
|
+
</dd>
|
|
5911
|
+
</dl>
|
|
5912
|
+
|
|
5913
|
+
|
|
5914
|
+
</dd>
|
|
5915
|
+
</dl>
|
|
5916
|
+
</details>
|
|
5917
|
+
|
|
5918
|
+
<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>
|
|
5919
|
+
<dl>
|
|
5920
|
+
<dd>
|
|
5921
|
+
|
|
5922
|
+
#### 📝 Description
|
|
5923
|
+
|
|
5924
|
+
<dl>
|
|
5925
|
+
<dd>
|
|
5926
|
+
|
|
5927
|
+
<dl>
|
|
5928
|
+
<dd>
|
|
5929
|
+
|
|
5930
|
+
Replaces the whole schedule. A window never runs past midnight and
|
|
5931
|
+
two windows on a day can't overlap. Turning pickup on at a stand on a
|
|
5932
|
+
Free plan is refused with a form error on `offers_pickup`.
|
|
5933
|
+
</dd>
|
|
5934
|
+
</dl>
|
|
5935
|
+
</dd>
|
|
5936
|
+
</dl>
|
|
5937
|
+
|
|
5938
|
+
#### 🔌 Usage
|
|
5939
|
+
|
|
5940
|
+
<dl>
|
|
5941
|
+
<dd>
|
|
5942
|
+
|
|
5943
|
+
<dl>
|
|
5944
|
+
<dd>
|
|
5945
|
+
|
|
5946
|
+
```typescript
|
|
5947
|
+
await client.business.commerce.locations.updatePickup({
|
|
5948
|
+
location: "location",
|
|
5949
|
+
offers_pickup: true,
|
|
5950
|
+
preparation_minutes: 1,
|
|
5951
|
+
pickup_slot_minutes: 1,
|
|
5952
|
+
windows: [{
|
|
5953
|
+
day_of_week: 1,
|
|
5954
|
+
opens_at: "opens_at",
|
|
5955
|
+
closes_at: "closes_at"
|
|
5956
|
+
}],
|
|
5957
|
+
exceptions: [{
|
|
5958
|
+
starts_on: "starts_on",
|
|
5959
|
+
is_closed: true
|
|
5960
|
+
}]
|
|
5961
|
+
});
|
|
5962
|
+
|
|
5963
|
+
```
|
|
5964
|
+
</dd>
|
|
5965
|
+
</dl>
|
|
5966
|
+
</dd>
|
|
5967
|
+
</dl>
|
|
5968
|
+
|
|
5969
|
+
#### ⚙️ Parameters
|
|
5970
|
+
|
|
5971
|
+
<dl>
|
|
5972
|
+
<dd>
|
|
5973
|
+
|
|
5974
|
+
<dl>
|
|
5975
|
+
<dd>
|
|
5976
|
+
|
|
5977
|
+
**request:** `FiveOneEat.business.commerce.UpdatePickupScheduleRequest`
|
|
5978
|
+
|
|
5979
|
+
</dd>
|
|
5980
|
+
</dl>
|
|
5981
|
+
|
|
5982
|
+
<dl>
|
|
5983
|
+
<dd>
|
|
5984
|
+
|
|
5985
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
5986
|
+
|
|
5987
|
+
</dd>
|
|
5988
|
+
</dl>
|
|
5989
|
+
</dd>
|
|
5990
|
+
</dl>
|
|
5991
|
+
|
|
5992
|
+
|
|
5993
|
+
</dd>
|
|
5994
|
+
</dl>
|
|
5995
|
+
</details>
|
|
5996
|
+
|
|
5997
|
+
<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>
|
|
5998
|
+
<dl>
|
|
5999
|
+
<dd>
|
|
6000
|
+
|
|
6001
|
+
#### 📝 Description
|
|
6002
|
+
|
|
6003
|
+
<dl>
|
|
6004
|
+
<dd>
|
|
6005
|
+
|
|
6006
|
+
<dl>
|
|
6007
|
+
<dd>
|
|
6008
|
+
|
|
6009
|
+
Send the schedule you are about to save. The answer lists the open
|
|
6010
|
+
pickup orders it would leave outside its windows, so the owner can
|
|
6011
|
+
contact those buyers or cancel the orders first. It changes nothing,
|
|
6012
|
+
and so, unlike the writes, takes no `Idempotency-Key`.
|
|
6013
|
+
</dd>
|
|
6014
|
+
</dl>
|
|
6015
|
+
</dd>
|
|
6016
|
+
</dl>
|
|
6017
|
+
|
|
6018
|
+
#### 🔌 Usage
|
|
6019
|
+
|
|
6020
|
+
<dl>
|
|
6021
|
+
<dd>
|
|
6022
|
+
|
|
6023
|
+
<dl>
|
|
6024
|
+
<dd>
|
|
6025
|
+
|
|
6026
|
+
```typescript
|
|
6027
|
+
await client.business.commerce.locations.previewPickupAffectedOrders({
|
|
6028
|
+
location: "location",
|
|
6029
|
+
offers_pickup: true,
|
|
6030
|
+
preparation_minutes: 1,
|
|
6031
|
+
pickup_slot_minutes: 1,
|
|
6032
|
+
windows: [{
|
|
6033
|
+
day_of_week: 1,
|
|
6034
|
+
opens_at: "opens_at",
|
|
6035
|
+
closes_at: "closes_at"
|
|
6036
|
+
}],
|
|
6037
|
+
exceptions: [{
|
|
6038
|
+
starts_on: "starts_on",
|
|
6039
|
+
is_closed: true
|
|
6040
|
+
}]
|
|
6041
|
+
});
|
|
6042
|
+
|
|
6043
|
+
```
|
|
6044
|
+
</dd>
|
|
6045
|
+
</dl>
|
|
6046
|
+
</dd>
|
|
6047
|
+
</dl>
|
|
6048
|
+
|
|
6049
|
+
#### ⚙️ Parameters
|
|
6050
|
+
|
|
6051
|
+
<dl>
|
|
6052
|
+
<dd>
|
|
6053
|
+
|
|
6054
|
+
<dl>
|
|
6055
|
+
<dd>
|
|
6056
|
+
|
|
6057
|
+
**request:** `FiveOneEat.business.commerce.PreviewPickupScheduleRequest`
|
|
6058
|
+
|
|
6059
|
+
</dd>
|
|
6060
|
+
</dl>
|
|
6061
|
+
|
|
6062
|
+
<dl>
|
|
6063
|
+
<dd>
|
|
6064
|
+
|
|
6065
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
6066
|
+
|
|
6067
|
+
</dd>
|
|
6068
|
+
</dl>
|
|
6069
|
+
</dd>
|
|
6070
|
+
</dl>
|
|
6071
|
+
|
|
6072
|
+
|
|
6073
|
+
</dd>
|
|
6074
|
+
</dl>
|
|
6075
|
+
</details>
|
|
6076
|
+
|
|
6077
|
+
<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>
|
|
6078
|
+
<dl>
|
|
6079
|
+
<dd>
|
|
6080
|
+
|
|
6081
|
+
#### 📝 Description
|
|
6082
|
+
|
|
6083
|
+
<dl>
|
|
6084
|
+
<dd>
|
|
6085
|
+
|
|
6086
|
+
<dl>
|
|
6087
|
+
<dd>
|
|
6088
|
+
|
|
6089
|
+
Its weekly slots and exceptions, and whether it is open now. The main
|
|
6090
|
+
store and stands answer 404: the main store's hours are the business
|
|
6091
|
+
hours.
|
|
6092
|
+
</dd>
|
|
6093
|
+
</dl>
|
|
6094
|
+
</dd>
|
|
6095
|
+
</dl>
|
|
6096
|
+
|
|
6097
|
+
#### 🔌 Usage
|
|
6098
|
+
|
|
6099
|
+
<dl>
|
|
6100
|
+
<dd>
|
|
6101
|
+
|
|
6102
|
+
<dl>
|
|
6103
|
+
<dd>
|
|
6104
|
+
|
|
6105
|
+
```typescript
|
|
6106
|
+
await client.business.commerce.locations.getHours({
|
|
6107
|
+
location: "location"
|
|
6108
|
+
});
|
|
6109
|
+
|
|
6110
|
+
```
|
|
6111
|
+
</dd>
|
|
6112
|
+
</dl>
|
|
6113
|
+
</dd>
|
|
6114
|
+
</dl>
|
|
6115
|
+
|
|
6116
|
+
#### ⚙️ Parameters
|
|
6117
|
+
|
|
6118
|
+
<dl>
|
|
6119
|
+
<dd>
|
|
6120
|
+
|
|
6121
|
+
<dl>
|
|
6122
|
+
<dd>
|
|
6123
|
+
|
|
6124
|
+
**request:** `FiveOneEat.business.commerce.GetHoursLocationsRequest`
|
|
6125
|
+
|
|
6126
|
+
</dd>
|
|
6127
|
+
</dl>
|
|
6128
|
+
|
|
6129
|
+
<dl>
|
|
6130
|
+
<dd>
|
|
6131
|
+
|
|
6132
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
6133
|
+
|
|
6134
|
+
</dd>
|
|
6135
|
+
</dl>
|
|
6136
|
+
</dd>
|
|
6137
|
+
</dl>
|
|
6138
|
+
|
|
6139
|
+
|
|
6140
|
+
</dd>
|
|
6141
|
+
</dl>
|
|
6142
|
+
</details>
|
|
6143
|
+
|
|
6144
|
+
<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>
|
|
6145
|
+
<dl>
|
|
6146
|
+
<dd>
|
|
6147
|
+
|
|
6148
|
+
#### 📝 Description
|
|
6149
|
+
|
|
6150
|
+
<dl>
|
|
6151
|
+
<dd>
|
|
6152
|
+
|
|
6153
|
+
<dl>
|
|
6154
|
+
<dd>
|
|
6155
|
+
|
|
6156
|
+
Replaces the whole schedule, with the business hours' rules: a slot
|
|
6157
|
+
may close after midnight, and two slots on a day can't overlap. Send
|
|
6158
|
+
every slot and exception to keep; none to clear them.
|
|
6159
|
+
</dd>
|
|
6160
|
+
</dl>
|
|
6161
|
+
</dd>
|
|
6162
|
+
</dl>
|
|
6163
|
+
|
|
6164
|
+
#### 🔌 Usage
|
|
6165
|
+
|
|
6166
|
+
<dl>
|
|
6167
|
+
<dd>
|
|
6168
|
+
|
|
6169
|
+
<dl>
|
|
6170
|
+
<dd>
|
|
6171
|
+
|
|
6172
|
+
```typescript
|
|
6173
|
+
await client.business.commerce.locations.updateHours({
|
|
6174
|
+
location: "location",
|
|
6175
|
+
slots: [{
|
|
6176
|
+
day_of_week: 1,
|
|
6177
|
+
opens_at: "opens_at",
|
|
6178
|
+
closes_at: "closes_at"
|
|
6179
|
+
}],
|
|
6180
|
+
exceptions: [{
|
|
6181
|
+
starts_on: "starts_on",
|
|
6182
|
+
is_closed: true
|
|
6183
|
+
}]
|
|
6184
|
+
});
|
|
6185
|
+
|
|
6186
|
+
```
|
|
6187
|
+
</dd>
|
|
6188
|
+
</dl>
|
|
6189
|
+
</dd>
|
|
6190
|
+
</dl>
|
|
6191
|
+
|
|
6192
|
+
#### ⚙️ Parameters
|
|
6193
|
+
|
|
6194
|
+
<dl>
|
|
6195
|
+
<dd>
|
|
6196
|
+
|
|
6197
|
+
<dl>
|
|
6198
|
+
<dd>
|
|
6199
|
+
|
|
6200
|
+
**request:** `FiveOneEat.business.commerce.UpdateOpeningHoursRequest`
|
|
6201
|
+
|
|
6202
|
+
</dd>
|
|
6203
|
+
</dl>
|
|
6204
|
+
|
|
6205
|
+
<dl>
|
|
6206
|
+
<dd>
|
|
6207
|
+
|
|
6208
|
+
**requestOptions:** `LocationsClient.RequestOptions`
|
|
6209
|
+
|
|
6210
|
+
</dd>
|
|
6211
|
+
</dl>
|
|
6212
|
+
</dd>
|
|
6213
|
+
</dl>
|
|
6214
|
+
|
|
6215
|
+
|
|
5330
6216
|
</dd>
|
|
5331
6217
|
</dl>
|
|
5332
6218
|
</details>
|
|
@@ -5344,10 +6230,967 @@ await client.business.commerce.locations.list();
|
|
|
5344
6230
|
<dl>
|
|
5345
6231
|
<dd>
|
|
5346
6232
|
|
|
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.
|
|
6233
|
+
The business's orders, newest first, 25 to a page: `open`, `completed`,
|
|
6234
|
+
`cancelled` and `no_show` ones. An order still waiting on its payment,
|
|
6235
|
+
or whose payment never went through, isn't listed. Each order carries
|
|
6236
|
+
its store, the copy made when it was placed.
|
|
6237
|
+
</dd>
|
|
6238
|
+
</dl>
|
|
6239
|
+
</dd>
|
|
6240
|
+
</dl>
|
|
6241
|
+
|
|
6242
|
+
#### 🔌 Usage
|
|
6243
|
+
|
|
6244
|
+
<dl>
|
|
6245
|
+
<dd>
|
|
6246
|
+
|
|
6247
|
+
<dl>
|
|
6248
|
+
<dd>
|
|
6249
|
+
|
|
6250
|
+
```typescript
|
|
6251
|
+
await client.business.commerce.orders.list();
|
|
6252
|
+
|
|
6253
|
+
```
|
|
6254
|
+
</dd>
|
|
6255
|
+
</dl>
|
|
6256
|
+
</dd>
|
|
6257
|
+
</dl>
|
|
6258
|
+
|
|
6259
|
+
#### ⚙️ Parameters
|
|
6260
|
+
|
|
6261
|
+
<dl>
|
|
6262
|
+
<dd>
|
|
6263
|
+
|
|
6264
|
+
<dl>
|
|
6265
|
+
<dd>
|
|
6266
|
+
|
|
6267
|
+
**request:** `FiveOneEat.business.commerce.ListOrdersRequest`
|
|
6268
|
+
|
|
6269
|
+
</dd>
|
|
6270
|
+
</dl>
|
|
6271
|
+
|
|
6272
|
+
<dl>
|
|
6273
|
+
<dd>
|
|
6274
|
+
|
|
6275
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6276
|
+
|
|
6277
|
+
</dd>
|
|
6278
|
+
</dl>
|
|
6279
|
+
</dd>
|
|
6280
|
+
</dl>
|
|
6281
|
+
|
|
6282
|
+
|
|
6283
|
+
</dd>
|
|
6284
|
+
</dl>
|
|
6285
|
+
</details>
|
|
6286
|
+
|
|
6287
|
+
<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>
|
|
6288
|
+
<dl>
|
|
6289
|
+
<dd>
|
|
6290
|
+
|
|
6291
|
+
#### 📝 Description
|
|
6292
|
+
|
|
6293
|
+
<dl>
|
|
6294
|
+
<dd>
|
|
6295
|
+
|
|
6296
|
+
<dl>
|
|
6297
|
+
<dd>
|
|
6298
|
+
|
|
6299
|
+
With its store, buyer, lines (ordered, handed over, cancelled, still
|
|
6300
|
+
open and refunded), payments and event log. A 404 for an order that
|
|
6301
|
+
isn't listed.
|
|
6302
|
+
</dd>
|
|
6303
|
+
</dl>
|
|
6304
|
+
</dd>
|
|
6305
|
+
</dl>
|
|
6306
|
+
|
|
6307
|
+
#### 🔌 Usage
|
|
6308
|
+
|
|
6309
|
+
<dl>
|
|
6310
|
+
<dd>
|
|
6311
|
+
|
|
6312
|
+
<dl>
|
|
6313
|
+
<dd>
|
|
6314
|
+
|
|
6315
|
+
```typescript
|
|
6316
|
+
await client.business.commerce.orders.get({
|
|
6317
|
+
order: "order"
|
|
6318
|
+
});
|
|
6319
|
+
|
|
6320
|
+
```
|
|
6321
|
+
</dd>
|
|
6322
|
+
</dl>
|
|
6323
|
+
</dd>
|
|
6324
|
+
</dl>
|
|
6325
|
+
|
|
6326
|
+
#### ⚙️ Parameters
|
|
6327
|
+
|
|
6328
|
+
<dl>
|
|
6329
|
+
<dd>
|
|
6330
|
+
|
|
6331
|
+
<dl>
|
|
6332
|
+
<dd>
|
|
6333
|
+
|
|
6334
|
+
**request:** `FiveOneEat.business.commerce.GetOrdersRequest`
|
|
6335
|
+
|
|
6336
|
+
</dd>
|
|
6337
|
+
</dl>
|
|
6338
|
+
|
|
6339
|
+
<dl>
|
|
6340
|
+
<dd>
|
|
6341
|
+
|
|
6342
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6343
|
+
|
|
6344
|
+
</dd>
|
|
6345
|
+
</dl>
|
|
6346
|
+
</dd>
|
|
6347
|
+
</dl>
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
</dd>
|
|
6351
|
+
</dl>
|
|
6352
|
+
</details>
|
|
6353
|
+
|
|
6354
|
+
<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>
|
|
6355
|
+
<dl>
|
|
6356
|
+
<dd>
|
|
6357
|
+
|
|
6358
|
+
#### 📝 Description
|
|
6359
|
+
|
|
6360
|
+
<dl>
|
|
6361
|
+
<dd>
|
|
6362
|
+
|
|
6363
|
+
<dl>
|
|
6364
|
+
<dd>
|
|
6365
|
+
|
|
6366
|
+
Only an open pickup order that isn't ready yet. The buyer is told.
|
|
6367
|
+
</dd>
|
|
6368
|
+
</dl>
|
|
6369
|
+
</dd>
|
|
6370
|
+
</dl>
|
|
6371
|
+
|
|
6372
|
+
#### 🔌 Usage
|
|
6373
|
+
|
|
6374
|
+
<dl>
|
|
6375
|
+
<dd>
|
|
6376
|
+
|
|
6377
|
+
<dl>
|
|
6378
|
+
<dd>
|
|
6379
|
+
|
|
6380
|
+
```typescript
|
|
6381
|
+
await client.business.commerce.orders.markReady({
|
|
6382
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6383
|
+
order: "order"
|
|
6384
|
+
});
|
|
6385
|
+
|
|
6386
|
+
```
|
|
6387
|
+
</dd>
|
|
6388
|
+
</dl>
|
|
6389
|
+
</dd>
|
|
6390
|
+
</dl>
|
|
6391
|
+
|
|
6392
|
+
#### ⚙️ Parameters
|
|
6393
|
+
|
|
6394
|
+
<dl>
|
|
6395
|
+
<dd>
|
|
6396
|
+
|
|
6397
|
+
<dl>
|
|
6398
|
+
<dd>
|
|
6399
|
+
|
|
6400
|
+
**request:** `FiveOneEat.business.commerce.MarkReadyOrdersRequest`
|
|
6401
|
+
|
|
6402
|
+
</dd>
|
|
6403
|
+
</dl>
|
|
6404
|
+
|
|
6405
|
+
<dl>
|
|
6406
|
+
<dd>
|
|
6407
|
+
|
|
6408
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6409
|
+
|
|
6410
|
+
</dd>
|
|
6411
|
+
</dl>
|
|
6412
|
+
</dd>
|
|
6413
|
+
</dl>
|
|
6414
|
+
|
|
6415
|
+
|
|
6416
|
+
</dd>
|
|
6417
|
+
</dl>
|
|
6418
|
+
</details>
|
|
6419
|
+
|
|
6420
|
+
<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>
|
|
6421
|
+
<dl>
|
|
6422
|
+
<dd>
|
|
6423
|
+
|
|
6424
|
+
#### 📝 Description
|
|
6425
|
+
|
|
6426
|
+
<dl>
|
|
6427
|
+
<dd>
|
|
6428
|
+
|
|
6429
|
+
<dl>
|
|
6430
|
+
<dd>
|
|
6431
|
+
|
|
6432
|
+
Send `lines` (the quantity collected, by order line ID) for a partial
|
|
6433
|
+
pickup, or nothing for everything still open. The order is `completed`
|
|
6434
|
+
once nothing is left.
|
|
6435
|
+
</dd>
|
|
6436
|
+
</dl>
|
|
6437
|
+
</dd>
|
|
6438
|
+
</dl>
|
|
6439
|
+
|
|
6440
|
+
#### 🔌 Usage
|
|
6441
|
+
|
|
6442
|
+
<dl>
|
|
6443
|
+
<dd>
|
|
6444
|
+
|
|
6445
|
+
<dl>
|
|
6446
|
+
<dd>
|
|
6447
|
+
|
|
6448
|
+
```typescript
|
|
6449
|
+
await client.business.commerce.orders.markPickedUp({
|
|
6450
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6451
|
+
order: "order"
|
|
6452
|
+
});
|
|
6453
|
+
|
|
6454
|
+
```
|
|
6455
|
+
</dd>
|
|
6456
|
+
</dl>
|
|
6457
|
+
</dd>
|
|
6458
|
+
</dl>
|
|
6459
|
+
|
|
6460
|
+
#### ⚙️ Parameters
|
|
6461
|
+
|
|
6462
|
+
<dl>
|
|
6463
|
+
<dd>
|
|
6464
|
+
|
|
6465
|
+
<dl>
|
|
6466
|
+
<dd>
|
|
6467
|
+
|
|
6468
|
+
**request:** `FiveOneEat.business.commerce.PickUpOrderRequest`
|
|
6469
|
+
|
|
6470
|
+
</dd>
|
|
6471
|
+
</dl>
|
|
6472
|
+
|
|
6473
|
+
<dl>
|
|
6474
|
+
<dd>
|
|
6475
|
+
|
|
6476
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6477
|
+
|
|
6478
|
+
</dd>
|
|
6479
|
+
</dl>
|
|
6480
|
+
</dd>
|
|
6481
|
+
</dl>
|
|
6482
|
+
|
|
6483
|
+
|
|
6484
|
+
</dd>
|
|
6485
|
+
</dl>
|
|
6486
|
+
</details>
|
|
6487
|
+
|
|
6488
|
+
<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>
|
|
6489
|
+
<dl>
|
|
6490
|
+
<dd>
|
|
6491
|
+
|
|
6492
|
+
#### 📝 Description
|
|
6493
|
+
|
|
6494
|
+
<dl>
|
|
6495
|
+
<dd>
|
|
6496
|
+
|
|
6497
|
+
<dl>
|
|
6498
|
+
<dd>
|
|
6499
|
+
|
|
6500
|
+
Send `lines` to cancel some, or nothing for everything still open. A
|
|
6501
|
+
line already handed over can't be cancelled. Paid lines are refunded
|
|
6502
|
+
in the same step, with 51Eat's fee share back, unless the buyer has
|
|
6503
|
+
disputed the payment.
|
|
6504
|
+
</dd>
|
|
6505
|
+
</dl>
|
|
6506
|
+
</dd>
|
|
6507
|
+
</dl>
|
|
6508
|
+
|
|
6509
|
+
#### 🔌 Usage
|
|
6510
|
+
|
|
6511
|
+
<dl>
|
|
6512
|
+
<dd>
|
|
6513
|
+
|
|
6514
|
+
<dl>
|
|
6515
|
+
<dd>
|
|
6516
|
+
|
|
6517
|
+
```typescript
|
|
6518
|
+
await client.business.commerce.orders.cancel({
|
|
6519
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6520
|
+
order: "order",
|
|
6521
|
+
reason: "business_cancelled"
|
|
6522
|
+
});
|
|
6523
|
+
|
|
6524
|
+
```
|
|
6525
|
+
</dd>
|
|
6526
|
+
</dl>
|
|
6527
|
+
</dd>
|
|
6528
|
+
</dl>
|
|
6529
|
+
|
|
6530
|
+
#### ⚙️ Parameters
|
|
6531
|
+
|
|
6532
|
+
<dl>
|
|
6533
|
+
<dd>
|
|
6534
|
+
|
|
6535
|
+
<dl>
|
|
6536
|
+
<dd>
|
|
6537
|
+
|
|
6538
|
+
**request:** `FiveOneEat.business.commerce.CancelOrderLinesRequest`
|
|
6539
|
+
|
|
6540
|
+
</dd>
|
|
6541
|
+
</dl>
|
|
6542
|
+
|
|
6543
|
+
<dl>
|
|
6544
|
+
<dd>
|
|
6545
|
+
|
|
6546
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6547
|
+
|
|
6548
|
+
</dd>
|
|
6549
|
+
</dl>
|
|
6550
|
+
</dd>
|
|
6551
|
+
</dl>
|
|
6552
|
+
|
|
6553
|
+
|
|
6554
|
+
</dd>
|
|
6555
|
+
</dl>
|
|
6556
|
+
</details>
|
|
6557
|
+
|
|
6558
|
+
<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>
|
|
6559
|
+
<dl>
|
|
6560
|
+
<dd>
|
|
6561
|
+
|
|
6562
|
+
#### 📝 Description
|
|
6563
|
+
|
|
6564
|
+
<dl>
|
|
6565
|
+
<dd>
|
|
6566
|
+
|
|
6567
|
+
<dl>
|
|
6568
|
+
<dd>
|
|
6569
|
+
|
|
6570
|
+
Only once the pickup slot has ended (`pickup.ends_at`). What is still
|
|
6571
|
+
open is cancelled and its stock returned. Nothing is refunded: refund
|
|
6572
|
+
part or all of it, or keep the payment.
|
|
6573
|
+
</dd>
|
|
6574
|
+
</dl>
|
|
6575
|
+
</dd>
|
|
6576
|
+
</dl>
|
|
6577
|
+
|
|
6578
|
+
#### 🔌 Usage
|
|
6579
|
+
|
|
6580
|
+
<dl>
|
|
6581
|
+
<dd>
|
|
6582
|
+
|
|
6583
|
+
<dl>
|
|
6584
|
+
<dd>
|
|
6585
|
+
|
|
6586
|
+
```typescript
|
|
6587
|
+
await client.business.commerce.orders.markNoShow({
|
|
6588
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6589
|
+
order: "order"
|
|
6590
|
+
});
|
|
6591
|
+
|
|
6592
|
+
```
|
|
6593
|
+
</dd>
|
|
6594
|
+
</dl>
|
|
6595
|
+
</dd>
|
|
6596
|
+
</dl>
|
|
6597
|
+
|
|
6598
|
+
#### ⚙️ Parameters
|
|
6599
|
+
|
|
6600
|
+
<dl>
|
|
6601
|
+
<dd>
|
|
6602
|
+
|
|
6603
|
+
<dl>
|
|
6604
|
+
<dd>
|
|
6605
|
+
|
|
6606
|
+
**request:** `FiveOneEat.business.commerce.MarkNoShowOrdersRequest`
|
|
6607
|
+
|
|
6608
|
+
</dd>
|
|
6609
|
+
</dl>
|
|
6610
|
+
|
|
6611
|
+
<dl>
|
|
6612
|
+
<dd>
|
|
6613
|
+
|
|
6614
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6615
|
+
|
|
6616
|
+
</dd>
|
|
6617
|
+
</dl>
|
|
6618
|
+
</dd>
|
|
6619
|
+
</dl>
|
|
6620
|
+
|
|
6621
|
+
|
|
6622
|
+
</dd>
|
|
6623
|
+
</dl>
|
|
6624
|
+
</details>
|
|
6625
|
+
|
|
6626
|
+
<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>
|
|
6627
|
+
<dl>
|
|
6628
|
+
<dd>
|
|
6629
|
+
|
|
6630
|
+
#### 📝 Description
|
|
6631
|
+
|
|
6632
|
+
<dl>
|
|
6633
|
+
<dd>
|
|
6634
|
+
|
|
6635
|
+
<dl>
|
|
6636
|
+
<dd>
|
|
6637
|
+
|
|
6638
|
+
The business keeps the money rather than refund it. It's recorded as a
|
|
6639
|
+
`payment_kept` event; no money moves, and a refund is still possible
|
|
6640
|
+
later. Doing it twice changes nothing.
|
|
6641
|
+
</dd>
|
|
6642
|
+
</dl>
|
|
6643
|
+
</dd>
|
|
6644
|
+
</dl>
|
|
6645
|
+
|
|
6646
|
+
#### 🔌 Usage
|
|
6647
|
+
|
|
6648
|
+
<dl>
|
|
6649
|
+
<dd>
|
|
6650
|
+
|
|
6651
|
+
<dl>
|
|
6652
|
+
<dd>
|
|
6653
|
+
|
|
6654
|
+
```typescript
|
|
6655
|
+
await client.business.commerce.orders.keepPayment({
|
|
6656
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6657
|
+
order: "order"
|
|
6658
|
+
});
|
|
6659
|
+
|
|
6660
|
+
```
|
|
6661
|
+
</dd>
|
|
6662
|
+
</dl>
|
|
6663
|
+
</dd>
|
|
6664
|
+
</dl>
|
|
6665
|
+
|
|
6666
|
+
#### ⚙️ Parameters
|
|
6667
|
+
|
|
6668
|
+
<dl>
|
|
6669
|
+
<dd>
|
|
6670
|
+
|
|
6671
|
+
<dl>
|
|
6672
|
+
<dd>
|
|
6673
|
+
|
|
6674
|
+
**request:** `FiveOneEat.business.commerce.KeepPaymentOrdersRequest`
|
|
6675
|
+
|
|
6676
|
+
</dd>
|
|
6677
|
+
</dl>
|
|
6678
|
+
|
|
6679
|
+
<dl>
|
|
6680
|
+
<dd>
|
|
6681
|
+
|
|
6682
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6683
|
+
|
|
6684
|
+
</dd>
|
|
6685
|
+
</dl>
|
|
6686
|
+
</dd>
|
|
6687
|
+
</dl>
|
|
6688
|
+
|
|
6689
|
+
|
|
6690
|
+
</dd>
|
|
6691
|
+
</dl>
|
|
6692
|
+
</details>
|
|
6693
|
+
|
|
6694
|
+
<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>
|
|
6695
|
+
<dl>
|
|
6696
|
+
<dd>
|
|
6697
|
+
|
|
6698
|
+
#### 📝 Description
|
|
6699
|
+
|
|
6700
|
+
<dl>
|
|
6701
|
+
<dd>
|
|
6702
|
+
|
|
6703
|
+
<dl>
|
|
6704
|
+
<dd>
|
|
6705
|
+
|
|
6706
|
+
A quantity of each line to refund, why, and per line a store to put the
|
|
6707
|
+
returned units back on hand. For `oversell`, `business_cancelled`,
|
|
6708
|
+
`unavailable` and `platform_error` the buyer gets 51Eat's fee share
|
|
6709
|
+
back too; for `changed_mind`, `no_show` and `other` 51Eat keeps it.
|
|
6710
|
+
Nothing can be refunded while the payment is disputed.
|
|
6711
|
+
|
|
6712
|
+
A retry with the same `Idempotency-Key` returns the refund already
|
|
6713
|
+
made, with the same status, and never refunds twice.
|
|
6714
|
+
</dd>
|
|
6715
|
+
</dl>
|
|
6716
|
+
</dd>
|
|
6717
|
+
</dl>
|
|
6718
|
+
|
|
6719
|
+
#### 🔌 Usage
|
|
6720
|
+
|
|
6721
|
+
<dl>
|
|
6722
|
+
<dd>
|
|
6723
|
+
|
|
6724
|
+
<dl>
|
|
6725
|
+
<dd>
|
|
6726
|
+
|
|
6727
|
+
```typescript
|
|
6728
|
+
await client.business.commerce.orders.refund({
|
|
6729
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6730
|
+
order: "order",
|
|
6731
|
+
lines: [{
|
|
6732
|
+
order_item_id: "order_item_id",
|
|
6733
|
+
quantity: "quantity"
|
|
6734
|
+
}],
|
|
6735
|
+
reason: "oversell"
|
|
6736
|
+
});
|
|
6737
|
+
|
|
6738
|
+
```
|
|
6739
|
+
</dd>
|
|
6740
|
+
</dl>
|
|
6741
|
+
</dd>
|
|
6742
|
+
</dl>
|
|
6743
|
+
|
|
6744
|
+
#### ⚙️ Parameters
|
|
6745
|
+
|
|
6746
|
+
<dl>
|
|
6747
|
+
<dd>
|
|
6748
|
+
|
|
6749
|
+
<dl>
|
|
6750
|
+
<dd>
|
|
6751
|
+
|
|
6752
|
+
**request:** `FiveOneEat.business.commerce.RefundOrderLinesRequest`
|
|
6753
|
+
|
|
6754
|
+
</dd>
|
|
6755
|
+
</dl>
|
|
6756
|
+
|
|
6757
|
+
<dl>
|
|
6758
|
+
<dd>
|
|
6759
|
+
|
|
6760
|
+
**requestOptions:** `OrdersClient.RequestOptions`
|
|
6761
|
+
|
|
6762
|
+
</dd>
|
|
6763
|
+
</dl>
|
|
6764
|
+
</dd>
|
|
6765
|
+
</dl>
|
|
6766
|
+
|
|
6767
|
+
|
|
6768
|
+
</dd>
|
|
6769
|
+
</dl>
|
|
6770
|
+
</details>
|
|
6771
|
+
|
|
6772
|
+
## Business Commerce Products
|
|
6773
|
+
<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>
|
|
6774
|
+
<dl>
|
|
6775
|
+
<dd>
|
|
6776
|
+
|
|
6777
|
+
#### 📝 Description
|
|
6778
|
+
|
|
6779
|
+
<dl>
|
|
6780
|
+
<dd>
|
|
6781
|
+
|
|
6782
|
+
<dl>
|
|
6783
|
+
<dd>
|
|
6784
|
+
|
|
6785
|
+
Newest first, 20 a page, each with its default option and category.
|
|
6786
|
+
`search` keeps those whose name contains it, any case; `location`
|
|
6787
|
+
those offered at that store or stand, either way of buying (ignored
|
|
6788
|
+
unless it's one of the business's unarchived locations); `category`
|
|
6789
|
+
those filed in that category.
|
|
6790
|
+
</dd>
|
|
6791
|
+
</dl>
|
|
6792
|
+
</dd>
|
|
6793
|
+
</dl>
|
|
6794
|
+
|
|
6795
|
+
#### 🔌 Usage
|
|
6796
|
+
|
|
6797
|
+
<dl>
|
|
6798
|
+
<dd>
|
|
6799
|
+
|
|
6800
|
+
<dl>
|
|
6801
|
+
<dd>
|
|
6802
|
+
|
|
6803
|
+
```typescript
|
|
6804
|
+
await client.business.commerce.products.list();
|
|
6805
|
+
|
|
6806
|
+
```
|
|
6807
|
+
</dd>
|
|
6808
|
+
</dl>
|
|
6809
|
+
</dd>
|
|
6810
|
+
</dl>
|
|
6811
|
+
|
|
6812
|
+
#### ⚙️ Parameters
|
|
6813
|
+
|
|
6814
|
+
<dl>
|
|
6815
|
+
<dd>
|
|
6816
|
+
|
|
6817
|
+
<dl>
|
|
6818
|
+
<dd>
|
|
6819
|
+
|
|
6820
|
+
**request:** `FiveOneEat.business.commerce.ListProductsRequest`
|
|
6821
|
+
|
|
6822
|
+
</dd>
|
|
6823
|
+
</dl>
|
|
6824
|
+
|
|
6825
|
+
<dl>
|
|
6826
|
+
<dd>
|
|
6827
|
+
|
|
6828
|
+
**requestOptions:** `ProductsClient.RequestOptions`
|
|
6829
|
+
|
|
6830
|
+
</dd>
|
|
6831
|
+
</dl>
|
|
6832
|
+
</dd>
|
|
6833
|
+
</dl>
|
|
6834
|
+
|
|
6835
|
+
|
|
6836
|
+
</dd>
|
|
6837
|
+
</dl>
|
|
6838
|
+
</details>
|
|
6839
|
+
|
|
6840
|
+
<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>
|
|
6841
|
+
<dl>
|
|
6842
|
+
<dd>
|
|
6843
|
+
|
|
6844
|
+
#### 📝 Description
|
|
6845
|
+
|
|
6846
|
+
<dl>
|
|
6847
|
+
<dd>
|
|
6848
|
+
|
|
6849
|
+
<dl>
|
|
6850
|
+
<dd>
|
|
6851
|
+
|
|
6852
|
+
Answers 201 with the product as `GET /products/{product}` shows it. It
|
|
6853
|
+
starts with one option, the default: `price` prices it, and `compare_at_price`,
|
|
6854
|
+
`unit`, `quantity_step` and `starting_stock` need a price. Without a
|
|
6855
|
+
price the option starts unpriced. Refused with a form error on
|
|
6856
|
+
`payments` until the business can take payments, and on `is_active`
|
|
6857
|
+
when it would go on sale before 51Eat approves the business to sell.
|
|
6858
|
+
</dd>
|
|
6859
|
+
</dl>
|
|
6860
|
+
</dd>
|
|
6861
|
+
</dl>
|
|
6862
|
+
|
|
6863
|
+
#### 🔌 Usage
|
|
6864
|
+
|
|
6865
|
+
<dl>
|
|
6866
|
+
<dd>
|
|
6867
|
+
|
|
6868
|
+
<dl>
|
|
6869
|
+
<dd>
|
|
6870
|
+
|
|
6871
|
+
```typescript
|
|
6872
|
+
await client.business.commerce.products.create({
|
|
6873
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
6874
|
+
name: "name",
|
|
6875
|
+
tax_code: "tax_code"
|
|
6876
|
+
});
|
|
6877
|
+
|
|
6878
|
+
```
|
|
6879
|
+
</dd>
|
|
6880
|
+
</dl>
|
|
6881
|
+
</dd>
|
|
6882
|
+
</dl>
|
|
6883
|
+
|
|
6884
|
+
#### ⚙️ Parameters
|
|
6885
|
+
|
|
6886
|
+
<dl>
|
|
6887
|
+
<dd>
|
|
6888
|
+
|
|
6889
|
+
<dl>
|
|
6890
|
+
<dd>
|
|
6891
|
+
|
|
6892
|
+
**request:** `FiveOneEat.business.commerce.StoreProductRequest`
|
|
6893
|
+
|
|
6894
|
+
</dd>
|
|
6895
|
+
</dl>
|
|
6896
|
+
|
|
6897
|
+
<dl>
|
|
6898
|
+
<dd>
|
|
6899
|
+
|
|
6900
|
+
**requestOptions:** `ProductsClient.RequestOptions`
|
|
6901
|
+
|
|
6902
|
+
</dd>
|
|
6903
|
+
</dl>
|
|
6904
|
+
</dd>
|
|
6905
|
+
</dl>
|
|
6906
|
+
|
|
6907
|
+
|
|
6908
|
+
</dd>
|
|
6909
|
+
</dl>
|
|
6910
|
+
</details>
|
|
6911
|
+
|
|
6912
|
+
<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>
|
|
6913
|
+
<dl>
|
|
6914
|
+
<dd>
|
|
6915
|
+
|
|
6916
|
+
#### 📝 Description
|
|
6917
|
+
|
|
6918
|
+
<dl>
|
|
6919
|
+
<dd>
|
|
6920
|
+
|
|
6921
|
+
<dl>
|
|
6922
|
+
<dd>
|
|
6923
|
+
|
|
6924
|
+
With its unarchived options in order, each with its stock at every
|
|
6925
|
+
location, where it's offered (`availability`), its category, photos
|
|
6926
|
+
and tax code.
|
|
6927
|
+
</dd>
|
|
6928
|
+
</dl>
|
|
6929
|
+
</dd>
|
|
6930
|
+
</dl>
|
|
6931
|
+
|
|
6932
|
+
#### 🔌 Usage
|
|
6933
|
+
|
|
6934
|
+
<dl>
|
|
6935
|
+
<dd>
|
|
6936
|
+
|
|
6937
|
+
<dl>
|
|
6938
|
+
<dd>
|
|
6939
|
+
|
|
6940
|
+
```typescript
|
|
6941
|
+
await client.business.commerce.products.get({
|
|
6942
|
+
product: "product"
|
|
6943
|
+
});
|
|
6944
|
+
|
|
6945
|
+
```
|
|
6946
|
+
</dd>
|
|
6947
|
+
</dl>
|
|
6948
|
+
</dd>
|
|
6949
|
+
</dl>
|
|
6950
|
+
|
|
6951
|
+
#### ⚙️ Parameters
|
|
6952
|
+
|
|
6953
|
+
<dl>
|
|
6954
|
+
<dd>
|
|
6955
|
+
|
|
6956
|
+
<dl>
|
|
6957
|
+
<dd>
|
|
6958
|
+
|
|
6959
|
+
**request:** `FiveOneEat.business.commerce.GetProductsRequest`
|
|
6960
|
+
|
|
6961
|
+
</dd>
|
|
6962
|
+
</dl>
|
|
6963
|
+
|
|
6964
|
+
<dl>
|
|
6965
|
+
<dd>
|
|
6966
|
+
|
|
6967
|
+
**requestOptions:** `ProductsClient.RequestOptions`
|
|
6968
|
+
|
|
6969
|
+
</dd>
|
|
6970
|
+
</dl>
|
|
6971
|
+
</dd>
|
|
6972
|
+
</dl>
|
|
6973
|
+
|
|
6974
|
+
|
|
6975
|
+
</dd>
|
|
6976
|
+
</dl>
|
|
6977
|
+
</details>
|
|
6978
|
+
|
|
6979
|
+
<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>
|
|
6980
|
+
<dl>
|
|
6981
|
+
<dd>
|
|
6982
|
+
|
|
6983
|
+
#### 📝 Description
|
|
6984
|
+
|
|
6985
|
+
<dl>
|
|
6986
|
+
<dd>
|
|
6987
|
+
|
|
6988
|
+
<dl>
|
|
6989
|
+
<dd>
|
|
6990
|
+
|
|
6991
|
+
Saves its details. `availability`, when sent, replaces where it's
|
|
6992
|
+
offered; left out, that stays as it is.
|
|
6993
|
+
</dd>
|
|
6994
|
+
</dl>
|
|
6995
|
+
</dd>
|
|
6996
|
+
</dl>
|
|
6997
|
+
|
|
6998
|
+
#### 🔌 Usage
|
|
6999
|
+
|
|
7000
|
+
<dl>
|
|
7001
|
+
<dd>
|
|
7002
|
+
|
|
7003
|
+
<dl>
|
|
7004
|
+
<dd>
|
|
7005
|
+
|
|
7006
|
+
```typescript
|
|
7007
|
+
await client.business.commerce.products.update({
|
|
7008
|
+
product: "product",
|
|
7009
|
+
name: "name",
|
|
7010
|
+
tax_code: "tax_code"
|
|
7011
|
+
});
|
|
7012
|
+
|
|
7013
|
+
```
|
|
7014
|
+
</dd>
|
|
7015
|
+
</dl>
|
|
7016
|
+
</dd>
|
|
7017
|
+
</dl>
|
|
7018
|
+
|
|
7019
|
+
#### ⚙️ Parameters
|
|
7020
|
+
|
|
7021
|
+
<dl>
|
|
7022
|
+
<dd>
|
|
7023
|
+
|
|
7024
|
+
<dl>
|
|
7025
|
+
<dd>
|
|
7026
|
+
|
|
7027
|
+
**request:** `FiveOneEat.business.commerce.UpdateProductRequest`
|
|
7028
|
+
|
|
7029
|
+
</dd>
|
|
7030
|
+
</dl>
|
|
7031
|
+
|
|
7032
|
+
<dl>
|
|
7033
|
+
<dd>
|
|
7034
|
+
|
|
7035
|
+
**requestOptions:** `ProductsClient.RequestOptions`
|
|
7036
|
+
|
|
7037
|
+
</dd>
|
|
7038
|
+
</dl>
|
|
7039
|
+
</dd>
|
|
7040
|
+
</dl>
|
|
7041
|
+
|
|
7042
|
+
|
|
7043
|
+
</dd>
|
|
7044
|
+
</dl>
|
|
7045
|
+
</details>
|
|
7046
|
+
|
|
7047
|
+
<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>
|
|
7048
|
+
<dl>
|
|
7049
|
+
<dd>
|
|
7050
|
+
|
|
7051
|
+
#### 📝 Description
|
|
7052
|
+
|
|
7053
|
+
<dl>
|
|
7054
|
+
<dd>
|
|
7055
|
+
|
|
7056
|
+
<dl>
|
|
7057
|
+
<dd>
|
|
7058
|
+
|
|
7059
|
+
Archives it, so its orders keep it. It leaves the list and every store
|
|
7060
|
+
and stand.
|
|
7061
|
+
</dd>
|
|
7062
|
+
</dl>
|
|
7063
|
+
</dd>
|
|
7064
|
+
</dl>
|
|
7065
|
+
|
|
7066
|
+
#### 🔌 Usage
|
|
7067
|
+
|
|
7068
|
+
<dl>
|
|
7069
|
+
<dd>
|
|
7070
|
+
|
|
7071
|
+
<dl>
|
|
7072
|
+
<dd>
|
|
7073
|
+
|
|
7074
|
+
```typescript
|
|
7075
|
+
await client.business.commerce.products.delete({
|
|
7076
|
+
product: "product"
|
|
7077
|
+
});
|
|
7078
|
+
|
|
7079
|
+
```
|
|
7080
|
+
</dd>
|
|
7081
|
+
</dl>
|
|
7082
|
+
</dd>
|
|
7083
|
+
</dl>
|
|
7084
|
+
|
|
7085
|
+
#### ⚙️ Parameters
|
|
7086
|
+
|
|
7087
|
+
<dl>
|
|
7088
|
+
<dd>
|
|
7089
|
+
|
|
7090
|
+
<dl>
|
|
7091
|
+
<dd>
|
|
7092
|
+
|
|
7093
|
+
**request:** `FiveOneEat.business.commerce.DeleteProductsRequest`
|
|
7094
|
+
|
|
7095
|
+
</dd>
|
|
7096
|
+
</dl>
|
|
7097
|
+
|
|
7098
|
+
<dl>
|
|
7099
|
+
<dd>
|
|
7100
|
+
|
|
7101
|
+
**requestOptions:** `ProductsClient.RequestOptions`
|
|
7102
|
+
|
|
7103
|
+
</dd>
|
|
7104
|
+
</dl>
|
|
7105
|
+
</dd>
|
|
7106
|
+
</dl>
|
|
7107
|
+
|
|
7108
|
+
|
|
7109
|
+
</dd>
|
|
7110
|
+
</dl>
|
|
7111
|
+
</details>
|
|
7112
|
+
|
|
7113
|
+
## Business Commerce Variants
|
|
7114
|
+
<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>
|
|
7115
|
+
<dl>
|
|
7116
|
+
<dd>
|
|
7117
|
+
|
|
7118
|
+
#### 📝 Description
|
|
7119
|
+
|
|
7120
|
+
<dl>
|
|
7121
|
+
<dd>
|
|
7122
|
+
|
|
7123
|
+
<dl>
|
|
7124
|
+
<dd>
|
|
7125
|
+
|
|
7126
|
+
Its unarchived options in their order, each with its stock at every
|
|
7127
|
+
location, as `GET /products/{product}` shows them.
|
|
7128
|
+
</dd>
|
|
7129
|
+
</dl>
|
|
7130
|
+
</dd>
|
|
7131
|
+
</dl>
|
|
7132
|
+
|
|
7133
|
+
#### 🔌 Usage
|
|
7134
|
+
|
|
7135
|
+
<dl>
|
|
7136
|
+
<dd>
|
|
7137
|
+
|
|
7138
|
+
<dl>
|
|
7139
|
+
<dd>
|
|
7140
|
+
|
|
7141
|
+
```typescript
|
|
7142
|
+
await client.business.commerce.variants.list({
|
|
7143
|
+
product: "product"
|
|
7144
|
+
});
|
|
7145
|
+
|
|
7146
|
+
```
|
|
7147
|
+
</dd>
|
|
7148
|
+
</dl>
|
|
7149
|
+
</dd>
|
|
7150
|
+
</dl>
|
|
7151
|
+
|
|
7152
|
+
#### ⚙️ Parameters
|
|
7153
|
+
|
|
7154
|
+
<dl>
|
|
7155
|
+
<dd>
|
|
7156
|
+
|
|
7157
|
+
<dl>
|
|
7158
|
+
<dd>
|
|
7159
|
+
|
|
7160
|
+
**request:** `FiveOneEat.business.commerce.ListVariantsRequest`
|
|
7161
|
+
|
|
7162
|
+
</dd>
|
|
7163
|
+
</dl>
|
|
7164
|
+
|
|
7165
|
+
<dl>
|
|
7166
|
+
<dd>
|
|
7167
|
+
|
|
7168
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
7169
|
+
|
|
7170
|
+
</dd>
|
|
7171
|
+
</dl>
|
|
7172
|
+
</dd>
|
|
7173
|
+
</dl>
|
|
7174
|
+
|
|
7175
|
+
|
|
7176
|
+
</dd>
|
|
7177
|
+
</dl>
|
|
7178
|
+
</details>
|
|
7179
|
+
|
|
7180
|
+
<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>
|
|
7181
|
+
<dl>
|
|
7182
|
+
<dd>
|
|
7183
|
+
|
|
7184
|
+
#### 📝 Description
|
|
7185
|
+
|
|
7186
|
+
<dl>
|
|
7187
|
+
<dd>
|
|
7188
|
+
|
|
7189
|
+
<dl>
|
|
7190
|
+
<dd>
|
|
7191
|
+
|
|
7192
|
+
Answers 201. It counts its stock unless `tracks_inventory` is false,
|
|
7193
|
+
starting from `starting_stock` at the locations that hold stock.
|
|
5351
7194
|
</dd>
|
|
5352
7195
|
</dl>
|
|
5353
7196
|
</dd>
|
|
@@ -5362,7 +7205,14 @@ its store, the copy made when it was placed.
|
|
|
5362
7205
|
<dd>
|
|
5363
7206
|
|
|
5364
7207
|
```typescript
|
|
5365
|
-
await client.business.commerce.
|
|
7208
|
+
await client.business.commerce.variants.create({
|
|
7209
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
7210
|
+
product: "product",
|
|
7211
|
+
name: "name",
|
|
7212
|
+
price: 1.1,
|
|
7213
|
+
unit: "each",
|
|
7214
|
+
quantity_step: 1
|
|
7215
|
+
});
|
|
5366
7216
|
|
|
5367
7217
|
```
|
|
5368
7218
|
</dd>
|
|
@@ -5378,7 +7228,7 @@ await client.business.commerce.orders.list();
|
|
|
5378
7228
|
<dl>
|
|
5379
7229
|
<dd>
|
|
5380
7230
|
|
|
5381
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7231
|
+
**request:** `FiveOneEat.business.commerce.StoreVariantRequest`
|
|
5382
7232
|
|
|
5383
7233
|
</dd>
|
|
5384
7234
|
</dl>
|
|
@@ -5386,7 +7236,7 @@ await client.business.commerce.orders.list();
|
|
|
5386
7236
|
<dl>
|
|
5387
7237
|
<dd>
|
|
5388
7238
|
|
|
5389
|
-
**requestOptions:** `
|
|
7239
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
5390
7240
|
|
|
5391
7241
|
</dd>
|
|
5392
7242
|
</dl>
|
|
@@ -5398,7 +7248,7 @@ await client.business.commerce.orders.list();
|
|
|
5398
7248
|
</dl>
|
|
5399
7249
|
</details>
|
|
5400
7250
|
|
|
5401
|
-
<details><summary><code>client.business.commerce.
|
|
7251
|
+
<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>
|
|
5402
7252
|
<dl>
|
|
5403
7253
|
<dd>
|
|
5404
7254
|
|
|
@@ -5410,9 +7260,10 @@ await client.business.commerce.orders.list();
|
|
|
5410
7260
|
<dl>
|
|
5411
7261
|
<dd>
|
|
5412
7262
|
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
7263
|
+
`stock_locations` is each store and stand that counts stock, the main
|
|
7264
|
+
store first, then stores, then stands, with this option's stock there
|
|
7265
|
+
(`level` is null where it has never been counted). `locked` is true
|
|
7266
|
+
once stock or orders count in its unit, so the unit can't change.
|
|
5416
7267
|
</dd>
|
|
5417
7268
|
</dl>
|
|
5418
7269
|
</dd>
|
|
@@ -5427,8 +7278,9 @@ isn't listed.
|
|
|
5427
7278
|
<dd>
|
|
5428
7279
|
|
|
5429
7280
|
```typescript
|
|
5430
|
-
await client.business.commerce.
|
|
5431
|
-
|
|
7281
|
+
await client.business.commerce.variants.get({
|
|
7282
|
+
product: "product",
|
|
7283
|
+
variant: "variant"
|
|
5432
7284
|
});
|
|
5433
7285
|
|
|
5434
7286
|
```
|
|
@@ -5445,7 +7297,7 @@ await client.business.commerce.orders.get({
|
|
|
5445
7297
|
<dl>
|
|
5446
7298
|
<dd>
|
|
5447
7299
|
|
|
5448
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7300
|
+
**request:** `FiveOneEat.business.commerce.GetVariantsRequest`
|
|
5449
7301
|
|
|
5450
7302
|
</dd>
|
|
5451
7303
|
</dl>
|
|
@@ -5453,7 +7305,7 @@ await client.business.commerce.orders.get({
|
|
|
5453
7305
|
<dl>
|
|
5454
7306
|
<dd>
|
|
5455
7307
|
|
|
5456
|
-
**requestOptions:** `
|
|
7308
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
5457
7309
|
|
|
5458
7310
|
</dd>
|
|
5459
7311
|
</dl>
|
|
@@ -5465,7 +7317,7 @@ await client.business.commerce.orders.get({
|
|
|
5465
7317
|
</dl>
|
|
5466
7318
|
</details>
|
|
5467
7319
|
|
|
5468
|
-
<details><summary><code>client.business.commerce.
|
|
7320
|
+
<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>
|
|
5469
7321
|
<dl>
|
|
5470
7322
|
<dd>
|
|
5471
7323
|
|
|
@@ -5477,7 +7329,9 @@ await client.business.commerce.orders.get({
|
|
|
5477
7329
|
<dl>
|
|
5478
7330
|
<dd>
|
|
5479
7331
|
|
|
5480
|
-
|
|
7332
|
+
Its unit can't change once stock or orders count in it: a form error
|
|
7333
|
+
on `unit`. Left out, `tracks_inventory` and `allow_backorder` stay as
|
|
7334
|
+
they are.
|
|
5481
7335
|
</dd>
|
|
5482
7336
|
</dl>
|
|
5483
7337
|
</dd>
|
|
@@ -5492,9 +7346,13 @@ Only an open pickup order that isn't ready yet. The buyer is told.
|
|
|
5492
7346
|
<dd>
|
|
5493
7347
|
|
|
5494
7348
|
```typescript
|
|
5495
|
-
await client.business.commerce.
|
|
5496
|
-
|
|
5497
|
-
|
|
7349
|
+
await client.business.commerce.variants.update({
|
|
7350
|
+
product: "product",
|
|
7351
|
+
variant: "variant",
|
|
7352
|
+
name: "name",
|
|
7353
|
+
price: 1.1,
|
|
7354
|
+
unit: "each",
|
|
7355
|
+
quantity_step: 1
|
|
5498
7356
|
});
|
|
5499
7357
|
|
|
5500
7358
|
```
|
|
@@ -5511,7 +7369,7 @@ await client.business.commerce.orders.markReady({
|
|
|
5511
7369
|
<dl>
|
|
5512
7370
|
<dd>
|
|
5513
7371
|
|
|
5514
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7372
|
+
**request:** `FiveOneEat.business.commerce.UpdateVariantRequest`
|
|
5515
7373
|
|
|
5516
7374
|
</dd>
|
|
5517
7375
|
</dl>
|
|
@@ -5519,7 +7377,7 @@ await client.business.commerce.orders.markReady({
|
|
|
5519
7377
|
<dl>
|
|
5520
7378
|
<dd>
|
|
5521
7379
|
|
|
5522
|
-
**requestOptions:** `
|
|
7380
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
5523
7381
|
|
|
5524
7382
|
</dd>
|
|
5525
7383
|
</dl>
|
|
@@ -5531,7 +7389,7 @@ await client.business.commerce.orders.markReady({
|
|
|
5531
7389
|
</dl>
|
|
5532
7390
|
</details>
|
|
5533
7391
|
|
|
5534
|
-
<details><summary><code>client.business.commerce.
|
|
7392
|
+
<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>
|
|
5535
7393
|
<dl>
|
|
5536
7394
|
<dd>
|
|
5537
7395
|
|
|
@@ -5543,9 +7401,8 @@ await client.business.commerce.orders.markReady({
|
|
|
5543
7401
|
<dl>
|
|
5544
7402
|
<dd>
|
|
5545
7403
|
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
once nothing is left.
|
|
7404
|
+
Only one that isn't the default and has no stock or orders: otherwise
|
|
7405
|
+
a form error on `variant`, and it can only be archived.
|
|
5549
7406
|
</dd>
|
|
5550
7407
|
</dl>
|
|
5551
7408
|
</dd>
|
|
@@ -5560,9 +7417,9 @@ once nothing is left.
|
|
|
5560
7417
|
<dd>
|
|
5561
7418
|
|
|
5562
7419
|
```typescript
|
|
5563
|
-
await client.business.commerce.
|
|
5564
|
-
|
|
5565
|
-
|
|
7420
|
+
await client.business.commerce.variants.delete({
|
|
7421
|
+
product: "product",
|
|
7422
|
+
variant: "variant"
|
|
5566
7423
|
});
|
|
5567
7424
|
|
|
5568
7425
|
```
|
|
@@ -5579,7 +7436,7 @@ await client.business.commerce.orders.markPickedUp({
|
|
|
5579
7436
|
<dl>
|
|
5580
7437
|
<dd>
|
|
5581
7438
|
|
|
5582
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7439
|
+
**request:** `FiveOneEat.business.commerce.DeleteVariantsRequest`
|
|
5583
7440
|
|
|
5584
7441
|
</dd>
|
|
5585
7442
|
</dl>
|
|
@@ -5587,7 +7444,7 @@ await client.business.commerce.orders.markPickedUp({
|
|
|
5587
7444
|
<dl>
|
|
5588
7445
|
<dd>
|
|
5589
7446
|
|
|
5590
|
-
**requestOptions:** `
|
|
7447
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
5591
7448
|
|
|
5592
7449
|
</dd>
|
|
5593
7450
|
</dl>
|
|
@@ -5599,7 +7456,7 @@ await client.business.commerce.orders.markPickedUp({
|
|
|
5599
7456
|
</dl>
|
|
5600
7457
|
</details>
|
|
5601
7458
|
|
|
5602
|
-
<details><summary><code>client.business.commerce.
|
|
7459
|
+
<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>
|
|
5603
7460
|
<dl>
|
|
5604
7461
|
<dd>
|
|
5605
7462
|
|
|
@@ -5611,10 +7468,7 @@ await client.business.commerce.orders.markPickedUp({
|
|
|
5611
7468
|
<dl>
|
|
5612
7469
|
<dd>
|
|
5613
7470
|
|
|
5614
|
-
|
|
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.
|
|
7471
|
+
Just its price and "was" price, in dollars and cents.
|
|
5618
7472
|
</dd>
|
|
5619
7473
|
</dl>
|
|
5620
7474
|
</dd>
|
|
@@ -5629,10 +7483,10 @@ disputed the payment.
|
|
|
5629
7483
|
<dd>
|
|
5630
7484
|
|
|
5631
7485
|
```typescript
|
|
5632
|
-
await client.business.commerce.
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
7486
|
+
await client.business.commerce.variants.setPrice({
|
|
7487
|
+
product: "product",
|
|
7488
|
+
variant: "variant",
|
|
7489
|
+
price: 1.1
|
|
5636
7490
|
});
|
|
5637
7491
|
|
|
5638
7492
|
```
|
|
@@ -5649,7 +7503,7 @@ await client.business.commerce.orders.cancel({
|
|
|
5649
7503
|
<dl>
|
|
5650
7504
|
<dd>
|
|
5651
7505
|
|
|
5652
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7506
|
+
**request:** `FiveOneEat.business.commerce.SetVariantPriceRequest`
|
|
5653
7507
|
|
|
5654
7508
|
</dd>
|
|
5655
7509
|
</dl>
|
|
@@ -5657,7 +7511,7 @@ await client.business.commerce.orders.cancel({
|
|
|
5657
7511
|
<dl>
|
|
5658
7512
|
<dd>
|
|
5659
7513
|
|
|
5660
|
-
**requestOptions:** `
|
|
7514
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
5661
7515
|
|
|
5662
7516
|
</dd>
|
|
5663
7517
|
</dl>
|
|
@@ -5669,7 +7523,7 @@ await client.business.commerce.orders.cancel({
|
|
|
5669
7523
|
</dl>
|
|
5670
7524
|
</details>
|
|
5671
7525
|
|
|
5672
|
-
<details><summary><code>client.business.commerce.
|
|
7526
|
+
<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>
|
|
5673
7527
|
<dl>
|
|
5674
7528
|
<dd>
|
|
5675
7529
|
|
|
@@ -5681,9 +7535,10 @@ await client.business.commerce.orders.cancel({
|
|
|
5681
7535
|
<dl>
|
|
5682
7536
|
<dd>
|
|
5683
7537
|
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
7538
|
+
Takes it off sale, keeping its stock and order history. When it was
|
|
7539
|
+
the default, the next option becomes the default. The product's last
|
|
7540
|
+
option can't be archived: a form error on `variant`; remove the
|
|
7541
|
+
product instead.
|
|
5687
7542
|
</dd>
|
|
5688
7543
|
</dl>
|
|
5689
7544
|
</dd>
|
|
@@ -5698,9 +7553,9 @@ part or all of it, or keep the payment.
|
|
|
5698
7553
|
<dd>
|
|
5699
7554
|
|
|
5700
7555
|
```typescript
|
|
5701
|
-
await client.business.commerce.
|
|
5702
|
-
|
|
5703
|
-
|
|
7556
|
+
await client.business.commerce.variants.archive({
|
|
7557
|
+
product: "product",
|
|
7558
|
+
variant: "variant"
|
|
5704
7559
|
});
|
|
5705
7560
|
|
|
5706
7561
|
```
|
|
@@ -5717,7 +7572,7 @@ await client.business.commerce.orders.markNoShow({
|
|
|
5717
7572
|
<dl>
|
|
5718
7573
|
<dd>
|
|
5719
7574
|
|
|
5720
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7575
|
+
**request:** `FiveOneEat.business.commerce.ArchiveVariantsRequest`
|
|
5721
7576
|
|
|
5722
7577
|
</dd>
|
|
5723
7578
|
</dl>
|
|
@@ -5725,7 +7580,7 @@ await client.business.commerce.orders.markNoShow({
|
|
|
5725
7580
|
<dl>
|
|
5726
7581
|
<dd>
|
|
5727
7582
|
|
|
5728
|
-
**requestOptions:** `
|
|
7583
|
+
**requestOptions:** `VariantsClient.RequestOptions`
|
|
5729
7584
|
|
|
5730
7585
|
</dd>
|
|
5731
7586
|
</dl>
|
|
@@ -5737,7 +7592,8 @@ await client.business.commerce.orders.markNoShow({
|
|
|
5737
7592
|
</dl>
|
|
5738
7593
|
</details>
|
|
5739
7594
|
|
|
5740
|
-
|
|
7595
|
+
## Business Commerce Selling
|
|
7596
|
+
<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>
|
|
5741
7597
|
<dl>
|
|
5742
7598
|
<dd>
|
|
5743
7599
|
|
|
@@ -5749,9 +7605,10 @@ await client.business.commerce.orders.markNoShow({
|
|
|
5749
7605
|
<dl>
|
|
5750
7606
|
<dd>
|
|
5751
7607
|
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
7608
|
+
Selling on or off, why it can't sell yet (`blocker`, which leaves out
|
|
7609
|
+
the switch and the seller terms, since `seller_terms` answers those),
|
|
7610
|
+
the seller terms it is on and whether a newer version is due, how many
|
|
7611
|
+
stores and stands sell, and where 51Eat's approval stands.
|
|
5755
7612
|
</dd>
|
|
5756
7613
|
</dl>
|
|
5757
7614
|
</dd>
|
|
@@ -5766,9 +7623,65 @@ later. Doing it twice changes nothing.
|
|
|
5766
7623
|
<dd>
|
|
5767
7624
|
|
|
5768
7625
|
```typescript
|
|
5769
|
-
await client.business.commerce.
|
|
5770
|
-
|
|
5771
|
-
|
|
7626
|
+
await client.business.commerce.selling.get();
|
|
7627
|
+
|
|
7628
|
+
```
|
|
7629
|
+
</dd>
|
|
7630
|
+
</dl>
|
|
7631
|
+
</dd>
|
|
7632
|
+
</dl>
|
|
7633
|
+
|
|
7634
|
+
#### ⚙️ Parameters
|
|
7635
|
+
|
|
7636
|
+
<dl>
|
|
7637
|
+
<dd>
|
|
7638
|
+
|
|
7639
|
+
<dl>
|
|
7640
|
+
<dd>
|
|
7641
|
+
|
|
7642
|
+
**requestOptions:** `SellingClient.RequestOptions`
|
|
7643
|
+
|
|
7644
|
+
</dd>
|
|
7645
|
+
</dl>
|
|
7646
|
+
</dd>
|
|
7647
|
+
</dl>
|
|
7648
|
+
|
|
7649
|
+
|
|
7650
|
+
</dd>
|
|
7651
|
+
</dl>
|
|
7652
|
+
</details>
|
|
7653
|
+
|
|
7654
|
+
<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>
|
|
7655
|
+
<dl>
|
|
7656
|
+
<dd>
|
|
7657
|
+
|
|
7658
|
+
#### 📝 Description
|
|
7659
|
+
|
|
7660
|
+
<dl>
|
|
7661
|
+
<dd>
|
|
7662
|
+
|
|
7663
|
+
<dl>
|
|
7664
|
+
<dd>
|
|
7665
|
+
|
|
7666
|
+
Switching it on doesn't let the business sell until it has accepted the
|
|
7667
|
+
current seller terms, is approved and has payments set up: `blocker` and
|
|
7668
|
+
`seller_terms.due` still say what is left.
|
|
7669
|
+
</dd>
|
|
7670
|
+
</dl>
|
|
7671
|
+
</dd>
|
|
7672
|
+
</dl>
|
|
7673
|
+
|
|
7674
|
+
#### 🔌 Usage
|
|
7675
|
+
|
|
7676
|
+
<dl>
|
|
7677
|
+
<dd>
|
|
7678
|
+
|
|
7679
|
+
<dl>
|
|
7680
|
+
<dd>
|
|
7681
|
+
|
|
7682
|
+
```typescript
|
|
7683
|
+
await client.business.commerce.selling.update({
|
|
7684
|
+
enabled: true
|
|
5772
7685
|
});
|
|
5773
7686
|
|
|
5774
7687
|
```
|
|
@@ -5785,7 +7698,7 @@ await client.business.commerce.orders.keepPayment({
|
|
|
5785
7698
|
<dl>
|
|
5786
7699
|
<dd>
|
|
5787
7700
|
|
|
5788
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7701
|
+
**request:** `FiveOneEat.business.commerce.UpdateSellingRequest`
|
|
5789
7702
|
|
|
5790
7703
|
</dd>
|
|
5791
7704
|
</dl>
|
|
@@ -5793,7 +7706,7 @@ await client.business.commerce.orders.keepPayment({
|
|
|
5793
7706
|
<dl>
|
|
5794
7707
|
<dd>
|
|
5795
7708
|
|
|
5796
|
-
**requestOptions:** `
|
|
7709
|
+
**requestOptions:** `SellingClient.RequestOptions`
|
|
5797
7710
|
|
|
5798
7711
|
</dd>
|
|
5799
7712
|
</dl>
|
|
@@ -5805,7 +7718,7 @@ await client.business.commerce.orders.keepPayment({
|
|
|
5805
7718
|
</dl>
|
|
5806
7719
|
</details>
|
|
5807
7720
|
|
|
5808
|
-
<details><summary><code>client.business.commerce.
|
|
7721
|
+
<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>
|
|
5809
7722
|
<dl>
|
|
5810
7723
|
<dd>
|
|
5811
7724
|
|
|
@@ -5817,14 +7730,66 @@ await client.business.commerce.orders.keepPayment({
|
|
|
5817
7730
|
<dl>
|
|
5818
7731
|
<dd>
|
|
5819
7732
|
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
7733
|
+
The current version with its text as safe HTML, and whether the
|
|
7734
|
+
business has accepted it. 404 before 51Eat publishes the first version.
|
|
7735
|
+
</dd>
|
|
7736
|
+
</dl>
|
|
7737
|
+
</dd>
|
|
7738
|
+
</dl>
|
|
5825
7739
|
|
|
5826
|
-
|
|
5827
|
-
|
|
7740
|
+
#### 🔌 Usage
|
|
7741
|
+
|
|
7742
|
+
<dl>
|
|
7743
|
+
<dd>
|
|
7744
|
+
|
|
7745
|
+
<dl>
|
|
7746
|
+
<dd>
|
|
7747
|
+
|
|
7748
|
+
```typescript
|
|
7749
|
+
await client.business.commerce.selling.getSellerTerms();
|
|
7750
|
+
|
|
7751
|
+
```
|
|
7752
|
+
</dd>
|
|
7753
|
+
</dl>
|
|
7754
|
+
</dd>
|
|
7755
|
+
</dl>
|
|
7756
|
+
|
|
7757
|
+
#### ⚙️ Parameters
|
|
7758
|
+
|
|
7759
|
+
<dl>
|
|
7760
|
+
<dd>
|
|
7761
|
+
|
|
7762
|
+
<dl>
|
|
7763
|
+
<dd>
|
|
7764
|
+
|
|
7765
|
+
**requestOptions:** `SellingClient.RequestOptions`
|
|
7766
|
+
|
|
7767
|
+
</dd>
|
|
7768
|
+
</dl>
|
|
7769
|
+
</dd>
|
|
7770
|
+
</dl>
|
|
7771
|
+
|
|
7772
|
+
|
|
7773
|
+
</dd>
|
|
7774
|
+
</dl>
|
|
7775
|
+
</details>
|
|
7776
|
+
|
|
7777
|
+
<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>
|
|
7778
|
+
<dl>
|
|
7779
|
+
<dd>
|
|
7780
|
+
|
|
7781
|
+
#### 📝 Description
|
|
7782
|
+
|
|
7783
|
+
<dl>
|
|
7784
|
+
<dd>
|
|
7785
|
+
|
|
7786
|
+
<dl>
|
|
7787
|
+
<dd>
|
|
7788
|
+
|
|
7789
|
+
Send the `id` of the version the owner read as `version_id`. Only the
|
|
7790
|
+
owner can accept, the IP address is recorded, and a version that isn't
|
|
7791
|
+
the current one is refused with 422 on `version_id`. Accepting the
|
|
7792
|
+
version the business is already on changes nothing.
|
|
5828
7793
|
</dd>
|
|
5829
7794
|
</dl>
|
|
5830
7795
|
</dd>
|
|
@@ -5839,14 +7804,9 @@ made, with the same status, and never refunds twice.
|
|
|
5839
7804
|
<dd>
|
|
5840
7805
|
|
|
5841
7806
|
```typescript
|
|
5842
|
-
await client.business.commerce.
|
|
7807
|
+
await client.business.commerce.selling.acceptSellerTerms({
|
|
5843
7808
|
"Idempotency-Key": "Idempotency-Key",
|
|
5844
|
-
|
|
5845
|
-
lines: [{
|
|
5846
|
-
order_item_id: "order_item_id",
|
|
5847
|
-
quantity: "quantity"
|
|
5848
|
-
}],
|
|
5849
|
-
reason: "oversell"
|
|
7809
|
+
version_id: "version_id"
|
|
5850
7810
|
});
|
|
5851
7811
|
|
|
5852
7812
|
```
|
|
@@ -5863,7 +7823,7 @@ await client.business.commerce.orders.refund({
|
|
|
5863
7823
|
<dl>
|
|
5864
7824
|
<dd>
|
|
5865
7825
|
|
|
5866
|
-
**request:** `FiveOneEat.business.commerce.
|
|
7826
|
+
**request:** `FiveOneEat.business.commerce.AcceptSellerTermsRequest`
|
|
5867
7827
|
|
|
5868
7828
|
</dd>
|
|
5869
7829
|
</dl>
|
|
@@ -5871,7 +7831,75 @@ await client.business.commerce.orders.refund({
|
|
|
5871
7831
|
<dl>
|
|
5872
7832
|
<dd>
|
|
5873
7833
|
|
|
5874
|
-
**requestOptions:** `
|
|
7834
|
+
**requestOptions:** `SellingClient.RequestOptions`
|
|
7835
|
+
|
|
7836
|
+
</dd>
|
|
7837
|
+
</dl>
|
|
7838
|
+
</dd>
|
|
7839
|
+
</dl>
|
|
7840
|
+
|
|
7841
|
+
|
|
7842
|
+
</dd>
|
|
7843
|
+
</dl>
|
|
7844
|
+
</details>
|
|
7845
|
+
|
|
7846
|
+
<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>
|
|
7847
|
+
<dl>
|
|
7848
|
+
<dd>
|
|
7849
|
+
|
|
7850
|
+
#### 📝 Description
|
|
7851
|
+
|
|
7852
|
+
<dl>
|
|
7853
|
+
<dd>
|
|
7854
|
+
|
|
7855
|
+
<dl>
|
|
7856
|
+
<dd>
|
|
7857
|
+
|
|
7858
|
+
`sells_prepared_food` is only a hint for the admin who decides. Asking
|
|
7859
|
+
again changes nothing and tells nobody twice; a business 51Eat turned
|
|
7860
|
+
down can't ask again (422 on `selling_approval`).
|
|
7861
|
+
</dd>
|
|
7862
|
+
</dl>
|
|
7863
|
+
</dd>
|
|
7864
|
+
</dl>
|
|
7865
|
+
|
|
7866
|
+
#### 🔌 Usage
|
|
7867
|
+
|
|
7868
|
+
<dl>
|
|
7869
|
+
<dd>
|
|
7870
|
+
|
|
7871
|
+
<dl>
|
|
7872
|
+
<dd>
|
|
7873
|
+
|
|
7874
|
+
```typescript
|
|
7875
|
+
await client.business.commerce.selling.requestApproval({
|
|
7876
|
+
"Idempotency-Key": "Idempotency-Key",
|
|
7877
|
+
sells_prepared_food: true
|
|
7878
|
+
});
|
|
7879
|
+
|
|
7880
|
+
```
|
|
7881
|
+
</dd>
|
|
7882
|
+
</dl>
|
|
7883
|
+
</dd>
|
|
7884
|
+
</dl>
|
|
7885
|
+
|
|
7886
|
+
#### ⚙️ Parameters
|
|
7887
|
+
|
|
7888
|
+
<dl>
|
|
7889
|
+
<dd>
|
|
7890
|
+
|
|
7891
|
+
<dl>
|
|
7892
|
+
<dd>
|
|
7893
|
+
|
|
7894
|
+
**request:** `FiveOneEat.business.commerce.RequestSellingApprovalRequest`
|
|
7895
|
+
|
|
7896
|
+
</dd>
|
|
7897
|
+
</dl>
|
|
7898
|
+
|
|
7899
|
+
<dl>
|
|
7900
|
+
<dd>
|
|
7901
|
+
|
|
7902
|
+
**requestOptions:** `SellingClient.RequestOptions`
|
|
5875
7903
|
|
|
5876
7904
|
</dd>
|
|
5877
7905
|
</dl>
|
|
@@ -9624,11 +11652,15 @@ await client.commerce.orders.get({
|
|
|
9624
11652
|
<dd>
|
|
9625
11653
|
|
|
9626
11654
|
Puts a variant in the cart, or adds to its line when it's there. The
|
|
9627
|
-
variant has to be the business's
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
11655
|
+
variant has to be the business's and for sale. An in-person cart takes
|
|
11656
|
+
what its stand sells. An online cart takes what any of the business's
|
|
11657
|
+
locations offers for pickup: when the cart's own store doesn't, a cart
|
|
11658
|
+
with items keeps its store and the line comes back with `offered_here`
|
|
11659
|
+
false (the quote blocks it until the buyer removes it or switches to a
|
|
11660
|
+
store that offers it), and a cart with no items drops its store, so
|
|
11661
|
+
`location` is null and the buyer chooses one. The quantity is in the
|
|
11662
|
+
variant's unit, a whole number of its `quantity_step`, from 1 to 1000
|
|
11663
|
+
steps. Answers with the cart.
|
|
9632
11664
|
</dd>
|
|
9633
11665
|
</dl>
|
|
9634
11666
|
</dd>
|