@51eat/sdk 0.0.68 → 0.0.70
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/README.md +11 -13
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +5 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +2 -1
- package/dist/cjs/api/errors/index.d.ts +0 -1
- package/dist/cjs/api/errors/index.js +0 -1
- package/dist/cjs/api/resources/business/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/business/client/Client.js +25 -25
- package/dist/cjs/api/resources/business/resources/index.d.ts +3 -4
- package/dist/cjs/api/resources/business/resources/index.js +4 -5
- package/dist/cjs/api/resources/business/resources/priceLists/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/Client.js +222 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/DeletePriceListsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/StorePriceListRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/priceLists/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/{discounts/types/index.js → priceLists/exports.js} +5 -5
- package/dist/cjs/api/resources/business/resources/priceLists/types/CreatePriceListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/priceLists/types/ListPriceListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/priceLists/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/{shipping/resources/rates → priceLists}/types/index.js +2 -3
- package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +7 -28
- package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +30 -121
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/business/resources/productCategories/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productCategories/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +10 -23
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +21 -38
- package/dist/{esm/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.mts → cjs/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.ts} +4 -5
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/ListProductOrdersRequest.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.ts +0 -1
- package/dist/{esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.mts → cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.ts} +1 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/{RefundOrderRequest.d.ts → RefundProductOrdersRequest.d.ts} +1 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +4 -3
- package/dist/cjs/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +6 -11
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +8 -24
- package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +4 -56
- package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.js +0 -27
- package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +6 -56
- package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.js +0 -27
- package/dist/cjs/api/resources/business/resources/products/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/products/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +5 -28
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +23 -100
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +1 -10
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +0 -5
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.js +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +13 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +13 -11
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.d.ts +33 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.d.ts +33 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.js +5 -5
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +5 -28
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +23 -100
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +1 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +0 -5
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +4 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.ts +17 -5
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.js +59 -21
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.d.ts +4 -16
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.js +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.js +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.js +137 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/{images/types → variants/resources/prices/client}/index.js +1 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/SetPriceRequest.d.ts +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/{discounts → products/resources/variants/resources/prices}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/SetPricesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/types/CreateProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/GetProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/ListProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/UpdateProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/types/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.d.ts +7 -28
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.js +30 -112
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateRatesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +49 -67
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +87 -99
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.ts +26 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateCartItemRequest.d.ts → UpdateItemCartRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +6 -6
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/customer/resources/cart/types/AddItemCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +6 -13
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.js +7 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/GetCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +1 -2
- package/dist/cjs/api/resources/customer/resources/cart/types/index.js +1 -2
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +1 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/{AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts → CreatePaymentIntentRequest.d.ts} +3 -3
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +3 -3
- package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +14 -6
- 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 +3 -6
- package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +10 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +9 -21
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +28 -78
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/stands/types/index.js +0 -2
- package/dist/cjs/api/resources/customerStands/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/{business/resources/discounts → customerStands}/client/Client.js +83 -85
- package/dist/cjs/api/resources/customerStands/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerStands/client/index.js +17 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/customerStands/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerStands/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerStands/exports.js +21 -0
- package/dist/cjs/api/resources/customerStands/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerStands/index.js +18 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerGetStandCartResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.ts +12 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.js +10 -0
- package/dist/cjs/api/resources/customerStands/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/{business/resources/productCategories → customerStands}/types/index.js +4 -4
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +13 -0
- package/dist/cjs/api/types/BusinessHoursResource.d.ts +2 -3
- package/dist/cjs/api/types/BusinessMenu.d.ts +1 -2
- package/dist/cjs/api/types/BusinessMenuGroup.d.ts +1 -2
- package/dist/cjs/api/types/BusinessMenuItem.d.ts +2 -3
- package/dist/cjs/api/types/CartResource.d.ts +21 -0
- package/dist/cjs/api/types/CheckoutRequest.d.ts +5 -0
- package/dist/cjs/api/types/ImageResource.d.ts +6 -0
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +1 -1
- package/dist/cjs/api/types/InternalServerErrorBody.js +1 -1
- package/dist/cjs/api/types/InventoryLevelResource.d.ts +7 -0
- package/dist/cjs/api/types/OrderResource.d.ts +27 -0
- package/dist/cjs/api/types/PriceListResource.d.ts +8 -0
- package/dist/cjs/api/types/PriceResource.d.ts +10 -0
- package/dist/cjs/api/types/ProductCategoryResource.d.ts +8 -0
- package/dist/cjs/api/types/ProductResource.d.ts +17 -0
- package/dist/cjs/api/types/StandShop.d.ts +1 -1
- package/dist/cjs/api/types/VariantResource.d.ts +14 -0
- package/dist/cjs/api/types/index.d.ts +11 -20
- package/dist/cjs/api/types/index.js +11 -20
- 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/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +2 -1
- package/dist/esm/api/errors/index.d.mts +0 -1
- package/dist/esm/api/errors/index.mjs +0 -1
- package/dist/esm/api/resources/business/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/business/client/Client.mjs +15 -15
- package/dist/esm/api/resources/business/resources/index.d.mts +3 -4
- package/dist/esm/api/resources/business/resources/index.mjs +3 -4
- package/dist/esm/api/resources/business/resources/priceLists/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/Client.mjs +185 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/DeletePriceListsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/StorePriceListRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/priceLists/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/priceLists/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/CreatePriceListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/ListPriceListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +7 -28
- package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +30 -121
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/business/resources/productCategories/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productCategories/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +10 -23
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +21 -38
- package/dist/{cjs/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.ts → esm/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.mts} +4 -5
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/ListProductOrdersRequest.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +0 -1
- package/dist/{cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.ts → esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.mts} +1 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/{RefundOrderRequest.d.mts → RefundProductOrdersRequest.d.mts} +1 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +4 -3
- package/dist/esm/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +6 -11
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +8 -24
- package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +4 -56
- package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.mjs +1 -26
- package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +6 -56
- package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.mjs +1 -26
- package/dist/esm/api/resources/business/resources/products/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/products/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +5 -28
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +24 -101
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +1 -10
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +0 -5
- package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.mjs +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +13 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +13 -11
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.d.mts +33 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.d.mts +33 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.mjs +2 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +5 -28
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +24 -101
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +1 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +0 -5
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.mts +17 -5
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.mjs +59 -21
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.d.mts +4 -16
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.mjs +1 -8
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.mjs +100 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/SetPriceRequest.d.mts +21 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/{discounts → products/resources/variants/resources/prices}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/SetPricesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/types/CreateProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/GetProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/ListProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/UpdateProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/types/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.d.mts +7 -28
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.mjs +30 -112
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateRatesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +49 -67
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +87 -99
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.mts +15 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.mts +26 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateCartItemRequest.d.mts → UpdateItemCartRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +6 -6
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/customer/resources/cart/types/AddItemCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +6 -13
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.mjs +6 -1
- package/dist/esm/api/resources/customer/resources/cart/types/GetCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +1 -2
- package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +1 -2
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/{AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts → CreatePaymentIntentRequest.d.mts} +3 -3
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +3 -3
- package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +14 -6
- 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 +3 -6
- package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +10 -4
- package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +9 -21
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +28 -78
- package/dist/esm/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/stands/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +0 -2
- package/dist/esm/api/resources/customerStands/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/{business/resources/discounts → customerStands}/client/Client.mjs +81 -83
- package/dist/esm/api/resources/customerStands/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerStands/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.mts +15 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/customerStands/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerStands/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerStands/exports.mjs +3 -0
- package/dist/esm/api/resources/customerStands/index.d.mts +2 -0
- package/dist/esm/api/resources/customerStands/index.mjs +2 -0
- package/dist/esm/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/CustomerGetStandCartResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.mts +12 -0
- package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.mjs +7 -0
- package/dist/esm/api/resources/customerStands/types/index.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/index.mjs +4 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +13 -0
- package/dist/esm/api/types/BusinessHoursResource.d.mts +2 -3
- package/dist/esm/api/types/BusinessMenu.d.mts +1 -2
- package/dist/esm/api/types/BusinessMenuGroup.d.mts +1 -2
- package/dist/esm/api/types/BusinessMenuItem.d.mts +2 -3
- package/dist/esm/api/types/CartResource.d.mts +21 -0
- package/dist/esm/api/types/CheckoutRequest.d.mts +5 -0
- package/dist/esm/api/types/ImageResource.d.mts +6 -0
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +1 -1
- package/dist/esm/api/types/InternalServerErrorBody.mjs +1 -1
- package/dist/esm/api/types/InventoryLevelResource.d.mts +7 -0
- package/dist/esm/api/types/OrderResource.d.mts +27 -0
- package/dist/esm/api/types/PriceListResource.d.mts +8 -0
- package/dist/esm/api/types/PriceResource.d.mts +10 -0
- package/dist/esm/api/types/ProductCategoryResource.d.mts +8 -0
- package/dist/esm/api/types/ProductResource.d.mts +17 -0
- package/dist/esm/api/types/StandShop.d.mts +1 -1
- package/dist/esm/api/types/VariantResource.d.mts +14 -0
- package/dist/esm/api/types/index.d.mts +11 -20
- package/dist/esm/api/types/index.mjs +11 -20
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +79 -57
- package/reference.md +1038 -936
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +0 -6
- package/dist/cjs/api/errors/ServiceUnavailableError.js +0 -54
- package/dist/cjs/api/resources/business/resources/discounts/client/Client.d.ts +0 -87
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.ts +0 -10
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.ts +0 -10
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.ts +0 -39
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.js +0 -18
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.ts +0 -38
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.js +0 -18
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.js +0 -7
- package/dist/cjs/api/resources/business/resources/discounts/exports.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +0 -12
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +0 -14
- package/dist/cjs/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/productCategories/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.ts +0 -34
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.js +0 -13
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.ts +0 -32
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.js +0 -13
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +0 -19
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.d.ts +0 -23
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.js +0 -11
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.d.ts +0 -26
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.js +0 -11
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +0 -15
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +0 -45
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.js +0 -11
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +0 -43
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.js +0 -11
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.ts +0 -28
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.ts +0 -12
- package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.d.ts +0 -9
- package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.js +0 -10
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.ts +0 -19
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/SelfCheckoutRequest.d.ts +0 -12
- package/dist/cjs/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.ts +0 -9
- package/dist/cjs/api/types/BusinessDiscount.d.ts +0 -19
- package/dist/cjs/api/types/BusinessInventoryLog.d.ts +0 -15
- package/dist/cjs/api/types/BusinessProduct.d.ts +0 -46
- package/dist/cjs/api/types/BusinessProductCategory.d.ts +0 -13
- package/dist/cjs/api/types/BusinessProductInventorySummary.d.ts +0 -7
- package/dist/cjs/api/types/BusinessProductOrder.d.ts +0 -40
- package/dist/cjs/api/types/BusinessProductOrderItem.d.ts +0 -24
- package/dist/cjs/api/types/BusinessProductVariant.d.ts +0 -22
- package/dist/cjs/api/types/CustomerCart.d.ts +0 -9
- package/dist/cjs/api/types/CustomerCartItem.d.ts +0 -24
- package/dist/cjs/api/types/CustomerProductOrder.d.ts +0 -25
- package/dist/cjs/api/types/CustomerProductOrderItem.d.ts +0 -32
- package/dist/cjs/api/types/CustomerShopProduct.d.ts +0 -21
- package/dist/cjs/api/types/CustomerShopProductCategory.d.ts +0 -8
- package/dist/cjs/api/types/CustomerShopProductCategory.js +0 -3
- package/dist/cjs/api/types/CustomerShopProductVariant.d.ts +0 -13
- package/dist/cjs/api/types/CustomerShopProductVariant.js +0 -3
- package/dist/cjs/api/types/InventoryChangeType.d.ts +0 -9
- package/dist/cjs/api/types/InventoryChangeType.js +0 -12
- package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +0 -12
- package/dist/cjs/api/types/ReorderProductImagesRequest.js +0 -3
- package/dist/cjs/api/types/ServiceUnavailableErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/ServiceUnavailableErrorBody.js +0 -3
- package/dist/cjs/api/types/ShippingRateResource.d.ts +0 -12
- package/dist/cjs/api/types/ShippingRateResource.js +0 -3
- package/dist/cjs/api/types/StoreProductImageRequest.d.ts +0 -4
- package/dist/cjs/api/types/StoreProductImageRequest.js +0 -3
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +0 -6
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +0 -17
- package/dist/esm/api/resources/business/resources/discounts/client/Client.d.mts +0 -87
- package/dist/esm/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.mts +0 -10
- package/dist/esm/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.mts +0 -10
- package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.mts +0 -39
- package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.mjs +0 -15
- package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.mts +0 -38
- package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.mjs +0 -15
- package/dist/esm/api/resources/business/resources/discounts/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/client/requests/index.mjs +0 -2
- package/dist/esm/api/resources/business/resources/discounts/exports.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/index.d.mts +0 -5
- package/dist/esm/api/resources/business/resources/discounts/types/index.mjs +0 -5
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +0 -12
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +0 -14
- package/dist/esm/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/index.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/index.mjs +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.mts +0 -34
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.mjs +0 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.mts +0 -32
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.mjs +0 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.d.mts +0 -23
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.mjs +0 -8
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.d.mts +0 -26
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.mjs +0 -8
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.d.mts +0 -3
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.mjs +0 -3
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +0 -15
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +0 -45
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.mjs +0 -8
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +0 -43
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.mjs +0 -8
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.mts +0 -28
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.mts +0 -12
- package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.d.mts +0 -9
- package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.mjs +0 -7
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.mts +0 -19
- package/dist/esm/api/resources/customer/resources/stands/client/requests/SelfCheckoutRequest.d.mts +0 -12
- package/dist/esm/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.mts +0 -9
- package/dist/esm/api/types/BusinessDiscount.d.mts +0 -19
- package/dist/esm/api/types/BusinessInventoryLog.d.mts +0 -15
- package/dist/esm/api/types/BusinessProduct.d.mts +0 -46
- package/dist/esm/api/types/BusinessProductCategory.d.mts +0 -13
- package/dist/esm/api/types/BusinessProductInventorySummary.d.mts +0 -7
- package/dist/esm/api/types/BusinessProductOrder.d.mts +0 -40
- package/dist/esm/api/types/BusinessProductOrderItem.d.mts +0 -24
- package/dist/esm/api/types/BusinessProductVariant.d.mts +0 -22
- package/dist/esm/api/types/CustomerCart.d.mts +0 -9
- package/dist/esm/api/types/CustomerCartItem.d.mts +0 -24
- package/dist/esm/api/types/CustomerProductOrder.d.mts +0 -25
- package/dist/esm/api/types/CustomerProductOrderItem.d.mts +0 -32
- package/dist/esm/api/types/CustomerShopProduct.d.mts +0 -21
- package/dist/esm/api/types/CustomerShopProductCategory.d.mts +0 -8
- package/dist/esm/api/types/CustomerShopProductCategory.mjs +0 -2
- package/dist/esm/api/types/CustomerShopProductVariant.d.mts +0 -13
- package/dist/esm/api/types/CustomerShopProductVariant.mjs +0 -2
- package/dist/esm/api/types/InventoryChangeType.d.mts +0 -9
- package/dist/esm/api/types/InventoryChangeType.mjs +0 -9
- package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +0 -12
- package/dist/esm/api/types/ReorderProductImagesRequest.mjs +0 -2
- package/dist/esm/api/types/ServiceUnavailableErrorBody.d.mts +0 -3
- package/dist/esm/api/types/ServiceUnavailableErrorBody.mjs +0 -2
- package/dist/esm/api/types/ShippingRateResource.d.mts +0 -12
- package/dist/esm/api/types/ShippingRateResource.mjs +0 -2
- package/dist/esm/api/types/StoreProductImageRequest.d.mts +0 -4
- package/dist/esm/api/types/StoreProductImageRequest.mjs +0 -2
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/client/index.js +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/client/requests/DeleteDiscountsRequest.js → priceLists/client/requests/DeletePriceListsRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/client/requests/GetDiscountsRequest.js → priceLists/client/requests/StorePriceListRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/index.js +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/CreateDiscountsResponse.js → priceLists/types/CreatePriceListsResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/GetDiscountsResponse.js → priceLists/types/ListPriceListsResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/ListDiscountsResponse.js → productCategories/client/requests/UpdateProductCategoriesRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/UpdateDiscountsResponse.js → productOrders/client/requests/AddTrackingProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/StoreProductCategoryRequest.js → productOrders/client/requests/ListProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoryRequest.js → productOrders/client/requests/PurchaseLabelProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/types/CreateProductCategoriesResponse.js → productOrders/client/requests/RefundProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/types/ListProductCategoriesResponse.js → products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/types/UpdateProductCategoriesResponse.js → products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/PurchaseLabelRequest.js → products/resources/variants/resources/prices/client/requests/SetPriceRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/RefundOrderRequest.js → products/resources/variants/resources/prices/types/SetPricesResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/StoreTrackingRequest.js → shipping/resources/rates/client/requests/UpdateRatesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/products/resources/images/types/UploadImagesResponse.js → customer/resources/cart/client/requests/AddItemCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js → customer/resources/cart/client/requests/CheckoutCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.js → customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/CreateRatesResponse.js → customer/resources/cart/client/requests/GetShippingOptionsCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/ListRatesResponse.js → customer/resources/cart/client/requests/SelectShippingOptionCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/UpdateRatesResponse.js → customer/resources/cart/client/requests/UpdateItemCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/cart/{client/requests/AddToCartRequest.js → types/GetShippingOptionsCartResponse.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{cart/client/requests/GetShippingOptionsRequest.js → events/resources/ticketing/client/requests/CreatePaymentIntentRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{cart/client/requests/SelectShippingOptionRequest.js → stands/client/requests/CheckoutStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/cart/client/requests/UpdateCartItemRequest.js → customerStands/client/requests/CustomerAddStandCartItemRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/cart/types/GetShippingOptionsCartResponseItem.js → customerStands/client/requests/CustomerClearStandCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.js → customerStands/client/requests/CustomerGetStandCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/stands/client/requests/SelfCheckoutRequest.js → customerStands/client/requests/CustomerStandCheckoutRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/stands/types/CheckoutStandsResponse.js → customerStands/client/requests/CustomerStandPaymentIntentRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/stands/types/CreatePaymentIntentStandsResponse.js → customerStands/types/CustomerAddStandCartItemResponse.js} +0 -0
- /package/dist/cjs/api/{types/BusinessDiscount.js → resources/customerStands/types/CustomerGetStandCartResponse.js} +0 -0
- /package/dist/cjs/api/{types/BusinessInventoryLog.js → resources/customerStands/types/CustomerStandCheckoutResponse.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProduct.js → AppHttpResourcesApiV1BusinessCommerceProductResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductCategory.js → CartResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductInventorySummary.js → CheckoutRequest.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductOrder.js → ImageResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductOrderItem.js → InventoryLevelResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductVariant.js → OrderResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerCart.js → PriceListResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerCartItem.js → PriceResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerProductOrder.js → ProductCategoryResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerProductOrderItem.js → ProductResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerShopProduct.js → VariantResource.js} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/client/requests/DeleteDiscountsRequest.mjs → priceLists/client/requests/DeletePriceListsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/client/requests/GetDiscountsRequest.mjs → priceLists/client/requests/StorePriceListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/index.d.mts +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/index.mjs +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/CreateDiscountsResponse.mjs → priceLists/types/CreatePriceListsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/GetDiscountsResponse.mjs → priceLists/types/ListPriceListsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/ListDiscountsResponse.mjs → productCategories/client/requests/UpdateProductCategoriesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/UpdateDiscountsResponse.mjs → productOrders/client/requests/AddTrackingProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/StoreProductCategoryRequest.mjs → productOrders/client/requests/ListProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoryRequest.mjs → productOrders/client/requests/PurchaseLabelProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/types/CreateProductCategoriesResponse.mjs → productOrders/client/requests/RefundProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/types/ListProductCategoriesResponse.mjs → products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/types/UpdateProductCategoriesResponse.mjs → products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/PurchaseLabelRequest.mjs → products/resources/variants/resources/prices/client/requests/SetPriceRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/RefundOrderRequest.mjs → products/resources/variants/resources/prices/types/SetPricesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/StoreTrackingRequest.mjs → shipping/resources/rates/client/requests/UpdateRatesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/products/resources/images/types/UploadImagesResponse.mjs → customer/resources/cart/client/requests/AddItemCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs → customer/resources/cart/client/requests/CheckoutCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.mjs → customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/CreateRatesResponse.mjs → customer/resources/cart/client/requests/GetShippingOptionsCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/ListRatesResponse.mjs → customer/resources/cart/client/requests/SelectShippingOptionCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/UpdateRatesResponse.mjs → customer/resources/cart/client/requests/UpdateItemCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/cart/{client/requests/AddToCartRequest.mjs → types/GetShippingOptionsCartResponse.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{cart/client/requests/GetShippingOptionsRequest.mjs → events/resources/ticketing/client/requests/CreatePaymentIntentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{cart/client/requests/SelectShippingOptionRequest.mjs → stands/client/requests/CheckoutStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/cart/client/requests/UpdateCartItemRequest.mjs → customerStands/client/requests/CustomerAddStandCartItemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/cart/types/GetShippingOptionsCartResponseItem.mjs → customerStands/client/requests/CustomerClearStandCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.mjs → customerStands/client/requests/CustomerGetStandCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/stands/client/requests/SelfCheckoutRequest.mjs → customerStands/client/requests/CustomerStandCheckoutRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/stands/types/CheckoutStandsResponse.mjs → customerStands/client/requests/CustomerStandPaymentIntentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/stands/types/CreatePaymentIntentStandsResponse.mjs → customerStands/types/CustomerAddStandCartItemResponse.mjs} +0 -0
- /package/dist/esm/api/{types/BusinessDiscount.mjs → resources/customerStands/types/CustomerGetStandCartResponse.mjs} +0 -0
- /package/dist/esm/api/{types/BusinessInventoryLog.mjs → resources/customerStands/types/CustomerStandCheckoutResponse.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProduct.mjs → AppHttpResourcesApiV1BusinessCommerceProductResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductCategory.mjs → CartResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductInventorySummary.mjs → CheckoutRequest.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductOrder.mjs → ImageResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductOrderItem.mjs → InventoryLevelResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductVariant.mjs → OrderResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerCart.mjs → PriceListResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerCartItem.mjs → PriceResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerProductOrder.mjs → ProductCategoryResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerProductOrderItem.mjs → ProductResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerShopProduct.mjs → VariantResource.mjs} +0 -0
|
@@ -8,17 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
11
|
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
23
12
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
24
13
|
import * as core from "../../../../../../core/index.mjs";
|
|
@@ -86,32 +75,25 @@ export class StandsClient {
|
|
|
86
75
|
});
|
|
87
76
|
}
|
|
88
77
|
/**
|
|
89
|
-
*
|
|
90
|
-
* Shipping is always zero for stand orders.
|
|
91
|
-
*
|
|
92
|
-
* @param {FiveOneEat.customer.CreatePaymentIntentStandsRequest} request
|
|
78
|
+
* @param {FiveOneEat.customer.CheckoutStandsRequest} request
|
|
93
79
|
* @param {StandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
80
|
*
|
|
95
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
96
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
97
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
98
|
-
*
|
|
99
81
|
* @example
|
|
100
|
-
* await client.customer.stands.
|
|
82
|
+
* await client.customer.stands.checkout({
|
|
101
83
|
* stand: "stand"
|
|
102
84
|
* })
|
|
103
85
|
*/
|
|
104
|
-
|
|
105
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
86
|
+
checkout(request, requestOptions) {
|
|
87
|
+
return core.HttpResponsePromise.fromPromise(this.__checkout(request, requestOptions));
|
|
106
88
|
}
|
|
107
|
-
|
|
89
|
+
__checkout(request, requestOptions) {
|
|
108
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
91
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
110
92
|
const { stand } = request;
|
|
111
93
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
112
94
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
113
95
|
const _response = yield core.fetcher({
|
|
114
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/
|
|
96
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/checkout`),
|
|
115
97
|
method: "POST",
|
|
116
98
|
headers: _headers,
|
|
117
99
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -122,61 +104,41 @@ export class StandsClient {
|
|
|
122
104
|
logging: this._options.logging,
|
|
123
105
|
});
|
|
124
106
|
if (_response.ok) {
|
|
125
|
-
return {
|
|
126
|
-
data: _response.body,
|
|
127
|
-
rawResponse: _response.rawResponse,
|
|
128
|
-
};
|
|
107
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
129
108
|
}
|
|
130
109
|
if (_response.error.reason === "status-code") {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
case 422:
|
|
137
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
138
|
-
default:
|
|
139
|
-
throw new errors.FiveOneEatError({
|
|
140
|
-
statusCode: _response.error.statusCode,
|
|
141
|
-
body: _response.error.body,
|
|
142
|
-
rawResponse: _response.rawResponse,
|
|
143
|
-
});
|
|
144
|
-
}
|
|
110
|
+
throw new errors.FiveOneEatError({
|
|
111
|
+
statusCode: _response.error.statusCode,
|
|
112
|
+
body: _response.error.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
145
115
|
}
|
|
146
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/
|
|
116
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/checkout");
|
|
147
117
|
});
|
|
148
118
|
}
|
|
149
119
|
/**
|
|
150
|
-
* @param {FiveOneEat.customer.
|
|
120
|
+
* @param {FiveOneEat.customer.CreatePaymentIntentStandsRequest} request
|
|
151
121
|
* @param {StandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
122
|
*
|
|
153
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
154
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
155
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
156
|
-
*
|
|
157
123
|
* @example
|
|
158
|
-
* await client.customer.stands.
|
|
159
|
-
* stand: "stand"
|
|
160
|
-
* payment_intent_id: "payment_intent_id"
|
|
124
|
+
* await client.customer.stands.createPaymentIntent({
|
|
125
|
+
* stand: "stand"
|
|
161
126
|
* })
|
|
162
127
|
*/
|
|
163
|
-
|
|
164
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
128
|
+
createPaymentIntent(request, requestOptions) {
|
|
129
|
+
return core.HttpResponsePromise.fromPromise(this.__createPaymentIntent(request, requestOptions));
|
|
165
130
|
}
|
|
166
|
-
|
|
131
|
+
__createPaymentIntent(request, requestOptions) {
|
|
167
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
133
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
169
|
-
const { stand } = request
|
|
134
|
+
const { stand } = request;
|
|
170
135
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
171
136
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
172
137
|
const _response = yield core.fetcher({
|
|
173
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/
|
|
138
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/payment-intent`),
|
|
174
139
|
method: "POST",
|
|
175
140
|
headers: _headers,
|
|
176
|
-
contentType: "application/json",
|
|
177
141
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
178
|
-
requestType: "json",
|
|
179
|
-
body: _body,
|
|
180
142
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
181
143
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
182
144
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -184,28 +146,16 @@ export class StandsClient {
|
|
|
184
146
|
logging: this._options.logging,
|
|
185
147
|
});
|
|
186
148
|
if (_response.ok) {
|
|
187
|
-
return {
|
|
188
|
-
data: _response.body,
|
|
189
|
-
rawResponse: _response.rawResponse,
|
|
190
|
-
};
|
|
149
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
191
150
|
}
|
|
192
151
|
if (_response.error.reason === "status-code") {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
case 422:
|
|
199
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
200
|
-
default:
|
|
201
|
-
throw new errors.FiveOneEatError({
|
|
202
|
-
statusCode: _response.error.statusCode,
|
|
203
|
-
body: _response.error.body,
|
|
204
|
-
rawResponse: _response.rawResponse,
|
|
205
|
-
});
|
|
206
|
-
}
|
|
152
|
+
throw new errors.FiveOneEatError({
|
|
153
|
+
statusCode: _response.error.statusCode,
|
|
154
|
+
body: _response.error.body,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
156
|
+
});
|
|
207
157
|
}
|
|
208
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/
|
|
158
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/payment-intent");
|
|
209
159
|
});
|
|
210
160
|
}
|
|
211
161
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
export type { CheckoutStandsRequest } from "./CheckoutStandsRequest.mjs";
|
|
1
2
|
export type { CreatePaymentIntentStandsRequest } from "./CreatePaymentIntentStandsRequest.mjs";
|
|
2
3
|
export type { ScanStandsRequest } from "./ScanStandsRequest.mjs";
|
|
3
|
-
export type { SelfCheckoutRequest } from "./SelfCheckoutRequest.mjs";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../index.mjs";
|
|
5
|
+
export declare namespace CustomerStandsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CustomerStandsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerStandsClient.Options>;
|
|
12
|
+
constructor(options?: CustomerStandsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FiveOneEat.CustomerGetStandCartRequest} request
|
|
15
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* await client.customerStands.customerGetStandCart({
|
|
22
|
+
* stand: "stand"
|
|
23
|
+
* })
|
|
24
|
+
*/
|
|
25
|
+
customerGetStandCart(request: FiveOneEat.CustomerGetStandCartRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CustomerGetStandCartResponse>;
|
|
26
|
+
private __customerGetStandCart;
|
|
27
|
+
/**
|
|
28
|
+
* @param {FiveOneEat.CustomerAddStandCartItemRequest} request
|
|
29
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
32
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
33
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.customerStands.customerAddStandCartItem({
|
|
37
|
+
* stand: "stand",
|
|
38
|
+
* variant_id: "variant_id",
|
|
39
|
+
* quantity: 1
|
|
40
|
+
* })
|
|
41
|
+
*/
|
|
42
|
+
customerAddStandCartItem(request: FiveOneEat.CustomerAddStandCartItemRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CustomerAddStandCartItemResponse>;
|
|
43
|
+
private __customerAddStandCartItem;
|
|
44
|
+
/**
|
|
45
|
+
* @param {FiveOneEat.CustomerClearStandCartRequest} request
|
|
46
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
49
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.customerStands.customerClearStandCart({
|
|
53
|
+
* stand: "stand"
|
|
54
|
+
* })
|
|
55
|
+
*/
|
|
56
|
+
customerClearStandCart(request: FiveOneEat.CustomerClearStandCartRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
57
|
+
private __customerClearStandCart;
|
|
58
|
+
/**
|
|
59
|
+
* @param {FiveOneEat.CustomerStandPaymentIntentRequest} request
|
|
60
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
63
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.customerStands.customerStandPaymentIntent({
|
|
67
|
+
* stand: "stand"
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
customerStandPaymentIntent(request: FiveOneEat.CustomerStandPaymentIntentRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CustomerStandPaymentIntentResponse>;
|
|
71
|
+
private __customerStandPaymentIntent;
|
|
72
|
+
/**
|
|
73
|
+
* @param {FiveOneEat.CustomerStandCheckoutRequest} request
|
|
74
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
77
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
78
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* await client.customerStands.customerStandCheckout({
|
|
82
|
+
* stand: "stand",
|
|
83
|
+
* body: {
|
|
84
|
+
* payment_intent_id: "payment_intent_id"
|
|
85
|
+
* }
|
|
86
|
+
* })
|
|
87
|
+
*/
|
|
88
|
+
customerStandCheckout(request: FiveOneEat.CustomerStandCheckoutRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CustomerStandCheckoutResponse>;
|
|
89
|
+
private __customerStandCheckout;
|
|
90
|
+
}
|
package/dist/esm/api/resources/{business/resources/discounts → customerStands}/client/Client.mjs
RENAMED
|
@@ -19,35 +19,40 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
import { normalizeClientOptionsWithAuth } from "
|
|
23
|
-
import { mergeHeaders } from "
|
|
24
|
-
import * as core from "
|
|
25
|
-
import * as environments from "
|
|
26
|
-
import { handleNonStatusCodeError } from "
|
|
27
|
-
import * as errors from "
|
|
28
|
-
import * as FiveOneEat from "
|
|
29
|
-
export class
|
|
22
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
24
|
+
import * as core from "../../../../core/index.mjs";
|
|
25
|
+
import * as environments from "../../../../environments.mjs";
|
|
26
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
27
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
28
|
+
import * as FiveOneEat from "../../../index.mjs";
|
|
29
|
+
export class CustomerStandsClient {
|
|
30
30
|
constructor(options = {}) {
|
|
31
31
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {FiveOneEat.CustomerGetStandCartRequest} request
|
|
35
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
36
|
*
|
|
36
37
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
|
-
* await client.
|
|
41
|
+
* await client.customerStands.customerGetStandCart({
|
|
42
|
+
* stand: "stand"
|
|
43
|
+
* })
|
|
40
44
|
*/
|
|
41
|
-
|
|
42
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
45
|
+
customerGetStandCart(request, requestOptions) {
|
|
46
|
+
return core.HttpResponsePromise.fromPromise(this.__customerGetStandCart(request, requestOptions));
|
|
43
47
|
}
|
|
44
|
-
|
|
48
|
+
__customerGetStandCart(request, requestOptions) {
|
|
45
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
50
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
51
|
+
const { stand } = request;
|
|
47
52
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
48
53
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
54
|
const _response = yield core.fetcher({
|
|
50
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production,
|
|
55
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/cart`),
|
|
51
56
|
method: "GET",
|
|
52
57
|
headers: _headers,
|
|
53
58
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -67,6 +72,8 @@ export class DiscountsClient {
|
|
|
67
72
|
switch (_response.error.statusCode) {
|
|
68
73
|
case 401:
|
|
69
74
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
75
|
+
case 404:
|
|
76
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
70
77
|
default:
|
|
71
78
|
throw new errors.FiveOneEatError({
|
|
72
79
|
statusCode: _response.error.statusCode,
|
|
@@ -75,41 +82,41 @@ export class DiscountsClient {
|
|
|
75
82
|
});
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/
|
|
85
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/stands/{stand}/cart");
|
|
79
86
|
});
|
|
80
87
|
}
|
|
81
88
|
/**
|
|
82
|
-
* @param {FiveOneEat.
|
|
83
|
-
* @param {
|
|
89
|
+
* @param {FiveOneEat.CustomerAddStandCartItemRequest} request
|
|
90
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
91
|
*
|
|
85
92
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
86
|
-
* @throws {@link FiveOneEat.
|
|
93
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
87
94
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
88
95
|
*
|
|
89
96
|
* @example
|
|
90
|
-
* await client.
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* applies_to: "all"
|
|
97
|
+
* await client.customerStands.customerAddStandCartItem({
|
|
98
|
+
* stand: "stand",
|
|
99
|
+
* variant_id: "variant_id",
|
|
100
|
+
* quantity: 1
|
|
95
101
|
* })
|
|
96
102
|
*/
|
|
97
|
-
|
|
98
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
103
|
+
customerAddStandCartItem(request, requestOptions) {
|
|
104
|
+
return core.HttpResponsePromise.fromPromise(this.__customerAddStandCartItem(request, requestOptions));
|
|
99
105
|
}
|
|
100
|
-
|
|
106
|
+
__customerAddStandCartItem(request, requestOptions) {
|
|
101
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
108
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
109
|
+
const { stand } = request, _body = __rest(request, ["stand"]);
|
|
103
110
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
104
111
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
105
112
|
const _response = yield core.fetcher({
|
|
106
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production,
|
|
113
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/cart`),
|
|
107
114
|
method: "POST",
|
|
108
115
|
headers: _headers,
|
|
109
116
|
contentType: "application/json",
|
|
110
117
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
111
118
|
requestType: "json",
|
|
112
|
-
body:
|
|
119
|
+
body: _body,
|
|
113
120
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
114
121
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
115
122
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -126,8 +133,8 @@ export class DiscountsClient {
|
|
|
126
133
|
switch (_response.error.statusCode) {
|
|
127
134
|
case 401:
|
|
128
135
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
129
|
-
case
|
|
130
|
-
throw new FiveOneEat.
|
|
136
|
+
case 404:
|
|
137
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
131
138
|
case 422:
|
|
132
139
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
133
140
|
default:
|
|
@@ -138,34 +145,33 @@ export class DiscountsClient {
|
|
|
138
145
|
});
|
|
139
146
|
}
|
|
140
147
|
}
|
|
141
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/
|
|
148
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/cart");
|
|
142
149
|
});
|
|
143
150
|
}
|
|
144
151
|
/**
|
|
145
|
-
* @param {FiveOneEat.
|
|
146
|
-
* @param {
|
|
152
|
+
* @param {FiveOneEat.CustomerClearStandCartRequest} request
|
|
153
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
154
|
*
|
|
148
155
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
149
|
-
* @throws {@link FiveOneEat.ForbiddenError}
|
|
150
156
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
151
157
|
*
|
|
152
158
|
* @example
|
|
153
|
-
* await client.
|
|
154
|
-
*
|
|
159
|
+
* await client.customerStands.customerClearStandCart({
|
|
160
|
+
* stand: "stand"
|
|
155
161
|
* })
|
|
156
162
|
*/
|
|
157
|
-
|
|
158
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
163
|
+
customerClearStandCart(request, requestOptions) {
|
|
164
|
+
return core.HttpResponsePromise.fromPromise(this.__customerClearStandCart(request, requestOptions));
|
|
159
165
|
}
|
|
160
|
-
|
|
166
|
+
__customerClearStandCart(request, requestOptions) {
|
|
161
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
168
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
163
|
-
const {
|
|
169
|
+
const { stand } = request;
|
|
164
170
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
165
171
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
166
172
|
const _response = yield core.fetcher({
|
|
167
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `
|
|
168
|
-
method: "
|
|
173
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/cart`),
|
|
174
|
+
method: "DELETE",
|
|
169
175
|
headers: _headers,
|
|
170
176
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
171
177
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -175,17 +181,12 @@ export class DiscountsClient {
|
|
|
175
181
|
logging: this._options.logging,
|
|
176
182
|
});
|
|
177
183
|
if (_response.ok) {
|
|
178
|
-
return {
|
|
179
|
-
data: _response.body,
|
|
180
|
-
rawResponse: _response.rawResponse,
|
|
181
|
-
};
|
|
184
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
182
185
|
}
|
|
183
186
|
if (_response.error.reason === "status-code") {
|
|
184
187
|
switch (_response.error.statusCode) {
|
|
185
188
|
case 401:
|
|
186
189
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
187
|
-
case 403:
|
|
188
|
-
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
189
190
|
case 404:
|
|
190
191
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
191
192
|
default:
|
|
@@ -196,40 +197,35 @@ export class DiscountsClient {
|
|
|
196
197
|
});
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
200
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/stands/{stand}/cart");
|
|
200
201
|
});
|
|
201
202
|
}
|
|
202
203
|
/**
|
|
203
|
-
* @param {FiveOneEat.
|
|
204
|
-
* @param {
|
|
204
|
+
* @param {FiveOneEat.CustomerStandPaymentIntentRequest} request
|
|
205
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
206
|
*
|
|
206
207
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
207
|
-
* @throws {@link FiveOneEat.ForbiddenError}
|
|
208
208
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
209
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
210
209
|
*
|
|
211
210
|
* @example
|
|
212
|
-
* await client.
|
|
213
|
-
*
|
|
211
|
+
* await client.customerStands.customerStandPaymentIntent({
|
|
212
|
+
* stand: "stand"
|
|
214
213
|
* })
|
|
215
214
|
*/
|
|
216
|
-
|
|
217
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
215
|
+
customerStandPaymentIntent(request, requestOptions) {
|
|
216
|
+
return core.HttpResponsePromise.fromPromise(this.__customerStandPaymentIntent(request, requestOptions));
|
|
218
217
|
}
|
|
219
|
-
|
|
218
|
+
__customerStandPaymentIntent(request, requestOptions) {
|
|
220
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
220
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
222
|
-
const {
|
|
221
|
+
const { stand } = request;
|
|
223
222
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
224
223
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
225
224
|
const _response = yield core.fetcher({
|
|
226
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `
|
|
227
|
-
method: "
|
|
225
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/cart/payment-intent`),
|
|
226
|
+
method: "POST",
|
|
228
227
|
headers: _headers,
|
|
229
|
-
contentType: "application/json",
|
|
230
228
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
231
|
-
requestType: "json",
|
|
232
|
-
body: _body,
|
|
233
229
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
234
230
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
235
231
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -246,12 +242,8 @@ export class DiscountsClient {
|
|
|
246
242
|
switch (_response.error.statusCode) {
|
|
247
243
|
case 401:
|
|
248
244
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
249
|
-
case 403:
|
|
250
|
-
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
251
245
|
case 404:
|
|
252
246
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
253
|
-
case 422:
|
|
254
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
255
247
|
default:
|
|
256
248
|
throw new errors.FiveOneEatError({
|
|
257
249
|
statusCode: _response.error.statusCode,
|
|
@@ -260,36 +252,42 @@ export class DiscountsClient {
|
|
|
260
252
|
});
|
|
261
253
|
}
|
|
262
254
|
}
|
|
263
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
255
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/cart/payment-intent");
|
|
264
256
|
});
|
|
265
257
|
}
|
|
266
258
|
/**
|
|
267
|
-
* @param {FiveOneEat.
|
|
268
|
-
* @param {
|
|
259
|
+
* @param {FiveOneEat.CustomerStandCheckoutRequest} request
|
|
260
|
+
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
269
261
|
*
|
|
270
262
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
271
|
-
* @throws {@link FiveOneEat.ForbiddenError}
|
|
272
263
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
264
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
273
265
|
*
|
|
274
266
|
* @example
|
|
275
|
-
* await client.
|
|
276
|
-
*
|
|
267
|
+
* await client.customerStands.customerStandCheckout({
|
|
268
|
+
* stand: "stand",
|
|
269
|
+
* body: {
|
|
270
|
+
* payment_intent_id: "payment_intent_id"
|
|
271
|
+
* }
|
|
277
272
|
* })
|
|
278
273
|
*/
|
|
279
|
-
|
|
280
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
274
|
+
customerStandCheckout(request, requestOptions) {
|
|
275
|
+
return core.HttpResponsePromise.fromPromise(this.__customerStandCheckout(request, requestOptions));
|
|
281
276
|
}
|
|
282
|
-
|
|
277
|
+
__customerStandCheckout(request, requestOptions) {
|
|
283
278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
284
279
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
285
|
-
const {
|
|
280
|
+
const { stand, body: _body } = request;
|
|
286
281
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
287
282
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
288
283
|
const _response = yield core.fetcher({
|
|
289
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `
|
|
290
|
-
method: "
|
|
284
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/stands/${core.url.encodePathParam(stand)}/cart/checkout`),
|
|
285
|
+
method: "POST",
|
|
291
286
|
headers: _headers,
|
|
287
|
+
contentType: "application/json",
|
|
292
288
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
289
|
+
requestType: "json",
|
|
290
|
+
body: _body,
|
|
293
291
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
294
292
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
295
293
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -306,10 +304,10 @@ export class DiscountsClient {
|
|
|
306
304
|
switch (_response.error.statusCode) {
|
|
307
305
|
case 401:
|
|
308
306
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
309
|
-
case 403:
|
|
310
|
-
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
311
307
|
case 404:
|
|
312
308
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
309
|
+
case 422:
|
|
310
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
313
311
|
default:
|
|
314
312
|
throw new errors.FiveOneEatError({
|
|
315
313
|
statusCode: _response.error.statusCode,
|
|
@@ -318,7 +316,7 @@ export class DiscountsClient {
|
|
|
318
316
|
});
|
|
319
317
|
}
|
|
320
318
|
}
|
|
321
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
319
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/stands/{stand}/cart/checkout");
|
|
322
320
|
});
|
|
323
321
|
}
|
|
324
322
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|