@51eat/sdk 0.0.53 → 0.0.54

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.53",
47
- "User-Agent": "@51eat/sdk/0.0.53",
46
+ "X-Fern-SDK-Version": "0.0.54",
47
+ "User-Agent": "@51eat/sdk/0.0.54",
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);
@@ -17,7 +17,7 @@ export interface CheckoutRequest {
17
17
  business: string;
18
18
  payment_intent_id: string;
19
19
  fulfillment_method?: CheckoutRequest.FulfillmentMethod | null;
20
- pickup_date?: CheckoutRequest.PickupDate | null;
20
+ pickup_date?: string | null;
21
21
  pickup_time?: string | null;
22
22
  billing_address: CheckoutRequest.BillingAddress;
23
23
  shipping_address?: CheckoutRequest.ShippingAddress;
@@ -28,11 +28,6 @@ export declare namespace CheckoutRequest {
28
28
  readonly Pickup: "pickup";
29
29
  };
30
30
  type FulfillmentMethod = (typeof FulfillmentMethod)[keyof typeof FulfillmentMethod];
31
- const PickupDate: {
32
- readonly Today: "today";
33
- readonly Tomorrow: "tomorrow";
34
- };
35
- type PickupDate = (typeof PickupDate)[keyof typeof PickupDate];
36
31
  interface BillingAddress {
37
32
  line1: string;
38
33
  city: string;
@@ -8,8 +8,4 @@ var CheckoutRequest;
8
8
  Shipping: "shipping",
9
9
  Pickup: "pickup",
10
10
  };
11
- CheckoutRequest.PickupDate = {
12
- Today: "today",
13
- Tomorrow: "tomorrow",
14
- };
15
11
  })(CheckoutRequest || (exports.CheckoutRequest = CheckoutRequest = {}));
@@ -15,7 +15,7 @@ export interface CreatePaymentIntentRequest {
15
15
  /** The business handle */
16
16
  business: string;
17
17
  fulfillment_method?: CreatePaymentIntentRequest.FulfillmentMethod | null;
18
- pickup_date?: CreatePaymentIntentRequest.PickupDate | null;
18
+ pickup_date?: string | null;
19
19
  pickup_time?: string | null;
20
20
  payment_method_id?: string | null;
21
21
  billing_address: CreatePaymentIntentRequest.BillingAddress;
@@ -27,11 +27,6 @@ export declare namespace CreatePaymentIntentRequest {
27
27
  readonly Pickup: "pickup";
28
28
  };
29
29
  type FulfillmentMethod = (typeof FulfillmentMethod)[keyof typeof FulfillmentMethod];
30
- const PickupDate: {
31
- readonly Today: "today";
32
- readonly Tomorrow: "tomorrow";
33
- };
34
- type PickupDate = (typeof PickupDate)[keyof typeof PickupDate];
35
30
  interface BillingAddress {
36
31
  line1: string;
37
32
  city: string;
@@ -8,8 +8,4 @@ var CreatePaymentIntentRequest;
8
8
  Shipping: "shipping",
9
9
  Pickup: "pickup",
10
10
  };
11
- CreatePaymentIntentRequest.PickupDate = {
12
- Today: "today",
13
- Tomorrow: "tomorrow",
14
- };
15
11
  })(CreatePaymentIntentRequest || (exports.CreatePaymentIntentRequest = CreatePaymentIntentRequest = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.53";
1
+ export declare const SDK_VERSION = "0.0.54";
@@ -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.53";
4
+ exports.SDK_VERSION = "0.0.54";
@@ -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.53",
10
- "User-Agent": "@51eat/sdk/0.0.53",
9
+ "X-Fern-SDK-Version": "0.0.54",
10
+ "User-Agent": "@51eat/sdk/0.0.54",
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);
@@ -17,7 +17,7 @@ export interface CheckoutRequest {
17
17
  business: string;
18
18
  payment_intent_id: string;
19
19
  fulfillment_method?: CheckoutRequest.FulfillmentMethod | null;
20
- pickup_date?: CheckoutRequest.PickupDate | null;
20
+ pickup_date?: string | null;
21
21
  pickup_time?: string | null;
22
22
  billing_address: CheckoutRequest.BillingAddress;
23
23
  shipping_address?: CheckoutRequest.ShippingAddress;
@@ -28,11 +28,6 @@ export declare namespace CheckoutRequest {
28
28
  readonly Pickup: "pickup";
29
29
  };
30
30
  type FulfillmentMethod = (typeof FulfillmentMethod)[keyof typeof FulfillmentMethod];
31
- const PickupDate: {
32
- readonly Today: "today";
33
- readonly Tomorrow: "tomorrow";
34
- };
35
- type PickupDate = (typeof PickupDate)[keyof typeof PickupDate];
36
31
  interface BillingAddress {
37
32
  line1: string;
38
33
  city: string;
@@ -5,8 +5,4 @@ export var CheckoutRequest;
5
5
  Shipping: "shipping",
6
6
  Pickup: "pickup",
7
7
  };
8
- CheckoutRequest.PickupDate = {
9
- Today: "today",
10
- Tomorrow: "tomorrow",
11
- };
12
8
  })(CheckoutRequest || (CheckoutRequest = {}));
@@ -15,7 +15,7 @@ export interface CreatePaymentIntentRequest {
15
15
  /** The business handle */
16
16
  business: string;
17
17
  fulfillment_method?: CreatePaymentIntentRequest.FulfillmentMethod | null;
18
- pickup_date?: CreatePaymentIntentRequest.PickupDate | null;
18
+ pickup_date?: string | null;
19
19
  pickup_time?: string | null;
20
20
  payment_method_id?: string | null;
21
21
  billing_address: CreatePaymentIntentRequest.BillingAddress;
@@ -27,11 +27,6 @@ export declare namespace CreatePaymentIntentRequest {
27
27
  readonly Pickup: "pickup";
28
28
  };
29
29
  type FulfillmentMethod = (typeof FulfillmentMethod)[keyof typeof FulfillmentMethod];
30
- const PickupDate: {
31
- readonly Today: "today";
32
- readonly Tomorrow: "tomorrow";
33
- };
34
- type PickupDate = (typeof PickupDate)[keyof typeof PickupDate];
35
30
  interface BillingAddress {
36
31
  line1: string;
37
32
  city: string;
@@ -5,8 +5,4 @@ export var CreatePaymentIntentRequest;
5
5
  Shipping: "shipping",
6
6
  Pickup: "pickup",
7
7
  };
8
- CreatePaymentIntentRequest.PickupDate = {
9
- Today: "today",
10
- Tomorrow: "tomorrow",
11
- };
12
8
  })(CreatePaymentIntentRequest || (CreatePaymentIntentRequest = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.53";
1
+ export declare const SDK_VERSION = "0.0.54";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.53";
1
+ export const SDK_VERSION = "0.0.54";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",