@51eat/sdk 0.0.75 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/business/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/client/Client.js +7 -2
- package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/index.js +3 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +26 -9
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +61 -30
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.ts +3 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.ts +3 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +3 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +3 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.ts +3 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.ts +3 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +4 -2
- package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +3 -1
- package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +3 -1
- package/dist/cjs/api/resources/business/resources/taxCodes/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/client/Client.js +111 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/types/ListTaxCodesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/taxCodes/types/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +98 -8
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +242 -11
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ChooseFulfillmentMethodRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ListShippingOptionsCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.js +3 -0
- package/dist/{esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.mts → cjs/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.d.ts} +6 -5
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +5 -2
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.ts +18 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.ts +18 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.js +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +4 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/index.js +4 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +6 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +7 -0
- package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +3 -0
- package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +3 -0
- package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +10 -0
- package/dist/cjs/api/types/BusinessEvent.d.ts +7 -0
- package/dist/cjs/api/types/BusinessEventTicketType.d.ts +2 -0
- package/dist/cjs/api/types/BusinessProfile.d.ts +1 -1
- package/dist/cjs/api/types/CartResource.d.ts +24 -0
- package/dist/cjs/api/types/ConflictErrorBody.d.ts +7 -1
- package/dist/cjs/api/types/ConflictErrorBody.js +4 -1
- package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +1 -1
- package/dist/cjs/api/types/FulfillmentType.d.ts +6 -0
- package/dist/cjs/api/types/FulfillmentType.js +9 -0
- package/dist/cjs/api/types/ProductResource.d.ts +5 -0
- package/dist/cjs/api/types/TaxCode.d.ts +21 -0
- package/dist/cjs/api/types/TaxCode.js +15 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/business/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +26 -9
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +62 -31
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.mts +3 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +3 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +3 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +3 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +3 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.mts +3 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +4 -2
- package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +3 -1
- package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +3 -1
- package/dist/esm/api/resources/business/resources/taxCodes/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/business/resources/taxCodes/client/Client.mjs +74 -0
- package/dist/esm/api/resources/business/resources/taxCodes/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/taxCodes/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/taxCodes/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/taxCodes/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/taxCodes/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/taxCodes/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/taxCodes/types/ListTaxCodesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/taxCodes/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/taxCodes/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +98 -8
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +242 -11
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ChooseFulfillmentMethodRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ListShippingOptionsCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.d.mts +12 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.d.mts +12 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.mjs +2 -0
- package/dist/{cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.ts → esm/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.d.mts} +6 -5
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +5 -2
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.mts +18 -0
- package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.mts +18 -0
- package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.mjs +7 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +4 -1
- package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +4 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +6 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +7 -0
- package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +3 -0
- package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +10 -0
- package/dist/esm/api/types/BusinessEvent.d.mts +7 -0
- package/dist/esm/api/types/BusinessEventTicketType.d.mts +2 -0
- package/dist/esm/api/types/BusinessProfile.d.mts +1 -1
- package/dist/esm/api/types/CartResource.d.mts +24 -0
- package/dist/esm/api/types/ConflictErrorBody.d.mts +7 -1
- package/dist/esm/api/types/ConflictErrorBody.mjs +4 -1
- package/dist/esm/api/types/CustomerBusinessProfile.d.mts +1 -1
- package/dist/esm/api/types/FulfillmentType.d.mts +6 -0
- package/dist/esm/api/types/FulfillmentType.mjs +6 -0
- package/dist/esm/api/types/ProductResource.d.mts +5 -0
- package/dist/esm/api/types/TaxCode.d.mts +21 -0
- package/dist/esm/api/types/TaxCode.mjs +12 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +377 -16
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundProductOrdersRequest.d.ts +0 -11
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.ts +0 -14
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +0 -14
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundProductOrdersRequest.d.mts +0 -11
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.mts +0 -14
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +0 -14
- /package/dist/cjs/api/resources/business/resources/productOrders/client/requests/{RefundProductOrdersRequest.js → RefundOrderRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/cart/client/requests/GetShippingOptionsCartRequest.js → business/resources/taxCodes/types/ListTaxCodesResponse.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/cart/client/requests/{SelectShippingOptionCartRequest.js → ChooseFulfillmentMethodRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/cart/{types/GetShippingOptionsCartResponse.js → client/requests/ListShippingOptionsCartRequest.js} +0 -0
- /package/dist/esm/api/resources/business/resources/productOrders/client/requests/{RefundProductOrdersRequest.mjs → RefundOrderRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/cart/client/requests/GetShippingOptionsCartRequest.mjs → business/resources/taxCodes/types/ListTaxCodesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/cart/client/requests/{SelectShippingOptionCartRequest.mjs → ChooseFulfillmentMethodRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/cart/{types/GetShippingOptionsCartResponse.mjs → client/requests/ListShippingOptionsCartRequest.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -1750,7 +1750,7 @@ await client.business.productOrders.list();
|
|
|
1750
1750
|
|
|
1751
1751
|
```typescript
|
|
1752
1752
|
await client.business.productOrders.get({
|
|
1753
|
-
|
|
1753
|
+
order: "order"
|
|
1754
1754
|
});
|
|
1755
1755
|
|
|
1756
1756
|
```
|
|
@@ -1801,7 +1801,7 @@ await client.business.productOrders.get({
|
|
|
1801
1801
|
|
|
1802
1802
|
```typescript
|
|
1803
1803
|
await client.business.productOrders.fulfill({
|
|
1804
|
-
|
|
1804
|
+
order: "order"
|
|
1805
1805
|
});
|
|
1806
1806
|
|
|
1807
1807
|
```
|
|
@@ -1852,7 +1852,7 @@ await client.business.productOrders.fulfill({
|
|
|
1852
1852
|
|
|
1853
1853
|
```typescript
|
|
1854
1854
|
await client.business.productOrders.markPickedUp({
|
|
1855
|
-
|
|
1855
|
+
order: "order"
|
|
1856
1856
|
});
|
|
1857
1857
|
|
|
1858
1858
|
```
|
|
@@ -1903,7 +1903,7 @@ await client.business.productOrders.markPickedUp({
|
|
|
1903
1903
|
|
|
1904
1904
|
```typescript
|
|
1905
1905
|
await client.business.productOrders.addTracking({
|
|
1906
|
-
|
|
1906
|
+
order: "order",
|
|
1907
1907
|
carrier: "carrier",
|
|
1908
1908
|
tracking_number: "tracking_number"
|
|
1909
1909
|
});
|
|
@@ -1946,6 +1946,28 @@ await client.business.productOrders.addTracking({
|
|
|
1946
1946
|
<dl>
|
|
1947
1947
|
<dd>
|
|
1948
1948
|
|
|
1949
|
+
#### 📝 Description
|
|
1950
|
+
|
|
1951
|
+
<dl>
|
|
1952
|
+
<dd>
|
|
1953
|
+
|
|
1954
|
+
<dl>
|
|
1955
|
+
<dd>
|
|
1956
|
+
|
|
1957
|
+
Refunds `amount` (dollars) of the order, or everything still refundable
|
|
1958
|
+
when `amount` is omitted, through Stripe. Sales tax on the refunded part
|
|
1959
|
+
is reversed automatically.
|
|
1960
|
+
|
|
1961
|
+
Send an `Idempotency-Key` header (1–255 characters, unique per refund you
|
|
1962
|
+
mean to make) to make retries safe: a repeat with the same key returns
|
|
1963
|
+
the order with the refund already made, with 200, instead of refunding
|
|
1964
|
+
again — even when nothing is left to refund. Without it, a retry after a
|
|
1965
|
+
lost response may refund twice.
|
|
1966
|
+
</dd>
|
|
1967
|
+
</dl>
|
|
1968
|
+
</dd>
|
|
1969
|
+
</dl>
|
|
1970
|
+
|
|
1949
1971
|
#### 🔌 Usage
|
|
1950
1972
|
|
|
1951
1973
|
<dl>
|
|
@@ -1956,7 +1978,7 @@ await client.business.productOrders.addTracking({
|
|
|
1956
1978
|
|
|
1957
1979
|
```typescript
|
|
1958
1980
|
await client.business.productOrders.refund({
|
|
1959
|
-
|
|
1981
|
+
order: "order"
|
|
1960
1982
|
});
|
|
1961
1983
|
|
|
1962
1984
|
```
|
|
@@ -1973,7 +1995,7 @@ await client.business.productOrders.refund({
|
|
|
1973
1995
|
<dl>
|
|
1974
1996
|
<dd>
|
|
1975
1997
|
|
|
1976
|
-
**request:** `FiveOneEat.business.
|
|
1998
|
+
**request:** `FiveOneEat.business.RefundOrderRequest`
|
|
1977
1999
|
|
|
1978
2000
|
</dd>
|
|
1979
2001
|
</dl>
|
|
@@ -2007,7 +2029,7 @@ await client.business.productOrders.refund({
|
|
|
2007
2029
|
|
|
2008
2030
|
```typescript
|
|
2009
2031
|
await client.business.productOrders.getLabelRates({
|
|
2010
|
-
|
|
2032
|
+
order: "order"
|
|
2011
2033
|
});
|
|
2012
2034
|
|
|
2013
2035
|
```
|
|
@@ -2058,7 +2080,7 @@ await client.business.productOrders.getLabelRates({
|
|
|
2058
2080
|
|
|
2059
2081
|
```typescript
|
|
2060
2082
|
await client.business.productOrders.purchaseLabel({
|
|
2061
|
-
|
|
2083
|
+
order: "order",
|
|
2062
2084
|
provider_rate_id: "provider_rate_id"
|
|
2063
2085
|
});
|
|
2064
2086
|
|
|
@@ -2296,7 +2318,8 @@ await client.business.products.list();
|
|
|
2296
2318
|
|
|
2297
2319
|
```typescript
|
|
2298
2320
|
await client.business.products.create({
|
|
2299
|
-
name: "name"
|
|
2321
|
+
name: "name",
|
|
2322
|
+
tax_code: "tax_code"
|
|
2300
2323
|
});
|
|
2301
2324
|
|
|
2302
2325
|
```
|
|
@@ -2399,7 +2422,8 @@ await client.business.products.get({
|
|
|
2399
2422
|
```typescript
|
|
2400
2423
|
await client.business.products.update({
|
|
2401
2424
|
product: "product",
|
|
2402
|
-
name: "name"
|
|
2425
|
+
name: "name",
|
|
2426
|
+
tax_code: "tax_code"
|
|
2403
2427
|
});
|
|
2404
2428
|
|
|
2405
2429
|
```
|
|
@@ -2483,6 +2507,64 @@ await client.business.products.delete({
|
|
|
2483
2507
|
</dl>
|
|
2484
2508
|
|
|
2485
2509
|
|
|
2510
|
+
</dd>
|
|
2511
|
+
</dl>
|
|
2512
|
+
</details>
|
|
2513
|
+
|
|
2514
|
+
## Business TaxCodes
|
|
2515
|
+
<details><summary><code>client.business.taxCodes.<a href="/src/api/resources/business/resources/taxCodes/client/Client.ts">list</a>() -> FiveOneEat.ListTaxCodesResponse</code></summary>
|
|
2516
|
+
<dl>
|
|
2517
|
+
<dd>
|
|
2518
|
+
|
|
2519
|
+
#### 📝 Description
|
|
2520
|
+
|
|
2521
|
+
<dl>
|
|
2522
|
+
<dd>
|
|
2523
|
+
|
|
2524
|
+
<dl>
|
|
2525
|
+
<dd>
|
|
2526
|
+
|
|
2527
|
+
Stripe's full product tax code catalog. A product's `tax_code` must be
|
|
2528
|
+
one where `allowed_on_products` is true; a paid ticket type's must be
|
|
2529
|
+
one where `allowed_on_ticket_types` is true.
|
|
2530
|
+
</dd>
|
|
2531
|
+
</dl>
|
|
2532
|
+
</dd>
|
|
2533
|
+
</dl>
|
|
2534
|
+
|
|
2535
|
+
#### 🔌 Usage
|
|
2536
|
+
|
|
2537
|
+
<dl>
|
|
2538
|
+
<dd>
|
|
2539
|
+
|
|
2540
|
+
<dl>
|
|
2541
|
+
<dd>
|
|
2542
|
+
|
|
2543
|
+
```typescript
|
|
2544
|
+
await client.business.taxCodes.list();
|
|
2545
|
+
|
|
2546
|
+
```
|
|
2547
|
+
</dd>
|
|
2548
|
+
</dl>
|
|
2549
|
+
</dd>
|
|
2550
|
+
</dl>
|
|
2551
|
+
|
|
2552
|
+
#### ⚙️ Parameters
|
|
2553
|
+
|
|
2554
|
+
<dl>
|
|
2555
|
+
<dd>
|
|
2556
|
+
|
|
2557
|
+
<dl>
|
|
2558
|
+
<dd>
|
|
2559
|
+
|
|
2560
|
+
**requestOptions:** `TaxCodesClient.RequestOptions`
|
|
2561
|
+
|
|
2562
|
+
</dd>
|
|
2563
|
+
</dl>
|
|
2564
|
+
</dd>
|
|
2565
|
+
</dl>
|
|
2566
|
+
|
|
2567
|
+
|
|
2486
2568
|
</dd>
|
|
2487
2569
|
</dl>
|
|
2488
2570
|
</details>
|
|
@@ -10996,6 +11078,27 @@ await client.customer.cart.removeItem({
|
|
|
10996
11078
|
<dl>
|
|
10997
11079
|
<dd>
|
|
10998
11080
|
|
|
11081
|
+
#### 📝 Description
|
|
11082
|
+
|
|
11083
|
+
<dl>
|
|
11084
|
+
<dd>
|
|
11085
|
+
|
|
11086
|
+
<dl>
|
|
11087
|
+
<dd>
|
|
11088
|
+
|
|
11089
|
+
Refused with a 422 and a message while the order can't be priced yet: no
|
|
11090
|
+
fulfillment method chosen (when the shop offers several), a shipped order
|
|
11091
|
+
with no shipping address, or calculated shipping with no option chosen.
|
|
11092
|
+
The message is also in the cart's `fulfillment.checkout_blocker`.
|
|
11093
|
+
|
|
11094
|
+
A 409 `{status: "paid", message, payment_intent_id}` means the cart's
|
|
11095
|
+
payment already went through (never a second payment): finish checkout
|
|
11096
|
+
with that id. A 409 with only a message means it is still processing.
|
|
11097
|
+
</dd>
|
|
11098
|
+
</dl>
|
|
11099
|
+
</dd>
|
|
11100
|
+
</dl>
|
|
11101
|
+
|
|
10999
11102
|
#### 🔌 Usage
|
|
11000
11103
|
|
|
11001
11104
|
<dl>
|
|
@@ -11039,6 +11142,87 @@ await client.customer.cart.createPaymentIntent({
|
|
|
11039
11142
|
</dl>
|
|
11040
11143
|
|
|
11041
11144
|
|
|
11145
|
+
</dd>
|
|
11146
|
+
</dl>
|
|
11147
|
+
</details>
|
|
11148
|
+
|
|
11149
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">refreshPaymentIntent</a>({ ...params }) -> FiveOneEat.RefreshPaymentIntentCartResponse</code></summary>
|
|
11150
|
+
<dl>
|
|
11151
|
+
<dd>
|
|
11152
|
+
|
|
11153
|
+
#### 📝 Description
|
|
11154
|
+
|
|
11155
|
+
<dl>
|
|
11156
|
+
<dd>
|
|
11157
|
+
|
|
11158
|
+
<dl>
|
|
11159
|
+
<dd>
|
|
11160
|
+
|
|
11161
|
+
Call immediately before presenting or confirming the payment sheet. The
|
|
11162
|
+
cart may have changed since its payment intent was created (another
|
|
11163
|
+
device, a changed address or shipping option), so it is re-priced and
|
|
11164
|
+
the intent brought up to date. Send `amount`, the total in cents the
|
|
11165
|
+
buyer is looking at.
|
|
11166
|
+
|
|
11167
|
+
- `total_changed: false` — pay with the returned `client_secret`.
|
|
11168
|
+
- `total_changed: true` — show "Your total changed to $X", re-initialise
|
|
11169
|
+
the payment sheet with the returned `client_secret` (it carries the new
|
|
11170
|
+
amount), and let the buyer confirm again.
|
|
11171
|
+
- 422 with a message — the order can't be priced yet (the same message
|
|
11172
|
+
as `fulfillment.checkout_blocker`); the old intent is cancelled.
|
|
11173
|
+
- 409 `status: paid` with `payment_intent_id` — the payment already went
|
|
11174
|
+
through; call checkout with that id instead.
|
|
11175
|
+
- 409 `status: processing` — the payment is still processing; don't pay
|
|
11176
|
+
again, check back later.
|
|
11177
|
+
</dd>
|
|
11178
|
+
</dl>
|
|
11179
|
+
</dd>
|
|
11180
|
+
</dl>
|
|
11181
|
+
|
|
11182
|
+
#### 🔌 Usage
|
|
11183
|
+
|
|
11184
|
+
<dl>
|
|
11185
|
+
<dd>
|
|
11186
|
+
|
|
11187
|
+
<dl>
|
|
11188
|
+
<dd>
|
|
11189
|
+
|
|
11190
|
+
```typescript
|
|
11191
|
+
await client.customer.cart.refreshPaymentIntent({
|
|
11192
|
+
business: "business",
|
|
11193
|
+
amount: 1
|
|
11194
|
+
});
|
|
11195
|
+
|
|
11196
|
+
```
|
|
11197
|
+
</dd>
|
|
11198
|
+
</dl>
|
|
11199
|
+
</dd>
|
|
11200
|
+
</dl>
|
|
11201
|
+
|
|
11202
|
+
#### ⚙️ Parameters
|
|
11203
|
+
|
|
11204
|
+
<dl>
|
|
11205
|
+
<dd>
|
|
11206
|
+
|
|
11207
|
+
<dl>
|
|
11208
|
+
<dd>
|
|
11209
|
+
|
|
11210
|
+
**request:** `FiveOneEat.customer.RefreshCartPaymentRequest`
|
|
11211
|
+
|
|
11212
|
+
</dd>
|
|
11213
|
+
</dl>
|
|
11214
|
+
|
|
11215
|
+
<dl>
|
|
11216
|
+
<dd>
|
|
11217
|
+
|
|
11218
|
+
**requestOptions:** `CartClient.RequestOptions`
|
|
11219
|
+
|
|
11220
|
+
</dd>
|
|
11221
|
+
</dl>
|
|
11222
|
+
</dd>
|
|
11223
|
+
</dl>
|
|
11224
|
+
|
|
11225
|
+
|
|
11042
11226
|
</dd>
|
|
11043
11227
|
</dl>
|
|
11044
11228
|
</details>
|
|
@@ -11047,6 +11231,23 @@ await client.customer.cart.createPaymentIntent({
|
|
|
11047
11231
|
<dl>
|
|
11048
11232
|
<dd>
|
|
11049
11233
|
|
|
11234
|
+
#### 📝 Description
|
|
11235
|
+
|
|
11236
|
+
<dl>
|
|
11237
|
+
<dd>
|
|
11238
|
+
|
|
11239
|
+
<dl>
|
|
11240
|
+
<dd>
|
|
11241
|
+
|
|
11242
|
+
Not gated on commerce readiness: the customer has already paid, so a
|
|
11243
|
+
lapsed readiness check must not stop the order from being recorded.
|
|
11244
|
+
A 409 means the cart changed after the payment was priced: the payment
|
|
11245
|
+
was refunded in full and no order was placed — re-check and pay again.
|
|
11246
|
+
</dd>
|
|
11247
|
+
</dl>
|
|
11248
|
+
</dd>
|
|
11249
|
+
</dl>
|
|
11250
|
+
|
|
11050
11251
|
#### 🔌 Usage
|
|
11051
11252
|
|
|
11052
11253
|
<dl>
|
|
@@ -11097,10 +11298,24 @@ await client.customer.cart.checkout({
|
|
|
11097
11298
|
</dl>
|
|
11098
11299
|
</details>
|
|
11099
11300
|
|
|
11100
|
-
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">
|
|
11301
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">setFulfillment</a>({ ...params }) -> FiveOneEat.SetFulfillmentCartResponse</code></summary>
|
|
11302
|
+
<dl>
|
|
11303
|
+
<dd>
|
|
11304
|
+
|
|
11305
|
+
#### 📝 Description
|
|
11306
|
+
|
|
11307
|
+
<dl>
|
|
11308
|
+
<dd>
|
|
11309
|
+
|
|
11101
11310
|
<dl>
|
|
11102
11311
|
<dd>
|
|
11103
11312
|
|
|
11313
|
+
Switching away from shipping clears the saved shipping address and option.
|
|
11314
|
+
</dd>
|
|
11315
|
+
</dl>
|
|
11316
|
+
</dd>
|
|
11317
|
+
</dl>
|
|
11318
|
+
|
|
11104
11319
|
#### 🔌 Usage
|
|
11105
11320
|
|
|
11106
11321
|
<dl>
|
|
@@ -11110,7 +11325,74 @@ await client.customer.cart.checkout({
|
|
|
11110
11325
|
<dd>
|
|
11111
11326
|
|
|
11112
11327
|
```typescript
|
|
11113
|
-
await client.customer.cart.
|
|
11328
|
+
await client.customer.cart.setFulfillment({
|
|
11329
|
+
business: "business",
|
|
11330
|
+
fulfillment_method: "ship"
|
|
11331
|
+
});
|
|
11332
|
+
|
|
11333
|
+
```
|
|
11334
|
+
</dd>
|
|
11335
|
+
</dl>
|
|
11336
|
+
</dd>
|
|
11337
|
+
</dl>
|
|
11338
|
+
|
|
11339
|
+
#### ⚙️ Parameters
|
|
11340
|
+
|
|
11341
|
+
<dl>
|
|
11342
|
+
<dd>
|
|
11343
|
+
|
|
11344
|
+
<dl>
|
|
11345
|
+
<dd>
|
|
11346
|
+
|
|
11347
|
+
**request:** `FiveOneEat.customer.ChooseFulfillmentMethodRequest`
|
|
11348
|
+
|
|
11349
|
+
</dd>
|
|
11350
|
+
</dl>
|
|
11351
|
+
|
|
11352
|
+
<dl>
|
|
11353
|
+
<dd>
|
|
11354
|
+
|
|
11355
|
+
**requestOptions:** `CartClient.RequestOptions`
|
|
11356
|
+
|
|
11357
|
+
</dd>
|
|
11358
|
+
</dl>
|
|
11359
|
+
</dd>
|
|
11360
|
+
</dl>
|
|
11361
|
+
|
|
11362
|
+
|
|
11363
|
+
</dd>
|
|
11364
|
+
</dl>
|
|
11365
|
+
</details>
|
|
11366
|
+
|
|
11367
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">setShippingAddress</a>({ ...params }) -> FiveOneEat.SetShippingAddressCartResponse</code></summary>
|
|
11368
|
+
<dl>
|
|
11369
|
+
<dd>
|
|
11370
|
+
|
|
11371
|
+
#### 📝 Description
|
|
11372
|
+
|
|
11373
|
+
<dl>
|
|
11374
|
+
<dd>
|
|
11375
|
+
|
|
11376
|
+
<dl>
|
|
11377
|
+
<dd>
|
|
11378
|
+
|
|
11379
|
+
Sales tax on a shipped order is worked out from this address. Saving a
|
|
11380
|
+
different address clears the chosen shipping option.
|
|
11381
|
+
</dd>
|
|
11382
|
+
</dl>
|
|
11383
|
+
</dd>
|
|
11384
|
+
</dl>
|
|
11385
|
+
|
|
11386
|
+
#### 🔌 Usage
|
|
11387
|
+
|
|
11388
|
+
<dl>
|
|
11389
|
+
<dd>
|
|
11390
|
+
|
|
11391
|
+
<dl>
|
|
11392
|
+
<dd>
|
|
11393
|
+
|
|
11394
|
+
```typescript
|
|
11395
|
+
await client.customer.cart.setShippingAddress({
|
|
11114
11396
|
business: "business",
|
|
11115
11397
|
address: {
|
|
11116
11398
|
line1: "line1",
|
|
@@ -11134,7 +11416,72 @@ await client.customer.cart.getShippingOptions({
|
|
|
11134
11416
|
<dl>
|
|
11135
11417
|
<dd>
|
|
11136
11418
|
|
|
11137
|
-
**request:** `FiveOneEat.customer.
|
|
11419
|
+
**request:** `FiveOneEat.customer.ShippingAddressRequest`
|
|
11420
|
+
|
|
11421
|
+
</dd>
|
|
11422
|
+
</dl>
|
|
11423
|
+
|
|
11424
|
+
<dl>
|
|
11425
|
+
<dd>
|
|
11426
|
+
|
|
11427
|
+
**requestOptions:** `CartClient.RequestOptions`
|
|
11428
|
+
|
|
11429
|
+
</dd>
|
|
11430
|
+
</dl>
|
|
11431
|
+
</dd>
|
|
11432
|
+
</dl>
|
|
11433
|
+
|
|
11434
|
+
|
|
11435
|
+
</dd>
|
|
11436
|
+
</dl>
|
|
11437
|
+
</details>
|
|
11438
|
+
|
|
11439
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">listShippingOptions</a>({ ...params }) -> FiveOneEat.ListShippingOptionsCartResponse</code></summary>
|
|
11440
|
+
<dl>
|
|
11441
|
+
<dd>
|
|
11442
|
+
|
|
11443
|
+
#### 📝 Description
|
|
11444
|
+
|
|
11445
|
+
<dl>
|
|
11446
|
+
<dd>
|
|
11447
|
+
|
|
11448
|
+
<dl>
|
|
11449
|
+
<dd>
|
|
11450
|
+
|
|
11451
|
+
Options are held for 30 minutes; choose one by its `provider_rate_id`.
|
|
11452
|
+
</dd>
|
|
11453
|
+
</dl>
|
|
11454
|
+
</dd>
|
|
11455
|
+
</dl>
|
|
11456
|
+
|
|
11457
|
+
#### 🔌 Usage
|
|
11458
|
+
|
|
11459
|
+
<dl>
|
|
11460
|
+
<dd>
|
|
11461
|
+
|
|
11462
|
+
<dl>
|
|
11463
|
+
<dd>
|
|
11464
|
+
|
|
11465
|
+
```typescript
|
|
11466
|
+
await client.customer.cart.listShippingOptions({
|
|
11467
|
+
business: "business"
|
|
11468
|
+
});
|
|
11469
|
+
|
|
11470
|
+
```
|
|
11471
|
+
</dd>
|
|
11472
|
+
</dl>
|
|
11473
|
+
</dd>
|
|
11474
|
+
</dl>
|
|
11475
|
+
|
|
11476
|
+
#### ⚙️ Parameters
|
|
11477
|
+
|
|
11478
|
+
<dl>
|
|
11479
|
+
<dd>
|
|
11480
|
+
|
|
11481
|
+
<dl>
|
|
11482
|
+
<dd>
|
|
11483
|
+
|
|
11484
|
+
**request:** `FiveOneEat.customer.ListShippingOptionsCartRequest`
|
|
11138
11485
|
|
|
11139
11486
|
</dd>
|
|
11140
11487
|
</dl>
|
|
@@ -11158,6 +11505,21 @@ await client.customer.cart.getShippingOptions({
|
|
|
11158
11505
|
<dl>
|
|
11159
11506
|
<dd>
|
|
11160
11507
|
|
|
11508
|
+
#### 📝 Description
|
|
11509
|
+
|
|
11510
|
+
<dl>
|
|
11511
|
+
<dd>
|
|
11512
|
+
|
|
11513
|
+
<dl>
|
|
11514
|
+
<dd>
|
|
11515
|
+
|
|
11516
|
+
Send only the `provider_rate_id` from the shipping options. The price is
|
|
11517
|
+
the one quoted; an option older than 30 minutes is refused with a 422.
|
|
11518
|
+
</dd>
|
|
11519
|
+
</dl>
|
|
11520
|
+
</dd>
|
|
11521
|
+
</dl>
|
|
11522
|
+
|
|
11161
11523
|
#### 🔌 Usage
|
|
11162
11524
|
|
|
11163
11525
|
<dl>
|
|
@@ -11169,8 +11531,7 @@ await client.customer.cart.getShippingOptions({
|
|
|
11169
11531
|
```typescript
|
|
11170
11532
|
await client.customer.cart.selectShippingOption({
|
|
11171
11533
|
business: "business",
|
|
11172
|
-
provider_rate_id: "provider_rate_id"
|
|
11173
|
-
amount_cents: 1
|
|
11534
|
+
provider_rate_id: "provider_rate_id"
|
|
11174
11535
|
});
|
|
11175
11536
|
|
|
11176
11537
|
```
|
|
@@ -11187,7 +11548,7 @@ await client.customer.cart.selectShippingOption({
|
|
|
11187
11548
|
<dl>
|
|
11188
11549
|
<dd>
|
|
11189
11550
|
|
|
11190
|
-
**request:** `FiveOneEat.customer.
|
|
11551
|
+
**request:** `FiveOneEat.customer.SelectShippingRateRequest`
|
|
11191
11552
|
|
|
11192
11553
|
</dd>
|
|
11193
11554
|
</dl>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @example
|
|
3
|
-
* {
|
|
4
|
-
* business: "business",
|
|
5
|
-
* provider_rate_id: "provider_rate_id",
|
|
6
|
-
* amount_cents: 1
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
9
|
-
export interface SelectShippingOptionCartRequest {
|
|
10
|
-
/** The business ID */
|
|
11
|
-
business: string;
|
|
12
|
-
provider_rate_id: string;
|
|
13
|
-
amount_cents: number;
|
|
14
|
-
}
|
package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type GetShippingOptionsCartResponse = {
|
|
2
|
-
options: {
|
|
3
|
-
provider_rate_id: string;
|
|
4
|
-
carrier: string;
|
|
5
|
-
service: string;
|
|
6
|
-
amount: number;
|
|
7
|
-
amount_cents: number;
|
|
8
|
-
currency: string;
|
|
9
|
-
carrier_delivery_days: number | null;
|
|
10
|
-
estimated_delivery_date: string | null;
|
|
11
|
-
}[];
|
|
12
|
-
} | {
|
|
13
|
-
options: string[];
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @example
|
|
3
|
-
* {
|
|
4
|
-
* business: "business",
|
|
5
|
-
* provider_rate_id: "provider_rate_id",
|
|
6
|
-
* amount_cents: 1
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
9
|
-
export interface SelectShippingOptionCartRequest {
|
|
10
|
-
/** The business ID */
|
|
11
|
-
business: string;
|
|
12
|
-
provider_rate_id: string;
|
|
13
|
-
amount_cents: number;
|
|
14
|
-
}
|
package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type GetShippingOptionsCartResponse = {
|
|
2
|
-
options: {
|
|
3
|
-
provider_rate_id: string;
|
|
4
|
-
carrier: string;
|
|
5
|
-
service: string;
|
|
6
|
-
amount: number;
|
|
7
|
-
amount_cents: number;
|
|
8
|
-
currency: string;
|
|
9
|
-
carrier_delivery_days: number | null;
|
|
10
|
-
estimated_delivery_date: string | null;
|
|
11
|
-
}[];
|
|
12
|
-
} | {
|
|
13
|
-
options: string[];
|
|
14
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|