@51eat/sdk 0.0.76 → 0.0.77

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 (190) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/business/client/Client.js +7 -2
  4. package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts +7 -0
  5. package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts +7 -0
  6. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.ts +1 -0
  7. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +7 -0
  8. package/dist/cjs/api/resources/business/resources/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/business/resources/index.js +3 -1
  10. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +26 -9
  11. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +61 -30
  12. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.ts +3 -2
  13. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.ts +3 -2
  14. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +3 -2
  15. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +3 -2
  16. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.ts +3 -2
  17. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.ts +3 -2
  18. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.ts +14 -0
  19. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +1 -1
  20. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +4 -2
  21. package/dist/cjs/api/resources/business/resources/products/client/Client.js +4 -2
  22. package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +3 -1
  23. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +3 -1
  24. package/dist/cjs/api/resources/business/resources/taxCodes/client/Client.d.ts +27 -0
  25. package/dist/cjs/api/resources/business/resources/taxCodes/client/Client.js +111 -0
  26. package/dist/cjs/api/resources/business/resources/taxCodes/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/business/resources/taxCodes/client/index.js +2 -0
  28. package/dist/cjs/api/resources/business/resources/taxCodes/exports.d.ts +2 -0
  29. package/dist/cjs/api/resources/business/resources/taxCodes/exports.js +21 -0
  30. package/dist/cjs/api/resources/business/resources/taxCodes/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/business/resources/taxCodes/index.js +18 -0
  32. package/dist/cjs/api/resources/business/resources/taxCodes/types/ListTaxCodesResponse.d.ts +4 -0
  33. package/dist/cjs/api/resources/business/resources/taxCodes/types/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/business/resources/taxCodes/types/index.js +17 -0
  35. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +98 -8
  36. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +242 -11
  37. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +1 -1
  38. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.ts +1 -1
  39. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ChooseFulfillmentMethodRequest.d.ts +13 -0
  40. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +1 -1
  41. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.ts +1 -1
  42. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +1 -1
  43. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ListShippingOptionsCartRequest.d.ts +10 -0
  44. package/dist/cjs/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.d.ts +12 -0
  45. package/dist/cjs/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.js +3 -0
  46. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.d.ts +12 -0
  47. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.js +3 -0
  48. package/dist/{esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.mts → cjs/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.d.ts} +6 -5
  49. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.js +3 -0
  50. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +5 -2
  51. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +1 -0
  52. package/dist/cjs/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.ts +18 -0
  53. package/dist/cjs/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.js +3 -0
  54. package/dist/cjs/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.ts +18 -0
  55. package/dist/cjs/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.js +10 -0
  56. package/dist/cjs/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.d.ts +4 -0
  57. package/dist/cjs/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.js +3 -0
  58. package/dist/cjs/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.d.ts +4 -0
  59. package/dist/cjs/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.js +3 -0
  60. package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +4 -1
  61. package/dist/cjs/api/resources/customer/resources/cart/types/index.js +4 -1
  62. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +2 -0
  63. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +6 -0
  64. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.d.ts +1 -0
  65. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +7 -0
  66. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +1 -0
  67. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +3 -0
  68. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +1 -0
  69. package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +1 -0
  70. package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +3 -0
  71. package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +10 -0
  72. package/dist/cjs/api/types/BusinessEvent.d.ts +7 -0
  73. package/dist/cjs/api/types/BusinessEventTicketType.d.ts +2 -0
  74. package/dist/cjs/api/types/BusinessProfile.d.ts +1 -1
  75. package/dist/cjs/api/types/CartResource.d.ts +24 -0
  76. package/dist/cjs/api/types/ConflictErrorBody.d.ts +7 -1
  77. package/dist/cjs/api/types/ConflictErrorBody.js +4 -1
  78. package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +1 -1
  79. package/dist/cjs/api/types/FulfillmentType.d.ts +6 -0
  80. package/dist/cjs/api/types/FulfillmentType.js +9 -0
  81. package/dist/cjs/api/types/ProductResource.d.ts +5 -0
  82. package/dist/cjs/api/types/TaxCode.d.ts +21 -0
  83. package/dist/cjs/api/types/TaxCode.js +15 -0
  84. package/dist/cjs/api/types/index.d.ts +2 -0
  85. package/dist/cjs/api/types/index.js +2 -0
  86. package/dist/cjs/version.d.ts +1 -1
  87. package/dist/cjs/version.js +1 -1
  88. package/dist/esm/BaseClient.mjs +2 -2
  89. package/dist/esm/api/resources/business/client/Client.d.mts +3 -0
  90. package/dist/esm/api/resources/business/client/Client.mjs +5 -0
  91. package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +7 -0
  92. package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +7 -0
  93. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +1 -0
  94. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +7 -0
  95. package/dist/esm/api/resources/business/resources/index.d.mts +2 -0
  96. package/dist/esm/api/resources/business/resources/index.mjs +2 -0
  97. package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +26 -9
  98. package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +62 -31
  99. package/dist/esm/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.mts +3 -2
  100. package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +3 -2
  101. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +3 -2
  102. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +3 -2
  103. package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +3 -2
  104. package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.mts +3 -2
  105. package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.mts +14 -0
  106. package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +1 -1
  107. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +4 -2
  108. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +4 -2
  109. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +3 -1
  110. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +3 -1
  111. package/dist/esm/api/resources/business/resources/taxCodes/client/Client.d.mts +27 -0
  112. package/dist/esm/api/resources/business/resources/taxCodes/client/Client.mjs +74 -0
  113. package/dist/esm/api/resources/business/resources/taxCodes/client/index.d.mts +1 -0
  114. package/dist/esm/api/resources/business/resources/taxCodes/client/index.mjs +1 -0
  115. package/dist/esm/api/resources/business/resources/taxCodes/exports.d.mts +2 -0
  116. package/dist/esm/api/resources/business/resources/taxCodes/exports.mjs +3 -0
  117. package/dist/esm/api/resources/business/resources/taxCodes/index.d.mts +2 -0
  118. package/dist/esm/api/resources/business/resources/taxCodes/index.mjs +2 -0
  119. package/dist/esm/api/resources/business/resources/taxCodes/types/ListTaxCodesResponse.d.mts +4 -0
  120. package/dist/esm/api/resources/business/resources/taxCodes/types/index.d.mts +1 -0
  121. package/dist/esm/api/resources/business/resources/taxCodes/types/index.mjs +1 -0
  122. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +98 -8
  123. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +242 -11
  124. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +1 -1
  125. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.mts +1 -1
  126. package/dist/esm/api/resources/customer/resources/cart/client/requests/ChooseFulfillmentMethodRequest.d.mts +13 -0
  127. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +1 -1
  128. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.mts +1 -1
  129. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +1 -1
  130. package/dist/esm/api/resources/customer/resources/cart/client/requests/ListShippingOptionsCartRequest.d.mts +10 -0
  131. package/dist/esm/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.d.mts +12 -0
  132. package/dist/esm/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.mjs +2 -0
  133. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.d.mts +12 -0
  134. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.mjs +2 -0
  135. package/dist/{cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.ts → esm/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.d.mts} +6 -5
  136. package/dist/esm/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.mjs +2 -0
  137. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +5 -2
  138. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +1 -0
  139. package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.mts +18 -0
  140. package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.mjs +2 -0
  141. package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.mts +18 -0
  142. package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.mjs +7 -0
  143. package/dist/esm/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.d.mts +4 -0
  144. package/dist/esm/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.mjs +2 -0
  145. package/dist/esm/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.d.mts +4 -0
  146. package/dist/esm/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.mjs +2 -0
  147. package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +4 -1
  148. package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +4 -1
  149. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +2 -0
  150. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +6 -0
  151. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.d.mts +1 -0
  152. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +7 -0
  153. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +1 -0
  154. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +3 -0
  155. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +1 -0
  156. package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +1 -0
  157. package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +3 -0
  158. package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +10 -0
  159. package/dist/esm/api/types/BusinessEvent.d.mts +7 -0
  160. package/dist/esm/api/types/BusinessEventTicketType.d.mts +2 -0
  161. package/dist/esm/api/types/BusinessProfile.d.mts +1 -1
  162. package/dist/esm/api/types/CartResource.d.mts +24 -0
  163. package/dist/esm/api/types/ConflictErrorBody.d.mts +7 -1
  164. package/dist/esm/api/types/ConflictErrorBody.mjs +4 -1
  165. package/dist/esm/api/types/CustomerBusinessProfile.d.mts +1 -1
  166. package/dist/esm/api/types/FulfillmentType.d.mts +6 -0
  167. package/dist/esm/api/types/FulfillmentType.mjs +6 -0
  168. package/dist/esm/api/types/ProductResource.d.mts +5 -0
  169. package/dist/esm/api/types/TaxCode.d.mts +21 -0
  170. package/dist/esm/api/types/TaxCode.mjs +12 -0
  171. package/dist/esm/api/types/index.d.mts +2 -0
  172. package/dist/esm/api/types/index.mjs +2 -0
  173. package/dist/esm/version.d.mts +1 -1
  174. package/dist/esm/version.mjs +1 -1
  175. package/package.json +12 -1
  176. package/reference.md +377 -16
  177. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundProductOrdersRequest.d.ts +0 -11
  178. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.ts +0 -14
  179. package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +0 -14
  180. package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundProductOrdersRequest.d.mts +0 -11
  181. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.mts +0 -14
  182. package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +0 -14
  183. /package/dist/cjs/api/resources/business/resources/productOrders/client/requests/{RefundProductOrdersRequest.js → RefundOrderRequest.js} +0 -0
  184. /package/dist/cjs/api/resources/{customer/resources/cart/client/requests/GetShippingOptionsCartRequest.js → business/resources/taxCodes/types/ListTaxCodesResponse.js} +0 -0
  185. /package/dist/cjs/api/resources/customer/resources/cart/client/requests/{SelectShippingOptionCartRequest.js → ChooseFulfillmentMethodRequest.js} +0 -0
  186. /package/dist/cjs/api/resources/customer/resources/cart/{types/GetShippingOptionsCartResponse.js → client/requests/ListShippingOptionsCartRequest.js} +0 -0
  187. /package/dist/esm/api/resources/business/resources/productOrders/client/requests/{RefundProductOrdersRequest.mjs → RefundOrderRequest.mjs} +0 -0
  188. /package/dist/esm/api/resources/{customer/resources/cart/client/requests/GetShippingOptionsCartRequest.mjs → business/resources/taxCodes/types/ListTaxCodesResponse.mjs} +0 -0
  189. /package/dist/esm/api/resources/customer/resources/cart/client/requests/{SelectShippingOptionCartRequest.mjs → ChooseFulfillmentMethodRequest.mjs} +0 -0
  190. /package/dist/esm/api/resources/customer/resources/cart/{types/GetShippingOptionsCartResponse.mjs → client/requests/ListShippingOptionsCartRequest.mjs} +0 -0
@@ -1,9 +1,12 @@
1
1
  export type { AddItemCartRequest } from "./AddItemCartRequest.mjs";
2
2
  export type { CheckoutCartRequest } from "./CheckoutCartRequest.mjs";
3
+ export type { ChooseFulfillmentMethodRequest } from "./ChooseFulfillmentMethodRequest.mjs";
3
4
  export type { ClearCartRequest } from "./ClearCartRequest.mjs";
4
5
  export type { CreatePaymentIntentCartRequest } from "./CreatePaymentIntentCartRequest.mjs";
5
6
  export type { GetCartRequest } from "./GetCartRequest.mjs";
6
- export type { GetShippingOptionsCartRequest } from "./GetShippingOptionsCartRequest.mjs";
7
+ export type { ListShippingOptionsCartRequest } from "./ListShippingOptionsCartRequest.mjs";
8
+ export type { RefreshCartPaymentRequest } from "./RefreshCartPaymentRequest.mjs";
7
9
  export type { RemoveItemCartRequest } from "./RemoveItemCartRequest.mjs";
8
- export type { SelectShippingOptionCartRequest } from "./SelectShippingOptionCartRequest.mjs";
10
+ export type { SelectShippingRateRequest } from "./SelectShippingRateRequest.mjs";
11
+ export type { ShippingAddressRequest } from "./ShippingAddressRequest.mjs";
9
12
  export type { UpdateItemCartRequest } from "./UpdateItemCartRequest.mjs";
@@ -3,6 +3,7 @@ export interface CreatePaymentIntentCartResponse {
3
3
  payment_intent_id: string;
4
4
  subtotal: number;
5
5
  tax_amount: number;
6
+ shipping_amount: number;
6
7
  platform_fee: number;
7
8
  total_amount: number;
8
9
  amount: number;
@@ -0,0 +1,18 @@
1
+ export interface ListShippingOptionsCartResponse {
2
+ options: ListShippingOptionsCartResponse.Options.Item[];
3
+ }
4
+ export declare namespace ListShippingOptionsCartResponse {
5
+ type Options = Options.Item[];
6
+ namespace Options {
7
+ interface Item {
8
+ provider_rate_id: string;
9
+ carrier: string;
10
+ service: string;
11
+ amount: number;
12
+ amount_cents: number;
13
+ currency: string;
14
+ carrier_delivery_days: number | null;
15
+ estimated_delivery_date: string | null;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,18 @@
1
+ export interface RefreshPaymentIntentCartResponse {
2
+ total_changed: boolean;
3
+ client_secret: string;
4
+ payment_intent_id: string;
5
+ subtotal: number;
6
+ tax_amount: number;
7
+ shipping_amount: number;
8
+ platform_fee: number;
9
+ total_amount: number;
10
+ amount: number;
11
+ currency: RefreshPaymentIntentCartResponse.Currency;
12
+ }
13
+ export declare namespace RefreshPaymentIntentCartResponse {
14
+ const Currency: {
15
+ readonly Usd: "usd";
16
+ };
17
+ type Currency = (typeof Currency)[keyof typeof Currency];
18
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var RefreshPaymentIntentCartResponse;
3
+ (function (RefreshPaymentIntentCartResponse) {
4
+ RefreshPaymentIntentCartResponse.Currency = {
5
+ Usd: "usd",
6
+ };
7
+ })(RefreshPaymentIntentCartResponse || (RefreshPaymentIntentCartResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface SetFulfillmentCartResponse {
3
+ data: FiveOneEat.CartResource;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface SetShippingAddressCartResponse {
3
+ data: FiveOneEat.CartResource;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,7 +2,10 @@ export * from "./AddItemCartResponse.mjs";
2
2
  export * from "./CheckoutCartResponse.mjs";
3
3
  export * from "./CreatePaymentIntentCartResponse.mjs";
4
4
  export * from "./GetCartResponse.mjs";
5
- export * from "./GetShippingOptionsCartResponse.mjs";
5
+ export * from "./ListShippingOptionsCartResponse.mjs";
6
+ export * from "./RefreshPaymentIntentCartResponse.mjs";
6
7
  export * from "./RemoveItemCartResponse.mjs";
7
8
  export * from "./SelectShippingOptionCartResponse.mjs";
9
+ export * from "./SetFulfillmentCartResponse.mjs";
10
+ export * from "./SetShippingAddressCartResponse.mjs";
8
11
  export * from "./UpdateItemCartResponse.mjs";
@@ -2,7 +2,10 @@ export * from "./AddItemCartResponse.mjs";
2
2
  export * from "./CheckoutCartResponse.mjs";
3
3
  export * from "./CreatePaymentIntentCartResponse.mjs";
4
4
  export * from "./GetCartResponse.mjs";
5
- export * from "./GetShippingOptionsCartResponse.mjs";
5
+ export * from "./ListShippingOptionsCartResponse.mjs";
6
+ export * from "./RefreshPaymentIntentCartResponse.mjs";
6
7
  export * from "./RemoveItemCartResponse.mjs";
7
8
  export * from "./SelectShippingOptionCartResponse.mjs";
9
+ export * from "./SetFulfillmentCartResponse.mjs";
10
+ export * from "./SetShippingAddressCartResponse.mjs";
8
11
  export * from "./UpdateItemCartResponse.mjs";
@@ -76,6 +76,8 @@ export declare class TicketingClient {
76
76
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
78
78
  * @throws {@link FiveOneEat.UnauthorizedError}
79
+ * @throws {@link FiveOneEat.ForbiddenError}
80
+ * @throws {@link FiveOneEat.ConflictError}
79
81
  * @throws {@link FiveOneEat.UnprocessableEntityError}
80
82
  *
81
83
  * @example
@@ -224,6 +224,8 @@ export class TicketingClient {
224
224
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
225
225
  *
226
226
  * @throws {@link FiveOneEat.UnauthorizedError}
227
+ * @throws {@link FiveOneEat.ForbiddenError}
228
+ * @throws {@link FiveOneEat.ConflictError}
227
229
  * @throws {@link FiveOneEat.UnprocessableEntityError}
228
230
  *
229
231
  * @example
@@ -271,6 +273,10 @@ export class TicketingClient {
271
273
  switch (_response.error.statusCode) {
272
274
  case 401:
273
275
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
276
+ case 403:
277
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
278
+ case 409:
279
+ throw new FiveOneEat.ConflictError(_response.error.body, _response.rawResponse);
274
280
  case 422:
275
281
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
276
282
  default:
@@ -18,6 +18,7 @@ export interface CreatePaymentIntentRequest {
18
18
  export declare namespace CreatePaymentIntentRequest {
19
19
  interface BillingAddress {
20
20
  line1: string;
21
+ line2?: (string | null) | undefined;
21
22
  city: string;
22
23
  state: string;
23
24
  postal_code: string;
@@ -9,6 +9,13 @@ export interface CreatePaymentIntentTicketingResponse {
9
9
  shipping_method: unknown | null;
10
10
  platform_fee: number;
11
11
  total_amount: number;
12
+ total_cents: number;
13
+ /**
14
+ * The stored intent as it stood before this call, so a caller can
15
+ * tell whether the price the buyer is about to pay just moved.
16
+ */
17
+ previous_payment_intent_id: string | null;
18
+ previous_amount_cents: string | null;
12
19
  }
13
20
  export declare namespace CreatePaymentIntentTicketingResponse {
14
21
  interface TaxCalculation {
@@ -26,6 +26,7 @@ export declare class ProductOrdersClient {
26
26
  *
27
27
  * @throws {@link FiveOneEat.UnauthorizedError}
28
28
  * @throws {@link FiveOneEat.ForbiddenError}
29
+ * @throws {@link FiveOneEat.NotFoundError}
29
30
  *
30
31
  * @example
31
32
  * await client.customer.productOrders.get({
@@ -73,6 +73,7 @@ export class ProductOrdersClient {
73
73
  *
74
74
  * @throws {@link FiveOneEat.UnauthorizedError}
75
75
  * @throws {@link FiveOneEat.ForbiddenError}
76
+ * @throws {@link FiveOneEat.NotFoundError}
76
77
  *
77
78
  * @example
78
79
  * await client.customer.productOrders.get({
@@ -111,6 +112,8 @@ export class ProductOrdersClient {
111
112
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
112
113
  case 403:
113
114
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
115
+ case 404:
116
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
114
117
  default:
115
118
  throw new errors.FiveOneEatError({
116
119
  statusCode: _response.error.statusCode,
@@ -5,5 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface GetProductOrdersRequest {
8
+ /** The product order ID */
8
9
  productOrder: string;
9
10
  }
@@ -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.UnprocessableEntityError}
35
36
  *
36
37
  * @example
37
38
  * await client.customer.stands.createPaymentIntent({
@@ -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.UnprocessableEntityError}
82
83
  *
83
84
  * @example
84
85
  * await client.customer.stands.createPaymentIntent({
@@ -117,6 +118,8 @@ export class StandsClient {
117
118
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
118
119
  case 404:
119
120
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
121
+ case 422:
122
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
120
123
  default:
121
124
  throw new errors.FiveOneEatError({
122
125
  statusCode: _response.error.statusCode,
@@ -6,6 +6,16 @@ export interface AppHttpResourcesApiV1BusinessCommerceProductResource {
6
6
  description: string;
7
7
  is_active: boolean;
8
8
  published_at: string;
9
+ /**
10
+ * Owner-only: never eager-loaded by the guest-facing
11
+ * `Api\V1\Customer\Shop\ShopController`, which shares this
12
+ * resource. Mirrors how `variants`/`default_variant` are already
13
+ * scoped to whichever relations the calling controller loaded. Gated on `relationLoaded()` rather than `whenLoaded()`'s value
14
+ * form: the latter also hides the field when the loaded relation
15
+ * itself resolves to null (e.g. a tax code no longer in the
16
+ * catalog), which would hide a real, owner-visible column value.
17
+ */
18
+ tax_code?: string | undefined;
9
19
  variants?: FiveOneEat.VariantResource[] | undefined;
10
20
  default_variant?: FiveOneEat.VariantResource | undefined;
11
21
  created_at: string;
@@ -7,6 +7,13 @@ export interface BusinessEvent {
7
7
  starts_at: string;
8
8
  ends_at: string;
9
9
  location: string;
10
+ venue_address: string;
11
+ venue_city: string;
12
+ venue_state: string;
13
+ venue_zipcode: string;
14
+ venue_country: string;
15
+ latitude: number | null;
16
+ longitude: number | null;
10
17
  is_all_day: string;
11
18
  is_featured: string;
12
19
  ticket_sales_enabled: string;
@@ -4,6 +4,8 @@ export interface BusinessEventTicketType {
4
4
  name: string;
5
5
  description: string;
6
6
  price: string;
7
+ /** Stripe tax code (txcd_…); one of EventTaxCodes::ALLOWED. Null for free tiers. */
8
+ tax_code: string | null;
7
9
  quantity_available: string;
8
10
  quantity_sold: string;
9
11
  remaining_quantity: string;
@@ -41,7 +41,7 @@ export interface BusinessProfile {
41
41
  }
42
42
  export declare namespace BusinessProfile {
43
43
  interface Hours {
44
- is_open_now: string;
44
+ is_open_now: boolean;
45
45
  next_open_at: string | null;
46
46
  schedule: FiveOneEat.BusinessScheduleDayResource[];
47
47
  exceptions: FiveOneEat.BusinessHourExceptionResource[];
@@ -4,6 +4,8 @@ export interface CartResource {
4
4
  subtotal_cents: number;
5
5
  subtotal: number;
6
6
  item_count: number;
7
+ /** How the order will be fulfilled and what checkout still needs. */
8
+ fulfillment: CartResource.Fulfillment;
7
9
  }
8
10
  export declare namespace CartResource {
9
11
  type Items = Items.Item[];
@@ -18,4 +20,26 @@ export declare namespace CartResource {
18
20
  total_cents: number;
19
21
  }
20
22
  }
23
+ /**
24
+ * How the order will be fulfilled and what checkout still needs.
25
+ */
26
+ interface Fulfillment {
27
+ offered_methods: string[];
28
+ method: string | null;
29
+ shipping_address: Fulfillment.ShippingAddress | null;
30
+ requires_rate_selection: boolean;
31
+ selected_shipping_rate_id: string | null;
32
+ selected_shipping_amount_cents: number | null;
33
+ checkout_blocker: string | null;
34
+ }
35
+ namespace Fulfillment {
36
+ interface ShippingAddress {
37
+ line1: string;
38
+ line2: string | null;
39
+ city: string;
40
+ state: string;
41
+ postal_code: string;
42
+ country: string;
43
+ }
44
+ }
21
45
  }
@@ -1,9 +1,15 @@
1
1
  export interface ConflictErrorBody {
2
+ status: ConflictErrorBody.Status;
2
3
  message: ConflictErrorBody.Message;
4
+ payment_intent_id: string;
3
5
  }
4
6
  export declare namespace ConflictErrorBody {
7
+ const Status: {
8
+ readonly Paid: "paid";
9
+ };
10
+ type Status = (typeof Status)[keyof typeof Status];
5
11
  const Message: {
6
- readonly BusinessIsAlreadyFavorited: "Business is already favorited.";
12
+ readonly YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets — they'll arrive by email shortly.";
7
13
  };
8
14
  type Message = (typeof Message)[keyof typeof Message];
9
15
  }
@@ -1,7 +1,10 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export var ConflictErrorBody;
3
3
  (function (ConflictErrorBody) {
4
+ ConflictErrorBody.Status = {
5
+ Paid: "paid",
6
+ };
4
7
  ConflictErrorBody.Message = {
5
- BusinessIsAlreadyFavorited: "Business is already favorited.",
8
+ YouveAlreadyPaidForTheseTicketsTheyllArriveByEmailShortly: "You've already paid for these tickets \u2014 they'll arrive by email shortly.",
6
9
  };
7
10
  })(ConflictErrorBody || (ConflictErrorBody = {}));
@@ -38,7 +38,7 @@ export interface CustomerBusinessProfile {
38
38
  }
39
39
  export declare namespace CustomerBusinessProfile {
40
40
  interface Hours {
41
- is_open_now: string;
41
+ is_open_now: boolean;
42
42
  next_open_at: string | null;
43
43
  schedule: FiveOneEat.BusinessScheduleDayResource[];
44
44
  exceptions: FiveOneEat.BusinessHourExceptionResource[];
@@ -0,0 +1,6 @@
1
+ export declare const FulfillmentType: {
2
+ readonly Ship: "ship";
3
+ readonly Pickup: "pickup";
4
+ readonly InPerson: "in_person";
5
+ };
6
+ export type FulfillmentType = (typeof FulfillmentType)[keyof typeof FulfillmentType];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const FulfillmentType = {
3
+ Ship: "ship",
4
+ Pickup: "pickup",
5
+ InPerson: "in_person",
6
+ };
@@ -7,6 +7,11 @@ export interface ProductResource {
7
7
  published_at: string | null;
8
8
  metadata: Record<string, unknown> | null;
9
9
  product_category_id: string | null;
10
+ /**
11
+ * Owner-only: shared with the customer stand shop, so it appears only
12
+ * when the business controller loaded the `taxCode` relation.
13
+ */
14
+ tax_code?: (string | null) | undefined;
10
15
  category?: unknown[] | undefined;
11
16
  images?: unknown[] | undefined;
12
17
  variants?: unknown[] | undefined;
@@ -0,0 +1,21 @@
1
+ export interface TaxCode {
2
+ id: string;
3
+ name: string;
4
+ description: string | null;
5
+ category: TaxCode.Category;
6
+ /** Whether a product may use this code. */
7
+ allowed_on_products: boolean;
8
+ /** Whether an event ticket type may use this code. */
9
+ allowed_on_ticket_types: boolean;
10
+ }
11
+ export declare namespace TaxCode {
12
+ const Category: {
13
+ readonly Food: "food";
14
+ readonly Goods: "goods";
15
+ readonly Services: "services";
16
+ readonly Digital: "digital";
17
+ readonly Admissions: "admissions";
18
+ readonly Other: "other";
19
+ };
20
+ type Category = (typeof Category)[keyof typeof Category];
21
+ }
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var TaxCode;
3
+ (function (TaxCode) {
4
+ TaxCode.Category = {
5
+ Food: "food",
6
+ Goods: "goods",
7
+ Services: "services",
8
+ Digital: "digital",
9
+ Admissions: "admissions",
10
+ Other: "other",
11
+ };
12
+ })(TaxCode || (TaxCode = {}));
@@ -122,6 +122,7 @@ export * from "./ExploreTemporaryLocation.mjs";
122
122
  export * from "./FavoriteFacets.mjs";
123
123
  export * from "./FavoriteResponse.mjs";
124
124
  export * from "./ForbiddenErrorBody.mjs";
125
+ export * from "./FulfillmentType.mjs";
125
126
  export * from "./InternalServerErrorBody.mjs";
126
127
  export * from "./InventoryLevelResource.mjs";
127
128
  export * from "./MenuItemSearchResult.mjs";
@@ -143,6 +144,7 @@ export * from "./SearchResults.mjs";
143
144
  export * from "./ShippingAccountResource.mjs";
144
145
  export * from "./StandShop.mjs";
145
146
  export * from "./StoreAddressRequest.mjs";
147
+ export * from "./TaxCode.mjs";
146
148
  export * from "./Ticket.mjs";
147
149
  export * from "./TicketOrder.mjs";
148
150
  export * from "./TicketOrderResponse.mjs";
@@ -122,6 +122,7 @@ export * from "./ExploreTemporaryLocation.mjs";
122
122
  export * from "./FavoriteFacets.mjs";
123
123
  export * from "./FavoriteResponse.mjs";
124
124
  export * from "./ForbiddenErrorBody.mjs";
125
+ export * from "./FulfillmentType.mjs";
125
126
  export * from "./InternalServerErrorBody.mjs";
126
127
  export * from "./InventoryLevelResource.mjs";
127
128
  export * from "./MenuItemSearchResult.mjs";
@@ -143,6 +144,7 @@ export * from "./SearchResults.mjs";
143
144
  export * from "./ShippingAccountResource.mjs";
144
145
  export * from "./StandShop.mjs";
145
146
  export * from "./StoreAddressRequest.mjs";
147
+ export * from "./TaxCode.mjs";
146
148
  export * from "./Ticket.mjs";
147
149
  export * from "./TicketOrder.mjs";
148
150
  export * from "./TicketOrderResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.76";
1
+ export declare const SDK_VERSION = "0.0.77";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.76";
1
+ export const SDK_VERSION = "0.0.77";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -143,6 +143,17 @@
143
143
  },
144
144
  "default": "./dist/cjs/api/resources/business/resources/products/exports.js"
145
145
  },
146
+ "./business/taxCodes": {
147
+ "import": {
148
+ "types": "./dist/esm/api/resources/business/resources/taxCodes/exports.d.mts",
149
+ "default": "./dist/esm/api/resources/business/resources/taxCodes/exports.mjs"
150
+ },
151
+ "require": {
152
+ "types": "./dist/cjs/api/resources/business/resources/taxCodes/exports.d.ts",
153
+ "default": "./dist/cjs/api/resources/business/resources/taxCodes/exports.js"
154
+ },
155
+ "default": "./dist/cjs/api/resources/business/resources/taxCodes/exports.js"
156
+ },
146
157
  "./business/events": {
147
158
  "import": {
148
159
  "types": "./dist/esm/api/resources/business/resources/events/exports.d.mts",