@51eat/sdk 0.0.51 → 0.0.53
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +17 -12
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +33 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +123 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/index.js +1 -0
- package/dist/cjs/api/resources/businessShipping/client/Client.d.ts +138 -0
- package/dist/cjs/api/resources/businessShipping/client/Client.js +566 -0
- package/dist/cjs/api/resources/businessShipping/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessShipping/client/index.js +17 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/DeleteBusinessShippingRateRequest.d.ts +10 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/DeleteBusinessShippingRateRequest.js +3 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/SetupShippingAccountRequest.d.ts +12 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/SetupShippingAccountRequest.js +3 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/StoreShippingRateRequest.d.ts +23 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/StoreShippingRateRequest.js +11 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/UpdateShippingAccountRequest.d.ts +9 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/UpdateShippingAccountRequest.js +3 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/UpdateShippingRateRequest.d.ts +26 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/UpdateShippingRateRequest.js +11 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/businessShipping/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/businessShipping/exports.d.ts +2 -0
- package/dist/cjs/api/resources/businessShipping/exports.js +21 -0
- package/dist/cjs/api/resources/businessShipping/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessShipping/index.js +18 -0
- package/dist/cjs/api/resources/businessShipping/types/CreateBusinessShippingRateResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessShipping/types/CreateBusinessShippingRateResponse.js +3 -0
- package/dist/cjs/api/resources/businessShipping/types/GetBusinessShippingAccountResponse.d.ts +6 -0
- package/dist/cjs/api/resources/businessShipping/types/GetBusinessShippingAccountResponse.js +3 -0
- package/dist/cjs/api/resources/businessShipping/types/GetBusinessShippingSetupIntentResponse.d.ts +3 -0
- package/dist/cjs/api/resources/businessShipping/types/GetBusinessShippingSetupIntentResponse.js +3 -0
- package/dist/cjs/api/resources/businessShipping/types/ListBusinessShippingRatesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessShipping/types/ListBusinessShippingRatesResponse.js +3 -0
- package/dist/cjs/api/resources/businessShipping/types/UpdateBusinessShippingAccountResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessShipping/types/UpdateBusinessShippingAccountResponse.js +3 -0
- package/dist/cjs/api/resources/businessShipping/types/UpdateBusinessShippingRateResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessShipping/types/UpdateBusinessShippingRateResponse.js +3 -0
- package/dist/cjs/api/resources/businessShipping/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/businessShipping/types/index.js +22 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +44 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +131 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.ts +28 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/index.js +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/types/ShippingAccountResource.d.ts +10 -0
- package/dist/cjs/api/types/ShippingAccountResource.js +3 -0
- package/dist/cjs/api/types/ShippingRateResource.d.ts +12 -0
- package/dist/cjs/api/types/ShippingRateResource.js +3 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +33 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +123 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/index.mjs +1 -0
- package/dist/esm/api/resources/businessShipping/client/Client.d.mts +138 -0
- package/dist/esm/api/resources/businessShipping/client/Client.mjs +529 -0
- package/dist/esm/api/resources/businessShipping/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessShipping/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessShipping/client/requests/DeleteBusinessShippingRateRequest.d.mts +10 -0
- package/dist/esm/api/resources/businessShipping/client/requests/DeleteBusinessShippingRateRequest.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/client/requests/SetupShippingAccountRequest.d.mts +12 -0
- package/dist/esm/api/resources/businessShipping/client/requests/SetupShippingAccountRequest.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/client/requests/StoreShippingRateRequest.d.mts +23 -0
- package/dist/esm/api/resources/businessShipping/client/requests/StoreShippingRateRequest.mjs +8 -0
- package/dist/esm/api/resources/businessShipping/client/requests/UpdateShippingAccountRequest.d.mts +9 -0
- package/dist/esm/api/resources/businessShipping/client/requests/UpdateShippingAccountRequest.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/client/requests/UpdateShippingRateRequest.d.mts +26 -0
- package/dist/esm/api/resources/businessShipping/client/requests/UpdateShippingRateRequest.mjs +8 -0
- package/dist/esm/api/resources/businessShipping/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/businessShipping/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessShipping/exports.mjs +3 -0
- package/dist/esm/api/resources/businessShipping/index.d.mts +2 -0
- package/dist/esm/api/resources/businessShipping/index.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/CreateBusinessShippingRateResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessShipping/types/CreateBusinessShippingRateResponse.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/GetBusinessShippingAccountResponse.d.mts +6 -0
- package/dist/esm/api/resources/businessShipping/types/GetBusinessShippingAccountResponse.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/GetBusinessShippingSetupIntentResponse.d.mts +3 -0
- package/dist/esm/api/resources/businessShipping/types/GetBusinessShippingSetupIntentResponse.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/ListBusinessShippingRatesResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessShipping/types/ListBusinessShippingRatesResponse.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/UpdateBusinessShippingAccountResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessShipping/types/UpdateBusinessShippingAccountResponse.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/UpdateBusinessShippingRateResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessShipping/types/UpdateBusinessShippingRateResponse.mjs +2 -0
- package/dist/esm/api/resources/businessShipping/types/index.d.mts +6 -0
- package/dist/esm/api/resources/businessShipping/types/index.mjs +6 -0
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +44 -0
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +131 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.mts +28 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.mts +12 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/types/ShippingAccountResource.d.mts +10 -0
- package/dist/esm/api/types/ShippingAccountResource.mjs +2 -0
- package/dist/esm/api/types/ShippingRateResource.d.mts +12 -0
- package/dist/esm/api/types/ShippingRateResource.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +696 -0
package/reference.md
CHANGED
|
@@ -204,6 +204,458 @@ await client.businessProducts.getProductInventorySummary({
|
|
|
204
204
|
</dl>
|
|
205
205
|
|
|
206
206
|
|
|
207
|
+
</dd>
|
|
208
|
+
</dl>
|
|
209
|
+
</details>
|
|
210
|
+
|
|
211
|
+
## Business: Shipping
|
|
212
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">getBusinessShippingAccount</a>() -> FiveOneEat.GetBusinessShippingAccountResponse</code></summary>
|
|
213
|
+
<dl>
|
|
214
|
+
<dd>
|
|
215
|
+
|
|
216
|
+
#### 🔌 Usage
|
|
217
|
+
|
|
218
|
+
<dl>
|
|
219
|
+
<dd>
|
|
220
|
+
|
|
221
|
+
<dl>
|
|
222
|
+
<dd>
|
|
223
|
+
|
|
224
|
+
```typescript
|
|
225
|
+
await client.businessShipping.getBusinessShippingAccount();
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
</dd>
|
|
229
|
+
</dl>
|
|
230
|
+
</dd>
|
|
231
|
+
</dl>
|
|
232
|
+
|
|
233
|
+
#### ⚙️ Parameters
|
|
234
|
+
|
|
235
|
+
<dl>
|
|
236
|
+
<dd>
|
|
237
|
+
|
|
238
|
+
<dl>
|
|
239
|
+
<dd>
|
|
240
|
+
|
|
241
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
242
|
+
|
|
243
|
+
</dd>
|
|
244
|
+
</dl>
|
|
245
|
+
</dd>
|
|
246
|
+
</dl>
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
</dd>
|
|
250
|
+
</dl>
|
|
251
|
+
</details>
|
|
252
|
+
|
|
253
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">getBusinessShippingSetupIntent</a>() -> FiveOneEat.GetBusinessShippingSetupIntentResponse</code></summary>
|
|
254
|
+
<dl>
|
|
255
|
+
<dd>
|
|
256
|
+
|
|
257
|
+
#### 📝 Description
|
|
258
|
+
|
|
259
|
+
<dl>
|
|
260
|
+
<dd>
|
|
261
|
+
|
|
262
|
+
<dl>
|
|
263
|
+
<dd>
|
|
264
|
+
|
|
265
|
+
Use the returned client_secret with the Stripe mobile SDK to collect
|
|
266
|
+
a payment method for label billing. Pass the resulting pm_* ID to
|
|
267
|
+
POST /shipping/account.
|
|
268
|
+
</dd>
|
|
269
|
+
</dl>
|
|
270
|
+
</dd>
|
|
271
|
+
</dl>
|
|
272
|
+
|
|
273
|
+
#### 🔌 Usage
|
|
274
|
+
|
|
275
|
+
<dl>
|
|
276
|
+
<dd>
|
|
277
|
+
|
|
278
|
+
<dl>
|
|
279
|
+
<dd>
|
|
280
|
+
|
|
281
|
+
```typescript
|
|
282
|
+
await client.businessShipping.getBusinessShippingSetupIntent();
|
|
283
|
+
|
|
284
|
+
```
|
|
285
|
+
</dd>
|
|
286
|
+
</dl>
|
|
287
|
+
</dd>
|
|
288
|
+
</dl>
|
|
289
|
+
|
|
290
|
+
#### ⚙️ Parameters
|
|
291
|
+
|
|
292
|
+
<dl>
|
|
293
|
+
<dd>
|
|
294
|
+
|
|
295
|
+
<dl>
|
|
296
|
+
<dd>
|
|
297
|
+
|
|
298
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
299
|
+
|
|
300
|
+
</dd>
|
|
301
|
+
</dl>
|
|
302
|
+
</dd>
|
|
303
|
+
</dl>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
</dd>
|
|
307
|
+
</dl>
|
|
308
|
+
</details>
|
|
309
|
+
|
|
310
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">setupBusinessShippingAccount</a>({ ...params }) -> string</code></summary>
|
|
311
|
+
<dl>
|
|
312
|
+
<dd>
|
|
313
|
+
|
|
314
|
+
#### 📝 Description
|
|
315
|
+
|
|
316
|
+
<dl>
|
|
317
|
+
<dd>
|
|
318
|
+
|
|
319
|
+
<dl>
|
|
320
|
+
<dd>
|
|
321
|
+
|
|
322
|
+
Creates a Stripe Customer for label billing, attaches the provided
|
|
323
|
+
payment method, and upserts the ShippingAccount record.
|
|
324
|
+
</dd>
|
|
325
|
+
</dl>
|
|
326
|
+
</dd>
|
|
327
|
+
</dl>
|
|
328
|
+
|
|
329
|
+
#### 🔌 Usage
|
|
330
|
+
|
|
331
|
+
<dl>
|
|
332
|
+
<dd>
|
|
333
|
+
|
|
334
|
+
<dl>
|
|
335
|
+
<dd>
|
|
336
|
+
|
|
337
|
+
```typescript
|
|
338
|
+
await client.businessShipping.setupBusinessShippingAccount({
|
|
339
|
+
payment_method_id: "payment_method_id"
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
```
|
|
343
|
+
</dd>
|
|
344
|
+
</dl>
|
|
345
|
+
</dd>
|
|
346
|
+
</dl>
|
|
347
|
+
|
|
348
|
+
#### ⚙️ Parameters
|
|
349
|
+
|
|
350
|
+
<dl>
|
|
351
|
+
<dd>
|
|
352
|
+
|
|
353
|
+
<dl>
|
|
354
|
+
<dd>
|
|
355
|
+
|
|
356
|
+
**request:** `FiveOneEat.SetupShippingAccountRequest`
|
|
357
|
+
|
|
358
|
+
</dd>
|
|
359
|
+
</dl>
|
|
360
|
+
|
|
361
|
+
<dl>
|
|
362
|
+
<dd>
|
|
363
|
+
|
|
364
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
365
|
+
|
|
366
|
+
</dd>
|
|
367
|
+
</dl>
|
|
368
|
+
</dd>
|
|
369
|
+
</dl>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
</dd>
|
|
373
|
+
</dl>
|
|
374
|
+
</details>
|
|
375
|
+
|
|
376
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">updateBusinessShippingAccount</a>({ ...params }) -> FiveOneEat.UpdateBusinessShippingAccountResponse</code></summary>
|
|
377
|
+
<dl>
|
|
378
|
+
<dd>
|
|
379
|
+
|
|
380
|
+
#### 🔌 Usage
|
|
381
|
+
|
|
382
|
+
<dl>
|
|
383
|
+
<dd>
|
|
384
|
+
|
|
385
|
+
<dl>
|
|
386
|
+
<dd>
|
|
387
|
+
|
|
388
|
+
```typescript
|
|
389
|
+
await client.businessShipping.updateBusinessShippingAccount();
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
</dd>
|
|
393
|
+
</dl>
|
|
394
|
+
</dd>
|
|
395
|
+
</dl>
|
|
396
|
+
|
|
397
|
+
#### ⚙️ Parameters
|
|
398
|
+
|
|
399
|
+
<dl>
|
|
400
|
+
<dd>
|
|
401
|
+
|
|
402
|
+
<dl>
|
|
403
|
+
<dd>
|
|
404
|
+
|
|
405
|
+
**request:** `FiveOneEat.UpdateShippingAccountRequest`
|
|
406
|
+
|
|
407
|
+
</dd>
|
|
408
|
+
</dl>
|
|
409
|
+
|
|
410
|
+
<dl>
|
|
411
|
+
<dd>
|
|
412
|
+
|
|
413
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
414
|
+
|
|
415
|
+
</dd>
|
|
416
|
+
</dl>
|
|
417
|
+
</dd>
|
|
418
|
+
</dl>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
</dd>
|
|
422
|
+
</dl>
|
|
423
|
+
</details>
|
|
424
|
+
|
|
425
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">deleteBusinessShippingAccount</a>() -> void</code></summary>
|
|
426
|
+
<dl>
|
|
427
|
+
<dd>
|
|
428
|
+
|
|
429
|
+
#### 🔌 Usage
|
|
430
|
+
|
|
431
|
+
<dl>
|
|
432
|
+
<dd>
|
|
433
|
+
|
|
434
|
+
<dl>
|
|
435
|
+
<dd>
|
|
436
|
+
|
|
437
|
+
```typescript
|
|
438
|
+
await client.businessShipping.deleteBusinessShippingAccount();
|
|
439
|
+
|
|
440
|
+
```
|
|
441
|
+
</dd>
|
|
442
|
+
</dl>
|
|
443
|
+
</dd>
|
|
444
|
+
</dl>
|
|
445
|
+
|
|
446
|
+
#### ⚙️ Parameters
|
|
447
|
+
|
|
448
|
+
<dl>
|
|
449
|
+
<dd>
|
|
450
|
+
|
|
451
|
+
<dl>
|
|
452
|
+
<dd>
|
|
453
|
+
|
|
454
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
455
|
+
|
|
456
|
+
</dd>
|
|
457
|
+
</dl>
|
|
458
|
+
</dd>
|
|
459
|
+
</dl>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
</dd>
|
|
463
|
+
</dl>
|
|
464
|
+
</details>
|
|
465
|
+
|
|
466
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">listBusinessShippingRates</a>() -> FiveOneEat.ListBusinessShippingRatesResponse</code></summary>
|
|
467
|
+
<dl>
|
|
468
|
+
<dd>
|
|
469
|
+
|
|
470
|
+
#### 🔌 Usage
|
|
471
|
+
|
|
472
|
+
<dl>
|
|
473
|
+
<dd>
|
|
474
|
+
|
|
475
|
+
<dl>
|
|
476
|
+
<dd>
|
|
477
|
+
|
|
478
|
+
```typescript
|
|
479
|
+
await client.businessShipping.listBusinessShippingRates();
|
|
480
|
+
|
|
481
|
+
```
|
|
482
|
+
</dd>
|
|
483
|
+
</dl>
|
|
484
|
+
</dd>
|
|
485
|
+
</dl>
|
|
486
|
+
|
|
487
|
+
#### ⚙️ Parameters
|
|
488
|
+
|
|
489
|
+
<dl>
|
|
490
|
+
<dd>
|
|
491
|
+
|
|
492
|
+
<dl>
|
|
493
|
+
<dd>
|
|
494
|
+
|
|
495
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
496
|
+
|
|
497
|
+
</dd>
|
|
498
|
+
</dl>
|
|
499
|
+
</dd>
|
|
500
|
+
</dl>
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
</dd>
|
|
504
|
+
</dl>
|
|
505
|
+
</details>
|
|
506
|
+
|
|
507
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">createBusinessShippingRate</a>({ ...params }) -> FiveOneEat.CreateBusinessShippingRateResponse</code></summary>
|
|
508
|
+
<dl>
|
|
509
|
+
<dd>
|
|
510
|
+
|
|
511
|
+
#### 🔌 Usage
|
|
512
|
+
|
|
513
|
+
<dl>
|
|
514
|
+
<dd>
|
|
515
|
+
|
|
516
|
+
<dl>
|
|
517
|
+
<dd>
|
|
518
|
+
|
|
519
|
+
```typescript
|
|
520
|
+
await client.businessShipping.createBusinessShippingRate({
|
|
521
|
+
name: "name",
|
|
522
|
+
rate_type: "flat"
|
|
523
|
+
});
|
|
524
|
+
|
|
525
|
+
```
|
|
526
|
+
</dd>
|
|
527
|
+
</dl>
|
|
528
|
+
</dd>
|
|
529
|
+
</dl>
|
|
530
|
+
|
|
531
|
+
#### ⚙️ Parameters
|
|
532
|
+
|
|
533
|
+
<dl>
|
|
534
|
+
<dd>
|
|
535
|
+
|
|
536
|
+
<dl>
|
|
537
|
+
<dd>
|
|
538
|
+
|
|
539
|
+
**request:** `FiveOneEat.StoreShippingRateRequest`
|
|
540
|
+
|
|
541
|
+
</dd>
|
|
542
|
+
</dl>
|
|
543
|
+
|
|
544
|
+
<dl>
|
|
545
|
+
<dd>
|
|
546
|
+
|
|
547
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
548
|
+
|
|
549
|
+
</dd>
|
|
550
|
+
</dl>
|
|
551
|
+
</dd>
|
|
552
|
+
</dl>
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
</dd>
|
|
556
|
+
</dl>
|
|
557
|
+
</details>
|
|
558
|
+
|
|
559
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">updateBusinessShippingRate</a>({ ...params }) -> FiveOneEat.UpdateBusinessShippingRateResponse</code></summary>
|
|
560
|
+
<dl>
|
|
561
|
+
<dd>
|
|
562
|
+
|
|
563
|
+
#### 🔌 Usage
|
|
564
|
+
|
|
565
|
+
<dl>
|
|
566
|
+
<dd>
|
|
567
|
+
|
|
568
|
+
<dl>
|
|
569
|
+
<dd>
|
|
570
|
+
|
|
571
|
+
```typescript
|
|
572
|
+
await client.businessShipping.updateBusinessShippingRate({
|
|
573
|
+
shippingRate: "shippingRate",
|
|
574
|
+
name: "name",
|
|
575
|
+
rate_type: "flat"
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
```
|
|
579
|
+
</dd>
|
|
580
|
+
</dl>
|
|
581
|
+
</dd>
|
|
582
|
+
</dl>
|
|
583
|
+
|
|
584
|
+
#### ⚙️ Parameters
|
|
585
|
+
|
|
586
|
+
<dl>
|
|
587
|
+
<dd>
|
|
588
|
+
|
|
589
|
+
<dl>
|
|
590
|
+
<dd>
|
|
591
|
+
|
|
592
|
+
**request:** `FiveOneEat.UpdateShippingRateRequest`
|
|
593
|
+
|
|
594
|
+
</dd>
|
|
595
|
+
</dl>
|
|
596
|
+
|
|
597
|
+
<dl>
|
|
598
|
+
<dd>
|
|
599
|
+
|
|
600
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
601
|
+
|
|
602
|
+
</dd>
|
|
603
|
+
</dl>
|
|
604
|
+
</dd>
|
|
605
|
+
</dl>
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
</dd>
|
|
609
|
+
</dl>
|
|
610
|
+
</details>
|
|
611
|
+
|
|
612
|
+
<details><summary><code>client.businessShipping.<a href="/src/api/resources/businessShipping/client/Client.ts">deleteBusinessShippingRate</a>({ ...params }) -> void</code></summary>
|
|
613
|
+
<dl>
|
|
614
|
+
<dd>
|
|
615
|
+
|
|
616
|
+
#### 🔌 Usage
|
|
617
|
+
|
|
618
|
+
<dl>
|
|
619
|
+
<dd>
|
|
620
|
+
|
|
621
|
+
<dl>
|
|
622
|
+
<dd>
|
|
623
|
+
|
|
624
|
+
```typescript
|
|
625
|
+
await client.businessShipping.deleteBusinessShippingRate({
|
|
626
|
+
shippingRate: "shippingRate"
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
```
|
|
630
|
+
</dd>
|
|
631
|
+
</dl>
|
|
632
|
+
</dd>
|
|
633
|
+
</dl>
|
|
634
|
+
|
|
635
|
+
#### ⚙️ Parameters
|
|
636
|
+
|
|
637
|
+
<dl>
|
|
638
|
+
<dd>
|
|
639
|
+
|
|
640
|
+
<dl>
|
|
641
|
+
<dd>
|
|
642
|
+
|
|
643
|
+
**request:** `FiveOneEat.DeleteBusinessShippingRateRequest`
|
|
644
|
+
|
|
645
|
+
</dd>
|
|
646
|
+
</dl>
|
|
647
|
+
|
|
648
|
+
<dl>
|
|
649
|
+
<dd>
|
|
650
|
+
|
|
651
|
+
**requestOptions:** `BusinessShippingClient.RequestOptions`
|
|
652
|
+
|
|
653
|
+
</dd>
|
|
654
|
+
</dl>
|
|
655
|
+
</dd>
|
|
656
|
+
</dl>
|
|
657
|
+
|
|
658
|
+
|
|
207
659
|
</dd>
|
|
208
660
|
</dl>
|
|
209
661
|
</details>
|
|
@@ -3620,6 +4072,109 @@ await client.business.productOrders.refund({
|
|
|
3620
4072
|
</dl>
|
|
3621
4073
|
|
|
3622
4074
|
|
|
4075
|
+
</dd>
|
|
4076
|
+
</dl>
|
|
4077
|
+
</details>
|
|
4078
|
+
|
|
4079
|
+
<details><summary><code>client.business.productOrders.<a href="/src/api/resources/business/resources/productOrders/client/Client.ts">getLabelRates</a>({ ...params }) -> string</code></summary>
|
|
4080
|
+
<dl>
|
|
4081
|
+
<dd>
|
|
4082
|
+
|
|
4083
|
+
#### 🔌 Usage
|
|
4084
|
+
|
|
4085
|
+
<dl>
|
|
4086
|
+
<dd>
|
|
4087
|
+
|
|
4088
|
+
<dl>
|
|
4089
|
+
<dd>
|
|
4090
|
+
|
|
4091
|
+
```typescript
|
|
4092
|
+
await client.business.productOrders.getLabelRates({
|
|
4093
|
+
productOrder: "productOrder"
|
|
4094
|
+
});
|
|
4095
|
+
|
|
4096
|
+
```
|
|
4097
|
+
</dd>
|
|
4098
|
+
</dl>
|
|
4099
|
+
</dd>
|
|
4100
|
+
</dl>
|
|
4101
|
+
|
|
4102
|
+
#### ⚙️ Parameters
|
|
4103
|
+
|
|
4104
|
+
<dl>
|
|
4105
|
+
<dd>
|
|
4106
|
+
|
|
4107
|
+
<dl>
|
|
4108
|
+
<dd>
|
|
4109
|
+
|
|
4110
|
+
**request:** `FiveOneEat.business.GetLabelRatesProductOrdersRequest`
|
|
4111
|
+
|
|
4112
|
+
</dd>
|
|
4113
|
+
</dl>
|
|
4114
|
+
|
|
4115
|
+
<dl>
|
|
4116
|
+
<dd>
|
|
4117
|
+
|
|
4118
|
+
**requestOptions:** `ProductOrdersClient.RequestOptions`
|
|
4119
|
+
|
|
4120
|
+
</dd>
|
|
4121
|
+
</dl>
|
|
4122
|
+
</dd>
|
|
4123
|
+
</dl>
|
|
4124
|
+
|
|
4125
|
+
|
|
4126
|
+
</dd>
|
|
4127
|
+
</dl>
|
|
4128
|
+
</details>
|
|
4129
|
+
|
|
4130
|
+
<details><summary><code>client.business.productOrders.<a href="/src/api/resources/business/resources/productOrders/client/Client.ts">purchaseLabel</a>({ ...params }) -> FiveOneEat.PurchaseLabelProductOrdersResponse</code></summary>
|
|
4131
|
+
<dl>
|
|
4132
|
+
<dd>
|
|
4133
|
+
|
|
4134
|
+
#### 🔌 Usage
|
|
4135
|
+
|
|
4136
|
+
<dl>
|
|
4137
|
+
<dd>
|
|
4138
|
+
|
|
4139
|
+
<dl>
|
|
4140
|
+
<dd>
|
|
4141
|
+
|
|
4142
|
+
```typescript
|
|
4143
|
+
await client.business.productOrders.purchaseLabel({
|
|
4144
|
+
productOrder: "productOrder",
|
|
4145
|
+
provider_rate_id: "provider_rate_id"
|
|
4146
|
+
});
|
|
4147
|
+
|
|
4148
|
+
```
|
|
4149
|
+
</dd>
|
|
4150
|
+
</dl>
|
|
4151
|
+
</dd>
|
|
4152
|
+
</dl>
|
|
4153
|
+
|
|
4154
|
+
#### ⚙️ Parameters
|
|
4155
|
+
|
|
4156
|
+
<dl>
|
|
4157
|
+
<dd>
|
|
4158
|
+
|
|
4159
|
+
<dl>
|
|
4160
|
+
<dd>
|
|
4161
|
+
|
|
4162
|
+
**request:** `FiveOneEat.business.PurchaseLabelRequest`
|
|
4163
|
+
|
|
4164
|
+
</dd>
|
|
4165
|
+
</dl>
|
|
4166
|
+
|
|
4167
|
+
<dl>
|
|
4168
|
+
<dd>
|
|
4169
|
+
|
|
4170
|
+
**requestOptions:** `ProductOrdersClient.RequestOptions`
|
|
4171
|
+
|
|
4172
|
+
</dd>
|
|
4173
|
+
</dl>
|
|
4174
|
+
</dd>
|
|
4175
|
+
</dl>
|
|
4176
|
+
|
|
4177
|
+
|
|
3623
4178
|
</dd>
|
|
3624
4179
|
</dl>
|
|
3625
4180
|
</details>
|
|
@@ -9597,6 +10152,147 @@ await client.customer.cart.removeItem({
|
|
|
9597
10152
|
</dl>
|
|
9598
10153
|
|
|
9599
10154
|
|
|
10155
|
+
</dd>
|
|
10156
|
+
</dl>
|
|
10157
|
+
</details>
|
|
10158
|
+
|
|
10159
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">getShippingOptions</a>({ ...params }) -> unknown[]</code></summary>
|
|
10160
|
+
<dl>
|
|
10161
|
+
<dd>
|
|
10162
|
+
|
|
10163
|
+
#### 📝 Description
|
|
10164
|
+
|
|
10165
|
+
<dl>
|
|
10166
|
+
<dd>
|
|
10167
|
+
|
|
10168
|
+
<dl>
|
|
10169
|
+
<dd>
|
|
10170
|
+
|
|
10171
|
+
Returns flat/free rates and live carrier rates (if enabled) for the given address.
|
|
10172
|
+
Free-shipping thresholds are applied automatically — qualifying rates show as $0.
|
|
10173
|
+
Cache live rates for 10 minutes per address/cart combination.
|
|
10174
|
+
Pass `shipping_rate_id` for flat/free options, or `provider_rate_id` for live rates.
|
|
10175
|
+
</dd>
|
|
10176
|
+
</dl>
|
|
10177
|
+
</dd>
|
|
10178
|
+
</dl>
|
|
10179
|
+
|
|
10180
|
+
#### 🔌 Usage
|
|
10181
|
+
|
|
10182
|
+
<dl>
|
|
10183
|
+
<dd>
|
|
10184
|
+
|
|
10185
|
+
<dl>
|
|
10186
|
+
<dd>
|
|
10187
|
+
|
|
10188
|
+
```typescript
|
|
10189
|
+
await client.customer.cart.getShippingOptions({
|
|
10190
|
+
business: "katzs-deli",
|
|
10191
|
+
shipping_address: {
|
|
10192
|
+
line1: "line1",
|
|
10193
|
+
city: "city",
|
|
10194
|
+
state: "state",
|
|
10195
|
+
postal_code: "postal_code"
|
|
10196
|
+
}
|
|
10197
|
+
});
|
|
10198
|
+
|
|
10199
|
+
```
|
|
10200
|
+
</dd>
|
|
10201
|
+
</dl>
|
|
10202
|
+
</dd>
|
|
10203
|
+
</dl>
|
|
10204
|
+
|
|
10205
|
+
#### ⚙️ Parameters
|
|
10206
|
+
|
|
10207
|
+
<dl>
|
|
10208
|
+
<dd>
|
|
10209
|
+
|
|
10210
|
+
<dl>
|
|
10211
|
+
<dd>
|
|
10212
|
+
|
|
10213
|
+
**request:** `FiveOneEat.customer.GetShippingOptionsRequest`
|
|
10214
|
+
|
|
10215
|
+
</dd>
|
|
10216
|
+
</dl>
|
|
10217
|
+
|
|
10218
|
+
<dl>
|
|
10219
|
+
<dd>
|
|
10220
|
+
|
|
10221
|
+
**requestOptions:** `CartClient.RequestOptions`
|
|
10222
|
+
|
|
10223
|
+
</dd>
|
|
10224
|
+
</dl>
|
|
10225
|
+
</dd>
|
|
10226
|
+
</dl>
|
|
10227
|
+
|
|
10228
|
+
|
|
10229
|
+
</dd>
|
|
10230
|
+
</dl>
|
|
10231
|
+
</details>
|
|
10232
|
+
|
|
10233
|
+
<details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">selectShippingOption</a>({ ...params }) -> FiveOneEat.SelectShippingOptionCartResponse</code></summary>
|
|
10234
|
+
<dl>
|
|
10235
|
+
<dd>
|
|
10236
|
+
|
|
10237
|
+
#### 📝 Description
|
|
10238
|
+
|
|
10239
|
+
<dl>
|
|
10240
|
+
<dd>
|
|
10241
|
+
|
|
10242
|
+
<dl>
|
|
10243
|
+
<dd>
|
|
10244
|
+
|
|
10245
|
+
Pass either `shipping_rate_id` (for flat/free rates) or `provider_rate_id`
|
|
10246
|
+
(for live carrier rates). Never both. Amounts are resolved server-side —
|
|
10247
|
+
the client never submits a price.
|
|
10248
|
+
</dd>
|
|
10249
|
+
</dl>
|
|
10250
|
+
</dd>
|
|
10251
|
+
</dl>
|
|
10252
|
+
|
|
10253
|
+
#### 🔌 Usage
|
|
10254
|
+
|
|
10255
|
+
<dl>
|
|
10256
|
+
<dd>
|
|
10257
|
+
|
|
10258
|
+
<dl>
|
|
10259
|
+
<dd>
|
|
10260
|
+
|
|
10261
|
+
```typescript
|
|
10262
|
+
await client.customer.cart.selectShippingOption({
|
|
10263
|
+
business: "katzs-deli"
|
|
10264
|
+
});
|
|
10265
|
+
|
|
10266
|
+
```
|
|
10267
|
+
</dd>
|
|
10268
|
+
</dl>
|
|
10269
|
+
</dd>
|
|
10270
|
+
</dl>
|
|
10271
|
+
|
|
10272
|
+
#### ⚙️ Parameters
|
|
10273
|
+
|
|
10274
|
+
<dl>
|
|
10275
|
+
<dd>
|
|
10276
|
+
|
|
10277
|
+
<dl>
|
|
10278
|
+
<dd>
|
|
10279
|
+
|
|
10280
|
+
**request:** `FiveOneEat.customer.SelectShippingOptionRequest`
|
|
10281
|
+
|
|
10282
|
+
</dd>
|
|
10283
|
+
</dl>
|
|
10284
|
+
|
|
10285
|
+
<dl>
|
|
10286
|
+
<dd>
|
|
10287
|
+
|
|
10288
|
+
**requestOptions:** `CartClient.RequestOptions`
|
|
10289
|
+
|
|
10290
|
+
</dd>
|
|
10291
|
+
</dl>
|
|
10292
|
+
</dd>
|
|
10293
|
+
</dl>
|
|
10294
|
+
|
|
10295
|
+
|
|
9600
10296
|
</dd>
|
|
9601
10297
|
</dl>
|
|
9602
10298
|
</details>
|