@peable.to/contracts 0.4.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/dist/cjs/common/address.js +81 -0
  2. package/dist/cjs/common/envelopes.js +101 -0
  3. package/dist/cjs/common/objects.js +85 -0
  4. package/dist/cjs/common/params.js +211 -0
  5. package/dist/cjs/common/primitives.js +39 -0
  6. package/dist/cjs/contributions.js +22 -0
  7. package/dist/cjs/index.js +40 -137
  8. package/dist/cjs/openapi/document.js +297 -0
  9. package/dist/cjs/openapi/index.js +7 -0
  10. package/dist/cjs/openapi/webhooks.js +17 -0
  11. package/dist/cjs/resources/billingEngine/billingPortal.js +237 -0
  12. package/dist/cjs/resources/billingEngine/creditNotes.js +189 -0
  13. package/dist/cjs/resources/billingEngine/customerBalanceTransactions.js +90 -0
  14. package/dist/cjs/resources/billingEngine/index.js +43 -0
  15. package/dist/cjs/resources/billingEngine/invoiceItems.js +155 -0
  16. package/dist/cjs/resources/billingEngine/invoices.js +509 -0
  17. package/dist/cjs/resources/billingEngine/params.js +43 -0
  18. package/dist/cjs/resources/billingEngine/public.js +326 -0
  19. package/dist/cjs/resources/billingEngine/subscriptions.js +476 -0
  20. package/dist/cjs/resources/catalog/billing.js +755 -0
  21. package/dist/cjs/resources/catalog/billingSettings.js +131 -0
  22. package/dist/cjs/resources/catalog/coupons.js +222 -0
  23. package/dist/cjs/resources/catalog/entitlements.js +257 -0
  24. package/dist/cjs/resources/catalog/index.js +58 -0
  25. package/dist/cjs/resources/catalog/meters.js +279 -0
  26. package/dist/cjs/resources/catalog/prices.js +423 -0
  27. package/dist/cjs/resources/catalog/products.js +228 -0
  28. package/dist/cjs/resources/catalog/promotionCodes.js +174 -0
  29. package/dist/cjs/resources/catalog/shared.js +75 -0
  30. package/dist/cjs/resources/catalog/testClocks.js +127 -0
  31. package/dist/cjs/resources/checkout/checkoutSessions.js +582 -0
  32. package/dist/cjs/resources/checkout/contributions.js +172 -0
  33. package/dist/cjs/resources/checkout/files.js +133 -0
  34. package/dist/cjs/resources/checkout/index.js +57 -0
  35. package/dist/cjs/resources/checkout/merchants.js +290 -0
  36. package/dist/cjs/resources/checkout/paymentLinks.js +330 -0
  37. package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +262 -0
  38. package/dist/cjs/resources/checkout/shared.js +368 -0
  39. package/dist/cjs/resources/connect/account.js +332 -0
  40. package/dist/cjs/resources/connect/applicationFees.js +113 -0
  41. package/dist/cjs/resources/connect/balance.js +212 -0
  42. package/dist/cjs/resources/connect/connectedAccounts.js +260 -0
  43. package/dist/cjs/resources/connect/index.js +51 -0
  44. package/dist/cjs/resources/connect/onboarding.js +82 -0
  45. package/dist/cjs/resources/connect/payouts.js +196 -0
  46. package/dist/cjs/resources/connect/reporting.js +235 -0
  47. package/dist/cjs/resources/connect/requestLogs.js +110 -0
  48. package/dist/cjs/resources/connect/transfers.js +227 -0
  49. package/dist/cjs/resources/core/customers.js +194 -0
  50. package/dist/cjs/resources/core/index.js +23 -0
  51. package/dist/cjs/resources/core/paymentMethods.js +134 -0
  52. package/dist/cjs/resources/events/events.js +357 -0
  53. package/dist/cjs/resources/events/index.js +29 -0
  54. package/dist/cjs/resources/events/webhookDeliveries.js +93 -0
  55. package/dist/cjs/resources/events/webhookEndpoints.js +215 -0
  56. package/dist/cjs/resources/payments/charges.js +157 -0
  57. package/dist/cjs/resources/payments/disputes.js +204 -0
  58. package/dist/cjs/resources/payments/index.js +41 -0
  59. package/dist/cjs/resources/payments/paymentIntents.js +529 -0
  60. package/dist/cjs/resources/payments/refunds.js +245 -0
  61. package/dist/cjs/resources/payments/setupIntents.js +158 -0
  62. package/dist/cjs/resources/payments/social.js +182 -0
  63. package/dist/cjs/resources/payments/testHelpers.js +39 -0
  64. package/dist/cjs/resources/tax/assessments.js +217 -0
  65. package/dist/cjs/resources/tax/businessProfile.js +99 -0
  66. package/dist/cjs/resources/tax/calculations.js +176 -0
  67. package/dist/cjs/resources/tax/capabilities.js +42 -0
  68. package/dist/cjs/resources/tax/codes.js +37 -0
  69. package/dist/cjs/resources/tax/complianceActions.js +56 -0
  70. package/dist/cjs/resources/tax/deadlines.js +59 -0
  71. package/dist/cjs/resources/tax/documents.js +128 -0
  72. package/dist/cjs/resources/tax/index.js +80 -0
  73. package/dist/cjs/resources/tax/locationEvidence.js +131 -0
  74. package/dist/cjs/resources/tax/operatingLocations.js +98 -0
  75. package/dist/cjs/resources/tax/products.js +67 -0
  76. package/dist/cjs/resources/tax/registrationDeclarations.js +124 -0
  77. package/dist/cjs/resources/tax/registrations.js +82 -0
  78. package/dist/cjs/resources/tax/reports.js +92 -0
  79. package/dist/cjs/resources/tax/reviewItems.js +116 -0
  80. package/dist/cjs/resources/tax/ruleSet.js +68 -0
  81. package/dist/cjs/resources/tax/salesDestinations.js +94 -0
  82. package/dist/cjs/resources/tax/settings.js +104 -0
  83. package/dist/cjs/resources/tax/shared.js +62 -0
  84. package/dist/cjs/resources/tax/transactions.js +102 -0
  85. package/dist/cjs/route.js +22 -0
  86. package/dist/cjs/routes.js +31 -0
  87. package/dist/cjs/vocabulary/billingPortal.js +15 -0
  88. package/dist/cjs/vocabulary/catalog.js +110 -0
  89. package/dist/cjs/vocabulary/checkout.js +53 -0
  90. package/dist/cjs/vocabulary/connect.js +95 -0
  91. package/dist/cjs/vocabulary/errors.js +174 -0
  92. package/dist/cjs/vocabulary/events.js +176 -0
  93. package/dist/cjs/vocabulary/files.js +44 -0
  94. package/dist/cjs/vocabulary/index.js +37 -0
  95. package/dist/cjs/vocabulary/invoices.js +52 -0
  96. package/dist/cjs/vocabulary/lists.js +22 -0
  97. package/dist/cjs/vocabulary/merchants.js +23 -0
  98. package/dist/cjs/vocabulary/money.js +104 -0
  99. package/dist/cjs/vocabulary/paymentMethodConfigurations.js +36 -0
  100. package/dist/cjs/vocabulary/payments.js +195 -0
  101. package/dist/cjs/vocabulary/reporting.js +27 -0
  102. package/dist/cjs/vocabulary/subscriptions.js +60 -0
  103. package/dist/cjs/vocabulary/tax.js +237 -0
  104. package/dist/cjs/vocabulary/version.js +12 -0
  105. package/dist/esm/common/address.js +76 -0
  106. package/dist/esm/common/envelopes.js +95 -0
  107. package/dist/esm/common/objects.js +74 -0
  108. package/dist/esm/common/params.js +203 -0
  109. package/dist/esm/common/primitives.js +35 -0
  110. package/dist/esm/contributions.js +5 -0
  111. package/dist/esm/index.js +26 -134
  112. package/dist/esm/openapi/document.js +294 -0
  113. package/dist/esm/openapi/index.js +2 -0
  114. package/dist/esm/openapi/webhooks.js +14 -0
  115. package/dist/esm/resources/billingEngine/billingPortal.js +234 -0
  116. package/dist/esm/resources/billingEngine/creditNotes.js +186 -0
  117. package/dist/esm/resources/billingEngine/customerBalanceTransactions.js +87 -0
  118. package/dist/esm/resources/billingEngine/index.js +26 -0
  119. package/dist/esm/resources/billingEngine/invoiceItems.js +152 -0
  120. package/dist/esm/resources/billingEngine/invoices.js +506 -0
  121. package/dist/esm/resources/billingEngine/params.js +39 -0
  122. package/dist/esm/resources/billingEngine/public.js +323 -0
  123. package/dist/esm/resources/billingEngine/subscriptions.js +473 -0
  124. package/dist/esm/resources/catalog/billing.js +752 -0
  125. package/dist/esm/resources/catalog/billingSettings.js +128 -0
  126. package/dist/esm/resources/catalog/coupons.js +219 -0
  127. package/dist/esm/resources/catalog/entitlements.js +254 -0
  128. package/dist/esm/resources/catalog/index.js +38 -0
  129. package/dist/esm/resources/catalog/meters.js +276 -0
  130. package/dist/esm/resources/catalog/prices.js +419 -0
  131. package/dist/esm/resources/catalog/products.js +225 -0
  132. package/dist/esm/resources/catalog/promotionCodes.js +171 -0
  133. package/dist/esm/resources/catalog/shared.js +67 -0
  134. package/dist/esm/resources/catalog/testClocks.js +124 -0
  135. package/dist/esm/resources/checkout/checkoutSessions.js +579 -0
  136. package/dist/esm/resources/checkout/contributions.js +167 -0
  137. package/dist/esm/resources/checkout/files.js +130 -0
  138. package/dist/esm/resources/checkout/index.js +25 -0
  139. package/dist/esm/resources/checkout/merchants.js +287 -0
  140. package/dist/esm/resources/checkout/paymentLinks.js +327 -0
  141. package/dist/esm/resources/checkout/paymentMethodConfigurations.js +259 -0
  142. package/dist/esm/resources/checkout/shared.js +363 -0
  143. package/dist/esm/resources/connect/account.js +329 -0
  144. package/dist/esm/resources/connect/applicationFees.js +110 -0
  145. package/dist/esm/resources/connect/balance.js +209 -0
  146. package/dist/esm/resources/connect/connectedAccounts.js +257 -0
  147. package/dist/esm/resources/connect/index.js +34 -0
  148. package/dist/esm/resources/connect/onboarding.js +79 -0
  149. package/dist/esm/resources/connect/payouts.js +193 -0
  150. package/dist/esm/resources/connect/reporting.js +232 -0
  151. package/dist/esm/resources/connect/requestLogs.js +107 -0
  152. package/dist/esm/resources/connect/transfers.js +224 -0
  153. package/dist/esm/resources/core/customers.js +191 -0
  154. package/dist/esm/resources/core/index.js +6 -0
  155. package/dist/esm/resources/core/paymentMethods.js +131 -0
  156. package/dist/esm/resources/events/events.js +353 -0
  157. package/dist/esm/resources/events/index.js +12 -0
  158. package/dist/esm/resources/events/webhookDeliveries.js +90 -0
  159. package/dist/esm/resources/events/webhookEndpoints.js +212 -0
  160. package/dist/esm/resources/payments/charges.js +154 -0
  161. package/dist/esm/resources/payments/disputes.js +201 -0
  162. package/dist/esm/resources/payments/index.js +24 -0
  163. package/dist/esm/resources/payments/paymentIntents.js +526 -0
  164. package/dist/esm/resources/payments/refunds.js +242 -0
  165. package/dist/esm/resources/payments/setupIntents.js +155 -0
  166. package/dist/esm/resources/payments/social.js +179 -0
  167. package/dist/esm/resources/payments/testHelpers.js +36 -0
  168. package/dist/esm/resources/tax/assessments.js +214 -0
  169. package/dist/esm/resources/tax/businessProfile.js +96 -0
  170. package/dist/esm/resources/tax/calculations.js +173 -0
  171. package/dist/esm/resources/tax/capabilities.js +39 -0
  172. package/dist/esm/resources/tax/codes.js +34 -0
  173. package/dist/esm/resources/tax/complianceActions.js +53 -0
  174. package/dist/esm/resources/tax/deadlines.js +56 -0
  175. package/dist/esm/resources/tax/documents.js +125 -0
  176. package/dist/esm/resources/tax/index.js +63 -0
  177. package/dist/esm/resources/tax/locationEvidence.js +128 -0
  178. package/dist/esm/resources/tax/operatingLocations.js +95 -0
  179. package/dist/esm/resources/tax/products.js +64 -0
  180. package/dist/esm/resources/tax/registrationDeclarations.js +121 -0
  181. package/dist/esm/resources/tax/registrations.js +79 -0
  182. package/dist/esm/resources/tax/reports.js +89 -0
  183. package/dist/esm/resources/tax/reviewItems.js +113 -0
  184. package/dist/esm/resources/tax/ruleSet.js +65 -0
  185. package/dist/esm/resources/tax/salesDestinations.js +91 -0
  186. package/dist/esm/resources/tax/settings.js +101 -0
  187. package/dist/esm/resources/tax/shared.js +58 -0
  188. package/dist/esm/resources/tax/transactions.js +99 -0
  189. package/dist/esm/route.js +16 -0
  190. package/dist/esm/routes.js +27 -0
  191. package/dist/esm/vocabulary/billingPortal.js +12 -0
  192. package/dist/esm/vocabulary/catalog.js +106 -0
  193. package/dist/esm/vocabulary/checkout.js +50 -0
  194. package/dist/esm/vocabulary/connect.js +92 -0
  195. package/dist/esm/vocabulary/errors.js +169 -0
  196. package/dist/esm/vocabulary/events.js +173 -0
  197. package/dist/esm/vocabulary/files.js +41 -0
  198. package/dist/esm/vocabulary/index.js +21 -0
  199. package/dist/esm/vocabulary/invoices.js +49 -0
  200. package/dist/esm/vocabulary/lists.js +19 -0
  201. package/dist/esm/vocabulary/merchants.js +20 -0
  202. package/dist/esm/vocabulary/money.js +98 -0
  203. package/dist/esm/vocabulary/paymentMethodConfigurations.js +33 -0
  204. package/dist/esm/vocabulary/payments.js +192 -0
  205. package/dist/esm/vocabulary/reporting.js +24 -0
  206. package/dist/esm/vocabulary/subscriptions.js +57 -0
  207. package/dist/esm/vocabulary/tax.js +233 -0
  208. package/dist/esm/vocabulary/version.js +9 -0
  209. package/dist/types/common/address.d.ts +62 -0
  210. package/dist/types/common/envelopes.d.ts +88 -0
  211. package/dist/types/common/objects.d.ts +107 -0
  212. package/dist/types/common/params.d.ts +156 -0
  213. package/dist/types/common/primitives.d.ts +56 -0
  214. package/dist/types/contributions.d.ts +1 -0
  215. package/dist/types/index.d.ts +16 -171
  216. package/dist/types/openapi/document.d.ts +16 -0
  217. package/dist/types/openapi/index.d.ts +2 -0
  218. package/dist/types/openapi/webhooks.d.ts +15 -0
  219. package/dist/types/resources/billingEngine/billingPortal.d.ts +742 -0
  220. package/dist/types/resources/billingEngine/creditNotes.d.ts +655 -0
  221. package/dist/types/resources/billingEngine/customerBalanceTransactions.d.ts +282 -0
  222. package/dist/types/resources/billingEngine/index.d.ts +6071 -0
  223. package/dist/types/resources/billingEngine/invoiceItems.d.ts +502 -0
  224. package/dist/types/resources/billingEngine/invoices.d.ts +2547 -0
  225. package/dist/types/resources/billingEngine/params.d.ts +51 -0
  226. package/dist/types/resources/billingEngine/public.d.ts +1860 -0
  227. package/dist/types/resources/billingEngine/subscriptions.d.ts +1519 -0
  228. package/dist/types/resources/catalog/billing.d.ts +1723 -0
  229. package/dist/types/resources/catalog/billingSettings.d.ts +160 -0
  230. package/dist/types/resources/catalog/coupons.d.ts +403 -0
  231. package/dist/types/resources/catalog/entitlements.d.ts +422 -0
  232. package/dist/types/resources/catalog/index.d.ts +3155 -0
  233. package/dist/types/resources/catalog/meters.d.ts +474 -0
  234. package/dist/types/resources/catalog/prices.d.ts +1091 -0
  235. package/dist/types/resources/catalog/products.d.ts +430 -0
  236. package/dist/types/resources/catalog/promotionCodes.d.ts +369 -0
  237. package/dist/types/resources/catalog/shared.d.ts +34 -0
  238. package/dist/types/resources/catalog/testClocks.d.ts +220 -0
  239. package/dist/types/resources/checkout/checkoutSessions.d.ts +3207 -0
  240. package/dist/types/resources/checkout/contributions.d.ts +375 -0
  241. package/dist/types/resources/checkout/files.d.ts +280 -0
  242. package/dist/types/resources/checkout/index.d.ts +5678 -0
  243. package/dist/types/resources/checkout/merchants.d.ts +395 -0
  244. package/dist/types/resources/checkout/paymentLinks.d.ts +1728 -0
  245. package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +2104 -0
  246. package/dist/types/resources/checkout/shared.d.ts +419 -0
  247. package/dist/types/resources/connect/account.d.ts +483 -0
  248. package/dist/types/resources/connect/applicationFees.d.ts +198 -0
  249. package/dist/types/resources/connect/balance.d.ts +399 -0
  250. package/dist/types/resources/connect/connectedAccounts.d.ts +494 -0
  251. package/dist/types/resources/connect/index.d.ts +2094 -0
  252. package/dist/types/resources/connect/onboarding.d.ts +95 -0
  253. package/dist/types/resources/connect/payouts.d.ts +527 -0
  254. package/dist/types/resources/connect/reporting.d.ts +506 -0
  255. package/dist/types/resources/connect/requestLogs.d.ts +236 -0
  256. package/dist/types/resources/connect/transfers.d.ts +436 -0
  257. package/dist/types/resources/core/customers.d.ts +619 -0
  258. package/dist/types/resources/core/index.d.ts +679 -0
  259. package/dist/types/resources/core/paymentMethods.d.ts +336 -0
  260. package/dist/types/resources/events/events.d.ts +731 -0
  261. package/dist/types/resources/events/index.d.ts +1727 -0
  262. package/dist/types/resources/events/webhookDeliveries.d.ts +436 -0
  263. package/dist/types/resources/events/webhookEndpoints.d.ts +1502 -0
  264. package/dist/types/resources/payments/charges.d.ts +390 -0
  265. package/dist/types/resources/payments/disputes.d.ts +822 -0
  266. package/dist/types/resources/payments/index.d.ts +3517 -0
  267. package/dist/types/resources/payments/paymentIntents.d.ts +2080 -0
  268. package/dist/types/resources/payments/refunds.d.ts +684 -0
  269. package/dist/types/resources/payments/setupIntents.d.ts +391 -0
  270. package/dist/types/resources/payments/social.d.ts +266 -0
  271. package/dist/types/resources/payments/testHelpers.d.ts +178 -0
  272. package/dist/types/resources/tax/assessments.d.ts +787 -0
  273. package/dist/types/resources/tax/businessProfile.d.ts +134 -0
  274. package/dist/types/resources/tax/calculations.d.ts +261 -0
  275. package/dist/types/resources/tax/capabilities.d.ts +81 -0
  276. package/dist/types/resources/tax/codes.d.ts +29 -0
  277. package/dist/types/resources/tax/complianceActions.d.ts +97 -0
  278. package/dist/types/resources/tax/deadlines.d.ts +133 -0
  279. package/dist/types/resources/tax/documents.d.ts +257 -0
  280. package/dist/types/resources/tax/index.d.ts +1946 -0
  281. package/dist/types/resources/tax/locationEvidence.d.ts +246 -0
  282. package/dist/types/resources/tax/operatingLocations.d.ts +170 -0
  283. package/dist/types/resources/tax/products.d.ts +68 -0
  284. package/dist/types/resources/tax/registrationDeclarations.d.ts +270 -0
  285. package/dist/types/resources/tax/registrations.d.ts +103 -0
  286. package/dist/types/resources/tax/reports.d.ts +129 -0
  287. package/dist/types/resources/tax/reviewItems.d.ts +226 -0
  288. package/dist/types/resources/tax/ruleSet.d.ts +219 -0
  289. package/dist/types/resources/tax/salesDestinations.d.ts +158 -0
  290. package/dist/types/resources/tax/settings.d.ts +122 -0
  291. package/dist/types/resources/tax/shared.d.ts +43 -0
  292. package/dist/types/resources/tax/transactions.d.ts +404 -0
  293. package/dist/types/route.d.ts +86 -0
  294. package/dist/types/routes.d.ts +23 -0
  295. package/dist/types/vocabulary/billingPortal.d.ts +15 -0
  296. package/dist/types/vocabulary/catalog.d.ts +97 -0
  297. package/dist/types/vocabulary/checkout.d.ts +49 -0
  298. package/dist/types/vocabulary/connect.d.ts +62 -0
  299. package/dist/types/vocabulary/errors.d.ts +145 -0
  300. package/dist/types/vocabulary/events.d.ts +171 -0
  301. package/dist/types/vocabulary/files.d.ts +30 -0
  302. package/dist/types/vocabulary/index.d.ts +17 -0
  303. package/dist/types/vocabulary/invoices.d.ts +39 -0
  304. package/dist/types/vocabulary/lists.d.ts +9 -0
  305. package/dist/types/vocabulary/merchants.d.ts +9 -0
  306. package/dist/types/vocabulary/money.d.ts +59 -0
  307. package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +22 -0
  308. package/dist/types/vocabulary/payments.d.ts +117 -0
  309. package/dist/types/vocabulary/reporting.d.ts +18 -0
  310. package/dist/types/vocabulary/subscriptions.d.ts +45 -0
  311. package/dist/types/vocabulary/tax.d.ts +163 -0
  312. package/dist/types/vocabulary/version.d.ts +10 -0
  313. package/package.json +51 -11
  314. package/dist/cjs/openapi.js +0 -165
  315. package/dist/esm/openapi.js +0 -161
  316. package/dist/types/openapi.d.ts +0 -148
@@ -0,0 +1,684 @@
1
+ import { z } from 'zod';
2
+ import { type Expand } from '../../common/objects';
3
+ /**
4
+ * Refunds (`re_…`) and a payment's settlement figures. The provider's own
5
+ * refund id never appears: a merchant integrates against Peable and never
6
+ * learns which acquirer sat behind it (ADR 0001 D3).
7
+ */
8
+ export declare const refundSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ object: z.ZodLiteral<"refund">;
11
+ livemode: z.ZodBoolean;
12
+ external_ref: z.ZodNullable<z.ZodString>;
13
+ origin: z.ZodEnum<{
14
+ merchant: "merchant";
15
+ provider: "provider";
16
+ }>;
17
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
18
+ amount: z.ZodString;
19
+ currency: z.ZodEnum<{
20
+ FAIR: "FAIR";
21
+ EUR: "EUR";
22
+ USD: "USD";
23
+ GBP: "GBP";
24
+ CHF: "CHF";
25
+ SEK: "SEK";
26
+ NOK: "NOK";
27
+ DKK: "DKK";
28
+ PLN: "PLN";
29
+ CZK: "CZK";
30
+ CAD: "CAD";
31
+ AUD: "AUD";
32
+ JPY: "JPY";
33
+ }>;
34
+ status: z.ZodEnum<{
35
+ succeeded: "succeeded";
36
+ pending: "pending";
37
+ canceled: "canceled";
38
+ failed: "failed";
39
+ }>;
40
+ reason: z.ZodNullable<z.ZodEnum<{
41
+ duplicate: "duplicate";
42
+ fraudulent: "fraudulent";
43
+ requested_by_customer: "requested_by_customer";
44
+ }>>;
45
+ failure_code: z.ZodNullable<z.ZodString>;
46
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
47
+ created: z.ZodNumber;
48
+ updated_at: z.ZodNumber;
49
+ }, z.core.$strict>;
50
+ export type Refund = Expand<z.output<typeof refundSchema>>;
51
+ /**
52
+ * What a payment actually came to, as the PROVIDER reports it. Every figure is
53
+ * nullable and that is the contract: "the fee was zero" and "the fee is not
54
+ * known yet" are different facts, and `status` says which produced the nulls.
55
+ * It reports what the provider took; it attributes that cost to nobody.
56
+ */
57
+ export declare const settlementSchema: z.ZodObject<{
58
+ object: z.ZodLiteral<"settlement">;
59
+ livemode: z.ZodBoolean;
60
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
61
+ status: z.ZodEnum<{
62
+ unknown: "unknown";
63
+ pending: "pending";
64
+ available: "available";
65
+ }>;
66
+ gross: z.ZodNullable<z.ZodString>;
67
+ fee: z.ZodNullable<z.ZodString>;
68
+ net: z.ZodNullable<z.ZodString>;
69
+ currency: z.ZodNullable<z.ZodString>;
70
+ available_on: z.ZodNullable<z.ZodNumber>;
71
+ exchange_rate: z.ZodNullable<z.ZodNumber>;
72
+ }, z.core.$strict>;
73
+ export type Settlement = Expand<z.output<typeof settlementSchema>>;
74
+ declare module '../../common/objects' {
75
+ interface ObjectMap {
76
+ refund: Refund;
77
+ settlement: Settlement;
78
+ }
79
+ }
80
+ export declare const createRefundParams: z.ZodObject<{
81
+ payment_intent: z.ZodString;
82
+ external_ref: z.ZodString;
83
+ amount: z.ZodString;
84
+ reason: z.ZodOptional<z.ZodEnum<{
85
+ duplicate: "duplicate";
86
+ fraudulent: "fraudulent";
87
+ requested_by_customer: "requested_by_customer";
88
+ }>>;
89
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
90
+ refund_application_fee: z.ZodOptional<z.ZodBoolean>;
91
+ reverse_transfer: z.ZodOptional<z.ZodBoolean>;
92
+ }, z.core.$strict>;
93
+ export type CreateRefundParams = z.input<typeof createRefundParams>;
94
+ /** The merchant's own bookkeeping on a refund: `metadata`, a patch. */
95
+ export declare const updateRefundParams: z.ZodObject<{
96
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
97
+ }, z.core.$strict>;
98
+ export type UpdateRefundParams = z.input<typeof updateRefundParams>;
99
+ export declare const cancelRefundParams: z.ZodObject<{}, z.core.$strict>;
100
+ export declare const listRefundsQuery: z.ZodObject<{
101
+ 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>>;
102
+ starting_after: z.ZodOptional<z.ZodString>;
103
+ ending_before: z.ZodOptional<z.ZodString>;
104
+ 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<{
105
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
106
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
107
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
108
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
109
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
110
+ gt?: number | undefined;
111
+ gte?: number | undefined;
112
+ lt?: number | undefined;
113
+ lte?: number | undefined;
114
+ }>>]>>;
115
+ 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>>>;
116
+ payment_intent: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strict>;
118
+ export type ListRefundsParams = z.input<typeof listRefundsQuery>;
119
+ /** The per-payment sub-list: the payment is in the path. */
120
+ export declare const listPaymentIntentRefundsQuery: z.ZodObject<{
121
+ 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>>;
122
+ starting_after: z.ZodOptional<z.ZodString>;
123
+ ending_before: z.ZodOptional<z.ZodString>;
124
+ 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<{
125
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
126
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
127
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
128
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
129
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
130
+ gt?: number | undefined;
131
+ gte?: number | undefined;
132
+ lt?: number | undefined;
133
+ lte?: number | undefined;
134
+ }>>]>>;
135
+ 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>>>;
136
+ }, z.core.$strict>;
137
+ /**
138
+ * A payment's refunds, with what is still refundable beside the envelope — the
139
+ * figure every merchant would otherwise compute by summing the list, and get
140
+ * wrong by counting a `pending` or `failed` refund.
141
+ */
142
+ export declare const paymentIntentRefundListSchema: z.ZodObject<{
143
+ object: z.ZodLiteral<"list">;
144
+ data: z.ZodArray<z.ZodObject<{
145
+ id: z.ZodString;
146
+ object: z.ZodLiteral<"refund">;
147
+ livemode: z.ZodBoolean;
148
+ external_ref: z.ZodNullable<z.ZodString>;
149
+ origin: z.ZodEnum<{
150
+ merchant: "merchant";
151
+ provider: "provider";
152
+ }>;
153
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
154
+ amount: z.ZodString;
155
+ currency: z.ZodEnum<{
156
+ FAIR: "FAIR";
157
+ EUR: "EUR";
158
+ USD: "USD";
159
+ GBP: "GBP";
160
+ CHF: "CHF";
161
+ SEK: "SEK";
162
+ NOK: "NOK";
163
+ DKK: "DKK";
164
+ PLN: "PLN";
165
+ CZK: "CZK";
166
+ CAD: "CAD";
167
+ AUD: "AUD";
168
+ JPY: "JPY";
169
+ }>;
170
+ status: z.ZodEnum<{
171
+ succeeded: "succeeded";
172
+ pending: "pending";
173
+ canceled: "canceled";
174
+ failed: "failed";
175
+ }>;
176
+ reason: z.ZodNullable<z.ZodEnum<{
177
+ duplicate: "duplicate";
178
+ fraudulent: "fraudulent";
179
+ requested_by_customer: "requested_by_customer";
180
+ }>>;
181
+ failure_code: z.ZodNullable<z.ZodString>;
182
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
183
+ created: z.ZodNumber;
184
+ updated_at: z.ZodNumber;
185
+ }, z.core.$strict>>;
186
+ has_more: z.ZodBoolean;
187
+ url: z.ZodString;
188
+ remaining_refundable: z.ZodString;
189
+ }, z.core.$strict>;
190
+ export type PaymentIntentRefundList = Expand<z.output<typeof paymentIntentRefundListSchema>>;
191
+ export declare const refundRoutes: readonly [{
192
+ readonly operationId: "createRefund";
193
+ readonly method: "post";
194
+ readonly path: "/v1/refunds";
195
+ readonly tag: "Refunds";
196
+ readonly summary: "Create a refund";
197
+ readonly description: "`external_ref` decides whether money moves twice: a retry with the same ref answers the refund it made (200) whatever is still refundable.";
198
+ readonly auth: "service";
199
+ readonly scope: "payments:write";
200
+ readonly idempotent: true;
201
+ readonly body: z.ZodObject<{
202
+ payment_intent: z.ZodString;
203
+ external_ref: z.ZodString;
204
+ amount: z.ZodString;
205
+ reason: z.ZodOptional<z.ZodEnum<{
206
+ duplicate: "duplicate";
207
+ fraudulent: "fraudulent";
208
+ requested_by_customer: "requested_by_customer";
209
+ }>>;
210
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
211
+ refund_application_fee: z.ZodOptional<z.ZodBoolean>;
212
+ reverse_transfer: z.ZodOptional<z.ZodBoolean>;
213
+ }, z.core.$strict>;
214
+ readonly response: z.ZodObject<{
215
+ id: z.ZodString;
216
+ object: z.ZodLiteral<"refund">;
217
+ livemode: z.ZodBoolean;
218
+ external_ref: z.ZodNullable<z.ZodString>;
219
+ origin: z.ZodEnum<{
220
+ merchant: "merchant";
221
+ provider: "provider";
222
+ }>;
223
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
224
+ amount: z.ZodString;
225
+ currency: z.ZodEnum<{
226
+ FAIR: "FAIR";
227
+ EUR: "EUR";
228
+ USD: "USD";
229
+ GBP: "GBP";
230
+ CHF: "CHF";
231
+ SEK: "SEK";
232
+ NOK: "NOK";
233
+ DKK: "DKK";
234
+ PLN: "PLN";
235
+ CZK: "CZK";
236
+ CAD: "CAD";
237
+ AUD: "AUD";
238
+ JPY: "JPY";
239
+ }>;
240
+ status: z.ZodEnum<{
241
+ succeeded: "succeeded";
242
+ pending: "pending";
243
+ canceled: "canceled";
244
+ failed: "failed";
245
+ }>;
246
+ reason: z.ZodNullable<z.ZodEnum<{
247
+ duplicate: "duplicate";
248
+ fraudulent: "fraudulent";
249
+ requested_by_customer: "requested_by_customer";
250
+ }>>;
251
+ failure_code: z.ZodNullable<z.ZodString>;
252
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
253
+ created: z.ZodNumber;
254
+ updated_at: z.ZodNumber;
255
+ }, z.core.$strict>;
256
+ readonly status: 201;
257
+ readonly sdk: "refunds.create";
258
+ }, {
259
+ readonly operationId: "listRefunds";
260
+ readonly method: "get";
261
+ readonly path: "/v1/refunds";
262
+ readonly tag: "Refunds";
263
+ readonly summary: "List refunds";
264
+ readonly description: "Every refund of the merchant, or of one payment — including those made outside Peable (`origin: 'provider'`).";
265
+ readonly auth: "service";
266
+ readonly scope: "payments:read";
267
+ readonly query: z.ZodObject<{
268
+ 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>>;
269
+ starting_after: z.ZodOptional<z.ZodString>;
270
+ ending_before: z.ZodOptional<z.ZodString>;
271
+ 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<{
272
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
273
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
274
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
275
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
276
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
277
+ gt?: number | undefined;
278
+ gte?: number | undefined;
279
+ lt?: number | undefined;
280
+ lte?: number | undefined;
281
+ }>>]>>;
282
+ 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>>>;
283
+ payment_intent: z.ZodOptional<z.ZodString>;
284
+ }, z.core.$strict>;
285
+ readonly response: z.ZodObject<{
286
+ object: z.ZodLiteral<"list">;
287
+ data: z.ZodArray<z.ZodObject<{
288
+ id: z.ZodString;
289
+ object: z.ZodLiteral<"refund">;
290
+ livemode: z.ZodBoolean;
291
+ external_ref: z.ZodNullable<z.ZodString>;
292
+ origin: z.ZodEnum<{
293
+ merchant: "merchant";
294
+ provider: "provider";
295
+ }>;
296
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
297
+ amount: z.ZodString;
298
+ currency: z.ZodEnum<{
299
+ FAIR: "FAIR";
300
+ EUR: "EUR";
301
+ USD: "USD";
302
+ GBP: "GBP";
303
+ CHF: "CHF";
304
+ SEK: "SEK";
305
+ NOK: "NOK";
306
+ DKK: "DKK";
307
+ PLN: "PLN";
308
+ CZK: "CZK";
309
+ CAD: "CAD";
310
+ AUD: "AUD";
311
+ JPY: "JPY";
312
+ }>;
313
+ status: z.ZodEnum<{
314
+ succeeded: "succeeded";
315
+ pending: "pending";
316
+ canceled: "canceled";
317
+ failed: "failed";
318
+ }>;
319
+ reason: z.ZodNullable<z.ZodEnum<{
320
+ duplicate: "duplicate";
321
+ fraudulent: "fraudulent";
322
+ requested_by_customer: "requested_by_customer";
323
+ }>>;
324
+ failure_code: z.ZodNullable<z.ZodString>;
325
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
326
+ created: z.ZodNumber;
327
+ updated_at: z.ZodNumber;
328
+ }, z.core.$strict>>;
329
+ has_more: z.ZodBoolean;
330
+ url: z.ZodString;
331
+ }, z.core.$strict>;
332
+ readonly sdk: "refunds.list";
333
+ readonly expandable: "refund";
334
+ }, {
335
+ readonly operationId: "retrieveRefund";
336
+ readonly method: "get";
337
+ readonly path: "/v1/refunds/{id}";
338
+ readonly tag: "Refunds";
339
+ readonly summary: "Retrieve a refund";
340
+ readonly auth: "service";
341
+ readonly scope: "payments:read";
342
+ readonly params: {
343
+ id: string;
344
+ };
345
+ readonly query: z.ZodObject<{
346
+ 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>>>;
347
+ }, z.core.$strict>;
348
+ readonly response: z.ZodObject<{
349
+ id: z.ZodString;
350
+ object: z.ZodLiteral<"refund">;
351
+ livemode: z.ZodBoolean;
352
+ external_ref: z.ZodNullable<z.ZodString>;
353
+ origin: z.ZodEnum<{
354
+ merchant: "merchant";
355
+ provider: "provider";
356
+ }>;
357
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
358
+ amount: z.ZodString;
359
+ currency: z.ZodEnum<{
360
+ FAIR: "FAIR";
361
+ EUR: "EUR";
362
+ USD: "USD";
363
+ GBP: "GBP";
364
+ CHF: "CHF";
365
+ SEK: "SEK";
366
+ NOK: "NOK";
367
+ DKK: "DKK";
368
+ PLN: "PLN";
369
+ CZK: "CZK";
370
+ CAD: "CAD";
371
+ AUD: "AUD";
372
+ JPY: "JPY";
373
+ }>;
374
+ status: z.ZodEnum<{
375
+ succeeded: "succeeded";
376
+ pending: "pending";
377
+ canceled: "canceled";
378
+ failed: "failed";
379
+ }>;
380
+ reason: z.ZodNullable<z.ZodEnum<{
381
+ duplicate: "duplicate";
382
+ fraudulent: "fraudulent";
383
+ requested_by_customer: "requested_by_customer";
384
+ }>>;
385
+ failure_code: z.ZodNullable<z.ZodString>;
386
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
387
+ created: z.ZodNumber;
388
+ updated_at: z.ZodNumber;
389
+ }, z.core.$strict>;
390
+ readonly sdk: "refunds.retrieve";
391
+ readonly expandable: "refund";
392
+ }, {
393
+ readonly operationId: "updateRefund";
394
+ readonly method: "post";
395
+ readonly path: "/v1/refunds/{id}";
396
+ readonly tag: "Refunds";
397
+ readonly summary: "Update a refund";
398
+ readonly auth: "service";
399
+ readonly scope: "payments:write";
400
+ readonly idempotent: true;
401
+ readonly params: {
402
+ id: string;
403
+ };
404
+ readonly body: z.ZodObject<{
405
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
406
+ }, z.core.$strict>;
407
+ readonly response: z.ZodObject<{
408
+ id: z.ZodString;
409
+ object: z.ZodLiteral<"refund">;
410
+ livemode: z.ZodBoolean;
411
+ external_ref: z.ZodNullable<z.ZodString>;
412
+ origin: z.ZodEnum<{
413
+ merchant: "merchant";
414
+ provider: "provider";
415
+ }>;
416
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
417
+ amount: z.ZodString;
418
+ currency: z.ZodEnum<{
419
+ FAIR: "FAIR";
420
+ EUR: "EUR";
421
+ USD: "USD";
422
+ GBP: "GBP";
423
+ CHF: "CHF";
424
+ SEK: "SEK";
425
+ NOK: "NOK";
426
+ DKK: "DKK";
427
+ PLN: "PLN";
428
+ CZK: "CZK";
429
+ CAD: "CAD";
430
+ AUD: "AUD";
431
+ JPY: "JPY";
432
+ }>;
433
+ status: z.ZodEnum<{
434
+ succeeded: "succeeded";
435
+ pending: "pending";
436
+ canceled: "canceled";
437
+ failed: "failed";
438
+ }>;
439
+ reason: z.ZodNullable<z.ZodEnum<{
440
+ duplicate: "duplicate";
441
+ fraudulent: "fraudulent";
442
+ requested_by_customer: "requested_by_customer";
443
+ }>>;
444
+ failure_code: z.ZodNullable<z.ZodString>;
445
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
446
+ created: z.ZodNumber;
447
+ updated_at: z.ZodNumber;
448
+ }, z.core.$strict>;
449
+ readonly sdk: "refunds.update";
450
+ }, {
451
+ readonly operationId: "cancelRefund";
452
+ readonly method: "post";
453
+ readonly path: "/v1/refunds/{id}/cancel";
454
+ readonly tag: "Refunds";
455
+ readonly summary: "Cancel a refund";
456
+ readonly description: "Only while the provider still holds it; otherwise 400 `refund_not_cancelable`.";
457
+ readonly auth: "service";
458
+ readonly scope: "payments:write";
459
+ readonly idempotent: true;
460
+ readonly params: {
461
+ id: string;
462
+ };
463
+ readonly body: z.ZodObject<{}, z.core.$strict>;
464
+ readonly response: z.ZodObject<{
465
+ id: z.ZodString;
466
+ object: z.ZodLiteral<"refund">;
467
+ livemode: z.ZodBoolean;
468
+ external_ref: z.ZodNullable<z.ZodString>;
469
+ origin: z.ZodEnum<{
470
+ merchant: "merchant";
471
+ provider: "provider";
472
+ }>;
473
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
474
+ amount: z.ZodString;
475
+ currency: z.ZodEnum<{
476
+ FAIR: "FAIR";
477
+ EUR: "EUR";
478
+ USD: "USD";
479
+ GBP: "GBP";
480
+ CHF: "CHF";
481
+ SEK: "SEK";
482
+ NOK: "NOK";
483
+ DKK: "DKK";
484
+ PLN: "PLN";
485
+ CZK: "CZK";
486
+ CAD: "CAD";
487
+ AUD: "AUD";
488
+ JPY: "JPY";
489
+ }>;
490
+ status: z.ZodEnum<{
491
+ succeeded: "succeeded";
492
+ pending: "pending";
493
+ canceled: "canceled";
494
+ failed: "failed";
495
+ }>;
496
+ reason: z.ZodNullable<z.ZodEnum<{
497
+ duplicate: "duplicate";
498
+ fraudulent: "fraudulent";
499
+ requested_by_customer: "requested_by_customer";
500
+ }>>;
501
+ failure_code: z.ZodNullable<z.ZodString>;
502
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
503
+ created: z.ZodNumber;
504
+ updated_at: z.ZodNumber;
505
+ }, z.core.$strict>;
506
+ readonly sdk: "refunds.cancel";
507
+ }, {
508
+ readonly operationId: "listPaymentIntentRefunds";
509
+ readonly method: "get";
510
+ readonly path: "/v1/payment_intents/{intentId}/refunds";
511
+ readonly tag: "Refunds";
512
+ readonly summary: "List a payment's refunds";
513
+ readonly auth: "service";
514
+ readonly scope: "payments:read";
515
+ readonly params: {
516
+ intentId: string;
517
+ };
518
+ readonly query: z.ZodObject<{
519
+ 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>>;
520
+ starting_after: z.ZodOptional<z.ZodString>;
521
+ ending_before: z.ZodOptional<z.ZodString>;
522
+ 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<{
523
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
524
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
525
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
526
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
527
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
528
+ gt?: number | undefined;
529
+ gte?: number | undefined;
530
+ lt?: number | undefined;
531
+ lte?: number | undefined;
532
+ }>>]>>;
533
+ 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>>>;
534
+ }, z.core.$strict>;
535
+ readonly response: z.ZodObject<{
536
+ object: z.ZodLiteral<"list">;
537
+ data: z.ZodArray<z.ZodObject<{
538
+ id: z.ZodString;
539
+ object: z.ZodLiteral<"refund">;
540
+ livemode: z.ZodBoolean;
541
+ external_ref: z.ZodNullable<z.ZodString>;
542
+ origin: z.ZodEnum<{
543
+ merchant: "merchant";
544
+ provider: "provider";
545
+ }>;
546
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
547
+ amount: z.ZodString;
548
+ currency: z.ZodEnum<{
549
+ FAIR: "FAIR";
550
+ EUR: "EUR";
551
+ USD: "USD";
552
+ GBP: "GBP";
553
+ CHF: "CHF";
554
+ SEK: "SEK";
555
+ NOK: "NOK";
556
+ DKK: "DKK";
557
+ PLN: "PLN";
558
+ CZK: "CZK";
559
+ CAD: "CAD";
560
+ AUD: "AUD";
561
+ JPY: "JPY";
562
+ }>;
563
+ status: z.ZodEnum<{
564
+ succeeded: "succeeded";
565
+ pending: "pending";
566
+ canceled: "canceled";
567
+ failed: "failed";
568
+ }>;
569
+ reason: z.ZodNullable<z.ZodEnum<{
570
+ duplicate: "duplicate";
571
+ fraudulent: "fraudulent";
572
+ requested_by_customer: "requested_by_customer";
573
+ }>>;
574
+ failure_code: z.ZodNullable<z.ZodString>;
575
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
576
+ created: z.ZodNumber;
577
+ updated_at: z.ZodNumber;
578
+ }, z.core.$strict>>;
579
+ has_more: z.ZodBoolean;
580
+ url: z.ZodString;
581
+ remaining_refundable: z.ZodString;
582
+ }, z.core.$strict>;
583
+ readonly sdk: "refunds.listForPaymentIntent";
584
+ readonly expandable: "refund";
585
+ }, {
586
+ readonly operationId: "retrievePaymentIntentSettlement";
587
+ readonly method: "get";
588
+ readonly path: "/v1/payment_intents/{intentId}/settlement";
589
+ readonly tag: "Refunds";
590
+ readonly summary: "Retrieve a payment's settlement";
591
+ readonly description: "Gross, fee and net, read live from the provider. A missing figure is `null` with a `status`, never `0`.";
592
+ readonly auth: "service";
593
+ readonly scope: "payments:read";
594
+ readonly params: {
595
+ intentId: string;
596
+ };
597
+ readonly query: z.ZodObject<{
598
+ 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>>>;
599
+ }, z.core.$strict>;
600
+ readonly response: z.ZodObject<{
601
+ object: z.ZodLiteral<"settlement">;
602
+ livemode: z.ZodBoolean;
603
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
604
+ status: z.ZodEnum<{
605
+ unknown: "unknown";
606
+ pending: "pending";
607
+ available: "available";
608
+ }>;
609
+ gross: z.ZodNullable<z.ZodString>;
610
+ fee: z.ZodNullable<z.ZodString>;
611
+ net: z.ZodNullable<z.ZodString>;
612
+ currency: z.ZodNullable<z.ZodString>;
613
+ available_on: z.ZodNullable<z.ZodNumber>;
614
+ exchange_rate: z.ZodNullable<z.ZodNumber>;
615
+ }, z.core.$strict>;
616
+ readonly sdk: "refunds.settlement";
617
+ readonly expandable: "settlement";
618
+ }, {
619
+ readonly operationId: "searchRefunds";
620
+ readonly method: "get";
621
+ readonly path: "/v1/refunds/search";
622
+ readonly tag: "Refunds";
623
+ readonly summary: "Search refunds";
624
+ readonly description: "Stripe's query language over `amount`, `currency`, `status`, `reason`, `payment_intent`, `created` and `metadata['key']`.";
625
+ readonly auth: "service";
626
+ readonly scope: "payments:read";
627
+ readonly query: z.ZodObject<{
628
+ query: z.ZodString;
629
+ 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>>;
630
+ page: z.ZodOptional<z.ZodString>;
631
+ 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>>>;
632
+ }, z.core.$strict>;
633
+ readonly response: z.ZodObject<{
634
+ object: z.ZodLiteral<"search_result">;
635
+ data: z.ZodArray<z.ZodObject<{
636
+ id: z.ZodString;
637
+ object: z.ZodLiteral<"refund">;
638
+ livemode: z.ZodBoolean;
639
+ external_ref: z.ZodNullable<z.ZodString>;
640
+ origin: z.ZodEnum<{
641
+ merchant: "merchant";
642
+ provider: "provider";
643
+ }>;
644
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
645
+ amount: z.ZodString;
646
+ currency: z.ZodEnum<{
647
+ FAIR: "FAIR";
648
+ EUR: "EUR";
649
+ USD: "USD";
650
+ GBP: "GBP";
651
+ CHF: "CHF";
652
+ SEK: "SEK";
653
+ NOK: "NOK";
654
+ DKK: "DKK";
655
+ PLN: "PLN";
656
+ CZK: "CZK";
657
+ CAD: "CAD";
658
+ AUD: "AUD";
659
+ JPY: "JPY";
660
+ }>;
661
+ status: z.ZodEnum<{
662
+ succeeded: "succeeded";
663
+ pending: "pending";
664
+ canceled: "canceled";
665
+ failed: "failed";
666
+ }>;
667
+ reason: z.ZodNullable<z.ZodEnum<{
668
+ duplicate: "duplicate";
669
+ fraudulent: "fraudulent";
670
+ requested_by_customer: "requested_by_customer";
671
+ }>>;
672
+ failure_code: z.ZodNullable<z.ZodString>;
673
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
674
+ created: z.ZodNumber;
675
+ updated_at: z.ZodNumber;
676
+ }, z.core.$strict>>;
677
+ has_more: z.ZodBoolean;
678
+ next_page: z.ZodNullable<z.ZodString>;
679
+ url: z.ZodString;
680
+ total_count: z.ZodOptional<z.ZodNumber>;
681
+ }, z.core.$strict>;
682
+ readonly sdk: "refunds.search";
683
+ readonly expandable: "refund";
684
+ }];