@peable.to/contracts 0.3.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 -97
  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 -94
  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 -134
  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 -138
  315. package/dist/esm/openapi.js +0 -134
  316. package/dist/types/openapi.d.ts +0 -145
@@ -0,0 +1,2080 @@
1
+ import { z } from 'zod';
2
+ import { type Expand } from '../../common/objects';
3
+ /**
4
+ * PaymentIntents (`pi_…`) — Stripe's PaymentIntent, at the root (ADR 0019):
5
+ * one status vocabulary over two rails, the non-custodial FairCoin lifecycle
6
+ * and a fiat card payment served by a provider behind the gateway (ADR 0001).
7
+ */
8
+ /** Why the last attempt failed. Peable's words, never the provider's raw prose. */
9
+ export declare const paymentErrorSchema: z.ZodObject<{
10
+ type: z.ZodEnum<{
11
+ api_error: "api_error";
12
+ card_error: "card_error";
13
+ payment_error: "payment_error";
14
+ }>;
15
+ code: z.ZodNullable<z.ZodString>;
16
+ decline_code: z.ZodNullable<z.ZodString>;
17
+ message: z.ZodString;
18
+ }, z.core.$strict>;
19
+ export type PaymentIntentLastPaymentError = z.output<typeof paymentErrorSchema>;
20
+ /**
21
+ * What the payer must do next (`status: 'requires_action'`).
22
+ *
23
+ * - `faircoin_payment` — send exactly `amount` (base units) to `address` on
24
+ * `network`; `uri` is the BIP21-style `faircoin:` URI a wallet scans.
25
+ * - `use_peable_sdk` — a card challenge; `@peable.to/sdk/checkout` fetches the
26
+ * provider's confirmation credential through `POST …/client_action` and
27
+ * completes it. The credential is never on the intent itself.
28
+ */
29
+ export declare const paymentIntentNextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
30
+ type: z.ZodLiteral<"faircoin_payment">;
31
+ faircoin_payment: z.ZodObject<{
32
+ address: z.ZodString;
33
+ network: z.ZodEnum<{
34
+ mainnet: "mainnet";
35
+ testnet: "testnet";
36
+ }>;
37
+ amount: z.ZodString;
38
+ currency: z.ZodLiteral<"FAIR">;
39
+ uri: z.ZodString;
40
+ }, z.core.$strict>;
41
+ }, z.core.$strict>, z.ZodObject<{
42
+ type: z.ZodLiteral<"use_peable_sdk">;
43
+ }, z.core.$strict>], "type">;
44
+ export type PaymentIntentNextAction = z.output<typeof paymentIntentNextActionSchema>;
45
+ /**
46
+ * The chain side of a FairCoin payment. `txid` and `confirmations` describe the
47
+ * transaction the payer reported: `null`/`0` while `requires_action`, the
48
+ * watcher's count against `required_confirmations` while `processing`.
49
+ */
50
+ export declare const paymentIntentFaircoinSchema: z.ZodObject<{
51
+ network: z.ZodEnum<{
52
+ mainnet: "mainnet";
53
+ testnet: "testnet";
54
+ }>;
55
+ address: z.ZodString;
56
+ txid: z.ZodNullable<z.ZodString>;
57
+ confirmations: z.ZodNumber;
58
+ required_confirmations: z.ZodNumber;
59
+ }, z.core.$strict>;
60
+ export type PaymentIntentFaircoin = z.output<typeof paymentIntentFaircoinSchema>;
61
+ /** Where a destination charge's funds go (`transfer_data`, ADR 0015 §2). */
62
+ export declare const paymentIntentTransferDataSchema: z.ZodObject<{
63
+ destination: z.ZodString;
64
+ amount: z.ZodNullable<z.ZodString>;
65
+ }, z.core.$strict>;
66
+ export type PaymentIntentTransferData = z.output<typeof paymentIntentTransferDataSchema>;
67
+ /**
68
+ * The payer's next step on the card rail, as `POST …/client_action` answers it:
69
+ * read live from the provider, `Cache-Control: no-store`, never on a list.
70
+ */
71
+ export declare const clientActionSchema: z.ZodObject<{
72
+ kind: z.ZodEnum<{
73
+ client_secret: "client_secret";
74
+ redirect: "redirect";
75
+ }>;
76
+ value: z.ZodString;
77
+ publishable_key: z.ZodOptional<z.ZodString>;
78
+ object: z.ZodLiteral<"client_action">;
79
+ }, z.core.$strict>;
80
+ export type ClientAction = z.output<typeof clientActionSchema>;
81
+ /** The same next step, as a create or a single merchant retrieve carries it on the intent. */
82
+ export declare const paymentIntentClientActionSchema: z.ZodObject<{
83
+ kind: z.ZodEnum<{
84
+ client_secret: "client_secret";
85
+ redirect: "redirect";
86
+ }>;
87
+ value: z.ZodString;
88
+ publishable_key: z.ZodOptional<z.ZodString>;
89
+ }, z.core.$strict>;
90
+ export type PaymentIntentClientAction = z.output<typeof paymentIntentClientActionSchema>;
91
+ export declare const paymentIntentSchema: z.ZodObject<{
92
+ id: z.ZodString;
93
+ object: z.ZodLiteral<"payment_intent">;
94
+ livemode: z.ZodBoolean;
95
+ status: z.ZodEnum<{
96
+ succeeded: "succeeded";
97
+ canceled: "canceled";
98
+ requires_payment_method: "requires_payment_method";
99
+ requires_confirmation: "requires_confirmation";
100
+ requires_action: "requires_action";
101
+ processing: "processing";
102
+ requires_capture: "requires_capture";
103
+ }>;
104
+ rail: z.ZodEnum<{
105
+ card: "card";
106
+ faircoin: "faircoin";
107
+ }>;
108
+ payment_method_types: z.ZodArray<z.ZodEnum<{
109
+ card: "card";
110
+ faircoin: "faircoin";
111
+ sepa_debit: "sepa_debit";
112
+ ideal: "ideal";
113
+ bancontact: "bancontact";
114
+ eps: "eps";
115
+ }>>;
116
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
117
+ id: z.ZodString;
118
+ }, z.core.$strict>>;
119
+ amount: z.ZodString;
120
+ amount_capturable: z.ZodString;
121
+ amount_received: z.ZodString;
122
+ amount_refunded: z.ZodString;
123
+ currency: z.ZodEnum<{
124
+ FAIR: "FAIR";
125
+ EUR: "EUR";
126
+ USD: "USD";
127
+ GBP: "GBP";
128
+ CHF: "CHF";
129
+ SEK: "SEK";
130
+ NOK: "NOK";
131
+ DKK: "DKK";
132
+ PLN: "PLN";
133
+ CZK: "CZK";
134
+ CAD: "CAD";
135
+ AUD: "AUD";
136
+ JPY: "JPY";
137
+ }>;
138
+ capture_method: z.ZodEnum<{
139
+ manual: "manual";
140
+ automatic: "automatic";
141
+ }>;
142
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
143
+ off_session: "off_session";
144
+ on_session: "on_session";
145
+ }>>;
146
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
147
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
148
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
149
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
150
+ type: z.ZodLiteral<"faircoin_payment">;
151
+ faircoin_payment: z.ZodObject<{
152
+ address: z.ZodString;
153
+ network: z.ZodEnum<{
154
+ mainnet: "mainnet";
155
+ testnet: "testnet";
156
+ }>;
157
+ amount: z.ZodString;
158
+ currency: z.ZodLiteral<"FAIR">;
159
+ uri: z.ZodString;
160
+ }, z.core.$strict>;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ type: z.ZodLiteral<"use_peable_sdk">;
163
+ }, z.core.$strict>], "type">>;
164
+ last_payment_error: z.ZodNullable<z.ZodObject<{
165
+ type: z.ZodEnum<{
166
+ api_error: "api_error";
167
+ card_error: "card_error";
168
+ payment_error: "payment_error";
169
+ }>;
170
+ code: z.ZodNullable<z.ZodString>;
171
+ decline_code: z.ZodNullable<z.ZodString>;
172
+ message: z.ZodString;
173
+ }, z.core.$strict>>;
174
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
175
+ duplicate: "duplicate";
176
+ fraudulent: "fraudulent";
177
+ automatic: "automatic";
178
+ abandoned: "abandoned";
179
+ requested_by_customer: "requested_by_customer";
180
+ underpaid: "underpaid";
181
+ }>>;
182
+ canceled_at: z.ZodNullable<z.ZodNumber>;
183
+ description: z.ZodNullable<z.ZodString>;
184
+ receipt_email: z.ZodNullable<z.ZodString>;
185
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
186
+ shipping: z.ZodNullable<z.ZodObject<{
187
+ name: z.ZodString;
188
+ phone: z.ZodNullable<z.ZodString>;
189
+ address: z.ZodObject<{
190
+ line1: z.ZodNullable<z.ZodString>;
191
+ line2: z.ZodNullable<z.ZodString>;
192
+ city: z.ZodNullable<z.ZodString>;
193
+ state: z.ZodNullable<z.ZodString>;
194
+ postal_code: z.ZodNullable<z.ZodString>;
195
+ country: z.ZodNullable<z.ZodString>;
196
+ }, z.core.$strict>;
197
+ carrier: z.ZodNullable<z.ZodString>;
198
+ tracking_number: z.ZodNullable<z.ZodString>;
199
+ }, z.core.$strict>>;
200
+ faircoin: z.ZodNullable<z.ZodObject<{
201
+ network: z.ZodEnum<{
202
+ mainnet: "mainnet";
203
+ testnet: "testnet";
204
+ }>;
205
+ address: z.ZodString;
206
+ txid: z.ZodNullable<z.ZodString>;
207
+ confirmations: z.ZodNumber;
208
+ required_confirmations: z.ZodNumber;
209
+ }, z.core.$strict>>;
210
+ merchant_id: z.ZodString;
211
+ 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">>>>;
212
+ application_fee_amount: z.ZodNullable<z.ZodString>;
213
+ transfer_data: z.ZodNullable<z.ZodObject<{
214
+ destination: z.ZodString;
215
+ amount: z.ZodNullable<z.ZodString>;
216
+ }, z.core.$strict>>;
217
+ on_behalf_of: z.ZodNullable<z.ZodString>;
218
+ client_secret: z.ZodString;
219
+ client_action: z.ZodOptional<z.ZodObject<{
220
+ kind: z.ZodEnum<{
221
+ client_secret: "client_secret";
222
+ redirect: "redirect";
223
+ }>;
224
+ value: z.ZodString;
225
+ publishable_key: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strict>>;
227
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
228
+ expires_at: z.ZodNumber;
229
+ can_expire: z.ZodBoolean;
230
+ created: z.ZodNumber;
231
+ updated_at: z.ZodNumber;
232
+ }, z.core.$strict>;
233
+ export type PaymentIntent = Expand<z.output<typeof paymentIntentSchema>>;
234
+ declare module '../../common/objects' {
235
+ interface ObjectMap {
236
+ payment_intent: PaymentIntent;
237
+ }
238
+ }
239
+ /**
240
+ * The rail/amount/currency/network fragment a creating route takes. Coherence
241
+ * (rail + currency + network agreeing with each other and the merchant) is the
242
+ * service's rule, not a refinement here.
243
+ */
244
+ export declare const railParams: {
245
+ readonly amount: z.ZodString;
246
+ readonly rail: z.ZodOptional<z.ZodEnum<{
247
+ card: "card";
248
+ faircoin: "faircoin";
249
+ }>>;
250
+ readonly currency: z.ZodOptional<z.ZodEnum<{
251
+ FAIR: "FAIR";
252
+ EUR: "EUR";
253
+ USD: "USD";
254
+ GBP: "GBP";
255
+ CHF: "CHF";
256
+ SEK: "SEK";
257
+ NOK: "NOK";
258
+ DKK: "DKK";
259
+ PLN: "PLN";
260
+ CZK: "CZK";
261
+ CAD: "CAD";
262
+ AUD: "AUD";
263
+ JPY: "JPY";
264
+ }>>;
265
+ readonly network: z.ZodOptional<z.ZodEnum<{
266
+ mainnet: "mainnet";
267
+ testnet: "testnet";
268
+ }>>;
269
+ };
270
+ /** The seller an on-behalf create pays (`ca_…`, ADR 0012 D5). FairCoin only. */
271
+ export declare const connectedAccountParam: {
272
+ readonly connected_account: z.ZodOptional<z.ZodString>;
273
+ };
274
+ export declare const createPaymentIntentParams: z.ZodObject<{
275
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
276
+ expires_in_seconds: z.ZodOptional<z.ZodNumber>;
277
+ payment_method_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
278
+ card: "card";
279
+ faircoin: "faircoin";
280
+ sepa_debit: "sepa_debit";
281
+ ideal: "ideal";
282
+ bancontact: "bancontact";
283
+ eps: "eps";
284
+ }>>>;
285
+ payment_method_configuration: z.ZodOptional<z.ZodString>;
286
+ customer: z.ZodOptional<z.ZodString>;
287
+ payment_method: z.ZodOptional<z.ZodString>;
288
+ confirm: z.ZodOptional<z.ZodBoolean>;
289
+ off_session: z.ZodOptional<z.ZodBoolean>;
290
+ setup_future_usage: z.ZodOptional<z.ZodEnum<{
291
+ off_session: "off_session";
292
+ on_session: "on_session";
293
+ }>>;
294
+ capture_method: z.ZodOptional<z.ZodEnum<{
295
+ manual: "manual";
296
+ automatic: "automatic";
297
+ }>>;
298
+ receipt_email: z.ZodOptional<z.ZodEmail>;
299
+ description: z.ZodOptional<z.ZodString>;
300
+ statement_descriptor_suffix: z.ZodOptional<z.ZodString>;
301
+ shipping: z.ZodOptional<z.ZodObject<{
302
+ name: z.ZodString;
303
+ phone: z.ZodOptional<z.ZodString>;
304
+ address: z.ZodObject<{
305
+ line1: z.ZodOptional<z.ZodString>;
306
+ line2: z.ZodOptional<z.ZodString>;
307
+ city: z.ZodOptional<z.ZodString>;
308
+ state: z.ZodOptional<z.ZodString>;
309
+ postal_code: z.ZodOptional<z.ZodString>;
310
+ country: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strict>;
312
+ carrier: z.ZodOptional<z.ZodString>;
313
+ tracking_number: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strict>>;
315
+ return_url: z.ZodOptional<z.ZodString>;
316
+ application_fee_amount: z.ZodOptional<z.ZodString>;
317
+ transfer_data: z.ZodOptional<z.ZodObject<{
318
+ destination: z.ZodString;
319
+ amount: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strict>>;
321
+ on_behalf_of: z.ZodOptional<z.ZodString>;
322
+ connected_account: z.ZodOptional<z.ZodString>;
323
+ amount: z.ZodString;
324
+ rail: z.ZodOptional<z.ZodEnum<{
325
+ card: "card";
326
+ faircoin: "faircoin";
327
+ }>>;
328
+ currency: z.ZodOptional<z.ZodEnum<{
329
+ FAIR: "FAIR";
330
+ EUR: "EUR";
331
+ USD: "USD";
332
+ GBP: "GBP";
333
+ CHF: "CHF";
334
+ SEK: "SEK";
335
+ NOK: "NOK";
336
+ DKK: "DKK";
337
+ PLN: "PLN";
338
+ CZK: "CZK";
339
+ CAD: "CAD";
340
+ AUD: "AUD";
341
+ JPY: "JPY";
342
+ }>>;
343
+ network: z.ZodOptional<z.ZodEnum<{
344
+ mainnet: "mainnet";
345
+ testnet: "testnet";
346
+ }>>;
347
+ }, z.core.$strict>;
348
+ export type CreatePaymentIntentParams = z.input<typeof createPaymentIntentParams>;
349
+ /**
350
+ * The merchant's own bookkeeping only — the amount, rail and status ARE the
351
+ * payment and move through their own operations. `""` clears a field;
352
+ * `metadata` is a patch.
353
+ */
354
+ export declare const updatePaymentIntentParams: z.ZodObject<{
355
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
356
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
357
+ receipt_email: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>>;
358
+ shipping: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
359
+ name: z.ZodString;
360
+ phone: z.ZodOptional<z.ZodString>;
361
+ address: z.ZodObject<{
362
+ line1: z.ZodOptional<z.ZodString>;
363
+ line2: z.ZodOptional<z.ZodString>;
364
+ city: z.ZodOptional<z.ZodString>;
365
+ state: z.ZodOptional<z.ZodString>;
366
+ postal_code: z.ZodOptional<z.ZodString>;
367
+ country: z.ZodOptional<z.ZodString>;
368
+ }, z.core.$strict>;
369
+ carrier: z.ZodOptional<z.ZodString>;
370
+ tracking_number: z.ZodOptional<z.ZodString>;
371
+ }, z.core.$strict>, z.ZodLiteral<"">]>>;
372
+ 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>>>;
373
+ }, z.core.$strict>;
374
+ export type UpdatePaymentIntentParams = z.input<typeof updatePaymentIntentParams>;
375
+ /** Card only. */
376
+ export declare const confirmPaymentIntentParams: z.ZodObject<{
377
+ payment_method: z.ZodOptional<z.ZodString>;
378
+ off_session: z.ZodOptional<z.ZodBoolean>;
379
+ setup_future_usage: z.ZodOptional<z.ZodEnum<{
380
+ off_session: "off_session";
381
+ on_session: "on_session";
382
+ }>>;
383
+ return_url: z.ZodOptional<z.ZodString>;
384
+ receipt_email: z.ZodOptional<z.ZodEmail>;
385
+ shipping: z.ZodOptional<z.ZodObject<{
386
+ name: z.ZodString;
387
+ phone: z.ZodOptional<z.ZodString>;
388
+ address: z.ZodObject<{
389
+ line1: z.ZodOptional<z.ZodString>;
390
+ line2: z.ZodOptional<z.ZodString>;
391
+ city: z.ZodOptional<z.ZodString>;
392
+ state: z.ZodOptional<z.ZodString>;
393
+ postal_code: z.ZodOptional<z.ZodString>;
394
+ country: z.ZodOptional<z.ZodString>;
395
+ }, z.core.$strict>;
396
+ carrier: z.ZodOptional<z.ZodString>;
397
+ tracking_number: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strict>>;
399
+ 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>>>;
400
+ }, z.core.$strict>;
401
+ export type ConfirmPaymentIntentParams = z.input<typeof confirmPaymentIntentParams>;
402
+ /** Card only, `requires_capture`. */
403
+ export declare const capturePaymentIntentParams: z.ZodObject<{
404
+ amount_to_capture: z.ZodOptional<z.ZodString>;
405
+ 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>>>;
406
+ }, z.core.$strict>;
407
+ export type CapturePaymentIntentParams = z.input<typeof capturePaymentIntentParams>;
408
+ export declare const cancelPaymentIntentParams: z.ZodObject<{
409
+ cancellation_reason: z.ZodOptional<z.ZodEnum<{
410
+ duplicate: "duplicate";
411
+ fraudulent: "fraudulent";
412
+ abandoned: "abandoned";
413
+ requested_by_customer: "requested_by_customer";
414
+ }>>;
415
+ 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>>>;
416
+ }, z.core.$strict>;
417
+ export type CancelPaymentIntentParams = z.input<typeof cancelPaymentIntentParams>;
418
+ /**
419
+ * The payer proves possession of the intent with its `client_secret`; the
420
+ * reported txid is what the settlement watcher then verifies on-chain.
421
+ */
422
+ export declare const submitPaymentIntentTxParams: z.ZodObject<{
423
+ client_secret: z.ZodString;
424
+ txid: z.ZodString;
425
+ }, z.core.$strict>;
426
+ export type SubmitPaymentIntentTxParams = z.input<typeof submitPaymentIntentTxParams>;
427
+ /** The list's own filters, beside the shared list parameters. */
428
+ export declare const listPaymentIntentsQuery: z.ZodObject<{
429
+ 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>>;
430
+ starting_after: z.ZodOptional<z.ZodString>;
431
+ ending_before: z.ZodOptional<z.ZodString>;
432
+ 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<{
433
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
434
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
435
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
436
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
437
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
438
+ gt?: number | undefined;
439
+ gte?: number | undefined;
440
+ lt?: number | undefined;
441
+ lte?: number | undefined;
442
+ }>>]>>;
443
+ 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>>>;
444
+ status: z.ZodOptional<z.ZodEnum<{
445
+ succeeded: "succeeded";
446
+ canceled: "canceled";
447
+ requires_payment_method: "requires_payment_method";
448
+ requires_confirmation: "requires_confirmation";
449
+ requires_action: "requires_action";
450
+ processing: "processing";
451
+ requires_capture: "requires_capture";
452
+ }>>;
453
+ connected_account: z.ZodOptional<z.ZodString>;
454
+ customer: z.ZodOptional<z.ZodString>;
455
+ }, z.core.$strict>;
456
+ export type ListPaymentIntentsParams = z.input<typeof listPaymentIntentsQuery>;
457
+ /**
458
+ * The payer's capability, on a route either party may call. The
459
+ * `X-Peable-Client-Secret` header is preferred: a query string lands in access
460
+ * logs.
461
+ */
462
+ export declare const clientSecretParam: z.ZodOptional<z.ZodString>;
463
+ /** A merchant retrieve takes `expand[]`; the payer's takes `client_secret` and nothing to expand. */
464
+ export declare const retrievePaymentIntentQuery: z.ZodObject<{
465
+ 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>>>;
466
+ client_secret: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strict>;
468
+ /** The query of a route either party may call that takes nothing else (`client_action`). */
469
+ export declare const clientSecretQuery: z.ZodObject<{
470
+ client_secret: z.ZodOptional<z.ZodString>;
471
+ }, z.core.$strict>;
472
+ export type RetrievePaymentIntentParams = z.input<typeof retrievePaymentIntentQuery>;
473
+ export declare const paymentIntentRoutes: readonly [{
474
+ readonly operationId: "createPaymentIntent";
475
+ readonly method: "post";
476
+ readonly path: "/v1/payment_intents";
477
+ readonly tag: "Payment intents";
478
+ readonly summary: "Create a payment intent";
479
+ readonly description: "`Idempotency-Key` also keys the intent itself: a key replayed after the 24-hour window answers 200 with the payment it created. On the card rail the answer carries `client_action`, the payer's next step.";
480
+ readonly auth: "service";
481
+ readonly scope: "payments:write";
482
+ readonly idempotent: true;
483
+ readonly body: z.ZodObject<{
484
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
485
+ expires_in_seconds: z.ZodOptional<z.ZodNumber>;
486
+ payment_method_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
487
+ card: "card";
488
+ faircoin: "faircoin";
489
+ sepa_debit: "sepa_debit";
490
+ ideal: "ideal";
491
+ bancontact: "bancontact";
492
+ eps: "eps";
493
+ }>>>;
494
+ payment_method_configuration: z.ZodOptional<z.ZodString>;
495
+ customer: z.ZodOptional<z.ZodString>;
496
+ payment_method: z.ZodOptional<z.ZodString>;
497
+ confirm: z.ZodOptional<z.ZodBoolean>;
498
+ off_session: z.ZodOptional<z.ZodBoolean>;
499
+ setup_future_usage: z.ZodOptional<z.ZodEnum<{
500
+ off_session: "off_session";
501
+ on_session: "on_session";
502
+ }>>;
503
+ capture_method: z.ZodOptional<z.ZodEnum<{
504
+ manual: "manual";
505
+ automatic: "automatic";
506
+ }>>;
507
+ receipt_email: z.ZodOptional<z.ZodEmail>;
508
+ description: z.ZodOptional<z.ZodString>;
509
+ statement_descriptor_suffix: z.ZodOptional<z.ZodString>;
510
+ shipping: z.ZodOptional<z.ZodObject<{
511
+ name: z.ZodString;
512
+ phone: z.ZodOptional<z.ZodString>;
513
+ address: z.ZodObject<{
514
+ line1: z.ZodOptional<z.ZodString>;
515
+ line2: z.ZodOptional<z.ZodString>;
516
+ city: z.ZodOptional<z.ZodString>;
517
+ state: z.ZodOptional<z.ZodString>;
518
+ postal_code: z.ZodOptional<z.ZodString>;
519
+ country: z.ZodOptional<z.ZodString>;
520
+ }, z.core.$strict>;
521
+ carrier: z.ZodOptional<z.ZodString>;
522
+ tracking_number: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strict>>;
524
+ return_url: z.ZodOptional<z.ZodString>;
525
+ application_fee_amount: z.ZodOptional<z.ZodString>;
526
+ transfer_data: z.ZodOptional<z.ZodObject<{
527
+ destination: z.ZodString;
528
+ amount: z.ZodOptional<z.ZodString>;
529
+ }, z.core.$strict>>;
530
+ on_behalf_of: z.ZodOptional<z.ZodString>;
531
+ connected_account: z.ZodOptional<z.ZodString>;
532
+ amount: z.ZodString;
533
+ rail: z.ZodOptional<z.ZodEnum<{
534
+ card: "card";
535
+ faircoin: "faircoin";
536
+ }>>;
537
+ currency: z.ZodOptional<z.ZodEnum<{
538
+ FAIR: "FAIR";
539
+ EUR: "EUR";
540
+ USD: "USD";
541
+ GBP: "GBP";
542
+ CHF: "CHF";
543
+ SEK: "SEK";
544
+ NOK: "NOK";
545
+ DKK: "DKK";
546
+ PLN: "PLN";
547
+ CZK: "CZK";
548
+ CAD: "CAD";
549
+ AUD: "AUD";
550
+ JPY: "JPY";
551
+ }>>;
552
+ network: z.ZodOptional<z.ZodEnum<{
553
+ mainnet: "mainnet";
554
+ testnet: "testnet";
555
+ }>>;
556
+ }, z.core.$strict>;
557
+ readonly response: z.ZodObject<{
558
+ id: z.ZodString;
559
+ object: z.ZodLiteral<"payment_intent">;
560
+ livemode: z.ZodBoolean;
561
+ status: z.ZodEnum<{
562
+ succeeded: "succeeded";
563
+ canceled: "canceled";
564
+ requires_payment_method: "requires_payment_method";
565
+ requires_confirmation: "requires_confirmation";
566
+ requires_action: "requires_action";
567
+ processing: "processing";
568
+ requires_capture: "requires_capture";
569
+ }>;
570
+ rail: z.ZodEnum<{
571
+ card: "card";
572
+ faircoin: "faircoin";
573
+ }>;
574
+ payment_method_types: z.ZodArray<z.ZodEnum<{
575
+ card: "card";
576
+ faircoin: "faircoin";
577
+ sepa_debit: "sepa_debit";
578
+ ideal: "ideal";
579
+ bancontact: "bancontact";
580
+ eps: "eps";
581
+ }>>;
582
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
583
+ id: z.ZodString;
584
+ }, z.core.$strict>>;
585
+ amount: z.ZodString;
586
+ amount_capturable: z.ZodString;
587
+ amount_received: z.ZodString;
588
+ amount_refunded: z.ZodString;
589
+ currency: z.ZodEnum<{
590
+ FAIR: "FAIR";
591
+ EUR: "EUR";
592
+ USD: "USD";
593
+ GBP: "GBP";
594
+ CHF: "CHF";
595
+ SEK: "SEK";
596
+ NOK: "NOK";
597
+ DKK: "DKK";
598
+ PLN: "PLN";
599
+ CZK: "CZK";
600
+ CAD: "CAD";
601
+ AUD: "AUD";
602
+ JPY: "JPY";
603
+ }>;
604
+ capture_method: z.ZodEnum<{
605
+ manual: "manual";
606
+ automatic: "automatic";
607
+ }>;
608
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
609
+ off_session: "off_session";
610
+ on_session: "on_session";
611
+ }>>;
612
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
613
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
614
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
615
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
616
+ type: z.ZodLiteral<"faircoin_payment">;
617
+ faircoin_payment: z.ZodObject<{
618
+ address: z.ZodString;
619
+ network: z.ZodEnum<{
620
+ mainnet: "mainnet";
621
+ testnet: "testnet";
622
+ }>;
623
+ amount: z.ZodString;
624
+ currency: z.ZodLiteral<"FAIR">;
625
+ uri: z.ZodString;
626
+ }, z.core.$strict>;
627
+ }, z.core.$strict>, z.ZodObject<{
628
+ type: z.ZodLiteral<"use_peable_sdk">;
629
+ }, z.core.$strict>], "type">>;
630
+ last_payment_error: z.ZodNullable<z.ZodObject<{
631
+ type: z.ZodEnum<{
632
+ api_error: "api_error";
633
+ card_error: "card_error";
634
+ payment_error: "payment_error";
635
+ }>;
636
+ code: z.ZodNullable<z.ZodString>;
637
+ decline_code: z.ZodNullable<z.ZodString>;
638
+ message: z.ZodString;
639
+ }, z.core.$strict>>;
640
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
641
+ duplicate: "duplicate";
642
+ fraudulent: "fraudulent";
643
+ automatic: "automatic";
644
+ abandoned: "abandoned";
645
+ requested_by_customer: "requested_by_customer";
646
+ underpaid: "underpaid";
647
+ }>>;
648
+ canceled_at: z.ZodNullable<z.ZodNumber>;
649
+ description: z.ZodNullable<z.ZodString>;
650
+ receipt_email: z.ZodNullable<z.ZodString>;
651
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
652
+ shipping: z.ZodNullable<z.ZodObject<{
653
+ name: z.ZodString;
654
+ phone: z.ZodNullable<z.ZodString>;
655
+ address: z.ZodObject<{
656
+ line1: z.ZodNullable<z.ZodString>;
657
+ line2: z.ZodNullable<z.ZodString>;
658
+ city: z.ZodNullable<z.ZodString>;
659
+ state: z.ZodNullable<z.ZodString>;
660
+ postal_code: z.ZodNullable<z.ZodString>;
661
+ country: z.ZodNullable<z.ZodString>;
662
+ }, z.core.$strict>;
663
+ carrier: z.ZodNullable<z.ZodString>;
664
+ tracking_number: z.ZodNullable<z.ZodString>;
665
+ }, z.core.$strict>>;
666
+ faircoin: z.ZodNullable<z.ZodObject<{
667
+ network: z.ZodEnum<{
668
+ mainnet: "mainnet";
669
+ testnet: "testnet";
670
+ }>;
671
+ address: z.ZodString;
672
+ txid: z.ZodNullable<z.ZodString>;
673
+ confirmations: z.ZodNumber;
674
+ required_confirmations: z.ZodNumber;
675
+ }, z.core.$strict>>;
676
+ merchant_id: z.ZodString;
677
+ 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">>>>;
678
+ application_fee_amount: z.ZodNullable<z.ZodString>;
679
+ transfer_data: z.ZodNullable<z.ZodObject<{
680
+ destination: z.ZodString;
681
+ amount: z.ZodNullable<z.ZodString>;
682
+ }, z.core.$strict>>;
683
+ on_behalf_of: z.ZodNullable<z.ZodString>;
684
+ client_secret: z.ZodString;
685
+ client_action: z.ZodOptional<z.ZodObject<{
686
+ kind: z.ZodEnum<{
687
+ client_secret: "client_secret";
688
+ redirect: "redirect";
689
+ }>;
690
+ value: z.ZodString;
691
+ publishable_key: z.ZodOptional<z.ZodString>;
692
+ }, z.core.$strict>>;
693
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
694
+ expires_at: z.ZodNumber;
695
+ can_expire: z.ZodBoolean;
696
+ created: z.ZodNumber;
697
+ updated_at: z.ZodNumber;
698
+ }, z.core.$strict>;
699
+ readonly status: 201;
700
+ readonly sdk: "paymentIntents.create";
701
+ }, {
702
+ readonly operationId: "listPaymentIntents";
703
+ readonly method: "get";
704
+ readonly path: "/v1/payment_intents";
705
+ readonly tag: "Payment intents";
706
+ readonly summary: "List payment intents";
707
+ readonly auth: "service";
708
+ readonly scope: "payments:read";
709
+ readonly query: z.ZodObject<{
710
+ 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>>;
711
+ starting_after: z.ZodOptional<z.ZodString>;
712
+ ending_before: z.ZodOptional<z.ZodString>;
713
+ 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<{
714
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
715
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
716
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
717
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
718
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
719
+ gt?: number | undefined;
720
+ gte?: number | undefined;
721
+ lt?: number | undefined;
722
+ lte?: number | undefined;
723
+ }>>]>>;
724
+ 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>>>;
725
+ status: z.ZodOptional<z.ZodEnum<{
726
+ succeeded: "succeeded";
727
+ canceled: "canceled";
728
+ requires_payment_method: "requires_payment_method";
729
+ requires_confirmation: "requires_confirmation";
730
+ requires_action: "requires_action";
731
+ processing: "processing";
732
+ requires_capture: "requires_capture";
733
+ }>>;
734
+ connected_account: z.ZodOptional<z.ZodString>;
735
+ customer: z.ZodOptional<z.ZodString>;
736
+ }, z.core.$strict>;
737
+ readonly response: z.ZodObject<{
738
+ object: z.ZodLiteral<"list">;
739
+ data: z.ZodArray<z.ZodObject<{
740
+ id: z.ZodString;
741
+ object: z.ZodLiteral<"payment_intent">;
742
+ livemode: z.ZodBoolean;
743
+ status: z.ZodEnum<{
744
+ succeeded: "succeeded";
745
+ canceled: "canceled";
746
+ requires_payment_method: "requires_payment_method";
747
+ requires_confirmation: "requires_confirmation";
748
+ requires_action: "requires_action";
749
+ processing: "processing";
750
+ requires_capture: "requires_capture";
751
+ }>;
752
+ rail: z.ZodEnum<{
753
+ card: "card";
754
+ faircoin: "faircoin";
755
+ }>;
756
+ payment_method_types: z.ZodArray<z.ZodEnum<{
757
+ card: "card";
758
+ faircoin: "faircoin";
759
+ sepa_debit: "sepa_debit";
760
+ ideal: "ideal";
761
+ bancontact: "bancontact";
762
+ eps: "eps";
763
+ }>>;
764
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
765
+ id: z.ZodString;
766
+ }, z.core.$strict>>;
767
+ amount: z.ZodString;
768
+ amount_capturable: z.ZodString;
769
+ amount_received: z.ZodString;
770
+ amount_refunded: z.ZodString;
771
+ currency: z.ZodEnum<{
772
+ FAIR: "FAIR";
773
+ EUR: "EUR";
774
+ USD: "USD";
775
+ GBP: "GBP";
776
+ CHF: "CHF";
777
+ SEK: "SEK";
778
+ NOK: "NOK";
779
+ DKK: "DKK";
780
+ PLN: "PLN";
781
+ CZK: "CZK";
782
+ CAD: "CAD";
783
+ AUD: "AUD";
784
+ JPY: "JPY";
785
+ }>;
786
+ capture_method: z.ZodEnum<{
787
+ manual: "manual";
788
+ automatic: "automatic";
789
+ }>;
790
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
791
+ off_session: "off_session";
792
+ on_session: "on_session";
793
+ }>>;
794
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
795
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
796
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
797
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
798
+ type: z.ZodLiteral<"faircoin_payment">;
799
+ faircoin_payment: z.ZodObject<{
800
+ address: z.ZodString;
801
+ network: z.ZodEnum<{
802
+ mainnet: "mainnet";
803
+ testnet: "testnet";
804
+ }>;
805
+ amount: z.ZodString;
806
+ currency: z.ZodLiteral<"FAIR">;
807
+ uri: z.ZodString;
808
+ }, z.core.$strict>;
809
+ }, z.core.$strict>, z.ZodObject<{
810
+ type: z.ZodLiteral<"use_peable_sdk">;
811
+ }, z.core.$strict>], "type">>;
812
+ last_payment_error: z.ZodNullable<z.ZodObject<{
813
+ type: z.ZodEnum<{
814
+ api_error: "api_error";
815
+ card_error: "card_error";
816
+ payment_error: "payment_error";
817
+ }>;
818
+ code: z.ZodNullable<z.ZodString>;
819
+ decline_code: z.ZodNullable<z.ZodString>;
820
+ message: z.ZodString;
821
+ }, z.core.$strict>>;
822
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
823
+ duplicate: "duplicate";
824
+ fraudulent: "fraudulent";
825
+ automatic: "automatic";
826
+ abandoned: "abandoned";
827
+ requested_by_customer: "requested_by_customer";
828
+ underpaid: "underpaid";
829
+ }>>;
830
+ canceled_at: z.ZodNullable<z.ZodNumber>;
831
+ description: z.ZodNullable<z.ZodString>;
832
+ receipt_email: z.ZodNullable<z.ZodString>;
833
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
834
+ shipping: z.ZodNullable<z.ZodObject<{
835
+ name: z.ZodString;
836
+ phone: z.ZodNullable<z.ZodString>;
837
+ address: z.ZodObject<{
838
+ line1: z.ZodNullable<z.ZodString>;
839
+ line2: z.ZodNullable<z.ZodString>;
840
+ city: z.ZodNullable<z.ZodString>;
841
+ state: z.ZodNullable<z.ZodString>;
842
+ postal_code: z.ZodNullable<z.ZodString>;
843
+ country: z.ZodNullable<z.ZodString>;
844
+ }, z.core.$strict>;
845
+ carrier: z.ZodNullable<z.ZodString>;
846
+ tracking_number: z.ZodNullable<z.ZodString>;
847
+ }, z.core.$strict>>;
848
+ faircoin: z.ZodNullable<z.ZodObject<{
849
+ network: z.ZodEnum<{
850
+ mainnet: "mainnet";
851
+ testnet: "testnet";
852
+ }>;
853
+ address: z.ZodString;
854
+ txid: z.ZodNullable<z.ZodString>;
855
+ confirmations: z.ZodNumber;
856
+ required_confirmations: z.ZodNumber;
857
+ }, z.core.$strict>>;
858
+ merchant_id: z.ZodString;
859
+ 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">>>>;
860
+ application_fee_amount: z.ZodNullable<z.ZodString>;
861
+ transfer_data: z.ZodNullable<z.ZodObject<{
862
+ destination: z.ZodString;
863
+ amount: z.ZodNullable<z.ZodString>;
864
+ }, z.core.$strict>>;
865
+ on_behalf_of: z.ZodNullable<z.ZodString>;
866
+ client_secret: z.ZodString;
867
+ client_action: z.ZodOptional<z.ZodObject<{
868
+ kind: z.ZodEnum<{
869
+ client_secret: "client_secret";
870
+ redirect: "redirect";
871
+ }>;
872
+ value: z.ZodString;
873
+ publishable_key: z.ZodOptional<z.ZodString>;
874
+ }, z.core.$strict>>;
875
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
876
+ expires_at: z.ZodNumber;
877
+ can_expire: z.ZodBoolean;
878
+ created: z.ZodNumber;
879
+ updated_at: z.ZodNumber;
880
+ }, z.core.$strict>>;
881
+ has_more: z.ZodBoolean;
882
+ url: z.ZodString;
883
+ }, z.core.$strict>;
884
+ readonly sdk: "paymentIntents.list";
885
+ readonly expandable: "payment_intent";
886
+ }, {
887
+ readonly operationId: "retrievePaymentIntent";
888
+ readonly method: "get";
889
+ readonly path: "/v1/payment_intents/{id}";
890
+ readonly tag: "Payment intents";
891
+ readonly summary: "Retrieve a payment intent";
892
+ readonly description: "With the merchant credential: the intent, expandable, and — for a card payment that can still be paid — its `client_action` (`Cache-Control: no-store`). Without one, the PAYER reads it with the intent's `client_secret` (the `X-Peable-Client-Secret` header, or the query): no expansion and no client action.";
893
+ readonly auth: "service";
894
+ readonly scope: "payments:read";
895
+ readonly params: {
896
+ id: string;
897
+ };
898
+ readonly query: z.ZodObject<{
899
+ 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>>>;
900
+ client_secret: z.ZodOptional<z.ZodString>;
901
+ }, z.core.$strict>;
902
+ readonly response: z.ZodObject<{
903
+ id: z.ZodString;
904
+ object: z.ZodLiteral<"payment_intent">;
905
+ livemode: z.ZodBoolean;
906
+ status: z.ZodEnum<{
907
+ succeeded: "succeeded";
908
+ canceled: "canceled";
909
+ requires_payment_method: "requires_payment_method";
910
+ requires_confirmation: "requires_confirmation";
911
+ requires_action: "requires_action";
912
+ processing: "processing";
913
+ requires_capture: "requires_capture";
914
+ }>;
915
+ rail: z.ZodEnum<{
916
+ card: "card";
917
+ faircoin: "faircoin";
918
+ }>;
919
+ payment_method_types: z.ZodArray<z.ZodEnum<{
920
+ card: "card";
921
+ faircoin: "faircoin";
922
+ sepa_debit: "sepa_debit";
923
+ ideal: "ideal";
924
+ bancontact: "bancontact";
925
+ eps: "eps";
926
+ }>>;
927
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
928
+ id: z.ZodString;
929
+ }, z.core.$strict>>;
930
+ amount: z.ZodString;
931
+ amount_capturable: z.ZodString;
932
+ amount_received: z.ZodString;
933
+ amount_refunded: z.ZodString;
934
+ currency: z.ZodEnum<{
935
+ FAIR: "FAIR";
936
+ EUR: "EUR";
937
+ USD: "USD";
938
+ GBP: "GBP";
939
+ CHF: "CHF";
940
+ SEK: "SEK";
941
+ NOK: "NOK";
942
+ DKK: "DKK";
943
+ PLN: "PLN";
944
+ CZK: "CZK";
945
+ CAD: "CAD";
946
+ AUD: "AUD";
947
+ JPY: "JPY";
948
+ }>;
949
+ capture_method: z.ZodEnum<{
950
+ manual: "manual";
951
+ automatic: "automatic";
952
+ }>;
953
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
954
+ off_session: "off_session";
955
+ on_session: "on_session";
956
+ }>>;
957
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
958
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
959
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
960
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
961
+ type: z.ZodLiteral<"faircoin_payment">;
962
+ faircoin_payment: z.ZodObject<{
963
+ address: z.ZodString;
964
+ network: z.ZodEnum<{
965
+ mainnet: "mainnet";
966
+ testnet: "testnet";
967
+ }>;
968
+ amount: z.ZodString;
969
+ currency: z.ZodLiteral<"FAIR">;
970
+ uri: z.ZodString;
971
+ }, z.core.$strict>;
972
+ }, z.core.$strict>, z.ZodObject<{
973
+ type: z.ZodLiteral<"use_peable_sdk">;
974
+ }, z.core.$strict>], "type">>;
975
+ last_payment_error: z.ZodNullable<z.ZodObject<{
976
+ type: z.ZodEnum<{
977
+ api_error: "api_error";
978
+ card_error: "card_error";
979
+ payment_error: "payment_error";
980
+ }>;
981
+ code: z.ZodNullable<z.ZodString>;
982
+ decline_code: z.ZodNullable<z.ZodString>;
983
+ message: z.ZodString;
984
+ }, z.core.$strict>>;
985
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
986
+ duplicate: "duplicate";
987
+ fraudulent: "fraudulent";
988
+ automatic: "automatic";
989
+ abandoned: "abandoned";
990
+ requested_by_customer: "requested_by_customer";
991
+ underpaid: "underpaid";
992
+ }>>;
993
+ canceled_at: z.ZodNullable<z.ZodNumber>;
994
+ description: z.ZodNullable<z.ZodString>;
995
+ receipt_email: z.ZodNullable<z.ZodString>;
996
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
997
+ shipping: z.ZodNullable<z.ZodObject<{
998
+ name: z.ZodString;
999
+ phone: z.ZodNullable<z.ZodString>;
1000
+ address: z.ZodObject<{
1001
+ line1: z.ZodNullable<z.ZodString>;
1002
+ line2: z.ZodNullable<z.ZodString>;
1003
+ city: z.ZodNullable<z.ZodString>;
1004
+ state: z.ZodNullable<z.ZodString>;
1005
+ postal_code: z.ZodNullable<z.ZodString>;
1006
+ country: z.ZodNullable<z.ZodString>;
1007
+ }, z.core.$strict>;
1008
+ carrier: z.ZodNullable<z.ZodString>;
1009
+ tracking_number: z.ZodNullable<z.ZodString>;
1010
+ }, z.core.$strict>>;
1011
+ faircoin: z.ZodNullable<z.ZodObject<{
1012
+ network: z.ZodEnum<{
1013
+ mainnet: "mainnet";
1014
+ testnet: "testnet";
1015
+ }>;
1016
+ address: z.ZodString;
1017
+ txid: z.ZodNullable<z.ZodString>;
1018
+ confirmations: z.ZodNumber;
1019
+ required_confirmations: z.ZodNumber;
1020
+ }, z.core.$strict>>;
1021
+ merchant_id: z.ZodString;
1022
+ 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">>>>;
1023
+ application_fee_amount: z.ZodNullable<z.ZodString>;
1024
+ transfer_data: z.ZodNullable<z.ZodObject<{
1025
+ destination: z.ZodString;
1026
+ amount: z.ZodNullable<z.ZodString>;
1027
+ }, z.core.$strict>>;
1028
+ on_behalf_of: z.ZodNullable<z.ZodString>;
1029
+ client_secret: z.ZodString;
1030
+ client_action: z.ZodOptional<z.ZodObject<{
1031
+ kind: z.ZodEnum<{
1032
+ client_secret: "client_secret";
1033
+ redirect: "redirect";
1034
+ }>;
1035
+ value: z.ZodString;
1036
+ publishable_key: z.ZodOptional<z.ZodString>;
1037
+ }, z.core.$strict>>;
1038
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1039
+ expires_at: z.ZodNumber;
1040
+ can_expire: z.ZodBoolean;
1041
+ created: z.ZodNumber;
1042
+ updated_at: z.ZodNumber;
1043
+ }, z.core.$strict>;
1044
+ readonly sdk: "paymentIntents.retrieve";
1045
+ readonly expandable: "payment_intent";
1046
+ }, {
1047
+ readonly operationId: "updatePaymentIntent";
1048
+ readonly method: "post";
1049
+ readonly path: "/v1/payment_intents/{id}";
1050
+ readonly tag: "Payment intents";
1051
+ readonly summary: "Update a payment intent";
1052
+ readonly description: "The merchant's own fields only: `metadata` (a patch), `description`, `receipt_email`, `shipping` (`\"\"` clears). Sends no webhook.";
1053
+ readonly auth: "service";
1054
+ readonly scope: "payments:write";
1055
+ readonly idempotent: true;
1056
+ readonly params: {
1057
+ id: string;
1058
+ };
1059
+ readonly body: z.ZodObject<{
1060
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
1061
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
1062
+ receipt_email: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>>;
1063
+ shipping: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1064
+ name: z.ZodString;
1065
+ phone: z.ZodOptional<z.ZodString>;
1066
+ address: z.ZodObject<{
1067
+ line1: z.ZodOptional<z.ZodString>;
1068
+ line2: z.ZodOptional<z.ZodString>;
1069
+ city: z.ZodOptional<z.ZodString>;
1070
+ state: z.ZodOptional<z.ZodString>;
1071
+ postal_code: z.ZodOptional<z.ZodString>;
1072
+ country: z.ZodOptional<z.ZodString>;
1073
+ }, z.core.$strict>;
1074
+ carrier: z.ZodOptional<z.ZodString>;
1075
+ tracking_number: z.ZodOptional<z.ZodString>;
1076
+ }, z.core.$strict>, z.ZodLiteral<"">]>>;
1077
+ 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>>>;
1078
+ }, z.core.$strict>;
1079
+ readonly response: z.ZodObject<{
1080
+ id: z.ZodString;
1081
+ object: z.ZodLiteral<"payment_intent">;
1082
+ livemode: z.ZodBoolean;
1083
+ status: z.ZodEnum<{
1084
+ succeeded: "succeeded";
1085
+ canceled: "canceled";
1086
+ requires_payment_method: "requires_payment_method";
1087
+ requires_confirmation: "requires_confirmation";
1088
+ requires_action: "requires_action";
1089
+ processing: "processing";
1090
+ requires_capture: "requires_capture";
1091
+ }>;
1092
+ rail: z.ZodEnum<{
1093
+ card: "card";
1094
+ faircoin: "faircoin";
1095
+ }>;
1096
+ payment_method_types: z.ZodArray<z.ZodEnum<{
1097
+ card: "card";
1098
+ faircoin: "faircoin";
1099
+ sepa_debit: "sepa_debit";
1100
+ ideal: "ideal";
1101
+ bancontact: "bancontact";
1102
+ eps: "eps";
1103
+ }>>;
1104
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ }, z.core.$strict>>;
1107
+ amount: z.ZodString;
1108
+ amount_capturable: z.ZodString;
1109
+ amount_received: z.ZodString;
1110
+ amount_refunded: z.ZodString;
1111
+ currency: z.ZodEnum<{
1112
+ FAIR: "FAIR";
1113
+ EUR: "EUR";
1114
+ USD: "USD";
1115
+ GBP: "GBP";
1116
+ CHF: "CHF";
1117
+ SEK: "SEK";
1118
+ NOK: "NOK";
1119
+ DKK: "DKK";
1120
+ PLN: "PLN";
1121
+ CZK: "CZK";
1122
+ CAD: "CAD";
1123
+ AUD: "AUD";
1124
+ JPY: "JPY";
1125
+ }>;
1126
+ capture_method: z.ZodEnum<{
1127
+ manual: "manual";
1128
+ automatic: "automatic";
1129
+ }>;
1130
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
1131
+ off_session: "off_session";
1132
+ on_session: "on_session";
1133
+ }>>;
1134
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1135
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
1136
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
1137
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1138
+ type: z.ZodLiteral<"faircoin_payment">;
1139
+ faircoin_payment: z.ZodObject<{
1140
+ address: z.ZodString;
1141
+ network: z.ZodEnum<{
1142
+ mainnet: "mainnet";
1143
+ testnet: "testnet";
1144
+ }>;
1145
+ amount: z.ZodString;
1146
+ currency: z.ZodLiteral<"FAIR">;
1147
+ uri: z.ZodString;
1148
+ }, z.core.$strict>;
1149
+ }, z.core.$strict>, z.ZodObject<{
1150
+ type: z.ZodLiteral<"use_peable_sdk">;
1151
+ }, z.core.$strict>], "type">>;
1152
+ last_payment_error: z.ZodNullable<z.ZodObject<{
1153
+ type: z.ZodEnum<{
1154
+ api_error: "api_error";
1155
+ card_error: "card_error";
1156
+ payment_error: "payment_error";
1157
+ }>;
1158
+ code: z.ZodNullable<z.ZodString>;
1159
+ decline_code: z.ZodNullable<z.ZodString>;
1160
+ message: z.ZodString;
1161
+ }, z.core.$strict>>;
1162
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
1163
+ duplicate: "duplicate";
1164
+ fraudulent: "fraudulent";
1165
+ automatic: "automatic";
1166
+ abandoned: "abandoned";
1167
+ requested_by_customer: "requested_by_customer";
1168
+ underpaid: "underpaid";
1169
+ }>>;
1170
+ canceled_at: z.ZodNullable<z.ZodNumber>;
1171
+ description: z.ZodNullable<z.ZodString>;
1172
+ receipt_email: z.ZodNullable<z.ZodString>;
1173
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
1174
+ shipping: z.ZodNullable<z.ZodObject<{
1175
+ name: z.ZodString;
1176
+ phone: z.ZodNullable<z.ZodString>;
1177
+ address: z.ZodObject<{
1178
+ line1: z.ZodNullable<z.ZodString>;
1179
+ line2: z.ZodNullable<z.ZodString>;
1180
+ city: z.ZodNullable<z.ZodString>;
1181
+ state: z.ZodNullable<z.ZodString>;
1182
+ postal_code: z.ZodNullable<z.ZodString>;
1183
+ country: z.ZodNullable<z.ZodString>;
1184
+ }, z.core.$strict>;
1185
+ carrier: z.ZodNullable<z.ZodString>;
1186
+ tracking_number: z.ZodNullable<z.ZodString>;
1187
+ }, z.core.$strict>>;
1188
+ faircoin: z.ZodNullable<z.ZodObject<{
1189
+ network: z.ZodEnum<{
1190
+ mainnet: "mainnet";
1191
+ testnet: "testnet";
1192
+ }>;
1193
+ address: z.ZodString;
1194
+ txid: z.ZodNullable<z.ZodString>;
1195
+ confirmations: z.ZodNumber;
1196
+ required_confirmations: z.ZodNumber;
1197
+ }, z.core.$strict>>;
1198
+ merchant_id: z.ZodString;
1199
+ 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">>>>;
1200
+ application_fee_amount: z.ZodNullable<z.ZodString>;
1201
+ transfer_data: z.ZodNullable<z.ZodObject<{
1202
+ destination: z.ZodString;
1203
+ amount: z.ZodNullable<z.ZodString>;
1204
+ }, z.core.$strict>>;
1205
+ on_behalf_of: z.ZodNullable<z.ZodString>;
1206
+ client_secret: z.ZodString;
1207
+ client_action: z.ZodOptional<z.ZodObject<{
1208
+ kind: z.ZodEnum<{
1209
+ client_secret: "client_secret";
1210
+ redirect: "redirect";
1211
+ }>;
1212
+ value: z.ZodString;
1213
+ publishable_key: z.ZodOptional<z.ZodString>;
1214
+ }, z.core.$strict>>;
1215
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1216
+ expires_at: z.ZodNumber;
1217
+ can_expire: z.ZodBoolean;
1218
+ created: z.ZodNumber;
1219
+ updated_at: z.ZodNumber;
1220
+ }, z.core.$strict>;
1221
+ readonly sdk: "paymentIntents.update";
1222
+ readonly expandable: "payment_intent";
1223
+ }, {
1224
+ readonly operationId: "retrievePaymentIntentClientAction";
1225
+ readonly method: "post";
1226
+ readonly path: "/v1/payment_intents/{id}/client_action";
1227
+ readonly tag: "Payment intents";
1228
+ readonly summary: "Retrieve a card payment's client action";
1229
+ readonly description: "What the payer's client must do next, to RESUME a card payment rather than create a second one. The merchant credential, or the payer's `client_secret` (`X-Peable-Client-Secret`). A POST so the credential never reaches a URL; answered `Cache-Control: no-store`. A FairCoin payment is a 400 (it is paid by sending coins to `next_action.faircoin_payment.address`); a payment that can no longer be paid is a 409.";
1230
+ readonly auth: "service";
1231
+ readonly scope: "payments:read";
1232
+ readonly params: {
1233
+ id: string;
1234
+ };
1235
+ readonly query: z.ZodObject<{
1236
+ client_secret: z.ZodOptional<z.ZodString>;
1237
+ }, z.core.$strict>;
1238
+ readonly response: z.ZodObject<{
1239
+ kind: z.ZodEnum<{
1240
+ client_secret: "client_secret";
1241
+ redirect: "redirect";
1242
+ }>;
1243
+ value: z.ZodString;
1244
+ publishable_key: z.ZodOptional<z.ZodString>;
1245
+ object: z.ZodLiteral<"client_action">;
1246
+ }, z.core.$strict>;
1247
+ readonly sdk: "paymentIntents.clientAction";
1248
+ }, {
1249
+ readonly operationId: "confirmPaymentIntent";
1250
+ readonly method: "post";
1251
+ readonly path: "/v1/payment_intents/{id}/confirm";
1252
+ readonly tag: "Payment intents";
1253
+ readonly summary: "Confirm a payment intent";
1254
+ readonly description: "Card only: confirm server-side with a saved payment method attached to the intent's customer. A decline answers 402 `card_error` carrying the intent; a challenge answers `status: 'requires_action'` with `next_action: use_peable_sdk`.";
1255
+ readonly auth: "service";
1256
+ readonly scope: "payments:write";
1257
+ readonly idempotent: true;
1258
+ readonly params: {
1259
+ id: string;
1260
+ };
1261
+ readonly body: z.ZodObject<{
1262
+ payment_method: z.ZodOptional<z.ZodString>;
1263
+ off_session: z.ZodOptional<z.ZodBoolean>;
1264
+ setup_future_usage: z.ZodOptional<z.ZodEnum<{
1265
+ off_session: "off_session";
1266
+ on_session: "on_session";
1267
+ }>>;
1268
+ return_url: z.ZodOptional<z.ZodString>;
1269
+ receipt_email: z.ZodOptional<z.ZodEmail>;
1270
+ shipping: z.ZodOptional<z.ZodObject<{
1271
+ name: z.ZodString;
1272
+ phone: z.ZodOptional<z.ZodString>;
1273
+ address: z.ZodObject<{
1274
+ line1: z.ZodOptional<z.ZodString>;
1275
+ line2: z.ZodOptional<z.ZodString>;
1276
+ city: z.ZodOptional<z.ZodString>;
1277
+ state: z.ZodOptional<z.ZodString>;
1278
+ postal_code: z.ZodOptional<z.ZodString>;
1279
+ country: z.ZodOptional<z.ZodString>;
1280
+ }, z.core.$strict>;
1281
+ carrier: z.ZodOptional<z.ZodString>;
1282
+ tracking_number: z.ZodOptional<z.ZodString>;
1283
+ }, z.core.$strict>>;
1284
+ 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>>>;
1285
+ }, z.core.$strict>;
1286
+ readonly response: z.ZodObject<{
1287
+ id: z.ZodString;
1288
+ object: z.ZodLiteral<"payment_intent">;
1289
+ livemode: z.ZodBoolean;
1290
+ status: z.ZodEnum<{
1291
+ succeeded: "succeeded";
1292
+ canceled: "canceled";
1293
+ requires_payment_method: "requires_payment_method";
1294
+ requires_confirmation: "requires_confirmation";
1295
+ requires_action: "requires_action";
1296
+ processing: "processing";
1297
+ requires_capture: "requires_capture";
1298
+ }>;
1299
+ rail: z.ZodEnum<{
1300
+ card: "card";
1301
+ faircoin: "faircoin";
1302
+ }>;
1303
+ payment_method_types: z.ZodArray<z.ZodEnum<{
1304
+ card: "card";
1305
+ faircoin: "faircoin";
1306
+ sepa_debit: "sepa_debit";
1307
+ ideal: "ideal";
1308
+ bancontact: "bancontact";
1309
+ eps: "eps";
1310
+ }>>;
1311
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
1312
+ id: z.ZodString;
1313
+ }, z.core.$strict>>;
1314
+ amount: z.ZodString;
1315
+ amount_capturable: z.ZodString;
1316
+ amount_received: z.ZodString;
1317
+ amount_refunded: z.ZodString;
1318
+ currency: z.ZodEnum<{
1319
+ FAIR: "FAIR";
1320
+ EUR: "EUR";
1321
+ USD: "USD";
1322
+ GBP: "GBP";
1323
+ CHF: "CHF";
1324
+ SEK: "SEK";
1325
+ NOK: "NOK";
1326
+ DKK: "DKK";
1327
+ PLN: "PLN";
1328
+ CZK: "CZK";
1329
+ CAD: "CAD";
1330
+ AUD: "AUD";
1331
+ JPY: "JPY";
1332
+ }>;
1333
+ capture_method: z.ZodEnum<{
1334
+ manual: "manual";
1335
+ automatic: "automatic";
1336
+ }>;
1337
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
1338
+ off_session: "off_session";
1339
+ on_session: "on_session";
1340
+ }>>;
1341
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1342
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
1343
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
1344
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1345
+ type: z.ZodLiteral<"faircoin_payment">;
1346
+ faircoin_payment: z.ZodObject<{
1347
+ address: z.ZodString;
1348
+ network: z.ZodEnum<{
1349
+ mainnet: "mainnet";
1350
+ testnet: "testnet";
1351
+ }>;
1352
+ amount: z.ZodString;
1353
+ currency: z.ZodLiteral<"FAIR">;
1354
+ uri: z.ZodString;
1355
+ }, z.core.$strict>;
1356
+ }, z.core.$strict>, z.ZodObject<{
1357
+ type: z.ZodLiteral<"use_peable_sdk">;
1358
+ }, z.core.$strict>], "type">>;
1359
+ last_payment_error: z.ZodNullable<z.ZodObject<{
1360
+ type: z.ZodEnum<{
1361
+ api_error: "api_error";
1362
+ card_error: "card_error";
1363
+ payment_error: "payment_error";
1364
+ }>;
1365
+ code: z.ZodNullable<z.ZodString>;
1366
+ decline_code: z.ZodNullable<z.ZodString>;
1367
+ message: z.ZodString;
1368
+ }, z.core.$strict>>;
1369
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
1370
+ duplicate: "duplicate";
1371
+ fraudulent: "fraudulent";
1372
+ automatic: "automatic";
1373
+ abandoned: "abandoned";
1374
+ requested_by_customer: "requested_by_customer";
1375
+ underpaid: "underpaid";
1376
+ }>>;
1377
+ canceled_at: z.ZodNullable<z.ZodNumber>;
1378
+ description: z.ZodNullable<z.ZodString>;
1379
+ receipt_email: z.ZodNullable<z.ZodString>;
1380
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
1381
+ shipping: z.ZodNullable<z.ZodObject<{
1382
+ name: z.ZodString;
1383
+ phone: z.ZodNullable<z.ZodString>;
1384
+ address: z.ZodObject<{
1385
+ line1: z.ZodNullable<z.ZodString>;
1386
+ line2: z.ZodNullable<z.ZodString>;
1387
+ city: z.ZodNullable<z.ZodString>;
1388
+ state: z.ZodNullable<z.ZodString>;
1389
+ postal_code: z.ZodNullable<z.ZodString>;
1390
+ country: z.ZodNullable<z.ZodString>;
1391
+ }, z.core.$strict>;
1392
+ carrier: z.ZodNullable<z.ZodString>;
1393
+ tracking_number: z.ZodNullable<z.ZodString>;
1394
+ }, z.core.$strict>>;
1395
+ faircoin: z.ZodNullable<z.ZodObject<{
1396
+ network: z.ZodEnum<{
1397
+ mainnet: "mainnet";
1398
+ testnet: "testnet";
1399
+ }>;
1400
+ address: z.ZodString;
1401
+ txid: z.ZodNullable<z.ZodString>;
1402
+ confirmations: z.ZodNumber;
1403
+ required_confirmations: z.ZodNumber;
1404
+ }, z.core.$strict>>;
1405
+ merchant_id: z.ZodString;
1406
+ 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">>>>;
1407
+ application_fee_amount: z.ZodNullable<z.ZodString>;
1408
+ transfer_data: z.ZodNullable<z.ZodObject<{
1409
+ destination: z.ZodString;
1410
+ amount: z.ZodNullable<z.ZodString>;
1411
+ }, z.core.$strict>>;
1412
+ on_behalf_of: z.ZodNullable<z.ZodString>;
1413
+ client_secret: z.ZodString;
1414
+ client_action: z.ZodOptional<z.ZodObject<{
1415
+ kind: z.ZodEnum<{
1416
+ client_secret: "client_secret";
1417
+ redirect: "redirect";
1418
+ }>;
1419
+ value: z.ZodString;
1420
+ publishable_key: z.ZodOptional<z.ZodString>;
1421
+ }, z.core.$strict>>;
1422
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1423
+ expires_at: z.ZodNumber;
1424
+ can_expire: z.ZodBoolean;
1425
+ created: z.ZodNumber;
1426
+ updated_at: z.ZodNumber;
1427
+ }, z.core.$strict>;
1428
+ readonly sdk: "paymentIntents.confirm";
1429
+ readonly expandable: "payment_intent";
1430
+ }, {
1431
+ readonly operationId: "capturePaymentIntent";
1432
+ readonly method: "post";
1433
+ readonly path: "/v1/payment_intents/{id}/capture";
1434
+ readonly tag: "Payment intents";
1435
+ readonly summary: "Capture a payment intent";
1436
+ readonly description: "Card only, `requires_capture`: capture the held authorization in full, or `amount_to_capture` of it (the rest is released).";
1437
+ readonly auth: "service";
1438
+ readonly scope: "payments:write";
1439
+ readonly idempotent: true;
1440
+ readonly params: {
1441
+ id: string;
1442
+ };
1443
+ readonly body: z.ZodObject<{
1444
+ amount_to_capture: z.ZodOptional<z.ZodString>;
1445
+ 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>>>;
1446
+ }, z.core.$strict>;
1447
+ readonly response: z.ZodObject<{
1448
+ id: z.ZodString;
1449
+ object: z.ZodLiteral<"payment_intent">;
1450
+ livemode: z.ZodBoolean;
1451
+ status: z.ZodEnum<{
1452
+ succeeded: "succeeded";
1453
+ canceled: "canceled";
1454
+ requires_payment_method: "requires_payment_method";
1455
+ requires_confirmation: "requires_confirmation";
1456
+ requires_action: "requires_action";
1457
+ processing: "processing";
1458
+ requires_capture: "requires_capture";
1459
+ }>;
1460
+ rail: z.ZodEnum<{
1461
+ card: "card";
1462
+ faircoin: "faircoin";
1463
+ }>;
1464
+ payment_method_types: z.ZodArray<z.ZodEnum<{
1465
+ card: "card";
1466
+ faircoin: "faircoin";
1467
+ sepa_debit: "sepa_debit";
1468
+ ideal: "ideal";
1469
+ bancontact: "bancontact";
1470
+ eps: "eps";
1471
+ }>>;
1472
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
1473
+ id: z.ZodString;
1474
+ }, z.core.$strict>>;
1475
+ amount: z.ZodString;
1476
+ amount_capturable: z.ZodString;
1477
+ amount_received: z.ZodString;
1478
+ amount_refunded: z.ZodString;
1479
+ currency: z.ZodEnum<{
1480
+ FAIR: "FAIR";
1481
+ EUR: "EUR";
1482
+ USD: "USD";
1483
+ GBP: "GBP";
1484
+ CHF: "CHF";
1485
+ SEK: "SEK";
1486
+ NOK: "NOK";
1487
+ DKK: "DKK";
1488
+ PLN: "PLN";
1489
+ CZK: "CZK";
1490
+ CAD: "CAD";
1491
+ AUD: "AUD";
1492
+ JPY: "JPY";
1493
+ }>;
1494
+ capture_method: z.ZodEnum<{
1495
+ manual: "manual";
1496
+ automatic: "automatic";
1497
+ }>;
1498
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
1499
+ off_session: "off_session";
1500
+ on_session: "on_session";
1501
+ }>>;
1502
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1503
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
1504
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
1505
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1506
+ type: z.ZodLiteral<"faircoin_payment">;
1507
+ faircoin_payment: z.ZodObject<{
1508
+ address: z.ZodString;
1509
+ network: z.ZodEnum<{
1510
+ mainnet: "mainnet";
1511
+ testnet: "testnet";
1512
+ }>;
1513
+ amount: z.ZodString;
1514
+ currency: z.ZodLiteral<"FAIR">;
1515
+ uri: z.ZodString;
1516
+ }, z.core.$strict>;
1517
+ }, z.core.$strict>, z.ZodObject<{
1518
+ type: z.ZodLiteral<"use_peable_sdk">;
1519
+ }, z.core.$strict>], "type">>;
1520
+ last_payment_error: z.ZodNullable<z.ZodObject<{
1521
+ type: z.ZodEnum<{
1522
+ api_error: "api_error";
1523
+ card_error: "card_error";
1524
+ payment_error: "payment_error";
1525
+ }>;
1526
+ code: z.ZodNullable<z.ZodString>;
1527
+ decline_code: z.ZodNullable<z.ZodString>;
1528
+ message: z.ZodString;
1529
+ }, z.core.$strict>>;
1530
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
1531
+ duplicate: "duplicate";
1532
+ fraudulent: "fraudulent";
1533
+ automatic: "automatic";
1534
+ abandoned: "abandoned";
1535
+ requested_by_customer: "requested_by_customer";
1536
+ underpaid: "underpaid";
1537
+ }>>;
1538
+ canceled_at: z.ZodNullable<z.ZodNumber>;
1539
+ description: z.ZodNullable<z.ZodString>;
1540
+ receipt_email: z.ZodNullable<z.ZodString>;
1541
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
1542
+ shipping: z.ZodNullable<z.ZodObject<{
1543
+ name: z.ZodString;
1544
+ phone: z.ZodNullable<z.ZodString>;
1545
+ address: z.ZodObject<{
1546
+ line1: z.ZodNullable<z.ZodString>;
1547
+ line2: z.ZodNullable<z.ZodString>;
1548
+ city: z.ZodNullable<z.ZodString>;
1549
+ state: z.ZodNullable<z.ZodString>;
1550
+ postal_code: z.ZodNullable<z.ZodString>;
1551
+ country: z.ZodNullable<z.ZodString>;
1552
+ }, z.core.$strict>;
1553
+ carrier: z.ZodNullable<z.ZodString>;
1554
+ tracking_number: z.ZodNullable<z.ZodString>;
1555
+ }, z.core.$strict>>;
1556
+ faircoin: z.ZodNullable<z.ZodObject<{
1557
+ network: z.ZodEnum<{
1558
+ mainnet: "mainnet";
1559
+ testnet: "testnet";
1560
+ }>;
1561
+ address: z.ZodString;
1562
+ txid: z.ZodNullable<z.ZodString>;
1563
+ confirmations: z.ZodNumber;
1564
+ required_confirmations: z.ZodNumber;
1565
+ }, z.core.$strict>>;
1566
+ merchant_id: z.ZodString;
1567
+ 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">>>>;
1568
+ application_fee_amount: z.ZodNullable<z.ZodString>;
1569
+ transfer_data: z.ZodNullable<z.ZodObject<{
1570
+ destination: z.ZodString;
1571
+ amount: z.ZodNullable<z.ZodString>;
1572
+ }, z.core.$strict>>;
1573
+ on_behalf_of: z.ZodNullable<z.ZodString>;
1574
+ client_secret: z.ZodString;
1575
+ client_action: z.ZodOptional<z.ZodObject<{
1576
+ kind: z.ZodEnum<{
1577
+ client_secret: "client_secret";
1578
+ redirect: "redirect";
1579
+ }>;
1580
+ value: z.ZodString;
1581
+ publishable_key: z.ZodOptional<z.ZodString>;
1582
+ }, z.core.$strict>>;
1583
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1584
+ expires_at: z.ZodNumber;
1585
+ can_expire: z.ZodBoolean;
1586
+ created: z.ZodNumber;
1587
+ updated_at: z.ZodNumber;
1588
+ }, z.core.$strict>;
1589
+ readonly sdk: "paymentIntents.capture";
1590
+ readonly expandable: "payment_intent";
1591
+ }, {
1592
+ readonly operationId: "cancelPaymentIntent";
1593
+ readonly method: "post";
1594
+ readonly path: "/v1/payment_intents/{id}/cancel";
1595
+ readonly tag: "Payment intents";
1596
+ readonly summary: "Cancel a payment intent";
1597
+ readonly description: "While nothing is moving money: `requires_payment_method`, `requires_confirmation`, `requires_action`, or a held authorization (`requires_capture`, released). The card payment is cancelled at the provider first. Cancelling a cancelled intent answers it again.";
1598
+ readonly auth: "service";
1599
+ readonly scope: "payments:write";
1600
+ readonly idempotent: true;
1601
+ readonly params: {
1602
+ id: string;
1603
+ };
1604
+ readonly body: z.ZodObject<{
1605
+ cancellation_reason: z.ZodOptional<z.ZodEnum<{
1606
+ duplicate: "duplicate";
1607
+ fraudulent: "fraudulent";
1608
+ abandoned: "abandoned";
1609
+ requested_by_customer: "requested_by_customer";
1610
+ }>>;
1611
+ 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>>>;
1612
+ }, z.core.$strict>;
1613
+ readonly response: z.ZodObject<{
1614
+ id: z.ZodString;
1615
+ object: z.ZodLiteral<"payment_intent">;
1616
+ livemode: z.ZodBoolean;
1617
+ status: z.ZodEnum<{
1618
+ succeeded: "succeeded";
1619
+ canceled: "canceled";
1620
+ requires_payment_method: "requires_payment_method";
1621
+ requires_confirmation: "requires_confirmation";
1622
+ requires_action: "requires_action";
1623
+ processing: "processing";
1624
+ requires_capture: "requires_capture";
1625
+ }>;
1626
+ rail: z.ZodEnum<{
1627
+ card: "card";
1628
+ faircoin: "faircoin";
1629
+ }>;
1630
+ payment_method_types: z.ZodArray<z.ZodEnum<{
1631
+ card: "card";
1632
+ faircoin: "faircoin";
1633
+ sepa_debit: "sepa_debit";
1634
+ ideal: "ideal";
1635
+ bancontact: "bancontact";
1636
+ eps: "eps";
1637
+ }>>;
1638
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
1639
+ id: z.ZodString;
1640
+ }, z.core.$strict>>;
1641
+ amount: z.ZodString;
1642
+ amount_capturable: z.ZodString;
1643
+ amount_received: z.ZodString;
1644
+ amount_refunded: z.ZodString;
1645
+ currency: z.ZodEnum<{
1646
+ FAIR: "FAIR";
1647
+ EUR: "EUR";
1648
+ USD: "USD";
1649
+ GBP: "GBP";
1650
+ CHF: "CHF";
1651
+ SEK: "SEK";
1652
+ NOK: "NOK";
1653
+ DKK: "DKK";
1654
+ PLN: "PLN";
1655
+ CZK: "CZK";
1656
+ CAD: "CAD";
1657
+ AUD: "AUD";
1658
+ JPY: "JPY";
1659
+ }>;
1660
+ capture_method: z.ZodEnum<{
1661
+ manual: "manual";
1662
+ automatic: "automatic";
1663
+ }>;
1664
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
1665
+ off_session: "off_session";
1666
+ on_session: "on_session";
1667
+ }>>;
1668
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1669
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
1670
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
1671
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1672
+ type: z.ZodLiteral<"faircoin_payment">;
1673
+ faircoin_payment: z.ZodObject<{
1674
+ address: z.ZodString;
1675
+ network: z.ZodEnum<{
1676
+ mainnet: "mainnet";
1677
+ testnet: "testnet";
1678
+ }>;
1679
+ amount: z.ZodString;
1680
+ currency: z.ZodLiteral<"FAIR">;
1681
+ uri: z.ZodString;
1682
+ }, z.core.$strict>;
1683
+ }, z.core.$strict>, z.ZodObject<{
1684
+ type: z.ZodLiteral<"use_peable_sdk">;
1685
+ }, z.core.$strict>], "type">>;
1686
+ last_payment_error: z.ZodNullable<z.ZodObject<{
1687
+ type: z.ZodEnum<{
1688
+ api_error: "api_error";
1689
+ card_error: "card_error";
1690
+ payment_error: "payment_error";
1691
+ }>;
1692
+ code: z.ZodNullable<z.ZodString>;
1693
+ decline_code: z.ZodNullable<z.ZodString>;
1694
+ message: z.ZodString;
1695
+ }, z.core.$strict>>;
1696
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
1697
+ duplicate: "duplicate";
1698
+ fraudulent: "fraudulent";
1699
+ automatic: "automatic";
1700
+ abandoned: "abandoned";
1701
+ requested_by_customer: "requested_by_customer";
1702
+ underpaid: "underpaid";
1703
+ }>>;
1704
+ canceled_at: z.ZodNullable<z.ZodNumber>;
1705
+ description: z.ZodNullable<z.ZodString>;
1706
+ receipt_email: z.ZodNullable<z.ZodString>;
1707
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
1708
+ shipping: z.ZodNullable<z.ZodObject<{
1709
+ name: z.ZodString;
1710
+ phone: z.ZodNullable<z.ZodString>;
1711
+ address: z.ZodObject<{
1712
+ line1: z.ZodNullable<z.ZodString>;
1713
+ line2: z.ZodNullable<z.ZodString>;
1714
+ city: z.ZodNullable<z.ZodString>;
1715
+ state: z.ZodNullable<z.ZodString>;
1716
+ postal_code: z.ZodNullable<z.ZodString>;
1717
+ country: z.ZodNullable<z.ZodString>;
1718
+ }, z.core.$strict>;
1719
+ carrier: z.ZodNullable<z.ZodString>;
1720
+ tracking_number: z.ZodNullable<z.ZodString>;
1721
+ }, z.core.$strict>>;
1722
+ faircoin: z.ZodNullable<z.ZodObject<{
1723
+ network: z.ZodEnum<{
1724
+ mainnet: "mainnet";
1725
+ testnet: "testnet";
1726
+ }>;
1727
+ address: z.ZodString;
1728
+ txid: z.ZodNullable<z.ZodString>;
1729
+ confirmations: z.ZodNumber;
1730
+ required_confirmations: z.ZodNumber;
1731
+ }, z.core.$strict>>;
1732
+ merchant_id: z.ZodString;
1733
+ 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">>>>;
1734
+ application_fee_amount: z.ZodNullable<z.ZodString>;
1735
+ transfer_data: z.ZodNullable<z.ZodObject<{
1736
+ destination: z.ZodString;
1737
+ amount: z.ZodNullable<z.ZodString>;
1738
+ }, z.core.$strict>>;
1739
+ on_behalf_of: z.ZodNullable<z.ZodString>;
1740
+ client_secret: z.ZodString;
1741
+ client_action: z.ZodOptional<z.ZodObject<{
1742
+ kind: z.ZodEnum<{
1743
+ client_secret: "client_secret";
1744
+ redirect: "redirect";
1745
+ }>;
1746
+ value: z.ZodString;
1747
+ publishable_key: z.ZodOptional<z.ZodString>;
1748
+ }, z.core.$strict>>;
1749
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1750
+ expires_at: z.ZodNumber;
1751
+ can_expire: z.ZodBoolean;
1752
+ created: z.ZodNumber;
1753
+ updated_at: z.ZodNumber;
1754
+ }, z.core.$strict>;
1755
+ readonly sdk: "paymentIntents.cancel";
1756
+ readonly expandable: "payment_intent";
1757
+ }, {
1758
+ readonly operationId: "submitPaymentIntentTx";
1759
+ readonly method: "post";
1760
+ readonly path: "/v1/payment_intents/{id}/submit_tx";
1761
+ readonly tag: "Payment intents";
1762
+ readonly summary: "Report a FairCoin transaction";
1763
+ readonly description: "The PAYER's call, authorized by the intent's `client_secret`: report the txid their wallet broadcast. The intent moves to `processing`; the settlement watcher verifies the transaction on-chain. FairCoin only.";
1764
+ readonly auth: "public";
1765
+ readonly params: {
1766
+ id: string;
1767
+ };
1768
+ readonly body: z.ZodObject<{
1769
+ client_secret: z.ZodString;
1770
+ txid: z.ZodString;
1771
+ }, z.core.$strict>;
1772
+ readonly response: z.ZodObject<{
1773
+ id: z.ZodString;
1774
+ object: z.ZodLiteral<"payment_intent">;
1775
+ livemode: z.ZodBoolean;
1776
+ status: z.ZodEnum<{
1777
+ succeeded: "succeeded";
1778
+ canceled: "canceled";
1779
+ requires_payment_method: "requires_payment_method";
1780
+ requires_confirmation: "requires_confirmation";
1781
+ requires_action: "requires_action";
1782
+ processing: "processing";
1783
+ requires_capture: "requires_capture";
1784
+ }>;
1785
+ rail: z.ZodEnum<{
1786
+ card: "card";
1787
+ faircoin: "faircoin";
1788
+ }>;
1789
+ payment_method_types: z.ZodArray<z.ZodEnum<{
1790
+ card: "card";
1791
+ faircoin: "faircoin";
1792
+ sepa_debit: "sepa_debit";
1793
+ ideal: "ideal";
1794
+ bancontact: "bancontact";
1795
+ eps: "eps";
1796
+ }>>;
1797
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
1798
+ id: z.ZodString;
1799
+ }, z.core.$strict>>;
1800
+ amount: z.ZodString;
1801
+ amount_capturable: z.ZodString;
1802
+ amount_received: z.ZodString;
1803
+ amount_refunded: z.ZodString;
1804
+ currency: z.ZodEnum<{
1805
+ FAIR: "FAIR";
1806
+ EUR: "EUR";
1807
+ USD: "USD";
1808
+ GBP: "GBP";
1809
+ CHF: "CHF";
1810
+ SEK: "SEK";
1811
+ NOK: "NOK";
1812
+ DKK: "DKK";
1813
+ PLN: "PLN";
1814
+ CZK: "CZK";
1815
+ CAD: "CAD";
1816
+ AUD: "AUD";
1817
+ JPY: "JPY";
1818
+ }>;
1819
+ capture_method: z.ZodEnum<{
1820
+ manual: "manual";
1821
+ automatic: "automatic";
1822
+ }>;
1823
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
1824
+ off_session: "off_session";
1825
+ on_session: "on_session";
1826
+ }>>;
1827
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1828
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
1829
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
1830
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1831
+ type: z.ZodLiteral<"faircoin_payment">;
1832
+ faircoin_payment: z.ZodObject<{
1833
+ address: z.ZodString;
1834
+ network: z.ZodEnum<{
1835
+ mainnet: "mainnet";
1836
+ testnet: "testnet";
1837
+ }>;
1838
+ amount: z.ZodString;
1839
+ currency: z.ZodLiteral<"FAIR">;
1840
+ uri: z.ZodString;
1841
+ }, z.core.$strict>;
1842
+ }, z.core.$strict>, z.ZodObject<{
1843
+ type: z.ZodLiteral<"use_peable_sdk">;
1844
+ }, z.core.$strict>], "type">>;
1845
+ last_payment_error: z.ZodNullable<z.ZodObject<{
1846
+ type: z.ZodEnum<{
1847
+ api_error: "api_error";
1848
+ card_error: "card_error";
1849
+ payment_error: "payment_error";
1850
+ }>;
1851
+ code: z.ZodNullable<z.ZodString>;
1852
+ decline_code: z.ZodNullable<z.ZodString>;
1853
+ message: z.ZodString;
1854
+ }, z.core.$strict>>;
1855
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
1856
+ duplicate: "duplicate";
1857
+ fraudulent: "fraudulent";
1858
+ automatic: "automatic";
1859
+ abandoned: "abandoned";
1860
+ requested_by_customer: "requested_by_customer";
1861
+ underpaid: "underpaid";
1862
+ }>>;
1863
+ canceled_at: z.ZodNullable<z.ZodNumber>;
1864
+ description: z.ZodNullable<z.ZodString>;
1865
+ receipt_email: z.ZodNullable<z.ZodString>;
1866
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
1867
+ shipping: z.ZodNullable<z.ZodObject<{
1868
+ name: z.ZodString;
1869
+ phone: z.ZodNullable<z.ZodString>;
1870
+ address: z.ZodObject<{
1871
+ line1: z.ZodNullable<z.ZodString>;
1872
+ line2: z.ZodNullable<z.ZodString>;
1873
+ city: z.ZodNullable<z.ZodString>;
1874
+ state: z.ZodNullable<z.ZodString>;
1875
+ postal_code: z.ZodNullable<z.ZodString>;
1876
+ country: z.ZodNullable<z.ZodString>;
1877
+ }, z.core.$strict>;
1878
+ carrier: z.ZodNullable<z.ZodString>;
1879
+ tracking_number: z.ZodNullable<z.ZodString>;
1880
+ }, z.core.$strict>>;
1881
+ faircoin: z.ZodNullable<z.ZodObject<{
1882
+ network: z.ZodEnum<{
1883
+ mainnet: "mainnet";
1884
+ testnet: "testnet";
1885
+ }>;
1886
+ address: z.ZodString;
1887
+ txid: z.ZodNullable<z.ZodString>;
1888
+ confirmations: z.ZodNumber;
1889
+ required_confirmations: z.ZodNumber;
1890
+ }, z.core.$strict>>;
1891
+ merchant_id: z.ZodString;
1892
+ 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">>>>;
1893
+ application_fee_amount: z.ZodNullable<z.ZodString>;
1894
+ transfer_data: z.ZodNullable<z.ZodObject<{
1895
+ destination: z.ZodString;
1896
+ amount: z.ZodNullable<z.ZodString>;
1897
+ }, z.core.$strict>>;
1898
+ on_behalf_of: z.ZodNullable<z.ZodString>;
1899
+ client_secret: z.ZodString;
1900
+ client_action: z.ZodOptional<z.ZodObject<{
1901
+ kind: z.ZodEnum<{
1902
+ client_secret: "client_secret";
1903
+ redirect: "redirect";
1904
+ }>;
1905
+ value: z.ZodString;
1906
+ publishable_key: z.ZodOptional<z.ZodString>;
1907
+ }, z.core.$strict>>;
1908
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
1909
+ expires_at: z.ZodNumber;
1910
+ can_expire: z.ZodBoolean;
1911
+ created: z.ZodNumber;
1912
+ updated_at: z.ZodNumber;
1913
+ }, z.core.$strict>;
1914
+ }, {
1915
+ readonly operationId: "searchPaymentIntents";
1916
+ readonly method: "get";
1917
+ readonly path: "/v1/payment_intents/search";
1918
+ readonly tag: "Payment intents";
1919
+ readonly summary: "Search payment intents";
1920
+ readonly description: "Stripe's query language over `amount`, `currency`, `customer`, `status`, `created`, `metadata['key']`, `description` and `receipt_email`.";
1921
+ readonly auth: "service";
1922
+ readonly scope: "payments:read";
1923
+ readonly query: z.ZodObject<{
1924
+ query: z.ZodString;
1925
+ 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>>;
1926
+ page: z.ZodOptional<z.ZodString>;
1927
+ 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>>>;
1928
+ }, z.core.$strict>;
1929
+ readonly response: z.ZodObject<{
1930
+ object: z.ZodLiteral<"search_result">;
1931
+ data: z.ZodArray<z.ZodObject<{
1932
+ id: z.ZodString;
1933
+ object: z.ZodLiteral<"payment_intent">;
1934
+ livemode: z.ZodBoolean;
1935
+ status: z.ZodEnum<{
1936
+ succeeded: "succeeded";
1937
+ canceled: "canceled";
1938
+ requires_payment_method: "requires_payment_method";
1939
+ requires_confirmation: "requires_confirmation";
1940
+ requires_action: "requires_action";
1941
+ processing: "processing";
1942
+ requires_capture: "requires_capture";
1943
+ }>;
1944
+ rail: z.ZodEnum<{
1945
+ card: "card";
1946
+ faircoin: "faircoin";
1947
+ }>;
1948
+ payment_method_types: z.ZodArray<z.ZodEnum<{
1949
+ card: "card";
1950
+ faircoin: "faircoin";
1951
+ sepa_debit: "sepa_debit";
1952
+ ideal: "ideal";
1953
+ bancontact: "bancontact";
1954
+ eps: "eps";
1955
+ }>>;
1956
+ payment_method_configuration_details: z.ZodNullable<z.ZodObject<{
1957
+ id: z.ZodString;
1958
+ }, z.core.$strict>>;
1959
+ amount: z.ZodString;
1960
+ amount_capturable: z.ZodString;
1961
+ amount_received: z.ZodString;
1962
+ amount_refunded: z.ZodString;
1963
+ currency: z.ZodEnum<{
1964
+ FAIR: "FAIR";
1965
+ EUR: "EUR";
1966
+ USD: "USD";
1967
+ GBP: "GBP";
1968
+ CHF: "CHF";
1969
+ SEK: "SEK";
1970
+ NOK: "NOK";
1971
+ DKK: "DKK";
1972
+ PLN: "PLN";
1973
+ CZK: "CZK";
1974
+ CAD: "CAD";
1975
+ AUD: "AUD";
1976
+ JPY: "JPY";
1977
+ }>;
1978
+ capture_method: z.ZodEnum<{
1979
+ manual: "manual";
1980
+ automatic: "automatic";
1981
+ }>;
1982
+ setup_future_usage: z.ZodNullable<z.ZodEnum<{
1983
+ off_session: "off_session";
1984
+ on_session: "on_session";
1985
+ }>>;
1986
+ customer: z.ZodNullable<z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>>;
1987
+ payment_method: z.ZodNullable<z.ZodType<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_method">, string | import("../..").Ref<"payment_method">>>>;
1988
+ latest_charge: z.ZodNullable<z.ZodType<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">, z.core.$ZodTypeInternals<string | import("../..").Ref<"charge">, string | import("../..").Ref<"charge">>>>;
1989
+ next_action: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1990
+ type: z.ZodLiteral<"faircoin_payment">;
1991
+ faircoin_payment: z.ZodObject<{
1992
+ address: z.ZodString;
1993
+ network: z.ZodEnum<{
1994
+ mainnet: "mainnet";
1995
+ testnet: "testnet";
1996
+ }>;
1997
+ amount: z.ZodString;
1998
+ currency: z.ZodLiteral<"FAIR">;
1999
+ uri: z.ZodString;
2000
+ }, z.core.$strict>;
2001
+ }, z.core.$strict>, z.ZodObject<{
2002
+ type: z.ZodLiteral<"use_peable_sdk">;
2003
+ }, z.core.$strict>], "type">>;
2004
+ last_payment_error: z.ZodNullable<z.ZodObject<{
2005
+ type: z.ZodEnum<{
2006
+ api_error: "api_error";
2007
+ card_error: "card_error";
2008
+ payment_error: "payment_error";
2009
+ }>;
2010
+ code: z.ZodNullable<z.ZodString>;
2011
+ decline_code: z.ZodNullable<z.ZodString>;
2012
+ message: z.ZodString;
2013
+ }, z.core.$strict>>;
2014
+ cancellation_reason: z.ZodNullable<z.ZodEnum<{
2015
+ duplicate: "duplicate";
2016
+ fraudulent: "fraudulent";
2017
+ automatic: "automatic";
2018
+ abandoned: "abandoned";
2019
+ requested_by_customer: "requested_by_customer";
2020
+ underpaid: "underpaid";
2021
+ }>>;
2022
+ canceled_at: z.ZodNullable<z.ZodNumber>;
2023
+ description: z.ZodNullable<z.ZodString>;
2024
+ receipt_email: z.ZodNullable<z.ZodString>;
2025
+ statement_descriptor_suffix: z.ZodNullable<z.ZodString>;
2026
+ shipping: z.ZodNullable<z.ZodObject<{
2027
+ name: z.ZodString;
2028
+ phone: z.ZodNullable<z.ZodString>;
2029
+ address: z.ZodObject<{
2030
+ line1: z.ZodNullable<z.ZodString>;
2031
+ line2: z.ZodNullable<z.ZodString>;
2032
+ city: z.ZodNullable<z.ZodString>;
2033
+ state: z.ZodNullable<z.ZodString>;
2034
+ postal_code: z.ZodNullable<z.ZodString>;
2035
+ country: z.ZodNullable<z.ZodString>;
2036
+ }, z.core.$strict>;
2037
+ carrier: z.ZodNullable<z.ZodString>;
2038
+ tracking_number: z.ZodNullable<z.ZodString>;
2039
+ }, z.core.$strict>>;
2040
+ faircoin: z.ZodNullable<z.ZodObject<{
2041
+ network: z.ZodEnum<{
2042
+ mainnet: "mainnet";
2043
+ testnet: "testnet";
2044
+ }>;
2045
+ address: z.ZodString;
2046
+ txid: z.ZodNullable<z.ZodString>;
2047
+ confirmations: z.ZodNumber;
2048
+ required_confirmations: z.ZodNumber;
2049
+ }, z.core.$strict>>;
2050
+ merchant_id: z.ZodString;
2051
+ 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">>>>;
2052
+ application_fee_amount: z.ZodNullable<z.ZodString>;
2053
+ transfer_data: z.ZodNullable<z.ZodObject<{
2054
+ destination: z.ZodString;
2055
+ amount: z.ZodNullable<z.ZodString>;
2056
+ }, z.core.$strict>>;
2057
+ on_behalf_of: z.ZodNullable<z.ZodString>;
2058
+ client_secret: z.ZodString;
2059
+ client_action: z.ZodOptional<z.ZodObject<{
2060
+ kind: z.ZodEnum<{
2061
+ client_secret: "client_secret";
2062
+ redirect: "redirect";
2063
+ }>;
2064
+ value: z.ZodString;
2065
+ publishable_key: z.ZodOptional<z.ZodString>;
2066
+ }, z.core.$strict>>;
2067
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
2068
+ expires_at: z.ZodNumber;
2069
+ can_expire: z.ZodBoolean;
2070
+ created: z.ZodNumber;
2071
+ updated_at: z.ZodNumber;
2072
+ }, z.core.$strict>>;
2073
+ has_more: z.ZodBoolean;
2074
+ next_page: z.ZodNullable<z.ZodString>;
2075
+ url: z.ZodString;
2076
+ total_count: z.ZodOptional<z.ZodNumber>;
2077
+ }, z.core.$strict>;
2078
+ readonly sdk: "paymentIntents.search";
2079
+ readonly expandable: "payment_intent";
2080
+ }];