@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
|
@@ -9,6 +9,13 @@ export interface CreatePaymentIntentTicketingResponse {
|
|
|
9
9
|
shipping_method: unknown | null;
|
|
10
10
|
platform_fee: number;
|
|
11
11
|
total_amount: number;
|
|
12
|
+
total_cents: number;
|
|
13
|
+
/**
|
|
14
|
+
* The stored intent as it stood before this call, so a caller can
|
|
15
|
+
* tell whether the price the buyer is about to pay just moved.
|
|
16
|
+
*/
|
|
17
|
+
previous_payment_intent_id: string | null;
|
|
18
|
+
previous_amount_cents: string | null;
|
|
12
19
|
}
|
|
13
20
|
export declare namespace CreatePaymentIntentTicketingResponse {
|
|
14
21
|
interface TaxCalculation {
|
|
@@ -109,6 +109,7 @@ class ProductOrdersClient {
|
|
|
109
109
|
*
|
|
110
110
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
111
111
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
112
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
112
113
|
*
|
|
113
114
|
* @example
|
|
114
115
|
* await client.customer.productOrders.get({
|
|
@@ -147,6 +148,8 @@ class ProductOrdersClient {
|
|
|
147
148
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
148
149
|
case 403:
|
|
149
150
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
151
|
+
case 404:
|
|
152
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
150
153
|
default:
|
|
151
154
|
throw new errors.FiveOneEatError({
|
|
152
155
|
statusCode: _response.error.statusCode,
|
|
@@ -32,6 +32,7 @@ export declare class StandsClient {
|
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
34
34
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
35
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* await client.customer.stands.createPaymentIntent({
|
|
@@ -115,6 +115,7 @@ class StandsClient {
|
|
|
115
115
|
*
|
|
116
116
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
117
117
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
118
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
118
119
|
*
|
|
119
120
|
* @example
|
|
120
121
|
* await client.customer.stands.createPaymentIntent({
|
|
@@ -153,6 +154,8 @@ class StandsClient {
|
|
|
153
154
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
154
155
|
case 404:
|
|
155
156
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
157
|
+
case 422:
|
|
158
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
156
159
|
default:
|
|
157
160
|
throw new errors.FiveOneEatError({
|
|
158
161
|
statusCode: _response.error.statusCode,
|
|
@@ -6,6 +6,16 @@ export interface AppHttpResourcesApiV1BusinessCommerceProductResource {
|
|
|
6
6
|
description: string;
|
|
7
7
|
is_active: boolean;
|
|
8
8
|
published_at: string;
|
|
9
|
+
/**
|
|
10
|
+
* Owner-only: never eager-loaded by the guest-facing
|
|
11
|
+
* `Api\V1\Customer\Shop\ShopController`, which shares this
|
|
12
|
+
* resource. Mirrors how `variants`/`default_variant` are already
|
|
13
|
+
* scoped to whichever relations the calling controller loaded. Gated on `relationLoaded()` rather than `whenLoaded()`'s value
|
|
14
|
+
* form: the latter also hides the field when the loaded relation
|
|
15
|
+
* itself resolves to null (e.g. a tax code no longer in the
|
|
16
|
+
* catalog), which would hide a real, owner-visible column value.
|
|
17
|
+
*/
|
|
18
|
+
tax_code?: string | undefined;
|
|
9
19
|
variants?: FiveOneEat.VariantResource[] | undefined;
|
|
10
20
|
default_variant?: FiveOneEat.VariantResource | undefined;
|
|
11
21
|
created_at: string;
|
|
@@ -7,6 +7,13 @@ export interface BusinessEvent {
|
|
|
7
7
|
starts_at: string;
|
|
8
8
|
ends_at: string;
|
|
9
9
|
location: string;
|
|
10
|
+
venue_address: string;
|
|
11
|
+
venue_city: string;
|
|
12
|
+
venue_state: string;
|
|
13
|
+
venue_zipcode: string;
|
|
14
|
+
venue_country: string;
|
|
15
|
+
latitude: number | null;
|
|
16
|
+
longitude: number | null;
|
|
10
17
|
is_all_day: string;
|
|
11
18
|
is_featured: string;
|
|
12
19
|
ticket_sales_enabled: string;
|
|
@@ -4,6 +4,8 @@ export interface BusinessEventTicketType {
|
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
price: string;
|
|
7
|
+
/** Stripe tax code (txcd_…); one of EventTaxCodes::ALLOWED. Null for free tiers. */
|
|
8
|
+
tax_code: string | null;
|
|
7
9
|
quantity_available: string;
|
|
8
10
|
quantity_sold: string;
|
|
9
11
|
remaining_quantity: string;
|
|
@@ -41,7 +41,7 @@ export interface BusinessProfile {
|
|
|
41
41
|
}
|
|
42
42
|
export declare namespace BusinessProfile {
|
|
43
43
|
interface Hours {
|
|
44
|
-
is_open_now:
|
|
44
|
+
is_open_now: boolean;
|
|
45
45
|
next_open_at: string | null;
|
|
46
46
|
schedule: FiveOneEat.BusinessScheduleDayResource[];
|
|
47
47
|
exceptions: FiveOneEat.BusinessHourExceptionResource[];
|
|
@@ -4,6 +4,8 @@ export interface CartResource {
|
|
|
4
4
|
subtotal_cents: number;
|
|
5
5
|
subtotal: number;
|
|
6
6
|
item_count: number;
|
|
7
|
+
/** How the order will be fulfilled and what checkout still needs. */
|
|
8
|
+
fulfillment: CartResource.Fulfillment;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace CartResource {
|
|
9
11
|
type Items = Items.Item[];
|
|
@@ -18,4 +20,26 @@ export declare namespace CartResource {
|
|
|
18
20
|
total_cents: number;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* How the order will be fulfilled and what checkout still needs.
|
|
25
|
+
*/
|
|
26
|
+
interface Fulfillment {
|
|
27
|
+
offered_methods: string[];
|
|
28
|
+
method: string | null;
|
|
29
|
+
shipping_address: Fulfillment.ShippingAddress | null;
|
|
30
|
+
requires_rate_selection: boolean;
|
|
31
|
+
selected_shipping_rate_id: string | null;
|
|
32
|
+
selected_shipping_amount_cents: number | null;
|
|
33
|
+
checkout_blocker: string | null;
|
|
34
|
+
}
|
|
35
|
+
namespace Fulfillment {
|
|
36
|
+
interface ShippingAddress {
|
|
37
|
+
line1: string;
|
|
38
|
+
line2: string | null;
|
|
39
|
+
city: string;
|
|
40
|
+
state: string;
|
|
41
|
+
postal_code: string;
|
|
42
|
+
country: string;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
21
45
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export interface ConflictErrorBody {
|
|
2
|
+
status: ConflictErrorBody.Status;
|
|
2
3
|
message: ConflictErrorBody.Message;
|
|
4
|
+
payment_intent_id: string;
|
|
3
5
|
}
|
|
4
6
|
export declare namespace ConflictErrorBody {
|
|
7
|
+
const Status: {
|
|
8
|
+
readonly Paid: "paid";
|
|
9
|
+
};
|
|
10
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
5
11
|
const Message: {
|
|
6
|
-
readonly
|
|
12
|
+
readonly YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets — they'll arrive by email shortly.";
|
|
7
13
|
};
|
|
8
14
|
type Message = (typeof Message)[keyof typeof Message];
|
|
9
15
|
}
|
|
@@ -4,7 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ConflictErrorBody = void 0;
|
|
5
5
|
var ConflictErrorBody;
|
|
6
6
|
(function (ConflictErrorBody) {
|
|
7
|
+
ConflictErrorBody.Status = {
|
|
8
|
+
Paid: "paid",
|
|
9
|
+
};
|
|
7
10
|
ConflictErrorBody.Message = {
|
|
8
|
-
|
|
11
|
+
YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets \u2014 they'll arrive by email shortly.",
|
|
9
12
|
};
|
|
10
13
|
})(ConflictErrorBody || (exports.ConflictErrorBody = ConflictErrorBody = {}));
|
|
@@ -38,7 +38,7 @@ export interface CustomerBusinessProfile {
|
|
|
38
38
|
}
|
|
39
39
|
export declare namespace CustomerBusinessProfile {
|
|
40
40
|
interface Hours {
|
|
41
|
-
is_open_now:
|
|
41
|
+
is_open_now: boolean;
|
|
42
42
|
next_open_at: string | null;
|
|
43
43
|
schedule: FiveOneEat.BusinessScheduleDayResource[];
|
|
44
44
|
exceptions: FiveOneEat.BusinessHourExceptionResource[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FulfillmentType = void 0;
|
|
5
|
+
exports.FulfillmentType = {
|
|
6
|
+
Ship: "ship",
|
|
7
|
+
Pickup: "pickup",
|
|
8
|
+
InPerson: "in_person",
|
|
9
|
+
};
|
|
@@ -7,6 +7,11 @@ export interface ProductResource {
|
|
|
7
7
|
published_at: string | null;
|
|
8
8
|
metadata: Record<string, unknown> | null;
|
|
9
9
|
product_category_id: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Owner-only: shared with the customer stand shop, so it appears only
|
|
12
|
+
* when the business controller loaded the `taxCode` relation.
|
|
13
|
+
*/
|
|
14
|
+
tax_code?: (string | null) | undefined;
|
|
10
15
|
category?: unknown[] | undefined;
|
|
11
16
|
images?: unknown[] | undefined;
|
|
12
17
|
variants?: unknown[] | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TaxCode {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string | null;
|
|
5
|
+
category: TaxCode.Category;
|
|
6
|
+
/** Whether a product may use this code. */
|
|
7
|
+
allowed_on_products: boolean;
|
|
8
|
+
/** Whether an event ticket type may use this code. */
|
|
9
|
+
allowed_on_ticket_types: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace TaxCode {
|
|
12
|
+
const Category: {
|
|
13
|
+
readonly Food: "food";
|
|
14
|
+
readonly Goods: "goods";
|
|
15
|
+
readonly Services: "services";
|
|
16
|
+
readonly Digital: "digital";
|
|
17
|
+
readonly Admissions: "admissions";
|
|
18
|
+
readonly Other: "other";
|
|
19
|
+
};
|
|
20
|
+
type Category = (typeof Category)[keyof typeof Category];
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TaxCode = void 0;
|
|
5
|
+
var TaxCode;
|
|
6
|
+
(function (TaxCode) {
|
|
7
|
+
TaxCode.Category = {
|
|
8
|
+
Food: "food",
|
|
9
|
+
Goods: "goods",
|
|
10
|
+
Services: "services",
|
|
11
|
+
Digital: "digital",
|
|
12
|
+
Admissions: "admissions",
|
|
13
|
+
Other: "other",
|
|
14
|
+
};
|
|
15
|
+
})(TaxCode || (exports.TaxCode = TaxCode = {}));
|
|
@@ -122,6 +122,7 @@ export * from "./ExploreTemporaryLocation.js";
|
|
|
122
122
|
export * from "./FavoriteFacets.js";
|
|
123
123
|
export * from "./FavoriteResponse.js";
|
|
124
124
|
export * from "./ForbiddenErrorBody.js";
|
|
125
|
+
export * from "./FulfillmentType.js";
|
|
125
126
|
export * from "./InternalServerErrorBody.js";
|
|
126
127
|
export * from "./InventoryLevelResource.js";
|
|
127
128
|
export * from "./MenuItemSearchResult.js";
|
|
@@ -143,6 +144,7 @@ export * from "./SearchResults.js";
|
|
|
143
144
|
export * from "./ShippingAccountResource.js";
|
|
144
145
|
export * from "./StandShop.js";
|
|
145
146
|
export * from "./StoreAddressRequest.js";
|
|
147
|
+
export * from "./TaxCode.js";
|
|
146
148
|
export * from "./Ticket.js";
|
|
147
149
|
export * from "./TicketOrder.js";
|
|
148
150
|
export * from "./TicketOrderResponse.js";
|
|
@@ -138,6 +138,7 @@ __exportStar(require("./ExploreTemporaryLocation.js"), exports);
|
|
|
138
138
|
__exportStar(require("./FavoriteFacets.js"), exports);
|
|
139
139
|
__exportStar(require("./FavoriteResponse.js"), exports);
|
|
140
140
|
__exportStar(require("./ForbiddenErrorBody.js"), exports);
|
|
141
|
+
__exportStar(require("./FulfillmentType.js"), exports);
|
|
141
142
|
__exportStar(require("./InternalServerErrorBody.js"), exports);
|
|
142
143
|
__exportStar(require("./InventoryLevelResource.js"), exports);
|
|
143
144
|
__exportStar(require("./MenuItemSearchResult.js"), exports);
|
|
@@ -159,6 +160,7 @@ __exportStar(require("./SearchResults.js"), exports);
|
|
|
159
160
|
__exportStar(require("./ShippingAccountResource.js"), exports);
|
|
160
161
|
__exportStar(require("./StandShop.js"), exports);
|
|
161
162
|
__exportStar(require("./StoreAddressRequest.js"), exports);
|
|
163
|
+
__exportStar(require("./TaxCode.js"), exports);
|
|
162
164
|
__exportStar(require("./Ticket.js"), exports);
|
|
163
165
|
__exportStar(require("./TicketOrder.js"), exports);
|
|
164
166
|
__exportStar(require("./TicketOrderResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.77";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.77",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.77",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -22,6 +22,7 @@ import { PushNotificationsClient } from "../resources/pushNotifications/client/C
|
|
|
22
22
|
import { ShippingClient } from "../resources/shipping/client/Client.mjs";
|
|
23
23
|
import { StandsClient } from "../resources/stands/client/Client.mjs";
|
|
24
24
|
import { StripeConnectClient } from "../resources/stripeConnect/client/Client.mjs";
|
|
25
|
+
import { TaxCodesClient } from "../resources/taxCodes/client/Client.mjs";
|
|
25
26
|
import { TemporaryLocationsClient } from "../resources/temporaryLocations/client/Client.mjs";
|
|
26
27
|
export declare namespace BusinessClient {
|
|
27
28
|
type Options = BaseClientOptions;
|
|
@@ -35,6 +36,7 @@ export declare class BusinessClient {
|
|
|
35
36
|
protected _productOrders: ProductOrdersClient | undefined;
|
|
36
37
|
protected _priceLists: PriceListsClient | undefined;
|
|
37
38
|
protected _products: ProductsClient | undefined;
|
|
39
|
+
protected _taxCodes: TaxCodesClient | undefined;
|
|
38
40
|
protected _events: EventsClient | undefined;
|
|
39
41
|
protected _gallery: GalleryClient | undefined;
|
|
40
42
|
protected _hours: HoursClient | undefined;
|
|
@@ -59,6 +61,7 @@ export declare class BusinessClient {
|
|
|
59
61
|
get productOrders(): ProductOrdersClient;
|
|
60
62
|
get priceLists(): PriceListsClient;
|
|
61
63
|
get products(): ProductsClient;
|
|
64
|
+
get taxCodes(): TaxCodesClient;
|
|
62
65
|
get events(): EventsClient;
|
|
63
66
|
get gallery(): GalleryClient;
|
|
64
67
|
get hours(): HoursClient;
|
|
@@ -22,6 +22,7 @@ import { PushNotificationsClient } from "../resources/pushNotifications/client/C
|
|
|
22
22
|
import { ShippingClient } from "../resources/shipping/client/Client.mjs";
|
|
23
23
|
import { StandsClient } from "../resources/stands/client/Client.mjs";
|
|
24
24
|
import { StripeConnectClient } from "../resources/stripeConnect/client/Client.mjs";
|
|
25
|
+
import { TaxCodesClient } from "../resources/taxCodes/client/Client.mjs";
|
|
25
26
|
import { TemporaryLocationsClient } from "../resources/temporaryLocations/client/Client.mjs";
|
|
26
27
|
export class BusinessClient {
|
|
27
28
|
constructor(options = {}) {
|
|
@@ -55,6 +56,10 @@ export class BusinessClient {
|
|
|
55
56
|
var _a;
|
|
56
57
|
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new ProductsClient(this._options)));
|
|
57
58
|
}
|
|
59
|
+
get taxCodes() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._taxCodes) !== null && _a !== void 0 ? _a : (this._taxCodes = new TaxCodesClient(this._options)));
|
|
62
|
+
}
|
|
58
63
|
get events() {
|
|
59
64
|
var _a;
|
|
60
65
|
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new EventsClient(this._options)));
|
package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts
CHANGED
|
@@ -10,6 +10,13 @@ export interface StoreEventRequest {
|
|
|
10
10
|
title: string;
|
|
11
11
|
description?: string | null;
|
|
12
12
|
location?: string | null;
|
|
13
|
+
venue_address?: string | null;
|
|
14
|
+
venue_city?: string | null;
|
|
15
|
+
venue_state?: string | null;
|
|
16
|
+
venue_zipcode?: string | null;
|
|
17
|
+
venue_country?: string | null;
|
|
18
|
+
latitude?: number | null;
|
|
19
|
+
longitude?: number | null;
|
|
13
20
|
starts_at: string;
|
|
14
21
|
ends_at: string;
|
|
15
22
|
is_all_day?: boolean;
|
package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts
CHANGED
|
@@ -10,6 +10,13 @@ export interface UpdateEventRequest {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
description?: string | null;
|
|
12
12
|
location?: string | null;
|
|
13
|
+
venue_address?: string | null;
|
|
14
|
+
venue_city?: string | null;
|
|
15
|
+
venue_state?: string | null;
|
|
16
|
+
venue_zipcode?: string | null;
|
|
17
|
+
venue_country?: string | null;
|
|
18
|
+
latitude?: number | null;
|
|
19
|
+
longitude?: number | null;
|
|
13
20
|
starts_at?: string;
|
|
14
21
|
ends_at?: string;
|
|
15
22
|
is_all_day?: boolean;
|
|
@@ -10,6 +10,13 @@ export interface UpdateTicketTypeRequest {
|
|
|
10
10
|
name?: string;
|
|
11
11
|
description?: string | null;
|
|
12
12
|
price?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Whether tax_code is required depends on the price this save
|
|
15
|
+
* will actually leave in place (stored price when price isn't
|
|
16
|
+
* sent) — checked in after(), not here, since "required" can't
|
|
17
|
+
* tell "omitted" from "already valid in storage" apart.
|
|
18
|
+
*/
|
|
19
|
+
tax_code?: string | null;
|
|
13
20
|
quantity_available?: number;
|
|
14
21
|
sales_start_at?: string | null;
|
|
15
22
|
sales_end_at?: string | null;
|
|
@@ -56,6 +56,8 @@ export * from "./stands/types/index.mjs";
|
|
|
56
56
|
export * from "./stripeConnect/client/requests/index.mjs";
|
|
57
57
|
export * as stripeConnect from "./stripeConnect/index.mjs";
|
|
58
58
|
export * from "./stripeConnect/types/index.mjs";
|
|
59
|
+
export * as taxCodes from "./taxCodes/index.mjs";
|
|
60
|
+
export * from "./taxCodes/types/index.mjs";
|
|
59
61
|
export * from "./temporaryLocations/client/requests/index.mjs";
|
|
60
62
|
export * as temporaryLocations from "./temporaryLocations/index.mjs";
|
|
61
63
|
export * from "./temporaryLocations/types/index.mjs";
|
|
@@ -56,6 +56,8 @@ export * from "./stands/types/index.mjs";
|
|
|
56
56
|
export * from "./stripeConnect/client/requests/index.mjs";
|
|
57
57
|
export * as stripeConnect from "./stripeConnect/index.mjs";
|
|
58
58
|
export * from "./stripeConnect/types/index.mjs";
|
|
59
|
+
export * as taxCodes from "./taxCodes/index.mjs";
|
|
60
|
+
export * from "./taxCodes/types/index.mjs";
|
|
59
61
|
export * from "./temporaryLocations/client/requests/index.mjs";
|
|
60
62
|
export * as temporaryLocations from "./temporaryLocations/index.mjs";
|
|
61
63
|
export * from "./temporaryLocations/types/index.mjs";
|
|
@@ -27,10 +27,11 @@ export declare class ProductOrdersClient {
|
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
29
29
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
30
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
32
33
|
* await client.business.productOrders.get({
|
|
33
|
-
*
|
|
34
|
+
* order: "order"
|
|
34
35
|
* })
|
|
35
36
|
*/
|
|
36
37
|
get(request: FiveOneEat.business.GetProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.GetProductOrdersResponse>;
|
|
@@ -41,10 +42,11 @@ export declare class ProductOrdersClient {
|
|
|
41
42
|
*
|
|
42
43
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
43
44
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
45
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
46
48
|
* await client.business.productOrders.fulfill({
|
|
47
|
-
*
|
|
49
|
+
* order: "order"
|
|
48
50
|
* })
|
|
49
51
|
*/
|
|
50
52
|
fulfill(request: FiveOneEat.business.FulfillProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.FulfillProductOrdersResponse>;
|
|
@@ -55,10 +57,11 @@ export declare class ProductOrdersClient {
|
|
|
55
57
|
*
|
|
56
58
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
57
59
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
60
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
58
61
|
*
|
|
59
62
|
* @example
|
|
60
63
|
* await client.business.productOrders.markPickedUp({
|
|
61
|
-
*
|
|
64
|
+
* order: "order"
|
|
62
65
|
* })
|
|
63
66
|
*/
|
|
64
67
|
markPickedUp(request: FiveOneEat.business.MarkPickedUpProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.MarkPickedUpProductOrdersResponse>;
|
|
@@ -69,11 +72,12 @@ export declare class ProductOrdersClient {
|
|
|
69
72
|
*
|
|
70
73
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
71
74
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
75
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
72
76
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
73
77
|
*
|
|
74
78
|
* @example
|
|
75
79
|
* await client.business.productOrders.addTracking({
|
|
76
|
-
*
|
|
80
|
+
* order: "order",
|
|
77
81
|
* carrier: "carrier",
|
|
78
82
|
* tracking_number: "tracking_number"
|
|
79
83
|
* })
|
|
@@ -81,19 +85,30 @@ export declare class ProductOrdersClient {
|
|
|
81
85
|
addTracking(request: FiveOneEat.business.AddTrackingProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.AddTrackingProductOrdersResponse>;
|
|
82
86
|
private __addTracking;
|
|
83
87
|
/**
|
|
84
|
-
*
|
|
88
|
+
* Refunds `amount` (dollars) of the order, or everything still refundable
|
|
89
|
+
* when `amount` is omitted, through Stripe. Sales tax on the refunded part
|
|
90
|
+
* is reversed automatically.
|
|
91
|
+
*
|
|
92
|
+
* Send an `Idempotency-Key` header (1–255 characters, unique per refund you
|
|
93
|
+
* mean to make) to make retries safe: a repeat with the same key returns
|
|
94
|
+
* the order with the refund already made, with 200, instead of refunding
|
|
95
|
+
* again — even when nothing is left to refund. Without it, a retry after a
|
|
96
|
+
* lost response may refund twice.
|
|
97
|
+
*
|
|
98
|
+
* @param {FiveOneEat.business.RefundOrderRequest} request
|
|
85
99
|
* @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
100
|
*
|
|
87
101
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
88
102
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
103
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
89
104
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
90
105
|
*
|
|
91
106
|
* @example
|
|
92
107
|
* await client.business.productOrders.refund({
|
|
93
|
-
*
|
|
108
|
+
* order: "order"
|
|
94
109
|
* })
|
|
95
110
|
*/
|
|
96
|
-
refund(request: FiveOneEat.business.
|
|
111
|
+
refund(request: FiveOneEat.business.RefundOrderRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.RefundProductOrdersResponse>;
|
|
97
112
|
private __refund;
|
|
98
113
|
/**
|
|
99
114
|
* @param {FiveOneEat.business.GetLabelRatesProductOrdersRequest} request
|
|
@@ -101,11 +116,12 @@ export declare class ProductOrdersClient {
|
|
|
101
116
|
*
|
|
102
117
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
103
118
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
119
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
104
120
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
105
121
|
*
|
|
106
122
|
* @example
|
|
107
123
|
* await client.business.productOrders.getLabelRates({
|
|
108
|
-
*
|
|
124
|
+
* order: "order"
|
|
109
125
|
* })
|
|
110
126
|
*/
|
|
111
127
|
getLabelRates(request: FiveOneEat.business.GetLabelRatesProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.GetLabelRatesProductOrdersResponseItem[]>;
|
|
@@ -116,11 +132,12 @@ export declare class ProductOrdersClient {
|
|
|
116
132
|
*
|
|
117
133
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
118
134
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
135
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
119
136
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
120
137
|
*
|
|
121
138
|
* @example
|
|
122
139
|
* await client.business.productOrders.purchaseLabel({
|
|
123
|
-
*
|
|
140
|
+
* order: "order",
|
|
124
141
|
* provider_rate_id: "provider_rate_id"
|
|
125
142
|
* })
|
|
126
143
|
*/
|