@51eat/sdk 0.0.49 → 0.0.51

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.
@@ -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.49",
47
- "User-Agent": "@51eat/sdk/0.0.49",
46
+ "X-Fern-SDK-Version": "0.0.51",
47
+ "User-Agent": "@51eat/sdk/0.0.51",
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);
@@ -64,7 +64,14 @@ export declare class TicketingClient {
64
64
  *
65
65
  * @example
66
66
  * await client.customer.events.ticketing.createPaymentIntent({
67
- * eventId: "eventId"
67
+ * eventId: "eventId",
68
+ * billing_address: {
69
+ * line1: "line1",
70
+ * city: "city",
71
+ * state: "state",
72
+ * postal_code: "postal_code",
73
+ * country: "country"
74
+ * }
68
75
  * })
69
76
  */
70
77
  createPaymentIntent(request: FiveOneEat.customer.events.AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.events.CreatePaymentIntentTicketingResponse>;
@@ -212,7 +212,14 @@ class TicketingClient {
212
212
  *
213
213
  * @example
214
214
  * await client.customer.events.ticketing.createPaymentIntent({
215
- * eventId: "eventId"
215
+ * eventId: "eventId",
216
+ * billing_address: {
217
+ * line1: "line1",
218
+ * city: "city",
219
+ * state: "state",
220
+ * postal_code: "postal_code",
221
+ * country: "country"
222
+ * }
216
223
  * })
217
224
  */
218
225
  createPaymentIntent(request, requestOptions) {
@@ -1,10 +1,27 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * eventId: "eventId"
4
+ * eventId: "eventId",
5
+ * billing_address: {
6
+ * line1: "line1",
7
+ * city: "city",
8
+ * state: "state",
9
+ * postal_code: "postal_code",
10
+ * country: "country"
11
+ * }
5
12
  * }
6
13
  */
7
14
  export interface AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest {
8
15
  eventId: string;
9
16
  payment_method_id?: string | null;
17
+ billing_address: AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.BillingAddress;
18
+ }
19
+ export declare namespace AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest {
20
+ interface BillingAddress {
21
+ line1: string;
22
+ city: string;
23
+ state: string;
24
+ postal_code: string;
25
+ country: string;
26
+ }
10
27
  }
@@ -2,6 +2,24 @@ import type * as FiveOneEat from "../index.js";
2
2
  export interface TicketOrder {
3
3
  id: string;
4
4
  order_number: string;
5
+ event?: TicketOrder.Event | undefined;
5
6
  transaction?: FiveOneEat.Transaction | undefined;
6
7
  tickets?: FiveOneEat.Ticket[] | undefined;
7
8
  }
9
+ export declare namespace TicketOrder {
10
+ interface Event {
11
+ id: string;
12
+ name: string;
13
+ starts_at: string;
14
+ ends_at: string;
15
+ location: string;
16
+ business: Event.Business | null;
17
+ }
18
+ namespace Event {
19
+ interface Business {
20
+ id: string;
21
+ name: string;
22
+ handle: string;
23
+ }
24
+ }
25
+ }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.49";
1
+ export declare const SDK_VERSION = "0.0.51";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.49";
4
+ exports.SDK_VERSION = "0.0.51";
@@ -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.49",
10
- "User-Agent": "@51eat/sdk/0.0.49",
9
+ "X-Fern-SDK-Version": "0.0.51",
10
+ "User-Agent": "@51eat/sdk/0.0.51",
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);
@@ -64,7 +64,14 @@ export declare class TicketingClient {
64
64
  *
65
65
  * @example
66
66
  * await client.customer.events.ticketing.createPaymentIntent({
67
- * eventId: "eventId"
67
+ * eventId: "eventId",
68
+ * billing_address: {
69
+ * line1: "line1",
70
+ * city: "city",
71
+ * state: "state",
72
+ * postal_code: "postal_code",
73
+ * country: "country"
74
+ * }
68
75
  * })
69
76
  */
70
77
  createPaymentIntent(request: FiveOneEat.customer.events.AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.events.CreatePaymentIntentTicketingResponse>;
@@ -176,7 +176,14 @@ export class TicketingClient {
176
176
  *
177
177
  * @example
178
178
  * await client.customer.events.ticketing.createPaymentIntent({
179
- * eventId: "eventId"
179
+ * eventId: "eventId",
180
+ * billing_address: {
181
+ * line1: "line1",
182
+ * city: "city",
183
+ * state: "state",
184
+ * postal_code: "postal_code",
185
+ * country: "country"
186
+ * }
180
187
  * })
181
188
  */
182
189
  createPaymentIntent(request, requestOptions) {
@@ -1,10 +1,27 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * eventId: "eventId"
4
+ * eventId: "eventId",
5
+ * billing_address: {
6
+ * line1: "line1",
7
+ * city: "city",
8
+ * state: "state",
9
+ * postal_code: "postal_code",
10
+ * country: "country"
11
+ * }
5
12
  * }
6
13
  */
7
14
  export interface AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest {
8
15
  eventId: string;
9
16
  payment_method_id?: string | null;
17
+ billing_address: AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.BillingAddress;
18
+ }
19
+ export declare namespace AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest {
20
+ interface BillingAddress {
21
+ line1: string;
22
+ city: string;
23
+ state: string;
24
+ postal_code: string;
25
+ country: string;
26
+ }
10
27
  }
@@ -2,6 +2,24 @@ import type * as FiveOneEat from "../index.mjs";
2
2
  export interface TicketOrder {
3
3
  id: string;
4
4
  order_number: string;
5
+ event?: TicketOrder.Event | undefined;
5
6
  transaction?: FiveOneEat.Transaction | undefined;
6
7
  tickets?: FiveOneEat.Ticket[] | undefined;
7
8
  }
9
+ export declare namespace TicketOrder {
10
+ interface Event {
11
+ id: string;
12
+ name: string;
13
+ starts_at: string;
14
+ ends_at: string;
15
+ location: string;
16
+ business: Event.Business | null;
17
+ }
18
+ namespace Event {
19
+ interface Business {
20
+ id: string;
21
+ name: string;
22
+ handle: string;
23
+ }
24
+ }
25
+ }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.49";
1
+ export declare const SDK_VERSION = "0.0.51";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.49";
1
+ export const SDK_VERSION = "0.0.51";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -11749,7 +11749,14 @@ Returns a client_secret for the mobile app to confirm payment with Stripe.
11749
11749
 
11750
11750
  ```typescript
11751
11751
  await client.customer.events.ticketing.createPaymentIntent({
11752
- eventId: "eventId"
11752
+ eventId: "eventId",
11753
+ billing_address: {
11754
+ line1: "line1",
11755
+ city: "city",
11756
+ state: "state",
11757
+ postal_code: "postal_code",
11758
+ country: "country"
11759
+ }
11753
11760
  });
11754
11761
 
11755
11762
  ```