@usehercules/sdk 1.7.0 → 1.9.0

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 (257) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +17 -16
  3. package/client.d.mts +0 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +0 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +2 -15
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -15
  10. package/client.mjs.map +1 -1
  11. package/internal/qs/formats.d.mts +7 -0
  12. package/internal/qs/formats.d.mts.map +1 -0
  13. package/internal/qs/formats.d.ts +7 -0
  14. package/internal/qs/formats.d.ts.map +1 -0
  15. package/internal/qs/formats.js +13 -0
  16. package/internal/qs/formats.js.map +1 -0
  17. package/internal/qs/formats.mjs +9 -0
  18. package/internal/qs/formats.mjs.map +1 -0
  19. package/internal/qs/index.d.mts +10 -0
  20. package/internal/qs/index.d.mts.map +1 -0
  21. package/internal/qs/index.d.ts +10 -0
  22. package/internal/qs/index.d.ts.map +1 -0
  23. package/internal/qs/index.js +14 -0
  24. package/internal/qs/index.js.map +1 -0
  25. package/internal/qs/index.mjs +10 -0
  26. package/internal/qs/index.mjs.map +1 -0
  27. package/internal/qs/stringify.d.mts +3 -0
  28. package/internal/qs/stringify.d.mts.map +1 -0
  29. package/internal/qs/stringify.d.ts +3 -0
  30. package/internal/qs/stringify.d.ts.map +1 -0
  31. package/internal/qs/stringify.js +277 -0
  32. package/internal/qs/stringify.js.map +1 -0
  33. package/internal/qs/stringify.mjs +274 -0
  34. package/internal/qs/stringify.mjs.map +1 -0
  35. package/internal/qs/types.d.mts +57 -0
  36. package/internal/qs/types.d.mts.map +1 -0
  37. package/internal/qs/types.d.ts +57 -0
  38. package/internal/qs/types.d.ts.map +1 -0
  39. package/internal/qs/types.js +3 -0
  40. package/internal/qs/types.js.map +1 -0
  41. package/internal/qs/types.mjs +2 -0
  42. package/internal/qs/types.mjs.map +1 -0
  43. package/internal/qs/utils.d.mts +15 -0
  44. package/internal/qs/utils.d.mts.map +1 -0
  45. package/internal/qs/utils.d.ts +15 -0
  46. package/internal/qs/utils.d.ts.map +1 -0
  47. package/internal/qs/utils.js +230 -0
  48. package/internal/qs/utils.js.map +1 -0
  49. package/internal/qs/utils.mjs +217 -0
  50. package/internal/qs/utils.mjs.map +1 -0
  51. package/package.json +1 -1
  52. package/resources/beta/beta.d.mts +4 -4
  53. package/resources/beta/beta.d.mts.map +1 -1
  54. package/resources/beta/beta.d.ts +4 -4
  55. package/resources/beta/beta.d.ts.map +1 -1
  56. package/resources/beta/beta.js +4 -4
  57. package/resources/beta/beta.js.map +1 -1
  58. package/resources/beta/beta.mjs +4 -4
  59. package/resources/beta/beta.mjs.map +1 -1
  60. package/resources/beta/commerce/commerce.d.mts +201 -0
  61. package/resources/beta/commerce/commerce.d.mts.map +1 -0
  62. package/resources/beta/commerce/commerce.d.ts +201 -0
  63. package/resources/beta/commerce/commerce.d.ts.map +1 -0
  64. package/resources/beta/{pay/pay.js → commerce/commerce.js} +10 -14
  65. package/resources/beta/commerce/commerce.js.map +1 -0
  66. package/resources/beta/{pay/pay.mjs → commerce/commerce.mjs} +8 -12
  67. package/resources/beta/commerce/commerce.mjs.map +1 -0
  68. package/resources/beta/commerce/coupons.d.mts +334 -0
  69. package/resources/beta/commerce/coupons.d.mts.map +1 -0
  70. package/resources/beta/commerce/coupons.d.ts +334 -0
  71. package/resources/beta/commerce/coupons.d.ts.map +1 -0
  72. package/resources/beta/{pay → commerce}/coupons.js +8 -5
  73. package/resources/beta/commerce/coupons.js.map +1 -0
  74. package/resources/beta/{pay → commerce}/coupons.mjs +8 -5
  75. package/resources/beta/commerce/coupons.mjs.map +1 -0
  76. package/resources/beta/commerce/customers.d.mts +658 -0
  77. package/resources/beta/commerce/customers.d.mts.map +1 -0
  78. package/resources/beta/commerce/customers.d.ts +658 -0
  79. package/resources/beta/commerce/customers.d.ts.map +1 -0
  80. package/resources/beta/{pay → commerce}/customers.js +11 -7
  81. package/resources/beta/commerce/customers.js.map +1 -0
  82. package/resources/beta/{pay → commerce}/customers.mjs +11 -7
  83. package/resources/beta/commerce/customers.mjs.map +1 -0
  84. package/resources/beta/commerce/index.d.mts +5 -0
  85. package/resources/beta/commerce/index.d.mts.map +1 -0
  86. package/resources/beta/commerce/index.d.ts +5 -0
  87. package/resources/beta/commerce/index.d.ts.map +1 -0
  88. package/resources/beta/{pay → commerce}/index.js +3 -5
  89. package/resources/beta/commerce/index.js.map +1 -0
  90. package/resources/beta/{pay → commerce}/index.mjs +1 -2
  91. package/resources/beta/commerce/index.mjs.map +1 -0
  92. package/resources/beta/commerce/products/index.d.mts +4 -0
  93. package/resources/beta/commerce/products/index.d.mts.map +1 -0
  94. package/resources/beta/commerce/products/index.d.ts +4 -0
  95. package/resources/beta/commerce/products/index.d.ts.map +1 -0
  96. package/resources/beta/{pay → commerce}/products/index.js +3 -3
  97. package/resources/beta/commerce/products/index.js.map +1 -0
  98. package/resources/beta/{pay → commerce}/products/index.mjs +1 -1
  99. package/resources/beta/commerce/products/index.mjs.map +1 -0
  100. package/resources/beta/commerce/products/products.d.mts +1082 -0
  101. package/resources/beta/commerce/products/products.d.mts.map +1 -0
  102. package/resources/beta/commerce/products/products.d.ts +1082 -0
  103. package/resources/beta/commerce/products/products.d.ts.map +1 -0
  104. package/resources/beta/{pay → commerce}/products/products.js +16 -12
  105. package/resources/beta/commerce/products/products.js.map +1 -0
  106. package/resources/beta/{pay → commerce}/products/products.mjs +16 -12
  107. package/resources/beta/commerce/products/products.mjs.map +1 -0
  108. package/resources/beta/commerce/products/resources.d.mts +164 -0
  109. package/resources/beta/commerce/products/resources.d.mts.map +1 -0
  110. package/resources/beta/commerce/products/resources.d.ts +164 -0
  111. package/resources/beta/commerce/products/resources.d.ts.map +1 -0
  112. package/resources/beta/commerce/products/resources.js +41 -0
  113. package/resources/beta/commerce/products/resources.js.map +1 -0
  114. package/resources/beta/commerce/products/resources.mjs +37 -0
  115. package/resources/beta/commerce/products/resources.mjs.map +1 -0
  116. package/resources/beta/commerce/products/variants.d.mts +907 -0
  117. package/resources/beta/commerce/products/variants.d.mts.map +1 -0
  118. package/resources/beta/commerce/products/variants.d.ts +907 -0
  119. package/resources/beta/commerce/products/variants.d.ts.map +1 -0
  120. package/resources/beta/{pay → commerce}/products/variants.js +5 -8
  121. package/resources/beta/commerce/products/variants.js.map +1 -0
  122. package/resources/beta/{pay → commerce}/products/variants.mjs +5 -8
  123. package/resources/beta/commerce/products/variants.mjs.map +1 -0
  124. package/resources/beta/commerce/products.d.mts.map +1 -0
  125. package/resources/beta/commerce/products.d.ts.map +1 -0
  126. package/resources/beta/commerce/products.js.map +1 -0
  127. package/resources/beta/commerce/products.mjs.map +1 -0
  128. package/resources/beta/commerce.d.mts +2 -0
  129. package/resources/beta/commerce.d.mts.map +1 -0
  130. package/resources/beta/commerce.d.ts +2 -0
  131. package/resources/beta/commerce.d.ts.map +1 -0
  132. package/resources/beta/{pay.js → commerce.js} +2 -2
  133. package/resources/beta/commerce.js.map +1 -0
  134. package/resources/beta/{pay.mjs → commerce.mjs} +2 -2
  135. package/resources/beta/commerce.mjs.map +1 -0
  136. package/resources/beta/index.d.mts +1 -1
  137. package/resources/beta/index.d.mts.map +1 -1
  138. package/resources/beta/index.d.ts +1 -1
  139. package/resources/beta/index.d.ts.map +1 -1
  140. package/resources/beta/index.js +3 -3
  141. package/resources/beta/index.js.map +1 -1
  142. package/resources/beta/index.mjs +1 -1
  143. package/resources/beta/index.mjs.map +1 -1
  144. package/resources/push-notifications/push-notifications.d.mts +8 -9
  145. package/resources/push-notifications/push-notifications.d.mts.map +1 -1
  146. package/resources/push-notifications/push-notifications.d.ts +8 -9
  147. package/resources/push-notifications/push-notifications.d.ts.map +1 -1
  148. package/resources/push-notifications/push-notifications.js +5 -6
  149. package/resources/push-notifications/push-notifications.js.map +1 -1
  150. package/resources/push-notifications/push-notifications.mjs +5 -6
  151. package/resources/push-notifications/push-notifications.mjs.map +1 -1
  152. package/src/client.ts +2 -17
  153. package/src/internal/qs/LICENSE.md +13 -0
  154. package/src/internal/qs/README.md +3 -0
  155. package/src/internal/qs/formats.ts +10 -0
  156. package/src/internal/qs/index.ts +13 -0
  157. package/src/internal/qs/stringify.ts +385 -0
  158. package/src/internal/qs/types.ts +71 -0
  159. package/src/internal/qs/utils.ts +265 -0
  160. package/src/resources/beta/beta.ts +18 -18
  161. package/src/resources/beta/{pay/pay.ts → commerce/commerce.ts} +82 -85
  162. package/src/resources/beta/commerce/coupons.ts +441 -0
  163. package/src/resources/beta/commerce/customers.ts +842 -0
  164. package/src/resources/beta/commerce/index.ts +47 -0
  165. package/src/resources/beta/commerce/products/index.ts +37 -0
  166. package/src/resources/beta/commerce/products/products.ts +1341 -0
  167. package/src/resources/beta/commerce/products/resources.ts +217 -0
  168. package/src/resources/beta/commerce/products/variants.ts +1120 -0
  169. package/src/resources/beta/{pay.ts → commerce.ts} +1 -1
  170. package/src/resources/beta/index.ts +8 -8
  171. package/src/resources/push-notifications/push-notifications.ts +8 -9
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.ts +1 -1
  175. package/version.js +1 -1
  176. package/version.mjs +1 -1
  177. package/resources/beta/pay/coupons.d.mts +0 -156
  178. package/resources/beta/pay/coupons.d.mts.map +0 -1
  179. package/resources/beta/pay/coupons.d.ts +0 -156
  180. package/resources/beta/pay/coupons.d.ts.map +0 -1
  181. package/resources/beta/pay/coupons.js.map +0 -1
  182. package/resources/beta/pay/coupons.mjs.map +0 -1
  183. package/resources/beta/pay/customers.d.mts +0 -160
  184. package/resources/beta/pay/customers.d.mts.map +0 -1
  185. package/resources/beta/pay/customers.d.ts +0 -160
  186. package/resources/beta/pay/customers.d.ts.map +0 -1
  187. package/resources/beta/pay/customers.js.map +0 -1
  188. package/resources/beta/pay/customers.mjs.map +0 -1
  189. package/resources/beta/pay/entitlements.d.mts +0 -76
  190. package/resources/beta/pay/entitlements.d.mts.map +0 -1
  191. package/resources/beta/pay/entitlements.d.ts +0 -76
  192. package/resources/beta/pay/entitlements.d.ts.map +0 -1
  193. package/resources/beta/pay/entitlements.js +0 -41
  194. package/resources/beta/pay/entitlements.js.map +0 -1
  195. package/resources/beta/pay/entitlements.mjs +0 -37
  196. package/resources/beta/pay/entitlements.mjs.map +0 -1
  197. package/resources/beta/pay/index.d.mts +0 -6
  198. package/resources/beta/pay/index.d.mts.map +0 -1
  199. package/resources/beta/pay/index.d.ts +0 -6
  200. package/resources/beta/pay/index.d.ts.map +0 -1
  201. package/resources/beta/pay/index.js.map +0 -1
  202. package/resources/beta/pay/index.mjs.map +0 -1
  203. package/resources/beta/pay/pay.d.mts +0 -206
  204. package/resources/beta/pay/pay.d.mts.map +0 -1
  205. package/resources/beta/pay/pay.d.ts +0 -206
  206. package/resources/beta/pay/pay.d.ts.map +0 -1
  207. package/resources/beta/pay/pay.js.map +0 -1
  208. package/resources/beta/pay/pay.mjs.map +0 -1
  209. package/resources/beta/pay/products/entitlements.d.mts +0 -53
  210. package/resources/beta/pay/products/entitlements.d.mts.map +0 -1
  211. package/resources/beta/pay/products/entitlements.d.ts +0 -53
  212. package/resources/beta/pay/products/entitlements.d.ts.map +0 -1
  213. package/resources/beta/pay/products/entitlements.js +0 -38
  214. package/resources/beta/pay/products/entitlements.js.map +0 -1
  215. package/resources/beta/pay/products/entitlements.mjs +0 -34
  216. package/resources/beta/pay/products/entitlements.mjs.map +0 -1
  217. package/resources/beta/pay/products/index.d.mts +0 -4
  218. package/resources/beta/pay/products/index.d.mts.map +0 -1
  219. package/resources/beta/pay/products/index.d.ts +0 -4
  220. package/resources/beta/pay/products/index.d.ts.map +0 -1
  221. package/resources/beta/pay/products/index.js.map +0 -1
  222. package/resources/beta/pay/products/index.mjs.map +0 -1
  223. package/resources/beta/pay/products/products.d.mts +0 -183
  224. package/resources/beta/pay/products/products.d.mts.map +0 -1
  225. package/resources/beta/pay/products/products.d.ts +0 -183
  226. package/resources/beta/pay/products/products.d.ts.map +0 -1
  227. package/resources/beta/pay/products/products.js.map +0 -1
  228. package/resources/beta/pay/products/products.mjs.map +0 -1
  229. package/resources/beta/pay/products/variants.d.mts +0 -206
  230. package/resources/beta/pay/products/variants.d.mts.map +0 -1
  231. package/resources/beta/pay/products/variants.d.ts +0 -206
  232. package/resources/beta/pay/products/variants.d.ts.map +0 -1
  233. package/resources/beta/pay/products/variants.js.map +0 -1
  234. package/resources/beta/pay/products/variants.mjs.map +0 -1
  235. package/resources/beta/pay/products.d.mts.map +0 -1
  236. package/resources/beta/pay/products.d.ts.map +0 -1
  237. package/resources/beta/pay/products.js.map +0 -1
  238. package/resources/beta/pay/products.mjs.map +0 -1
  239. package/resources/beta/pay.d.mts +0 -2
  240. package/resources/beta/pay.d.mts.map +0 -1
  241. package/resources/beta/pay.d.ts +0 -2
  242. package/resources/beta/pay.d.ts.map +0 -1
  243. package/resources/beta/pay.js.map +0 -1
  244. package/resources/beta/pay.mjs.map +0 -1
  245. package/src/resources/beta/pay/coupons.ts +0 -218
  246. package/src/resources/beta/pay/customers.ts +0 -229
  247. package/src/resources/beta/pay/entitlements.ts +0 -113
  248. package/src/resources/beta/pay/index.ts +0 -46
  249. package/src/resources/beta/pay/products/entitlements.ts +0 -93
  250. package/src/resources/beta/pay/products/index.ts +0 -28
  251. package/src/resources/beta/pay/products/products.ts +0 -280
  252. package/src/resources/beta/pay/products/variants.ts +0 -279
  253. /package/resources/beta/{pay → commerce}/products.d.mts +0 -0
  254. /package/resources/beta/{pay → commerce}/products.d.ts +0 -0
  255. /package/resources/beta/{pay → commerce}/products.js +0 -0
  256. /package/resources/beta/{pay → commerce}/products.mjs +0 -0
  257. /package/src/resources/beta/{pay → commerce}/products.ts +0 -0
@@ -0,0 +1,658 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
+ export declare class Customers extends APIResource {
6
+ /**
7
+ * Creates a new billable customer. A customer represents the entity in your app
8
+ * that will be charged—typically a user, organization, or project. Hercules
9
+ * recommends creating a customer immediately after creating the corresponding
10
+ * entity in your app.
11
+ */
12
+ create(body?: CustomerCreateParams | null | undefined, options?: RequestOptions): APIPromise<CustomerCreateResponse>;
13
+ /**
14
+ * Updates an existing customer. Use this to modify contact information or billing
15
+ * address. Only provided fields are updated; omitted fields remain unchanged.
16
+ */
17
+ update(customerID: string, body?: CustomerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CustomerUpdateResponse>;
18
+ /**
19
+ * Retrieves a paginated list of all customers. Customers are the billable entities
20
+ * in your app—typically users, organizations, or projects.
21
+ */
22
+ list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesCursorIDPage, CustomerListResponse>;
23
+ /**
24
+ * Permanently deletes a customer. This also cancels any active subscriptions. This
25
+ * action cannot be undone.
26
+ */
27
+ delete(customerID: string, options?: RequestOptions): APIPromise<void>;
28
+ /**
29
+ * Generates a URL to a hosted billing portal where the customer can view invoices,
30
+ * update payment methods, and manage billing details. Redirect the customer to the
31
+ * returned URL.
32
+ */
33
+ billingPortal(customerID: string, body?: CustomerBillingPortalParams | null | undefined, options?: RequestOptions): APIPromise<CustomerBillingPortalResponse>;
34
+ /**
35
+ * Retrieves a customer by ID. Returns the customer object including contact
36
+ * information, billing address, active subscriptions, recent invoices, and saved
37
+ * payment methods.
38
+ */
39
+ get(customerID: string, options?: RequestOptions): APIPromise<CustomerGetResponse>;
40
+ }
41
+ export type CustomerListResponsesCursorIDPage = CursorIDPage<CustomerListResponse>;
42
+ /**
43
+ * A billable customer. Represents the entity in your app that will be
44
+ * charged—typically a user, organization, or project.
45
+ */
46
+ export interface CustomerCreateResponse {
47
+ /**
48
+ * Unique identifier for the topic subscription
49
+ */
50
+ id: string;
51
+ /**
52
+ * Timestamp when the customer was created
53
+ */
54
+ created: string;
55
+ /**
56
+ * The customer's billing address
57
+ */
58
+ address?: CustomerCreateResponse.Address | null;
59
+ /**
60
+ * The customer's email address for receipts and notifications
61
+ */
62
+ email?: string | null;
63
+ /**
64
+ * The customer's full name
65
+ */
66
+ name?: string | null;
67
+ /**
68
+ * The customer's phone number
69
+ */
70
+ phone?: string | null;
71
+ }
72
+ export declare namespace CustomerCreateResponse {
73
+ /**
74
+ * The customer's billing address
75
+ */
76
+ interface Address {
77
+ /**
78
+ * City name
79
+ */
80
+ city?: string | null;
81
+ /**
82
+ * Two-letter ISO country code
83
+ */
84
+ country?: string | null;
85
+ /**
86
+ * Street address line 1
87
+ */
88
+ line1?: string | null;
89
+ /**
90
+ * Street address line 2 (apartment, suite, etc.)
91
+ */
92
+ line2?: string | null;
93
+ /**
94
+ * Postal or ZIP code
95
+ */
96
+ postal_code?: string | null;
97
+ /**
98
+ * State, province, or region
99
+ */
100
+ state?: string | null;
101
+ }
102
+ }
103
+ /**
104
+ * A billable customer. Represents the entity in your app that will be
105
+ * charged—typically a user, organization, or project.
106
+ */
107
+ export interface CustomerUpdateResponse {
108
+ /**
109
+ * Unique identifier for the topic subscription
110
+ */
111
+ id: string;
112
+ /**
113
+ * Timestamp when the customer was created
114
+ */
115
+ created: string;
116
+ /**
117
+ * The customer's billing address
118
+ */
119
+ address?: CustomerUpdateResponse.Address | null;
120
+ /**
121
+ * The customer's email address for receipts and notifications
122
+ */
123
+ email?: string | null;
124
+ /**
125
+ * The customer's full name
126
+ */
127
+ name?: string | null;
128
+ /**
129
+ * The customer's phone number
130
+ */
131
+ phone?: string | null;
132
+ }
133
+ export declare namespace CustomerUpdateResponse {
134
+ /**
135
+ * The customer's billing address
136
+ */
137
+ interface Address {
138
+ /**
139
+ * City name
140
+ */
141
+ city?: string | null;
142
+ /**
143
+ * Two-letter ISO country code
144
+ */
145
+ country?: string | null;
146
+ /**
147
+ * Street address line 1
148
+ */
149
+ line1?: string | null;
150
+ /**
151
+ * Street address line 2 (apartment, suite, etc.)
152
+ */
153
+ line2?: string | null;
154
+ /**
155
+ * Postal or ZIP code
156
+ */
157
+ postal_code?: string | null;
158
+ /**
159
+ * State, province, or region
160
+ */
161
+ state?: string | null;
162
+ }
163
+ }
164
+ /**
165
+ * A billable customer. Represents the entity in your app that will be
166
+ * charged—typically a user, organization, or project.
167
+ */
168
+ export interface CustomerListResponse {
169
+ /**
170
+ * Unique identifier for the topic subscription
171
+ */
172
+ id: string;
173
+ /**
174
+ * Timestamp when the customer was created
175
+ */
176
+ created: string;
177
+ /**
178
+ * The customer's billing address
179
+ */
180
+ address?: CustomerListResponse.Address | null;
181
+ /**
182
+ * The customer's email address for receipts and notifications
183
+ */
184
+ email?: string | null;
185
+ /**
186
+ * The customer's full name
187
+ */
188
+ name?: string | null;
189
+ /**
190
+ * The customer's phone number
191
+ */
192
+ phone?: string | null;
193
+ }
194
+ export declare namespace CustomerListResponse {
195
+ /**
196
+ * The customer's billing address
197
+ */
198
+ interface Address {
199
+ /**
200
+ * City name
201
+ */
202
+ city?: string | null;
203
+ /**
204
+ * Two-letter ISO country code
205
+ */
206
+ country?: string | null;
207
+ /**
208
+ * Street address line 1
209
+ */
210
+ line1?: string | null;
211
+ /**
212
+ * Street address line 2 (apartment, suite, etc.)
213
+ */
214
+ line2?: string | null;
215
+ /**
216
+ * Postal or ZIP code
217
+ */
218
+ postal_code?: string | null;
219
+ /**
220
+ * State, province, or region
221
+ */
222
+ state?: string | null;
223
+ }
224
+ }
225
+ /**
226
+ * Response containing the billing portal URL
227
+ */
228
+ export interface CustomerBillingPortalResponse {
229
+ /**
230
+ * URL to redirect the customer to for the billing portal
231
+ */
232
+ url: string;
233
+ }
234
+ /**
235
+ * A billable customer with detailed subscription, invoice, and payment method
236
+ * information.
237
+ */
238
+ export interface CustomerGetResponse {
239
+ /**
240
+ * Unique identifier for the topic subscription
241
+ */
242
+ id: string;
243
+ /**
244
+ * Timestamp when the customer was created
245
+ */
246
+ created: string;
247
+ /**
248
+ * The customer's billing address
249
+ */
250
+ address?: CustomerGetResponse.Address | null;
251
+ /**
252
+ * The customer's email address for receipts and notifications
253
+ */
254
+ email?: string | null;
255
+ /**
256
+ * Customer's recent invoices (up to 10)
257
+ */
258
+ invoices?: Array<CustomerGetResponse.Invoice>;
259
+ /**
260
+ * The customer's full name
261
+ */
262
+ name?: string | null;
263
+ /**
264
+ * Customer's saved payment methods
265
+ */
266
+ payment_methods?: Array<CustomerGetResponse.PaymentMethod>;
267
+ /**
268
+ * The customer's phone number
269
+ */
270
+ phone?: string | null;
271
+ /**
272
+ * Customer's active subscriptions
273
+ */
274
+ subscriptions?: Array<CustomerGetResponse.Subscription>;
275
+ }
276
+ export declare namespace CustomerGetResponse {
277
+ /**
278
+ * The customer's billing address
279
+ */
280
+ interface Address {
281
+ /**
282
+ * City name
283
+ */
284
+ city?: string | null;
285
+ /**
286
+ * Two-letter ISO country code
287
+ */
288
+ country?: string | null;
289
+ /**
290
+ * Street address line 1
291
+ */
292
+ line1?: string | null;
293
+ /**
294
+ * Street address line 2 (apartment, suite, etc.)
295
+ */
296
+ line2?: string | null;
297
+ /**
298
+ * Postal or ZIP code
299
+ */
300
+ postal_code?: string | null;
301
+ /**
302
+ * State, province, or region
303
+ */
304
+ state?: string | null;
305
+ }
306
+ /**
307
+ * An invoice for a customer
308
+ */
309
+ interface Invoice {
310
+ /**
311
+ * Unique identifier for the topic subscription
312
+ */
313
+ id: string;
314
+ /**
315
+ * Total amount due in cents
316
+ */
317
+ amount_due: number;
318
+ /**
319
+ * Amount already paid in cents
320
+ */
321
+ amount_paid: number;
322
+ /**
323
+ * Amount remaining to be paid in cents
324
+ */
325
+ amount_remaining: number;
326
+ /**
327
+ * Timestamp when the invoice was created
328
+ */
329
+ created: string;
330
+ /**
331
+ * Currency code (e.g., 'usd')
332
+ */
333
+ currency: string;
334
+ /**
335
+ * Subtotal before tax in cents
336
+ */
337
+ subtotal: number;
338
+ /**
339
+ * Total amount in cents
340
+ */
341
+ total: number;
342
+ /**
343
+ * When the invoice is due
344
+ */
345
+ due_date?: string | null;
346
+ /**
347
+ * URL to view the invoice online
348
+ */
349
+ hosted_invoice_url?: string | null;
350
+ /**
351
+ * URL to download the invoice PDF
352
+ */
353
+ invoice_pdf?: string | null;
354
+ /**
355
+ * Invoice number for display
356
+ */
357
+ number?: string | null;
358
+ /**
359
+ * When the invoice was paid, if applicable
360
+ */
361
+ paid_at?: string | null;
362
+ /**
363
+ * End of the billing period
364
+ */
365
+ period_end?: string | null;
366
+ /**
367
+ * Start of the billing period
368
+ */
369
+ period_start?: string | null;
370
+ /**
371
+ * Current status of the invoice
372
+ */
373
+ status?: 'draft' | 'open' | 'paid' | 'void' | 'uncollectible' | null;
374
+ }
375
+ /**
376
+ * A saved payment method for a customer
377
+ */
378
+ interface PaymentMethod {
379
+ /**
380
+ * Unique identifier for the topic subscription
381
+ */
382
+ id: string;
383
+ /**
384
+ * Timestamp when the payment method was added
385
+ */
386
+ created: string;
387
+ /**
388
+ * Whether this is the default payment method
389
+ */
390
+ is_default: boolean;
391
+ /**
392
+ * Type of payment method
393
+ */
394
+ type: 'card' | 'us_bank_account' | 'sepa_debit' | 'link' | 'other';
395
+ /**
396
+ * Card details, if payment method is a card
397
+ */
398
+ card?: PaymentMethod.Card | null;
399
+ }
400
+ namespace PaymentMethod {
401
+ /**
402
+ * Card details, if payment method is a card
403
+ */
404
+ interface Card {
405
+ /**
406
+ * Card brand (e.g., 'visa', 'mastercard')
407
+ */
408
+ brand: string;
409
+ /**
410
+ * Expiration month (1-12)
411
+ */
412
+ exp_month: number;
413
+ /**
414
+ * Expiration year (4 digits)
415
+ */
416
+ exp_year: number;
417
+ /**
418
+ * Last 4 digits of the card number
419
+ */
420
+ last4: string;
421
+ }
422
+ }
423
+ /**
424
+ * A customer subscription to a product
425
+ */
426
+ interface Subscription {
427
+ /**
428
+ * Unique identifier for the topic subscription
429
+ */
430
+ id: string;
431
+ /**
432
+ * Whether the subscription will cancel at period end
433
+ */
434
+ cancel_at_period_end: boolean;
435
+ /**
436
+ * Timestamp when the subscription was created
437
+ */
438
+ created: string;
439
+ /**
440
+ * End of the current billing period
441
+ */
442
+ current_period_end: string;
443
+ /**
444
+ * Start of the current billing period
445
+ */
446
+ current_period_start: string;
447
+ /**
448
+ * The product this subscription is for
449
+ */
450
+ product: Subscription.Product;
451
+ /**
452
+ * Current status of the subscription
453
+ */
454
+ status: 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid';
455
+ /**
456
+ * When the subscription was canceled, if applicable
457
+ */
458
+ canceled_at?: string | null;
459
+ /**
460
+ * End of trial period, if applicable
461
+ */
462
+ trial_end?: string | null;
463
+ /**
464
+ * Start of trial period, if applicable
465
+ */
466
+ trial_start?: string | null;
467
+ /**
468
+ * The variant (tier/plan) of this subscription, if applicable
469
+ */
470
+ variant?: Subscription.Variant | null;
471
+ }
472
+ namespace Subscription {
473
+ /**
474
+ * The product this subscription is for
475
+ */
476
+ interface Product {
477
+ /**
478
+ * Unique identifier for the topic subscription
479
+ */
480
+ id: string;
481
+ /**
482
+ * Product name
483
+ */
484
+ name: string;
485
+ }
486
+ /**
487
+ * The variant (tier/plan) of this subscription, if applicable
488
+ */
489
+ interface Variant {
490
+ /**
491
+ * Unique identifier for the topic subscription
492
+ */
493
+ id: string;
494
+ /**
495
+ * Variant name
496
+ */
497
+ name: string;
498
+ }
499
+ }
500
+ }
501
+ export interface CustomerCreateParams {
502
+ /**
503
+ * Optional custom ID for the customer. Must start with 'cus\_'. If not provided,
504
+ * one will be generated.
505
+ */
506
+ id?: string;
507
+ /**
508
+ * The customer's billing address
509
+ */
510
+ address?: CustomerCreateParams.Address;
511
+ /**
512
+ * The customer's email address for receipts and notifications
513
+ */
514
+ email?: string;
515
+ /**
516
+ * The customer's full name
517
+ */
518
+ name?: string;
519
+ /**
520
+ * The customer's phone number
521
+ */
522
+ phone?: string;
523
+ }
524
+ export declare namespace CustomerCreateParams {
525
+ /**
526
+ * The customer's billing address
527
+ */
528
+ interface Address {
529
+ /**
530
+ * City name
531
+ */
532
+ city?: string | null;
533
+ /**
534
+ * Two-letter ISO country code
535
+ */
536
+ country?: string | null;
537
+ /**
538
+ * Street address line 1
539
+ */
540
+ line1?: string | null;
541
+ /**
542
+ * Street address line 2 (apartment, suite, etc.)
543
+ */
544
+ line2?: string | null;
545
+ /**
546
+ * Postal or ZIP code
547
+ */
548
+ postal_code?: string | null;
549
+ /**
550
+ * State, province, or region
551
+ */
552
+ state?: string | null;
553
+ }
554
+ }
555
+ export interface CustomerUpdateParams {
556
+ /**
557
+ * The customer's billing address
558
+ */
559
+ address?: CustomerUpdateParams.Address;
560
+ /**
561
+ * The customer's email address for receipts and notifications
562
+ */
563
+ email?: string;
564
+ /**
565
+ * The customer's full name
566
+ */
567
+ name?: string;
568
+ /**
569
+ * The customer's phone number
570
+ */
571
+ phone?: string;
572
+ }
573
+ export declare namespace CustomerUpdateParams {
574
+ /**
575
+ * The customer's billing address
576
+ */
577
+ interface Address {
578
+ /**
579
+ * City name
580
+ */
581
+ city?: string | null;
582
+ /**
583
+ * Two-letter ISO country code
584
+ */
585
+ country?: string | null;
586
+ /**
587
+ * Street address line 1
588
+ */
589
+ line1?: string | null;
590
+ /**
591
+ * Street address line 2 (apartment, suite, etc.)
592
+ */
593
+ line2?: string | null;
594
+ /**
595
+ * Postal or ZIP code
596
+ */
597
+ postal_code?: string | null;
598
+ /**
599
+ * State, province, or region
600
+ */
601
+ state?: string | null;
602
+ }
603
+ }
604
+ export interface CustomerListParams extends CursorIDPageParams {
605
+ /**
606
+ * Filter by creation date. Accepts an object with gt, gte, lt, lte operators using
607
+ * Unix timestamps.
608
+ */
609
+ created?: CustomerListParams.Created;
610
+ /**
611
+ * Filter by exact email address match.
612
+ */
613
+ email?: string;
614
+ /**
615
+ * Search query to filter customers. Searches across name, email, and ID fields
616
+ * (case-insensitive).
617
+ */
618
+ query?: string;
619
+ /**
620
+ * Sort order for customers. Prefix with '-' for descending order. Valid values:
621
+ * name, -name, email, -email, created, -created. Default: -created (newest first).
622
+ */
623
+ sort?: string;
624
+ }
625
+ export declare namespace CustomerListParams {
626
+ /**
627
+ * Filter by creation date. Accepts an object with gt, gte, lt, lte operators using
628
+ * Unix timestamps.
629
+ */
630
+ interface Created {
631
+ /**
632
+ * Greater than (Unix timestamp)
633
+ */
634
+ gt?: number;
635
+ /**
636
+ * Greater than or equal to (Unix timestamp)
637
+ */
638
+ gte?: number;
639
+ /**
640
+ * Less than (Unix timestamp)
641
+ */
642
+ lt?: number;
643
+ /**
644
+ * Less than or equal to (Unix timestamp)
645
+ */
646
+ lte?: number;
647
+ }
648
+ }
649
+ export interface CustomerBillingPortalParams {
650
+ /**
651
+ * URL to redirect the customer to after they exit the billing portal
652
+ */
653
+ return_url?: string;
654
+ }
655
+ export declare namespace Customers {
656
+ export { type CustomerCreateResponse as CustomerCreateResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerListResponse as CustomerListResponse, type CustomerBillingPortalResponse as CustomerBillingPortalResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerListResponsesCursorIDPage as CustomerListResponsesCursorIDPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerBillingPortalParams as CustomerBillingPortalParams, };
657
+ }
658
+ //# sourceMappingURL=customers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/commerce/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;OAKG;IACH,MAAM,CACJ,IAAI,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACv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