@51eat/sdk 0.0.47 → 0.0.49
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 +13 -8
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +2 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +15 -23
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +46 -63
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/StoreTicketOrderRequest.d.ts +1 -3
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +14 -8
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/me/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/client/Client.js +9 -4
- package/dist/cjs/api/resources/customer/resources/me/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/index.js +4 -1
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/Client.d.ts +88 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/Client.js +329 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.js +21 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/index.js +18 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/index.js +19 -0
- package/dist/cjs/api/resources/customerEvents/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/customerEvents/client/Client.js +111 -0
- package/dist/cjs/api/resources/customerEvents/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerEvents/client/index.js +17 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.js +3 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerEvents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerEvents/exports.js +21 -0
- package/dist/cjs/api/resources/customerEvents/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerEvents/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/types/BusinessEventOrder.d.ts +2 -10
- package/dist/cjs/api/types/BusinessEventOrderDetail.d.ts +2 -12
- package/dist/cjs/api/types/BusinessProductOrder.d.ts +1 -9
- package/dist/cjs/api/types/CustomerProductOrder.d.ts +1 -5
- package/dist/cjs/api/types/PaymentMethod.d.ts +8 -0
- package/dist/cjs/api/types/PaymentMethod.js +3 -0
- package/dist/cjs/api/types/TicketOrder.d.ts +1 -7
- package/dist/cjs/api/types/Transaction.d.ts +16 -0
- package/dist/cjs/api/types/Transaction.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/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +2 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +15 -23
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +46 -63
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/StoreTicketOrderRequest.d.mts +1 -3
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +14 -8
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/me/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/client/Client.mjs +5 -0
- package/dist/esm/api/resources/customer/resources/me/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/Client.d.mts +88 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/Client.mjs +292 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/exports.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/exports.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/index.mjs +3 -0
- package/dist/esm/api/resources/customerEvents/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/customerEvents/client/Client.mjs +74 -0
- package/dist/esm/api/resources/customerEvents/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerEvents/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.mts +11 -0
- package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.mjs +2 -0
- package/dist/esm/api/resources/customerEvents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerEvents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerEvents/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerEvents/exports.mjs +3 -0
- package/dist/esm/api/resources/customerEvents/index.d.mts +1 -0
- package/dist/esm/api/resources/customerEvents/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/types/BusinessEventOrder.d.mts +2 -10
- package/dist/esm/api/types/BusinessEventOrderDetail.d.mts +2 -12
- package/dist/esm/api/types/BusinessProductOrder.d.mts +1 -9
- package/dist/esm/api/types/CustomerProductOrder.d.mts +1 -5
- package/dist/esm/api/types/PaymentMethod.d.mts +8 -0
- package/dist/esm/api/types/PaymentMethod.mjs +2 -0
- package/dist/esm/api/types/TicketOrder.d.mts +1 -7
- package/dist/esm/api/types/Transaction.d.mts +16 -0
- package/dist/esm/api/types/Transaction.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 +23 -1
- package/reference.md +400 -40
|
@@ -6,14 +6,8 @@ export interface BusinessProductOrder {
|
|
|
6
6
|
fulfillment_status: string;
|
|
7
7
|
fulfillment_method: string | null;
|
|
8
8
|
fulfillment_type: string | null;
|
|
9
|
-
subtotal: number;
|
|
10
|
-
tax_amount: number;
|
|
11
|
-
shipping_amount: number;
|
|
12
9
|
discount_amount: number;
|
|
13
|
-
|
|
14
|
-
refunded_amount: number;
|
|
15
|
-
customer_email: string;
|
|
16
|
-
customer_name: string;
|
|
10
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
17
11
|
customer_phone: string | null;
|
|
18
12
|
shipping_address: Record<string, unknown> | null;
|
|
19
13
|
billing_address: Record<string, unknown> | null;
|
|
@@ -24,10 +18,8 @@ export interface BusinessProductOrder {
|
|
|
24
18
|
user?: BusinessProductOrder.User | undefined;
|
|
25
19
|
items?: FiveOneEat.BusinessProductOrderItem[] | undefined;
|
|
26
20
|
shipment?: (BusinessProductOrder.Shipment | null) | undefined;
|
|
27
|
-
payment_completed_at: string | null;
|
|
28
21
|
fulfilled_at: string | null;
|
|
29
22
|
picked_up_at: string | null;
|
|
30
|
-
refunded_at: string | null;
|
|
31
23
|
created_at: string | null;
|
|
32
24
|
updated_at: string | null;
|
|
33
25
|
}
|
|
@@ -5,18 +5,14 @@ export interface CustomerProductOrder {
|
|
|
5
5
|
status: string;
|
|
6
6
|
fulfillment_status: string;
|
|
7
7
|
fulfillment_method: string;
|
|
8
|
-
subtotal: string;
|
|
9
|
-
tax_amount: string;
|
|
10
|
-
shipping_amount: string;
|
|
11
8
|
discount_amount: string;
|
|
12
|
-
|
|
9
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
13
10
|
tracking_number: string | null;
|
|
14
11
|
tracking_url: string | null;
|
|
15
12
|
shipping_address: unknown[] | null;
|
|
16
13
|
billing_address: unknown[] | null;
|
|
17
14
|
business?: CustomerProductOrder.Business | undefined;
|
|
18
15
|
items?: FiveOneEat.CustomerProductOrderItem[] | undefined;
|
|
19
|
-
payment_completed_at: string | null;
|
|
20
16
|
fulfilled_at: string | null;
|
|
21
17
|
created_at: string | null;
|
|
22
18
|
}
|
|
@@ -2,12 +2,6 @@ import type * as FiveOneEat from "../index.mjs";
|
|
|
2
2
|
export interface TicketOrder {
|
|
3
3
|
id: string;
|
|
4
4
|
order_number: string;
|
|
5
|
-
|
|
6
|
-
subtotal: string;
|
|
7
|
-
fees: string;
|
|
8
|
-
total_amount: string;
|
|
9
|
-
customer_name: string;
|
|
10
|
-
customer_email: string;
|
|
11
|
-
payment_completed_at: string;
|
|
5
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
12
6
|
tickets?: FiveOneEat.Ticket[] | undefined;
|
|
13
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Transaction {
|
|
2
|
+
ulid: string;
|
|
3
|
+
status: string;
|
|
4
|
+
subtotal: string;
|
|
5
|
+
tax_amount: string;
|
|
6
|
+
shipping_amount: string;
|
|
7
|
+
platform_fee: string;
|
|
8
|
+
total_amount: string;
|
|
9
|
+
refunded_amount: string;
|
|
10
|
+
customer_name: string | null;
|
|
11
|
+
customer_email: string;
|
|
12
|
+
stripe_payment_intent_id: string | null;
|
|
13
|
+
payment_completed_at: string | null;
|
|
14
|
+
refunded_at: string | null;
|
|
15
|
+
refund_reason: string | null;
|
|
16
|
+
}
|
|
@@ -124,6 +124,7 @@ export * from "./MenuItemSearchResult.mjs";
|
|
|
124
124
|
export * from "./Message.mjs";
|
|
125
125
|
export * from "./NotFoundErrorBody.mjs";
|
|
126
126
|
export * from "./PaginationResource.mjs";
|
|
127
|
+
export * from "./PaymentMethod.mjs";
|
|
127
128
|
export * from "./ProductSearchResult.mjs";
|
|
128
129
|
export * from "./ReorderProductImagesRequest.mjs";
|
|
129
130
|
export * from "./RsvpEvent.mjs";
|
|
@@ -137,5 +138,6 @@ export * from "./Ticket.mjs";
|
|
|
137
138
|
export * from "./TicketOrder.mjs";
|
|
138
139
|
export * from "./TicketOrderResponse.mjs";
|
|
139
140
|
export * from "./TicketResponse.mjs";
|
|
141
|
+
export * from "./Transaction.mjs";
|
|
140
142
|
export * from "./UnauthorizedErrorBody.mjs";
|
|
141
143
|
export * from "./UnprocessableEntityErrorBody.mjs";
|
|
@@ -124,6 +124,7 @@ export * from "./MenuItemSearchResult.mjs";
|
|
|
124
124
|
export * from "./Message.mjs";
|
|
125
125
|
export * from "./NotFoundErrorBody.mjs";
|
|
126
126
|
export * from "./PaginationResource.mjs";
|
|
127
|
+
export * from "./PaymentMethod.mjs";
|
|
127
128
|
export * from "./ProductSearchResult.mjs";
|
|
128
129
|
export * from "./ReorderProductImagesRequest.mjs";
|
|
129
130
|
export * from "./RsvpEvent.mjs";
|
|
@@ -137,5 +138,6 @@ export * from "./Ticket.mjs";
|
|
|
137
138
|
export * from "./TicketOrder.mjs";
|
|
138
139
|
export * from "./TicketOrderResponse.mjs";
|
|
139
140
|
export * from "./TicketResponse.mjs";
|
|
141
|
+
export * from "./Transaction.mjs";
|
|
140
142
|
export * from "./UnauthorizedErrorBody.mjs";
|
|
141
143
|
export * from "./UnprocessableEntityErrorBody.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.49";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.49";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@51eat/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,6 +44,17 @@
|
|
|
44
44
|
},
|
|
45
45
|
"default": "./dist/cjs/api/resources/businessProducts/exports.js"
|
|
46
46
|
},
|
|
47
|
+
"./customerEvents": {
|
|
48
|
+
"import": {
|
|
49
|
+
"types": "./dist/esm/api/resources/customerEvents/exports.d.mts",
|
|
50
|
+
"default": "./dist/esm/api/resources/customerEvents/exports.mjs"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./dist/cjs/api/resources/customerEvents/exports.d.ts",
|
|
54
|
+
"default": "./dist/cjs/api/resources/customerEvents/exports.js"
|
|
55
|
+
},
|
|
56
|
+
"default": "./dist/cjs/api/resources/customerEvents/exports.js"
|
|
57
|
+
},
|
|
47
58
|
"./customerMessaging": {
|
|
48
59
|
"import": {
|
|
49
60
|
"types": "./dist/esm/api/resources/customerMessaging/exports.d.mts",
|
|
@@ -704,6 +715,17 @@
|
|
|
704
715
|
},
|
|
705
716
|
"default": "./dist/cjs/api/resources/customer/resources/me/resources/addresses/exports.js"
|
|
706
717
|
},
|
|
718
|
+
"./customer/me/paymentMethods": {
|
|
719
|
+
"import": {
|
|
720
|
+
"types": "./dist/esm/api/resources/customer/resources/me/resources/paymentMethods/exports.d.mts",
|
|
721
|
+
"default": "./dist/esm/api/resources/customer/resources/me/resources/paymentMethods/exports.mjs"
|
|
722
|
+
},
|
|
723
|
+
"require": {
|
|
724
|
+
"types": "./dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.d.ts",
|
|
725
|
+
"default": "./dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.js"
|
|
726
|
+
},
|
|
727
|
+
"default": "./dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.js"
|
|
728
|
+
},
|
|
707
729
|
"./customer/messaging/conversations": {
|
|
708
730
|
"import": {
|
|
709
731
|
"types": "./dist/esm/api/resources/customer/resources/messaging/resources/conversations/exports.d.mts",
|