@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,1728 @@
1
+ import { z } from 'zod';
2
+ import { type Expand } from '../../common/objects';
3
+ /**
4
+ * Payment Links (`link_…`, Orbit Phase 3) — Stripe's model: a shareable URL
5
+ * over catalog PRICES. A payer visiting it creates a Checkout Session with the
6
+ * link's line items and options; the session creates the payment when the
7
+ * payer confirms. Nothing about a link mints a payment on its own.
8
+ *
9
+ * A contribution link (an Oxy organization's FairCoin collection) is a payment
10
+ * link whose one line is the contribution itself — a fixed amount, or one the
11
+ * payer chooses — rather than a price.
12
+ */
13
+ export declare const checkoutAfterCompletionSchema: z.ZodObject<{
14
+ type: z.ZodEnum<{
15
+ redirect: "redirect";
16
+ hosted_confirmation: "hosted_confirmation";
17
+ }>;
18
+ redirect: z.ZodNullable<z.ZodObject<{
19
+ url: z.ZodString;
20
+ }, z.core.$strict>>;
21
+ hosted_confirmation: z.ZodNullable<z.ZodObject<{
22
+ custom_message: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strict>>;
24
+ }, z.core.$strict>;
25
+ export type CheckoutAfterCompletion = z.output<typeof checkoutAfterCompletionSchema>;
26
+ export declare const paymentLinkSchema: z.ZodObject<{
27
+ automatic_tax: z.ZodObject<{
28
+ enabled: z.ZodBoolean;
29
+ }, z.core.$strict>;
30
+ customer_creation: z.ZodEnum<{
31
+ always: "always";
32
+ if_required: "if_required";
33
+ }>;
34
+ after_completion: z.ZodObject<{
35
+ type: z.ZodEnum<{
36
+ redirect: "redirect";
37
+ hosted_confirmation: "hosted_confirmation";
38
+ }>;
39
+ redirect: z.ZodNullable<z.ZodObject<{
40
+ url: z.ZodString;
41
+ }, z.core.$strict>>;
42
+ hosted_confirmation: z.ZodNullable<z.ZodObject<{
43
+ custom_message: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strict>>;
45
+ }, z.core.$strict>;
46
+ restrictions: z.ZodNullable<z.ZodObject<{
47
+ completed_sessions: z.ZodObject<{
48
+ limit: z.ZodNumber;
49
+ count: z.ZodNumber;
50
+ }, z.core.$strict>;
51
+ }, z.core.$strict>>;
52
+ submit_type: z.ZodEnum<{
53
+ auto: "auto";
54
+ pay: "pay";
55
+ book: "book";
56
+ donate: "donate";
57
+ }>;
58
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
59
+ url: z.ZodString;
60
+ created: z.ZodNumber;
61
+ updated_at: z.ZodNumber;
62
+ billing_address_collection: z.ZodEnum<{
63
+ auto: "auto";
64
+ required: "required";
65
+ }>;
66
+ shipping_address_collection: z.ZodNullable<z.ZodObject<{
67
+ allowed_countries: z.ZodArray<z.ZodString>;
68
+ }, z.core.$strict>>;
69
+ phone_number_collection: z.ZodObject<{
70
+ enabled: z.ZodBoolean;
71
+ }, z.core.$strict>;
72
+ tax_id_collection: z.ZodObject<{
73
+ enabled: z.ZodBoolean;
74
+ }, z.core.$strict>;
75
+ custom_fields: z.ZodArray<z.ZodObject<{
76
+ key: z.ZodString;
77
+ label: z.ZodObject<{
78
+ type: z.ZodLiteral<"custom">;
79
+ custom: z.ZodString;
80
+ }, z.core.$strict>;
81
+ type: z.ZodEnum<{
82
+ text: "text";
83
+ numeric: "numeric";
84
+ dropdown: "dropdown";
85
+ }>;
86
+ optional: z.ZodBoolean;
87
+ dropdown: z.ZodNullable<z.ZodObject<{
88
+ options: z.ZodArray<z.ZodObject<{
89
+ label: z.ZodString;
90
+ value: z.ZodString;
91
+ }, z.core.$strict>>;
92
+ value: z.ZodNullable<z.ZodString>;
93
+ }, z.core.$strict>>;
94
+ text: z.ZodNullable<z.ZodObject<{
95
+ minimum_length: z.ZodNullable<z.ZodNumber>;
96
+ maximum_length: z.ZodNullable<z.ZodNumber>;
97
+ value: z.ZodNullable<z.ZodString>;
98
+ }, z.core.$strict>>;
99
+ numeric: z.ZodNullable<z.ZodObject<{
100
+ minimum_length: z.ZodNullable<z.ZodNumber>;
101
+ maximum_length: z.ZodNullable<z.ZodNumber>;
102
+ value: z.ZodNullable<z.ZodString>;
103
+ }, z.core.$strict>>;
104
+ }, z.core.$strict>>;
105
+ consent_collection: z.ZodNullable<z.ZodObject<{
106
+ terms_of_service: z.ZodEnum<{
107
+ none: "none";
108
+ required: "required";
109
+ }>;
110
+ }, z.core.$strict>>;
111
+ allow_promotion_codes: z.ZodBoolean;
112
+ id: z.ZodString;
113
+ object: z.ZodLiteral<"payment_link">;
114
+ livemode: z.ZodBoolean;
115
+ active: z.ZodBoolean;
116
+ currency: z.ZodEnum<{
117
+ FAIR: "FAIR";
118
+ EUR: "EUR";
119
+ USD: "USD";
120
+ GBP: "GBP";
121
+ CHF: "CHF";
122
+ SEK: "SEK";
123
+ NOK: "NOK";
124
+ DKK: "DKK";
125
+ PLN: "PLN";
126
+ CZK: "CZK";
127
+ CAD: "CAD";
128
+ AUD: "AUD";
129
+ JPY: "JPY";
130
+ }>;
131
+ rail: z.ZodEnum<{
132
+ card: "card";
133
+ faircoin: "faircoin";
134
+ }>;
135
+ network: z.ZodNullable<z.ZodEnum<{
136
+ mainnet: "mainnet";
137
+ testnet: "testnet";
138
+ }>>;
139
+ line_items: z.ZodArray<z.ZodObject<{
140
+ id: z.ZodString;
141
+ object: z.ZodLiteral<"item">;
142
+ description: z.ZodString;
143
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
144
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
145
+ images: z.ZodArray<z.ZodString>;
146
+ quantity: z.ZodNumber;
147
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
148
+ enabled: z.ZodBoolean;
149
+ minimum: z.ZodNullable<z.ZodNumber>;
150
+ maximum: z.ZodNullable<z.ZodNumber>;
151
+ }, z.core.$strict>>;
152
+ currency: z.ZodEnum<{
153
+ FAIR: "FAIR";
154
+ EUR: "EUR";
155
+ USD: "USD";
156
+ GBP: "GBP";
157
+ CHF: "CHF";
158
+ SEK: "SEK";
159
+ NOK: "NOK";
160
+ DKK: "DKK";
161
+ PLN: "PLN";
162
+ CZK: "CZK";
163
+ CAD: "CAD";
164
+ AUD: "AUD";
165
+ JPY: "JPY";
166
+ }>;
167
+ unit_amount: z.ZodNullable<z.ZodString>;
168
+ amount_subtotal: z.ZodString;
169
+ amount_discount: z.ZodString;
170
+ amount_tax: z.ZodString;
171
+ amount_total: z.ZodString;
172
+ }, z.core.$strict>>;
173
+ contribution: z.ZodOptional<z.ZodObject<{
174
+ organization_id: z.ZodString;
175
+ purpose: z.ZodString;
176
+ amount_mode: z.ZodEnum<{
177
+ fixed: "fixed";
178
+ free: "free";
179
+ }>;
180
+ expires_at: z.ZodNullable<z.ZodNumber>;
181
+ }, z.core.$strict>>;
182
+ locale: z.ZodNullable<z.ZodEnum<{
183
+ en: "en";
184
+ es: "es";
185
+ fr: "fr";
186
+ de: "de";
187
+ it: "it";
188
+ pt: "pt";
189
+ }>>;
190
+ }, z.core.$strict>;
191
+ export type PaymentLink = Expand<z.output<typeof paymentLinkSchema>>;
192
+ declare module '../../common/objects' {
193
+ interface ObjectMap {
194
+ payment_link: PaymentLink;
195
+ }
196
+ }
197
+ /** What an anonymous visitor may see before checkout starts — no metadata, no counts. */
198
+ export declare const publicPaymentLinkSchema: z.ZodObject<{
199
+ contribution_amount: z.ZodNullable<z.ZodString>;
200
+ merchant: z.ZodObject<{
201
+ name: z.ZodString;
202
+ avatar_url: z.ZodNullable<z.ZodString>;
203
+ logo_url: z.ZodNullable<z.ZodString>;
204
+ description: z.ZodNullable<z.ZodString>;
205
+ }, z.core.$strict>;
206
+ branding: z.ZodObject<{
207
+ icon_url: z.ZodNullable<z.ZodString>;
208
+ logo_url: z.ZodNullable<z.ZodString>;
209
+ primary_color: z.ZodString;
210
+ accent_color: z.ZodString;
211
+ font: z.ZodEnum<{
212
+ system: "system";
213
+ inter: "inter";
214
+ roboto: "roboto";
215
+ open_sans: "open_sans";
216
+ lato: "lato";
217
+ source_sans: "source_sans";
218
+ noto_sans: "noto_sans";
219
+ serif: "serif";
220
+ monospace: "monospace";
221
+ }>;
222
+ border_style: z.ZodEnum<{
223
+ rounded: "rounded";
224
+ rectangular: "rectangular";
225
+ pill: "pill";
226
+ }>;
227
+ }, z.core.$strict>;
228
+ id: z.ZodString;
229
+ object: z.ZodLiteral<"payment_link">;
230
+ livemode: z.ZodBoolean;
231
+ active: z.ZodBoolean;
232
+ currency: z.ZodEnum<{
233
+ FAIR: "FAIR";
234
+ EUR: "EUR";
235
+ USD: "USD";
236
+ GBP: "GBP";
237
+ CHF: "CHF";
238
+ SEK: "SEK";
239
+ NOK: "NOK";
240
+ DKK: "DKK";
241
+ PLN: "PLN";
242
+ CZK: "CZK";
243
+ CAD: "CAD";
244
+ AUD: "AUD";
245
+ JPY: "JPY";
246
+ }>;
247
+ rail: z.ZodEnum<{
248
+ card: "card";
249
+ faircoin: "faircoin";
250
+ }>;
251
+ network: z.ZodNullable<z.ZodEnum<{
252
+ mainnet: "mainnet";
253
+ testnet: "testnet";
254
+ }>>;
255
+ line_items: z.ZodArray<z.ZodObject<{
256
+ id: z.ZodString;
257
+ object: z.ZodLiteral<"item">;
258
+ description: z.ZodString;
259
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
260
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
261
+ images: z.ZodArray<z.ZodString>;
262
+ quantity: z.ZodNumber;
263
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
264
+ enabled: z.ZodBoolean;
265
+ minimum: z.ZodNullable<z.ZodNumber>;
266
+ maximum: z.ZodNullable<z.ZodNumber>;
267
+ }, z.core.$strict>>;
268
+ currency: z.ZodEnum<{
269
+ FAIR: "FAIR";
270
+ EUR: "EUR";
271
+ USD: "USD";
272
+ GBP: "GBP";
273
+ CHF: "CHF";
274
+ SEK: "SEK";
275
+ NOK: "NOK";
276
+ DKK: "DKK";
277
+ PLN: "PLN";
278
+ CZK: "CZK";
279
+ CAD: "CAD";
280
+ AUD: "AUD";
281
+ JPY: "JPY";
282
+ }>;
283
+ unit_amount: z.ZodNullable<z.ZodString>;
284
+ amount_subtotal: z.ZodString;
285
+ amount_discount: z.ZodString;
286
+ amount_tax: z.ZodString;
287
+ amount_total: z.ZodString;
288
+ }, z.core.$strict>>;
289
+ contribution: z.ZodOptional<z.ZodObject<{
290
+ organization_id: z.ZodString;
291
+ purpose: z.ZodString;
292
+ amount_mode: z.ZodEnum<{
293
+ fixed: "fixed";
294
+ free: "free";
295
+ }>;
296
+ expires_at: z.ZodNullable<z.ZodNumber>;
297
+ }, z.core.$strict>>;
298
+ locale: z.ZodNullable<z.ZodEnum<{
299
+ en: "en";
300
+ es: "es";
301
+ fr: "fr";
302
+ de: "de";
303
+ it: "it";
304
+ pt: "pt";
305
+ }>>;
306
+ }, z.core.$strict>;
307
+ export type PublicPaymentLink = Expand<z.output<typeof publicPaymentLinkSchema>>;
308
+ /** `POST /v1/payment_links/{id}/checkout_sessions`' answer: the hosted session and the secret that opens it. */
309
+ export declare const paymentLinkSessionStartSchema: z.ZodObject<{
310
+ object: z.ZodLiteral<"checkout_session_start">;
311
+ id: z.ZodString;
312
+ client_secret: z.ZodString;
313
+ url: z.ZodString;
314
+ }, z.core.$strict>;
315
+ export type PaymentLinkSessionStart = z.output<typeof paymentLinkSessionStartSchema>;
316
+ /** One `line_items[]` entry of a payment link — a catalog price only. */
317
+ export declare const linkLineItemParams: z.ZodObject<{
318
+ price: z.ZodString;
319
+ quantity: z.ZodNumber;
320
+ adjustable_quantity: z.ZodOptional<z.ZodObject<{
321
+ enabled: z.ZodBoolean;
322
+ minimum: z.ZodOptional<z.ZodNumber>;
323
+ maximum: z.ZodOptional<z.ZodNumber>;
324
+ }, z.core.$strict>>;
325
+ }, z.core.$strict>;
326
+ export type PaymentLinkLineItemParams = z.input<typeof linkLineItemParams>;
327
+ declare const afterCompletionParams: z.ZodObject<{
328
+ type: z.ZodEnum<{
329
+ redirect: "redirect";
330
+ hosted_confirmation: "hosted_confirmation";
331
+ }>;
332
+ redirect: z.ZodOptional<z.ZodObject<{
333
+ url: z.ZodString;
334
+ }, z.core.$strict>>;
335
+ hosted_confirmation: z.ZodOptional<z.ZodObject<{
336
+ custom_message: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>>;
338
+ }, z.core.$strict>;
339
+ export type PaymentLinkAfterCompletionParams = z.input<typeof afterCompletionParams>;
340
+ /** `POST /v1/payment_links`: 1–20 one-time prices of ONE currency. */
341
+ export declare const createPaymentLinkParams: z.ZodObject<{
342
+ restrictions: z.ZodOptional<z.ZodObject<{
343
+ completed_sessions: z.ZodObject<{
344
+ limit: z.ZodNumber;
345
+ }, z.core.$strict>;
346
+ }, z.core.$strict>>;
347
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
348
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
349
+ automatic_tax: z.ZodOptional<z.ZodObject<{
350
+ enabled: z.ZodBoolean;
351
+ }, z.core.$strict>>;
352
+ customer_creation: z.ZodOptional<z.ZodEnum<{
353
+ always: "always";
354
+ if_required: "if_required";
355
+ }>>;
356
+ after_completion: z.ZodOptional<z.ZodObject<{
357
+ type: z.ZodEnum<{
358
+ redirect: "redirect";
359
+ hosted_confirmation: "hosted_confirmation";
360
+ }>;
361
+ redirect: z.ZodOptional<z.ZodObject<{
362
+ url: z.ZodString;
363
+ }, z.core.$strict>>;
364
+ hosted_confirmation: z.ZodOptional<z.ZodObject<{
365
+ custom_message: z.ZodOptional<z.ZodString>;
366
+ }, z.core.$strict>>;
367
+ }, z.core.$strict>>;
368
+ submit_type: z.ZodOptional<z.ZodEnum<{
369
+ auto: "auto";
370
+ pay: "pay";
371
+ book: "book";
372
+ donate: "donate";
373
+ }>>;
374
+ locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
375
+ en: "en";
376
+ es: "es";
377
+ fr: "fr";
378
+ de: "de";
379
+ it: "it";
380
+ pt: "pt";
381
+ auto: "auto";
382
+ }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
383
+ billing_address_collection: z.ZodOptional<z.ZodEnum<{
384
+ auto: "auto";
385
+ required: "required";
386
+ }>>;
387
+ shipping_address_collection: z.ZodOptional<z.ZodObject<{
388
+ allowed_countries: z.ZodArray<z.ZodString>;
389
+ }, z.core.$strict>>;
390
+ phone_number_collection: z.ZodOptional<z.ZodObject<{
391
+ enabled: z.ZodBoolean;
392
+ }, z.core.$strict>>;
393
+ tax_id_collection: z.ZodOptional<z.ZodObject<{
394
+ enabled: z.ZodBoolean;
395
+ }, z.core.$strict>>;
396
+ consent_collection: z.ZodOptional<z.ZodObject<{
397
+ terms_of_service: z.ZodOptional<z.ZodEnum<{
398
+ none: "none";
399
+ required: "required";
400
+ }>>;
401
+ }, z.core.$strict>>;
402
+ custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
403
+ key: z.ZodString;
404
+ label: z.ZodObject<{
405
+ type: z.ZodLiteral<"custom">;
406
+ custom: z.ZodString;
407
+ }, z.core.$strict>;
408
+ type: z.ZodEnum<{
409
+ text: "text";
410
+ numeric: "numeric";
411
+ dropdown: "dropdown";
412
+ }>;
413
+ optional: z.ZodOptional<z.ZodBoolean>;
414
+ dropdown: z.ZodOptional<z.ZodObject<{
415
+ options: z.ZodArray<z.ZodObject<{
416
+ label: z.ZodString;
417
+ value: z.ZodString;
418
+ }, z.core.$strict>>;
419
+ }, z.core.$strict>>;
420
+ text: z.ZodOptional<z.ZodObject<{
421
+ minimum_length: z.ZodOptional<z.ZodNumber>;
422
+ maximum_length: z.ZodOptional<z.ZodNumber>;
423
+ }, z.core.$strict>>;
424
+ numeric: z.ZodOptional<z.ZodObject<{
425
+ minimum_length: z.ZodOptional<z.ZodNumber>;
426
+ maximum_length: z.ZodOptional<z.ZodNumber>;
427
+ }, z.core.$strict>>;
428
+ }, z.core.$strict>>>;
429
+ allow_promotion_codes: z.ZodOptional<z.ZodBoolean>;
430
+ line_items: z.ZodArray<z.ZodObject<{
431
+ price: z.ZodString;
432
+ quantity: z.ZodNumber;
433
+ adjustable_quantity: z.ZodOptional<z.ZodObject<{
434
+ enabled: z.ZodBoolean;
435
+ minimum: z.ZodOptional<z.ZodNumber>;
436
+ maximum: z.ZodOptional<z.ZodNumber>;
437
+ }, z.core.$strict>>;
438
+ }, z.core.$strict>>;
439
+ }, z.core.$strict>;
440
+ export type CreatePaymentLinkParams = z.input<typeof createPaymentLinkParams>;
441
+ /**
442
+ * `POST /v1/payment_links/{id}` — everything but the line items, which are
443
+ * fixed once shared (a payer may hold a session priced from them). `""`
444
+ * clears; `metadata` is a patch.
445
+ */
446
+ export declare const updatePaymentLinkParams: z.ZodObject<{
447
+ shipping_address_collection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
448
+ allowed_countries: z.ZodArray<z.ZodString>;
449
+ }, z.core.$strict>, z.ZodLiteral<"">]>>;
450
+ custom_fields: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
451
+ key: z.ZodString;
452
+ label: z.ZodObject<{
453
+ type: z.ZodLiteral<"custom">;
454
+ custom: z.ZodString;
455
+ }, z.core.$strict>;
456
+ type: z.ZodEnum<{
457
+ text: "text";
458
+ numeric: "numeric";
459
+ dropdown: "dropdown";
460
+ }>;
461
+ optional: z.ZodOptional<z.ZodBoolean>;
462
+ dropdown: z.ZodOptional<z.ZodObject<{
463
+ options: z.ZodArray<z.ZodObject<{
464
+ label: z.ZodString;
465
+ value: z.ZodString;
466
+ }, z.core.$strict>>;
467
+ }, z.core.$strict>>;
468
+ text: z.ZodOptional<z.ZodObject<{
469
+ minimum_length: z.ZodOptional<z.ZodNumber>;
470
+ maximum_length: z.ZodOptional<z.ZodNumber>;
471
+ }, z.core.$strict>>;
472
+ numeric: z.ZodOptional<z.ZodObject<{
473
+ minimum_length: z.ZodOptional<z.ZodNumber>;
474
+ maximum_length: z.ZodOptional<z.ZodNumber>;
475
+ }, z.core.$strict>>;
476
+ }, z.core.$strict>>, z.ZodLiteral<"">]>>;
477
+ restrictions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
478
+ completed_sessions: z.ZodObject<{
479
+ limit: z.ZodNumber;
480
+ }, z.core.$strict>;
481
+ }, z.core.$strict>, z.ZodLiteral<"">]>>;
482
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
483
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
484
+ automatic_tax: z.ZodOptional<z.ZodObject<{
485
+ enabled: z.ZodBoolean;
486
+ }, z.core.$strict>>;
487
+ customer_creation: z.ZodOptional<z.ZodEnum<{
488
+ always: "always";
489
+ if_required: "if_required";
490
+ }>>;
491
+ after_completion: z.ZodOptional<z.ZodObject<{
492
+ type: z.ZodEnum<{
493
+ redirect: "redirect";
494
+ hosted_confirmation: "hosted_confirmation";
495
+ }>;
496
+ redirect: z.ZodOptional<z.ZodObject<{
497
+ url: z.ZodString;
498
+ }, z.core.$strict>>;
499
+ hosted_confirmation: z.ZodOptional<z.ZodObject<{
500
+ custom_message: z.ZodOptional<z.ZodString>;
501
+ }, z.core.$strict>>;
502
+ }, z.core.$strict>>;
503
+ submit_type: z.ZodOptional<z.ZodEnum<{
504
+ auto: "auto";
505
+ pay: "pay";
506
+ book: "book";
507
+ donate: "donate";
508
+ }>>;
509
+ locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
510
+ en: "en";
511
+ es: "es";
512
+ fr: "fr";
513
+ de: "de";
514
+ it: "it";
515
+ pt: "pt";
516
+ auto: "auto";
517
+ }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
518
+ billing_address_collection: z.ZodOptional<z.ZodEnum<{
519
+ auto: "auto";
520
+ required: "required";
521
+ }>>;
522
+ phone_number_collection: z.ZodOptional<z.ZodObject<{
523
+ enabled: z.ZodBoolean;
524
+ }, z.core.$strict>>;
525
+ tax_id_collection: z.ZodOptional<z.ZodObject<{
526
+ enabled: z.ZodBoolean;
527
+ }, z.core.$strict>>;
528
+ consent_collection: z.ZodOptional<z.ZodObject<{
529
+ terms_of_service: z.ZodOptional<z.ZodEnum<{
530
+ none: "none";
531
+ required: "required";
532
+ }>>;
533
+ }, z.core.$strict>>;
534
+ allow_promotion_codes: z.ZodOptional<z.ZodBoolean>;
535
+ active: z.ZodOptional<z.ZodBoolean>;
536
+ }, z.core.$strict>;
537
+ export type UpdatePaymentLinkParams = z.input<typeof updatePaymentLinkParams>;
538
+ export declare const listPaymentLinksQuery: z.ZodObject<{
539
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
540
+ starting_after: z.ZodOptional<z.ZodString>;
541
+ ending_before: z.ZodOptional<z.ZodString>;
542
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
543
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
544
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
545
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
546
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
547
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
548
+ gt?: number | undefined;
549
+ gte?: number | undefined;
550
+ lt?: number | undefined;
551
+ lte?: number | undefined;
552
+ }>>]>>;
553
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
554
+ active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
555
+ true: "true";
556
+ false: "false";
557
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
558
+ }, z.core.$strict>;
559
+ export type ListPaymentLinksParams = z.input<typeof listPaymentLinksQuery>;
560
+ /** A link's lines: a complete set of at most twenty (`has_more` is `false`). */
561
+ export declare const listPaymentLinkLineItemsQuery: z.ZodObject<{
562
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
563
+ starting_after: z.ZodOptional<z.ZodString>;
564
+ ending_before: z.ZodOptional<z.ZodString>;
565
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
566
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
567
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
568
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
569
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
570
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
571
+ gt?: number | undefined;
572
+ gte?: number | undefined;
573
+ lt?: number | undefined;
574
+ lte?: number | undefined;
575
+ }>>]>>;
576
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
577
+ }, z.core.$strict>;
578
+ /**
579
+ * `POST /v1/payment_links/{id}/checkout_sessions` — a payer starting checkout.
580
+ * A contribution link the payer prices takes `amount`; nothing else is the
581
+ * payer's to say.
582
+ */
583
+ export declare const createPaymentLinkSessionParams: z.ZodObject<{
584
+ amount: z.ZodOptional<z.ZodString>;
585
+ }, z.core.$strict>;
586
+ export type CreatePaymentLinkSessionParams = z.input<typeof createPaymentLinkSessionParams>;
587
+ export declare const paymentLinkRoutes: readonly [{
588
+ readonly operationId: "createPaymentLink";
589
+ readonly method: "post";
590
+ readonly path: "/v1/payment_links";
591
+ readonly tag: "Payment Links";
592
+ readonly summary: "Create a payment link";
593
+ readonly auth: "service";
594
+ readonly scope: "payments:write";
595
+ readonly idempotent: true;
596
+ readonly body: z.ZodObject<{
597
+ restrictions: z.ZodOptional<z.ZodObject<{
598
+ completed_sessions: z.ZodObject<{
599
+ limit: z.ZodNumber;
600
+ }, z.core.$strict>;
601
+ }, z.core.$strict>>;
602
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
603
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
604
+ automatic_tax: z.ZodOptional<z.ZodObject<{
605
+ enabled: z.ZodBoolean;
606
+ }, z.core.$strict>>;
607
+ customer_creation: z.ZodOptional<z.ZodEnum<{
608
+ always: "always";
609
+ if_required: "if_required";
610
+ }>>;
611
+ after_completion: z.ZodOptional<z.ZodObject<{
612
+ type: z.ZodEnum<{
613
+ redirect: "redirect";
614
+ hosted_confirmation: "hosted_confirmation";
615
+ }>;
616
+ redirect: z.ZodOptional<z.ZodObject<{
617
+ url: z.ZodString;
618
+ }, z.core.$strict>>;
619
+ hosted_confirmation: z.ZodOptional<z.ZodObject<{
620
+ custom_message: z.ZodOptional<z.ZodString>;
621
+ }, z.core.$strict>>;
622
+ }, z.core.$strict>>;
623
+ submit_type: z.ZodOptional<z.ZodEnum<{
624
+ auto: "auto";
625
+ pay: "pay";
626
+ book: "book";
627
+ donate: "donate";
628
+ }>>;
629
+ locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
630
+ en: "en";
631
+ es: "es";
632
+ fr: "fr";
633
+ de: "de";
634
+ it: "it";
635
+ pt: "pt";
636
+ auto: "auto";
637
+ }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
638
+ billing_address_collection: z.ZodOptional<z.ZodEnum<{
639
+ auto: "auto";
640
+ required: "required";
641
+ }>>;
642
+ shipping_address_collection: z.ZodOptional<z.ZodObject<{
643
+ allowed_countries: z.ZodArray<z.ZodString>;
644
+ }, z.core.$strict>>;
645
+ phone_number_collection: z.ZodOptional<z.ZodObject<{
646
+ enabled: z.ZodBoolean;
647
+ }, z.core.$strict>>;
648
+ tax_id_collection: z.ZodOptional<z.ZodObject<{
649
+ enabled: z.ZodBoolean;
650
+ }, z.core.$strict>>;
651
+ consent_collection: z.ZodOptional<z.ZodObject<{
652
+ terms_of_service: z.ZodOptional<z.ZodEnum<{
653
+ none: "none";
654
+ required: "required";
655
+ }>>;
656
+ }, z.core.$strict>>;
657
+ custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
658
+ key: z.ZodString;
659
+ label: z.ZodObject<{
660
+ type: z.ZodLiteral<"custom">;
661
+ custom: z.ZodString;
662
+ }, z.core.$strict>;
663
+ type: z.ZodEnum<{
664
+ text: "text";
665
+ numeric: "numeric";
666
+ dropdown: "dropdown";
667
+ }>;
668
+ optional: z.ZodOptional<z.ZodBoolean>;
669
+ dropdown: z.ZodOptional<z.ZodObject<{
670
+ options: z.ZodArray<z.ZodObject<{
671
+ label: z.ZodString;
672
+ value: z.ZodString;
673
+ }, z.core.$strict>>;
674
+ }, z.core.$strict>>;
675
+ text: z.ZodOptional<z.ZodObject<{
676
+ minimum_length: z.ZodOptional<z.ZodNumber>;
677
+ maximum_length: z.ZodOptional<z.ZodNumber>;
678
+ }, z.core.$strict>>;
679
+ numeric: z.ZodOptional<z.ZodObject<{
680
+ minimum_length: z.ZodOptional<z.ZodNumber>;
681
+ maximum_length: z.ZodOptional<z.ZodNumber>;
682
+ }, z.core.$strict>>;
683
+ }, z.core.$strict>>>;
684
+ allow_promotion_codes: z.ZodOptional<z.ZodBoolean>;
685
+ line_items: z.ZodArray<z.ZodObject<{
686
+ price: z.ZodString;
687
+ quantity: z.ZodNumber;
688
+ adjustable_quantity: z.ZodOptional<z.ZodObject<{
689
+ enabled: z.ZodBoolean;
690
+ minimum: z.ZodOptional<z.ZodNumber>;
691
+ maximum: z.ZodOptional<z.ZodNumber>;
692
+ }, z.core.$strict>>;
693
+ }, z.core.$strict>>;
694
+ }, z.core.$strict>;
695
+ readonly response: z.ZodObject<{
696
+ automatic_tax: z.ZodObject<{
697
+ enabled: z.ZodBoolean;
698
+ }, z.core.$strict>;
699
+ customer_creation: z.ZodEnum<{
700
+ always: "always";
701
+ if_required: "if_required";
702
+ }>;
703
+ after_completion: z.ZodObject<{
704
+ type: z.ZodEnum<{
705
+ redirect: "redirect";
706
+ hosted_confirmation: "hosted_confirmation";
707
+ }>;
708
+ redirect: z.ZodNullable<z.ZodObject<{
709
+ url: z.ZodString;
710
+ }, z.core.$strict>>;
711
+ hosted_confirmation: z.ZodNullable<z.ZodObject<{
712
+ custom_message: z.ZodNullable<z.ZodString>;
713
+ }, z.core.$strict>>;
714
+ }, z.core.$strict>;
715
+ restrictions: z.ZodNullable<z.ZodObject<{
716
+ completed_sessions: z.ZodObject<{
717
+ limit: z.ZodNumber;
718
+ count: z.ZodNumber;
719
+ }, z.core.$strict>;
720
+ }, z.core.$strict>>;
721
+ submit_type: z.ZodEnum<{
722
+ auto: "auto";
723
+ pay: "pay";
724
+ book: "book";
725
+ donate: "donate";
726
+ }>;
727
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
728
+ url: z.ZodString;
729
+ created: z.ZodNumber;
730
+ updated_at: z.ZodNumber;
731
+ billing_address_collection: z.ZodEnum<{
732
+ auto: "auto";
733
+ required: "required";
734
+ }>;
735
+ shipping_address_collection: z.ZodNullable<z.ZodObject<{
736
+ allowed_countries: z.ZodArray<z.ZodString>;
737
+ }, z.core.$strict>>;
738
+ phone_number_collection: z.ZodObject<{
739
+ enabled: z.ZodBoolean;
740
+ }, z.core.$strict>;
741
+ tax_id_collection: z.ZodObject<{
742
+ enabled: z.ZodBoolean;
743
+ }, z.core.$strict>;
744
+ custom_fields: z.ZodArray<z.ZodObject<{
745
+ key: z.ZodString;
746
+ label: z.ZodObject<{
747
+ type: z.ZodLiteral<"custom">;
748
+ custom: z.ZodString;
749
+ }, z.core.$strict>;
750
+ type: z.ZodEnum<{
751
+ text: "text";
752
+ numeric: "numeric";
753
+ dropdown: "dropdown";
754
+ }>;
755
+ optional: z.ZodBoolean;
756
+ dropdown: z.ZodNullable<z.ZodObject<{
757
+ options: z.ZodArray<z.ZodObject<{
758
+ label: z.ZodString;
759
+ value: z.ZodString;
760
+ }, z.core.$strict>>;
761
+ value: z.ZodNullable<z.ZodString>;
762
+ }, z.core.$strict>>;
763
+ text: z.ZodNullable<z.ZodObject<{
764
+ minimum_length: z.ZodNullable<z.ZodNumber>;
765
+ maximum_length: z.ZodNullable<z.ZodNumber>;
766
+ value: z.ZodNullable<z.ZodString>;
767
+ }, z.core.$strict>>;
768
+ numeric: z.ZodNullable<z.ZodObject<{
769
+ minimum_length: z.ZodNullable<z.ZodNumber>;
770
+ maximum_length: z.ZodNullable<z.ZodNumber>;
771
+ value: z.ZodNullable<z.ZodString>;
772
+ }, z.core.$strict>>;
773
+ }, z.core.$strict>>;
774
+ consent_collection: z.ZodNullable<z.ZodObject<{
775
+ terms_of_service: z.ZodEnum<{
776
+ none: "none";
777
+ required: "required";
778
+ }>;
779
+ }, z.core.$strict>>;
780
+ allow_promotion_codes: z.ZodBoolean;
781
+ id: z.ZodString;
782
+ object: z.ZodLiteral<"payment_link">;
783
+ livemode: z.ZodBoolean;
784
+ active: z.ZodBoolean;
785
+ currency: z.ZodEnum<{
786
+ FAIR: "FAIR";
787
+ EUR: "EUR";
788
+ USD: "USD";
789
+ GBP: "GBP";
790
+ CHF: "CHF";
791
+ SEK: "SEK";
792
+ NOK: "NOK";
793
+ DKK: "DKK";
794
+ PLN: "PLN";
795
+ CZK: "CZK";
796
+ CAD: "CAD";
797
+ AUD: "AUD";
798
+ JPY: "JPY";
799
+ }>;
800
+ rail: z.ZodEnum<{
801
+ card: "card";
802
+ faircoin: "faircoin";
803
+ }>;
804
+ network: z.ZodNullable<z.ZodEnum<{
805
+ mainnet: "mainnet";
806
+ testnet: "testnet";
807
+ }>>;
808
+ line_items: z.ZodArray<z.ZodObject<{
809
+ id: z.ZodString;
810
+ object: z.ZodLiteral<"item">;
811
+ description: z.ZodString;
812
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
813
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
814
+ images: z.ZodArray<z.ZodString>;
815
+ quantity: z.ZodNumber;
816
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
817
+ enabled: z.ZodBoolean;
818
+ minimum: z.ZodNullable<z.ZodNumber>;
819
+ maximum: z.ZodNullable<z.ZodNumber>;
820
+ }, z.core.$strict>>;
821
+ currency: z.ZodEnum<{
822
+ FAIR: "FAIR";
823
+ EUR: "EUR";
824
+ USD: "USD";
825
+ GBP: "GBP";
826
+ CHF: "CHF";
827
+ SEK: "SEK";
828
+ NOK: "NOK";
829
+ DKK: "DKK";
830
+ PLN: "PLN";
831
+ CZK: "CZK";
832
+ CAD: "CAD";
833
+ AUD: "AUD";
834
+ JPY: "JPY";
835
+ }>;
836
+ unit_amount: z.ZodNullable<z.ZodString>;
837
+ amount_subtotal: z.ZodString;
838
+ amount_discount: z.ZodString;
839
+ amount_tax: z.ZodString;
840
+ amount_total: z.ZodString;
841
+ }, z.core.$strict>>;
842
+ contribution: z.ZodOptional<z.ZodObject<{
843
+ organization_id: z.ZodString;
844
+ purpose: z.ZodString;
845
+ amount_mode: z.ZodEnum<{
846
+ fixed: "fixed";
847
+ free: "free";
848
+ }>;
849
+ expires_at: z.ZodNullable<z.ZodNumber>;
850
+ }, z.core.$strict>>;
851
+ locale: z.ZodNullable<z.ZodEnum<{
852
+ en: "en";
853
+ es: "es";
854
+ fr: "fr";
855
+ de: "de";
856
+ it: "it";
857
+ pt: "pt";
858
+ }>>;
859
+ }, z.core.$strict>;
860
+ readonly status: 201;
861
+ readonly sdk: "paymentLinks.create";
862
+ readonly expandable: "payment_link";
863
+ }, {
864
+ readonly operationId: "listPaymentLinks";
865
+ readonly method: "get";
866
+ readonly path: "/v1/payment_links";
867
+ readonly tag: "Payment Links";
868
+ readonly summary: "List payment links";
869
+ readonly auth: "service";
870
+ readonly scope: "payments:read";
871
+ readonly query: z.ZodObject<{
872
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
873
+ starting_after: z.ZodOptional<z.ZodString>;
874
+ ending_before: z.ZodOptional<z.ZodString>;
875
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
876
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
877
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
878
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
879
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
880
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
881
+ gt?: number | undefined;
882
+ gte?: number | undefined;
883
+ lt?: number | undefined;
884
+ lte?: number | undefined;
885
+ }>>]>>;
886
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
887
+ active: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
888
+ true: "true";
889
+ false: "false";
890
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
891
+ }, z.core.$strict>;
892
+ readonly response: z.ZodObject<{
893
+ object: z.ZodLiteral<"list">;
894
+ data: z.ZodArray<z.ZodObject<{
895
+ automatic_tax: z.ZodObject<{
896
+ enabled: z.ZodBoolean;
897
+ }, z.core.$strict>;
898
+ customer_creation: z.ZodEnum<{
899
+ always: "always";
900
+ if_required: "if_required";
901
+ }>;
902
+ after_completion: z.ZodObject<{
903
+ type: z.ZodEnum<{
904
+ redirect: "redirect";
905
+ hosted_confirmation: "hosted_confirmation";
906
+ }>;
907
+ redirect: z.ZodNullable<z.ZodObject<{
908
+ url: z.ZodString;
909
+ }, z.core.$strict>>;
910
+ hosted_confirmation: z.ZodNullable<z.ZodObject<{
911
+ custom_message: z.ZodNullable<z.ZodString>;
912
+ }, z.core.$strict>>;
913
+ }, z.core.$strict>;
914
+ restrictions: z.ZodNullable<z.ZodObject<{
915
+ completed_sessions: z.ZodObject<{
916
+ limit: z.ZodNumber;
917
+ count: z.ZodNumber;
918
+ }, z.core.$strict>;
919
+ }, z.core.$strict>>;
920
+ submit_type: z.ZodEnum<{
921
+ auto: "auto";
922
+ pay: "pay";
923
+ book: "book";
924
+ donate: "donate";
925
+ }>;
926
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
927
+ url: z.ZodString;
928
+ created: z.ZodNumber;
929
+ updated_at: z.ZodNumber;
930
+ billing_address_collection: z.ZodEnum<{
931
+ auto: "auto";
932
+ required: "required";
933
+ }>;
934
+ shipping_address_collection: z.ZodNullable<z.ZodObject<{
935
+ allowed_countries: z.ZodArray<z.ZodString>;
936
+ }, z.core.$strict>>;
937
+ phone_number_collection: z.ZodObject<{
938
+ enabled: z.ZodBoolean;
939
+ }, z.core.$strict>;
940
+ tax_id_collection: z.ZodObject<{
941
+ enabled: z.ZodBoolean;
942
+ }, z.core.$strict>;
943
+ custom_fields: z.ZodArray<z.ZodObject<{
944
+ key: z.ZodString;
945
+ label: z.ZodObject<{
946
+ type: z.ZodLiteral<"custom">;
947
+ custom: z.ZodString;
948
+ }, z.core.$strict>;
949
+ type: z.ZodEnum<{
950
+ text: "text";
951
+ numeric: "numeric";
952
+ dropdown: "dropdown";
953
+ }>;
954
+ optional: z.ZodBoolean;
955
+ dropdown: z.ZodNullable<z.ZodObject<{
956
+ options: z.ZodArray<z.ZodObject<{
957
+ label: z.ZodString;
958
+ value: z.ZodString;
959
+ }, z.core.$strict>>;
960
+ value: z.ZodNullable<z.ZodString>;
961
+ }, z.core.$strict>>;
962
+ text: z.ZodNullable<z.ZodObject<{
963
+ minimum_length: z.ZodNullable<z.ZodNumber>;
964
+ maximum_length: z.ZodNullable<z.ZodNumber>;
965
+ value: z.ZodNullable<z.ZodString>;
966
+ }, z.core.$strict>>;
967
+ numeric: z.ZodNullable<z.ZodObject<{
968
+ minimum_length: z.ZodNullable<z.ZodNumber>;
969
+ maximum_length: z.ZodNullable<z.ZodNumber>;
970
+ value: z.ZodNullable<z.ZodString>;
971
+ }, z.core.$strict>>;
972
+ }, z.core.$strict>>;
973
+ consent_collection: z.ZodNullable<z.ZodObject<{
974
+ terms_of_service: z.ZodEnum<{
975
+ none: "none";
976
+ required: "required";
977
+ }>;
978
+ }, z.core.$strict>>;
979
+ allow_promotion_codes: z.ZodBoolean;
980
+ id: z.ZodString;
981
+ object: z.ZodLiteral<"payment_link">;
982
+ livemode: z.ZodBoolean;
983
+ active: z.ZodBoolean;
984
+ currency: z.ZodEnum<{
985
+ FAIR: "FAIR";
986
+ EUR: "EUR";
987
+ USD: "USD";
988
+ GBP: "GBP";
989
+ CHF: "CHF";
990
+ SEK: "SEK";
991
+ NOK: "NOK";
992
+ DKK: "DKK";
993
+ PLN: "PLN";
994
+ CZK: "CZK";
995
+ CAD: "CAD";
996
+ AUD: "AUD";
997
+ JPY: "JPY";
998
+ }>;
999
+ rail: z.ZodEnum<{
1000
+ card: "card";
1001
+ faircoin: "faircoin";
1002
+ }>;
1003
+ network: z.ZodNullable<z.ZodEnum<{
1004
+ mainnet: "mainnet";
1005
+ testnet: "testnet";
1006
+ }>>;
1007
+ line_items: z.ZodArray<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ object: z.ZodLiteral<"item">;
1010
+ description: z.ZodString;
1011
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
1012
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
1013
+ images: z.ZodArray<z.ZodString>;
1014
+ quantity: z.ZodNumber;
1015
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
1016
+ enabled: z.ZodBoolean;
1017
+ minimum: z.ZodNullable<z.ZodNumber>;
1018
+ maximum: z.ZodNullable<z.ZodNumber>;
1019
+ }, z.core.$strict>>;
1020
+ currency: z.ZodEnum<{
1021
+ FAIR: "FAIR";
1022
+ EUR: "EUR";
1023
+ USD: "USD";
1024
+ GBP: "GBP";
1025
+ CHF: "CHF";
1026
+ SEK: "SEK";
1027
+ NOK: "NOK";
1028
+ DKK: "DKK";
1029
+ PLN: "PLN";
1030
+ CZK: "CZK";
1031
+ CAD: "CAD";
1032
+ AUD: "AUD";
1033
+ JPY: "JPY";
1034
+ }>;
1035
+ unit_amount: z.ZodNullable<z.ZodString>;
1036
+ amount_subtotal: z.ZodString;
1037
+ amount_discount: z.ZodString;
1038
+ amount_tax: z.ZodString;
1039
+ amount_total: z.ZodString;
1040
+ }, z.core.$strict>>;
1041
+ contribution: z.ZodOptional<z.ZodObject<{
1042
+ organization_id: z.ZodString;
1043
+ purpose: z.ZodString;
1044
+ amount_mode: z.ZodEnum<{
1045
+ fixed: "fixed";
1046
+ free: "free";
1047
+ }>;
1048
+ expires_at: z.ZodNullable<z.ZodNumber>;
1049
+ }, z.core.$strict>>;
1050
+ locale: z.ZodNullable<z.ZodEnum<{
1051
+ en: "en";
1052
+ es: "es";
1053
+ fr: "fr";
1054
+ de: "de";
1055
+ it: "it";
1056
+ pt: "pt";
1057
+ }>>;
1058
+ }, z.core.$strict>>;
1059
+ has_more: z.ZodBoolean;
1060
+ url: z.ZodString;
1061
+ }, z.core.$strict>;
1062
+ readonly sdk: "paymentLinks.list";
1063
+ readonly expandable: "payment_link";
1064
+ }, {
1065
+ readonly operationId: "retrievePaymentLink";
1066
+ readonly method: "get";
1067
+ readonly path: "/v1/payment_links/{id}";
1068
+ readonly tag: "Payment Links";
1069
+ readonly summary: "Retrieve a payment link";
1070
+ readonly auth: "service";
1071
+ readonly scope: "payments:read";
1072
+ readonly params: {
1073
+ readonly id: "The payment link (`link_…`).";
1074
+ };
1075
+ readonly query: z.ZodObject<{
1076
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
1077
+ }, z.core.$strict>;
1078
+ readonly response: z.ZodObject<{
1079
+ automatic_tax: z.ZodObject<{
1080
+ enabled: z.ZodBoolean;
1081
+ }, z.core.$strict>;
1082
+ customer_creation: z.ZodEnum<{
1083
+ always: "always";
1084
+ if_required: "if_required";
1085
+ }>;
1086
+ after_completion: z.ZodObject<{
1087
+ type: z.ZodEnum<{
1088
+ redirect: "redirect";
1089
+ hosted_confirmation: "hosted_confirmation";
1090
+ }>;
1091
+ redirect: z.ZodNullable<z.ZodObject<{
1092
+ url: z.ZodString;
1093
+ }, z.core.$strict>>;
1094
+ hosted_confirmation: z.ZodNullable<z.ZodObject<{
1095
+ custom_message: z.ZodNullable<z.ZodString>;
1096
+ }, z.core.$strict>>;
1097
+ }, z.core.$strict>;
1098
+ restrictions: z.ZodNullable<z.ZodObject<{
1099
+ completed_sessions: z.ZodObject<{
1100
+ limit: z.ZodNumber;
1101
+ count: z.ZodNumber;
1102
+ }, z.core.$strict>;
1103
+ }, z.core.$strict>>;
1104
+ submit_type: z.ZodEnum<{
1105
+ auto: "auto";
1106
+ pay: "pay";
1107
+ book: "book";
1108
+ donate: "donate";
1109
+ }>;
1110
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1111
+ url: z.ZodString;
1112
+ created: z.ZodNumber;
1113
+ updated_at: z.ZodNumber;
1114
+ billing_address_collection: z.ZodEnum<{
1115
+ auto: "auto";
1116
+ required: "required";
1117
+ }>;
1118
+ shipping_address_collection: z.ZodNullable<z.ZodObject<{
1119
+ allowed_countries: z.ZodArray<z.ZodString>;
1120
+ }, z.core.$strict>>;
1121
+ phone_number_collection: z.ZodObject<{
1122
+ enabled: z.ZodBoolean;
1123
+ }, z.core.$strict>;
1124
+ tax_id_collection: z.ZodObject<{
1125
+ enabled: z.ZodBoolean;
1126
+ }, z.core.$strict>;
1127
+ custom_fields: z.ZodArray<z.ZodObject<{
1128
+ key: z.ZodString;
1129
+ label: z.ZodObject<{
1130
+ type: z.ZodLiteral<"custom">;
1131
+ custom: z.ZodString;
1132
+ }, z.core.$strict>;
1133
+ type: z.ZodEnum<{
1134
+ text: "text";
1135
+ numeric: "numeric";
1136
+ dropdown: "dropdown";
1137
+ }>;
1138
+ optional: z.ZodBoolean;
1139
+ dropdown: z.ZodNullable<z.ZodObject<{
1140
+ options: z.ZodArray<z.ZodObject<{
1141
+ label: z.ZodString;
1142
+ value: z.ZodString;
1143
+ }, z.core.$strict>>;
1144
+ value: z.ZodNullable<z.ZodString>;
1145
+ }, z.core.$strict>>;
1146
+ text: z.ZodNullable<z.ZodObject<{
1147
+ minimum_length: z.ZodNullable<z.ZodNumber>;
1148
+ maximum_length: z.ZodNullable<z.ZodNumber>;
1149
+ value: z.ZodNullable<z.ZodString>;
1150
+ }, z.core.$strict>>;
1151
+ numeric: z.ZodNullable<z.ZodObject<{
1152
+ minimum_length: z.ZodNullable<z.ZodNumber>;
1153
+ maximum_length: z.ZodNullable<z.ZodNumber>;
1154
+ value: z.ZodNullable<z.ZodString>;
1155
+ }, z.core.$strict>>;
1156
+ }, z.core.$strict>>;
1157
+ consent_collection: z.ZodNullable<z.ZodObject<{
1158
+ terms_of_service: z.ZodEnum<{
1159
+ none: "none";
1160
+ required: "required";
1161
+ }>;
1162
+ }, z.core.$strict>>;
1163
+ allow_promotion_codes: z.ZodBoolean;
1164
+ id: z.ZodString;
1165
+ object: z.ZodLiteral<"payment_link">;
1166
+ livemode: z.ZodBoolean;
1167
+ active: z.ZodBoolean;
1168
+ currency: z.ZodEnum<{
1169
+ FAIR: "FAIR";
1170
+ EUR: "EUR";
1171
+ USD: "USD";
1172
+ GBP: "GBP";
1173
+ CHF: "CHF";
1174
+ SEK: "SEK";
1175
+ NOK: "NOK";
1176
+ DKK: "DKK";
1177
+ PLN: "PLN";
1178
+ CZK: "CZK";
1179
+ CAD: "CAD";
1180
+ AUD: "AUD";
1181
+ JPY: "JPY";
1182
+ }>;
1183
+ rail: z.ZodEnum<{
1184
+ card: "card";
1185
+ faircoin: "faircoin";
1186
+ }>;
1187
+ network: z.ZodNullable<z.ZodEnum<{
1188
+ mainnet: "mainnet";
1189
+ testnet: "testnet";
1190
+ }>>;
1191
+ line_items: z.ZodArray<z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ object: z.ZodLiteral<"item">;
1194
+ description: z.ZodString;
1195
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
1196
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
1197
+ images: z.ZodArray<z.ZodString>;
1198
+ quantity: z.ZodNumber;
1199
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
1200
+ enabled: z.ZodBoolean;
1201
+ minimum: z.ZodNullable<z.ZodNumber>;
1202
+ maximum: z.ZodNullable<z.ZodNumber>;
1203
+ }, z.core.$strict>>;
1204
+ currency: z.ZodEnum<{
1205
+ FAIR: "FAIR";
1206
+ EUR: "EUR";
1207
+ USD: "USD";
1208
+ GBP: "GBP";
1209
+ CHF: "CHF";
1210
+ SEK: "SEK";
1211
+ NOK: "NOK";
1212
+ DKK: "DKK";
1213
+ PLN: "PLN";
1214
+ CZK: "CZK";
1215
+ CAD: "CAD";
1216
+ AUD: "AUD";
1217
+ JPY: "JPY";
1218
+ }>;
1219
+ unit_amount: z.ZodNullable<z.ZodString>;
1220
+ amount_subtotal: z.ZodString;
1221
+ amount_discount: z.ZodString;
1222
+ amount_tax: z.ZodString;
1223
+ amount_total: z.ZodString;
1224
+ }, z.core.$strict>>;
1225
+ contribution: z.ZodOptional<z.ZodObject<{
1226
+ organization_id: z.ZodString;
1227
+ purpose: z.ZodString;
1228
+ amount_mode: z.ZodEnum<{
1229
+ fixed: "fixed";
1230
+ free: "free";
1231
+ }>;
1232
+ expires_at: z.ZodNullable<z.ZodNumber>;
1233
+ }, z.core.$strict>>;
1234
+ locale: z.ZodNullable<z.ZodEnum<{
1235
+ en: "en";
1236
+ es: "es";
1237
+ fr: "fr";
1238
+ de: "de";
1239
+ it: "it";
1240
+ pt: "pt";
1241
+ }>>;
1242
+ }, z.core.$strict>;
1243
+ readonly sdk: "paymentLinks.retrieve";
1244
+ readonly expandable: "payment_link";
1245
+ }, {
1246
+ readonly operationId: "updatePaymentLink";
1247
+ readonly method: "post";
1248
+ readonly path: "/v1/payment_links/{id}";
1249
+ readonly tag: "Payment Links";
1250
+ readonly summary: "Update a payment link";
1251
+ readonly description: "Everything but the line items. `\"\"` clears a field; `metadata` is a patch.";
1252
+ readonly auth: "service";
1253
+ readonly scope: "payments:write";
1254
+ readonly idempotent: true;
1255
+ readonly params: {
1256
+ readonly id: "The payment link (`link_…`).";
1257
+ };
1258
+ readonly body: z.ZodObject<{
1259
+ shipping_address_collection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1260
+ allowed_countries: z.ZodArray<z.ZodString>;
1261
+ }, z.core.$strict>, z.ZodLiteral<"">]>>;
1262
+ custom_fields: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
1263
+ key: z.ZodString;
1264
+ label: z.ZodObject<{
1265
+ type: z.ZodLiteral<"custom">;
1266
+ custom: z.ZodString;
1267
+ }, z.core.$strict>;
1268
+ type: z.ZodEnum<{
1269
+ text: "text";
1270
+ numeric: "numeric";
1271
+ dropdown: "dropdown";
1272
+ }>;
1273
+ optional: z.ZodOptional<z.ZodBoolean>;
1274
+ dropdown: z.ZodOptional<z.ZodObject<{
1275
+ options: z.ZodArray<z.ZodObject<{
1276
+ label: z.ZodString;
1277
+ value: z.ZodString;
1278
+ }, z.core.$strict>>;
1279
+ }, z.core.$strict>>;
1280
+ text: z.ZodOptional<z.ZodObject<{
1281
+ minimum_length: z.ZodOptional<z.ZodNumber>;
1282
+ maximum_length: z.ZodOptional<z.ZodNumber>;
1283
+ }, z.core.$strict>>;
1284
+ numeric: z.ZodOptional<z.ZodObject<{
1285
+ minimum_length: z.ZodOptional<z.ZodNumber>;
1286
+ maximum_length: z.ZodOptional<z.ZodNumber>;
1287
+ }, z.core.$strict>>;
1288
+ }, z.core.$strict>>, z.ZodLiteral<"">]>>;
1289
+ restrictions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1290
+ completed_sessions: z.ZodObject<{
1291
+ limit: z.ZodNumber;
1292
+ }, z.core.$strict>;
1293
+ }, z.core.$strict>, z.ZodLiteral<"">]>>;
1294
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
1295
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
1296
+ automatic_tax: z.ZodOptional<z.ZodObject<{
1297
+ enabled: z.ZodBoolean;
1298
+ }, z.core.$strict>>;
1299
+ customer_creation: z.ZodOptional<z.ZodEnum<{
1300
+ always: "always";
1301
+ if_required: "if_required";
1302
+ }>>;
1303
+ after_completion: z.ZodOptional<z.ZodObject<{
1304
+ type: z.ZodEnum<{
1305
+ redirect: "redirect";
1306
+ hosted_confirmation: "hosted_confirmation";
1307
+ }>;
1308
+ redirect: z.ZodOptional<z.ZodObject<{
1309
+ url: z.ZodString;
1310
+ }, z.core.$strict>>;
1311
+ hosted_confirmation: z.ZodOptional<z.ZodObject<{
1312
+ custom_message: z.ZodOptional<z.ZodString>;
1313
+ }, z.core.$strict>>;
1314
+ }, z.core.$strict>>;
1315
+ submit_type: z.ZodOptional<z.ZodEnum<{
1316
+ auto: "auto";
1317
+ pay: "pay";
1318
+ book: "book";
1319
+ donate: "donate";
1320
+ }>>;
1321
+ locale: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
1322
+ en: "en";
1323
+ es: "es";
1324
+ fr: "fr";
1325
+ de: "de";
1326
+ it: "it";
1327
+ pt: "pt";
1328
+ auto: "auto";
1329
+ }>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>>;
1330
+ billing_address_collection: z.ZodOptional<z.ZodEnum<{
1331
+ auto: "auto";
1332
+ required: "required";
1333
+ }>>;
1334
+ phone_number_collection: z.ZodOptional<z.ZodObject<{
1335
+ enabled: z.ZodBoolean;
1336
+ }, z.core.$strict>>;
1337
+ tax_id_collection: z.ZodOptional<z.ZodObject<{
1338
+ enabled: z.ZodBoolean;
1339
+ }, z.core.$strict>>;
1340
+ consent_collection: z.ZodOptional<z.ZodObject<{
1341
+ terms_of_service: z.ZodOptional<z.ZodEnum<{
1342
+ none: "none";
1343
+ required: "required";
1344
+ }>>;
1345
+ }, z.core.$strict>>;
1346
+ allow_promotion_codes: z.ZodOptional<z.ZodBoolean>;
1347
+ active: z.ZodOptional<z.ZodBoolean>;
1348
+ }, z.core.$strict>;
1349
+ readonly response: z.ZodObject<{
1350
+ automatic_tax: z.ZodObject<{
1351
+ enabled: z.ZodBoolean;
1352
+ }, z.core.$strict>;
1353
+ customer_creation: z.ZodEnum<{
1354
+ always: "always";
1355
+ if_required: "if_required";
1356
+ }>;
1357
+ after_completion: z.ZodObject<{
1358
+ type: z.ZodEnum<{
1359
+ redirect: "redirect";
1360
+ hosted_confirmation: "hosted_confirmation";
1361
+ }>;
1362
+ redirect: z.ZodNullable<z.ZodObject<{
1363
+ url: z.ZodString;
1364
+ }, z.core.$strict>>;
1365
+ hosted_confirmation: z.ZodNullable<z.ZodObject<{
1366
+ custom_message: z.ZodNullable<z.ZodString>;
1367
+ }, z.core.$strict>>;
1368
+ }, z.core.$strict>;
1369
+ restrictions: z.ZodNullable<z.ZodObject<{
1370
+ completed_sessions: z.ZodObject<{
1371
+ limit: z.ZodNumber;
1372
+ count: z.ZodNumber;
1373
+ }, z.core.$strict>;
1374
+ }, z.core.$strict>>;
1375
+ submit_type: z.ZodEnum<{
1376
+ auto: "auto";
1377
+ pay: "pay";
1378
+ book: "book";
1379
+ donate: "donate";
1380
+ }>;
1381
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1382
+ url: z.ZodString;
1383
+ created: z.ZodNumber;
1384
+ updated_at: z.ZodNumber;
1385
+ billing_address_collection: z.ZodEnum<{
1386
+ auto: "auto";
1387
+ required: "required";
1388
+ }>;
1389
+ shipping_address_collection: z.ZodNullable<z.ZodObject<{
1390
+ allowed_countries: z.ZodArray<z.ZodString>;
1391
+ }, z.core.$strict>>;
1392
+ phone_number_collection: z.ZodObject<{
1393
+ enabled: z.ZodBoolean;
1394
+ }, z.core.$strict>;
1395
+ tax_id_collection: z.ZodObject<{
1396
+ enabled: z.ZodBoolean;
1397
+ }, z.core.$strict>;
1398
+ custom_fields: z.ZodArray<z.ZodObject<{
1399
+ key: z.ZodString;
1400
+ label: z.ZodObject<{
1401
+ type: z.ZodLiteral<"custom">;
1402
+ custom: z.ZodString;
1403
+ }, z.core.$strict>;
1404
+ type: z.ZodEnum<{
1405
+ text: "text";
1406
+ numeric: "numeric";
1407
+ dropdown: "dropdown";
1408
+ }>;
1409
+ optional: z.ZodBoolean;
1410
+ dropdown: z.ZodNullable<z.ZodObject<{
1411
+ options: z.ZodArray<z.ZodObject<{
1412
+ label: z.ZodString;
1413
+ value: z.ZodString;
1414
+ }, z.core.$strict>>;
1415
+ value: z.ZodNullable<z.ZodString>;
1416
+ }, z.core.$strict>>;
1417
+ text: z.ZodNullable<z.ZodObject<{
1418
+ minimum_length: z.ZodNullable<z.ZodNumber>;
1419
+ maximum_length: z.ZodNullable<z.ZodNumber>;
1420
+ value: z.ZodNullable<z.ZodString>;
1421
+ }, z.core.$strict>>;
1422
+ numeric: z.ZodNullable<z.ZodObject<{
1423
+ minimum_length: z.ZodNullable<z.ZodNumber>;
1424
+ maximum_length: z.ZodNullable<z.ZodNumber>;
1425
+ value: z.ZodNullable<z.ZodString>;
1426
+ }, z.core.$strict>>;
1427
+ }, z.core.$strict>>;
1428
+ consent_collection: z.ZodNullable<z.ZodObject<{
1429
+ terms_of_service: z.ZodEnum<{
1430
+ none: "none";
1431
+ required: "required";
1432
+ }>;
1433
+ }, z.core.$strict>>;
1434
+ allow_promotion_codes: z.ZodBoolean;
1435
+ id: z.ZodString;
1436
+ object: z.ZodLiteral<"payment_link">;
1437
+ livemode: z.ZodBoolean;
1438
+ active: z.ZodBoolean;
1439
+ currency: z.ZodEnum<{
1440
+ FAIR: "FAIR";
1441
+ EUR: "EUR";
1442
+ USD: "USD";
1443
+ GBP: "GBP";
1444
+ CHF: "CHF";
1445
+ SEK: "SEK";
1446
+ NOK: "NOK";
1447
+ DKK: "DKK";
1448
+ PLN: "PLN";
1449
+ CZK: "CZK";
1450
+ CAD: "CAD";
1451
+ AUD: "AUD";
1452
+ JPY: "JPY";
1453
+ }>;
1454
+ rail: z.ZodEnum<{
1455
+ card: "card";
1456
+ faircoin: "faircoin";
1457
+ }>;
1458
+ network: z.ZodNullable<z.ZodEnum<{
1459
+ mainnet: "mainnet";
1460
+ testnet: "testnet";
1461
+ }>>;
1462
+ line_items: z.ZodArray<z.ZodObject<{
1463
+ id: z.ZodString;
1464
+ object: z.ZodLiteral<"item">;
1465
+ description: z.ZodString;
1466
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
1467
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
1468
+ images: z.ZodArray<z.ZodString>;
1469
+ quantity: z.ZodNumber;
1470
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
1471
+ enabled: z.ZodBoolean;
1472
+ minimum: z.ZodNullable<z.ZodNumber>;
1473
+ maximum: z.ZodNullable<z.ZodNumber>;
1474
+ }, z.core.$strict>>;
1475
+ currency: z.ZodEnum<{
1476
+ FAIR: "FAIR";
1477
+ EUR: "EUR";
1478
+ USD: "USD";
1479
+ GBP: "GBP";
1480
+ CHF: "CHF";
1481
+ SEK: "SEK";
1482
+ NOK: "NOK";
1483
+ DKK: "DKK";
1484
+ PLN: "PLN";
1485
+ CZK: "CZK";
1486
+ CAD: "CAD";
1487
+ AUD: "AUD";
1488
+ JPY: "JPY";
1489
+ }>;
1490
+ unit_amount: z.ZodNullable<z.ZodString>;
1491
+ amount_subtotal: z.ZodString;
1492
+ amount_discount: z.ZodString;
1493
+ amount_tax: z.ZodString;
1494
+ amount_total: z.ZodString;
1495
+ }, z.core.$strict>>;
1496
+ contribution: z.ZodOptional<z.ZodObject<{
1497
+ organization_id: z.ZodString;
1498
+ purpose: z.ZodString;
1499
+ amount_mode: z.ZodEnum<{
1500
+ fixed: "fixed";
1501
+ free: "free";
1502
+ }>;
1503
+ expires_at: z.ZodNullable<z.ZodNumber>;
1504
+ }, z.core.$strict>>;
1505
+ locale: z.ZodNullable<z.ZodEnum<{
1506
+ en: "en";
1507
+ es: "es";
1508
+ fr: "fr";
1509
+ de: "de";
1510
+ it: "it";
1511
+ pt: "pt";
1512
+ }>>;
1513
+ }, z.core.$strict>;
1514
+ readonly sdk: "paymentLinks.update";
1515
+ readonly expandable: "payment_link";
1516
+ }, {
1517
+ readonly operationId: "listPaymentLinkLineItems";
1518
+ readonly method: "get";
1519
+ readonly path: "/v1/payment_links/{id}/line_items";
1520
+ readonly tag: "Payment Links";
1521
+ readonly summary: "List a payment link's line items";
1522
+ readonly description: "A complete set of at most twenty lines: `has_more` is always `false`.";
1523
+ readonly auth: "service";
1524
+ readonly scope: "payments:read";
1525
+ readonly params: {
1526
+ readonly id: "The payment link (`link_…`).";
1527
+ };
1528
+ readonly query: z.ZodObject<{
1529
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
1530
+ starting_after: z.ZodOptional<z.ZodString>;
1531
+ ending_before: z.ZodOptional<z.ZodString>;
1532
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
1533
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
1534
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
1535
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
1536
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
1537
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
1538
+ gt?: number | undefined;
1539
+ gte?: number | undefined;
1540
+ lt?: number | undefined;
1541
+ lte?: number | undefined;
1542
+ }>>]>>;
1543
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
1544
+ }, z.core.$strict>;
1545
+ readonly response: z.ZodObject<{
1546
+ object: z.ZodLiteral<"list">;
1547
+ data: z.ZodArray<z.ZodObject<{
1548
+ id: z.ZodString;
1549
+ object: z.ZodLiteral<"item">;
1550
+ description: z.ZodString;
1551
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
1552
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
1553
+ images: z.ZodArray<z.ZodString>;
1554
+ quantity: z.ZodNumber;
1555
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
1556
+ enabled: z.ZodBoolean;
1557
+ minimum: z.ZodNullable<z.ZodNumber>;
1558
+ maximum: z.ZodNullable<z.ZodNumber>;
1559
+ }, z.core.$strict>>;
1560
+ currency: z.ZodEnum<{
1561
+ FAIR: "FAIR";
1562
+ EUR: "EUR";
1563
+ USD: "USD";
1564
+ GBP: "GBP";
1565
+ CHF: "CHF";
1566
+ SEK: "SEK";
1567
+ NOK: "NOK";
1568
+ DKK: "DKK";
1569
+ PLN: "PLN";
1570
+ CZK: "CZK";
1571
+ CAD: "CAD";
1572
+ AUD: "AUD";
1573
+ JPY: "JPY";
1574
+ }>;
1575
+ unit_amount: z.ZodNullable<z.ZodString>;
1576
+ amount_subtotal: z.ZodString;
1577
+ amount_discount: z.ZodString;
1578
+ amount_tax: z.ZodString;
1579
+ amount_total: z.ZodString;
1580
+ }, z.core.$strict>>;
1581
+ has_more: z.ZodBoolean;
1582
+ url: z.ZodString;
1583
+ }, z.core.$strict>;
1584
+ readonly sdk: "paymentLinks.listLineItems";
1585
+ readonly expandable: "item";
1586
+ }, {
1587
+ readonly operationId: "retrievePaymentLinkPublic";
1588
+ readonly method: "get";
1589
+ readonly path: "/v1/payment_links/{id}/public";
1590
+ readonly tag: "Payment Links";
1591
+ readonly summary: "Retrieve a payment link as a visitor";
1592
+ readonly description: "Anonymous and rate-limited: what a visitor sees before checkout starts. An inactive (or expired contribution) link answers with `active: false`, so the page can say so.";
1593
+ readonly auth: "public";
1594
+ readonly params: {
1595
+ readonly id: "The payment link (`link_…`).";
1596
+ };
1597
+ readonly response: z.ZodObject<{
1598
+ contribution_amount: z.ZodNullable<z.ZodString>;
1599
+ merchant: z.ZodObject<{
1600
+ name: z.ZodString;
1601
+ avatar_url: z.ZodNullable<z.ZodString>;
1602
+ logo_url: z.ZodNullable<z.ZodString>;
1603
+ description: z.ZodNullable<z.ZodString>;
1604
+ }, z.core.$strict>;
1605
+ branding: z.ZodObject<{
1606
+ icon_url: z.ZodNullable<z.ZodString>;
1607
+ logo_url: z.ZodNullable<z.ZodString>;
1608
+ primary_color: z.ZodString;
1609
+ accent_color: z.ZodString;
1610
+ font: z.ZodEnum<{
1611
+ system: "system";
1612
+ inter: "inter";
1613
+ roboto: "roboto";
1614
+ open_sans: "open_sans";
1615
+ lato: "lato";
1616
+ source_sans: "source_sans";
1617
+ noto_sans: "noto_sans";
1618
+ serif: "serif";
1619
+ monospace: "monospace";
1620
+ }>;
1621
+ border_style: z.ZodEnum<{
1622
+ rounded: "rounded";
1623
+ rectangular: "rectangular";
1624
+ pill: "pill";
1625
+ }>;
1626
+ }, z.core.$strict>;
1627
+ id: z.ZodString;
1628
+ object: z.ZodLiteral<"payment_link">;
1629
+ livemode: z.ZodBoolean;
1630
+ active: z.ZodBoolean;
1631
+ currency: z.ZodEnum<{
1632
+ FAIR: "FAIR";
1633
+ EUR: "EUR";
1634
+ USD: "USD";
1635
+ GBP: "GBP";
1636
+ CHF: "CHF";
1637
+ SEK: "SEK";
1638
+ NOK: "NOK";
1639
+ DKK: "DKK";
1640
+ PLN: "PLN";
1641
+ CZK: "CZK";
1642
+ CAD: "CAD";
1643
+ AUD: "AUD";
1644
+ JPY: "JPY";
1645
+ }>;
1646
+ rail: z.ZodEnum<{
1647
+ card: "card";
1648
+ faircoin: "faircoin";
1649
+ }>;
1650
+ network: z.ZodNullable<z.ZodEnum<{
1651
+ mainnet: "mainnet";
1652
+ testnet: "testnet";
1653
+ }>>;
1654
+ line_items: z.ZodArray<z.ZodObject<{
1655
+ id: z.ZodString;
1656
+ object: z.ZodLiteral<"item">;
1657
+ description: z.ZodString;
1658
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
1659
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
1660
+ images: z.ZodArray<z.ZodString>;
1661
+ quantity: z.ZodNumber;
1662
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
1663
+ enabled: z.ZodBoolean;
1664
+ minimum: z.ZodNullable<z.ZodNumber>;
1665
+ maximum: z.ZodNullable<z.ZodNumber>;
1666
+ }, z.core.$strict>>;
1667
+ currency: z.ZodEnum<{
1668
+ FAIR: "FAIR";
1669
+ EUR: "EUR";
1670
+ USD: "USD";
1671
+ GBP: "GBP";
1672
+ CHF: "CHF";
1673
+ SEK: "SEK";
1674
+ NOK: "NOK";
1675
+ DKK: "DKK";
1676
+ PLN: "PLN";
1677
+ CZK: "CZK";
1678
+ CAD: "CAD";
1679
+ AUD: "AUD";
1680
+ JPY: "JPY";
1681
+ }>;
1682
+ unit_amount: z.ZodNullable<z.ZodString>;
1683
+ amount_subtotal: z.ZodString;
1684
+ amount_discount: z.ZodString;
1685
+ amount_tax: z.ZodString;
1686
+ amount_total: z.ZodString;
1687
+ }, z.core.$strict>>;
1688
+ contribution: z.ZodOptional<z.ZodObject<{
1689
+ organization_id: z.ZodString;
1690
+ purpose: z.ZodString;
1691
+ amount_mode: z.ZodEnum<{
1692
+ fixed: "fixed";
1693
+ free: "free";
1694
+ }>;
1695
+ expires_at: z.ZodNullable<z.ZodNumber>;
1696
+ }, z.core.$strict>>;
1697
+ locale: z.ZodNullable<z.ZodEnum<{
1698
+ en: "en";
1699
+ es: "es";
1700
+ fr: "fr";
1701
+ de: "de";
1702
+ it: "it";
1703
+ pt: "pt";
1704
+ }>>;
1705
+ }, z.core.$strict>;
1706
+ }, {
1707
+ readonly operationId: "createPaymentLinkCheckoutSession";
1708
+ readonly method: "post";
1709
+ readonly path: "/v1/payment_links/{id}/checkout_sessions";
1710
+ readonly tag: "Payment Links";
1711
+ readonly summary: "Start checkout from a payment link";
1712
+ readonly description: "Anonymous and rate-limited. Creates a Checkout Session from the STORED link — never a payment. A contribution link requires a UUID `Idempotency-Key` header, written by the page before the request, so a lost answer recovers the same session.";
1713
+ readonly auth: "public";
1714
+ readonly params: {
1715
+ readonly id: "The payment link (`link_…`).";
1716
+ };
1717
+ readonly body: z.ZodObject<{
1718
+ amount: z.ZodOptional<z.ZodString>;
1719
+ }, z.core.$strict>;
1720
+ readonly response: z.ZodObject<{
1721
+ object: z.ZodLiteral<"checkout_session_start">;
1722
+ id: z.ZodString;
1723
+ client_secret: z.ZodString;
1724
+ url: z.ZodString;
1725
+ }, z.core.$strict>;
1726
+ readonly status: 201;
1727
+ }];
1728
+ export {};