@51eat/sdk 0.0.42 → 0.0.44
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/products/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +259 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +259 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +42 -0
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +24 -24
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +4 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +16 -16
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +16 -16
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/StoreEventRsvpRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +12 -12
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -2
- package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
- package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
- package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
- package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
- package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
- package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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/products/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +24 -24
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +4 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +16 -16
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +16 -16
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/StoreEventRsvpRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +12 -12
- package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -2
- package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
- package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
- package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
- package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
- package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
- package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +23 -1
- package/reference.md +428 -82
package/reference.md
CHANGED
|
@@ -7503,6 +7503,330 @@ await client.business.products.variants.delete({
|
|
|
7503
7503
|
</dl>
|
|
7504
7504
|
|
|
7505
7505
|
|
|
7506
|
+
</dd>
|
|
7507
|
+
</dl>
|
|
7508
|
+
</details>
|
|
7509
|
+
|
|
7510
|
+
## Business Products Images
|
|
7511
|
+
<details><summary><code>client.business.products.images.<a href="/src/api/resources/business/resources/products/resources/images/client/Client.ts">upload</a>({ ...params }) -> FiveOneEat.UploadImagesResponse</code></summary>
|
|
7512
|
+
<dl>
|
|
7513
|
+
<dd>
|
|
7514
|
+
|
|
7515
|
+
#### 🔌 Usage
|
|
7516
|
+
|
|
7517
|
+
<dl>
|
|
7518
|
+
<dd>
|
|
7519
|
+
|
|
7520
|
+
<dl>
|
|
7521
|
+
<dd>
|
|
7522
|
+
|
|
7523
|
+
```typescript
|
|
7524
|
+
await client.business.products.images.upload({
|
|
7525
|
+
image: fs.createReadStream("/path/to/your/file"),
|
|
7526
|
+
product: "product"
|
|
7527
|
+
});
|
|
7528
|
+
|
|
7529
|
+
```
|
|
7530
|
+
</dd>
|
|
7531
|
+
</dl>
|
|
7532
|
+
</dd>
|
|
7533
|
+
</dl>
|
|
7534
|
+
|
|
7535
|
+
#### ⚙️ Parameters
|
|
7536
|
+
|
|
7537
|
+
<dl>
|
|
7538
|
+
<dd>
|
|
7539
|
+
|
|
7540
|
+
<dl>
|
|
7541
|
+
<dd>
|
|
7542
|
+
|
|
7543
|
+
**request:** `FiveOneEat.business.products.UploadImagesRequest`
|
|
7544
|
+
|
|
7545
|
+
</dd>
|
|
7546
|
+
</dl>
|
|
7547
|
+
|
|
7548
|
+
<dl>
|
|
7549
|
+
<dd>
|
|
7550
|
+
|
|
7551
|
+
**requestOptions:** `ImagesClient.RequestOptions`
|
|
7552
|
+
|
|
7553
|
+
</dd>
|
|
7554
|
+
</dl>
|
|
7555
|
+
</dd>
|
|
7556
|
+
</dl>
|
|
7557
|
+
|
|
7558
|
+
|
|
7559
|
+
</dd>
|
|
7560
|
+
</dl>
|
|
7561
|
+
</details>
|
|
7562
|
+
|
|
7563
|
+
<details><summary><code>client.business.products.images.<a href="/src/api/resources/business/resources/products/resources/images/client/Client.ts">reorder</a>({ ...params }) -> FiveOneEat.ReorderImagesResponse</code></summary>
|
|
7564
|
+
<dl>
|
|
7565
|
+
<dd>
|
|
7566
|
+
|
|
7567
|
+
#### 🔌 Usage
|
|
7568
|
+
|
|
7569
|
+
<dl>
|
|
7570
|
+
<dd>
|
|
7571
|
+
|
|
7572
|
+
<dl>
|
|
7573
|
+
<dd>
|
|
7574
|
+
|
|
7575
|
+
```typescript
|
|
7576
|
+
await client.business.products.images.reorder({
|
|
7577
|
+
product: "product",
|
|
7578
|
+
body: {
|
|
7579
|
+
images: [{
|
|
7580
|
+
id: "id",
|
|
7581
|
+
sort_order: 1
|
|
7582
|
+
}]
|
|
7583
|
+
}
|
|
7584
|
+
});
|
|
7585
|
+
|
|
7586
|
+
```
|
|
7587
|
+
</dd>
|
|
7588
|
+
</dl>
|
|
7589
|
+
</dd>
|
|
7590
|
+
</dl>
|
|
7591
|
+
|
|
7592
|
+
#### ⚙️ Parameters
|
|
7593
|
+
|
|
7594
|
+
<dl>
|
|
7595
|
+
<dd>
|
|
7596
|
+
|
|
7597
|
+
<dl>
|
|
7598
|
+
<dd>
|
|
7599
|
+
|
|
7600
|
+
**request:** `FiveOneEat.business.products.ReorderImagesRequest`
|
|
7601
|
+
|
|
7602
|
+
</dd>
|
|
7603
|
+
</dl>
|
|
7604
|
+
|
|
7605
|
+
<dl>
|
|
7606
|
+
<dd>
|
|
7607
|
+
|
|
7608
|
+
**requestOptions:** `ImagesClient.RequestOptions`
|
|
7609
|
+
|
|
7610
|
+
</dd>
|
|
7611
|
+
</dl>
|
|
7612
|
+
</dd>
|
|
7613
|
+
</dl>
|
|
7614
|
+
|
|
7615
|
+
|
|
7616
|
+
</dd>
|
|
7617
|
+
</dl>
|
|
7618
|
+
</details>
|
|
7619
|
+
|
|
7620
|
+
<details><summary><code>client.business.products.images.<a href="/src/api/resources/business/resources/products/resources/images/client/Client.ts">delete</a>({ ...params }) -> FiveOneEat.DeleteImagesResponse</code></summary>
|
|
7621
|
+
<dl>
|
|
7622
|
+
<dd>
|
|
7623
|
+
|
|
7624
|
+
#### 🔌 Usage
|
|
7625
|
+
|
|
7626
|
+
<dl>
|
|
7627
|
+
<dd>
|
|
7628
|
+
|
|
7629
|
+
<dl>
|
|
7630
|
+
<dd>
|
|
7631
|
+
|
|
7632
|
+
```typescript
|
|
7633
|
+
await client.business.products.images.delete({
|
|
7634
|
+
product: "product",
|
|
7635
|
+
image: "image"
|
|
7636
|
+
});
|
|
7637
|
+
|
|
7638
|
+
```
|
|
7639
|
+
</dd>
|
|
7640
|
+
</dl>
|
|
7641
|
+
</dd>
|
|
7642
|
+
</dl>
|
|
7643
|
+
|
|
7644
|
+
#### ⚙️ Parameters
|
|
7645
|
+
|
|
7646
|
+
<dl>
|
|
7647
|
+
<dd>
|
|
7648
|
+
|
|
7649
|
+
<dl>
|
|
7650
|
+
<dd>
|
|
7651
|
+
|
|
7652
|
+
**request:** `FiveOneEat.business.products.DeleteImagesRequest`
|
|
7653
|
+
|
|
7654
|
+
</dd>
|
|
7655
|
+
</dl>
|
|
7656
|
+
|
|
7657
|
+
<dl>
|
|
7658
|
+
<dd>
|
|
7659
|
+
|
|
7660
|
+
**requestOptions:** `ImagesClient.RequestOptions`
|
|
7661
|
+
|
|
7662
|
+
</dd>
|
|
7663
|
+
</dl>
|
|
7664
|
+
</dd>
|
|
7665
|
+
</dl>
|
|
7666
|
+
|
|
7667
|
+
|
|
7668
|
+
</dd>
|
|
7669
|
+
</dl>
|
|
7670
|
+
</details>
|
|
7671
|
+
|
|
7672
|
+
## Business Products Variants Images
|
|
7673
|
+
<details><summary><code>client.business.products.variants.images.<a href="/src/api/resources/business/resources/products/resources/variants/resources/images/client/Client.ts">upload</a>({ ...params }) -> FiveOneEat.UploadImagesResponse</code></summary>
|
|
7674
|
+
<dl>
|
|
7675
|
+
<dd>
|
|
7676
|
+
|
|
7677
|
+
#### 🔌 Usage
|
|
7678
|
+
|
|
7679
|
+
<dl>
|
|
7680
|
+
<dd>
|
|
7681
|
+
|
|
7682
|
+
<dl>
|
|
7683
|
+
<dd>
|
|
7684
|
+
|
|
7685
|
+
```typescript
|
|
7686
|
+
await client.business.products.variants.images.upload({
|
|
7687
|
+
image: fs.createReadStream("/path/to/your/file"),
|
|
7688
|
+
variant: "variant"
|
|
7689
|
+
});
|
|
7690
|
+
|
|
7691
|
+
```
|
|
7692
|
+
</dd>
|
|
7693
|
+
</dl>
|
|
7694
|
+
</dd>
|
|
7695
|
+
</dl>
|
|
7696
|
+
|
|
7697
|
+
#### ⚙️ Parameters
|
|
7698
|
+
|
|
7699
|
+
<dl>
|
|
7700
|
+
<dd>
|
|
7701
|
+
|
|
7702
|
+
<dl>
|
|
7703
|
+
<dd>
|
|
7704
|
+
|
|
7705
|
+
**request:** `FiveOneEat.business.products.variants.UploadImagesRequest`
|
|
7706
|
+
|
|
7707
|
+
</dd>
|
|
7708
|
+
</dl>
|
|
7709
|
+
|
|
7710
|
+
<dl>
|
|
7711
|
+
<dd>
|
|
7712
|
+
|
|
7713
|
+
**requestOptions:** `ImagesClient.RequestOptions`
|
|
7714
|
+
|
|
7715
|
+
</dd>
|
|
7716
|
+
</dl>
|
|
7717
|
+
</dd>
|
|
7718
|
+
</dl>
|
|
7719
|
+
|
|
7720
|
+
|
|
7721
|
+
</dd>
|
|
7722
|
+
</dl>
|
|
7723
|
+
</details>
|
|
7724
|
+
|
|
7725
|
+
<details><summary><code>client.business.products.variants.images.<a href="/src/api/resources/business/resources/products/resources/variants/resources/images/client/Client.ts">reorder</a>({ ...params }) -> FiveOneEat.ReorderImagesResponse</code></summary>
|
|
7726
|
+
<dl>
|
|
7727
|
+
<dd>
|
|
7728
|
+
|
|
7729
|
+
#### 🔌 Usage
|
|
7730
|
+
|
|
7731
|
+
<dl>
|
|
7732
|
+
<dd>
|
|
7733
|
+
|
|
7734
|
+
<dl>
|
|
7735
|
+
<dd>
|
|
7736
|
+
|
|
7737
|
+
```typescript
|
|
7738
|
+
await client.business.products.variants.images.reorder({
|
|
7739
|
+
variant: "variant",
|
|
7740
|
+
body: {
|
|
7741
|
+
images: [{
|
|
7742
|
+
id: "id",
|
|
7743
|
+
sort_order: 1
|
|
7744
|
+
}]
|
|
7745
|
+
}
|
|
7746
|
+
});
|
|
7747
|
+
|
|
7748
|
+
```
|
|
7749
|
+
</dd>
|
|
7750
|
+
</dl>
|
|
7751
|
+
</dd>
|
|
7752
|
+
</dl>
|
|
7753
|
+
|
|
7754
|
+
#### ⚙️ Parameters
|
|
7755
|
+
|
|
7756
|
+
<dl>
|
|
7757
|
+
<dd>
|
|
7758
|
+
|
|
7759
|
+
<dl>
|
|
7760
|
+
<dd>
|
|
7761
|
+
|
|
7762
|
+
**request:** `FiveOneEat.business.products.variants.ReorderImagesRequest`
|
|
7763
|
+
|
|
7764
|
+
</dd>
|
|
7765
|
+
</dl>
|
|
7766
|
+
|
|
7767
|
+
<dl>
|
|
7768
|
+
<dd>
|
|
7769
|
+
|
|
7770
|
+
**requestOptions:** `ImagesClient.RequestOptions`
|
|
7771
|
+
|
|
7772
|
+
</dd>
|
|
7773
|
+
</dl>
|
|
7774
|
+
</dd>
|
|
7775
|
+
</dl>
|
|
7776
|
+
|
|
7777
|
+
|
|
7778
|
+
</dd>
|
|
7779
|
+
</dl>
|
|
7780
|
+
</details>
|
|
7781
|
+
|
|
7782
|
+
<details><summary><code>client.business.products.variants.images.<a href="/src/api/resources/business/resources/products/resources/variants/resources/images/client/Client.ts">delete</a>({ ...params }) -> FiveOneEat.DeleteImagesResponse</code></summary>
|
|
7783
|
+
<dl>
|
|
7784
|
+
<dd>
|
|
7785
|
+
|
|
7786
|
+
#### 🔌 Usage
|
|
7787
|
+
|
|
7788
|
+
<dl>
|
|
7789
|
+
<dd>
|
|
7790
|
+
|
|
7791
|
+
<dl>
|
|
7792
|
+
<dd>
|
|
7793
|
+
|
|
7794
|
+
```typescript
|
|
7795
|
+
await client.business.products.variants.images.delete({
|
|
7796
|
+
variant: "variant",
|
|
7797
|
+
image: "image"
|
|
7798
|
+
});
|
|
7799
|
+
|
|
7800
|
+
```
|
|
7801
|
+
</dd>
|
|
7802
|
+
</dl>
|
|
7803
|
+
</dd>
|
|
7804
|
+
</dl>
|
|
7805
|
+
|
|
7806
|
+
#### ⚙️ Parameters
|
|
7807
|
+
|
|
7808
|
+
<dl>
|
|
7809
|
+
<dd>
|
|
7810
|
+
|
|
7811
|
+
<dl>
|
|
7812
|
+
<dd>
|
|
7813
|
+
|
|
7814
|
+
**request:** `FiveOneEat.business.products.variants.DeleteImagesRequest`
|
|
7815
|
+
|
|
7816
|
+
</dd>
|
|
7817
|
+
</dl>
|
|
7818
|
+
|
|
7819
|
+
<dl>
|
|
7820
|
+
<dd>
|
|
7821
|
+
|
|
7822
|
+
**requestOptions:** `ImagesClient.RequestOptions`
|
|
7823
|
+
|
|
7824
|
+
</dd>
|
|
7825
|
+
</dl>
|
|
7826
|
+
</dd>
|
|
7827
|
+
</dl>
|
|
7828
|
+
|
|
7829
|
+
|
|
7506
7830
|
</dd>
|
|
7507
7831
|
</dl>
|
|
7508
7832
|
</details>
|
|
@@ -8286,7 +8610,7 @@ Retrieve core business information for the profile page.
|
|
|
8286
8610
|
|
|
8287
8611
|
```typescript
|
|
8288
8612
|
await client.customer.businesses.profile({
|
|
8289
|
-
|
|
8613
|
+
business: "katzs-deli"
|
|
8290
8614
|
});
|
|
8291
8615
|
|
|
8292
8616
|
```
|
|
@@ -8351,7 +8675,7 @@ Retrieve all menus organized by groups for the business.
|
|
|
8351
8675
|
|
|
8352
8676
|
```typescript
|
|
8353
8677
|
await client.customer.businesses.menus({
|
|
8354
|
-
|
|
8678
|
+
business: "katzs-deli"
|
|
8355
8679
|
});
|
|
8356
8680
|
|
|
8357
8681
|
```
|
|
@@ -8416,7 +8740,7 @@ Retrieve photo gallery for the business with pagination.
|
|
|
8416
8740
|
|
|
8417
8741
|
```typescript
|
|
8418
8742
|
await client.customer.businesses.photos({
|
|
8419
|
-
|
|
8743
|
+
business: "katzs-deli"
|
|
8420
8744
|
});
|
|
8421
8745
|
|
|
8422
8746
|
```
|
|
@@ -8481,7 +8805,7 @@ Add a business to the authenticated user's favorites.
|
|
|
8481
8805
|
|
|
8482
8806
|
```typescript
|
|
8483
8807
|
await client.customer.businesses.favorite({
|
|
8484
|
-
|
|
8808
|
+
business: "katzs-deli"
|
|
8485
8809
|
});
|
|
8486
8810
|
|
|
8487
8811
|
```
|
|
@@ -8546,7 +8870,7 @@ Remove a business from the authenticated user's favorites.
|
|
|
8546
8870
|
|
|
8547
8871
|
```typescript
|
|
8548
8872
|
await client.customer.businesses.unfavorite({
|
|
8549
|
-
|
|
8873
|
+
business: "katzs-deli"
|
|
8550
8874
|
});
|
|
8551
8875
|
|
|
8552
8876
|
```
|
|
@@ -8611,7 +8935,7 @@ Retrieve active and upcoming temporary locations for a business.
|
|
|
8611
8935
|
|
|
8612
8936
|
```typescript
|
|
8613
8937
|
await client.customer.businesses.listTemporaryLocations({
|
|
8614
|
-
|
|
8938
|
+
business: "katzs-deli"
|
|
8615
8939
|
});
|
|
8616
8940
|
|
|
8617
8941
|
```
|
|
@@ -8649,7 +8973,7 @@ await client.customer.businesses.listTemporaryLocations({
|
|
|
8649
8973
|
</details>
|
|
8650
8974
|
|
|
8651
8975
|
## Customer Cart
|
|
8652
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">get</a>() -> FiveOneEat.GetCartResponse</code></summary>
|
|
8976
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">get</a>({ ...params }) -> FiveOneEat.GetCartResponse</code></summary>
|
|
8653
8977
|
<dl>
|
|
8654
8978
|
<dd>
|
|
8655
8979
|
|
|
@@ -8662,7 +8986,9 @@ await client.customer.businesses.listTemporaryLocations({
|
|
|
8662
8986
|
<dd>
|
|
8663
8987
|
|
|
8664
8988
|
```typescript
|
|
8665
|
-
await client.customer.cart.get(
|
|
8989
|
+
await client.customer.cart.get({
|
|
8990
|
+
business: "katzs-deli"
|
|
8991
|
+
});
|
|
8666
8992
|
|
|
8667
8993
|
```
|
|
8668
8994
|
</dd>
|
|
@@ -8678,6 +9004,14 @@ await client.customer.cart.get();
|
|
|
8678
9004
|
<dl>
|
|
8679
9005
|
<dd>
|
|
8680
9006
|
|
|
9007
|
+
**request:** `FiveOneEat.customer.GetCartRequest`
|
|
9008
|
+
|
|
9009
|
+
</dd>
|
|
9010
|
+
</dl>
|
|
9011
|
+
|
|
9012
|
+
<dl>
|
|
9013
|
+
<dd>
|
|
9014
|
+
|
|
8681
9015
|
**requestOptions:** `CartClient.RequestOptions`
|
|
8682
9016
|
|
|
8683
9017
|
</dd>
|
|
@@ -8704,7 +9038,7 @@ await client.customer.cart.get();
|
|
|
8704
9038
|
|
|
8705
9039
|
```typescript
|
|
8706
9040
|
await client.customer.cart.addItem({
|
|
8707
|
-
|
|
9041
|
+
business: "katzs-deli",
|
|
8708
9042
|
product_id: 1,
|
|
8709
9043
|
quantity: 1
|
|
8710
9044
|
});
|
|
@@ -8743,7 +9077,7 @@ await client.customer.cart.addItem({
|
|
|
8743
9077
|
</dl>
|
|
8744
9078
|
</details>
|
|
8745
9079
|
|
|
8746
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">clear</a>() -> FiveOneEat.ClearCartResponse</code></summary>
|
|
9080
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">clear</a>({ ...params }) -> FiveOneEat.ClearCartResponse</code></summary>
|
|
8747
9081
|
<dl>
|
|
8748
9082
|
<dd>
|
|
8749
9083
|
|
|
@@ -8756,7 +9090,9 @@ await client.customer.cart.addItem({
|
|
|
8756
9090
|
<dd>
|
|
8757
9091
|
|
|
8758
9092
|
```typescript
|
|
8759
|
-
await client.customer.cart.clear(
|
|
9093
|
+
await client.customer.cart.clear({
|
|
9094
|
+
business: "katzs-deli"
|
|
9095
|
+
});
|
|
8760
9096
|
|
|
8761
9097
|
```
|
|
8762
9098
|
</dd>
|
|
@@ -8772,6 +9108,14 @@ await client.customer.cart.clear();
|
|
|
8772
9108
|
<dl>
|
|
8773
9109
|
<dd>
|
|
8774
9110
|
|
|
9111
|
+
**request:** `FiveOneEat.customer.ClearCartRequest`
|
|
9112
|
+
|
|
9113
|
+
</dd>
|
|
9114
|
+
</dl>
|
|
9115
|
+
|
|
9116
|
+
<dl>
|
|
9117
|
+
<dd>
|
|
9118
|
+
|
|
8775
9119
|
**requestOptions:** `CartClient.RequestOptions`
|
|
8776
9120
|
|
|
8777
9121
|
</dd>
|
|
@@ -8784,10 +9128,24 @@ await client.customer.cart.clear();
|
|
|
8784
9128
|
</dl>
|
|
8785
9129
|
</details>
|
|
8786
9130
|
|
|
8787
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">
|
|
9131
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">createPaymentIntent</a>({ ...params }) -> FiveOneEat.CreatePaymentIntentCartResponse</code></summary>
|
|
8788
9132
|
<dl>
|
|
8789
9133
|
<dd>
|
|
8790
9134
|
|
|
9135
|
+
#### 📝 Description
|
|
9136
|
+
|
|
9137
|
+
<dl>
|
|
9138
|
+
<dd>
|
|
9139
|
+
|
|
9140
|
+
<dl>
|
|
9141
|
+
<dd>
|
|
9142
|
+
|
|
9143
|
+
Returns client_secret, price breakdown, and tax calculation for use with Stripe SDK.
|
|
9144
|
+
</dd>
|
|
9145
|
+
</dl>
|
|
9146
|
+
</dd>
|
|
9147
|
+
</dl>
|
|
9148
|
+
|
|
8791
9149
|
#### 🔌 Usage
|
|
8792
9150
|
|
|
8793
9151
|
<dl>
|
|
@@ -8797,9 +9155,15 @@ await client.customer.cart.clear();
|
|
|
8797
9155
|
<dd>
|
|
8798
9156
|
|
|
8799
9157
|
```typescript
|
|
8800
|
-
await client.customer.cart.
|
|
8801
|
-
|
|
8802
|
-
|
|
9158
|
+
await client.customer.cart.createPaymentIntent({
|
|
9159
|
+
business: "katzs-deli",
|
|
9160
|
+
billing_address: {
|
|
9161
|
+
line1: "line1",
|
|
9162
|
+
city: "city",
|
|
9163
|
+
state: "state",
|
|
9164
|
+
postal_code: "postal_code",
|
|
9165
|
+
country: "country"
|
|
9166
|
+
}
|
|
8803
9167
|
});
|
|
8804
9168
|
|
|
8805
9169
|
```
|
|
@@ -8816,7 +9180,7 @@ await client.customer.cart.updateItem({
|
|
|
8816
9180
|
<dl>
|
|
8817
9181
|
<dd>
|
|
8818
9182
|
|
|
8819
|
-
**request:** `FiveOneEat.customer.
|
|
9183
|
+
**request:** `FiveOneEat.customer.CreatePaymentIntentRequest`
|
|
8820
9184
|
|
|
8821
9185
|
</dd>
|
|
8822
9186
|
</dl>
|
|
@@ -8836,10 +9200,25 @@ await client.customer.cart.updateItem({
|
|
|
8836
9200
|
</dl>
|
|
8837
9201
|
</details>
|
|
8838
9202
|
|
|
8839
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">
|
|
9203
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">checkout</a>({ ...params }) -> FiveOneEat.CheckoutCartResponse</code></summary>
|
|
8840
9204
|
<dl>
|
|
8841
9205
|
<dd>
|
|
8842
9206
|
|
|
9207
|
+
#### 📝 Description
|
|
9208
|
+
|
|
9209
|
+
<dl>
|
|
9210
|
+
<dd>
|
|
9211
|
+
|
|
9212
|
+
<dl>
|
|
9213
|
+
<dd>
|
|
9214
|
+
|
|
9215
|
+
Verifies the Stripe payment intent, creates the order, decrements inventory,
|
|
9216
|
+
clears the cart, and dispatches order confirmation notifications.
|
|
9217
|
+
</dd>
|
|
9218
|
+
</dl>
|
|
9219
|
+
</dd>
|
|
9220
|
+
</dl>
|
|
9221
|
+
|
|
8843
9222
|
#### 🔌 Usage
|
|
8844
9223
|
|
|
8845
9224
|
<dl>
|
|
@@ -8849,8 +9228,16 @@ await client.customer.cart.updateItem({
|
|
|
8849
9228
|
<dd>
|
|
8850
9229
|
|
|
8851
9230
|
```typescript
|
|
8852
|
-
await client.customer.cart.
|
|
8853
|
-
|
|
9231
|
+
await client.customer.cart.checkout({
|
|
9232
|
+
business: "katzs-deli",
|
|
9233
|
+
payment_intent_id: "payment_intent_id",
|
|
9234
|
+
billing_address: {
|
|
9235
|
+
line1: "line1",
|
|
9236
|
+
city: "city",
|
|
9237
|
+
state: "state",
|
|
9238
|
+
postal_code: "postal_code",
|
|
9239
|
+
country: "country"
|
|
9240
|
+
}
|
|
8854
9241
|
});
|
|
8855
9242
|
|
|
8856
9243
|
```
|
|
@@ -8867,7 +9254,7 @@ await client.customer.cart.removeItem({
|
|
|
8867
9254
|
<dl>
|
|
8868
9255
|
<dd>
|
|
8869
9256
|
|
|
8870
|
-
**request:** `FiveOneEat.customer.
|
|
9257
|
+
**request:** `FiveOneEat.customer.CheckoutRequest`
|
|
8871
9258
|
|
|
8872
9259
|
</dd>
|
|
8873
9260
|
</dl>
|
|
@@ -8887,24 +9274,10 @@ await client.customer.cart.removeItem({
|
|
|
8887
9274
|
</dl>
|
|
8888
9275
|
</details>
|
|
8889
9276
|
|
|
8890
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">
|
|
8891
|
-
<dl>
|
|
8892
|
-
<dd>
|
|
8893
|
-
|
|
8894
|
-
#### 📝 Description
|
|
8895
|
-
|
|
8896
|
-
<dl>
|
|
8897
|
-
<dd>
|
|
8898
|
-
|
|
9277
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">updateItem</a>({ ...params }) -> FiveOneEat.UpdateItemCartResponse</code></summary>
|
|
8899
9278
|
<dl>
|
|
8900
9279
|
<dd>
|
|
8901
9280
|
|
|
8902
|
-
Returns client_secret, price breakdown, and tax calculation for use with Stripe SDK.
|
|
8903
|
-
</dd>
|
|
8904
|
-
</dl>
|
|
8905
|
-
</dd>
|
|
8906
|
-
</dl>
|
|
8907
|
-
|
|
8908
9281
|
#### 🔌 Usage
|
|
8909
9282
|
|
|
8910
9283
|
<dl>
|
|
@@ -8914,14 +9287,9 @@ Returns client_secret, price breakdown, and tax calculation for use with Stripe
|
|
|
8914
9287
|
<dd>
|
|
8915
9288
|
|
|
8916
9289
|
```typescript
|
|
8917
|
-
await client.customer.cart.
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
city: "city",
|
|
8921
|
-
state: "state",
|
|
8922
|
-
postal_code: "postal_code",
|
|
8923
|
-
country: "country"
|
|
8924
|
-
}
|
|
9290
|
+
await client.customer.cart.updateItem({
|
|
9291
|
+
cartItem: "cartItem",
|
|
9292
|
+
quantity: 1
|
|
8925
9293
|
});
|
|
8926
9294
|
|
|
8927
9295
|
```
|
|
@@ -8938,7 +9306,7 @@ await client.customer.cart.createPaymentIntent({
|
|
|
8938
9306
|
<dl>
|
|
8939
9307
|
<dd>
|
|
8940
9308
|
|
|
8941
|
-
**request:** `FiveOneEat.customer.
|
|
9309
|
+
**request:** `FiveOneEat.customer.UpdateCartItemRequest`
|
|
8942
9310
|
|
|
8943
9311
|
</dd>
|
|
8944
9312
|
</dl>
|
|
@@ -8958,25 +9326,10 @@ await client.customer.cart.createPaymentIntent({
|
|
|
8958
9326
|
</dl>
|
|
8959
9327
|
</details>
|
|
8960
9328
|
|
|
8961
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">
|
|
8962
|
-
<dl>
|
|
8963
|
-
<dd>
|
|
8964
|
-
|
|
8965
|
-
#### 📝 Description
|
|
8966
|
-
|
|
8967
|
-
<dl>
|
|
8968
|
-
<dd>
|
|
8969
|
-
|
|
9329
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">removeItem</a>({ ...params }) -> FiveOneEat.RemoveItemCartResponse</code></summary>
|
|
8970
9330
|
<dl>
|
|
8971
9331
|
<dd>
|
|
8972
9332
|
|
|
8973
|
-
Verifies the Stripe payment intent, creates the order, decrements inventory,
|
|
8974
|
-
clears the cart, and dispatches order confirmation notifications.
|
|
8975
|
-
</dd>
|
|
8976
|
-
</dl>
|
|
8977
|
-
</dd>
|
|
8978
|
-
</dl>
|
|
8979
|
-
|
|
8980
9333
|
#### 🔌 Usage
|
|
8981
9334
|
|
|
8982
9335
|
<dl>
|
|
@@ -8986,15 +9339,8 @@ clears the cart, and dispatches order confirmation notifications.
|
|
|
8986
9339
|
<dd>
|
|
8987
9340
|
|
|
8988
9341
|
```typescript
|
|
8989
|
-
await client.customer.cart.
|
|
8990
|
-
|
|
8991
|
-
billing_address: {
|
|
8992
|
-
line1: "line1",
|
|
8993
|
-
city: "city",
|
|
8994
|
-
state: "state",
|
|
8995
|
-
postal_code: "postal_code",
|
|
8996
|
-
country: "country"
|
|
8997
|
-
}
|
|
9342
|
+
await client.customer.cart.removeItem({
|
|
9343
|
+
cartItem: "cartItem"
|
|
8998
9344
|
});
|
|
8999
9345
|
|
|
9000
9346
|
```
|
|
@@ -9011,7 +9357,7 @@ await client.customer.cart.checkout({
|
|
|
9011
9357
|
<dl>
|
|
9012
9358
|
<dd>
|
|
9013
9359
|
|
|
9014
|
-
**request:** `FiveOneEat.customer.
|
|
9360
|
+
**request:** `FiveOneEat.customer.RemoveItemCartRequest`
|
|
9015
9361
|
|
|
9016
9362
|
</dd>
|
|
9017
9363
|
</dl>
|
|
@@ -10150,7 +10496,7 @@ await client.customer.pushNotifications.unregister({
|
|
|
10150
10496
|
|
|
10151
10497
|
```typescript
|
|
10152
10498
|
await client.customer.shop.listProducts({
|
|
10153
|
-
|
|
10499
|
+
business: "katzs-deli"
|
|
10154
10500
|
});
|
|
10155
10501
|
|
|
10156
10502
|
```
|
|
@@ -10201,7 +10547,7 @@ await client.customer.shop.listProducts({
|
|
|
10201
10547
|
|
|
10202
10548
|
```typescript
|
|
10203
10549
|
await client.customer.shop.getProduct({
|
|
10204
|
-
|
|
10550
|
+
business: "katzs-deli",
|
|
10205
10551
|
product: "product"
|
|
10206
10552
|
});
|
|
10207
10553
|
|
|
@@ -10253,7 +10599,7 @@ await client.customer.shop.getProduct({
|
|
|
10253
10599
|
|
|
10254
10600
|
```typescript
|
|
10255
10601
|
await client.customer.shop.listCategories({
|
|
10256
|
-
|
|
10602
|
+
business: "katzs-deli"
|
|
10257
10603
|
});
|
|
10258
10604
|
|
|
10259
10605
|
```
|
|
@@ -10440,7 +10786,7 @@ Retrieve business announcements and updates with pagination.
|
|
|
10440
10786
|
|
|
10441
10787
|
```typescript
|
|
10442
10788
|
await client.customer.businesses.bulletins.list({
|
|
10443
|
-
|
|
10789
|
+
business: "katzs-deli"
|
|
10444
10790
|
});
|
|
10445
10791
|
|
|
10446
10792
|
```
|
|
@@ -10506,7 +10852,7 @@ Retrieve upcoming events for the business with pagination.
|
|
|
10506
10852
|
|
|
10507
10853
|
```typescript
|
|
10508
10854
|
await client.customer.businesses.events.list({
|
|
10509
|
-
|
|
10855
|
+
business: "katzs-deli"
|
|
10510
10856
|
});
|
|
10511
10857
|
|
|
10512
10858
|
```
|
|
@@ -10571,7 +10917,7 @@ Retrieve full details for a single upcoming event belonging to the business.
|
|
|
10571
10917
|
|
|
10572
10918
|
```typescript
|
|
10573
10919
|
await client.customer.businesses.events.get({
|
|
10574
|
-
|
|
10920
|
+
business: "katzs-deli",
|
|
10575
10921
|
event: "event"
|
|
10576
10922
|
});
|
|
10577
10923
|
|
|
@@ -10637,7 +10983,7 @@ Create or update the authenticated user's RSVP for a business event.
|
|
|
10637
10983
|
|
|
10638
10984
|
```typescript
|
|
10639
10985
|
await client.customer.businesses.events.rsvp({
|
|
10640
|
-
|
|
10986
|
+
business: "katzs-deli",
|
|
10641
10987
|
event: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
10642
10988
|
status: "attending"
|
|
10643
10989
|
});
|
|
@@ -10704,7 +11050,7 @@ Cancel the authenticated user's RSVP for a business event.
|
|
|
10704
11050
|
|
|
10705
11051
|
```typescript
|
|
10706
11052
|
await client.customer.businesses.events.cancelRsvp({
|
|
10707
|
-
|
|
11053
|
+
business: "katzs-deli",
|
|
10708
11054
|
event: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
10709
11055
|
});
|
|
10710
11056
|
|
|
@@ -10771,7 +11117,7 @@ Retrieve paginated comments for a published business bulletin.
|
|
|
10771
11117
|
|
|
10772
11118
|
```typescript
|
|
10773
11119
|
await client.customer.businesses.bulletins.comments.list({
|
|
10774
|
-
|
|
11120
|
+
business: "katzs-deli",
|
|
10775
11121
|
bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
10776
11122
|
});
|
|
10777
11123
|
|
|
@@ -10837,7 +11183,7 @@ Post a comment on a business bulletin. Requires authentication.
|
|
|
10837
11183
|
|
|
10838
11184
|
```typescript
|
|
10839
11185
|
await client.customer.businesses.bulletins.comments.create({
|
|
10840
|
-
|
|
11186
|
+
business: "katzs-deli",
|
|
10841
11187
|
bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
10842
11188
|
body: "body"
|
|
10843
11189
|
});
|
|
@@ -10904,7 +11250,7 @@ Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
|
10904
11250
|
|
|
10905
11251
|
```typescript
|
|
10906
11252
|
await client.customer.businesses.bulletins.comments.listReplies({
|
|
10907
|
-
|
|
11253
|
+
business: "katzs-deli",
|
|
10908
11254
|
bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
10909
11255
|
comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
10910
11256
|
});
|
|
@@ -10971,7 +11317,7 @@ Post a reply to a top-level comment on a published bulletin. Requires authentica
|
|
|
10971
11317
|
|
|
10972
11318
|
```typescript
|
|
10973
11319
|
await client.customer.businesses.bulletins.comments.reply({
|
|
10974
|
-
|
|
11320
|
+
business: "katzs-deli",
|
|
10975
11321
|
bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
10976
11322
|
comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
10977
11323
|
body: "body"
|