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