@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.
Files changed (134) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +13 -8
  4. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +1 -0
  5. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +2 -1
  6. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +15 -23
  7. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +46 -63
  8. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts +2 -3
  9. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/StoreTicketOrderRequest.d.ts +1 -3
  10. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +14 -8
  11. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.ts +1 -1
  12. package/dist/cjs/api/resources/customer/resources/me/client/Client.d.ts +3 -0
  13. package/dist/cjs/api/resources/customer/resources/me/client/Client.js +9 -4
  14. package/dist/cjs/api/resources/customer/resources/me/resources/index.d.ts +3 -0
  15. package/dist/cjs/api/resources/customer/resources/me/resources/index.js +4 -1
  16. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/Client.d.ts +88 -0
  17. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/Client.js +329 -0
  18. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/index.js +17 -0
  20. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.d.ts +9 -0
  21. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.js +3 -0
  22. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.d.ts +9 -0
  23. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.js +3 -0
  24. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.d.ts +10 -0
  25. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.js +3 -0
  26. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.d.ts +3 -0
  27. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.js +2 -0
  28. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.d.ts +2 -0
  29. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/exports.js +21 -0
  30. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/index.js +18 -0
  32. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.d.ts +4 -0
  33. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.js +3 -0
  34. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.d.ts +4 -0
  35. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.js +3 -0
  36. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.d.ts +3 -0
  37. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.js +3 -0
  38. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/index.d.ts +3 -0
  39. package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/index.js +19 -0
  40. package/dist/cjs/api/resources/customerEvents/client/Client.d.ts +29 -0
  41. package/dist/cjs/api/resources/customerEvents/client/Client.js +111 -0
  42. package/dist/cjs/api/resources/customerEvents/client/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/customerEvents/client/index.js +17 -0
  44. package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.ts +11 -0
  45. package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.js +3 -0
  46. package/dist/cjs/api/resources/customerEvents/client/requests/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/customerEvents/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/customerEvents/exports.d.ts +2 -0
  49. package/dist/cjs/api/resources/customerEvents/exports.js +21 -0
  50. package/dist/cjs/api/resources/customerEvents/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/customerEvents/index.js +17 -0
  52. package/dist/cjs/api/resources/index.d.ts +2 -0
  53. package/dist/cjs/api/resources/index.js +3 -1
  54. package/dist/cjs/api/types/BusinessEventOrder.d.ts +2 -10
  55. package/dist/cjs/api/types/BusinessEventOrderDetail.d.ts +2 -12
  56. package/dist/cjs/api/types/BusinessProductOrder.d.ts +1 -9
  57. package/dist/cjs/api/types/CustomerProductOrder.d.ts +1 -5
  58. package/dist/cjs/api/types/PaymentMethod.d.ts +8 -0
  59. package/dist/cjs/api/types/PaymentMethod.js +3 -0
  60. package/dist/cjs/api/types/TicketOrder.d.ts +1 -7
  61. package/dist/cjs/api/types/Transaction.d.ts +16 -0
  62. package/dist/cjs/api/types/Transaction.js +3 -0
  63. package/dist/cjs/api/types/index.d.ts +2 -0
  64. package/dist/cjs/api/types/index.js +2 -0
  65. package/dist/cjs/version.d.ts +1 -1
  66. package/dist/cjs/version.js +1 -1
  67. package/dist/esm/BaseClient.mjs +2 -2
  68. package/dist/esm/Client.d.mts +3 -0
  69. package/dist/esm/Client.mjs +5 -0
  70. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +1 -0
  71. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +2 -1
  72. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +15 -23
  73. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +46 -63
  74. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts +2 -3
  75. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/StoreTicketOrderRequest.d.mts +1 -3
  76. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +14 -8
  77. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.mts +1 -1
  78. package/dist/esm/api/resources/customer/resources/me/client/Client.d.mts +3 -0
  79. package/dist/esm/api/resources/customer/resources/me/client/Client.mjs +5 -0
  80. package/dist/esm/api/resources/customer/resources/me/resources/index.d.mts +3 -0
  81. package/dist/esm/api/resources/customer/resources/me/resources/index.mjs +3 -0
  82. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/Client.d.mts +88 -0
  83. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/Client.mjs +292 -0
  84. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/index.d.mts +1 -0
  85. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/index.mjs +1 -0
  86. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.d.mts +9 -0
  87. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/DeletePaymentMethodsRequest.mjs +2 -0
  88. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.d.mts +9 -0
  89. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/SetDefaultPaymentMethodsRequest.mjs +2 -0
  90. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.d.mts +10 -0
  91. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/StorePaymentMethodRequest.mjs +2 -0
  92. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.d.mts +3 -0
  93. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/requests/index.mjs +1 -0
  94. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/exports.d.mts +2 -0
  95. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/exports.mjs +3 -0
  96. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/index.d.mts +2 -0
  97. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/index.mjs +2 -0
  98. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.d.mts +4 -0
  99. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/AddPaymentMethodsResponse.mjs +2 -0
  100. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.d.mts +4 -0
  101. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetDefaultPaymentMethodsResponse.mjs +2 -0
  102. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.d.mts +3 -0
  103. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/SetupIntentPaymentMethodsResponse.mjs +2 -0
  104. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/index.d.mts +3 -0
  105. package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/index.mjs +3 -0
  106. package/dist/esm/api/resources/customerEvents/client/Client.d.mts +29 -0
  107. package/dist/esm/api/resources/customerEvents/client/Client.mjs +74 -0
  108. package/dist/esm/api/resources/customerEvents/client/index.d.mts +1 -0
  109. package/dist/esm/api/resources/customerEvents/client/index.mjs +1 -0
  110. package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.mts +11 -0
  111. package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.mjs +2 -0
  112. package/dist/esm/api/resources/customerEvents/client/requests/index.d.mts +1 -0
  113. package/dist/esm/api/resources/customerEvents/client/requests/index.mjs +1 -0
  114. package/dist/esm/api/resources/customerEvents/exports.d.mts +2 -0
  115. package/dist/esm/api/resources/customerEvents/exports.mjs +3 -0
  116. package/dist/esm/api/resources/customerEvents/index.d.mts +1 -0
  117. package/dist/esm/api/resources/customerEvents/index.mjs +1 -0
  118. package/dist/esm/api/resources/index.d.mts +2 -0
  119. package/dist/esm/api/resources/index.mjs +2 -0
  120. package/dist/esm/api/types/BusinessEventOrder.d.mts +2 -10
  121. package/dist/esm/api/types/BusinessEventOrderDetail.d.mts +2 -12
  122. package/dist/esm/api/types/BusinessProductOrder.d.mts +1 -9
  123. package/dist/esm/api/types/CustomerProductOrder.d.mts +1 -5
  124. package/dist/esm/api/types/PaymentMethod.d.mts +8 -0
  125. package/dist/esm/api/types/PaymentMethod.mjs +2 -0
  126. package/dist/esm/api/types/TicketOrder.d.mts +1 -7
  127. package/dist/esm/api/types/Transaction.d.mts +16 -0
  128. package/dist/esm/api/types/Transaction.mjs +2 -0
  129. package/dist/esm/api/types/index.d.mts +2 -0
  130. package/dist/esm/api/types/index.mjs +2 -0
  131. package/dist/esm/version.d.mts +1 -1
  132. package/dist/esm/version.mjs +1 -1
  133. package/package.json +23 -1
  134. 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
- total_amount: number;
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
- total_amount: string;
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
  }
@@ -0,0 +1,8 @@
1
+ export interface PaymentMethod {
2
+ id: string;
3
+ brand: string;
4
+ last4: string;
5
+ exp_month: number;
6
+ exp_year: number;
7
+ is_default: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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
- status: string;
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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.47";
1
+ export declare const SDK_VERSION = "0.0.49";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.47";
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.47",
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",