@51eat/sdk 0.0.76 → 0.0.78
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/profile/client/requests/UpdateBusinessProfileRequest.d.ts +9 -0
- 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 +99 -8
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +243 -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 +6 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +10 -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 +12 -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 +3 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +9 -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 +6 -1
- package/dist/cjs/api/types/CartResource.d.ts +24 -0
- package/dist/cjs/api/types/ConflictErrorBody.d.ts +2 -7
- package/dist/cjs/api/types/ConflictErrorBody.js +0 -7
- package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +1 -1
- package/dist/cjs/api/types/CustomerEvent.d.ts +6 -0
- package/dist/cjs/api/types/CustomerEventDetail.d.ts +6 -0
- package/dist/cjs/api/types/EventFeedItem.d.ts +6 -0
- 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/TicketOrder.d.ts +7 -1
- 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/profile/client/requests/UpdateBusinessProfileRequest.d.mts +9 -0
- 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 +99 -8
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +243 -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 +6 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +10 -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 +12 -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 +3 -0
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +9 -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 +6 -1
- package/dist/esm/api/types/CartResource.d.mts +24 -0
- package/dist/esm/api/types/ConflictErrorBody.d.mts +2 -7
- package/dist/esm/api/types/ConflictErrorBody.mjs +1 -6
- package/dist/esm/api/types/CustomerBusinessProfile.d.mts +1 -1
- package/dist/esm/api/types/CustomerEvent.d.mts +6 -0
- package/dist/esm/api/types/CustomerEventDetail.d.mts +6 -0
- package/dist/esm/api/types/EventFeedItem.d.mts +6 -0
- 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/TicketOrder.d.mts +7 -1
- 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 +382 -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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* business: "business",
|
|
6
|
+
* fulfillment_method: "ship"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ChooseFulfillmentMethodRequest {
|
|
10
|
+
/** The business handle */
|
|
11
|
+
business: string;
|
|
12
|
+
fulfillment_method: FiveOneEat.FulfillmentType;
|
|
13
|
+
}
|
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
* }
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
14
|
-
/** The business
|
|
13
|
+
export interface ShippingAddressRequest {
|
|
14
|
+
/** The business handle */
|
|
15
15
|
business: string;
|
|
16
|
-
address:
|
|
16
|
+
address: ShippingAddressRequest.Address;
|
|
17
17
|
}
|
|
18
|
-
export declare namespace
|
|
18
|
+
export declare namespace ShippingAddressRequest {
|
|
19
19
|
interface Address {
|
|
20
20
|
line1: string;
|
|
21
|
+
line2?: (string | null) | undefined;
|
|
21
22
|
city: string;
|
|
22
23
|
state: string;
|
|
23
24
|
postal_code: string;
|
|
24
|
-
country?:
|
|
25
|
+
country?: string | undefined;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export type { AddItemCartRequest } from "./AddItemCartRequest.mjs";
|
|
2
2
|
export type { CheckoutCartRequest } from "./CheckoutCartRequest.mjs";
|
|
3
|
+
export type { ChooseFulfillmentMethodRequest } from "./ChooseFulfillmentMethodRequest.mjs";
|
|
3
4
|
export type { ClearCartRequest } from "./ClearCartRequest.mjs";
|
|
4
5
|
export type { CreatePaymentIntentCartRequest } from "./CreatePaymentIntentCartRequest.mjs";
|
|
5
6
|
export type { GetCartRequest } from "./GetCartRequest.mjs";
|
|
6
|
-
export type {
|
|
7
|
+
export type { ListShippingOptionsCartRequest } from "./ListShippingOptionsCartRequest.mjs";
|
|
8
|
+
export type { RefreshCartPaymentRequest } from "./RefreshCartPaymentRequest.mjs";
|
|
7
9
|
export type { RemoveItemCartRequest } from "./RemoveItemCartRequest.mjs";
|
|
8
|
-
export type {
|
|
10
|
+
export type { SelectShippingRateRequest } from "./SelectShippingRateRequest.mjs";
|
|
11
|
+
export type { ShippingAddressRequest } from "./ShippingAddressRequest.mjs";
|
|
9
12
|
export type { UpdateItemCartRequest } from "./UpdateItemCartRequest.mjs";
|
package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ListShippingOptionsCartResponse {
|
|
2
|
+
options: ListShippingOptionsCartResponse.Options.Item[];
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ListShippingOptionsCartResponse {
|
|
5
|
+
type Options = Options.Item[];
|
|
6
|
+
namespace Options {
|
|
7
|
+
interface Item {
|
|
8
|
+
provider_rate_id: string;
|
|
9
|
+
carrier: string;
|
|
10
|
+
service: string;
|
|
11
|
+
amount: number;
|
|
12
|
+
amount_cents: number;
|
|
13
|
+
currency: string;
|
|
14
|
+
carrier_delivery_days: number | null;
|
|
15
|
+
estimated_delivery_date: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface RefreshPaymentIntentCartResponse {
|
|
2
|
+
total_changed: boolean;
|
|
3
|
+
client_secret: string;
|
|
4
|
+
payment_intent_id: string;
|
|
5
|
+
subtotal: number;
|
|
6
|
+
tax_amount: number;
|
|
7
|
+
shipping_amount: number;
|
|
8
|
+
platform_fee: number;
|
|
9
|
+
total_amount: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
currency: RefreshPaymentIntentCartResponse.Currency;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace RefreshPaymentIntentCartResponse {
|
|
14
|
+
const Currency: {
|
|
15
|
+
readonly Usd: "usd";
|
|
16
|
+
};
|
|
17
|
+
type Currency = (typeof Currency)[keyof typeof Currency];
|
|
18
|
+
}
|
package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var RefreshPaymentIntentCartResponse;
|
|
3
|
+
(function (RefreshPaymentIntentCartResponse) {
|
|
4
|
+
RefreshPaymentIntentCartResponse.Currency = {
|
|
5
|
+
Usd: "usd",
|
|
6
|
+
};
|
|
7
|
+
})(RefreshPaymentIntentCartResponse || (RefreshPaymentIntentCartResponse = {}));
|
|
@@ -2,7 +2,10 @@ export * from "./AddItemCartResponse.mjs";
|
|
|
2
2
|
export * from "./CheckoutCartResponse.mjs";
|
|
3
3
|
export * from "./CreatePaymentIntentCartResponse.mjs";
|
|
4
4
|
export * from "./GetCartResponse.mjs";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./ListShippingOptionsCartResponse.mjs";
|
|
6
|
+
export * from "./RefreshPaymentIntentCartResponse.mjs";
|
|
6
7
|
export * from "./RemoveItemCartResponse.mjs";
|
|
7
8
|
export * from "./SelectShippingOptionCartResponse.mjs";
|
|
9
|
+
export * from "./SetFulfillmentCartResponse.mjs";
|
|
10
|
+
export * from "./SetShippingAddressCartResponse.mjs";
|
|
8
11
|
export * from "./UpdateItemCartResponse.mjs";
|
|
@@ -2,7 +2,10 @@ export * from "./AddItemCartResponse.mjs";
|
|
|
2
2
|
export * from "./CheckoutCartResponse.mjs";
|
|
3
3
|
export * from "./CreatePaymentIntentCartResponse.mjs";
|
|
4
4
|
export * from "./GetCartResponse.mjs";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./ListShippingOptionsCartResponse.mjs";
|
|
6
|
+
export * from "./RefreshPaymentIntentCartResponse.mjs";
|
|
6
7
|
export * from "./RemoveItemCartResponse.mjs";
|
|
7
8
|
export * from "./SelectShippingOptionCartResponse.mjs";
|
|
9
|
+
export * from "./SetFulfillmentCartResponse.mjs";
|
|
10
|
+
export * from "./SetShippingAddressCartResponse.mjs";
|
|
8
11
|
export * from "./UpdateItemCartResponse.mjs";
|
package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts
CHANGED
|
@@ -72,10 +72,16 @@ export declare class TicketingClient {
|
|
|
72
72
|
* Create a Stripe payment intent for the tickets held in the cart for the given event.
|
|
73
73
|
* Returns a client_secret for the mobile app to confirm payment with Stripe.
|
|
74
74
|
*
|
|
75
|
+
* A 409 `{status: "paid", message, payment_intent_id}` means these tickets
|
|
76
|
+
* are already paid for (the webhook issues them; never pay twice). A 409
|
|
77
|
+
* `{status: "processing", message}` means the payment is still in flight.
|
|
78
|
+
*
|
|
75
79
|
* @param {FiveOneEat.customer.events.CreatePaymentIntentRequest} request
|
|
76
80
|
* @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
81
|
*
|
|
78
82
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
83
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
84
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
79
85
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
80
86
|
*
|
|
81
87
|
* @example
|
package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs
CHANGED
|
@@ -220,10 +220,16 @@ export class TicketingClient {
|
|
|
220
220
|
* Create a Stripe payment intent for the tickets held in the cart for the given event.
|
|
221
221
|
* Returns a client_secret for the mobile app to confirm payment with Stripe.
|
|
222
222
|
*
|
|
223
|
+
* A 409 `{status: "paid", message, payment_intent_id}` means these tickets
|
|
224
|
+
* are already paid for (the webhook issues them; never pay twice). A 409
|
|
225
|
+
* `{status: "processing", message}` means the payment is still in flight.
|
|
226
|
+
*
|
|
223
227
|
* @param {FiveOneEat.customer.events.CreatePaymentIntentRequest} request
|
|
224
228
|
* @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
225
229
|
*
|
|
226
230
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
231
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
232
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
227
233
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
228
234
|
*
|
|
229
235
|
* @example
|
|
@@ -271,6 +277,10 @@ export class TicketingClient {
|
|
|
271
277
|
switch (_response.error.statusCode) {
|
|
272
278
|
case 401:
|
|
273
279
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
280
|
+
case 403:
|
|
281
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
282
|
+
case 409:
|
|
283
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
274
284
|
case 422:
|
|
275
285
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
276
286
|
default:
|
|
@@ -9,6 +9,18 @@ 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: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the stored intent was pinned to another method or tax
|
|
21
|
+
* address, even at the same price (e.g. a flat-rate address change).
|
|
22
|
+
*/
|
|
23
|
+
previous_destination_changed: boolean;
|
|
12
24
|
}
|
|
13
25
|
export declare namespace CreatePaymentIntentTicketingResponse {
|
|
14
26
|
interface TaxCalculation {
|
|
@@ -73,6 +73,7 @@ export class ProductOrdersClient {
|
|
|
73
73
|
*
|
|
74
74
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
75
75
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
76
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
76
77
|
*
|
|
77
78
|
* @example
|
|
78
79
|
* await client.customer.productOrders.get({
|
|
@@ -111,6 +112,8 @@ export class ProductOrdersClient {
|
|
|
111
112
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
112
113
|
case 403:
|
|
113
114
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
115
|
+
case 404:
|
|
116
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
114
117
|
default:
|
|
115
118
|
throw new errors.FiveOneEatError({
|
|
116
119
|
statusCode: _response.error.statusCode,
|
|
@@ -32,6 +32,8 @@ export declare class StandsClient {
|
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
34
34
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
35
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
36
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
35
37
|
*
|
|
36
38
|
* @example
|
|
37
39
|
* await client.customer.stands.createPaymentIntent({
|
|
@@ -46,6 +48,7 @@ export declare class StandsClient {
|
|
|
46
48
|
*
|
|
47
49
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
48
50
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
51
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
49
52
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
50
53
|
*
|
|
51
54
|
* @example
|
|
@@ -79,6 +79,8 @@ export class StandsClient {
|
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
81
81
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
82
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
83
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
82
84
|
*
|
|
83
85
|
* @example
|
|
84
86
|
* await client.customer.stands.createPaymentIntent({
|
|
@@ -117,6 +119,10 @@ export class StandsClient {
|
|
|
117
119
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
118
120
|
case 404:
|
|
119
121
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 409:
|
|
123
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 422:
|
|
125
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
120
126
|
default:
|
|
121
127
|
throw new errors.FiveOneEatError({
|
|
122
128
|
statusCode: _response.error.statusCode,
|
|
@@ -134,6 +140,7 @@ export class StandsClient {
|
|
|
134
140
|
*
|
|
135
141
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
136
142
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
143
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
137
144
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
138
145
|
*
|
|
139
146
|
* @example
|
|
@@ -179,6 +186,8 @@ export class StandsClient {
|
|
|
179
186
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
180
187
|
case 404:
|
|
181
188
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 409:
|
|
190
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
182
191
|
case 422:
|
|
183
192
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
184
193
|
default:
|
|
@@ -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;
|
|
@@ -22,6 +22,11 @@ export interface BusinessProfile {
|
|
|
22
22
|
latitude: number | null;
|
|
23
23
|
longitude: number | null;
|
|
24
24
|
has_location: boolean;
|
|
25
|
+
billing_address: string | null;
|
|
26
|
+
billing_city: string | null;
|
|
27
|
+
billing_state: string | null;
|
|
28
|
+
billing_zipcode: string | null;
|
|
29
|
+
billing_country: string | null;
|
|
25
30
|
logo: string | null;
|
|
26
31
|
logo_url: string | null;
|
|
27
32
|
hours: BusinessProfile.Hours;
|
|
@@ -41,7 +46,7 @@ export interface BusinessProfile {
|
|
|
41
46
|
}
|
|
42
47
|
export declare namespace BusinessProfile {
|
|
43
48
|
interface Hours {
|
|
44
|
-
is_open_now:
|
|
49
|
+
is_open_now: boolean;
|
|
45
50
|
next_open_at: string | null;
|
|
46
51
|
schedule: FiveOneEat.BusinessScheduleDayResource[];
|
|
47
52
|
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,4 @@
|
|
|
1
1
|
export interface ConflictErrorBody {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare namespace ConflictErrorBody {
|
|
5
|
-
const Message: {
|
|
6
|
-
readonly BusinessIsAlreadyFavorited: "Business is already favorited.";
|
|
7
|
-
};
|
|
8
|
-
type Message = (typeof Message)[keyof typeof Message];
|
|
2
|
+
/** Error overview. */
|
|
3
|
+
message: string;
|
|
9
4
|
}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
3
|
-
(function (ConflictErrorBody) {
|
|
4
|
-
ConflictErrorBody.Message = {
|
|
5
|
-
BusinessIsAlreadyFavorited: "Business is already favorited.",
|
|
6
|
-
};
|
|
7
|
-
})(ConflictErrorBody || (ConflictErrorBody = {}));
|
|
2
|
+
export {};
|
|
@@ -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[];
|
|
@@ -5,6 +5,12 @@ export interface CustomerEvent {
|
|
|
5
5
|
starts_at: string;
|
|
6
6
|
ends_at: string;
|
|
7
7
|
location: string | null;
|
|
8
|
+
address: string | null;
|
|
9
|
+
city: string | null;
|
|
10
|
+
state: string | null;
|
|
11
|
+
zipcode: string | null;
|
|
12
|
+
latitude: number | null;
|
|
13
|
+
longitude: number | null;
|
|
8
14
|
is_featured: boolean;
|
|
9
15
|
ticket_sales_enabled: boolean;
|
|
10
16
|
image: string | null;
|
|
@@ -6,6 +6,12 @@ export interface CustomerEventDetail {
|
|
|
6
6
|
starts_at: string;
|
|
7
7
|
ends_at: string;
|
|
8
8
|
location: string | null;
|
|
9
|
+
address: string | null;
|
|
10
|
+
city: string | null;
|
|
11
|
+
state: string | null;
|
|
12
|
+
zipcode: string | null;
|
|
13
|
+
latitude: number | null;
|
|
14
|
+
longitude: number | null;
|
|
9
15
|
is_featured: boolean;
|
|
10
16
|
ticket_sales_enabled: boolean;
|
|
11
17
|
image: string | null;
|
|
@@ -5,6 +5,12 @@ export interface EventFeedItem {
|
|
|
5
5
|
starts_at: string;
|
|
6
6
|
ends_at: string;
|
|
7
7
|
location: string | null;
|
|
8
|
+
address: string | null;
|
|
9
|
+
city: string | null;
|
|
10
|
+
state: string | null;
|
|
11
|
+
zipcode: string | null;
|
|
12
|
+
latitude: number | null;
|
|
13
|
+
longitude: number | null;
|
|
8
14
|
is_featured: boolean;
|
|
9
15
|
ticket_sales_enabled: boolean;
|
|
10
16
|
image: string | null;
|
|
@@ -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;
|