@51eat/sdk 0.0.76 → 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.
Files changed (200) 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/profile/client/requests/UpdateBusinessProfileRequest.d.ts +9 -0
  25. package/dist/cjs/api/resources/business/resources/taxCodes/client/Client.d.ts +27 -0
  26. package/dist/cjs/api/resources/business/resources/taxCodes/client/Client.js +111 -0
  27. package/dist/cjs/api/resources/business/resources/taxCodes/client/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/business/resources/taxCodes/client/index.js +2 -0
  29. package/dist/cjs/api/resources/business/resources/taxCodes/exports.d.ts +2 -0
  30. package/dist/cjs/api/resources/business/resources/taxCodes/exports.js +21 -0
  31. package/dist/cjs/api/resources/business/resources/taxCodes/index.d.ts +2 -0
  32. package/dist/cjs/api/resources/business/resources/taxCodes/index.js +18 -0
  33. package/dist/cjs/api/resources/business/resources/taxCodes/types/ListTaxCodesResponse.d.ts +4 -0
  34. package/dist/cjs/api/resources/business/resources/taxCodes/types/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/business/resources/taxCodes/types/index.js +17 -0
  36. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +99 -8
  37. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +243 -11
  38. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +1 -1
  39. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.ts +1 -1
  40. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ChooseFulfillmentMethodRequest.d.ts +13 -0
  41. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +1 -1
  42. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.ts +1 -1
  43. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ListShippingOptionsCartRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.d.ts +12 -0
  46. package/dist/cjs/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.js +3 -0
  47. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.d.ts +12 -0
  48. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.js +3 -0
  49. 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
  50. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.js +3 -0
  51. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +5 -2
  52. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +1 -0
  53. package/dist/cjs/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.ts +18 -0
  54. package/dist/cjs/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.js +3 -0
  55. package/dist/cjs/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.ts +18 -0
  56. package/dist/cjs/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.js +10 -0
  57. package/dist/cjs/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.d.ts +4 -0
  58. package/dist/cjs/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.js +3 -0
  59. package/dist/cjs/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.d.ts +4 -0
  60. package/dist/cjs/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.js +3 -0
  61. package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +4 -1
  62. package/dist/cjs/api/resources/customer/resources/cart/types/index.js +4 -1
  63. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +6 -0
  64. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +10 -0
  65. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.d.ts +1 -0
  66. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +12 -0
  67. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +1 -0
  68. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +3 -0
  69. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +1 -0
  70. package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +3 -0
  71. package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +9 -0
  72. package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +10 -0
  73. package/dist/cjs/api/types/BusinessEvent.d.ts +7 -0
  74. package/dist/cjs/api/types/BusinessEventTicketType.d.ts +2 -0
  75. package/dist/cjs/api/types/BusinessProfile.d.ts +6 -1
  76. package/dist/cjs/api/types/CartResource.d.ts +24 -0
  77. package/dist/cjs/api/types/ConflictErrorBody.d.ts +2 -7
  78. package/dist/cjs/api/types/ConflictErrorBody.js +0 -7
  79. package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +1 -1
  80. package/dist/cjs/api/types/CustomerEvent.d.ts +6 -0
  81. package/dist/cjs/api/types/CustomerEventDetail.d.ts +6 -0
  82. package/dist/cjs/api/types/EventFeedItem.d.ts +6 -0
  83. package/dist/cjs/api/types/FulfillmentType.d.ts +6 -0
  84. package/dist/cjs/api/types/FulfillmentType.js +9 -0
  85. package/dist/cjs/api/types/ProductResource.d.ts +5 -0
  86. package/dist/cjs/api/types/TaxCode.d.ts +21 -0
  87. package/dist/cjs/api/types/TaxCode.js +15 -0
  88. package/dist/cjs/api/types/TicketOrder.d.ts +7 -1
  89. package/dist/cjs/api/types/index.d.ts +2 -0
  90. package/dist/cjs/api/types/index.js +2 -0
  91. package/dist/cjs/version.d.ts +1 -1
  92. package/dist/cjs/version.js +1 -1
  93. package/dist/esm/BaseClient.mjs +2 -2
  94. package/dist/esm/api/resources/business/client/Client.d.mts +3 -0
  95. package/dist/esm/api/resources/business/client/Client.mjs +5 -0
  96. package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +7 -0
  97. package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +7 -0
  98. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +1 -0
  99. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +7 -0
  100. package/dist/esm/api/resources/business/resources/index.d.mts +2 -0
  101. package/dist/esm/api/resources/business/resources/index.mjs +2 -0
  102. package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +26 -9
  103. package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +62 -31
  104. package/dist/esm/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.mts +3 -2
  105. package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +3 -2
  106. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +3 -2
  107. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +3 -2
  108. package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +3 -2
  109. package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.mts +3 -2
  110. package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.mts +14 -0
  111. package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +1 -1
  112. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +4 -2
  113. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +4 -2
  114. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +3 -1
  115. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +3 -1
  116. package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.mts +9 -0
  117. package/dist/esm/api/resources/business/resources/taxCodes/client/Client.d.mts +27 -0
  118. package/dist/esm/api/resources/business/resources/taxCodes/client/Client.mjs +74 -0
  119. package/dist/esm/api/resources/business/resources/taxCodes/client/index.d.mts +1 -0
  120. package/dist/esm/api/resources/business/resources/taxCodes/client/index.mjs +1 -0
  121. package/dist/esm/api/resources/business/resources/taxCodes/exports.d.mts +2 -0
  122. package/dist/esm/api/resources/business/resources/taxCodes/exports.mjs +3 -0
  123. package/dist/esm/api/resources/business/resources/taxCodes/index.d.mts +2 -0
  124. package/dist/esm/api/resources/business/resources/taxCodes/index.mjs +2 -0
  125. package/dist/esm/api/resources/business/resources/taxCodes/types/ListTaxCodesResponse.d.mts +4 -0
  126. package/dist/esm/api/resources/business/resources/taxCodes/types/index.d.mts +1 -0
  127. package/dist/esm/api/resources/business/resources/taxCodes/types/index.mjs +1 -0
  128. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +99 -8
  129. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +243 -11
  130. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +1 -1
  131. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.mts +1 -1
  132. package/dist/esm/api/resources/customer/resources/cart/client/requests/ChooseFulfillmentMethodRequest.d.mts +13 -0
  133. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +1 -1
  134. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.mts +1 -1
  135. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +1 -1
  136. package/dist/esm/api/resources/customer/resources/cart/client/requests/ListShippingOptionsCartRequest.d.mts +10 -0
  137. package/dist/esm/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.d.mts +12 -0
  138. package/dist/esm/api/resources/customer/resources/cart/client/requests/RefreshCartPaymentRequest.mjs +2 -0
  139. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.d.mts +12 -0
  140. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingRateRequest.mjs +2 -0
  141. 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
  142. package/dist/esm/api/resources/customer/resources/cart/client/requests/ShippingAddressRequest.mjs +2 -0
  143. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +5 -2
  144. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +1 -0
  145. package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.d.mts +18 -0
  146. package/dist/esm/api/resources/customer/resources/cart/types/ListShippingOptionsCartResponse.mjs +2 -0
  147. package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.d.mts +18 -0
  148. package/dist/esm/api/resources/customer/resources/cart/types/RefreshPaymentIntentCartResponse.mjs +7 -0
  149. package/dist/esm/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.d.mts +4 -0
  150. package/dist/esm/api/resources/customer/resources/cart/types/SetFulfillmentCartResponse.mjs +2 -0
  151. package/dist/esm/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.d.mts +4 -0
  152. package/dist/esm/api/resources/customer/resources/cart/types/SetShippingAddressCartResponse.mjs +2 -0
  153. package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +4 -1
  154. package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +4 -1
  155. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +6 -0
  156. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +10 -0
  157. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.d.mts +1 -0
  158. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +12 -0
  159. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +1 -0
  160. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +3 -0
  161. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +1 -0
  162. package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +3 -0
  163. package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +9 -0
  164. package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +10 -0
  165. package/dist/esm/api/types/BusinessEvent.d.mts +7 -0
  166. package/dist/esm/api/types/BusinessEventTicketType.d.mts +2 -0
  167. package/dist/esm/api/types/BusinessProfile.d.mts +6 -1
  168. package/dist/esm/api/types/CartResource.d.mts +24 -0
  169. package/dist/esm/api/types/ConflictErrorBody.d.mts +2 -7
  170. package/dist/esm/api/types/ConflictErrorBody.mjs +1 -6
  171. package/dist/esm/api/types/CustomerBusinessProfile.d.mts +1 -1
  172. package/dist/esm/api/types/CustomerEvent.d.mts +6 -0
  173. package/dist/esm/api/types/CustomerEventDetail.d.mts +6 -0
  174. package/dist/esm/api/types/EventFeedItem.d.mts +6 -0
  175. package/dist/esm/api/types/FulfillmentType.d.mts +6 -0
  176. package/dist/esm/api/types/FulfillmentType.mjs +6 -0
  177. package/dist/esm/api/types/ProductResource.d.mts +5 -0
  178. package/dist/esm/api/types/TaxCode.d.mts +21 -0
  179. package/dist/esm/api/types/TaxCode.mjs +12 -0
  180. package/dist/esm/api/types/TicketOrder.d.mts +7 -1
  181. package/dist/esm/api/types/index.d.mts +2 -0
  182. package/dist/esm/api/types/index.mjs +2 -0
  183. package/dist/esm/version.d.mts +1 -1
  184. package/dist/esm/version.mjs +1 -1
  185. package/package.json +12 -1
  186. package/reference.md +382 -16
  187. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundProductOrdersRequest.d.ts +0 -11
  188. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.ts +0 -14
  189. package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +0 -14
  190. package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundProductOrdersRequest.d.mts +0 -11
  191. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.mts +0 -14
  192. package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +0 -14
  193. /package/dist/cjs/api/resources/business/resources/productOrders/client/requests/{RefundProductOrdersRequest.js → RefundOrderRequest.js} +0 -0
  194. /package/dist/cjs/api/resources/{customer/resources/cart/client/requests/GetShippingOptionsCartRequest.js → business/resources/taxCodes/types/ListTaxCodesResponse.js} +0 -0
  195. /package/dist/cjs/api/resources/customer/resources/cart/client/requests/{SelectShippingOptionCartRequest.js → ChooseFulfillmentMethodRequest.js} +0 -0
  196. /package/dist/cjs/api/resources/customer/resources/cart/{types/GetShippingOptionsCartResponse.js → client/requests/ListShippingOptionsCartRequest.js} +0 -0
  197. /package/dist/esm/api/resources/business/resources/productOrders/client/requests/{RefundProductOrdersRequest.mjs → RefundOrderRequest.mjs} +0 -0
  198. /package/dist/esm/api/resources/{customer/resources/cart/client/requests/GetShippingOptionsCartRequest.mjs → business/resources/taxCodes/types/ListTaxCodesResponse.mjs} +0 -0
  199. /package/dist/esm/api/resources/customer/resources/cart/client/requests/{SelectShippingOptionCartRequest.mjs → ChooseFulfillmentMethodRequest.mjs} +0 -0
  200. /package/dist/esm/api/resources/customer/resources/cart/{types/GetShippingOptionsCartResponse.mjs → client/requests/ListShippingOptionsCartRequest.mjs} +0 -0
@@ -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 = {}));
@@ -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 {
@@ -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.78";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.76";
1
+ export const SDK_VERSION = "0.0.78";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
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",
package/reference.md CHANGED
@@ -1750,7 +1750,7 @@ await client.business.productOrders.list();
1750
1750
 
1751
1751
  ```typescript
1752
1752
  await client.business.productOrders.get({
1753
- productOrder: "productOrder"
1753
+ order: "order"
1754
1754
  });
1755
1755
 
1756
1756
  ```
@@ -1801,7 +1801,7 @@ await client.business.productOrders.get({
1801
1801
 
1802
1802
  ```typescript
1803
1803
  await client.business.productOrders.fulfill({
1804
- productOrder: "productOrder"
1804
+ order: "order"
1805
1805
  });
1806
1806
 
1807
1807
  ```
@@ -1852,7 +1852,7 @@ await client.business.productOrders.fulfill({
1852
1852
 
1853
1853
  ```typescript
1854
1854
  await client.business.productOrders.markPickedUp({
1855
- productOrder: "productOrder"
1855
+ order: "order"
1856
1856
  });
1857
1857
 
1858
1858
  ```
@@ -1903,7 +1903,7 @@ await client.business.productOrders.markPickedUp({
1903
1903
 
1904
1904
  ```typescript
1905
1905
  await client.business.productOrders.addTracking({
1906
- productOrder: "productOrder",
1906
+ order: "order",
1907
1907
  carrier: "carrier",
1908
1908
  tracking_number: "tracking_number"
1909
1909
  });
@@ -1946,6 +1946,28 @@ await client.business.productOrders.addTracking({
1946
1946
  <dl>
1947
1947
  <dd>
1948
1948
 
1949
+ #### 📝 Description
1950
+
1951
+ <dl>
1952
+ <dd>
1953
+
1954
+ <dl>
1955
+ <dd>
1956
+
1957
+ Refunds `amount` (dollars) of the order, or everything still refundable
1958
+ when `amount` is omitted, through Stripe. Sales tax on the refunded part
1959
+ is reversed automatically.
1960
+
1961
+ Send an `Idempotency-Key` header (1–255 characters, unique per refund you
1962
+ mean to make) to make retries safe: a repeat with the same key returns
1963
+ the order with the refund already made, with 200, instead of refunding
1964
+ again — even when nothing is left to refund. Without it, a retry after a
1965
+ lost response may refund twice.
1966
+ </dd>
1967
+ </dl>
1968
+ </dd>
1969
+ </dl>
1970
+
1949
1971
  #### 🔌 Usage
1950
1972
 
1951
1973
  <dl>
@@ -1956,7 +1978,7 @@ await client.business.productOrders.addTracking({
1956
1978
 
1957
1979
  ```typescript
1958
1980
  await client.business.productOrders.refund({
1959
- productOrder: "productOrder"
1981
+ order: "order"
1960
1982
  });
1961
1983
 
1962
1984
  ```
@@ -1973,7 +1995,7 @@ await client.business.productOrders.refund({
1973
1995
  <dl>
1974
1996
  <dd>
1975
1997
 
1976
- **request:** `FiveOneEat.business.RefundProductOrdersRequest`
1998
+ **request:** `FiveOneEat.business.RefundOrderRequest`
1977
1999
 
1978
2000
  </dd>
1979
2001
  </dl>
@@ -2007,7 +2029,7 @@ await client.business.productOrders.refund({
2007
2029
 
2008
2030
  ```typescript
2009
2031
  await client.business.productOrders.getLabelRates({
2010
- productOrder: "productOrder"
2032
+ order: "order"
2011
2033
  });
2012
2034
 
2013
2035
  ```
@@ -2058,7 +2080,7 @@ await client.business.productOrders.getLabelRates({
2058
2080
 
2059
2081
  ```typescript
2060
2082
  await client.business.productOrders.purchaseLabel({
2061
- productOrder: "productOrder",
2083
+ order: "order",
2062
2084
  provider_rate_id: "provider_rate_id"
2063
2085
  });
2064
2086
 
@@ -2296,7 +2318,8 @@ await client.business.products.list();
2296
2318
 
2297
2319
  ```typescript
2298
2320
  await client.business.products.create({
2299
- name: "name"
2321
+ name: "name",
2322
+ tax_code: "tax_code"
2300
2323
  });
2301
2324
 
2302
2325
  ```
@@ -2399,7 +2422,8 @@ await client.business.products.get({
2399
2422
  ```typescript
2400
2423
  await client.business.products.update({
2401
2424
  product: "product",
2402
- name: "name"
2425
+ name: "name",
2426
+ tax_code: "tax_code"
2403
2427
  });
2404
2428
 
2405
2429
  ```
@@ -2483,6 +2507,64 @@ await client.business.products.delete({
2483
2507
  </dl>
2484
2508
 
2485
2509
 
2510
+ </dd>
2511
+ </dl>
2512
+ </details>
2513
+
2514
+ ## Business TaxCodes
2515
+ <details><summary><code>client.business.taxCodes.<a href="/src/api/resources/business/resources/taxCodes/client/Client.ts">list</a>() -> FiveOneEat.ListTaxCodesResponse</code></summary>
2516
+ <dl>
2517
+ <dd>
2518
+
2519
+ #### 📝 Description
2520
+
2521
+ <dl>
2522
+ <dd>
2523
+
2524
+ <dl>
2525
+ <dd>
2526
+
2527
+ Stripe's full product tax code catalog. A product's `tax_code` must be
2528
+ one where `allowed_on_products` is true; a paid ticket type's must be
2529
+ one where `allowed_on_ticket_types` is true.
2530
+ </dd>
2531
+ </dl>
2532
+ </dd>
2533
+ </dl>
2534
+
2535
+ #### 🔌 Usage
2536
+
2537
+ <dl>
2538
+ <dd>
2539
+
2540
+ <dl>
2541
+ <dd>
2542
+
2543
+ ```typescript
2544
+ await client.business.taxCodes.list();
2545
+
2546
+ ```
2547
+ </dd>
2548
+ </dl>
2549
+ </dd>
2550
+ </dl>
2551
+
2552
+ #### ⚙️ Parameters
2553
+
2554
+ <dl>
2555
+ <dd>
2556
+
2557
+ <dl>
2558
+ <dd>
2559
+
2560
+ **requestOptions:** `TaxCodesClient.RequestOptions`
2561
+
2562
+ </dd>
2563
+ </dl>
2564
+ </dd>
2565
+ </dl>
2566
+
2567
+
2486
2568
  </dd>
2487
2569
  </dl>
2488
2570
  </details>
@@ -10996,6 +11078,28 @@ await client.customer.cart.removeItem({
10996
11078
  <dl>
10997
11079
  <dd>
10998
11080
 
11081
+ #### 📝 Description
11082
+
11083
+ <dl>
11084
+ <dd>
11085
+
11086
+ <dl>
11087
+ <dd>
11088
+
11089
+ Refused with a 422 and a message while the order can't be priced yet: no
11090
+ fulfillment method chosen (when the shop offers several), a shipped order
11091
+ with no shipping address, or calculated shipping with no option chosen.
11092
+ The message is also in the cart's `fulfillment.checkout_blocker`.
11093
+
11094
+ A 409 `{status: "paid", message, payment_intent_id}` means the cart's
11095
+ payment already went through (never a second payment): finish checkout
11096
+ with that id. A 409 `{status: "processing", message}` means the payment
11097
+ is still in flight: don't pay again, check back later.
11098
+ </dd>
11099
+ </dl>
11100
+ </dd>
11101
+ </dl>
11102
+
10999
11103
  #### 🔌 Usage
11000
11104
 
11001
11105
  <dl>
@@ -11039,6 +11143,87 @@ await client.customer.cart.createPaymentIntent({
11039
11143
  </dl>
11040
11144
 
11041
11145
 
11146
+ </dd>
11147
+ </dl>
11148
+ </details>
11149
+
11150
+ <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">refreshPaymentIntent</a>({ ...params }) -> FiveOneEat.RefreshPaymentIntentCartResponse</code></summary>
11151
+ <dl>
11152
+ <dd>
11153
+
11154
+ #### 📝 Description
11155
+
11156
+ <dl>
11157
+ <dd>
11158
+
11159
+ <dl>
11160
+ <dd>
11161
+
11162
+ Call immediately before presenting or confirming the payment sheet. The
11163
+ cart may have changed since its payment intent was created (another
11164
+ device, a changed address or shipping option), so it is re-priced and
11165
+ the intent brought up to date. Send `amount`, the total in cents the
11166
+ buyer is looking at.
11167
+
11168
+ - `total_changed: false` — pay with the returned `client_secret`.
11169
+ - `total_changed: true` — show "Your total changed to $X", re-initialise
11170
+ the payment sheet with the returned `client_secret` (it carries the new
11171
+ amount), and let the buyer confirm again.
11172
+ - 422 with a message — the order can't be priced yet (the same message
11173
+ as `fulfillment.checkout_blocker`); the old intent is cancelled.
11174
+ - 409 `status: paid` with `payment_intent_id` — the payment already went
11175
+ through; call checkout with that id instead.
11176
+ - 409 `status: processing` — the payment is still processing; don't pay
11177
+ again, check back later.
11178
+ </dd>
11179
+ </dl>
11180
+ </dd>
11181
+ </dl>
11182
+
11183
+ #### 🔌 Usage
11184
+
11185
+ <dl>
11186
+ <dd>
11187
+
11188
+ <dl>
11189
+ <dd>
11190
+
11191
+ ```typescript
11192
+ await client.customer.cart.refreshPaymentIntent({
11193
+ business: "business",
11194
+ amount: 1
11195
+ });
11196
+
11197
+ ```
11198
+ </dd>
11199
+ </dl>
11200
+ </dd>
11201
+ </dl>
11202
+
11203
+ #### ⚙️ Parameters
11204
+
11205
+ <dl>
11206
+ <dd>
11207
+
11208
+ <dl>
11209
+ <dd>
11210
+
11211
+ **request:** `FiveOneEat.customer.RefreshCartPaymentRequest`
11212
+
11213
+ </dd>
11214
+ </dl>
11215
+
11216
+ <dl>
11217
+ <dd>
11218
+
11219
+ **requestOptions:** `CartClient.RequestOptions`
11220
+
11221
+ </dd>
11222
+ </dl>
11223
+ </dd>
11224
+ </dl>
11225
+
11226
+
11042
11227
  </dd>
11043
11228
  </dl>
11044
11229
  </details>
@@ -11047,6 +11232,23 @@ await client.customer.cart.createPaymentIntent({
11047
11232
  <dl>
11048
11233
  <dd>
11049
11234
 
11235
+ #### 📝 Description
11236
+
11237
+ <dl>
11238
+ <dd>
11239
+
11240
+ <dl>
11241
+ <dd>
11242
+
11243
+ Not gated on commerce readiness: the customer has already paid, so a
11244
+ lapsed readiness check must not stop the order from being recorded.
11245
+ A 409 means the cart changed after the payment was priced: the payment
11246
+ was refunded in full and no order was placed — re-check and pay again.
11247
+ </dd>
11248
+ </dl>
11249
+ </dd>
11250
+ </dl>
11251
+
11050
11252
  #### 🔌 Usage
11051
11253
 
11052
11254
  <dl>
@@ -11097,10 +11299,24 @@ await client.customer.cart.checkout({
11097
11299
  </dl>
11098
11300
  </details>
11099
11301
 
11100
- <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">getShippingOptions</a>({ ...params }) -> FiveOneEat.GetShippingOptionsCartResponse</code></summary>
11302
+ <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">setFulfillment</a>({ ...params }) -> FiveOneEat.SetFulfillmentCartResponse</code></summary>
11303
+ <dl>
11304
+ <dd>
11305
+
11306
+ #### 📝 Description
11307
+
11308
+ <dl>
11309
+ <dd>
11310
+
11101
11311
  <dl>
11102
11312
  <dd>
11103
11313
 
11314
+ Switching away from shipping clears the saved shipping address and option.
11315
+ </dd>
11316
+ </dl>
11317
+ </dd>
11318
+ </dl>
11319
+
11104
11320
  #### 🔌 Usage
11105
11321
 
11106
11322
  <dl>
@@ -11110,7 +11326,74 @@ await client.customer.cart.checkout({
11110
11326
  <dd>
11111
11327
 
11112
11328
  ```typescript
11113
- await client.customer.cart.getShippingOptions({
11329
+ await client.customer.cart.setFulfillment({
11330
+ business: "business",
11331
+ fulfillment_method: "ship"
11332
+ });
11333
+
11334
+ ```
11335
+ </dd>
11336
+ </dl>
11337
+ </dd>
11338
+ </dl>
11339
+
11340
+ #### ⚙️ Parameters
11341
+
11342
+ <dl>
11343
+ <dd>
11344
+
11345
+ <dl>
11346
+ <dd>
11347
+
11348
+ **request:** `FiveOneEat.customer.ChooseFulfillmentMethodRequest`
11349
+
11350
+ </dd>
11351
+ </dl>
11352
+
11353
+ <dl>
11354
+ <dd>
11355
+
11356
+ **requestOptions:** `CartClient.RequestOptions`
11357
+
11358
+ </dd>
11359
+ </dl>
11360
+ </dd>
11361
+ </dl>
11362
+
11363
+
11364
+ </dd>
11365
+ </dl>
11366
+ </details>
11367
+
11368
+ <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">setShippingAddress</a>({ ...params }) -> FiveOneEat.SetShippingAddressCartResponse</code></summary>
11369
+ <dl>
11370
+ <dd>
11371
+
11372
+ #### 📝 Description
11373
+
11374
+ <dl>
11375
+ <dd>
11376
+
11377
+ <dl>
11378
+ <dd>
11379
+
11380
+ Sales tax on a shipped order is worked out from this address. Saving a
11381
+ different address clears the chosen shipping option.
11382
+ </dd>
11383
+ </dl>
11384
+ </dd>
11385
+ </dl>
11386
+
11387
+ #### 🔌 Usage
11388
+
11389
+ <dl>
11390
+ <dd>
11391
+
11392
+ <dl>
11393
+ <dd>
11394
+
11395
+ ```typescript
11396
+ await client.customer.cart.setShippingAddress({
11114
11397
  business: "business",
11115
11398
  address: {
11116
11399
  line1: "line1",
@@ -11134,7 +11417,72 @@ await client.customer.cart.getShippingOptions({
11134
11417
  <dl>
11135
11418
  <dd>
11136
11419
 
11137
- **request:** `FiveOneEat.customer.GetShippingOptionsCartRequest`
11420
+ **request:** `FiveOneEat.customer.ShippingAddressRequest`
11421
+
11422
+ </dd>
11423
+ </dl>
11424
+
11425
+ <dl>
11426
+ <dd>
11427
+
11428
+ **requestOptions:** `CartClient.RequestOptions`
11429
+
11430
+ </dd>
11431
+ </dl>
11432
+ </dd>
11433
+ </dl>
11434
+
11435
+
11436
+ </dd>
11437
+ </dl>
11438
+ </details>
11439
+
11440
+ <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">listShippingOptions</a>({ ...params }) -> FiveOneEat.ListShippingOptionsCartResponse</code></summary>
11441
+ <dl>
11442
+ <dd>
11443
+
11444
+ #### 📝 Description
11445
+
11446
+ <dl>
11447
+ <dd>
11448
+
11449
+ <dl>
11450
+ <dd>
11451
+
11452
+ Options are held for 30 minutes; choose one by its `provider_rate_id`.
11453
+ </dd>
11454
+ </dl>
11455
+ </dd>
11456
+ </dl>
11457
+
11458
+ #### 🔌 Usage
11459
+
11460
+ <dl>
11461
+ <dd>
11462
+
11463
+ <dl>
11464
+ <dd>
11465
+
11466
+ ```typescript
11467
+ await client.customer.cart.listShippingOptions({
11468
+ business: "business"
11469
+ });
11470
+
11471
+ ```
11472
+ </dd>
11473
+ </dl>
11474
+ </dd>
11475
+ </dl>
11476
+
11477
+ #### ⚙️ Parameters
11478
+
11479
+ <dl>
11480
+ <dd>
11481
+
11482
+ <dl>
11483
+ <dd>
11484
+
11485
+ **request:** `FiveOneEat.customer.ListShippingOptionsCartRequest`
11138
11486
 
11139
11487
  </dd>
11140
11488
  </dl>
@@ -11158,6 +11506,21 @@ await client.customer.cart.getShippingOptions({
11158
11506
  <dl>
11159
11507
  <dd>
11160
11508
 
11509
+ #### 📝 Description
11510
+
11511
+ <dl>
11512
+ <dd>
11513
+
11514
+ <dl>
11515
+ <dd>
11516
+
11517
+ Send only the `provider_rate_id` from the shipping options. The price is
11518
+ the one quoted; an option older than 30 minutes is refused with a 422.
11519
+ </dd>
11520
+ </dl>
11521
+ </dd>
11522
+ </dl>
11523
+
11161
11524
  #### 🔌 Usage
11162
11525
 
11163
11526
  <dl>
@@ -11169,8 +11532,7 @@ await client.customer.cart.getShippingOptions({
11169
11532
  ```typescript
11170
11533
  await client.customer.cart.selectShippingOption({
11171
11534
  business: "business",
11172
- provider_rate_id: "provider_rate_id",
11173
- amount_cents: 1
11535
+ provider_rate_id: "provider_rate_id"
11174
11536
  });
11175
11537
 
11176
11538
  ```
@@ -11187,7 +11549,7 @@ await client.customer.cart.selectShippingOption({
11187
11549
  <dl>
11188
11550
  <dd>
11189
11551
 
11190
- **request:** `FiveOneEat.customer.SelectShippingOptionCartRequest`
11552
+ **request:** `FiveOneEat.customer.SelectShippingRateRequest`
11191
11553
 
11192
11554
  </dd>
11193
11555
  </dl>
@@ -13743,6 +14105,10 @@ await client.customer.events.ticketing.calculatePrice({
13743
14105
 
13744
14106
  Create a Stripe payment intent for the tickets held in the cart for the given event.
13745
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.
13746
14112
  </dd>
13747
14113
  </dl>
13748
14114
  </dd>
@@ -1,11 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * productOrder: "productOrder"
5
- * }
6
- */
7
- export interface RefundProductOrdersRequest {
8
- productOrder: string;
9
- amount?: number | null;
10
- reason?: string | null;
11
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * business: "business",
5
- * provider_rate_id: "provider_rate_id",
6
- * amount_cents: 1
7
- * }
8
- */
9
- export interface SelectShippingOptionCartRequest {
10
- /** The business ID */
11
- business: string;
12
- provider_rate_id: string;
13
- amount_cents: number;
14
- }