@51eat/sdk 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/business/resources/stands/client/requests/UpdateStandRequest.d.ts +7 -0
- package/dist/cjs/api/resources/customer/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/customer/client/Client.js +1 -5
- package/dist/cjs/api/resources/customer/resources/ads/client/Client.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/ads/client/Client.js +3 -11
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +27 -34
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +83 -111
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +1 -5
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +2 -10
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +7 -19
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/discovery/client/Client.d.ts +2 -14
- package/dist/cjs/api/resources/customer/resources/discovery/client/Client.js +33 -81
- package/dist/cjs/api/resources/customer/resources/editorials/client/Client.d.ts +3 -7
- package/dist/cjs/api/resources/customer/resources/editorials/client/Client.js +13 -30
- package/dist/cjs/api/resources/customer/resources/events/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/events/client/Client.js +1 -5
- package/dist/cjs/api/resources/customer/resources/explore/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/explore/client/Client.js +2 -6
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +2 -5
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +4 -16
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +19 -9
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +64 -30
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.ts +7 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.ts +16 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.js +10 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/index.js +2 -0
- package/dist/cjs/api/resources/customerStands/client/Client.d.ts +0 -32
- package/dist/cjs/api/resources/customerStands/client/Client.js +0 -119
- package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/types/index.js +0 -2
- package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +1 -1
- package/dist/cjs/api/types/CartResource.d.ts +1 -1
- package/dist/cjs/api/types/InventoryLevelResource.d.ts +3 -3
- package/dist/cjs/api/types/OrderItemResource.d.ts +10 -0
- package/dist/cjs/api/types/OrderResource.d.ts +24 -9
- package/dist/cjs/api/types/PaginationResource.d.ts +4 -4
- package/dist/cjs/api/types/PriceListResource.d.ts +1 -1
- package/dist/cjs/api/types/PriceResource.d.ts +3 -3
- package/dist/cjs/api/types/ProductResource.d.ts +5 -6
- package/dist/cjs/api/types/Transaction.d.ts +6 -6
- package/dist/cjs/api/types/VariantResource.d.ts +3 -3
- package/dist/cjs/api/types/index.d.ts +1 -2
- package/dist/cjs/api/types/index.js +1 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/business/resources/stands/client/requests/UpdateStandRequest.d.mts +7 -0
- package/dist/esm/api/resources/customer/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/customer/client/Client.mjs +1 -5
- package/dist/esm/api/resources/customer/resources/ads/client/Client.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/ads/client/Client.mjs +4 -12
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +27 -34
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +83 -111
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +1 -5
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +2 -10
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +7 -19
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/discovery/client/Client.d.mts +2 -14
- package/dist/esm/api/resources/customer/resources/discovery/client/Client.mjs +34 -82
- package/dist/esm/api/resources/customer/resources/editorials/client/Client.d.mts +3 -7
- package/dist/esm/api/resources/customer/resources/editorials/client/Client.mjs +14 -31
- package/dist/esm/api/resources/customer/resources/events/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/events/client/Client.mjs +1 -5
- package/dist/esm/api/resources/customer/resources/explore/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/explore/client/Client.mjs +3 -7
- package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +2 -5
- package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +5 -17
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +19 -9
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +64 -30
- package/dist/esm/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.mts +7 -1
- package/dist/esm/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.mts +16 -0
- package/dist/esm/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.mjs +7 -0
- package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +2 -0
- package/dist/esm/api/resources/customerStands/client/Client.d.mts +0 -32
- package/dist/esm/api/resources/customerStands/client/Client.mjs +0 -119
- package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/types/index.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/types/index.mjs +0 -2
- package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +1 -1
- package/dist/esm/api/types/CartResource.d.mts +1 -1
- package/dist/esm/api/types/InventoryLevelResource.d.mts +3 -3
- package/dist/esm/api/types/OrderItemResource.d.mts +10 -0
- package/dist/esm/api/types/OrderResource.d.mts +24 -9
- package/dist/esm/api/types/PaginationResource.d.mts +4 -4
- package/dist/esm/api/types/PriceListResource.d.mts +1 -1
- package/dist/esm/api/types/PriceResource.d.mts +3 -3
- package/dist/esm/api/types/ProductResource.d.mts +5 -6
- package/dist/esm/api/types/Transaction.d.mts +6 -6
- package/dist/esm/api/types/VariantResource.d.mts +3 -3
- package/dist/esm/api/types/index.d.mts +1 -2
- package/dist/esm/api/types/index.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +29 -131
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.ts +0 -15
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.ts +0 -10
- package/dist/cjs/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerStands/types/CustomerStandCheckoutResponse.js +0 -3
- package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.ts +0 -12
- package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.js +0 -10
- package/dist/cjs/api/types/ImageResource.d.ts +0 -6
- package/dist/cjs/api/types/ImageResource.js +0 -3
- package/dist/cjs/api/types/ProductCategoryResource.d.ts +0 -8
- package/dist/cjs/api/types/ProductCategoryResource.js +0 -3
- package/dist/esm/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.mts +0 -15
- package/dist/esm/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.mts +0 -10
- package/dist/esm/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerStands/types/CustomerStandCheckoutResponse.mjs +0 -2
- package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.mts +0 -12
- package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.mjs +0 -7
- package/dist/esm/api/types/ImageResource.d.mts +0 -6
- package/dist/esm/api/types/ImageResource.mjs +0 -2
- package/dist/esm/api/types/ProductCategoryResource.d.mts +0 -8
- package/dist/esm/api/types/ProductCategoryResource.mjs +0 -2
- /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerStandCheckoutRequest.js → customer/resources/stands/types/CheckoutStandsResponse.js} +0 -0
- /package/dist/cjs/api/{resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.js → types/OrderItemResource.js} +0 -0
- /package/dist/esm/api/resources/{customerStands/client/requests/CustomerStandCheckoutRequest.mjs → customer/resources/stands/types/CheckoutStandsResponse.mjs} +0 -0
- /package/dist/esm/api/{resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.mjs → types/OrderItemResource.mjs} +0 -0
|
@@ -1,27 +1,42 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.mjs";
|
|
1
2
|
export interface OrderResource {
|
|
2
3
|
id: string;
|
|
3
4
|
order_number: string;
|
|
4
5
|
status: string;
|
|
5
6
|
fulfillment_status: string;
|
|
6
7
|
fulfillment_method: string;
|
|
7
|
-
subtotal_cents:
|
|
8
|
-
discount_cents:
|
|
9
|
-
shipping_cents:
|
|
10
|
-
tax_cents:
|
|
11
|
-
platform_fee_cents:
|
|
12
|
-
total_cents:
|
|
8
|
+
subtotal_cents: number;
|
|
9
|
+
discount_cents: number;
|
|
10
|
+
shipping_cents: number;
|
|
11
|
+
tax_cents: number;
|
|
12
|
+
platform_fee_cents: number;
|
|
13
|
+
total_cents: number;
|
|
13
14
|
currency: string;
|
|
14
|
-
shipping_address: string;
|
|
15
|
+
shipping_address: Record<string, unknown> | null;
|
|
15
16
|
notes: string;
|
|
16
17
|
fulfilled_at: string;
|
|
17
18
|
refunded_at: string;
|
|
19
|
+
business?: OrderResource.Business | undefined;
|
|
20
|
+
transaction?: (OrderResource.Transaction | null) | undefined;
|
|
18
21
|
tracking_number?: (string | null) | undefined;
|
|
22
|
+
tracking_url?: (string | null) | undefined;
|
|
19
23
|
shipments: OrderResource.Shipments;
|
|
20
|
-
items
|
|
24
|
+
items?: FiveOneEat.OrderItemResource[] | undefined;
|
|
21
25
|
created_at: string;
|
|
22
26
|
updated_at: string;
|
|
23
27
|
}
|
|
24
28
|
export declare namespace OrderResource {
|
|
25
|
-
|
|
29
|
+
interface Business {
|
|
30
|
+
id: string;
|
|
31
|
+
handle: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}
|
|
34
|
+
interface Transaction {
|
|
35
|
+
ulid: string;
|
|
36
|
+
status: string;
|
|
37
|
+
refunded_amount_cents: number;
|
|
38
|
+
payment_completed_at: string;
|
|
39
|
+
refunded_at: string;
|
|
40
|
+
}
|
|
26
41
|
type Shipments = string | string[];
|
|
27
42
|
}
|
|
@@ -3,8 +3,8 @@ export interface PriceResource {
|
|
|
3
3
|
id: string;
|
|
4
4
|
price_list_id: string;
|
|
5
5
|
price_list?: FiveOneEat.PriceListResource | undefined;
|
|
6
|
-
amount_cents:
|
|
7
|
-
compare_at_cents:
|
|
6
|
+
amount_cents: number;
|
|
7
|
+
compare_at_cents: number | null;
|
|
8
8
|
currency: string;
|
|
9
|
-
min_quantity:
|
|
9
|
+
min_quantity: number;
|
|
10
10
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import type * as FiveOneEat from "../index.mjs";
|
|
2
1
|
export interface ProductResource {
|
|
3
2
|
id: string;
|
|
4
3
|
name: string;
|
|
5
4
|
slug: string;
|
|
6
5
|
description: string;
|
|
7
|
-
is_active:
|
|
6
|
+
is_active: boolean;
|
|
8
7
|
published_at: string;
|
|
9
|
-
metadata: string;
|
|
8
|
+
metadata: Record<string, unknown> | null;
|
|
10
9
|
product_category_id: string;
|
|
11
|
-
category?:
|
|
12
|
-
images?:
|
|
10
|
+
category?: unknown[] | undefined;
|
|
11
|
+
images?: unknown[] | undefined;
|
|
13
12
|
variants?: unknown[] | undefined;
|
|
14
|
-
default_variant?:
|
|
13
|
+
default_variant?: unknown[] | undefined;
|
|
15
14
|
created_at: string;
|
|
16
15
|
updated_at: string;
|
|
17
16
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export interface Transaction {
|
|
2
2
|
ulid: string;
|
|
3
3
|
status: string;
|
|
4
|
-
subtotal:
|
|
5
|
-
tax_amount:
|
|
6
|
-
shipping_amount:
|
|
7
|
-
platform_fee:
|
|
8
|
-
total_amount:
|
|
9
|
-
refunded_amount:
|
|
4
|
+
subtotal: number;
|
|
5
|
+
tax_amount: number;
|
|
6
|
+
shipping_amount: number;
|
|
7
|
+
platform_fee: number;
|
|
8
|
+
total_amount: number;
|
|
9
|
+
refunded_amount: number;
|
|
10
10
|
customer_name: string | null;
|
|
11
11
|
customer_email: string;
|
|
12
12
|
stripe_payment_intent_id: string | null;
|
|
@@ -3,10 +3,10 @@ export interface VariantResource {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
sku: string;
|
|
6
|
-
is_default:
|
|
7
|
-
weight:
|
|
6
|
+
is_default: boolean;
|
|
7
|
+
weight: number | null;
|
|
8
8
|
weight_unit: string;
|
|
9
|
-
sort_order:
|
|
9
|
+
sort_order: number;
|
|
10
10
|
prices?: FiveOneEat.PriceResource[] | undefined;
|
|
11
11
|
inventory_levels?: FiveOneEat.InventoryLevelResource[] | undefined;
|
|
12
12
|
created_at: string;
|
|
@@ -118,18 +118,17 @@ export * from "./ExploreTemporaryLocation.mjs";
|
|
|
118
118
|
export * from "./FavoriteResponse.mjs";
|
|
119
119
|
export * from "./ForbiddenErrorBody.mjs";
|
|
120
120
|
export * from "./Image.mjs";
|
|
121
|
-
export * from "./ImageResource.mjs";
|
|
122
121
|
export * from "./InternalServerErrorBody.mjs";
|
|
123
122
|
export * from "./InventoryLevelResource.mjs";
|
|
124
123
|
export * from "./MenuItemSearchResult.mjs";
|
|
125
124
|
export * from "./Message.mjs";
|
|
126
125
|
export * from "./NotFoundErrorBody.mjs";
|
|
126
|
+
export * from "./OrderItemResource.mjs";
|
|
127
127
|
export * from "./OrderResource.mjs";
|
|
128
128
|
export * from "./PaginationResource.mjs";
|
|
129
129
|
export * from "./PaymentMethod.mjs";
|
|
130
130
|
export * from "./PriceListResource.mjs";
|
|
131
131
|
export * from "./PriceResource.mjs";
|
|
132
|
-
export * from "./ProductCategoryResource.mjs";
|
|
133
132
|
export * from "./ProductResource.mjs";
|
|
134
133
|
export * from "./ProductSearchResult.mjs";
|
|
135
134
|
export * from "./RsvpEvent.mjs";
|
|
@@ -118,18 +118,17 @@ export * from "./ExploreTemporaryLocation.mjs";
|
|
|
118
118
|
export * from "./FavoriteResponse.mjs";
|
|
119
119
|
export * from "./ForbiddenErrorBody.mjs";
|
|
120
120
|
export * from "./Image.mjs";
|
|
121
|
-
export * from "./ImageResource.mjs";
|
|
122
121
|
export * from "./InternalServerErrorBody.mjs";
|
|
123
122
|
export * from "./InventoryLevelResource.mjs";
|
|
124
123
|
export * from "./MenuItemSearchResult.mjs";
|
|
125
124
|
export * from "./Message.mjs";
|
|
126
125
|
export * from "./NotFoundErrorBody.mjs";
|
|
126
|
+
export * from "./OrderItemResource.mjs";
|
|
127
127
|
export * from "./OrderResource.mjs";
|
|
128
128
|
export * from "./PaginationResource.mjs";
|
|
129
129
|
export * from "./PaymentMethod.mjs";
|
|
130
130
|
export * from "./PriceListResource.mjs";
|
|
131
131
|
export * from "./PriceResource.mjs";
|
|
132
|
-
export * from "./ProductCategoryResource.mjs";
|
|
133
132
|
export * from "./ProductResource.mjs";
|
|
134
133
|
export * from "./ProductSearchResult.mjs";
|
|
135
134
|
export * from "./RsvpEvent.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.72";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.72";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -222,111 +222,6 @@ await client.customerStands.customerClearStandCart({
|
|
|
222
222
|
</dl>
|
|
223
223
|
|
|
224
224
|
|
|
225
|
-
</dd>
|
|
226
|
-
</dl>
|
|
227
|
-
</details>
|
|
228
|
-
|
|
229
|
-
<details><summary><code>client.customerStands.<a href="/src/api/resources/customerStands/client/Client.ts">customerStandPaymentIntent</a>({ ...params }) -> FiveOneEat.CustomerStandPaymentIntentResponse</code></summary>
|
|
230
|
-
<dl>
|
|
231
|
-
<dd>
|
|
232
|
-
|
|
233
|
-
#### 🔌 Usage
|
|
234
|
-
|
|
235
|
-
<dl>
|
|
236
|
-
<dd>
|
|
237
|
-
|
|
238
|
-
<dl>
|
|
239
|
-
<dd>
|
|
240
|
-
|
|
241
|
-
```typescript
|
|
242
|
-
await client.customerStands.customerStandPaymentIntent({
|
|
243
|
-
stand: "stand"
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
```
|
|
247
|
-
</dd>
|
|
248
|
-
</dl>
|
|
249
|
-
</dd>
|
|
250
|
-
</dl>
|
|
251
|
-
|
|
252
|
-
#### ⚙️ Parameters
|
|
253
|
-
|
|
254
|
-
<dl>
|
|
255
|
-
<dd>
|
|
256
|
-
|
|
257
|
-
<dl>
|
|
258
|
-
<dd>
|
|
259
|
-
|
|
260
|
-
**request:** `FiveOneEat.CustomerStandPaymentIntentRequest`
|
|
261
|
-
|
|
262
|
-
</dd>
|
|
263
|
-
</dl>
|
|
264
|
-
|
|
265
|
-
<dl>
|
|
266
|
-
<dd>
|
|
267
|
-
|
|
268
|
-
**requestOptions:** `CustomerStandsClient.RequestOptions`
|
|
269
|
-
|
|
270
|
-
</dd>
|
|
271
|
-
</dl>
|
|
272
|
-
</dd>
|
|
273
|
-
</dl>
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
</dd>
|
|
277
|
-
</dl>
|
|
278
|
-
</details>
|
|
279
|
-
|
|
280
|
-
<details><summary><code>client.customerStands.<a href="/src/api/resources/customerStands/client/Client.ts">customerStandCheckout</a>({ ...params }) -> FiveOneEat.CustomerStandCheckoutResponse</code></summary>
|
|
281
|
-
<dl>
|
|
282
|
-
<dd>
|
|
283
|
-
|
|
284
|
-
#### 🔌 Usage
|
|
285
|
-
|
|
286
|
-
<dl>
|
|
287
|
-
<dd>
|
|
288
|
-
|
|
289
|
-
<dl>
|
|
290
|
-
<dd>
|
|
291
|
-
|
|
292
|
-
```typescript
|
|
293
|
-
await client.customerStands.customerStandCheckout({
|
|
294
|
-
stand: "stand",
|
|
295
|
-
body: {
|
|
296
|
-
payment_intent_id: "payment_intent_id"
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
|
|
300
|
-
```
|
|
301
|
-
</dd>
|
|
302
|
-
</dl>
|
|
303
|
-
</dd>
|
|
304
|
-
</dl>
|
|
305
|
-
|
|
306
|
-
#### ⚙️ Parameters
|
|
307
|
-
|
|
308
|
-
<dl>
|
|
309
|
-
<dd>
|
|
310
|
-
|
|
311
|
-
<dl>
|
|
312
|
-
<dd>
|
|
313
|
-
|
|
314
|
-
**request:** `FiveOneEat.CustomerStandCheckoutRequest`
|
|
315
|
-
|
|
316
|
-
</dd>
|
|
317
|
-
</dl>
|
|
318
|
-
|
|
319
|
-
<dl>
|
|
320
|
-
<dd>
|
|
321
|
-
|
|
322
|
-
**requestOptions:** `CustomerStandsClient.RequestOptions`
|
|
323
|
-
|
|
324
|
-
</dd>
|
|
325
|
-
</dl>
|
|
326
|
-
</dd>
|
|
327
|
-
</dl>
|
|
328
|
-
|
|
329
|
-
|
|
330
225
|
</dd>
|
|
331
226
|
</dl>
|
|
332
227
|
</details>
|
|
@@ -10437,7 +10332,7 @@ await client.customer.businesses.photos({
|
|
|
10437
10332
|
</dl>
|
|
10438
10333
|
</details>
|
|
10439
10334
|
|
|
10440
|
-
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">
|
|
10335
|
+
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">listTemporaryLocations</a>({ ...params }) -> FiveOneEat.ListTemporaryLocationsBusinessesResponse</code></summary>
|
|
10441
10336
|
<dl>
|
|
10442
10337
|
<dd>
|
|
10443
10338
|
|
|
@@ -10449,7 +10344,7 @@ await client.customer.businesses.photos({
|
|
|
10449
10344
|
<dl>
|
|
10450
10345
|
<dd>
|
|
10451
10346
|
|
|
10452
|
-
|
|
10347
|
+
Retrieve active and upcoming temporary locations for a business.
|
|
10453
10348
|
</dd>
|
|
10454
10349
|
</dl>
|
|
10455
10350
|
</dd>
|
|
@@ -10464,7 +10359,7 @@ Add a business to the authenticated user's favorites.
|
|
|
10464
10359
|
<dd>
|
|
10465
10360
|
|
|
10466
10361
|
```typescript
|
|
10467
|
-
await client.customer.businesses.
|
|
10362
|
+
await client.customer.businesses.listTemporaryLocations({
|
|
10468
10363
|
business: "katzs-deli"
|
|
10469
10364
|
});
|
|
10470
10365
|
|
|
@@ -10482,7 +10377,7 @@ await client.customer.businesses.favorite({
|
|
|
10482
10377
|
<dl>
|
|
10483
10378
|
<dd>
|
|
10484
10379
|
|
|
10485
|
-
**request:** `FiveOneEat.customer.
|
|
10380
|
+
**request:** `FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest`
|
|
10486
10381
|
|
|
10487
10382
|
</dd>
|
|
10488
10383
|
</dl>
|
|
@@ -10502,7 +10397,7 @@ await client.customer.businesses.favorite({
|
|
|
10502
10397
|
</dl>
|
|
10503
10398
|
</details>
|
|
10504
10399
|
|
|
10505
|
-
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">
|
|
10400
|
+
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">getPickupTimeslots</a>({ ...params }) -> FiveOneEat.GetPickupTimeslotsBusinessesResponse</code></summary>
|
|
10506
10401
|
<dl>
|
|
10507
10402
|
<dd>
|
|
10508
10403
|
|
|
@@ -10514,7 +10409,7 @@ await client.customer.businesses.favorite({
|
|
|
10514
10409
|
<dl>
|
|
10515
10410
|
<dd>
|
|
10516
10411
|
|
|
10517
|
-
|
|
10412
|
+
Returns available pickup timeslots for a business on a given date.
|
|
10518
10413
|
</dd>
|
|
10519
10414
|
</dl>
|
|
10520
10415
|
</dd>
|
|
@@ -10529,8 +10424,9 @@ Remove a business from the authenticated user's favorites.
|
|
|
10529
10424
|
<dd>
|
|
10530
10425
|
|
|
10531
10426
|
```typescript
|
|
10532
|
-
await client.customer.businesses.
|
|
10533
|
-
|
|
10427
|
+
await client.customer.businesses.getPickupTimeslots({
|
|
10428
|
+
handle: "katzs-deli",
|
|
10429
|
+
date: "2023-01-15"
|
|
10534
10430
|
});
|
|
10535
10431
|
|
|
10536
10432
|
```
|
|
@@ -10547,7 +10443,7 @@ await client.customer.businesses.unfavorite({
|
|
|
10547
10443
|
<dl>
|
|
10548
10444
|
<dd>
|
|
10549
10445
|
|
|
10550
|
-
**request:** `FiveOneEat.customer.
|
|
10446
|
+
**request:** `FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest`
|
|
10551
10447
|
|
|
10552
10448
|
</dd>
|
|
10553
10449
|
</dl>
|
|
@@ -10567,7 +10463,7 @@ await client.customer.businesses.unfavorite({
|
|
|
10567
10463
|
</dl>
|
|
10568
10464
|
</details>
|
|
10569
10465
|
|
|
10570
|
-
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">
|
|
10466
|
+
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">favorite</a>({ ...params }) -> FiveOneEat.FavoriteBusinessesResponse</code></summary>
|
|
10571
10467
|
<dl>
|
|
10572
10468
|
<dd>
|
|
10573
10469
|
|
|
@@ -10579,7 +10475,7 @@ await client.customer.businesses.unfavorite({
|
|
|
10579
10475
|
<dl>
|
|
10580
10476
|
<dd>
|
|
10581
10477
|
|
|
10582
|
-
|
|
10478
|
+
Add a business to the authenticated user's favorites.
|
|
10583
10479
|
</dd>
|
|
10584
10480
|
</dl>
|
|
10585
10481
|
</dd>
|
|
@@ -10594,7 +10490,7 @@ Retrieve active and upcoming temporary locations for a business.
|
|
|
10594
10490
|
<dd>
|
|
10595
10491
|
|
|
10596
10492
|
```typescript
|
|
10597
|
-
await client.customer.businesses.
|
|
10493
|
+
await client.customer.businesses.favorite({
|
|
10598
10494
|
business: "katzs-deli"
|
|
10599
10495
|
});
|
|
10600
10496
|
|
|
@@ -10612,7 +10508,7 @@ await client.customer.businesses.listTemporaryLocations({
|
|
|
10612
10508
|
<dl>
|
|
10613
10509
|
<dd>
|
|
10614
10510
|
|
|
10615
|
-
**request:** `FiveOneEat.customer.
|
|
10511
|
+
**request:** `FiveOneEat.customer.FavoriteBusinessesRequest`
|
|
10616
10512
|
|
|
10617
10513
|
</dd>
|
|
10618
10514
|
</dl>
|
|
@@ -10632,7 +10528,7 @@ await client.customer.businesses.listTemporaryLocations({
|
|
|
10632
10528
|
</dl>
|
|
10633
10529
|
</details>
|
|
10634
10530
|
|
|
10635
|
-
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">
|
|
10531
|
+
<details><summary><code>client.customer.businesses.<a href="/src/api/resources/customer/resources/businesses/client/Client.ts">unfavorite</a>({ ...params }) -> void</code></summary>
|
|
10636
10532
|
<dl>
|
|
10637
10533
|
<dd>
|
|
10638
10534
|
|
|
@@ -10644,7 +10540,7 @@ await client.customer.businesses.listTemporaryLocations({
|
|
|
10644
10540
|
<dl>
|
|
10645
10541
|
<dd>
|
|
10646
10542
|
|
|
10647
|
-
|
|
10543
|
+
Remove a business from the authenticated user's favorites.
|
|
10648
10544
|
</dd>
|
|
10649
10545
|
</dl>
|
|
10650
10546
|
</dd>
|
|
@@ -10659,9 +10555,8 @@ Returns available pickup timeslots for a business on a given date.
|
|
|
10659
10555
|
<dd>
|
|
10660
10556
|
|
|
10661
10557
|
```typescript
|
|
10662
|
-
await client.customer.businesses.
|
|
10663
|
-
|
|
10664
|
-
date: "2023-01-15"
|
|
10558
|
+
await client.customer.businesses.unfavorite({
|
|
10559
|
+
business: "katzs-deli"
|
|
10665
10560
|
});
|
|
10666
10561
|
|
|
10667
10562
|
```
|
|
@@ -10678,7 +10573,7 @@ await client.customer.businesses.getPickupTimeslots({
|
|
|
10678
10573
|
<dl>
|
|
10679
10574
|
<dd>
|
|
10680
10575
|
|
|
10681
|
-
**request:** `FiveOneEat.customer.
|
|
10576
|
+
**request:** `FiveOneEat.customer.UnfavoriteBusinessesRequest`
|
|
10682
10577
|
|
|
10683
10578
|
</dd>
|
|
10684
10579
|
</dl>
|
|
@@ -12499,7 +12394,7 @@ await client.customer.stands.scan({
|
|
|
12499
12394
|
</dl>
|
|
12500
12395
|
</details>
|
|
12501
12396
|
|
|
12502
|
-
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">
|
|
12397
|
+
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">createPaymentIntent</a>({ ...params }) -> FiveOneEat.CreatePaymentIntentStandsResponse</code></summary>
|
|
12503
12398
|
<dl>
|
|
12504
12399
|
<dd>
|
|
12505
12400
|
|
|
@@ -12512,7 +12407,7 @@ await client.customer.stands.scan({
|
|
|
12512
12407
|
<dd>
|
|
12513
12408
|
|
|
12514
12409
|
```typescript
|
|
12515
|
-
await client.customer.stands.
|
|
12410
|
+
await client.customer.stands.createPaymentIntent({
|
|
12516
12411
|
stand: "stand"
|
|
12517
12412
|
});
|
|
12518
12413
|
|
|
@@ -12530,7 +12425,7 @@ await client.customer.stands.checkout({
|
|
|
12530
12425
|
<dl>
|
|
12531
12426
|
<dd>
|
|
12532
12427
|
|
|
12533
|
-
**request:** `FiveOneEat.customer.
|
|
12428
|
+
**request:** `FiveOneEat.customer.CreatePaymentIntentStandsRequest`
|
|
12534
12429
|
|
|
12535
12430
|
</dd>
|
|
12536
12431
|
</dl>
|
|
@@ -12550,7 +12445,7 @@ await client.customer.stands.checkout({
|
|
|
12550
12445
|
</dl>
|
|
12551
12446
|
</details>
|
|
12552
12447
|
|
|
12553
|
-
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">
|
|
12448
|
+
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">checkout</a>({ ...params }) -> FiveOneEat.CheckoutStandsResponse</code></summary>
|
|
12554
12449
|
<dl>
|
|
12555
12450
|
<dd>
|
|
12556
12451
|
|
|
@@ -12563,8 +12458,11 @@ await client.customer.stands.checkout({
|
|
|
12563
12458
|
<dd>
|
|
12564
12459
|
|
|
12565
12460
|
```typescript
|
|
12566
|
-
await client.customer.stands.
|
|
12567
|
-
stand: "stand"
|
|
12461
|
+
await client.customer.stands.checkout({
|
|
12462
|
+
stand: "stand",
|
|
12463
|
+
body: {
|
|
12464
|
+
payment_intent_id: "payment_intent_id"
|
|
12465
|
+
}
|
|
12568
12466
|
});
|
|
12569
12467
|
|
|
12570
12468
|
```
|
|
@@ -12581,7 +12479,7 @@ await client.customer.stands.createPaymentIntent({
|
|
|
12581
12479
|
<dl>
|
|
12582
12480
|
<dd>
|
|
12583
12481
|
|
|
12584
|
-
**request:** `FiveOneEat.customer.
|
|
12482
|
+
**request:** `FiveOneEat.customer.CheckoutStandsRequest`
|
|
12585
12483
|
|
|
12586
12484
|
</dd>
|
|
12587
12485
|
</dl>
|
package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type * as FiveOneEat from "../../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* stand: "stand",
|
|
6
|
-
* body: {
|
|
7
|
-
* payment_intent_id: "payment_intent_id"
|
|
8
|
-
* }
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface CustomerStandCheckoutRequest {
|
|
12
|
-
/** The stand ID */
|
|
13
|
-
stand: string;
|
|
14
|
-
body: FiveOneEat.CheckoutRequest;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface CustomerStandPaymentIntentResponse {
|
|
2
|
-
client_secret: string;
|
|
3
|
-
payment_intent_id: string;
|
|
4
|
-
amount: number;
|
|
5
|
-
currency: CustomerStandPaymentIntentResponse.Currency;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace CustomerStandPaymentIntentResponse {
|
|
8
|
-
const Currency: {
|
|
9
|
-
readonly Usd: "usd";
|
|
10
|
-
};
|
|
11
|
-
type Currency = (typeof Currency)[keyof typeof Currency];
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CustomerStandPaymentIntentResponse = void 0;
|
|
5
|
-
var CustomerStandPaymentIntentResponse;
|
|
6
|
-
(function (CustomerStandPaymentIntentResponse) {
|
|
7
|
-
CustomerStandPaymentIntentResponse.Currency = {
|
|
8
|
-
Usd: "usd",
|
|
9
|
-
};
|
|
10
|
-
})(CustomerStandPaymentIntentResponse || (exports.CustomerStandPaymentIntentResponse = CustomerStandPaymentIntentResponse = {}));
|
package/dist/esm/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.mts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type * as FiveOneEat from "../../../../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* stand: "stand",
|
|
6
|
-
* body: {
|
|
7
|
-
* payment_intent_id: "payment_intent_id"
|
|
8
|
-
* }
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface CustomerStandCheckoutRequest {
|
|
12
|
-
/** The stand ID */
|
|
13
|
-
stand: string;
|
|
14
|
-
body: FiveOneEat.CheckoutRequest;
|
|
15
|
-
}
|
package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface CustomerStandPaymentIntentResponse {
|
|
2
|
-
client_secret: string;
|
|
3
|
-
payment_intent_id: string;
|
|
4
|
-
amount: number;
|
|
5
|
-
currency: CustomerStandPaymentIntentResponse.Currency;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace CustomerStandPaymentIntentResponse {
|
|
8
|
-
const Currency: {
|
|
9
|
-
readonly Usd: "usd";
|
|
10
|
-
};
|
|
11
|
-
type Currency = (typeof Currency)[keyof typeof Currency];
|
|
12
|
-
}
|