@51eat/sdk 0.0.77 → 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/resources/profile/client/requests/UpdateBusinessProfileRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +2 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +4 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +6 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +6 -0
- package/dist/cjs/api/types/BusinessProfile.d.ts +5 -0
- package/dist/cjs/api/types/ConflictErrorBody.d.ts +2 -13
- package/dist/cjs/api/types/ConflictErrorBody.js +0 -10
- 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/TicketOrder.d.ts +7 -1
- 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/profile/client/requests/UpdateBusinessProfileRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +2 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +4 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +6 -1
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +6 -0
- package/dist/esm/api/types/BusinessProfile.d.mts +5 -0
- package/dist/esm/api/types/ConflictErrorBody.d.mts +2 -13
- package/dist/esm/api/types/ConflictErrorBody.mjs +1 -9
- 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/TicketOrder.d.mts +7 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +6 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.78",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.78",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -31,6 +31,15 @@ export interface UpdateBusinessProfileRequest {
|
|
|
31
31
|
pickup_hours?: string[] | null;
|
|
32
32
|
same_day_cutoff?: string | null;
|
|
33
33
|
pickup_instructions?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Where Pro is billed, when different from the business address.
|
|
36
|
+
* Send all five together, or all null to clear.
|
|
37
|
+
*/
|
|
38
|
+
billing_address?: string | null;
|
|
39
|
+
billing_city?: string | null;
|
|
40
|
+
billing_state?: string | null;
|
|
41
|
+
billing_zipcode?: string | null;
|
|
42
|
+
billing_country?: string | null;
|
|
34
43
|
}
|
|
35
44
|
export declare namespace UpdateBusinessProfileRequest {
|
|
36
45
|
type OperatingMonths = OperatingMonths.Item[];
|
|
@@ -95,7 +95,8 @@ export declare class CartClient {
|
|
|
95
95
|
*
|
|
96
96
|
* A 409 `{status: "paid", message, payment_intent_id}` means the cart's
|
|
97
97
|
* payment already went through (never a second payment): finish checkout
|
|
98
|
-
* with that id. A 409
|
|
98
|
+
* with that id. A 409 `{status: "processing", message}` means the payment
|
|
99
|
+
* is still in flight: don't pay again, check back later.
|
|
99
100
|
*
|
|
100
101
|
* @param {FiveOneEat.customer.CreatePaymentIntentCartRequest} request
|
|
101
102
|
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -364,7 +364,8 @@ class CartClient {
|
|
|
364
364
|
*
|
|
365
365
|
* A 409 `{status: "paid", message, payment_intent_id}` means the cart's
|
|
366
366
|
* payment already went through (never a second payment): finish checkout
|
|
367
|
-
* with that id. A 409
|
|
367
|
+
* with that id. A 409 `{status: "processing", message}` means the payment
|
|
368
|
+
* is still in flight: don't pay again, check back later.
|
|
368
369
|
*
|
|
369
370
|
* @param {FiveOneEat.customer.CreatePaymentIntentCartRequest} request
|
|
370
371
|
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ 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
|
*
|
package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js
CHANGED
|
@@ -256,6 +256,10 @@ class TicketingClient {
|
|
|
256
256
|
* Create a Stripe payment intent for the tickets held in the cart for the given event.
|
|
257
257
|
* Returns a client_secret for the mobile app to confirm payment with Stripe.
|
|
258
258
|
*
|
|
259
|
+
* A 409 `{status: "paid", message, payment_intent_id}` means these tickets
|
|
260
|
+
* are already paid for (the webhook issues them; never pay twice). A 409
|
|
261
|
+
* `{status: "processing", message}` means the payment is still in flight.
|
|
262
|
+
*
|
|
259
263
|
* @param {FiveOneEat.customer.events.CreatePaymentIntentRequest} request
|
|
260
264
|
* @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
265
|
*
|
|
@@ -15,7 +15,12 @@ export interface CreatePaymentIntentTicketingResponse {
|
|
|
15
15
|
* tell whether the price the buyer is about to pay just moved.
|
|
16
16
|
*/
|
|
17
17
|
previous_payment_intent_id: string | null;
|
|
18
|
-
previous_amount_cents:
|
|
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;
|
|
19
24
|
}
|
|
20
25
|
export declare namespace CreatePaymentIntentTicketingResponse {
|
|
21
26
|
interface TaxCalculation {
|
|
@@ -32,6 +32,7 @@ export declare class StandsClient {
|
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
34
34
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
35
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
35
36
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
36
37
|
*
|
|
37
38
|
* @example
|
|
@@ -47,6 +48,7 @@ export declare class StandsClient {
|
|
|
47
48
|
*
|
|
48
49
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
49
50
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
51
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
50
52
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
51
53
|
*
|
|
52
54
|
* @example
|
|
@@ -115,6 +115,7 @@ class StandsClient {
|
|
|
115
115
|
*
|
|
116
116
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
117
117
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
118
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
118
119
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
119
120
|
*
|
|
120
121
|
* @example
|
|
@@ -154,6 +155,8 @@ class StandsClient {
|
|
|
154
155
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
155
156
|
case 404:
|
|
156
157
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
158
|
+
case 409:
|
|
159
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
157
160
|
case 422:
|
|
158
161
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
159
162
|
default:
|
|
@@ -173,6 +176,7 @@ class StandsClient {
|
|
|
173
176
|
*
|
|
174
177
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
175
178
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
179
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
176
180
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
177
181
|
*
|
|
178
182
|
* @example
|
|
@@ -218,6 +222,8 @@ class StandsClient {
|
|
|
218
222
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
219
223
|
case 404:
|
|
220
224
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
225
|
+
case 409:
|
|
226
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
221
227
|
case 422:
|
|
222
228
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
223
229
|
default:
|
|
@@ -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;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
export interface ConflictErrorBody {
|
|
2
|
-
|
|
3
|
-
message:
|
|
4
|
-
payment_intent_id: string;
|
|
5
|
-
}
|
|
6
|
-
export declare namespace ConflictErrorBody {
|
|
7
|
-
const Status: {
|
|
8
|
-
readonly Paid: "paid";
|
|
9
|
-
};
|
|
10
|
-
type Status = (typeof Status)[keyof typeof Status];
|
|
11
|
-
const Message: {
|
|
12
|
-
readonly YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets — they'll arrive by email shortly.";
|
|
13
|
-
};
|
|
14
|
-
type Message = (typeof Message)[keyof typeof Message];
|
|
2
|
+
/** Error overview. */
|
|
3
|
+
message: string;
|
|
15
4
|
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ConflictErrorBody = void 0;
|
|
5
|
-
var ConflictErrorBody;
|
|
6
|
-
(function (ConflictErrorBody) {
|
|
7
|
-
ConflictErrorBody.Status = {
|
|
8
|
-
Paid: "paid",
|
|
9
|
-
};
|
|
10
|
-
ConflictErrorBody.Message = {
|
|
11
|
-
YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets \u2014 they'll arrive by email shortly.",
|
|
12
|
-
};
|
|
13
|
-
})(ConflictErrorBody || (exports.ConflictErrorBody = ConflictErrorBody = {}));
|
|
@@ -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;
|
|
@@ -12,7 +12,13 @@ export declare namespace TicketOrder {
|
|
|
12
12
|
title: string;
|
|
13
13
|
starts_at: string;
|
|
14
14
|
ends_at: string;
|
|
15
|
-
location: string;
|
|
15
|
+
location: string | null;
|
|
16
|
+
address: string | null;
|
|
17
|
+
city: string | null;
|
|
18
|
+
state: string | null;
|
|
19
|
+
zipcode: string | null;
|
|
20
|
+
latitude: number | null;
|
|
21
|
+
longitude: number | null;
|
|
16
22
|
business: Event.Business | null;
|
|
17
23
|
}
|
|
18
24
|
namespace Event {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.78";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.78",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.78",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -31,6 +31,15 @@ export interface UpdateBusinessProfileRequest {
|
|
|
31
31
|
pickup_hours?: string[] | null;
|
|
32
32
|
same_day_cutoff?: string | null;
|
|
33
33
|
pickup_instructions?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Where Pro is billed, when different from the business address.
|
|
36
|
+
* Send all five together, or all null to clear.
|
|
37
|
+
*/
|
|
38
|
+
billing_address?: string | null;
|
|
39
|
+
billing_city?: string | null;
|
|
40
|
+
billing_state?: string | null;
|
|
41
|
+
billing_zipcode?: string | null;
|
|
42
|
+
billing_country?: string | null;
|
|
34
43
|
}
|
|
35
44
|
export declare namespace UpdateBusinessProfileRequest {
|
|
36
45
|
type OperatingMonths = OperatingMonths.Item[];
|
|
@@ -95,7 +95,8 @@ export declare class CartClient {
|
|
|
95
95
|
*
|
|
96
96
|
* A 409 `{status: "paid", message, payment_intent_id}` means the cart's
|
|
97
97
|
* payment already went through (never a second payment): finish checkout
|
|
98
|
-
* with that id. A 409
|
|
98
|
+
* with that id. A 409 `{status: "processing", message}` means the payment
|
|
99
|
+
* is still in flight: don't pay again, check back later.
|
|
99
100
|
*
|
|
100
101
|
* @param {FiveOneEat.customer.CreatePaymentIntentCartRequest} request
|
|
101
102
|
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -328,7 +328,8 @@ export class CartClient {
|
|
|
328
328
|
*
|
|
329
329
|
* A 409 `{status: "paid", message, payment_intent_id}` means the cart's
|
|
330
330
|
* payment already went through (never a second payment): finish checkout
|
|
331
|
-
* with that id. A 409
|
|
331
|
+
* with that id. A 409 `{status: "processing", message}` means the payment
|
|
332
|
+
* is still in flight: don't pay again, check back later.
|
|
332
333
|
*
|
|
333
334
|
* @param {FiveOneEat.customer.CreatePaymentIntentCartRequest} request
|
|
334
335
|
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts
CHANGED
|
@@ -72,6 +72,10 @@ 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
|
*
|
package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs
CHANGED
|
@@ -220,6 +220,10 @@ 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
|
*
|
|
@@ -15,7 +15,12 @@ export interface CreatePaymentIntentTicketingResponse {
|
|
|
15
15
|
* tell whether the price the buyer is about to pay just moved.
|
|
16
16
|
*/
|
|
17
17
|
previous_payment_intent_id: string | null;
|
|
18
|
-
previous_amount_cents:
|
|
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;
|
|
19
24
|
}
|
|
20
25
|
export declare namespace CreatePaymentIntentTicketingResponse {
|
|
21
26
|
interface TaxCalculation {
|
|
@@ -32,6 +32,7 @@ export declare class StandsClient {
|
|
|
32
32
|
*
|
|
33
33
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
34
34
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
35
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
35
36
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
36
37
|
*
|
|
37
38
|
* @example
|
|
@@ -47,6 +48,7 @@ export declare class StandsClient {
|
|
|
47
48
|
*
|
|
48
49
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
49
50
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
51
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
50
52
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
51
53
|
*
|
|
52
54
|
* @example
|
|
@@ -79,6 +79,7 @@ export class StandsClient {
|
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
81
81
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
82
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
82
83
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
83
84
|
*
|
|
84
85
|
* @example
|
|
@@ -118,6 +119,8 @@ export class StandsClient {
|
|
|
118
119
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
119
120
|
case 404:
|
|
120
121
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 409:
|
|
123
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
121
124
|
case 422:
|
|
122
125
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
123
126
|
default:
|
|
@@ -137,6 +140,7 @@ export class StandsClient {
|
|
|
137
140
|
*
|
|
138
141
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
139
142
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
143
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
140
144
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
141
145
|
*
|
|
142
146
|
* @example
|
|
@@ -182,6 +186,8 @@ export class StandsClient {
|
|
|
182
186
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
183
187
|
case 404:
|
|
184
188
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 409:
|
|
190
|
+
throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
|
|
185
191
|
case 422:
|
|
186
192
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
187
193
|
default:
|
|
@@ -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;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
export interface ConflictErrorBody {
|
|
2
|
-
|
|
3
|
-
message:
|
|
4
|
-
payment_intent_id: string;
|
|
5
|
-
}
|
|
6
|
-
export declare namespace ConflictErrorBody {
|
|
7
|
-
const Status: {
|
|
8
|
-
readonly Paid: "paid";
|
|
9
|
-
};
|
|
10
|
-
type Status = (typeof Status)[keyof typeof Status];
|
|
11
|
-
const Message: {
|
|
12
|
-
readonly YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets — they'll arrive by email shortly.";
|
|
13
|
-
};
|
|
14
|
-
type Message = (typeof Message)[keyof typeof Message];
|
|
2
|
+
/** Error overview. */
|
|
3
|
+
message: string;
|
|
15
4
|
}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
3
|
-
(function (ConflictErrorBody) {
|
|
4
|
-
ConflictErrorBody.Status = {
|
|
5
|
-
Paid: "paid",
|
|
6
|
-
};
|
|
7
|
-
ConflictErrorBody.Message = {
|
|
8
|
-
YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets \u2014 they'll arrive by email shortly.",
|
|
9
|
-
};
|
|
10
|
-
})(ConflictErrorBody || (ConflictErrorBody = {}));
|
|
2
|
+
export {};
|
|
@@ -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;
|
|
@@ -12,7 +12,13 @@ export declare namespace TicketOrder {
|
|
|
12
12
|
title: string;
|
|
13
13
|
starts_at: string;
|
|
14
14
|
ends_at: string;
|
|
15
|
-
location: string;
|
|
15
|
+
location: string | null;
|
|
16
|
+
address: string | null;
|
|
17
|
+
city: string | null;
|
|
18
|
+
state: string | null;
|
|
19
|
+
zipcode: string | null;
|
|
20
|
+
latitude: number | null;
|
|
21
|
+
longitude: number | null;
|
|
16
22
|
business: Event.Business | null;
|
|
17
23
|
}
|
|
18
24
|
namespace Event {
|
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.78";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.78";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -11093,7 +11093,8 @@ The message is also in the cart's `fulfillment.checkout_blocker`.
|
|
|
11093
11093
|
|
|
11094
11094
|
A 409 `{status: "paid", message, payment_intent_id}` means the cart's
|
|
11095
11095
|
payment already went through (never a second payment): finish checkout
|
|
11096
|
-
with that id. A 409
|
|
11096
|
+
with that id. A 409 `{status: "processing", message}` means the payment
|
|
11097
|
+
is still in flight: don't pay again, check back later.
|
|
11097
11098
|
</dd>
|
|
11098
11099
|
</dl>
|
|
11099
11100
|
</dd>
|
|
@@ -14104,6 +14105,10 @@ await client.customer.events.ticketing.calculatePrice({
|
|
|
14104
14105
|
|
|
14105
14106
|
Create a Stripe payment intent for the tickets held in the cart for the given event.
|
|
14106
14107
|
Returns a client_secret for the mobile app to confirm payment with Stripe.
|
|
14108
|
+
|
|
14109
|
+
A 409 `{status: "paid", message, payment_intent_id}` means these tickets
|
|
14110
|
+
are already paid for (the webhook issues them; never pay twice). A 409
|
|
14111
|
+
`{status: "processing", message}` means the payment is still in flight.
|
|
14107
14112
|
</dd>
|
|
14108
14113
|
</dl>
|
|
14109
14114
|
</dd>
|