@peable.to/contracts 0.4.0 → 1.1.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 (322) hide show
  1. package/dist/cjs/common/address.js +81 -0
  2. package/dist/cjs/common/envelopes.js +101 -0
  3. package/dist/cjs/common/objects.js +85 -0
  4. package/dist/cjs/common/params.js +211 -0
  5. package/dist/cjs/common/primitives.js +39 -0
  6. package/dist/cjs/contributions.js +22 -0
  7. package/dist/cjs/index.js +40 -137
  8. package/dist/cjs/openapi/document.js +297 -0
  9. package/dist/cjs/openapi/index.js +7 -0
  10. package/dist/cjs/openapi/webhooks.js +17 -0
  11. package/dist/cjs/resources/billingEngine/billingPortal.js +237 -0
  12. package/dist/cjs/resources/billingEngine/creditNotes.js +189 -0
  13. package/dist/cjs/resources/billingEngine/customerBalanceTransactions.js +90 -0
  14. package/dist/cjs/resources/billingEngine/index.js +43 -0
  15. package/dist/cjs/resources/billingEngine/invoiceItems.js +155 -0
  16. package/dist/cjs/resources/billingEngine/invoices.js +509 -0
  17. package/dist/cjs/resources/billingEngine/params.js +43 -0
  18. package/dist/cjs/resources/billingEngine/public.js +326 -0
  19. package/dist/cjs/resources/billingEngine/subscriptions.js +476 -0
  20. package/dist/cjs/resources/catalog/billing.js +755 -0
  21. package/dist/cjs/resources/catalog/billingSettings.js +131 -0
  22. package/dist/cjs/resources/catalog/coupons.js +222 -0
  23. package/dist/cjs/resources/catalog/entitlements.js +257 -0
  24. package/dist/cjs/resources/catalog/index.js +58 -0
  25. package/dist/cjs/resources/catalog/meters.js +279 -0
  26. package/dist/cjs/resources/catalog/prices.js +423 -0
  27. package/dist/cjs/resources/catalog/products.js +228 -0
  28. package/dist/cjs/resources/catalog/promotionCodes.js +174 -0
  29. package/dist/cjs/resources/catalog/shared.js +75 -0
  30. package/dist/cjs/resources/catalog/testClocks.js +127 -0
  31. package/dist/cjs/resources/checkout/checkoutSessions.js +582 -0
  32. package/dist/cjs/resources/checkout/contributions.js +172 -0
  33. package/dist/cjs/resources/checkout/files.js +133 -0
  34. package/dist/cjs/resources/checkout/index.js +57 -0
  35. package/dist/cjs/resources/checkout/merchants.js +290 -0
  36. package/dist/cjs/resources/checkout/paymentLinks.js +330 -0
  37. package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +262 -0
  38. package/dist/cjs/resources/checkout/shared.js +368 -0
  39. package/dist/cjs/resources/connect/account.js +332 -0
  40. package/dist/cjs/resources/connect/applicationFees.js +113 -0
  41. package/dist/cjs/resources/connect/balance.js +212 -0
  42. package/dist/cjs/resources/connect/connectedAccounts.js +260 -0
  43. package/dist/cjs/resources/connect/index.js +51 -0
  44. package/dist/cjs/resources/connect/onboarding.js +82 -0
  45. package/dist/cjs/resources/connect/payouts.js +196 -0
  46. package/dist/cjs/resources/connect/reporting.js +235 -0
  47. package/dist/cjs/resources/connect/requestLogs.js +110 -0
  48. package/dist/cjs/resources/connect/transfers.js +227 -0
  49. package/dist/cjs/resources/core/customers.js +194 -0
  50. package/dist/cjs/resources/core/index.js +23 -0
  51. package/dist/cjs/resources/core/paymentMethods.js +134 -0
  52. package/dist/cjs/resources/events/events.js +357 -0
  53. package/dist/cjs/resources/events/index.js +29 -0
  54. package/dist/cjs/resources/events/webhookDeliveries.js +93 -0
  55. package/dist/cjs/resources/events/webhookEndpoints.js +215 -0
  56. package/dist/cjs/resources/payments/charges.js +157 -0
  57. package/dist/cjs/resources/payments/disputes.js +204 -0
  58. package/dist/cjs/resources/payments/index.js +41 -0
  59. package/dist/cjs/resources/payments/paymentIntents.js +529 -0
  60. package/dist/cjs/resources/payments/refunds.js +245 -0
  61. package/dist/cjs/resources/payments/setupIntents.js +158 -0
  62. package/dist/cjs/resources/payments/social.js +182 -0
  63. package/dist/cjs/resources/payments/testHelpers.js +39 -0
  64. package/dist/cjs/resources/tax/assessments.js +217 -0
  65. package/dist/cjs/resources/tax/businessProfile.js +99 -0
  66. package/dist/cjs/resources/tax/calculations.js +176 -0
  67. package/dist/cjs/resources/tax/capabilities.js +42 -0
  68. package/dist/cjs/resources/tax/codes.js +37 -0
  69. package/dist/cjs/resources/tax/complianceActions.js +56 -0
  70. package/dist/cjs/resources/tax/deadlines.js +59 -0
  71. package/dist/cjs/resources/tax/documents.js +128 -0
  72. package/dist/cjs/resources/tax/index.js +80 -0
  73. package/dist/cjs/resources/tax/locationEvidence.js +131 -0
  74. package/dist/cjs/resources/tax/operatingLocations.js +98 -0
  75. package/dist/cjs/resources/tax/products.js +67 -0
  76. package/dist/cjs/resources/tax/registrationDeclarations.js +124 -0
  77. package/dist/cjs/resources/tax/registrations.js +82 -0
  78. package/dist/cjs/resources/tax/reports.js +92 -0
  79. package/dist/cjs/resources/tax/reviewItems.js +116 -0
  80. package/dist/cjs/resources/tax/ruleSet.js +68 -0
  81. package/dist/cjs/resources/tax/salesDestinations.js +94 -0
  82. package/dist/cjs/resources/tax/settings.js +104 -0
  83. package/dist/cjs/resources/tax/shared.js +62 -0
  84. package/dist/cjs/resources/tax/transactions.js +102 -0
  85. package/dist/cjs/route.js +22 -0
  86. package/dist/cjs/routes.js +31 -0
  87. package/dist/cjs/vocabulary/billingPortal.js +15 -0
  88. package/dist/cjs/vocabulary/catalog.js +110 -0
  89. package/dist/cjs/vocabulary/checkout.js +53 -0
  90. package/dist/cjs/vocabulary/connect.js +95 -0
  91. package/dist/cjs/vocabulary/dashboard.js +68 -0
  92. package/dist/cjs/vocabulary/errors.js +175 -0
  93. package/dist/cjs/vocabulary/events.js +176 -0
  94. package/dist/cjs/vocabulary/files.js +44 -0
  95. package/dist/cjs/vocabulary/identity.js +12 -0
  96. package/dist/cjs/vocabulary/index.js +39 -0
  97. package/dist/cjs/vocabulary/invoices.js +52 -0
  98. package/dist/cjs/vocabulary/lists.js +22 -0
  99. package/dist/cjs/vocabulary/merchants.js +23 -0
  100. package/dist/cjs/vocabulary/money.js +104 -0
  101. package/dist/cjs/vocabulary/paymentMethodConfigurations.js +36 -0
  102. package/dist/cjs/vocabulary/payments.js +195 -0
  103. package/dist/cjs/vocabulary/reporting.js +27 -0
  104. package/dist/cjs/vocabulary/subscriptions.js +60 -0
  105. package/dist/cjs/vocabulary/tax.js +237 -0
  106. package/dist/cjs/vocabulary/version.js +12 -0
  107. package/dist/esm/common/address.js +76 -0
  108. package/dist/esm/common/envelopes.js +95 -0
  109. package/dist/esm/common/objects.js +74 -0
  110. package/dist/esm/common/params.js +203 -0
  111. package/dist/esm/common/primitives.js +35 -0
  112. package/dist/esm/contributions.js +5 -0
  113. package/dist/esm/index.js +26 -134
  114. package/dist/esm/openapi/document.js +294 -0
  115. package/dist/esm/openapi/index.js +2 -0
  116. package/dist/esm/openapi/webhooks.js +14 -0
  117. package/dist/esm/resources/billingEngine/billingPortal.js +234 -0
  118. package/dist/esm/resources/billingEngine/creditNotes.js +186 -0
  119. package/dist/esm/resources/billingEngine/customerBalanceTransactions.js +87 -0
  120. package/dist/esm/resources/billingEngine/index.js +26 -0
  121. package/dist/esm/resources/billingEngine/invoiceItems.js +152 -0
  122. package/dist/esm/resources/billingEngine/invoices.js +506 -0
  123. package/dist/esm/resources/billingEngine/params.js +39 -0
  124. package/dist/esm/resources/billingEngine/public.js +323 -0
  125. package/dist/esm/resources/billingEngine/subscriptions.js +473 -0
  126. package/dist/esm/resources/catalog/billing.js +752 -0
  127. package/dist/esm/resources/catalog/billingSettings.js +128 -0
  128. package/dist/esm/resources/catalog/coupons.js +219 -0
  129. package/dist/esm/resources/catalog/entitlements.js +254 -0
  130. package/dist/esm/resources/catalog/index.js +38 -0
  131. package/dist/esm/resources/catalog/meters.js +276 -0
  132. package/dist/esm/resources/catalog/prices.js +419 -0
  133. package/dist/esm/resources/catalog/products.js +225 -0
  134. package/dist/esm/resources/catalog/promotionCodes.js +171 -0
  135. package/dist/esm/resources/catalog/shared.js +67 -0
  136. package/dist/esm/resources/catalog/testClocks.js +124 -0
  137. package/dist/esm/resources/checkout/checkoutSessions.js +579 -0
  138. package/dist/esm/resources/checkout/contributions.js +167 -0
  139. package/dist/esm/resources/checkout/files.js +130 -0
  140. package/dist/esm/resources/checkout/index.js +25 -0
  141. package/dist/esm/resources/checkout/merchants.js +287 -0
  142. package/dist/esm/resources/checkout/paymentLinks.js +327 -0
  143. package/dist/esm/resources/checkout/paymentMethodConfigurations.js +259 -0
  144. package/dist/esm/resources/checkout/shared.js +363 -0
  145. package/dist/esm/resources/connect/account.js +329 -0
  146. package/dist/esm/resources/connect/applicationFees.js +110 -0
  147. package/dist/esm/resources/connect/balance.js +209 -0
  148. package/dist/esm/resources/connect/connectedAccounts.js +257 -0
  149. package/dist/esm/resources/connect/index.js +34 -0
  150. package/dist/esm/resources/connect/onboarding.js +79 -0
  151. package/dist/esm/resources/connect/payouts.js +193 -0
  152. package/dist/esm/resources/connect/reporting.js +232 -0
  153. package/dist/esm/resources/connect/requestLogs.js +107 -0
  154. package/dist/esm/resources/connect/transfers.js +224 -0
  155. package/dist/esm/resources/core/customers.js +191 -0
  156. package/dist/esm/resources/core/index.js +6 -0
  157. package/dist/esm/resources/core/paymentMethods.js +131 -0
  158. package/dist/esm/resources/events/events.js +353 -0
  159. package/dist/esm/resources/events/index.js +12 -0
  160. package/dist/esm/resources/events/webhookDeliveries.js +90 -0
  161. package/dist/esm/resources/events/webhookEndpoints.js +212 -0
  162. package/dist/esm/resources/payments/charges.js +154 -0
  163. package/dist/esm/resources/payments/disputes.js +201 -0
  164. package/dist/esm/resources/payments/index.js +24 -0
  165. package/dist/esm/resources/payments/paymentIntents.js +526 -0
  166. package/dist/esm/resources/payments/refunds.js +242 -0
  167. package/dist/esm/resources/payments/setupIntents.js +155 -0
  168. package/dist/esm/resources/payments/social.js +179 -0
  169. package/dist/esm/resources/payments/testHelpers.js +36 -0
  170. package/dist/esm/resources/tax/assessments.js +214 -0
  171. package/dist/esm/resources/tax/businessProfile.js +96 -0
  172. package/dist/esm/resources/tax/calculations.js +173 -0
  173. package/dist/esm/resources/tax/capabilities.js +39 -0
  174. package/dist/esm/resources/tax/codes.js +34 -0
  175. package/dist/esm/resources/tax/complianceActions.js +53 -0
  176. package/dist/esm/resources/tax/deadlines.js +56 -0
  177. package/dist/esm/resources/tax/documents.js +125 -0
  178. package/dist/esm/resources/tax/index.js +63 -0
  179. package/dist/esm/resources/tax/locationEvidence.js +128 -0
  180. package/dist/esm/resources/tax/operatingLocations.js +95 -0
  181. package/dist/esm/resources/tax/products.js +64 -0
  182. package/dist/esm/resources/tax/registrationDeclarations.js +121 -0
  183. package/dist/esm/resources/tax/registrations.js +79 -0
  184. package/dist/esm/resources/tax/reports.js +89 -0
  185. package/dist/esm/resources/tax/reviewItems.js +113 -0
  186. package/dist/esm/resources/tax/ruleSet.js +65 -0
  187. package/dist/esm/resources/tax/salesDestinations.js +91 -0
  188. package/dist/esm/resources/tax/settings.js +101 -0
  189. package/dist/esm/resources/tax/shared.js +58 -0
  190. package/dist/esm/resources/tax/transactions.js +99 -0
  191. package/dist/esm/route.js +16 -0
  192. package/dist/esm/routes.js +27 -0
  193. package/dist/esm/vocabulary/billingPortal.js +12 -0
  194. package/dist/esm/vocabulary/catalog.js +106 -0
  195. package/dist/esm/vocabulary/checkout.js +50 -0
  196. package/dist/esm/vocabulary/connect.js +92 -0
  197. package/dist/esm/vocabulary/dashboard.js +64 -0
  198. package/dist/esm/vocabulary/errors.js +170 -0
  199. package/dist/esm/vocabulary/events.js +173 -0
  200. package/dist/esm/vocabulary/files.js +41 -0
  201. package/dist/esm/vocabulary/identity.js +9 -0
  202. package/dist/esm/vocabulary/index.js +23 -0
  203. package/dist/esm/vocabulary/invoices.js +49 -0
  204. package/dist/esm/vocabulary/lists.js +19 -0
  205. package/dist/esm/vocabulary/merchants.js +20 -0
  206. package/dist/esm/vocabulary/money.js +98 -0
  207. package/dist/esm/vocabulary/paymentMethodConfigurations.js +33 -0
  208. package/dist/esm/vocabulary/payments.js +192 -0
  209. package/dist/esm/vocabulary/reporting.js +24 -0
  210. package/dist/esm/vocabulary/subscriptions.js +57 -0
  211. package/dist/esm/vocabulary/tax.js +233 -0
  212. package/dist/esm/vocabulary/version.js +9 -0
  213. package/dist/types/common/address.d.ts +62 -0
  214. package/dist/types/common/envelopes.d.ts +88 -0
  215. package/dist/types/common/objects.d.ts +107 -0
  216. package/dist/types/common/params.d.ts +156 -0
  217. package/dist/types/common/primitives.d.ts +56 -0
  218. package/dist/types/contributions.d.ts +1 -0
  219. package/dist/types/index.d.ts +16 -171
  220. package/dist/types/openapi/document.d.ts +16 -0
  221. package/dist/types/openapi/index.d.ts +2 -0
  222. package/dist/types/openapi/webhooks.d.ts +15 -0
  223. package/dist/types/resources/billingEngine/billingPortal.d.ts +742 -0
  224. package/dist/types/resources/billingEngine/creditNotes.d.ts +655 -0
  225. package/dist/types/resources/billingEngine/customerBalanceTransactions.d.ts +282 -0
  226. package/dist/types/resources/billingEngine/index.d.ts +6071 -0
  227. package/dist/types/resources/billingEngine/invoiceItems.d.ts +502 -0
  228. package/dist/types/resources/billingEngine/invoices.d.ts +2547 -0
  229. package/dist/types/resources/billingEngine/params.d.ts +51 -0
  230. package/dist/types/resources/billingEngine/public.d.ts +1860 -0
  231. package/dist/types/resources/billingEngine/subscriptions.d.ts +1519 -0
  232. package/dist/types/resources/catalog/billing.d.ts +1723 -0
  233. package/dist/types/resources/catalog/billingSettings.d.ts +160 -0
  234. package/dist/types/resources/catalog/coupons.d.ts +403 -0
  235. package/dist/types/resources/catalog/entitlements.d.ts +422 -0
  236. package/dist/types/resources/catalog/index.d.ts +3155 -0
  237. package/dist/types/resources/catalog/meters.d.ts +474 -0
  238. package/dist/types/resources/catalog/prices.d.ts +1091 -0
  239. package/dist/types/resources/catalog/products.d.ts +430 -0
  240. package/dist/types/resources/catalog/promotionCodes.d.ts +369 -0
  241. package/dist/types/resources/catalog/shared.d.ts +34 -0
  242. package/dist/types/resources/catalog/testClocks.d.ts +220 -0
  243. package/dist/types/resources/checkout/checkoutSessions.d.ts +3207 -0
  244. package/dist/types/resources/checkout/contributions.d.ts +375 -0
  245. package/dist/types/resources/checkout/files.d.ts +280 -0
  246. package/dist/types/resources/checkout/index.d.ts +5678 -0
  247. package/dist/types/resources/checkout/merchants.d.ts +395 -0
  248. package/dist/types/resources/checkout/paymentLinks.d.ts +1728 -0
  249. package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +2104 -0
  250. package/dist/types/resources/checkout/shared.d.ts +419 -0
  251. package/dist/types/resources/connect/account.d.ts +483 -0
  252. package/dist/types/resources/connect/applicationFees.d.ts +198 -0
  253. package/dist/types/resources/connect/balance.d.ts +399 -0
  254. package/dist/types/resources/connect/connectedAccounts.d.ts +494 -0
  255. package/dist/types/resources/connect/index.d.ts +2094 -0
  256. package/dist/types/resources/connect/onboarding.d.ts +95 -0
  257. package/dist/types/resources/connect/payouts.d.ts +527 -0
  258. package/dist/types/resources/connect/reporting.d.ts +506 -0
  259. package/dist/types/resources/connect/requestLogs.d.ts +236 -0
  260. package/dist/types/resources/connect/transfers.d.ts +436 -0
  261. package/dist/types/resources/core/customers.d.ts +619 -0
  262. package/dist/types/resources/core/index.d.ts +679 -0
  263. package/dist/types/resources/core/paymentMethods.d.ts +336 -0
  264. package/dist/types/resources/events/events.d.ts +731 -0
  265. package/dist/types/resources/events/index.d.ts +1727 -0
  266. package/dist/types/resources/events/webhookDeliveries.d.ts +436 -0
  267. package/dist/types/resources/events/webhookEndpoints.d.ts +1502 -0
  268. package/dist/types/resources/payments/charges.d.ts +390 -0
  269. package/dist/types/resources/payments/disputes.d.ts +822 -0
  270. package/dist/types/resources/payments/index.d.ts +3517 -0
  271. package/dist/types/resources/payments/paymentIntents.d.ts +2080 -0
  272. package/dist/types/resources/payments/refunds.d.ts +684 -0
  273. package/dist/types/resources/payments/setupIntents.d.ts +391 -0
  274. package/dist/types/resources/payments/social.d.ts +266 -0
  275. package/dist/types/resources/payments/testHelpers.d.ts +178 -0
  276. package/dist/types/resources/tax/assessments.d.ts +787 -0
  277. package/dist/types/resources/tax/businessProfile.d.ts +134 -0
  278. package/dist/types/resources/tax/calculations.d.ts +261 -0
  279. package/dist/types/resources/tax/capabilities.d.ts +81 -0
  280. package/dist/types/resources/tax/codes.d.ts +29 -0
  281. package/dist/types/resources/tax/complianceActions.d.ts +97 -0
  282. package/dist/types/resources/tax/deadlines.d.ts +133 -0
  283. package/dist/types/resources/tax/documents.d.ts +257 -0
  284. package/dist/types/resources/tax/index.d.ts +1946 -0
  285. package/dist/types/resources/tax/locationEvidence.d.ts +246 -0
  286. package/dist/types/resources/tax/operatingLocations.d.ts +170 -0
  287. package/dist/types/resources/tax/products.d.ts +68 -0
  288. package/dist/types/resources/tax/registrationDeclarations.d.ts +270 -0
  289. package/dist/types/resources/tax/registrations.d.ts +103 -0
  290. package/dist/types/resources/tax/reports.d.ts +129 -0
  291. package/dist/types/resources/tax/reviewItems.d.ts +226 -0
  292. package/dist/types/resources/tax/ruleSet.d.ts +219 -0
  293. package/dist/types/resources/tax/salesDestinations.d.ts +158 -0
  294. package/dist/types/resources/tax/settings.d.ts +122 -0
  295. package/dist/types/resources/tax/shared.d.ts +43 -0
  296. package/dist/types/resources/tax/transactions.d.ts +404 -0
  297. package/dist/types/route.d.ts +86 -0
  298. package/dist/types/routes.d.ts +23 -0
  299. package/dist/types/vocabulary/billingPortal.d.ts +15 -0
  300. package/dist/types/vocabulary/catalog.d.ts +97 -0
  301. package/dist/types/vocabulary/checkout.d.ts +49 -0
  302. package/dist/types/vocabulary/connect.d.ts +62 -0
  303. package/dist/types/vocabulary/dashboard.d.ts +44 -0
  304. package/dist/types/vocabulary/errors.d.ts +146 -0
  305. package/dist/types/vocabulary/events.d.ts +171 -0
  306. package/dist/types/vocabulary/files.d.ts +30 -0
  307. package/dist/types/vocabulary/identity.d.ts +9 -0
  308. package/dist/types/vocabulary/index.d.ts +19 -0
  309. package/dist/types/vocabulary/invoices.d.ts +39 -0
  310. package/dist/types/vocabulary/lists.d.ts +9 -0
  311. package/dist/types/vocabulary/merchants.d.ts +9 -0
  312. package/dist/types/vocabulary/money.d.ts +59 -0
  313. package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +22 -0
  314. package/dist/types/vocabulary/payments.d.ts +117 -0
  315. package/dist/types/vocabulary/reporting.d.ts +18 -0
  316. package/dist/types/vocabulary/subscriptions.d.ts +45 -0
  317. package/dist/types/vocabulary/tax.d.ts +163 -0
  318. package/dist/types/vocabulary/version.d.ts +10 -0
  319. package/package.json +51 -11
  320. package/dist/cjs/openapi.js +0 -165
  321. package/dist/esm/openapi.js +0 -161
  322. package/dist/types/openapi.d.ts +0 -148
@@ -0,0 +1,3155 @@
1
+ export * from './billing';
2
+ export * from './billingSettings';
3
+ export * from './coupons';
4
+ export * from './entitlements';
5
+ export * from './meters';
6
+ export * from './prices';
7
+ export * from './products';
8
+ export * from './promotionCodes';
9
+ export * from './testClocks';
10
+ export { baseUnitAmountParam, queryFlag, queryIdList } from './shared';
11
+ /**
12
+ * The catalog (products, prices, coupons, promotion codes), entitlements, the
13
+ * billing engine's platform objects (test clocks, billing settings, meters)
14
+ * and the recurring billing transport (`/v1/billing/*`).
15
+ */
16
+ export declare const catalogRoutes: readonly [{
17
+ readonly operationId: "createProduct";
18
+ readonly method: "post";
19
+ readonly path: "/v1/products";
20
+ readonly tag: "Products";
21
+ readonly summary: "Create a product";
22
+ readonly description: "`default_price_data` creates its default price in the same request.";
23
+ readonly auth: "service";
24
+ readonly scope: "payments:write";
25
+ readonly idempotent: true;
26
+ readonly body: import("zod").ZodObject<{
27
+ name: import("zod").ZodString;
28
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
29
+ description: import("zod").ZodOptional<import("zod").ZodString>;
30
+ images: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
31
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<Record<string, string>, Record<string, string>>>>;
32
+ tax_code: import("zod").ZodOptional<import("zod").ZodString>;
33
+ default_price_data: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodObject<{
34
+ currency: import("zod").ZodEnum<{
35
+ FAIR: "FAIR";
36
+ EUR: "EUR";
37
+ USD: "USD";
38
+ GBP: "GBP";
39
+ CHF: "CHF";
40
+ SEK: "SEK";
41
+ NOK: "NOK";
42
+ DKK: "DKK";
43
+ PLN: "PLN";
44
+ CZK: "CZK";
45
+ CAD: "CAD";
46
+ AUD: "AUD";
47
+ JPY: "JPY";
48
+ }>;
49
+ unit_amount: import("zod").ZodString;
50
+ recurring: import("zod").ZodOptional<import("zod").ZodObject<{
51
+ interval: import("zod").ZodEnum<{
52
+ day: "day";
53
+ week: "week";
54
+ month: "month";
55
+ year: "year";
56
+ }>;
57
+ interval_count: import("zod").ZodOptional<import("zod").ZodNumber>;
58
+ }, import("zod/v4/core").$strict>>;
59
+ tax_behavior: import("zod").ZodOptional<import("zod").ZodEnum<{
60
+ inclusive: "inclusive";
61
+ exclusive: "exclusive";
62
+ unspecified: "unspecified";
63
+ }>>;
64
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("./prices").ParsedPriceShape, {
65
+ currency: "FAIR" | "EUR" | "USD" | "GBP" | "CHF" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "CAD" | "AUD" | "JPY";
66
+ unit_amount: string;
67
+ recurring?: {
68
+ interval: "day" | "week" | "month" | "year";
69
+ interval_count?: number | undefined;
70
+ } | undefined;
71
+ tax_behavior?: "inclusive" | "exclusive" | "unspecified" | undefined;
72
+ }>>>;
73
+ unit_label: import("zod").ZodOptional<import("zod").ZodString>;
74
+ url: import("zod").ZodOptional<import("zod").ZodString>;
75
+ statement_descriptor: import("zod").ZodOptional<import("zod").ZodString>;
76
+ marketing_features: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
77
+ name: import("zod").ZodString;
78
+ }, import("zod/v4/core").$strict>>>;
79
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
80
+ }, import("zod/v4/core").$strict>;
81
+ readonly response: import("zod").ZodObject<{
82
+ id: import("zod").ZodString;
83
+ object: import("zod").ZodLiteral<"product">;
84
+ livemode: import("zod").ZodBoolean;
85
+ active: import("zod").ZodBoolean;
86
+ name: import("zod").ZodString;
87
+ description: import("zod").ZodNullable<import("zod").ZodString>;
88
+ images: import("zod").ZodArray<import("zod").ZodString>;
89
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
90
+ tax_code: import("zod").ZodNullable<import("zod").ZodString>;
91
+ default_price: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
92
+ unit_label: import("zod").ZodNullable<import("zod").ZodString>;
93
+ url: import("zod").ZodNullable<import("zod").ZodString>;
94
+ statement_descriptor: import("zod").ZodNullable<import("zod").ZodString>;
95
+ marketing_features: import("zod").ZodArray<import("zod").ZodObject<{
96
+ name: import("zod").ZodString;
97
+ }, import("zod/v4/core").$strict>>;
98
+ created: import("zod").ZodNumber;
99
+ updated: import("zod").ZodNumber;
100
+ }, import("zod/v4/core").$strict>;
101
+ readonly sdk: "products.create";
102
+ readonly expandable: "product";
103
+ }, {
104
+ readonly operationId: "listProducts";
105
+ readonly method: "get";
106
+ readonly path: "/v1/products";
107
+ readonly tag: "Products";
108
+ readonly summary: "List products";
109
+ readonly auth: "service";
110
+ readonly scope: "payments:read";
111
+ readonly query: import("zod").ZodObject<{
112
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
113
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
114
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
115
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
116
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
117
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
118
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
119
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
120
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
121
+ gt?: number | undefined;
122
+ gte?: number | undefined;
123
+ lt?: number | undefined;
124
+ lte?: number | undefined;
125
+ }>>]>>;
126
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
127
+ active: import("zod").ZodOptional<import("zod").ZodType<boolean, boolean, import("zod/v4/core").$ZodTypeInternals<boolean, boolean>>>;
128
+ ids: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
129
+ }, import("zod/v4/core").$strict>;
130
+ readonly response: import("zod").ZodObject<{
131
+ object: import("zod").ZodLiteral<"list">;
132
+ data: import("zod").ZodArray<import("zod").ZodObject<{
133
+ id: import("zod").ZodString;
134
+ object: import("zod").ZodLiteral<"product">;
135
+ livemode: import("zod").ZodBoolean;
136
+ active: import("zod").ZodBoolean;
137
+ name: import("zod").ZodString;
138
+ description: import("zod").ZodNullable<import("zod").ZodString>;
139
+ images: import("zod").ZodArray<import("zod").ZodString>;
140
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
141
+ tax_code: import("zod").ZodNullable<import("zod").ZodString>;
142
+ default_price: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
143
+ unit_label: import("zod").ZodNullable<import("zod").ZodString>;
144
+ url: import("zod").ZodNullable<import("zod").ZodString>;
145
+ statement_descriptor: import("zod").ZodNullable<import("zod").ZodString>;
146
+ marketing_features: import("zod").ZodArray<import("zod").ZodObject<{
147
+ name: import("zod").ZodString;
148
+ }, import("zod/v4/core").$strict>>;
149
+ created: import("zod").ZodNumber;
150
+ updated: import("zod").ZodNumber;
151
+ }, import("zod/v4/core").$strict>>;
152
+ has_more: import("zod").ZodBoolean;
153
+ url: import("zod").ZodString;
154
+ }, import("zod/v4/core").$strict>;
155
+ readonly sdk: "products.list";
156
+ readonly expandable: "product";
157
+ }, {
158
+ readonly operationId: "retrieveProduct";
159
+ readonly method: "get";
160
+ readonly path: "/v1/products/{id}";
161
+ readonly tag: "Products";
162
+ readonly summary: "Retrieve a product";
163
+ readonly auth: "service";
164
+ readonly scope: "payments:read";
165
+ readonly params: {
166
+ readonly id: "The product (`prod_…`).";
167
+ };
168
+ readonly query: import("zod").ZodObject<{
169
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
170
+ }, import("zod/v4/core").$strict>;
171
+ readonly response: import("zod").ZodObject<{
172
+ id: import("zod").ZodString;
173
+ object: import("zod").ZodLiteral<"product">;
174
+ livemode: import("zod").ZodBoolean;
175
+ active: import("zod").ZodBoolean;
176
+ name: import("zod").ZodString;
177
+ description: import("zod").ZodNullable<import("zod").ZodString>;
178
+ images: import("zod").ZodArray<import("zod").ZodString>;
179
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
180
+ tax_code: import("zod").ZodNullable<import("zod").ZodString>;
181
+ default_price: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
182
+ unit_label: import("zod").ZodNullable<import("zod").ZodString>;
183
+ url: import("zod").ZodNullable<import("zod").ZodString>;
184
+ statement_descriptor: import("zod").ZodNullable<import("zod").ZodString>;
185
+ marketing_features: import("zod").ZodArray<import("zod").ZodObject<{
186
+ name: import("zod").ZodString;
187
+ }, import("zod/v4/core").$strict>>;
188
+ created: import("zod").ZodNumber;
189
+ updated: import("zod").ZodNumber;
190
+ }, import("zod/v4/core").$strict>;
191
+ readonly sdk: "products.retrieve";
192
+ readonly expandable: "product";
193
+ }, {
194
+ readonly operationId: "updateProduct";
195
+ readonly method: "post";
196
+ readonly path: "/v1/products/{id}";
197
+ readonly tag: "Products";
198
+ readonly summary: "Update a product";
199
+ readonly description: "A field sent as `\"\"` is cleared; `metadata` is a patch.";
200
+ readonly auth: "service";
201
+ readonly scope: "payments:write";
202
+ readonly idempotent: true;
203
+ readonly params: {
204
+ readonly id: "The product (`prod_…`).";
205
+ };
206
+ readonly body: import("zod").ZodObject<{
207
+ name: import("zod").ZodOptional<import("zod").ZodString>;
208
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
209
+ description: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
210
+ images: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
211
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
212
+ tax_code: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
213
+ default_price: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
214
+ unit_label: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
215
+ url: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
216
+ statement_descriptor: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
217
+ marketing_features: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
218
+ name: import("zod").ZodString;
219
+ }, import("zod/v4/core").$strict>>>;
220
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
221
+ }, import("zod/v4/core").$strict>;
222
+ readonly response: import("zod").ZodObject<{
223
+ id: import("zod").ZodString;
224
+ object: import("zod").ZodLiteral<"product">;
225
+ livemode: import("zod").ZodBoolean;
226
+ active: import("zod").ZodBoolean;
227
+ name: import("zod").ZodString;
228
+ description: import("zod").ZodNullable<import("zod").ZodString>;
229
+ images: import("zod").ZodArray<import("zod").ZodString>;
230
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
231
+ tax_code: import("zod").ZodNullable<import("zod").ZodString>;
232
+ default_price: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
233
+ unit_label: import("zod").ZodNullable<import("zod").ZodString>;
234
+ url: import("zod").ZodNullable<import("zod").ZodString>;
235
+ statement_descriptor: import("zod").ZodNullable<import("zod").ZodString>;
236
+ marketing_features: import("zod").ZodArray<import("zod").ZodObject<{
237
+ name: import("zod").ZodString;
238
+ }, import("zod/v4/core").$strict>>;
239
+ created: import("zod").ZodNumber;
240
+ updated: import("zod").ZodNumber;
241
+ }, import("zod/v4/core").$strict>;
242
+ readonly sdk: "products.update";
243
+ readonly expandable: "product";
244
+ }, {
245
+ readonly operationId: "deleteProduct";
246
+ readonly method: "delete";
247
+ readonly path: "/v1/products/{id}";
248
+ readonly tag: "Products";
249
+ readonly summary: "Delete a product";
250
+ readonly description: "Only a product nothing names; one with prices is archived with `active: false`.";
251
+ readonly auth: "service";
252
+ readonly scope: "payments:write";
253
+ readonly params: {
254
+ readonly id: "The product (`prod_…`).";
255
+ };
256
+ readonly response: import("zod").ZodObject<{
257
+ id: import("zod").ZodString;
258
+ object: import("zod").ZodLiteral<"product">;
259
+ deleted: import("zod").ZodLiteral<true>;
260
+ }, import("zod/v4/core").$strict>;
261
+ readonly sdk: "products.del";
262
+ }, {
263
+ readonly operationId: "searchProducts";
264
+ readonly method: "get";
265
+ readonly path: "/v1/products/search";
266
+ readonly tag: "Products";
267
+ readonly summary: "Search products";
268
+ readonly description: "Stripe's query language over `active`, `name`, `description`, `url`, `created` and `metadata['key']`.";
269
+ readonly auth: "service";
270
+ readonly scope: "payments:read";
271
+ readonly query: import("zod").ZodObject<{
272
+ query: import("zod").ZodString;
273
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
274
+ page: import("zod").ZodOptional<import("zod").ZodString>;
275
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
276
+ }, import("zod/v4/core").$strict>;
277
+ readonly response: import("zod").ZodObject<{
278
+ object: import("zod").ZodLiteral<"search_result">;
279
+ data: import("zod").ZodArray<import("zod").ZodObject<{
280
+ id: import("zod").ZodString;
281
+ object: import("zod").ZodLiteral<"product">;
282
+ livemode: import("zod").ZodBoolean;
283
+ active: import("zod").ZodBoolean;
284
+ name: import("zod").ZodString;
285
+ description: import("zod").ZodNullable<import("zod").ZodString>;
286
+ images: import("zod").ZodArray<import("zod").ZodString>;
287
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
288
+ tax_code: import("zod").ZodNullable<import("zod").ZodString>;
289
+ default_price: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
290
+ unit_label: import("zod").ZodNullable<import("zod").ZodString>;
291
+ url: import("zod").ZodNullable<import("zod").ZodString>;
292
+ statement_descriptor: import("zod").ZodNullable<import("zod").ZodString>;
293
+ marketing_features: import("zod").ZodArray<import("zod").ZodObject<{
294
+ name: import("zod").ZodString;
295
+ }, import("zod/v4/core").$strict>>;
296
+ created: import("zod").ZodNumber;
297
+ updated: import("zod").ZodNumber;
298
+ }, import("zod/v4/core").$strict>>;
299
+ has_more: import("zod").ZodBoolean;
300
+ next_page: import("zod").ZodNullable<import("zod").ZodString>;
301
+ url: import("zod").ZodString;
302
+ total_count: import("zod").ZodOptional<import("zod").ZodNumber>;
303
+ }, import("zod/v4/core").$strict>;
304
+ readonly sdk: "products.search";
305
+ readonly expandable: "product";
306
+ }, {
307
+ readonly operationId: "createPrice";
308
+ readonly method: "post";
309
+ readonly path: "/v1/prices";
310
+ readonly tag: "Prices";
311
+ readonly summary: "Create a price";
312
+ readonly auth: "service";
313
+ readonly scope: "payments:write";
314
+ readonly idempotent: true;
315
+ readonly body: import("zod").ZodPipe<import("zod").ZodObject<{
316
+ product: import("zod").ZodString;
317
+ lookup_key: import("zod").ZodOptional<import("zod").ZodString>;
318
+ transfer_lookup_key: import("zod").ZodOptional<import("zod").ZodBoolean>;
319
+ nickname: import("zod").ZodOptional<import("zod").ZodString>;
320
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
321
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<Record<string, string>, Record<string, string>>>>;
322
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
323
+ currency: import("zod").ZodEnum<{
324
+ FAIR: "FAIR";
325
+ EUR: "EUR";
326
+ USD: "USD";
327
+ GBP: "GBP";
328
+ CHF: "CHF";
329
+ SEK: "SEK";
330
+ NOK: "NOK";
331
+ DKK: "DKK";
332
+ PLN: "PLN";
333
+ CZK: "CZK";
334
+ CAD: "CAD";
335
+ AUD: "AUD";
336
+ JPY: "JPY";
337
+ }>;
338
+ unit_amount: import("zod").ZodOptional<import("zod").ZodString>;
339
+ billing_scheme: import("zod").ZodOptional<import("zod").ZodEnum<{
340
+ per_unit: "per_unit";
341
+ tiered: "tiered";
342
+ }>>;
343
+ tiers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
344
+ up_to: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"inf">]>;
345
+ unit_amount: import("zod").ZodOptional<import("zod").ZodString>;
346
+ flat_amount: import("zod").ZodOptional<import("zod").ZodString>;
347
+ }, import("zod/v4/core").$strict>>>;
348
+ tiers_mode: import("zod").ZodOptional<import("zod").ZodEnum<{
349
+ graduated: "graduated";
350
+ volume: "volume";
351
+ }>>;
352
+ transform_quantity: import("zod").ZodOptional<import("zod").ZodObject<{
353
+ divide_by: import("zod").ZodNumber;
354
+ round: import("zod").ZodEnum<{
355
+ up: "up";
356
+ down: "down";
357
+ }>;
358
+ }, import("zod/v4/core").$strict>>;
359
+ recurring: import("zod").ZodOptional<import("zod").ZodObject<{
360
+ interval: import("zod").ZodEnum<{
361
+ day: "day";
362
+ week: "week";
363
+ month: "month";
364
+ year: "year";
365
+ }>;
366
+ interval_count: import("zod").ZodOptional<import("zod").ZodNumber>;
367
+ usage_type: import("zod").ZodOptional<import("zod").ZodEnum<{
368
+ licensed: "licensed";
369
+ metered: "metered";
370
+ }>>;
371
+ meter: import("zod").ZodOptional<import("zod").ZodString>;
372
+ }, import("zod/v4/core").$strict>>;
373
+ tax_behavior: import("zod").ZodOptional<import("zod").ZodEnum<{
374
+ inclusive: "inclusive";
375
+ exclusive: "exclusive";
376
+ unspecified: "unspecified";
377
+ }>>;
378
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<{
379
+ shape: import("./prices").ParsedPriceShape;
380
+ product: string;
381
+ currency: "FAIR" | "EUR" | "USD" | "GBP" | "CHF" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "CAD" | "AUD" | "JPY";
382
+ lookup_key?: string | undefined;
383
+ transfer_lookup_key?: boolean | undefined;
384
+ nickname?: string | undefined;
385
+ active?: boolean | undefined;
386
+ metadata?: Record<string, string> | undefined;
387
+ expand?: string[] | undefined;
388
+ unit_amount?: string | undefined;
389
+ billing_scheme?: "per_unit" | "tiered" | undefined;
390
+ tiers?: {
391
+ up_to: number | "inf";
392
+ unit_amount?: string | undefined;
393
+ flat_amount?: string | undefined;
394
+ }[] | undefined;
395
+ tiers_mode?: "graduated" | "volume" | undefined;
396
+ transform_quantity?: {
397
+ divide_by: number;
398
+ round: "up" | "down";
399
+ } | undefined;
400
+ recurring?: {
401
+ interval: "day" | "week" | "month" | "year";
402
+ interval_count?: number | undefined;
403
+ usage_type?: "licensed" | "metered" | undefined;
404
+ meter?: string | undefined;
405
+ } | undefined;
406
+ tax_behavior?: "inclusive" | "exclusive" | "unspecified" | undefined;
407
+ }, {
408
+ product: string;
409
+ currency: "FAIR" | "EUR" | "USD" | "GBP" | "CHF" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "CAD" | "AUD" | "JPY";
410
+ lookup_key?: string | undefined;
411
+ transfer_lookup_key?: boolean | undefined;
412
+ nickname?: string | undefined;
413
+ active?: boolean | undefined;
414
+ metadata?: Record<string, string> | undefined;
415
+ expand?: string[] | undefined;
416
+ unit_amount?: string | undefined;
417
+ billing_scheme?: "per_unit" | "tiered" | undefined;
418
+ tiers?: {
419
+ up_to: number | "inf";
420
+ unit_amount?: string | undefined;
421
+ flat_amount?: string | undefined;
422
+ }[] | undefined;
423
+ tiers_mode?: "graduated" | "volume" | undefined;
424
+ transform_quantity?: {
425
+ divide_by: number;
426
+ round: "up" | "down";
427
+ } | undefined;
428
+ recurring?: {
429
+ interval: "day" | "week" | "month" | "year";
430
+ interval_count?: number | undefined;
431
+ usage_type?: "licensed" | "metered" | undefined;
432
+ meter?: string | undefined;
433
+ } | undefined;
434
+ tax_behavior?: "inclusive" | "exclusive" | "unspecified" | undefined;
435
+ }>>;
436
+ readonly response: import("zod").ZodObject<{
437
+ id: import("zod").ZodString;
438
+ object: import("zod").ZodLiteral<"price">;
439
+ livemode: import("zod").ZodBoolean;
440
+ active: import("zod").ZodBoolean;
441
+ product: import("zod").ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>;
442
+ currency: import("zod").ZodEnum<{
443
+ FAIR: "FAIR";
444
+ EUR: "EUR";
445
+ USD: "USD";
446
+ GBP: "GBP";
447
+ CHF: "CHF";
448
+ SEK: "SEK";
449
+ NOK: "NOK";
450
+ DKK: "DKK";
451
+ PLN: "PLN";
452
+ CZK: "CZK";
453
+ CAD: "CAD";
454
+ AUD: "AUD";
455
+ JPY: "JPY";
456
+ }>;
457
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
458
+ billing_scheme: import("zod").ZodEnum<{
459
+ per_unit: "per_unit";
460
+ tiered: "tiered";
461
+ }>;
462
+ tiers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
463
+ up_to: import("zod").ZodNullable<import("zod").ZodNumber>;
464
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
465
+ flat_amount: import("zod").ZodNullable<import("zod").ZodString>;
466
+ }, import("zod/v4/core").$strict>>>;
467
+ tiers_mode: import("zod").ZodNullable<import("zod").ZodEnum<{
468
+ graduated: "graduated";
469
+ volume: "volume";
470
+ }>>;
471
+ transform_quantity: import("zod").ZodNullable<import("zod").ZodObject<{
472
+ divide_by: import("zod").ZodNumber;
473
+ round: import("zod").ZodEnum<{
474
+ up: "up";
475
+ down: "down";
476
+ }>;
477
+ }, import("zod/v4/core").$strict>>;
478
+ type: import("zod").ZodEnum<{
479
+ one_time: "one_time";
480
+ recurring: "recurring";
481
+ }>;
482
+ recurring: import("zod").ZodNullable<import("zod").ZodObject<{
483
+ interval: import("zod").ZodEnum<{
484
+ day: "day";
485
+ week: "week";
486
+ month: "month";
487
+ year: "year";
488
+ }>;
489
+ interval_count: import("zod").ZodNumber;
490
+ usage_type: import("zod").ZodEnum<{
491
+ licensed: "licensed";
492
+ metered: "metered";
493
+ }>;
494
+ meter: import("zod").ZodNullable<import("zod").ZodString>;
495
+ }, import("zod/v4/core").$strict>>;
496
+ tax_behavior: import("zod").ZodEnum<{
497
+ inclusive: "inclusive";
498
+ exclusive: "exclusive";
499
+ unspecified: "unspecified";
500
+ }>;
501
+ lookup_key: import("zod").ZodNullable<import("zod").ZodString>;
502
+ nickname: import("zod").ZodNullable<import("zod").ZodString>;
503
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
504
+ created: import("zod").ZodNumber;
505
+ }, import("zod/v4/core").$strict>;
506
+ readonly sdk: "prices.create";
507
+ readonly expandable: "price";
508
+ }, {
509
+ readonly operationId: "listPrices";
510
+ readonly method: "get";
511
+ readonly path: "/v1/prices";
512
+ readonly tag: "Prices";
513
+ readonly summary: "List prices";
514
+ readonly description: "`lookup_keys` (at most 10) finds the current price of a plan by its stable name.";
515
+ readonly auth: "service";
516
+ readonly scope: "payments:read";
517
+ readonly query: import("zod").ZodObject<{
518
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
519
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
520
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
521
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
522
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
523
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
524
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
525
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
526
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
527
+ gt?: number | undefined;
528
+ gte?: number | undefined;
529
+ lt?: number | undefined;
530
+ lte?: number | undefined;
531
+ }>>]>>;
532
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
533
+ product: import("zod").ZodOptional<import("zod").ZodString>;
534
+ active: import("zod").ZodOptional<import("zod").ZodType<boolean, boolean, import("zod/v4/core").$ZodTypeInternals<boolean, boolean>>>;
535
+ type: import("zod").ZodOptional<import("zod").ZodEnum<{
536
+ one_time: "one_time";
537
+ recurring: "recurring";
538
+ }>>;
539
+ currency: import("zod").ZodOptional<import("zod").ZodEnum<{
540
+ FAIR: "FAIR";
541
+ EUR: "EUR";
542
+ USD: "USD";
543
+ GBP: "GBP";
544
+ CHF: "CHF";
545
+ SEK: "SEK";
546
+ NOK: "NOK";
547
+ DKK: "DKK";
548
+ PLN: "PLN";
549
+ CZK: "CZK";
550
+ CAD: "CAD";
551
+ AUD: "AUD";
552
+ JPY: "JPY";
553
+ }>>;
554
+ lookup_keys: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
555
+ recurring: import("zod").ZodOptional<import("zod").ZodObject<{
556
+ interval: import("zod").ZodOptional<import("zod").ZodEnum<{
557
+ day: "day";
558
+ week: "week";
559
+ month: "month";
560
+ year: "year";
561
+ }>>;
562
+ usage_type: import("zod").ZodOptional<import("zod").ZodEnum<{
563
+ licensed: "licensed";
564
+ metered: "metered";
565
+ }>>;
566
+ }, import("zod/v4/core").$strict>>;
567
+ }, import("zod/v4/core").$strict>;
568
+ readonly response: import("zod").ZodObject<{
569
+ object: import("zod").ZodLiteral<"list">;
570
+ data: import("zod").ZodArray<import("zod").ZodObject<{
571
+ id: import("zod").ZodString;
572
+ object: import("zod").ZodLiteral<"price">;
573
+ livemode: import("zod").ZodBoolean;
574
+ active: import("zod").ZodBoolean;
575
+ product: import("zod").ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>;
576
+ currency: import("zod").ZodEnum<{
577
+ FAIR: "FAIR";
578
+ EUR: "EUR";
579
+ USD: "USD";
580
+ GBP: "GBP";
581
+ CHF: "CHF";
582
+ SEK: "SEK";
583
+ NOK: "NOK";
584
+ DKK: "DKK";
585
+ PLN: "PLN";
586
+ CZK: "CZK";
587
+ CAD: "CAD";
588
+ AUD: "AUD";
589
+ JPY: "JPY";
590
+ }>;
591
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
592
+ billing_scheme: import("zod").ZodEnum<{
593
+ per_unit: "per_unit";
594
+ tiered: "tiered";
595
+ }>;
596
+ tiers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
597
+ up_to: import("zod").ZodNullable<import("zod").ZodNumber>;
598
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
599
+ flat_amount: import("zod").ZodNullable<import("zod").ZodString>;
600
+ }, import("zod/v4/core").$strict>>>;
601
+ tiers_mode: import("zod").ZodNullable<import("zod").ZodEnum<{
602
+ graduated: "graduated";
603
+ volume: "volume";
604
+ }>>;
605
+ transform_quantity: import("zod").ZodNullable<import("zod").ZodObject<{
606
+ divide_by: import("zod").ZodNumber;
607
+ round: import("zod").ZodEnum<{
608
+ up: "up";
609
+ down: "down";
610
+ }>;
611
+ }, import("zod/v4/core").$strict>>;
612
+ type: import("zod").ZodEnum<{
613
+ one_time: "one_time";
614
+ recurring: "recurring";
615
+ }>;
616
+ recurring: import("zod").ZodNullable<import("zod").ZodObject<{
617
+ interval: import("zod").ZodEnum<{
618
+ day: "day";
619
+ week: "week";
620
+ month: "month";
621
+ year: "year";
622
+ }>;
623
+ interval_count: import("zod").ZodNumber;
624
+ usage_type: import("zod").ZodEnum<{
625
+ licensed: "licensed";
626
+ metered: "metered";
627
+ }>;
628
+ meter: import("zod").ZodNullable<import("zod").ZodString>;
629
+ }, import("zod/v4/core").$strict>>;
630
+ tax_behavior: import("zod").ZodEnum<{
631
+ inclusive: "inclusive";
632
+ exclusive: "exclusive";
633
+ unspecified: "unspecified";
634
+ }>;
635
+ lookup_key: import("zod").ZodNullable<import("zod").ZodString>;
636
+ nickname: import("zod").ZodNullable<import("zod").ZodString>;
637
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
638
+ created: import("zod").ZodNumber;
639
+ }, import("zod/v4/core").$strict>>;
640
+ has_more: import("zod").ZodBoolean;
641
+ url: import("zod").ZodString;
642
+ }, import("zod/v4/core").$strict>;
643
+ readonly sdk: "prices.list";
644
+ readonly expandable: "price";
645
+ }, {
646
+ readonly operationId: "retrievePrice";
647
+ readonly method: "get";
648
+ readonly path: "/v1/prices/{id}";
649
+ readonly tag: "Prices";
650
+ readonly summary: "Retrieve a price";
651
+ readonly auth: "service";
652
+ readonly scope: "payments:read";
653
+ readonly params: {
654
+ readonly id: "The price (`price_…`).";
655
+ };
656
+ readonly query: import("zod").ZodObject<{
657
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
658
+ }, import("zod/v4/core").$strict>;
659
+ readonly response: import("zod").ZodObject<{
660
+ id: import("zod").ZodString;
661
+ object: import("zod").ZodLiteral<"price">;
662
+ livemode: import("zod").ZodBoolean;
663
+ active: import("zod").ZodBoolean;
664
+ product: import("zod").ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>;
665
+ currency: import("zod").ZodEnum<{
666
+ FAIR: "FAIR";
667
+ EUR: "EUR";
668
+ USD: "USD";
669
+ GBP: "GBP";
670
+ CHF: "CHF";
671
+ SEK: "SEK";
672
+ NOK: "NOK";
673
+ DKK: "DKK";
674
+ PLN: "PLN";
675
+ CZK: "CZK";
676
+ CAD: "CAD";
677
+ AUD: "AUD";
678
+ JPY: "JPY";
679
+ }>;
680
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
681
+ billing_scheme: import("zod").ZodEnum<{
682
+ per_unit: "per_unit";
683
+ tiered: "tiered";
684
+ }>;
685
+ tiers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
686
+ up_to: import("zod").ZodNullable<import("zod").ZodNumber>;
687
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
688
+ flat_amount: import("zod").ZodNullable<import("zod").ZodString>;
689
+ }, import("zod/v4/core").$strict>>>;
690
+ tiers_mode: import("zod").ZodNullable<import("zod").ZodEnum<{
691
+ graduated: "graduated";
692
+ volume: "volume";
693
+ }>>;
694
+ transform_quantity: import("zod").ZodNullable<import("zod").ZodObject<{
695
+ divide_by: import("zod").ZodNumber;
696
+ round: import("zod").ZodEnum<{
697
+ up: "up";
698
+ down: "down";
699
+ }>;
700
+ }, import("zod/v4/core").$strict>>;
701
+ type: import("zod").ZodEnum<{
702
+ one_time: "one_time";
703
+ recurring: "recurring";
704
+ }>;
705
+ recurring: import("zod").ZodNullable<import("zod").ZodObject<{
706
+ interval: import("zod").ZodEnum<{
707
+ day: "day";
708
+ week: "week";
709
+ month: "month";
710
+ year: "year";
711
+ }>;
712
+ interval_count: import("zod").ZodNumber;
713
+ usage_type: import("zod").ZodEnum<{
714
+ licensed: "licensed";
715
+ metered: "metered";
716
+ }>;
717
+ meter: import("zod").ZodNullable<import("zod").ZodString>;
718
+ }, import("zod/v4/core").$strict>>;
719
+ tax_behavior: import("zod").ZodEnum<{
720
+ inclusive: "inclusive";
721
+ exclusive: "exclusive";
722
+ unspecified: "unspecified";
723
+ }>;
724
+ lookup_key: import("zod").ZodNullable<import("zod").ZodString>;
725
+ nickname: import("zod").ZodNullable<import("zod").ZodString>;
726
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
727
+ created: import("zod").ZodNumber;
728
+ }, import("zod/v4/core").$strict>;
729
+ readonly sdk: "prices.retrieve";
730
+ readonly expandable: "price";
731
+ }, {
732
+ readonly operationId: "updatePrice";
733
+ readonly method: "post";
734
+ readonly path: "/v1/prices/{id}";
735
+ readonly tag: "Prices";
736
+ readonly summary: "Update a price";
737
+ readonly description: "Only `active`, `nickname`, `metadata`, `lookup_key` and — while it is `unspecified` — `tax_behavior` change. To change an amount, create a new price and archive this one.";
738
+ readonly auth: "service";
739
+ readonly scope: "payments:write";
740
+ readonly idempotent: true;
741
+ readonly params: {
742
+ readonly id: "The price (`price_…`).";
743
+ };
744
+ readonly body: import("zod").ZodObject<{
745
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
746
+ nickname: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
747
+ lookup_key: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
748
+ transfer_lookup_key: import("zod").ZodOptional<import("zod").ZodBoolean>;
749
+ tax_behavior: import("zod").ZodOptional<import("zod").ZodEnum<{
750
+ inclusive: "inclusive";
751
+ exclusive: "exclusive";
752
+ unspecified: "unspecified";
753
+ }>>;
754
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
755
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
756
+ }, import("zod/v4/core").$strict>;
757
+ readonly response: import("zod").ZodObject<{
758
+ id: import("zod").ZodString;
759
+ object: import("zod").ZodLiteral<"price">;
760
+ livemode: import("zod").ZodBoolean;
761
+ active: import("zod").ZodBoolean;
762
+ product: import("zod").ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>;
763
+ currency: import("zod").ZodEnum<{
764
+ FAIR: "FAIR";
765
+ EUR: "EUR";
766
+ USD: "USD";
767
+ GBP: "GBP";
768
+ CHF: "CHF";
769
+ SEK: "SEK";
770
+ NOK: "NOK";
771
+ DKK: "DKK";
772
+ PLN: "PLN";
773
+ CZK: "CZK";
774
+ CAD: "CAD";
775
+ AUD: "AUD";
776
+ JPY: "JPY";
777
+ }>;
778
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
779
+ billing_scheme: import("zod").ZodEnum<{
780
+ per_unit: "per_unit";
781
+ tiered: "tiered";
782
+ }>;
783
+ tiers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
784
+ up_to: import("zod").ZodNullable<import("zod").ZodNumber>;
785
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
786
+ flat_amount: import("zod").ZodNullable<import("zod").ZodString>;
787
+ }, import("zod/v4/core").$strict>>>;
788
+ tiers_mode: import("zod").ZodNullable<import("zod").ZodEnum<{
789
+ graduated: "graduated";
790
+ volume: "volume";
791
+ }>>;
792
+ transform_quantity: import("zod").ZodNullable<import("zod").ZodObject<{
793
+ divide_by: import("zod").ZodNumber;
794
+ round: import("zod").ZodEnum<{
795
+ up: "up";
796
+ down: "down";
797
+ }>;
798
+ }, import("zod/v4/core").$strict>>;
799
+ type: import("zod").ZodEnum<{
800
+ one_time: "one_time";
801
+ recurring: "recurring";
802
+ }>;
803
+ recurring: import("zod").ZodNullable<import("zod").ZodObject<{
804
+ interval: import("zod").ZodEnum<{
805
+ day: "day";
806
+ week: "week";
807
+ month: "month";
808
+ year: "year";
809
+ }>;
810
+ interval_count: import("zod").ZodNumber;
811
+ usage_type: import("zod").ZodEnum<{
812
+ licensed: "licensed";
813
+ metered: "metered";
814
+ }>;
815
+ meter: import("zod").ZodNullable<import("zod").ZodString>;
816
+ }, import("zod/v4/core").$strict>>;
817
+ tax_behavior: import("zod").ZodEnum<{
818
+ inclusive: "inclusive";
819
+ exclusive: "exclusive";
820
+ unspecified: "unspecified";
821
+ }>;
822
+ lookup_key: import("zod").ZodNullable<import("zod").ZodString>;
823
+ nickname: import("zod").ZodNullable<import("zod").ZodString>;
824
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
825
+ created: import("zod").ZodNumber;
826
+ }, import("zod/v4/core").$strict>;
827
+ readonly sdk: "prices.update";
828
+ readonly expandable: "price";
829
+ }, {
830
+ readonly operationId: "searchPrices";
831
+ readonly method: "get";
832
+ readonly path: "/v1/prices/search";
833
+ readonly tag: "Prices";
834
+ readonly summary: "Search prices";
835
+ readonly description: "Stripe's query language over `active`, `currency`, `product`, `type`, `lookup_key`, `created` and `metadata['key']`.";
836
+ readonly auth: "service";
837
+ readonly scope: "payments:read";
838
+ readonly query: import("zod").ZodObject<{
839
+ query: import("zod").ZodString;
840
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
841
+ page: import("zod").ZodOptional<import("zod").ZodString>;
842
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
843
+ }, import("zod/v4/core").$strict>;
844
+ readonly response: import("zod").ZodObject<{
845
+ object: import("zod").ZodLiteral<"search_result">;
846
+ data: import("zod").ZodArray<import("zod").ZodObject<{
847
+ id: import("zod").ZodString;
848
+ object: import("zod").ZodLiteral<"price">;
849
+ livemode: import("zod").ZodBoolean;
850
+ active: import("zod").ZodBoolean;
851
+ product: import("zod").ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>;
852
+ currency: import("zod").ZodEnum<{
853
+ FAIR: "FAIR";
854
+ EUR: "EUR";
855
+ USD: "USD";
856
+ GBP: "GBP";
857
+ CHF: "CHF";
858
+ SEK: "SEK";
859
+ NOK: "NOK";
860
+ DKK: "DKK";
861
+ PLN: "PLN";
862
+ CZK: "CZK";
863
+ CAD: "CAD";
864
+ AUD: "AUD";
865
+ JPY: "JPY";
866
+ }>;
867
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
868
+ billing_scheme: import("zod").ZodEnum<{
869
+ per_unit: "per_unit";
870
+ tiered: "tiered";
871
+ }>;
872
+ tiers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
873
+ up_to: import("zod").ZodNullable<import("zod").ZodNumber>;
874
+ unit_amount: import("zod").ZodNullable<import("zod").ZodString>;
875
+ flat_amount: import("zod").ZodNullable<import("zod").ZodString>;
876
+ }, import("zod/v4/core").$strict>>>;
877
+ tiers_mode: import("zod").ZodNullable<import("zod").ZodEnum<{
878
+ graduated: "graduated";
879
+ volume: "volume";
880
+ }>>;
881
+ transform_quantity: import("zod").ZodNullable<import("zod").ZodObject<{
882
+ divide_by: import("zod").ZodNumber;
883
+ round: import("zod").ZodEnum<{
884
+ up: "up";
885
+ down: "down";
886
+ }>;
887
+ }, import("zod/v4/core").$strict>>;
888
+ type: import("zod").ZodEnum<{
889
+ one_time: "one_time";
890
+ recurring: "recurring";
891
+ }>;
892
+ recurring: import("zod").ZodNullable<import("zod").ZodObject<{
893
+ interval: import("zod").ZodEnum<{
894
+ day: "day";
895
+ week: "week";
896
+ month: "month";
897
+ year: "year";
898
+ }>;
899
+ interval_count: import("zod").ZodNumber;
900
+ usage_type: import("zod").ZodEnum<{
901
+ licensed: "licensed";
902
+ metered: "metered";
903
+ }>;
904
+ meter: import("zod").ZodNullable<import("zod").ZodString>;
905
+ }, import("zod/v4/core").$strict>>;
906
+ tax_behavior: import("zod").ZodEnum<{
907
+ inclusive: "inclusive";
908
+ exclusive: "exclusive";
909
+ unspecified: "unspecified";
910
+ }>;
911
+ lookup_key: import("zod").ZodNullable<import("zod").ZodString>;
912
+ nickname: import("zod").ZodNullable<import("zod").ZodString>;
913
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
914
+ created: import("zod").ZodNumber;
915
+ }, import("zod/v4/core").$strict>>;
916
+ has_more: import("zod").ZodBoolean;
917
+ next_page: import("zod").ZodNullable<import("zod").ZodString>;
918
+ url: import("zod").ZodString;
919
+ total_count: import("zod").ZodOptional<import("zod").ZodNumber>;
920
+ }, import("zod/v4/core").$strict>;
921
+ readonly sdk: "prices.search";
922
+ readonly expandable: "price";
923
+ }, {
924
+ readonly operationId: "createCoupon";
925
+ readonly method: "post";
926
+ readonly path: "/v1/coupons";
927
+ readonly tag: "Coupons";
928
+ readonly summary: "Create a coupon";
929
+ readonly auth: "service";
930
+ readonly scope: "payments:write";
931
+ readonly idempotent: true;
932
+ readonly body: import("zod").ZodObject<{
933
+ id: import("zod").ZodOptional<import("zod").ZodString>;
934
+ name: import("zod").ZodOptional<import("zod").ZodString>;
935
+ percent_off: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
936
+ amount_off: import("zod").ZodOptional<import("zod").ZodString>;
937
+ currency: import("zod").ZodOptional<import("zod").ZodEnum<{
938
+ FAIR: "FAIR";
939
+ EUR: "EUR";
940
+ USD: "USD";
941
+ GBP: "GBP";
942
+ CHF: "CHF";
943
+ SEK: "SEK";
944
+ NOK: "NOK";
945
+ DKK: "DKK";
946
+ PLN: "PLN";
947
+ CZK: "CZK";
948
+ CAD: "CAD";
949
+ AUD: "AUD";
950
+ JPY: "JPY";
951
+ }>>;
952
+ duration: import("zod").ZodOptional<import("zod").ZodEnum<{
953
+ once: "once";
954
+ repeating: "repeating";
955
+ forever: "forever";
956
+ }>>;
957
+ duration_in_months: import("zod").ZodOptional<import("zod").ZodNumber>;
958
+ max_redemptions: import("zod").ZodOptional<import("zod").ZodNumber>;
959
+ redeem_by: import("zod").ZodOptional<import("zod").ZodNumber>;
960
+ applies_to: import("zod").ZodOptional<import("zod").ZodObject<{
961
+ products: import("zod").ZodArray<import("zod").ZodString>;
962
+ }, import("zod/v4/core").$strict>>;
963
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<Record<string, string>, Record<string, string>>>>;
964
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
965
+ }, import("zod/v4/core").$strict>;
966
+ readonly response: import("zod").ZodObject<{
967
+ id: import("zod").ZodString;
968
+ object: import("zod").ZodLiteral<"coupon">;
969
+ livemode: import("zod").ZodBoolean;
970
+ name: import("zod").ZodNullable<import("zod").ZodString>;
971
+ percent_off: import("zod").ZodNullable<import("zod").ZodNumber>;
972
+ amount_off: import("zod").ZodNullable<import("zod").ZodString>;
973
+ currency: import("zod").ZodNullable<import("zod").ZodEnum<{
974
+ FAIR: "FAIR";
975
+ EUR: "EUR";
976
+ USD: "USD";
977
+ GBP: "GBP";
978
+ CHF: "CHF";
979
+ SEK: "SEK";
980
+ NOK: "NOK";
981
+ DKK: "DKK";
982
+ PLN: "PLN";
983
+ CZK: "CZK";
984
+ CAD: "CAD";
985
+ AUD: "AUD";
986
+ JPY: "JPY";
987
+ }>>;
988
+ duration: import("zod").ZodEnum<{
989
+ once: "once";
990
+ repeating: "repeating";
991
+ forever: "forever";
992
+ }>;
993
+ duration_in_months: import("zod").ZodNullable<import("zod").ZodNumber>;
994
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
995
+ redeem_by: import("zod").ZodNullable<import("zod").ZodNumber>;
996
+ times_redeemed: import("zod").ZodNumber;
997
+ valid: import("zod").ZodBoolean;
998
+ applies_to: import("zod").ZodNullable<import("zod").ZodObject<{
999
+ products: import("zod").ZodArray<import("zod").ZodString>;
1000
+ }, import("zod/v4/core").$strict>>;
1001
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1002
+ created: import("zod").ZodNumber;
1003
+ }, import("zod/v4/core").$strict>;
1004
+ readonly sdk: "coupons.create";
1005
+ readonly expandable: "coupon";
1006
+ }, {
1007
+ readonly operationId: "listCoupons";
1008
+ readonly method: "get";
1009
+ readonly path: "/v1/coupons";
1010
+ readonly tag: "Coupons";
1011
+ readonly summary: "List coupons";
1012
+ readonly auth: "service";
1013
+ readonly scope: "payments:read";
1014
+ readonly query: import("zod").ZodObject<{
1015
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
1016
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
1017
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
1018
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
1019
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1020
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1021
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1022
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1023
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
1024
+ gt?: number | undefined;
1025
+ gte?: number | undefined;
1026
+ lt?: number | undefined;
1027
+ lte?: number | undefined;
1028
+ }>>]>>;
1029
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1030
+ }, import("zod/v4/core").$strict>;
1031
+ readonly response: import("zod").ZodObject<{
1032
+ object: import("zod").ZodLiteral<"list">;
1033
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1034
+ id: import("zod").ZodString;
1035
+ object: import("zod").ZodLiteral<"coupon">;
1036
+ livemode: import("zod").ZodBoolean;
1037
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1038
+ percent_off: import("zod").ZodNullable<import("zod").ZodNumber>;
1039
+ amount_off: import("zod").ZodNullable<import("zod").ZodString>;
1040
+ currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1041
+ FAIR: "FAIR";
1042
+ EUR: "EUR";
1043
+ USD: "USD";
1044
+ GBP: "GBP";
1045
+ CHF: "CHF";
1046
+ SEK: "SEK";
1047
+ NOK: "NOK";
1048
+ DKK: "DKK";
1049
+ PLN: "PLN";
1050
+ CZK: "CZK";
1051
+ CAD: "CAD";
1052
+ AUD: "AUD";
1053
+ JPY: "JPY";
1054
+ }>>;
1055
+ duration: import("zod").ZodEnum<{
1056
+ once: "once";
1057
+ repeating: "repeating";
1058
+ forever: "forever";
1059
+ }>;
1060
+ duration_in_months: import("zod").ZodNullable<import("zod").ZodNumber>;
1061
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1062
+ redeem_by: import("zod").ZodNullable<import("zod").ZodNumber>;
1063
+ times_redeemed: import("zod").ZodNumber;
1064
+ valid: import("zod").ZodBoolean;
1065
+ applies_to: import("zod").ZodNullable<import("zod").ZodObject<{
1066
+ products: import("zod").ZodArray<import("zod").ZodString>;
1067
+ }, import("zod/v4/core").$strict>>;
1068
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1069
+ created: import("zod").ZodNumber;
1070
+ }, import("zod/v4/core").$strict>>;
1071
+ has_more: import("zod").ZodBoolean;
1072
+ url: import("zod").ZodString;
1073
+ }, import("zod/v4/core").$strict>;
1074
+ readonly sdk: "coupons.list";
1075
+ readonly expandable: "coupon";
1076
+ }, {
1077
+ readonly operationId: "retrieveCoupon";
1078
+ readonly method: "get";
1079
+ readonly path: "/v1/coupons/{id}";
1080
+ readonly tag: "Coupons";
1081
+ readonly summary: "Retrieve a coupon";
1082
+ readonly auth: "service";
1083
+ readonly scope: "payments:read";
1084
+ readonly params: {
1085
+ readonly id: "The coupon (`SUMMER25`, `coupon_…`).";
1086
+ };
1087
+ readonly query: import("zod").ZodObject<{
1088
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1089
+ }, import("zod/v4/core").$strict>;
1090
+ readonly response: import("zod").ZodObject<{
1091
+ id: import("zod").ZodString;
1092
+ object: import("zod").ZodLiteral<"coupon">;
1093
+ livemode: import("zod").ZodBoolean;
1094
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1095
+ percent_off: import("zod").ZodNullable<import("zod").ZodNumber>;
1096
+ amount_off: import("zod").ZodNullable<import("zod").ZodString>;
1097
+ currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1098
+ FAIR: "FAIR";
1099
+ EUR: "EUR";
1100
+ USD: "USD";
1101
+ GBP: "GBP";
1102
+ CHF: "CHF";
1103
+ SEK: "SEK";
1104
+ NOK: "NOK";
1105
+ DKK: "DKK";
1106
+ PLN: "PLN";
1107
+ CZK: "CZK";
1108
+ CAD: "CAD";
1109
+ AUD: "AUD";
1110
+ JPY: "JPY";
1111
+ }>>;
1112
+ duration: import("zod").ZodEnum<{
1113
+ once: "once";
1114
+ repeating: "repeating";
1115
+ forever: "forever";
1116
+ }>;
1117
+ duration_in_months: import("zod").ZodNullable<import("zod").ZodNumber>;
1118
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1119
+ redeem_by: import("zod").ZodNullable<import("zod").ZodNumber>;
1120
+ times_redeemed: import("zod").ZodNumber;
1121
+ valid: import("zod").ZodBoolean;
1122
+ applies_to: import("zod").ZodNullable<import("zod").ZodObject<{
1123
+ products: import("zod").ZodArray<import("zod").ZodString>;
1124
+ }, import("zod/v4/core").$strict>>;
1125
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1126
+ created: import("zod").ZodNumber;
1127
+ }, import("zod/v4/core").$strict>;
1128
+ readonly sdk: "coupons.retrieve";
1129
+ readonly expandable: "coupon";
1130
+ }, {
1131
+ readonly operationId: "updateCoupon";
1132
+ readonly method: "post";
1133
+ readonly path: "/v1/coupons/{id}";
1134
+ readonly tag: "Coupons";
1135
+ readonly summary: "Update a coupon";
1136
+ readonly description: "Only `name` and `metadata` change.";
1137
+ readonly auth: "service";
1138
+ readonly scope: "payments:write";
1139
+ readonly idempotent: true;
1140
+ readonly params: {
1141
+ readonly id: "The coupon (`SUMMER25`, `coupon_…`).";
1142
+ };
1143
+ readonly body: import("zod").ZodObject<{
1144
+ name: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<"">]>, import("zod").ZodTransform<string | null, string>>>;
1145
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
1146
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1147
+ }, import("zod/v4/core").$strict>;
1148
+ readonly response: import("zod").ZodObject<{
1149
+ id: import("zod").ZodString;
1150
+ object: import("zod").ZodLiteral<"coupon">;
1151
+ livemode: import("zod").ZodBoolean;
1152
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1153
+ percent_off: import("zod").ZodNullable<import("zod").ZodNumber>;
1154
+ amount_off: import("zod").ZodNullable<import("zod").ZodString>;
1155
+ currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1156
+ FAIR: "FAIR";
1157
+ EUR: "EUR";
1158
+ USD: "USD";
1159
+ GBP: "GBP";
1160
+ CHF: "CHF";
1161
+ SEK: "SEK";
1162
+ NOK: "NOK";
1163
+ DKK: "DKK";
1164
+ PLN: "PLN";
1165
+ CZK: "CZK";
1166
+ CAD: "CAD";
1167
+ AUD: "AUD";
1168
+ JPY: "JPY";
1169
+ }>>;
1170
+ duration: import("zod").ZodEnum<{
1171
+ once: "once";
1172
+ repeating: "repeating";
1173
+ forever: "forever";
1174
+ }>;
1175
+ duration_in_months: import("zod").ZodNullable<import("zod").ZodNumber>;
1176
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1177
+ redeem_by: import("zod").ZodNullable<import("zod").ZodNumber>;
1178
+ times_redeemed: import("zod").ZodNumber;
1179
+ valid: import("zod").ZodBoolean;
1180
+ applies_to: import("zod").ZodNullable<import("zod").ZodObject<{
1181
+ products: import("zod").ZodArray<import("zod").ZodString>;
1182
+ }, import("zod/v4/core").$strict>>;
1183
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1184
+ created: import("zod").ZodNumber;
1185
+ }, import("zod/v4/core").$strict>;
1186
+ readonly sdk: "coupons.update";
1187
+ readonly expandable: "coupon";
1188
+ }, {
1189
+ readonly operationId: "deleteCoupon";
1190
+ readonly method: "delete";
1191
+ readonly path: "/v1/coupons/{id}";
1192
+ readonly tag: "Coupons";
1193
+ readonly summary: "Delete a coupon";
1194
+ readonly description: "Discounts customers already hold are not affected; the id is never reused.";
1195
+ readonly auth: "service";
1196
+ readonly scope: "payments:write";
1197
+ readonly params: {
1198
+ readonly id: "The coupon (`SUMMER25`, `coupon_…`).";
1199
+ };
1200
+ readonly response: import("zod").ZodObject<{
1201
+ id: import("zod").ZodString;
1202
+ object: import("zod").ZodLiteral<"coupon">;
1203
+ deleted: import("zod").ZodLiteral<true>;
1204
+ }, import("zod/v4/core").$strict>;
1205
+ readonly sdk: "coupons.del";
1206
+ }, {
1207
+ readonly operationId: "createPromotionCode";
1208
+ readonly method: "post";
1209
+ readonly path: "/v1/promotion_codes";
1210
+ readonly tag: "Promotion codes";
1211
+ readonly summary: "Create a promotion code";
1212
+ readonly auth: "service";
1213
+ readonly scope: "payments:write";
1214
+ readonly idempotent: true;
1215
+ readonly body: import("zod").ZodObject<{
1216
+ coupon: import("zod").ZodString;
1217
+ code: import("zod").ZodOptional<import("zod").ZodString>;
1218
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
1219
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
1220
+ max_redemptions: import("zod").ZodOptional<import("zod").ZodNumber>;
1221
+ expires_at: import("zod").ZodOptional<import("zod").ZodNumber>;
1222
+ restrictions: import("zod").ZodOptional<import("zod").ZodObject<{
1223
+ first_time_transaction: import("zod").ZodOptional<import("zod").ZodBoolean>;
1224
+ minimum_amount: import("zod").ZodOptional<import("zod").ZodString>;
1225
+ minimum_amount_currency: import("zod").ZodOptional<import("zod").ZodEnum<{
1226
+ FAIR: "FAIR";
1227
+ EUR: "EUR";
1228
+ USD: "USD";
1229
+ GBP: "GBP";
1230
+ CHF: "CHF";
1231
+ SEK: "SEK";
1232
+ NOK: "NOK";
1233
+ DKK: "DKK";
1234
+ PLN: "PLN";
1235
+ CZK: "CZK";
1236
+ CAD: "CAD";
1237
+ AUD: "AUD";
1238
+ JPY: "JPY";
1239
+ }>>;
1240
+ }, import("zod/v4/core").$strict>>;
1241
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<Record<string, string>, Record<string, string>>>>;
1242
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1243
+ }, import("zod/v4/core").$strict>;
1244
+ readonly response: import("zod").ZodObject<{
1245
+ id: import("zod").ZodString;
1246
+ object: import("zod").ZodLiteral<"promotion_code">;
1247
+ livemode: import("zod").ZodBoolean;
1248
+ code: import("zod").ZodString;
1249
+ coupon: import("zod").ZodType<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">>>;
1250
+ customer: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1251
+ active: import("zod").ZodBoolean;
1252
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1253
+ expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
1254
+ times_redeemed: import("zod").ZodNumber;
1255
+ restrictions: import("zod").ZodObject<{
1256
+ first_time_transaction: import("zod").ZodBoolean;
1257
+ minimum_amount: import("zod").ZodNullable<import("zod").ZodString>;
1258
+ minimum_amount_currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1259
+ FAIR: "FAIR";
1260
+ EUR: "EUR";
1261
+ USD: "USD";
1262
+ GBP: "GBP";
1263
+ CHF: "CHF";
1264
+ SEK: "SEK";
1265
+ NOK: "NOK";
1266
+ DKK: "DKK";
1267
+ PLN: "PLN";
1268
+ CZK: "CZK";
1269
+ CAD: "CAD";
1270
+ AUD: "AUD";
1271
+ JPY: "JPY";
1272
+ }>>;
1273
+ }, import("zod/v4/core").$strict>;
1274
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1275
+ created: import("zod").ZodNumber;
1276
+ }, import("zod/v4/core").$strict>;
1277
+ readonly sdk: "promotionCodes.create";
1278
+ readonly expandable: "promotion_code";
1279
+ }, {
1280
+ readonly operationId: "listPromotionCodes";
1281
+ readonly method: "get";
1282
+ readonly path: "/v1/promotion_codes";
1283
+ readonly tag: "Promotion codes";
1284
+ readonly summary: "List promotion codes";
1285
+ readonly auth: "service";
1286
+ readonly scope: "payments:read";
1287
+ readonly query: import("zod").ZodObject<{
1288
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
1289
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
1290
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
1291
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
1292
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1293
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1294
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1295
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1296
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
1297
+ gt?: number | undefined;
1298
+ gte?: number | undefined;
1299
+ lt?: number | undefined;
1300
+ lte?: number | undefined;
1301
+ }>>]>>;
1302
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1303
+ code: import("zod").ZodOptional<import("zod").ZodString>;
1304
+ coupon: import("zod").ZodOptional<import("zod").ZodString>;
1305
+ customer: import("zod").ZodOptional<import("zod").ZodString>;
1306
+ active: import("zod").ZodOptional<import("zod").ZodType<boolean, boolean, import("zod/v4/core").$ZodTypeInternals<boolean, boolean>>>;
1307
+ }, import("zod/v4/core").$strict>;
1308
+ readonly response: import("zod").ZodObject<{
1309
+ object: import("zod").ZodLiteral<"list">;
1310
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1311
+ id: import("zod").ZodString;
1312
+ object: import("zod").ZodLiteral<"promotion_code">;
1313
+ livemode: import("zod").ZodBoolean;
1314
+ code: import("zod").ZodString;
1315
+ coupon: import("zod").ZodType<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">>>;
1316
+ customer: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1317
+ active: import("zod").ZodBoolean;
1318
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1319
+ expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
1320
+ times_redeemed: import("zod").ZodNumber;
1321
+ restrictions: import("zod").ZodObject<{
1322
+ first_time_transaction: import("zod").ZodBoolean;
1323
+ minimum_amount: import("zod").ZodNullable<import("zod").ZodString>;
1324
+ minimum_amount_currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1325
+ FAIR: "FAIR";
1326
+ EUR: "EUR";
1327
+ USD: "USD";
1328
+ GBP: "GBP";
1329
+ CHF: "CHF";
1330
+ SEK: "SEK";
1331
+ NOK: "NOK";
1332
+ DKK: "DKK";
1333
+ PLN: "PLN";
1334
+ CZK: "CZK";
1335
+ CAD: "CAD";
1336
+ AUD: "AUD";
1337
+ JPY: "JPY";
1338
+ }>>;
1339
+ }, import("zod/v4/core").$strict>;
1340
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1341
+ created: import("zod").ZodNumber;
1342
+ }, import("zod/v4/core").$strict>>;
1343
+ has_more: import("zod").ZodBoolean;
1344
+ url: import("zod").ZodString;
1345
+ }, import("zod/v4/core").$strict>;
1346
+ readonly sdk: "promotionCodes.list";
1347
+ readonly expandable: "promotion_code";
1348
+ }, {
1349
+ readonly operationId: "retrievePromotionCode";
1350
+ readonly method: "get";
1351
+ readonly path: "/v1/promotion_codes/{id}";
1352
+ readonly tag: "Promotion codes";
1353
+ readonly summary: "Retrieve a promotion code";
1354
+ readonly auth: "service";
1355
+ readonly scope: "payments:read";
1356
+ readonly params: {
1357
+ readonly id: "The promotion code (`promo_…`).";
1358
+ };
1359
+ readonly query: import("zod").ZodObject<{
1360
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1361
+ }, import("zod/v4/core").$strict>;
1362
+ readonly response: import("zod").ZodObject<{
1363
+ id: import("zod").ZodString;
1364
+ object: import("zod").ZodLiteral<"promotion_code">;
1365
+ livemode: import("zod").ZodBoolean;
1366
+ code: import("zod").ZodString;
1367
+ coupon: import("zod").ZodType<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">>>;
1368
+ customer: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1369
+ active: import("zod").ZodBoolean;
1370
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1371
+ expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
1372
+ times_redeemed: import("zod").ZodNumber;
1373
+ restrictions: import("zod").ZodObject<{
1374
+ first_time_transaction: import("zod").ZodBoolean;
1375
+ minimum_amount: import("zod").ZodNullable<import("zod").ZodString>;
1376
+ minimum_amount_currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1377
+ FAIR: "FAIR";
1378
+ EUR: "EUR";
1379
+ USD: "USD";
1380
+ GBP: "GBP";
1381
+ CHF: "CHF";
1382
+ SEK: "SEK";
1383
+ NOK: "NOK";
1384
+ DKK: "DKK";
1385
+ PLN: "PLN";
1386
+ CZK: "CZK";
1387
+ CAD: "CAD";
1388
+ AUD: "AUD";
1389
+ JPY: "JPY";
1390
+ }>>;
1391
+ }, import("zod/v4/core").$strict>;
1392
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1393
+ created: import("zod").ZodNumber;
1394
+ }, import("zod/v4/core").$strict>;
1395
+ readonly sdk: "promotionCodes.retrieve";
1396
+ readonly expandable: "promotion_code";
1397
+ }, {
1398
+ readonly operationId: "updatePromotionCode";
1399
+ readonly method: "post";
1400
+ readonly path: "/v1/promotion_codes/{id}";
1401
+ readonly tag: "Promotion codes";
1402
+ readonly summary: "Update a promotion code";
1403
+ readonly description: "Only `active` and `metadata` change.";
1404
+ readonly auth: "service";
1405
+ readonly scope: "payments:write";
1406
+ readonly idempotent: true;
1407
+ readonly params: {
1408
+ readonly id: "The promotion code (`promo_…`).";
1409
+ };
1410
+ readonly body: import("zod").ZodObject<{
1411
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
1412
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
1413
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1414
+ }, import("zod/v4/core").$strict>;
1415
+ readonly response: import("zod").ZodObject<{
1416
+ id: import("zod").ZodString;
1417
+ object: import("zod").ZodLiteral<"promotion_code">;
1418
+ livemode: import("zod").ZodBoolean;
1419
+ code: import("zod").ZodString;
1420
+ coupon: import("zod").ZodType<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"coupon">, string | import("../..").Ref<"coupon">>>;
1421
+ customer: import("zod").ZodNullable<import("zod").ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, import("zod/v4/core").$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1422
+ active: import("zod").ZodBoolean;
1423
+ max_redemptions: import("zod").ZodNullable<import("zod").ZodNumber>;
1424
+ expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
1425
+ times_redeemed: import("zod").ZodNumber;
1426
+ restrictions: import("zod").ZodObject<{
1427
+ first_time_transaction: import("zod").ZodBoolean;
1428
+ minimum_amount: import("zod").ZodNullable<import("zod").ZodString>;
1429
+ minimum_amount_currency: import("zod").ZodNullable<import("zod").ZodEnum<{
1430
+ FAIR: "FAIR";
1431
+ EUR: "EUR";
1432
+ USD: "USD";
1433
+ GBP: "GBP";
1434
+ CHF: "CHF";
1435
+ SEK: "SEK";
1436
+ NOK: "NOK";
1437
+ DKK: "DKK";
1438
+ PLN: "PLN";
1439
+ CZK: "CZK";
1440
+ CAD: "CAD";
1441
+ AUD: "AUD";
1442
+ JPY: "JPY";
1443
+ }>>;
1444
+ }, import("zod/v4/core").$strict>;
1445
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1446
+ created: import("zod").ZodNumber;
1447
+ }, import("zod/v4/core").$strict>;
1448
+ readonly sdk: "promotionCodes.update";
1449
+ readonly expandable: "promotion_code";
1450
+ }, {
1451
+ readonly operationId: "createEntitlementFeature";
1452
+ readonly method: "post";
1453
+ readonly path: "/v1/entitlements/features";
1454
+ readonly tag: "Entitlements";
1455
+ readonly summary: "Create a feature";
1456
+ readonly auth: "service";
1457
+ readonly scope: "payments:write";
1458
+ readonly idempotent: true;
1459
+ readonly body: import("zod").ZodObject<{
1460
+ lookup_key: import("zod").ZodString;
1461
+ name: import("zod").ZodString;
1462
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<Record<string, string>, Record<string, string>>>>;
1463
+ }, import("zod/v4/core").$strict>;
1464
+ readonly response: import("zod").ZodObject<{
1465
+ id: import("zod").ZodString;
1466
+ object: import("zod").ZodLiteral<"entitlements.feature">;
1467
+ livemode: import("zod").ZodBoolean;
1468
+ lookup_key: import("zod").ZodString;
1469
+ name: import("zod").ZodString;
1470
+ active: import("zod").ZodBoolean;
1471
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1472
+ created: import("zod").ZodNumber;
1473
+ }, import("zod/v4/core").$strict>;
1474
+ readonly sdk: "entitlements.features.create";
1475
+ }, {
1476
+ readonly operationId: "listEntitlementFeatures";
1477
+ readonly method: "get";
1478
+ readonly path: "/v1/entitlements/features";
1479
+ readonly tag: "Entitlements";
1480
+ readonly summary: "List features";
1481
+ readonly auth: "service";
1482
+ readonly scope: "payments:read";
1483
+ readonly query: import("zod").ZodObject<{
1484
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
1485
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
1486
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
1487
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
1488
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1489
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1490
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1491
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1492
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
1493
+ gt?: number | undefined;
1494
+ gte?: number | undefined;
1495
+ lt?: number | undefined;
1496
+ lte?: number | undefined;
1497
+ }>>]>>;
1498
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1499
+ lookup_key: import("zod").ZodOptional<import("zod").ZodString>;
1500
+ archived: import("zod").ZodOptional<import("zod").ZodType<boolean, boolean, import("zod/v4/core").$ZodTypeInternals<boolean, boolean>>>;
1501
+ }, import("zod/v4/core").$strict>;
1502
+ readonly response: import("zod").ZodObject<{
1503
+ object: import("zod").ZodLiteral<"list">;
1504
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1505
+ id: import("zod").ZodString;
1506
+ object: import("zod").ZodLiteral<"entitlements.feature">;
1507
+ livemode: import("zod").ZodBoolean;
1508
+ lookup_key: import("zod").ZodString;
1509
+ name: import("zod").ZodString;
1510
+ active: import("zod").ZodBoolean;
1511
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1512
+ created: import("zod").ZodNumber;
1513
+ }, import("zod/v4/core").$strict>>;
1514
+ has_more: import("zod").ZodBoolean;
1515
+ url: import("zod").ZodString;
1516
+ }, import("zod/v4/core").$strict>;
1517
+ readonly sdk: "entitlements.features.list";
1518
+ readonly expandable: "entitlements.feature";
1519
+ }, {
1520
+ readonly operationId: "retrieveEntitlementFeature";
1521
+ readonly method: "get";
1522
+ readonly path: "/v1/entitlements/features/{id}";
1523
+ readonly tag: "Entitlements";
1524
+ readonly summary: "Retrieve a feature";
1525
+ readonly auth: "service";
1526
+ readonly scope: "payments:read";
1527
+ readonly params: {
1528
+ id: string;
1529
+ };
1530
+ readonly query: import("zod").ZodObject<{
1531
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1532
+ }, import("zod/v4/core").$strict>;
1533
+ readonly response: import("zod").ZodObject<{
1534
+ id: import("zod").ZodString;
1535
+ object: import("zod").ZodLiteral<"entitlements.feature">;
1536
+ livemode: import("zod").ZodBoolean;
1537
+ lookup_key: import("zod").ZodString;
1538
+ name: import("zod").ZodString;
1539
+ active: import("zod").ZodBoolean;
1540
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1541
+ created: import("zod").ZodNumber;
1542
+ }, import("zod/v4/core").$strict>;
1543
+ readonly sdk: "entitlements.features.retrieve";
1544
+ }, {
1545
+ readonly operationId: "updateEntitlementFeature";
1546
+ readonly method: "post";
1547
+ readonly path: "/v1/entitlements/features/{id}";
1548
+ readonly tag: "Entitlements";
1549
+ readonly summary: "Update a feature";
1550
+ readonly description: "`active: false` archives it and withdraws it from every customer that held it.";
1551
+ readonly auth: "service";
1552
+ readonly scope: "payments:write";
1553
+ readonly idempotent: true;
1554
+ readonly params: {
1555
+ id: string;
1556
+ };
1557
+ readonly body: import("zod").ZodObject<{
1558
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1559
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
1560
+ metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
1561
+ }, import("zod/v4/core").$strict>;
1562
+ readonly response: import("zod").ZodObject<{
1563
+ id: import("zod").ZodString;
1564
+ object: import("zod").ZodLiteral<"entitlements.feature">;
1565
+ livemode: import("zod").ZodBoolean;
1566
+ lookup_key: import("zod").ZodString;
1567
+ name: import("zod").ZodString;
1568
+ active: import("zod").ZodBoolean;
1569
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1570
+ created: import("zod").ZodNumber;
1571
+ }, import("zod/v4/core").$strict>;
1572
+ readonly sdk: "entitlements.features.update";
1573
+ }, {
1574
+ readonly operationId: "attachProductFeature";
1575
+ readonly method: "post";
1576
+ readonly path: "/v1/products/{id}/features";
1577
+ readonly tag: "Entitlements";
1578
+ readonly summary: "Attach a feature to a product";
1579
+ readonly auth: "service";
1580
+ readonly scope: "payments:write";
1581
+ readonly idempotent: true;
1582
+ readonly params: {
1583
+ readonly id: "The product (`prod_…`).";
1584
+ };
1585
+ readonly body: import("zod").ZodObject<{
1586
+ entitlement_feature: import("zod").ZodString;
1587
+ }, import("zod/v4/core").$strict>;
1588
+ readonly response: import("zod").ZodObject<{
1589
+ id: import("zod").ZodString;
1590
+ object: import("zod").ZodLiteral<"product_feature">;
1591
+ livemode: import("zod").ZodBoolean;
1592
+ product: import("zod").ZodString;
1593
+ entitlement_feature: import("zod").ZodObject<{
1594
+ id: import("zod").ZodString;
1595
+ object: import("zod").ZodLiteral<"entitlements.feature">;
1596
+ livemode: import("zod").ZodBoolean;
1597
+ lookup_key: import("zod").ZodString;
1598
+ name: import("zod").ZodString;
1599
+ active: import("zod").ZodBoolean;
1600
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1601
+ created: import("zod").ZodNumber;
1602
+ }, import("zod/v4/core").$strict>;
1603
+ }, import("zod/v4/core").$strict>;
1604
+ readonly sdk: "entitlements.productFeatures.attach";
1605
+ }, {
1606
+ readonly operationId: "listProductFeatures";
1607
+ readonly method: "get";
1608
+ readonly path: "/v1/products/{id}/features";
1609
+ readonly tag: "Entitlements";
1610
+ readonly summary: "List a product's features";
1611
+ readonly auth: "service";
1612
+ readonly scope: "payments:read";
1613
+ readonly params: {
1614
+ readonly id: "The product (`prod_…`).";
1615
+ };
1616
+ readonly query: import("zod").ZodObject<{
1617
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
1618
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
1619
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
1620
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
1621
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1622
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1623
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1624
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1625
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
1626
+ gt?: number | undefined;
1627
+ gte?: number | undefined;
1628
+ lt?: number | undefined;
1629
+ lte?: number | undefined;
1630
+ }>>]>>;
1631
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1632
+ }, import("zod/v4/core").$strict>;
1633
+ readonly response: import("zod").ZodObject<{
1634
+ object: import("zod").ZodLiteral<"list">;
1635
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1636
+ id: import("zod").ZodString;
1637
+ object: import("zod").ZodLiteral<"product_feature">;
1638
+ livemode: import("zod").ZodBoolean;
1639
+ product: import("zod").ZodString;
1640
+ entitlement_feature: import("zod").ZodObject<{
1641
+ id: import("zod").ZodString;
1642
+ object: import("zod").ZodLiteral<"entitlements.feature">;
1643
+ livemode: import("zod").ZodBoolean;
1644
+ lookup_key: import("zod").ZodString;
1645
+ name: import("zod").ZodString;
1646
+ active: import("zod").ZodBoolean;
1647
+ metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1648
+ created: import("zod").ZodNumber;
1649
+ }, import("zod/v4/core").$strict>;
1650
+ }, import("zod/v4/core").$strict>>;
1651
+ has_more: import("zod").ZodBoolean;
1652
+ url: import("zod").ZodString;
1653
+ }, import("zod/v4/core").$strict>;
1654
+ readonly sdk: "entitlements.productFeatures.list";
1655
+ readonly expandable: "product_feature";
1656
+ }, {
1657
+ readonly operationId: "detachProductFeature";
1658
+ readonly method: "delete";
1659
+ readonly path: "/v1/products/{id}/features/{feature}";
1660
+ readonly tag: "Entitlements";
1661
+ readonly summary: "Detach a feature from a product";
1662
+ readonly auth: "service";
1663
+ readonly scope: "payments:write";
1664
+ readonly params: {
1665
+ readonly id: "The product (`prod_…`).";
1666
+ readonly feature: "The attachment (`prodft_…`).";
1667
+ };
1668
+ readonly response: import("zod").ZodObject<{
1669
+ id: import("zod").ZodString;
1670
+ object: import("zod").ZodLiteral<"product_feature">;
1671
+ deleted: import("zod").ZodLiteral<true>;
1672
+ }, import("zod/v4/core").$strict>;
1673
+ readonly sdk: "entitlements.productFeatures.detach";
1674
+ }, {
1675
+ readonly operationId: "listActiveEntitlements";
1676
+ readonly method: "get";
1677
+ readonly path: "/v1/entitlements/active_entitlements";
1678
+ readonly tag: "Entitlements";
1679
+ readonly summary: "List a customer's active entitlements";
1680
+ readonly description: "What the customer may access NOW: one entitlement per feature, however many products grant it. A complete set, never paged (`has_more` is always `false`).";
1681
+ readonly auth: "service";
1682
+ readonly scope: "payments:read";
1683
+ readonly query: import("zod").ZodObject<{
1684
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
1685
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
1686
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
1687
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
1688
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1689
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1690
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1691
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1692
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
1693
+ gt?: number | undefined;
1694
+ gte?: number | undefined;
1695
+ lt?: number | undefined;
1696
+ lte?: number | undefined;
1697
+ }>>]>>;
1698
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1699
+ customer: import("zod").ZodString;
1700
+ }, import("zod/v4/core").$strict>;
1701
+ readonly response: import("zod").ZodObject<{
1702
+ object: import("zod").ZodLiteral<"list">;
1703
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1704
+ id: import("zod").ZodString;
1705
+ object: import("zod").ZodLiteral<"entitlements.active_entitlement">;
1706
+ livemode: import("zod").ZodBoolean;
1707
+ feature: import("zod").ZodString;
1708
+ lookup_key: import("zod").ZodString;
1709
+ }, import("zod/v4/core").$strict>>;
1710
+ has_more: import("zod").ZodBoolean;
1711
+ url: import("zod").ZodString;
1712
+ }, import("zod/v4/core").$strict>;
1713
+ readonly sdk: "entitlements.activeEntitlements.list";
1714
+ }, {
1715
+ readonly operationId: "createTestClock";
1716
+ readonly method: "post";
1717
+ readonly path: "/v1/test_helpers/test_clocks";
1718
+ readonly tag: "Test clocks";
1719
+ readonly summary: "Create a test clock";
1720
+ readonly auth: "service";
1721
+ readonly scope: "payments:write";
1722
+ readonly idempotent: true;
1723
+ readonly testModeOnly: true;
1724
+ readonly body: import("zod").ZodObject<{
1725
+ frozen_time: import("zod").ZodNumber;
1726
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1727
+ }, import("zod/v4/core").$strict>;
1728
+ readonly response: import("zod").ZodObject<{
1729
+ id: import("zod").ZodString;
1730
+ object: import("zod").ZodLiteral<"test_helpers.test_clock">;
1731
+ livemode: import("zod").ZodLiteral<false>;
1732
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1733
+ frozen_time: import("zod").ZodNumber;
1734
+ status: import("zod").ZodEnum<{
1735
+ ready: "ready";
1736
+ advancing: "advancing";
1737
+ internal_failure: "internal_failure";
1738
+ }>;
1739
+ deletes_after: import("zod").ZodNumber;
1740
+ created: import("zod").ZodNumber;
1741
+ }, import("zod/v4/core").$strict>;
1742
+ readonly sdk: "testHelpers.testClocks.create";
1743
+ }, {
1744
+ readonly operationId: "listTestClocks";
1745
+ readonly method: "get";
1746
+ readonly path: "/v1/test_helpers/test_clocks";
1747
+ readonly tag: "Test clocks";
1748
+ readonly summary: "List test clocks";
1749
+ readonly auth: "service";
1750
+ readonly scope: "payments:read";
1751
+ readonly testModeOnly: true;
1752
+ readonly query: import("zod").ZodObject<{
1753
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
1754
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
1755
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
1756
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
1757
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1758
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1759
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1760
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
1761
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
1762
+ gt?: number | undefined;
1763
+ gte?: number | undefined;
1764
+ lt?: number | undefined;
1765
+ lte?: number | undefined;
1766
+ }>>]>>;
1767
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1768
+ }, import("zod/v4/core").$strict>;
1769
+ readonly response: import("zod").ZodObject<{
1770
+ object: import("zod").ZodLiteral<"list">;
1771
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1772
+ id: import("zod").ZodString;
1773
+ object: import("zod").ZodLiteral<"test_helpers.test_clock">;
1774
+ livemode: import("zod").ZodLiteral<false>;
1775
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1776
+ frozen_time: import("zod").ZodNumber;
1777
+ status: import("zod").ZodEnum<{
1778
+ ready: "ready";
1779
+ advancing: "advancing";
1780
+ internal_failure: "internal_failure";
1781
+ }>;
1782
+ deletes_after: import("zod").ZodNumber;
1783
+ created: import("zod").ZodNumber;
1784
+ }, import("zod/v4/core").$strict>>;
1785
+ has_more: import("zod").ZodBoolean;
1786
+ url: import("zod").ZodString;
1787
+ }, import("zod/v4/core").$strict>;
1788
+ readonly sdk: "testHelpers.testClocks.list";
1789
+ readonly expandable: "test_helpers.test_clock";
1790
+ }, {
1791
+ readonly operationId: "retrieveTestClock";
1792
+ readonly method: "get";
1793
+ readonly path: "/v1/test_helpers/test_clocks/{id}";
1794
+ readonly tag: "Test clocks";
1795
+ readonly summary: "Retrieve a test clock";
1796
+ readonly auth: "service";
1797
+ readonly scope: "payments:read";
1798
+ readonly testModeOnly: true;
1799
+ readonly params: {
1800
+ id: string;
1801
+ };
1802
+ readonly query: import("zod").ZodObject<{
1803
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1804
+ }, import("zod/v4/core").$strict>;
1805
+ readonly response: import("zod").ZodObject<{
1806
+ id: import("zod").ZodString;
1807
+ object: import("zod").ZodLiteral<"test_helpers.test_clock">;
1808
+ livemode: import("zod").ZodLiteral<false>;
1809
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1810
+ frozen_time: import("zod").ZodNumber;
1811
+ status: import("zod").ZodEnum<{
1812
+ ready: "ready";
1813
+ advancing: "advancing";
1814
+ internal_failure: "internal_failure";
1815
+ }>;
1816
+ deletes_after: import("zod").ZodNumber;
1817
+ created: import("zod").ZodNumber;
1818
+ }, import("zod/v4/core").$strict>;
1819
+ readonly sdk: "testHelpers.testClocks.retrieve";
1820
+ }, {
1821
+ readonly operationId: "advanceTestClock";
1822
+ readonly method: "post";
1823
+ readonly path: "/v1/test_helpers/test_clocks/{id}/advance";
1824
+ readonly tag: "Test clocks";
1825
+ readonly summary: "Advance a test clock";
1826
+ readonly description: "Moves `frozen_time` forward and runs the billing engine for everything on the clock up to it: trials end, subscriptions renew, invoices finalize and dunning retries.";
1827
+ readonly auth: "service";
1828
+ readonly scope: "payments:write";
1829
+ readonly idempotent: true;
1830
+ readonly testModeOnly: true;
1831
+ readonly params: {
1832
+ id: string;
1833
+ };
1834
+ readonly body: import("zod").ZodObject<{
1835
+ frozen_time: import("zod").ZodNumber;
1836
+ }, import("zod/v4/core").$strict>;
1837
+ readonly response: import("zod").ZodObject<{
1838
+ id: import("zod").ZodString;
1839
+ object: import("zod").ZodLiteral<"test_helpers.test_clock">;
1840
+ livemode: import("zod").ZodLiteral<false>;
1841
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1842
+ frozen_time: import("zod").ZodNumber;
1843
+ status: import("zod").ZodEnum<{
1844
+ ready: "ready";
1845
+ advancing: "advancing";
1846
+ internal_failure: "internal_failure";
1847
+ }>;
1848
+ deletes_after: import("zod").ZodNumber;
1849
+ created: import("zod").ZodNumber;
1850
+ }, import("zod/v4/core").$strict>;
1851
+ readonly sdk: "testHelpers.testClocks.advance";
1852
+ }, {
1853
+ readonly operationId: "deleteTestClock";
1854
+ readonly method: "delete";
1855
+ readonly path: "/v1/test_helpers/test_clocks/{id}";
1856
+ readonly tag: "Test clocks";
1857
+ readonly summary: "Delete a test clock";
1858
+ readonly description: "Every live subscription on the clock is cancelled at its frozen time; the clock stays readable to the objects that name it.";
1859
+ readonly auth: "service";
1860
+ readonly scope: "payments:write";
1861
+ readonly testModeOnly: true;
1862
+ readonly params: {
1863
+ id: string;
1864
+ };
1865
+ readonly response: import("zod").ZodObject<{
1866
+ id: import("zod").ZodString;
1867
+ object: import("zod").ZodLiteral<"test_helpers.test_clock">;
1868
+ deleted: import("zod").ZodLiteral<true>;
1869
+ }, import("zod/v4/core").$strict>;
1870
+ readonly sdk: "testHelpers.testClocks.del";
1871
+ }, {
1872
+ readonly operationId: "retrieveBillingSettings";
1873
+ readonly method: "get";
1874
+ readonly path: "/v1/billing_settings";
1875
+ readonly tag: "Billing settings";
1876
+ readonly summary: "Retrieve the billing settings";
1877
+ readonly auth: "service";
1878
+ readonly scope: "payments:read";
1879
+ readonly query: import("zod").ZodObject<{
1880
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
1881
+ }, import("zod/v4/core").$strict>;
1882
+ readonly response: import("zod").ZodObject<{
1883
+ object: import("zod").ZodLiteral<"billing_settings">;
1884
+ livemode: import("zod").ZodBoolean;
1885
+ invoice_prefix: import("zod").ZodString;
1886
+ next_invoice_sequence: import("zod").ZodNumber;
1887
+ default_days_until_due: import("zod").ZodNumber;
1888
+ dunning: import("zod").ZodObject<{
1889
+ retry_schedule_days: import("zod").ZodArray<import("zod").ZodNumber>;
1890
+ final_action: import("zod").ZodEnum<{
1891
+ past_due: "past_due";
1892
+ unpaid: "unpaid";
1893
+ cancel: "cancel";
1894
+ }>;
1895
+ invoice_action: import("zod").ZodEnum<{
1896
+ mark_uncollectible: "mark_uncollectible";
1897
+ leave_open: "leave_open";
1898
+ }>;
1899
+ }, import("zod/v4/core").$strict>;
1900
+ emails: import("zod").ZodObject<{
1901
+ invoice_finalized: import("zod").ZodBoolean;
1902
+ payment_failed: import("zod").ZodBoolean;
1903
+ }, import("zod/v4/core").$strict>;
1904
+ updated: import("zod").ZodNumber;
1905
+ }, import("zod/v4/core").$strict>;
1906
+ readonly sdk: "billingSettings.retrieve";
1907
+ }, {
1908
+ readonly operationId: "updateBillingSettings";
1909
+ readonly method: "post";
1910
+ readonly path: "/v1/billing_settings";
1911
+ readonly tag: "Billing settings";
1912
+ readonly summary: "Update the billing settings";
1913
+ readonly description: "Invoice numbering, the default payment term, dunning and the payer emails.";
1914
+ readonly auth: "service";
1915
+ readonly scope: "payments:write";
1916
+ readonly idempotent: true;
1917
+ readonly body: import("zod").ZodObject<{
1918
+ invoice_prefix: import("zod").ZodOptional<import("zod").ZodString>;
1919
+ default_days_until_due: import("zod").ZodOptional<import("zod").ZodNumber>;
1920
+ dunning: import("zod").ZodOptional<import("zod").ZodObject<{
1921
+ retry_schedule_days: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
1922
+ final_action: import("zod").ZodOptional<import("zod").ZodEnum<{
1923
+ past_due: "past_due";
1924
+ unpaid: "unpaid";
1925
+ cancel: "cancel";
1926
+ }>>;
1927
+ invoice_action: import("zod").ZodOptional<import("zod").ZodEnum<{
1928
+ mark_uncollectible: "mark_uncollectible";
1929
+ leave_open: "leave_open";
1930
+ }>>;
1931
+ }, import("zod/v4/core").$strict>>;
1932
+ emails: import("zod").ZodOptional<import("zod").ZodObject<{
1933
+ invoice_finalized: import("zod").ZodOptional<import("zod").ZodBoolean>;
1934
+ payment_failed: import("zod").ZodOptional<import("zod").ZodBoolean>;
1935
+ }, import("zod/v4/core").$strict>>;
1936
+ }, import("zod/v4/core").$strict>;
1937
+ readonly response: import("zod").ZodObject<{
1938
+ object: import("zod").ZodLiteral<"billing_settings">;
1939
+ livemode: import("zod").ZodBoolean;
1940
+ invoice_prefix: import("zod").ZodString;
1941
+ next_invoice_sequence: import("zod").ZodNumber;
1942
+ default_days_until_due: import("zod").ZodNumber;
1943
+ dunning: import("zod").ZodObject<{
1944
+ retry_schedule_days: import("zod").ZodArray<import("zod").ZodNumber>;
1945
+ final_action: import("zod").ZodEnum<{
1946
+ past_due: "past_due";
1947
+ unpaid: "unpaid";
1948
+ cancel: "cancel";
1949
+ }>;
1950
+ invoice_action: import("zod").ZodEnum<{
1951
+ mark_uncollectible: "mark_uncollectible";
1952
+ leave_open: "leave_open";
1953
+ }>;
1954
+ }, import("zod/v4/core").$strict>;
1955
+ emails: import("zod").ZodObject<{
1956
+ invoice_finalized: import("zod").ZodBoolean;
1957
+ payment_failed: import("zod").ZodBoolean;
1958
+ }, import("zod/v4/core").$strict>;
1959
+ updated: import("zod").ZodNumber;
1960
+ }, import("zod/v4/core").$strict>;
1961
+ readonly sdk: "billingSettings.update";
1962
+ }, {
1963
+ readonly operationId: "createBillingMeter";
1964
+ readonly method: "post";
1965
+ readonly path: "/v1/billing/meters";
1966
+ readonly tag: "Meters";
1967
+ readonly summary: "Create a meter";
1968
+ readonly auth: "service";
1969
+ readonly scope: "payments:write";
1970
+ readonly idempotent: true;
1971
+ readonly body: import("zod").ZodObject<{
1972
+ display_name: import("zod").ZodString;
1973
+ event_name: import("zod").ZodString;
1974
+ default_aggregation: import("zod").ZodObject<{
1975
+ formula: import("zod").ZodEnum<{
1976
+ sum: "sum";
1977
+ count: "count";
1978
+ last: "last";
1979
+ }>;
1980
+ }, import("zod/v4/core").$strict>;
1981
+ customer_mapping: import("zod").ZodOptional<import("zod").ZodObject<{
1982
+ type: import("zod").ZodLiteral<"by_id">;
1983
+ event_payload_key: import("zod").ZodString;
1984
+ }, import("zod/v4/core").$strict>>;
1985
+ value_settings: import("zod").ZodOptional<import("zod").ZodObject<{
1986
+ event_payload_key: import("zod").ZodString;
1987
+ }, import("zod/v4/core").$strict>>;
1988
+ }, import("zod/v4/core").$strict>;
1989
+ readonly response: import("zod").ZodObject<{
1990
+ id: import("zod").ZodString;
1991
+ object: import("zod").ZodLiteral<"billing.meter">;
1992
+ livemode: import("zod").ZodBoolean;
1993
+ display_name: import("zod").ZodString;
1994
+ event_name: import("zod").ZodString;
1995
+ default_aggregation: import("zod").ZodObject<{
1996
+ formula: import("zod").ZodEnum<{
1997
+ sum: "sum";
1998
+ count: "count";
1999
+ last: "last";
2000
+ }>;
2001
+ }, import("zod/v4/core").$strict>;
2002
+ customer_mapping: import("zod").ZodObject<{
2003
+ type: import("zod").ZodLiteral<"by_id">;
2004
+ event_payload_key: import("zod").ZodString;
2005
+ }, import("zod/v4/core").$strict>;
2006
+ value_settings: import("zod").ZodObject<{
2007
+ event_payload_key: import("zod").ZodString;
2008
+ }, import("zod/v4/core").$strict>;
2009
+ status: import("zod").ZodEnum<{
2010
+ active: "active";
2011
+ inactive: "inactive";
2012
+ }>;
2013
+ created: import("zod").ZodNumber;
2014
+ updated: import("zod").ZodNumber;
2015
+ }, import("zod/v4/core").$strict>;
2016
+ readonly sdk: "billing.meters.create";
2017
+ }, {
2018
+ readonly operationId: "listBillingMeters";
2019
+ readonly method: "get";
2020
+ readonly path: "/v1/billing/meters";
2021
+ readonly tag: "Meters";
2022
+ readonly summary: "List meters";
2023
+ readonly auth: "service";
2024
+ readonly scope: "payments:read";
2025
+ readonly query: import("zod").ZodObject<{
2026
+ limit: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>, import("zod").ZodTransform<number, number | undefined>>;
2027
+ starting_after: import("zod").ZodOptional<import("zod").ZodString>;
2028
+ ending_before: import("zod").ZodOptional<import("zod").ZodString>;
2029
+ created: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>, import("zod").ZodTransform<import("../..").RangeFilter, number>>, import("zod").ZodPipe<import("zod").ZodObject<{
2030
+ gt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
2031
+ gte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
2032
+ lt: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
2033
+ lte: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>>;
2034
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<import("../..").RangeFilter, {
2035
+ gt?: number | undefined;
2036
+ gte?: number | undefined;
2037
+ lt?: number | undefined;
2038
+ lte?: number | undefined;
2039
+ }>>]>>;
2040
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
2041
+ status: import("zod").ZodOptional<import("zod").ZodEnum<{
2042
+ active: "active";
2043
+ inactive: "inactive";
2044
+ }>>;
2045
+ }, import("zod/v4/core").$strict>;
2046
+ readonly response: import("zod").ZodObject<{
2047
+ object: import("zod").ZodLiteral<"list">;
2048
+ data: import("zod").ZodArray<import("zod").ZodObject<{
2049
+ id: import("zod").ZodString;
2050
+ object: import("zod").ZodLiteral<"billing.meter">;
2051
+ livemode: import("zod").ZodBoolean;
2052
+ display_name: import("zod").ZodString;
2053
+ event_name: import("zod").ZodString;
2054
+ default_aggregation: import("zod").ZodObject<{
2055
+ formula: import("zod").ZodEnum<{
2056
+ sum: "sum";
2057
+ count: "count";
2058
+ last: "last";
2059
+ }>;
2060
+ }, import("zod/v4/core").$strict>;
2061
+ customer_mapping: import("zod").ZodObject<{
2062
+ type: import("zod").ZodLiteral<"by_id">;
2063
+ event_payload_key: import("zod").ZodString;
2064
+ }, import("zod/v4/core").$strict>;
2065
+ value_settings: import("zod").ZodObject<{
2066
+ event_payload_key: import("zod").ZodString;
2067
+ }, import("zod/v4/core").$strict>;
2068
+ status: import("zod").ZodEnum<{
2069
+ active: "active";
2070
+ inactive: "inactive";
2071
+ }>;
2072
+ created: import("zod").ZodNumber;
2073
+ updated: import("zod").ZodNumber;
2074
+ }, import("zod/v4/core").$strict>>;
2075
+ has_more: import("zod").ZodBoolean;
2076
+ url: import("zod").ZodString;
2077
+ }, import("zod/v4/core").$strict>;
2078
+ readonly sdk: "billing.meters.list";
2079
+ readonly expandable: "billing.meter";
2080
+ }, {
2081
+ readonly operationId: "retrieveBillingMeter";
2082
+ readonly method: "get";
2083
+ readonly path: "/v1/billing/meters/{id}";
2084
+ readonly tag: "Meters";
2085
+ readonly summary: "Retrieve a meter";
2086
+ readonly auth: "service";
2087
+ readonly scope: "payments:read";
2088
+ readonly params: {
2089
+ id: string;
2090
+ };
2091
+ readonly query: import("zod").ZodObject<{
2092
+ expand: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodTransform<string[], string | string[]>>, import("zod").ZodArray<import("zod").ZodString>>>;
2093
+ }, import("zod/v4/core").$strict>;
2094
+ readonly response: import("zod").ZodObject<{
2095
+ id: import("zod").ZodString;
2096
+ object: import("zod").ZodLiteral<"billing.meter">;
2097
+ livemode: import("zod").ZodBoolean;
2098
+ display_name: import("zod").ZodString;
2099
+ event_name: import("zod").ZodString;
2100
+ default_aggregation: import("zod").ZodObject<{
2101
+ formula: import("zod").ZodEnum<{
2102
+ sum: "sum";
2103
+ count: "count";
2104
+ last: "last";
2105
+ }>;
2106
+ }, import("zod/v4/core").$strict>;
2107
+ customer_mapping: import("zod").ZodObject<{
2108
+ type: import("zod").ZodLiteral<"by_id">;
2109
+ event_payload_key: import("zod").ZodString;
2110
+ }, import("zod/v4/core").$strict>;
2111
+ value_settings: import("zod").ZodObject<{
2112
+ event_payload_key: import("zod").ZodString;
2113
+ }, import("zod/v4/core").$strict>;
2114
+ status: import("zod").ZodEnum<{
2115
+ active: "active";
2116
+ inactive: "inactive";
2117
+ }>;
2118
+ created: import("zod").ZodNumber;
2119
+ updated: import("zod").ZodNumber;
2120
+ }, import("zod/v4/core").$strict>;
2121
+ readonly sdk: "billing.meters.retrieve";
2122
+ }, {
2123
+ readonly operationId: "updateBillingMeter";
2124
+ readonly method: "post";
2125
+ readonly path: "/v1/billing/meters/{id}";
2126
+ readonly tag: "Meters";
2127
+ readonly summary: "Update a meter";
2128
+ readonly description: "Only `display_name` changes.";
2129
+ readonly auth: "service";
2130
+ readonly scope: "payments:write";
2131
+ readonly idempotent: true;
2132
+ readonly params: {
2133
+ id: string;
2134
+ };
2135
+ readonly body: import("zod").ZodObject<{
2136
+ display_name: import("zod").ZodOptional<import("zod").ZodString>;
2137
+ }, import("zod/v4/core").$strict>;
2138
+ readonly response: import("zod").ZodObject<{
2139
+ id: import("zod").ZodString;
2140
+ object: import("zod").ZodLiteral<"billing.meter">;
2141
+ livemode: import("zod").ZodBoolean;
2142
+ display_name: import("zod").ZodString;
2143
+ event_name: import("zod").ZodString;
2144
+ default_aggregation: import("zod").ZodObject<{
2145
+ formula: import("zod").ZodEnum<{
2146
+ sum: "sum";
2147
+ count: "count";
2148
+ last: "last";
2149
+ }>;
2150
+ }, import("zod/v4/core").$strict>;
2151
+ customer_mapping: import("zod").ZodObject<{
2152
+ type: import("zod").ZodLiteral<"by_id">;
2153
+ event_payload_key: import("zod").ZodString;
2154
+ }, import("zod/v4/core").$strict>;
2155
+ value_settings: import("zod").ZodObject<{
2156
+ event_payload_key: import("zod").ZodString;
2157
+ }, import("zod/v4/core").$strict>;
2158
+ status: import("zod").ZodEnum<{
2159
+ active: "active";
2160
+ inactive: "inactive";
2161
+ }>;
2162
+ created: import("zod").ZodNumber;
2163
+ updated: import("zod").ZodNumber;
2164
+ }, import("zod/v4/core").$strict>;
2165
+ readonly sdk: "billing.meters.update";
2166
+ }, {
2167
+ readonly operationId: "deactivateBillingMeter";
2168
+ readonly method: "post";
2169
+ readonly path: "/v1/billing/meters/{id}/deactivate";
2170
+ readonly tag: "Meters";
2171
+ readonly summary: "Deactivate a meter";
2172
+ readonly description: "An inactive meter accepts no events.";
2173
+ readonly auth: "service";
2174
+ readonly scope: "payments:write";
2175
+ readonly idempotent: true;
2176
+ readonly params: {
2177
+ id: string;
2178
+ };
2179
+ readonly body: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
2180
+ readonly response: import("zod").ZodObject<{
2181
+ id: import("zod").ZodString;
2182
+ object: import("zod").ZodLiteral<"billing.meter">;
2183
+ livemode: import("zod").ZodBoolean;
2184
+ display_name: import("zod").ZodString;
2185
+ event_name: import("zod").ZodString;
2186
+ default_aggregation: import("zod").ZodObject<{
2187
+ formula: import("zod").ZodEnum<{
2188
+ sum: "sum";
2189
+ count: "count";
2190
+ last: "last";
2191
+ }>;
2192
+ }, import("zod/v4/core").$strict>;
2193
+ customer_mapping: import("zod").ZodObject<{
2194
+ type: import("zod").ZodLiteral<"by_id">;
2195
+ event_payload_key: import("zod").ZodString;
2196
+ }, import("zod/v4/core").$strict>;
2197
+ value_settings: import("zod").ZodObject<{
2198
+ event_payload_key: import("zod").ZodString;
2199
+ }, import("zod/v4/core").$strict>;
2200
+ status: import("zod").ZodEnum<{
2201
+ active: "active";
2202
+ inactive: "inactive";
2203
+ }>;
2204
+ created: import("zod").ZodNumber;
2205
+ updated: import("zod").ZodNumber;
2206
+ }, import("zod/v4/core").$strict>;
2207
+ readonly sdk: "billing.meters.deactivate";
2208
+ }, {
2209
+ readonly operationId: "reactivateBillingMeter";
2210
+ readonly method: "post";
2211
+ readonly path: "/v1/billing/meters/{id}/reactivate";
2212
+ readonly tag: "Meters";
2213
+ readonly summary: "Reactivate a meter";
2214
+ readonly auth: "service";
2215
+ readonly scope: "payments:write";
2216
+ readonly idempotent: true;
2217
+ readonly params: {
2218
+ id: string;
2219
+ };
2220
+ readonly body: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
2221
+ readonly response: import("zod").ZodObject<{
2222
+ id: import("zod").ZodString;
2223
+ object: import("zod").ZodLiteral<"billing.meter">;
2224
+ livemode: import("zod").ZodBoolean;
2225
+ display_name: import("zod").ZodString;
2226
+ event_name: import("zod").ZodString;
2227
+ default_aggregation: import("zod").ZodObject<{
2228
+ formula: import("zod").ZodEnum<{
2229
+ sum: "sum";
2230
+ count: "count";
2231
+ last: "last";
2232
+ }>;
2233
+ }, import("zod/v4/core").$strict>;
2234
+ customer_mapping: import("zod").ZodObject<{
2235
+ type: import("zod").ZodLiteral<"by_id">;
2236
+ event_payload_key: import("zod").ZodString;
2237
+ }, import("zod/v4/core").$strict>;
2238
+ value_settings: import("zod").ZodObject<{
2239
+ event_payload_key: import("zod").ZodString;
2240
+ }, import("zod/v4/core").$strict>;
2241
+ status: import("zod").ZodEnum<{
2242
+ active: "active";
2243
+ inactive: "inactive";
2244
+ }>;
2245
+ created: import("zod").ZodNumber;
2246
+ updated: import("zod").ZodNumber;
2247
+ }, import("zod/v4/core").$strict>;
2248
+ readonly sdk: "billing.meters.reactivate";
2249
+ }, {
2250
+ readonly operationId: "listBillingMeterEventSummaries";
2251
+ readonly method: "get";
2252
+ readonly path: "/v1/billing/meters/{id}/event_summaries";
2253
+ readonly tag: "Meters";
2254
+ readonly summary: "A customer's usage over a window";
2255
+ readonly description: "One summary: the aggregate of the window `[start_time, end_time)`.";
2256
+ readonly auth: "service";
2257
+ readonly scope: "payments:read";
2258
+ readonly params: {
2259
+ id: string;
2260
+ };
2261
+ readonly query: import("zod").ZodObject<{
2262
+ customer: import("zod").ZodString;
2263
+ start_time: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>;
2264
+ end_time: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodTransform<number, string | number>>, import("zod").ZodNumber>;
2265
+ }, import("zod/v4/core").$strict>;
2266
+ readonly response: import("zod").ZodObject<{
2267
+ object: import("zod").ZodLiteral<"list">;
2268
+ data: import("zod").ZodArray<import("zod").ZodObject<{
2269
+ id: import("zod").ZodString;
2270
+ object: import("zod").ZodLiteral<"billing.meter_event_summary">;
2271
+ livemode: import("zod").ZodBoolean;
2272
+ meter: import("zod").ZodString;
2273
+ aggregated_value: import("zod").ZodString;
2274
+ start_time: import("zod").ZodNumber;
2275
+ end_time: import("zod").ZodNumber;
2276
+ }, import("zod/v4/core").$strict>>;
2277
+ has_more: import("zod").ZodBoolean;
2278
+ url: import("zod").ZodString;
2279
+ }, import("zod/v4/core").$strict>;
2280
+ readonly sdk: "billing.meters.listEventSummaries";
2281
+ }, {
2282
+ readonly operationId: "createBillingMeterEvent";
2283
+ readonly method: "post";
2284
+ readonly path: "/v1/billing/meter_events";
2285
+ readonly tag: "Meters";
2286
+ readonly summary: "Record a meter event";
2287
+ readonly description: "The customer must be yours and the value a non-negative integer. A repeated `identifier` answers the stored event.";
2288
+ readonly auth: "service";
2289
+ readonly scope: "payments:write";
2290
+ readonly idempotent: true;
2291
+ readonly body: import("zod").ZodObject<{
2292
+ event_name: import("zod").ZodString;
2293
+ payload: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2294
+ identifier: import("zod").ZodOptional<import("zod").ZodString>;
2295
+ timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
2296
+ }, import("zod/v4/core").$strict>;
2297
+ readonly response: import("zod").ZodObject<{
2298
+ object: import("zod").ZodLiteral<"billing.meter_event">;
2299
+ livemode: import("zod").ZodBoolean;
2300
+ identifier: import("zod").ZodString;
2301
+ event_name: import("zod").ZodString;
2302
+ payload: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2303
+ timestamp: import("zod").ZodNumber;
2304
+ created: import("zod").ZodNumber;
2305
+ }, import("zod/v4/core").$strict>;
2306
+ readonly sdk: "billing.meterEvents.create";
2307
+ }, {
2308
+ readonly operationId: "listBillingRails";
2309
+ readonly method: "get";
2310
+ readonly path: "/v1/billing/rails";
2311
+ readonly tag: "Recurring billing";
2312
+ readonly summary: "List the settlement rails";
2313
+ readonly description: "The rails this merchant's payers can choose between (card and other fiat providers, FairCoin), default first, with each rail's offers. Pass the payer's choice as `rail` to `ensureCustomer`.";
2314
+ readonly auth: "service";
2315
+ readonly scope: "payments:read";
2316
+ readonly response: import("zod").ZodObject<{
2317
+ object: import("zod").ZodLiteral<"list">;
2318
+ data: import("zod").ZodArray<import("zod").ZodObject<{
2319
+ rail: import("zod").ZodString;
2320
+ settlement: import("zod").ZodEnum<{
2321
+ faircoin: "faircoin";
2322
+ fiat: "fiat";
2323
+ }>;
2324
+ default: import("zod").ZodBoolean;
2325
+ tax_quotes: import("zod").ZodBoolean;
2326
+ renewal: import("zod").ZodEnum<{
2327
+ automatic: "automatic";
2328
+ payer_initiated: "payer_initiated";
2329
+ }>;
2330
+ offers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
2331
+ provider_price_id: import("zod").ZodString;
2332
+ plan_id: import("zod").ZodString;
2333
+ interval: import("zod").ZodEnum<{
2334
+ month: "month";
2335
+ year: "year";
2336
+ }>;
2337
+ currency: import("zod").ZodString;
2338
+ gross_minor_units: import("zod").ZodNumber;
2339
+ tax_treatment: import("zod").ZodEnum<{
2340
+ inclusive: "inclusive";
2341
+ exclusive: "exclusive";
2342
+ }>;
2343
+ }, import("zod/v4/core").$strict>>>;
2344
+ }, import("zod/v4/core").$strict>>;
2345
+ }, import("zod/v4/core").$strict>;
2346
+ readonly sdk: "billing.listRails";
2347
+ }, {
2348
+ readonly operationId: "createBillingTaxQuote";
2349
+ readonly method: "post";
2350
+ readonly path: "/v1/billing/tax_quotes";
2351
+ readonly tag: "Recurring billing";
2352
+ readonly summary: "Quote the tax of a plan";
2353
+ readonly description: "A signed Peable Tax quote for one plan and one customer location. Verify its signature against the pinned keys before passing it to a checkout.";
2354
+ readonly auth: "service";
2355
+ readonly scope: "payments:read";
2356
+ readonly body: import("zod").ZodObject<{
2357
+ rail: import("zod").ZodOptional<import("zod").ZodString>;
2358
+ store_id: import("zod").ZodString;
2359
+ plan_id: import("zod").ZodString;
2360
+ provider_price_id: import("zod").ZodOptional<import("zod").ZodString>;
2361
+ customer_location_evidence_id: import("zod").ZodString;
2362
+ }, import("zod/v4/core").$strict>;
2363
+ readonly response: import("zod").ZodObject<{
2364
+ schema_version: import("zod").ZodLiteral<2>;
2365
+ source: import("zod").ZodObject<{
2366
+ merchant_id: import("zod").ZodString;
2367
+ app_id: import("zod").ZodString;
2368
+ store_id: import("zod").ZodString;
2369
+ plan_id: import("zod").ZodString;
2370
+ mode: import("zod").ZodEnum<{
2371
+ test: "test";
2372
+ live: "live";
2373
+ }>;
2374
+ environment: import("zod").ZodEnum<{
2375
+ development: "development";
2376
+ staging: "staging";
2377
+ production: "production";
2378
+ }>;
2379
+ }, import("zod/v4/core").$strict>;
2380
+ quote: import("zod").ZodObject<{
2381
+ id: import("zod").ZodString;
2382
+ currency: import("zod").ZodString;
2383
+ gross_minor_units: import("zod").ZodNumber;
2384
+ net_minor_units: import("zod").ZodNumber;
2385
+ tax_minor_units: import("zod").ZodNumber;
2386
+ tax_treatment: import("zod").ZodEnum<{
2387
+ inclusive: "inclusive";
2388
+ exclusive: "exclusive";
2389
+ }>;
2390
+ seller_id: import("zod").ZodString;
2391
+ invoice_issuer_id: import("zod").ZodString;
2392
+ tax_remitter_id: import("zod").ZodString;
2393
+ tax_service_ref: import("zod").ZodString;
2394
+ country: import("zod").ZodString;
2395
+ coverage_evidence_id: import("zod").ZodString;
2396
+ tax_rate_evidence_id: import("zod").ZodString;
2397
+ customer_location_evidence_id: import("zod").ZodString;
2398
+ quoted_at: import("zod").ZodNumber;
2399
+ expires_at: import("zod").ZodNumber;
2400
+ }, import("zod/v4/core").$strict>;
2401
+ signature: import("zod").ZodObject<{
2402
+ algorithm: import("zod").ZodLiteral<"Ed25519">;
2403
+ key_id: import("zod").ZodString;
2404
+ value: import("zod").ZodString;
2405
+ }, import("zod/v4/core").$strict>;
2406
+ }, import("zod/v4/core").$strict>;
2407
+ readonly sdk: "billing.createTaxQuote";
2408
+ }, {
2409
+ readonly operationId: "ensureBillingCustomer";
2410
+ readonly method: "post";
2411
+ readonly path: "/v1/billing/customers";
2412
+ readonly tag: "Recurring billing";
2413
+ readonly summary: "Ensure the billing customer of a store";
2414
+ readonly description: "The same store always answers the same customer. Requires an `Idempotency-Key` header: it is the operation’s identity at the provider.";
2415
+ readonly auth: "service";
2416
+ readonly scope: "payments:write";
2417
+ readonly body: import("zod").ZodObject<{
2418
+ store_id: import("zod").ZodString;
2419
+ store_name: import("zod").ZodString;
2420
+ rail: import("zod").ZodOptional<import("zod").ZodString>;
2421
+ }, import("zod/v4/core").$strict>;
2422
+ readonly response: import("zod").ZodObject<{
2423
+ provider_customer_id: import("zod").ZodString;
2424
+ }, import("zod/v4/core").$strict>;
2425
+ readonly sdk: "billing.ensureCustomer";
2426
+ }, {
2427
+ readonly operationId: "createBillingCheckoutSession";
2428
+ readonly method: "post";
2429
+ readonly path: "/v1/billing/checkout_sessions";
2430
+ readonly tag: "Recurring billing";
2431
+ readonly summary: "Create a subscription checkout";
2432
+ readonly description: "A hosted checkout for one plan. Completing it is not paid evidence: read the subscription and its paid invoice. Requires an `Idempotency-Key` header: it is the operation’s identity at the provider.";
2433
+ readonly auth: "service";
2434
+ readonly scope: "payments:write";
2435
+ readonly body: import("zod").ZodObject<{
2436
+ rail: import("zod").ZodOptional<import("zod").ZodString>;
2437
+ provider_customer_id: import("zod").ZodString;
2438
+ provider_price_id: import("zod").ZodString;
2439
+ trial_days: import("zod").ZodNumber;
2440
+ tax_quote: import("zod").ZodOptional<import("zod").ZodObject<{
2441
+ schema_version: import("zod").ZodLiteral<2>;
2442
+ source: import("zod").ZodObject<{
2443
+ merchant_id: import("zod").ZodString;
2444
+ app_id: import("zod").ZodString;
2445
+ store_id: import("zod").ZodString;
2446
+ plan_id: import("zod").ZodString;
2447
+ mode: import("zod").ZodEnum<{
2448
+ test: "test";
2449
+ live: "live";
2450
+ }>;
2451
+ environment: import("zod").ZodEnum<{
2452
+ development: "development";
2453
+ staging: "staging";
2454
+ production: "production";
2455
+ }>;
2456
+ }, import("zod/v4/core").$strict>;
2457
+ quote: import("zod").ZodObject<{
2458
+ id: import("zod").ZodString;
2459
+ currency: import("zod").ZodString;
2460
+ gross_minor_units: import("zod").ZodNumber;
2461
+ net_minor_units: import("zod").ZodNumber;
2462
+ tax_minor_units: import("zod").ZodNumber;
2463
+ tax_treatment: import("zod").ZodEnum<{
2464
+ inclusive: "inclusive";
2465
+ exclusive: "exclusive";
2466
+ }>;
2467
+ seller_id: import("zod").ZodString;
2468
+ invoice_issuer_id: import("zod").ZodString;
2469
+ tax_remitter_id: import("zod").ZodString;
2470
+ tax_service_ref: import("zod").ZodString;
2471
+ country: import("zod").ZodString;
2472
+ coverage_evidence_id: import("zod").ZodString;
2473
+ tax_rate_evidence_id: import("zod").ZodString;
2474
+ customer_location_evidence_id: import("zod").ZodString;
2475
+ quoted_at: import("zod").ZodNumber;
2476
+ expires_at: import("zod").ZodNumber;
2477
+ }, import("zod/v4/core").$strict>;
2478
+ signature: import("zod").ZodObject<{
2479
+ algorithm: import("zod").ZodLiteral<"Ed25519">;
2480
+ key_id: import("zod").ZodString;
2481
+ value: import("zod").ZodString;
2482
+ }, import("zod/v4/core").$strict>;
2483
+ }, import("zod/v4/core").$strict>>;
2484
+ return_url: import("zod").ZodString;
2485
+ store_id: import("zod").ZodString;
2486
+ plan_id: import("zod").ZodString;
2487
+ }, import("zod/v4/core").$strict>;
2488
+ readonly response: import("zod").ZodObject<{
2489
+ id: import("zod").ZodString;
2490
+ url: import("zod").ZodString;
2491
+ expires_at: import("zod").ZodNumber;
2492
+ }, import("zod/v4/core").$strict>;
2493
+ readonly sdk: "billing.createCheckoutSession";
2494
+ }, {
2495
+ readonly operationId: "retrieveBillingEmbeddedCheckoutConfiguration";
2496
+ readonly method: "get";
2497
+ readonly path: "/v1/billing/embedded_checkout_configuration";
2498
+ readonly tag: "Recurring billing";
2499
+ readonly summary: "Retrieve the embedded checkout configuration";
2500
+ readonly auth: "service";
2501
+ readonly scope: "payments:read";
2502
+ readonly response: import("zod").ZodObject<{
2503
+ scope: import("zod").ZodObject<{
2504
+ merchant_id: import("zod").ZodString;
2505
+ app_id: import("zod").ZodString;
2506
+ environment: import("zod").ZodEnum<{
2507
+ development: "development";
2508
+ staging: "staging";
2509
+ production: "production";
2510
+ }>;
2511
+ mode: import("zod").ZodEnum<{
2512
+ test: "test";
2513
+ live: "live";
2514
+ }>;
2515
+ }, import("zod/v4/core").$strict>;
2516
+ publishable_key: import("zod").ZodString;
2517
+ payment_methods: import("zod").ZodArray<import("zod").ZodObject<{
2518
+ id: import("zod").ZodLiteral<"card">;
2519
+ available: import("zod").ZodBoolean;
2520
+ }, import("zod/v4/core").$strict>>;
2521
+ }, import("zod/v4/core").$strict>;
2522
+ readonly sdk: "billing.embeddedCheckoutConfiguration";
2523
+ }, {
2524
+ readonly operationId: "createBillingEmbeddedCheckoutSession";
2525
+ readonly method: "post";
2526
+ readonly path: "/v1/billing/embedded_checkout_sessions";
2527
+ readonly tag: "Recurring billing";
2528
+ readonly summary: "Create an embedded subscription checkout";
2529
+ readonly description: "Fiscal checkout only: `tax_quote` is required. Requires an `Idempotency-Key` header: it is the operation’s identity at the provider.";
2530
+ readonly auth: "service";
2531
+ readonly scope: "payments:write";
2532
+ readonly body: import("zod").ZodObject<{
2533
+ rail: import("zod").ZodOptional<import("zod").ZodString>;
2534
+ provider_customer_id: import("zod").ZodString;
2535
+ provider_price_id: import("zod").ZodString;
2536
+ trial_days: import("zod").ZodNumber;
2537
+ tax_quote: import("zod").ZodOptional<import("zod").ZodObject<{
2538
+ schema_version: import("zod").ZodLiteral<2>;
2539
+ source: import("zod").ZodObject<{
2540
+ merchant_id: import("zod").ZodString;
2541
+ app_id: import("zod").ZodString;
2542
+ store_id: import("zod").ZodString;
2543
+ plan_id: import("zod").ZodString;
2544
+ mode: import("zod").ZodEnum<{
2545
+ test: "test";
2546
+ live: "live";
2547
+ }>;
2548
+ environment: import("zod").ZodEnum<{
2549
+ development: "development";
2550
+ staging: "staging";
2551
+ production: "production";
2552
+ }>;
2553
+ }, import("zod/v4/core").$strict>;
2554
+ quote: import("zod").ZodObject<{
2555
+ id: import("zod").ZodString;
2556
+ currency: import("zod").ZodString;
2557
+ gross_minor_units: import("zod").ZodNumber;
2558
+ net_minor_units: import("zod").ZodNumber;
2559
+ tax_minor_units: import("zod").ZodNumber;
2560
+ tax_treatment: import("zod").ZodEnum<{
2561
+ inclusive: "inclusive";
2562
+ exclusive: "exclusive";
2563
+ }>;
2564
+ seller_id: import("zod").ZodString;
2565
+ invoice_issuer_id: import("zod").ZodString;
2566
+ tax_remitter_id: import("zod").ZodString;
2567
+ tax_service_ref: import("zod").ZodString;
2568
+ country: import("zod").ZodString;
2569
+ coverage_evidence_id: import("zod").ZodString;
2570
+ tax_rate_evidence_id: import("zod").ZodString;
2571
+ customer_location_evidence_id: import("zod").ZodString;
2572
+ quoted_at: import("zod").ZodNumber;
2573
+ expires_at: import("zod").ZodNumber;
2574
+ }, import("zod/v4/core").$strict>;
2575
+ signature: import("zod").ZodObject<{
2576
+ algorithm: import("zod").ZodLiteral<"Ed25519">;
2577
+ key_id: import("zod").ZodString;
2578
+ value: import("zod").ZodString;
2579
+ }, import("zod/v4/core").$strict>;
2580
+ }, import("zod/v4/core").$strict>>;
2581
+ return_url: import("zod").ZodString;
2582
+ store_id: import("zod").ZodString;
2583
+ plan_id: import("zod").ZodString;
2584
+ }, import("zod/v4/core").$strict>;
2585
+ readonly response: import("zod").ZodObject<{
2586
+ id: import("zod").ZodString;
2587
+ presentation: import("zod").ZodLiteral<"embedded">;
2588
+ expires_at: import("zod").ZodNumber;
2589
+ }, import("zod/v4/core").$strict>;
2590
+ readonly sdk: "billing.createEmbeddedCheckoutSession";
2591
+ }, {
2592
+ readonly operationId: "retrieveBillingEmbeddedCheckoutAction";
2593
+ readonly method: "get";
2594
+ readonly path: "/v1/billing/embedded_checkout_sessions/{id}/client_action";
2595
+ readonly tag: "Recurring billing";
2596
+ readonly summary: "Retrieve an embedded checkout’s client action";
2597
+ readonly description: "The ephemeral processor capability to mount the embedded checkout, released only to the owning workload; `action` is `null` once the session is complete or expired.";
2598
+ readonly auth: "service";
2599
+ readonly scope: "payments:read";
2600
+ readonly params: {
2601
+ readonly id: "The embedded checkout session (`cs_…`).";
2602
+ };
2603
+ readonly response: import("zod").ZodObject<{
2604
+ status: import("zod").ZodEnum<{
2605
+ open: "open";
2606
+ complete: "complete";
2607
+ expired: "expired";
2608
+ }>;
2609
+ action: import("zod").ZodNullable<import("zod").ZodObject<{
2610
+ kind: import("zod").ZodLiteral<"checkout_session">;
2611
+ provider: import("zod").ZodLiteral<"stripe">;
2612
+ session_id: import("zod").ZodString;
2613
+ client_secret: import("zod").ZodString;
2614
+ publishable_key: import("zod").ZodString;
2615
+ amount_minor_units: import("zod").ZodNumber;
2616
+ currency: import("zod").ZodString;
2617
+ }, import("zod/v4/core").$strict>>;
2618
+ scope: import("zod").ZodObject<{
2619
+ merchant_id: import("zod").ZodString;
2620
+ app_id: import("zod").ZodString;
2621
+ environment: import("zod").ZodEnum<{
2622
+ development: "development";
2623
+ staging: "staging";
2624
+ production: "production";
2625
+ }>;
2626
+ mode: import("zod").ZodEnum<{
2627
+ test: "test";
2628
+ live: "live";
2629
+ }>;
2630
+ store_id: import("zod").ZodString;
2631
+ plan_id: import("zod").ZodString;
2632
+ provider_customer_id: import("zod").ZodString;
2633
+ provider_price_id: import("zod").ZodString;
2634
+ }, import("zod/v4/core").$strict>;
2635
+ tax_quote: import("zod").ZodObject<{
2636
+ schema_version: import("zod").ZodLiteral<2>;
2637
+ source: import("zod").ZodObject<{
2638
+ merchant_id: import("zod").ZodString;
2639
+ app_id: import("zod").ZodString;
2640
+ store_id: import("zod").ZodString;
2641
+ plan_id: import("zod").ZodString;
2642
+ mode: import("zod").ZodEnum<{
2643
+ test: "test";
2644
+ live: "live";
2645
+ }>;
2646
+ environment: import("zod").ZodEnum<{
2647
+ development: "development";
2648
+ staging: "staging";
2649
+ production: "production";
2650
+ }>;
2651
+ }, import("zod/v4/core").$strict>;
2652
+ quote: import("zod").ZodObject<{
2653
+ id: import("zod").ZodString;
2654
+ currency: import("zod").ZodString;
2655
+ gross_minor_units: import("zod").ZodNumber;
2656
+ net_minor_units: import("zod").ZodNumber;
2657
+ tax_minor_units: import("zod").ZodNumber;
2658
+ tax_treatment: import("zod").ZodEnum<{
2659
+ inclusive: "inclusive";
2660
+ exclusive: "exclusive";
2661
+ }>;
2662
+ seller_id: import("zod").ZodString;
2663
+ invoice_issuer_id: import("zod").ZodString;
2664
+ tax_remitter_id: import("zod").ZodString;
2665
+ tax_service_ref: import("zod").ZodString;
2666
+ country: import("zod").ZodString;
2667
+ coverage_evidence_id: import("zod").ZodString;
2668
+ tax_rate_evidence_id: import("zod").ZodString;
2669
+ customer_location_evidence_id: import("zod").ZodString;
2670
+ quoted_at: import("zod").ZodNumber;
2671
+ expires_at: import("zod").ZodNumber;
2672
+ }, import("zod/v4/core").$strict>;
2673
+ signature: import("zod").ZodObject<{
2674
+ algorithm: import("zod").ZodLiteral<"Ed25519">;
2675
+ key_id: import("zod").ZodString;
2676
+ value: import("zod").ZodString;
2677
+ }, import("zod/v4/core").$strict>;
2678
+ }, import("zod/v4/core").$strict>;
2679
+ expires_at: import("zod").ZodNumber;
2680
+ }, import("zod/v4/core").$strict>;
2681
+ readonly sdk: "billing.retrieveEmbeddedCheckoutAction";
2682
+ }, {
2683
+ readonly operationId: "createRecurringBillingPortalSession";
2684
+ readonly method: "post";
2685
+ readonly path: "/v1/billing/portal_sessions";
2686
+ readonly tag: "Recurring billing";
2687
+ readonly summary: "Open the provider's billing portal";
2688
+ readonly description: "A short-lived, owner-only URL. Requires an `Idempotency-Key` header: it is the operation’s identity at the provider.";
2689
+ readonly auth: "service";
2690
+ readonly scope: "payments:write";
2691
+ readonly body: import("zod").ZodObject<{
2692
+ provider_customer_id: import("zod").ZodString;
2693
+ return_url: import("zod").ZodString;
2694
+ }, import("zod/v4/core").$strict>;
2695
+ readonly response: import("zod").ZodObject<{
2696
+ url: import("zod").ZodString;
2697
+ expires_at: import("zod").ZodNumber;
2698
+ }, import("zod/v4/core").$strict>;
2699
+ readonly sdk: "billing.createPortalSession";
2700
+ }, {
2701
+ readonly operationId: "retrieveBillingCheckoutOperation";
2702
+ readonly method: "get";
2703
+ readonly path: "/v1/billing/checkout_operations/{key}";
2704
+ readonly tag: "Recurring billing";
2705
+ readonly summary: "Recover a checkout operation";
2706
+ readonly description: "Reads the state of a checkout attempted under this `Idempotency-Key`, even after its quote or session expired. Missing, pending or indeterminate never authorizes another create or a cancellation.";
2707
+ readonly auth: "service";
2708
+ readonly scope: "payments:read";
2709
+ readonly params: {
2710
+ readonly key: "The `Idempotency-Key` the checkout was created with.";
2711
+ };
2712
+ readonly query: import("zod").ZodObject<{
2713
+ provider_customer_id: import("zod").ZodString;
2714
+ provider_price_id: import("zod").ZodString;
2715
+ store_id: import("zod").ZodString;
2716
+ plan_id: import("zod").ZodString;
2717
+ }, import("zod/v4/core").$strict>;
2718
+ readonly response: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2719
+ state: import("zod").ZodEnum<{
2720
+ not_found: "not_found";
2721
+ pending: "pending";
2722
+ indeterminate: "indeterminate";
2723
+ }>;
2724
+ source: import("zod").ZodObject<{
2725
+ idempotency_key: import("zod").ZodString;
2726
+ provider_customer_id: import("zod").ZodString;
2727
+ provider_price_id: import("zod").ZodString;
2728
+ store_id: import("zod").ZodString;
2729
+ plan_id: import("zod").ZodString;
2730
+ tax_quote_id: import("zod").ZodNullable<import("zod").ZodString>;
2731
+ merchant_id: import("zod").ZodString;
2732
+ app_id: import("zod").ZodString;
2733
+ mode: import("zod").ZodEnum<{
2734
+ test: "test";
2735
+ live: "live";
2736
+ }>;
2737
+ environment: import("zod").ZodEnum<{
2738
+ development: "development";
2739
+ staging: "staging";
2740
+ production: "production";
2741
+ }>;
2742
+ }, import("zod/v4/core").$strict>;
2743
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2744
+ state: import("zod").ZodLiteral<"succeeded">;
2745
+ source: import("zod").ZodObject<{
2746
+ idempotency_key: import("zod").ZodString;
2747
+ provider_customer_id: import("zod").ZodString;
2748
+ provider_price_id: import("zod").ZodString;
2749
+ store_id: import("zod").ZodString;
2750
+ plan_id: import("zod").ZodString;
2751
+ tax_quote_id: import("zod").ZodNullable<import("zod").ZodString>;
2752
+ merchant_id: import("zod").ZodString;
2753
+ app_id: import("zod").ZodString;
2754
+ mode: import("zod").ZodEnum<{
2755
+ test: "test";
2756
+ live: "live";
2757
+ }>;
2758
+ environment: import("zod").ZodEnum<{
2759
+ development: "development";
2760
+ staging: "staging";
2761
+ production: "production";
2762
+ }>;
2763
+ }, import("zod/v4/core").$strict>;
2764
+ checkout: import("zod").ZodObject<{
2765
+ id: import("zod").ZodString;
2766
+ expires_at: import("zod").ZodNumber;
2767
+ url: import("zod").ZodOptional<import("zod").ZodString>;
2768
+ }, import("zod/v4/core").$strict>;
2769
+ }, import("zod/v4/core").$strict>]>;
2770
+ readonly sdk: "billing.retrieveCheckoutOperation";
2771
+ }, {
2772
+ readonly operationId: "retrieveBillingCheckoutSession";
2773
+ readonly method: "get";
2774
+ readonly path: "/v1/billing/checkout_sessions/{id}";
2775
+ readonly tag: "Recurring billing";
2776
+ readonly summary: "Retrieve a subscription checkout";
2777
+ readonly auth: "service";
2778
+ readonly scope: "payments:read";
2779
+ readonly params: {
2780
+ readonly id: "The checkout session (`cs_…`).";
2781
+ };
2782
+ readonly response: import("zod").ZodObject<{
2783
+ initial_invoice_id: import("zod").ZodNullable<import("zod").ZodString>;
2784
+ id: import("zod").ZodString;
2785
+ status: import("zod").ZodEnum<{
2786
+ open: "open";
2787
+ complete: "complete";
2788
+ expired: "expired";
2789
+ }>;
2790
+ store_id: import("zod").ZodString;
2791
+ plan_id: import("zod").ZodString;
2792
+ provider_customer_id: import("zod").ZodString;
2793
+ provider_price_id: import("zod").ZodString;
2794
+ subscription: import("zod").ZodNullable<import("zod").ZodObject<{
2795
+ provider_subscription_id: import("zod").ZodString;
2796
+ latest_invoice_id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2797
+ provider_customer_id: import("zod").ZodString;
2798
+ provider_price_id: import("zod").ZodString;
2799
+ store_id: import("zod").ZodString;
2800
+ plan_id: import("zod").ZodString;
2801
+ livemode: import("zod").ZodBoolean;
2802
+ status: import("zod").ZodEnum<{
2803
+ active: "active";
2804
+ incomplete: "incomplete";
2805
+ incomplete_expired: "incomplete_expired";
2806
+ trialing: "trialing";
2807
+ past_due: "past_due";
2808
+ unpaid: "unpaid";
2809
+ canceled: "canceled";
2810
+ paused: "paused";
2811
+ }>;
2812
+ interval: import("zod").ZodEnum<{
2813
+ month: "month";
2814
+ year: "year";
2815
+ }>;
2816
+ cancel_at_period_end: import("zod").ZodBoolean;
2817
+ current_period_start: import("zod").ZodNumber;
2818
+ current_period_end: import("zod").ZodNumber;
2819
+ trial_ends_at: import("zod").ZodNullable<import("zod").ZodNumber>;
2820
+ cancel_at: import("zod").ZodNullable<import("zod").ZodNumber>;
2821
+ cancelled_at: import("zod").ZodNullable<import("zod").ZodNumber>;
2822
+ }, import("zod/v4/core").$strict>>;
2823
+ }, import("zod/v4/core").$strict>;
2824
+ readonly sdk: "billing.retrieveCheckout";
2825
+ }, {
2826
+ readonly operationId: "retrieveBillingInvoiceAuthority";
2827
+ readonly method: "get";
2828
+ readonly path: "/v1/billing/subscriptions/{id}/invoice_authorities/{invoiceId}";
2829
+ readonly tag: "Recurring billing";
2830
+ readonly summary: "Retrieve the signed final invoice authority";
2831
+ readonly description: "Signed fiscal evidence of one paid invoice. Verify the signature against the pinned keys (`PEABLE_BILLING_AUTHORITY_KEYS`).";
2832
+ readonly auth: "service";
2833
+ readonly scope: "payments:read";
2834
+ readonly params: {
2835
+ invoiceId: string;
2836
+ id: string;
2837
+ };
2838
+ readonly query: import("zod").ZodObject<{
2839
+ include: import("zod").ZodOptional<import("zod").ZodLiteral<"tax_lines">>;
2840
+ }, import("zod/v4/core").$strip>;
2841
+ readonly response: import("zod").ZodObject<{
2842
+ schema_version: import("zod").ZodLiteral<2>;
2843
+ source: import("zod").ZodObject<{
2844
+ invoice_id: import("zod").ZodString;
2845
+ payment_intent_id: import("zod").ZodString;
2846
+ customer_id: import("zod").ZodString;
2847
+ subscription_id: import("zod").ZodString;
2848
+ price_id: import("zod").ZodString;
2849
+ plan_id: import("zod").ZodString;
2850
+ merchant_id: import("zod").ZodString;
2851
+ app_id: import("zod").ZodString;
2852
+ mode: import("zod").ZodEnum<{
2853
+ test: "test";
2854
+ live: "live";
2855
+ }>;
2856
+ environment: import("zod").ZodEnum<{
2857
+ development: "development";
2858
+ staging: "staging";
2859
+ production: "production";
2860
+ }>;
2861
+ }, import("zod/v4/core").$strict>;
2862
+ invoice: import("zod").ZodObject<{
2863
+ platform: import("zod").ZodLiteral<"peable">;
2864
+ currency: import("zod").ZodString;
2865
+ gross_minor_units: import("zod").ZodNumber;
2866
+ net_minor_units: import("zod").ZodNumber;
2867
+ tax_minor_units: import("zod").ZodNumber;
2868
+ merchant_fee_minor_units: import("zod").ZodNumber;
2869
+ tax_treatment: import("zod").ZodEnum<{
2870
+ inclusive: "inclusive";
2871
+ exclusive: "exclusive";
2872
+ }>;
2873
+ seller_id: import("zod").ZodString;
2874
+ invoice_issuer_id: import("zod").ZodString;
2875
+ tax_quote_id: import("zod").ZodString;
2876
+ customer_location_evidence_id: import("zod").ZodString;
2877
+ tax_rate_evidence_id: import("zod").ZodString;
2878
+ context: import("zod").ZodObject<{
2879
+ payer_account_id: import("zod").ZodString;
2880
+ beneficiary_account_id: import("zod").ZodString;
2881
+ provider_subscription_id: import("zod").ZodString;
2882
+ offer_id: import("zod").ZodString;
2883
+ offer_version: import("zod").ZodNumber;
2884
+ period_start: import("zod").ZodNumber;
2885
+ period_end: import("zod").ZodNumber;
2886
+ mode: import("zod").ZodEnum<{
2887
+ test: "test";
2888
+ live: "live";
2889
+ }>;
2890
+ environment: import("zod").ZodEnum<{
2891
+ development: "development";
2892
+ staging: "staging";
2893
+ production: "production";
2894
+ }>;
2895
+ }, import("zod/v4/core").$strict>;
2896
+ issued_at: import("zod").ZodNumber;
2897
+ expires_at: import("zod").ZodNumber;
2898
+ faircoin_quote: import("zod").ZodOptional<import("zod").ZodObject<{
2899
+ id: import("zod").ZodString;
2900
+ amount_base_units: import("zod").ZodString;
2901
+ quoted_at: import("zod").ZodNumber;
2902
+ expires_at: import("zod").ZodNumber;
2903
+ rounding_evidence_id: import("zod").ZodString;
2904
+ }, import("zod/v4/core").$strict>>;
2905
+ tax_lines: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2906
+ calculation_id: import("zod").ZodString;
2907
+ country: import("zod").ZodString;
2908
+ state: import("zod").ZodNullable<import("zod").ZodString>;
2909
+ tax_type: import("zod").ZodNullable<import("zod").ZodString>;
2910
+ rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
2911
+ taxable_minor_units: import("zod").ZodNumber;
2912
+ tax_minor_units: import("zod").ZodNumber;
2913
+ inclusive: import("zod").ZodBoolean;
2914
+ taxability_reason: import("zod").ZodString;
2915
+ }, import("zod/v4/core").$strict>>>;
2916
+ }, import("zod/v4/core").$strict>;
2917
+ method: import("zod").ZodEnum<{
2918
+ card: "card";
2919
+ faircoin: "faircoin";
2920
+ }>;
2921
+ signature: import("zod").ZodObject<{
2922
+ algorithm: import("zod").ZodLiteral<"Ed25519">;
2923
+ key_id: import("zod").ZodString;
2924
+ value: import("zod").ZodString;
2925
+ }, import("zod/v4/core").$strict>;
2926
+ }, import("zod/v4/core").$strict>;
2927
+ readonly sdk: "billing.retrieveFinalInvoiceAuthority";
2928
+ }, {
2929
+ readonly operationId: "retrieveBillingInvoiceState";
2930
+ readonly method: "get";
2931
+ readonly path: "/v1/billing/subscriptions/{id}/invoice_states/{invoiceId}";
2932
+ readonly tag: "Recurring billing";
2933
+ readonly summary: "Retrieve the refund state of a paid invoice";
2934
+ readonly auth: "service";
2935
+ readonly scope: "payments:read";
2936
+ readonly params: {
2937
+ invoiceId: string;
2938
+ id: string;
2939
+ };
2940
+ readonly response: import("zod").ZodObject<{
2941
+ invoice_id: import("zod").ZodString;
2942
+ line_id: import("zod").ZodString;
2943
+ payment_intent_id: import("zod").ZodString;
2944
+ provider_subscription_id: import("zod").ZodString;
2945
+ provider_customer_id: import("zod").ZodString;
2946
+ provider_price_id: import("zod").ZodString;
2947
+ store_id: import("zod").ZodString;
2948
+ plan_id: import("zod").ZodString;
2949
+ livemode: import("zod").ZodBoolean;
2950
+ currency: import("zod").ZodString;
2951
+ amount_paid: import("zod").ZodString;
2952
+ net_amount: import("zod").ZodNullable<import("zod").ZodString>;
2953
+ tax_amount: import("zod").ZodNullable<import("zod").ZodString>;
2954
+ period_start: import("zod").ZodNumber;
2955
+ period_end: import("zod").ZodNumber;
2956
+ paid_at: import("zod").ZodNumber;
2957
+ observed_at: import("zod").ZodNumber;
2958
+ charge_id: import("zod").ZodString;
2959
+ amount_refunded: import("zod").ZodString;
2960
+ state: import("zod").ZodEnum<{
2961
+ paid: "paid";
2962
+ fully_refunded: "fully_refunded";
2963
+ partially_refunded: "partially_refunded";
2964
+ }>;
2965
+ }, import("zod/v4/core").$strict>;
2966
+ readonly sdk: "billing.retrieveInvoiceState";
2967
+ }, {
2968
+ readonly operationId: "retrieveBillingPaidInvoice";
2969
+ readonly method: "get";
2970
+ readonly path: "/v1/billing/subscriptions/{id}/paid_invoices/{invoiceId}";
2971
+ readonly tag: "Recurring billing";
2972
+ readonly summary: "Retrieve a paid invoice";
2973
+ readonly description: "Paid-period evidence: answers only for a settled, full, non-prorated invoice.";
2974
+ readonly auth: "service";
2975
+ readonly scope: "payments:read";
2976
+ readonly params: {
2977
+ invoiceId: string;
2978
+ id: string;
2979
+ };
2980
+ readonly response: import("zod").ZodObject<{
2981
+ invoice_id: import("zod").ZodString;
2982
+ line_id: import("zod").ZodString;
2983
+ payment_intent_id: import("zod").ZodString;
2984
+ provider_subscription_id: import("zod").ZodString;
2985
+ provider_customer_id: import("zod").ZodString;
2986
+ provider_price_id: import("zod").ZodString;
2987
+ store_id: import("zod").ZodString;
2988
+ plan_id: import("zod").ZodString;
2989
+ livemode: import("zod").ZodBoolean;
2990
+ currency: import("zod").ZodString;
2991
+ amount_paid: import("zod").ZodString;
2992
+ net_amount: import("zod").ZodNullable<import("zod").ZodString>;
2993
+ tax_amount: import("zod").ZodNullable<import("zod").ZodString>;
2994
+ period_start: import("zod").ZodNumber;
2995
+ period_end: import("zod").ZodNumber;
2996
+ paid_at: import("zod").ZodNumber;
2997
+ observed_at: import("zod").ZodNumber;
2998
+ }, import("zod/v4/core").$strict>;
2999
+ readonly sdk: "billing.retrievePaidInvoice";
3000
+ }, {
3001
+ readonly operationId: "retrieveBillingSubscription";
3002
+ readonly method: "get";
3003
+ readonly path: "/v1/billing/subscriptions/{id}";
3004
+ readonly tag: "Recurring billing";
3005
+ readonly summary: "Retrieve a subscription";
3006
+ readonly auth: "service";
3007
+ readonly scope: "payments:read";
3008
+ readonly params: {
3009
+ id: string;
3010
+ };
3011
+ readonly response: import("zod").ZodObject<{
3012
+ provider_subscription_id: import("zod").ZodString;
3013
+ latest_invoice_id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
3014
+ provider_customer_id: import("zod").ZodString;
3015
+ provider_price_id: import("zod").ZodString;
3016
+ store_id: import("zod").ZodString;
3017
+ plan_id: import("zod").ZodString;
3018
+ livemode: import("zod").ZodBoolean;
3019
+ status: import("zod").ZodEnum<{
3020
+ active: "active";
3021
+ incomplete: "incomplete";
3022
+ incomplete_expired: "incomplete_expired";
3023
+ trialing: "trialing";
3024
+ past_due: "past_due";
3025
+ unpaid: "unpaid";
3026
+ canceled: "canceled";
3027
+ paused: "paused";
3028
+ }>;
3029
+ interval: import("zod").ZodEnum<{
3030
+ month: "month";
3031
+ year: "year";
3032
+ }>;
3033
+ cancel_at_period_end: import("zod").ZodBoolean;
3034
+ current_period_start: import("zod").ZodNumber;
3035
+ current_period_end: import("zod").ZodNumber;
3036
+ trial_ends_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3037
+ cancel_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3038
+ cancelled_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3039
+ }, import("zod/v4/core").$strict>;
3040
+ readonly sdk: "billing.retrieveSubscription";
3041
+ }, {
3042
+ readonly operationId: "renewBillingSubscription";
3043
+ readonly method: "post";
3044
+ readonly path: "/v1/billing/subscriptions/{id}/renew";
3045
+ readonly tag: "Recurring billing";
3046
+ readonly summary: "Renew a payer-initiated subscription";
3047
+ readonly description: "Opens a new expiring FAIR payment for one monthly period. Never auto-debits. Requires an `Idempotency-Key` header: it is the operation’s identity at the provider.";
3048
+ readonly auth: "service";
3049
+ readonly scope: "payments:write";
3050
+ readonly params: {
3051
+ id: string;
3052
+ };
3053
+ readonly body: import("zod").ZodObject<{
3054
+ rail: import("zod").ZodOptional<import("zod").ZodString>;
3055
+ provider_customer_id: import("zod").ZodString;
3056
+ provider_price_id: import("zod").ZodString;
3057
+ trial_days: import("zod").ZodNumber;
3058
+ tax_quote: import("zod").ZodOptional<import("zod").ZodObject<{
3059
+ schema_version: import("zod").ZodLiteral<2>;
3060
+ source: import("zod").ZodObject<{
3061
+ merchant_id: import("zod").ZodString;
3062
+ app_id: import("zod").ZodString;
3063
+ store_id: import("zod").ZodString;
3064
+ plan_id: import("zod").ZodString;
3065
+ mode: import("zod").ZodEnum<{
3066
+ test: "test";
3067
+ live: "live";
3068
+ }>;
3069
+ environment: import("zod").ZodEnum<{
3070
+ development: "development";
3071
+ staging: "staging";
3072
+ production: "production";
3073
+ }>;
3074
+ }, import("zod/v4/core").$strict>;
3075
+ quote: import("zod").ZodObject<{
3076
+ id: import("zod").ZodString;
3077
+ currency: import("zod").ZodString;
3078
+ gross_minor_units: import("zod").ZodNumber;
3079
+ net_minor_units: import("zod").ZodNumber;
3080
+ tax_minor_units: import("zod").ZodNumber;
3081
+ tax_treatment: import("zod").ZodEnum<{
3082
+ inclusive: "inclusive";
3083
+ exclusive: "exclusive";
3084
+ }>;
3085
+ seller_id: import("zod").ZodString;
3086
+ invoice_issuer_id: import("zod").ZodString;
3087
+ tax_remitter_id: import("zod").ZodString;
3088
+ tax_service_ref: import("zod").ZodString;
3089
+ country: import("zod").ZodString;
3090
+ coverage_evidence_id: import("zod").ZodString;
3091
+ tax_rate_evidence_id: import("zod").ZodString;
3092
+ customer_location_evidence_id: import("zod").ZodString;
3093
+ quoted_at: import("zod").ZodNumber;
3094
+ expires_at: import("zod").ZodNumber;
3095
+ }, import("zod/v4/core").$strict>;
3096
+ signature: import("zod").ZodObject<{
3097
+ algorithm: import("zod").ZodLiteral<"Ed25519">;
3098
+ key_id: import("zod").ZodString;
3099
+ value: import("zod").ZodString;
3100
+ }, import("zod/v4/core").$strict>;
3101
+ }, import("zod/v4/core").$strict>>;
3102
+ return_url: import("zod").ZodString;
3103
+ store_id: import("zod").ZodString;
3104
+ plan_id: import("zod").ZodString;
3105
+ }, import("zod/v4/core").$strict>;
3106
+ readonly response: import("zod").ZodObject<{
3107
+ id: import("zod").ZodString;
3108
+ url: import("zod").ZodString;
3109
+ expires_at: import("zod").ZodNumber;
3110
+ }, import("zod/v4/core").$strict>;
3111
+ readonly sdk: "billing.renewSubscription";
3112
+ }, {
3113
+ readonly operationId: "cancelBillingSubscriptionAtPeriodEnd";
3114
+ readonly method: "post";
3115
+ readonly path: "/v1/billing/subscriptions/{id}/cancel_at_period_end";
3116
+ readonly tag: "Recurring billing";
3117
+ readonly summary: "Cancel a subscription at period end";
3118
+ readonly description: "Access continues to the end of the paid period. Requires an `Idempotency-Key` header: it is the operation’s identity at the provider.";
3119
+ readonly auth: "service";
3120
+ readonly scope: "payments:write";
3121
+ readonly params: {
3122
+ id: string;
3123
+ };
3124
+ readonly body: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
3125
+ readonly response: import("zod").ZodObject<{
3126
+ provider_subscription_id: import("zod").ZodString;
3127
+ latest_invoice_id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
3128
+ provider_customer_id: import("zod").ZodString;
3129
+ provider_price_id: import("zod").ZodString;
3130
+ store_id: import("zod").ZodString;
3131
+ plan_id: import("zod").ZodString;
3132
+ livemode: import("zod").ZodBoolean;
3133
+ status: import("zod").ZodEnum<{
3134
+ active: "active";
3135
+ incomplete: "incomplete";
3136
+ incomplete_expired: "incomplete_expired";
3137
+ trialing: "trialing";
3138
+ past_due: "past_due";
3139
+ unpaid: "unpaid";
3140
+ canceled: "canceled";
3141
+ paused: "paused";
3142
+ }>;
3143
+ interval: import("zod").ZodEnum<{
3144
+ month: "month";
3145
+ year: "year";
3146
+ }>;
3147
+ cancel_at_period_end: import("zod").ZodBoolean;
3148
+ current_period_start: import("zod").ZodNumber;
3149
+ current_period_end: import("zod").ZodNumber;
3150
+ trial_ends_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3151
+ cancel_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3152
+ cancelled_at: import("zod").ZodNullable<import("zod").ZodNumber>;
3153
+ }, import("zod/v4/core").$strict>;
3154
+ readonly sdk: "billing.cancelAtPeriodEnd";
3155
+ }];