stripe 13.5.0 → 14.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 (641) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -3
  3. data/Gemfile +4 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +29 -0
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_operations/request.rb +1 -0
  8. data/lib/stripe/api_requestor.rb +3 -0
  9. data/lib/stripe/api_version.rb +1 -1
  10. data/lib/stripe/errors.rb +0 -7
  11. data/lib/stripe/object_types.rb +8 -2
  12. data/lib/stripe/request_params.rb +24 -0
  13. data/lib/stripe/resources/account.rb +4634 -0
  14. data/lib/stripe/resources/account_link.rb +54 -0
  15. data/lib/stripe/resources/account_session.rb +739 -0
  16. data/lib/stripe/resources/apple_pay_domain.rb +54 -0
  17. data/lib/stripe/resources/application.rb +20 -0
  18. data/lib/stripe/resources/application_fee.rb +87 -0
  19. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  20. data/lib/stripe/resources/apps/secret.rb +141 -0
  21. data/lib/stripe/resources/balance.rb +122 -0
  22. data/lib/stripe/resources/balance_transaction.rb +103 -0
  23. data/lib/stripe/resources/bank_account.rb +84 -2
  24. data/lib/stripe/resources/billing/alert.rb +135 -0
  25. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  26. data/lib/stripe/resources/billing/credit_balance_summary.rb +40 -0
  27. data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
  28. data/lib/stripe/resources/billing/credit_grant.rb +217 -0
  29. data/lib/stripe/resources/billing/meter.rb +169 -0
  30. data/lib/stripe/resources/billing/meter_event.rb +35 -0
  31. data/lib/stripe/resources/billing/meter_event_adjustment.rb +43 -0
  32. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  33. data/lib/stripe/resources/billing_portal/configuration.rb +553 -0
  34. data/lib/stripe/resources/billing_portal/session.rb +271 -0
  35. data/lib/stripe/resources/capability.rb +84 -0
  36. data/lib/stripe/resources/card.rb +77 -0
  37. data/lib/stripe/resources/cash_balance.rb +17 -0
  38. data/lib/stripe/resources/charge.rb +1612 -0
  39. data/lib/stripe/resources/checkout/session.rb +3530 -6
  40. data/lib/stripe/resources/climate/order.rb +167 -0
  41. data/lib/stripe/resources/climate/product.rb +47 -0
  42. data/lib/stripe/resources/climate/supplier.rb +45 -0
  43. data/lib/stripe/resources/confirmation_token.rb +1448 -0
  44. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  45. data/lib/stripe/resources/country_spec.rb +54 -0
  46. data/lib/stripe/resources/coupon.rb +189 -0
  47. data/lib/stripe/resources/credit_note.rb +639 -0
  48. data/lib/stripe/resources/credit_note_line_item.rb +67 -0
  49. data/lib/stripe/resources/customer.rb +824 -0
  50. data/lib/stripe/resources/customer_balance_transaction.rb +29 -0
  51. data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
  52. data/lib/stripe/resources/customer_session.rb +159 -0
  53. data/lib/stripe/resources/discount.rb +29 -0
  54. data/lib/stripe/resources/dispute.rb +610 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement.rb +37 -0
  56. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  57. data/lib/stripe/resources/entitlements/feature.rb +81 -0
  58. data/lib/stripe/resources/ephemeral_key.rb +21 -0
  59. data/lib/stripe/resources/event.rb +90 -0
  60. data/lib/stripe/resources/exchange_rate.rb +24 -0
  61. data/lib/stripe/resources/file.rb +102 -0
  62. data/lib/stripe/resources/file_link.rb +103 -0
  63. data/lib/stripe/resources/financial_connections/account.rb +237 -0
  64. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  65. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  66. data/lib/stripe/resources/financial_connections/session.rb +95 -0
  67. data/lib/stripe/resources/financial_connections/transaction.rb +92 -0
  68. data/lib/stripe/resources/forwarding/request.rb +156 -0
  69. data/lib/stripe/resources/funding_instructions.rb +308 -0
  70. data/lib/stripe/resources/identity/verification_report.rb +257 -0
  71. data/lib/stripe/resources/identity/verification_session.rb +352 -0
  72. data/lib/stripe/resources/invoice.rb +3204 -21
  73. data/lib/stripe/resources/invoice_item.rb +400 -0
  74. data/lib/stripe/resources/invoice_line_item.rb +350 -0
  75. data/lib/stripe/resources/invoice_payment.rb +105 -0
  76. data/lib/stripe/resources/invoice_rendering_template.rb +55 -0
  77. data/lib/stripe/resources/issuing/authorization.rb +1104 -0
  78. data/lib/stripe/resources/issuing/card.rb +657 -0
  79. data/lib/stripe/resources/issuing/cardholder.rb +648 -0
  80. data/lib/stripe/resources/issuing/dispute.rb +781 -0
  81. data/lib/stripe/resources/issuing/personalization_design.rb +276 -0
  82. data/lib/stripe/resources/issuing/physical_bundle.rb +54 -0
  83. data/lib/stripe/resources/issuing/token.rb +166 -0
  84. data/lib/stripe/resources/issuing/transaction.rb +912 -0
  85. data/lib/stripe/resources/line_item.rb +47 -0
  86. data/lib/stripe/resources/login_link.rb +7 -0
  87. data/lib/stripe/resources/mandate.rb +142 -0
  88. data/lib/stripe/resources/payment_intent.rb +8650 -0
  89. data/lib/stripe/resources/payment_link.rb +1632 -0
  90. data/lib/stripe/resources/payment_method.rb +1542 -0
  91. data/lib/stripe/resources/payment_method_configuration.rb +2776 -0
  92. data/lib/stripe/resources/payment_method_domain.rb +150 -6
  93. data/lib/stripe/resources/payout.rb +209 -0
  94. data/lib/stripe/resources/person.rb +264 -1
  95. data/lib/stripe/resources/plan.rb +302 -0
  96. data/lib/stripe/resources/price.rb +605 -1
  97. data/lib/stripe/resources/product.rb +472 -0
  98. data/lib/stripe/resources/product_feature.rb +12 -0
  99. data/lib/stripe/resources/promotion_code.rb +212 -0
  100. data/lib/stripe/resources/quote.rb +917 -0
  101. data/lib/stripe/resources/radar/early_fraud_warning.rb +68 -0
  102. data/lib/stripe/resources/radar/value_list.rb +116 -0
  103. data/lib/stripe/resources/radar/value_list_item.rb +86 -0
  104. data/lib/stripe/resources/refund.rb +392 -0
  105. data/lib/stripe/resources/reporting/report_run.rb +141 -0
  106. data/lib/stripe/resources/reporting/report_type.rb +27 -0
  107. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  108. data/lib/stripe/resources/reversal.rb +21 -0
  109. data/lib/stripe/resources/review.rb +99 -0
  110. data/lib/stripe/resources/setup_attempt.rb +368 -0
  111. data/lib/stripe/resources/setup_intent.rb +3473 -0
  112. data/lib/stripe/resources/shipping_rate.rb +250 -0
  113. data/lib/stripe/resources/sigma/scheduled_query_run.rb +45 -0
  114. data/lib/stripe/resources/source.rb +1198 -0
  115. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  116. data/lib/stripe/resources/source_transaction.rb +85 -0
  117. data/lib/stripe/resources/subscription.rb +1686 -0
  118. data/lib/stripe/resources/subscription_item.rb +313 -5
  119. data/lib/stripe/resources/subscription_schedule.rb +1281 -0
  120. data/lib/stripe/resources/tax/calculation.rb +378 -0
  121. data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
  122. data/lib/stripe/resources/tax/registration.rb +2373 -0
  123. data/lib/stripe/resources/tax/settings.rb +117 -0
  124. data/lib/stripe/resources/tax/transaction.rb +258 -0
  125. data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
  126. data/lib/stripe/resources/tax_code.rb +26 -0
  127. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  128. data/lib/stripe/resources/tax_id.rb +112 -0
  129. data/lib/stripe/resources/tax_rate.rb +191 -0
  130. data/lib/stripe/resources/terminal/configuration.rb +1260 -0
  131. data/lib/stripe/resources/terminal/connection_token.rb +18 -0
  132. data/lib/stripe/resources/terminal/location.rb +166 -0
  133. data/lib/stripe/resources/terminal/reader.rb +427 -0
  134. data/lib/stripe/resources/test_helpers/test_clock.rb +77 -0
  135. data/lib/stripe/resources/token.rb +1159 -0
  136. data/lib/stripe/resources/topup.rb +165 -0
  137. data/lib/stripe/resources/transfer.rb +144 -0
  138. data/lib/stripe/resources/treasury/credit_reversal.rb +83 -0
  139. data/lib/stripe/resources/treasury/debit_reversal.rb +94 -0
  140. data/lib/stripe/resources/treasury/financial_account.rb +725 -1
  141. data/lib/stripe/resources/treasury/financial_account_features.rb +189 -0
  142. data/lib/stripe/resources/treasury/inbound_transfer.rb +226 -0
  143. data/lib/stripe/resources/treasury/outbound_payment.rb +486 -0
  144. data/lib/stripe/resources/treasury/outbound_transfer.rb +341 -0
  145. data/lib/stripe/resources/treasury/received_credit.rb +237 -0
  146. data/lib/stripe/resources/treasury/received_debit.rb +196 -0
  147. data/lib/stripe/resources/treasury/transaction.rb +167 -0
  148. data/lib/stripe/resources/treasury/transaction_entry.rb +148 -0
  149. data/lib/stripe/resources/v2/amount.rb +9 -0
  150. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  151. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +21 -0
  152. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  153. data/lib/stripe/resources/v2/event.rb +28 -0
  154. data/lib/stripe/resources/v2/event_destination.rb +60 -0
  155. data/lib/stripe/resources/webhook_endpoint.rb +113 -0
  156. data/lib/stripe/resources.rb +8 -2
  157. data/lib/stripe/services/account_capability_service.rb +32 -0
  158. data/lib/stripe/services/account_external_account_service.rb +250 -0
  159. data/lib/stripe/services/account_link_service.rb +46 -0
  160. data/lib/stripe/services/account_login_link_service.rb +9 -0
  161. data/lib/stripe/services/account_person_service.rb +875 -0
  162. data/lib/stripe/services/account_service.rb +4000 -0
  163. data/lib/stripe/services/account_session_service.rb +484 -0
  164. data/lib/stripe/services/apple_pay_domain_service.rb +51 -0
  165. data/lib/stripe/services/application_fee_refund_service.rb +54 -0
  166. data/lib/stripe/services/application_fee_service.rb +57 -0
  167. data/lib/stripe/services/apps/secret_service.rb +116 -0
  168. data/lib/stripe/services/balance_service.rb +9 -0
  169. data/lib/stripe/services/balance_transaction_service.rb +69 -0
  170. data/lib/stripe/services/billing/alert_service.rb +113 -0
  171. data/lib/stripe/services/billing/credit_balance_summary_service.rb +48 -0
  172. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +40 -0
  173. data/lib/stripe/services/billing/credit_grant_service.rb +166 -0
  174. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +26 -0
  175. data/lib/stripe/services/billing/meter_event_service.rb +21 -0
  176. data/lib/stripe/services/billing/meter_event_summary_service.rb +39 -0
  177. data/lib/stripe/services/billing/meter_service.rb +130 -0
  178. data/lib/stripe/services/billing_portal/configuration_service.rb +444 -0
  179. data/lib/stripe/services/billing_portal/session_service.rb +173 -0
  180. data/lib/stripe/services/charge_service.rb +402 -0
  181. data/lib/stripe/services/checkout/session_line_item_service.rb +18 -0
  182. data/lib/stripe/services/checkout/session_service.rb +2399 -5
  183. data/lib/stripe/services/climate/order_service.rb +102 -0
  184. data/lib/stripe/services/climate/product_service.rb +27 -0
  185. data/lib/stripe/services/climate/supplier_service.rb +27 -0
  186. data/lib/stripe/services/confirmation_token_service.rb +9 -0
  187. data/lib/stripe/services/country_spec_service.rb +27 -0
  188. data/lib/stripe/services/coupon_service.rb +152 -0
  189. data/lib/stripe/services/credit_note_line_item_service.rb +18 -0
  190. data/lib/stripe/services/credit_note_preview_lines_service.rb +152 -0
  191. data/lib/stripe/services/credit_note_service.rb +365 -0
  192. data/lib/stripe/services/customer_balance_transaction_service.rb +63 -0
  193. data/lib/stripe/services/customer_cash_balance_service.rb +29 -0
  194. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +27 -0
  195. data/lib/stripe/services/customer_funding_instructions_service.rb +42 -0
  196. data/lib/stripe/services/customer_payment_method_service.rb +40 -0
  197. data/lib/stripe/services/customer_payment_source_service.rb +179 -0
  198. data/lib/stripe/services/customer_service.rb +577 -0
  199. data/lib/stripe/services/customer_session_service.rb +96 -0
  200. data/lib/stripe/services/customer_tax_id_service.rb +45 -0
  201. data/lib/stripe/services/dispute_service.rb +374 -0
  202. data/lib/stripe/services/entitlements/active_entitlement_service.rb +36 -0
  203. data/lib/stripe/services/entitlements/feature_service.rb +76 -0
  204. data/lib/stripe/services/ephemeral_key_service.rb +36 -0
  205. data/lib/stripe/services/event_service.rb +65 -0
  206. data/lib/stripe/services/exchange_rate_service.rb +27 -0
  207. data/lib/stripe/services/file_link_service.rb +94 -0
  208. data/lib/stripe/services/file_service.rb +89 -0
  209. data/lib/stripe/services/financial_connections/account_owner_service.rb +27 -0
  210. data/lib/stripe/services/financial_connections/account_service.rb +96 -0
  211. data/lib/stripe/services/financial_connections/session_service.rb +68 -0
  212. data/lib/stripe/services/financial_connections/transaction_service.rb +70 -0
  213. data/lib/stripe/services/forwarding/request_service.rb +106 -0
  214. data/lib/stripe/services/identity/verification_report_service.rb +65 -0
  215. data/lib/stripe/services/identity/verification_session_service.rb +231 -0
  216. data/lib/stripe/services/invoice_item_service.rb +334 -0
  217. data/lib/stripe/services/invoice_line_item_service.rb +221 -0
  218. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  219. data/lib/stripe/services/invoice_rendering_template_service.rb +51 -0
  220. data/lib/stripe/services/invoice_service.rb +2648 -19
  221. data/lib/stripe/services/issuing/authorization_service.rb +104 -0
  222. data/lib/stripe/services/issuing/card_service.rb +455 -0
  223. data/lib/stripe/services/issuing/cardholder_service.rb +525 -0
  224. data/lib/stripe/services/issuing/dispute_service.rb +633 -0
  225. data/lib/stripe/services/issuing/personalization_design_service.rb +193 -0
  226. data/lib/stripe/services/issuing/physical_bundle_service.rb +40 -0
  227. data/lib/stripe/services/issuing/token_service.rb +73 -0
  228. data/lib/stripe/services/issuing/transaction_service.rb +77 -0
  229. data/lib/stripe/services/mandate_service.rb +9 -0
  230. data/lib/stripe/services/payment_intent_service.rb +7054 -0
  231. data/lib/stripe/services/payment_link_line_item_service.rb +18 -0
  232. data/lib/stripe/services/payment_link_service.rb +1276 -0
  233. data/lib/stripe/services/payment_method_configuration_service.rb +2004 -0
  234. data/lib/stripe/services/payment_method_domain_service.rb +79 -3
  235. data/lib/stripe/services/payment_method_service.rb +808 -0
  236. data/lib/stripe/services/payout_service.rb +159 -0
  237. data/lib/stripe/services/plan_service.rb +249 -0
  238. data/lib/stripe/services/price_service.rb +494 -1
  239. data/lib/stripe/services/product_feature_service.rb +42 -0
  240. data/lib/stripe/services/product_service.rb +425 -0
  241. data/lib/stripe/services/promotion_code_service.rb +178 -0
  242. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +18 -0
  243. data/lib/stripe/services/quote_line_item_service.rb +18 -0
  244. data/lib/stripe/services/quote_service.rb +611 -0
  245. data/lib/stripe/services/radar/early_fraud_warning_service.rb +61 -0
  246. data/lib/stripe/services/radar/value_list_item_service.rb +79 -0
  247. data/lib/stripe/services/radar/value_list_service.rb +103 -0
  248. data/lib/stripe/services/refund_service.rb +137 -0
  249. data/lib/stripe/services/reporting/report_run_service.rb +106 -0
  250. data/lib/stripe/services/reporting/report_type_service.rb +18 -0
  251. data/lib/stripe/services/review_service.rb +56 -0
  252. data/lib/stripe/services/setup_attempt_service.rb +51 -0
  253. data/lib/stripe/services/setup_intent_service.rb +3163 -0
  254. data/lib/stripe/services/shipping_rate_service.rb +200 -0
  255. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +27 -0
  256. data/lib/stripe/services/source_service.rb +601 -0
  257. data/lib/stripe/services/source_transaction_service.rb +18 -0
  258. data/lib/stripe/services/subscription_item_service.rb +282 -5
  259. data/lib/stripe/services/subscription_schedule_service.rb +1062 -0
  260. data/lib/stripe/services/subscription_service.rb +1412 -0
  261. data/lib/stripe/services/tax/calculation_line_item_service.rb +18 -0
  262. data/lib/stripe/services/tax/calculation_service.rb +205 -0
  263. data/lib/stripe/services/tax/registration_service.rb +1564 -0
  264. data/lib/stripe/services/tax/settings_service.rb +74 -0
  265. data/lib/stripe/services/tax/transaction_line_item_service.rb +18 -0
  266. data/lib/stripe/services/tax/transaction_service.rb +111 -0
  267. data/lib/stripe/services/tax_code_service.rb +27 -0
  268. data/lib/stripe/services/tax_id_service.rb +79 -0
  269. data/lib/stripe/services/tax_rate_service.rb +155 -0
  270. data/lib/stripe/services/terminal/configuration_service.rb +997 -0
  271. data/lib/stripe/services/terminal/connection_token_service.rb +12 -0
  272. data/lib/stripe/services/terminal/location_service.rb +144 -0
  273. data/lib/stripe/services/terminal/reader_service.rb +266 -0
  274. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +642 -0
  275. data/lib/stripe/services/test_helpers/customer_service.rb +18 -0
  276. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +745 -0
  277. data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
  278. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +41 -0
  279. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +632 -0
  280. data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
  281. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +44 -0
  282. data/lib/stripe/services/test_helpers/test_clock_service.rb +57 -0
  283. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +38 -0
  284. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +87 -0
  285. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +87 -0
  286. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +60 -0
  287. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +60 -0
  288. data/lib/stripe/services/token_service.rb +1140 -0
  289. data/lib/stripe/services/topup_service.rb +142 -0
  290. data/lib/stripe/services/transfer_reversal_service.rb +66 -0
  291. data/lib/stripe/services/transfer_service.rb +119 -0
  292. data/lib/stripe/services/treasury/credit_reversal_service.rb +59 -0
  293. data/lib/stripe/services/treasury/debit_reversal_service.rb +63 -0
  294. data/lib/stripe/services/treasury/financial_account_features_service.rb +166 -0
  295. data/lib/stripe/services/treasury/financial_account_service.rb +485 -1
  296. data/lib/stripe/services/treasury/inbound_transfer_service.rb +88 -0
  297. data/lib/stripe/services/treasury/outbound_payment_service.rb +258 -0
  298. data/lib/stripe/services/treasury/outbound_transfer_service.rb +124 -0
  299. data/lib/stripe/services/treasury/received_credit_service.rb +52 -0
  300. data/lib/stripe/services/treasury/received_debit_service.rb +40 -0
  301. data/lib/stripe/services/treasury/transaction_entry_service.rb +87 -0
  302. data/lib/stripe/services/treasury/transaction_service.rb +95 -0
  303. data/lib/stripe/services/v1_services.rb +2 -1
  304. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +23 -0
  305. data/lib/stripe/services/v2/billing/meter_event_service.rb +25 -0
  306. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
  307. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +33 -0
  308. data/lib/stripe/services/v2/core/event_destination_service.rb +143 -0
  309. data/lib/stripe/services/v2/core/event_service.rb +15 -0
  310. data/lib/stripe/services/webhook_endpoint_service.rb +96 -0
  311. data/lib/stripe/services.rb +1 -3
  312. data/lib/stripe/stripe_client.rb +2 -1
  313. data/lib/stripe/stripe_object.rb +5 -0
  314. data/lib/stripe/version.rb +1 -1
  315. data/lib/stripe.rb +1 -0
  316. data/rbi/stripe/resources/account.rbi +4840 -0
  317. data/rbi/stripe/resources/account_link.rbi +74 -0
  318. data/rbi/stripe/resources/account_session.rbi +894 -0
  319. data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
  320. data/rbi/stripe/resources/application.rbi +20 -0
  321. data/rbi/stripe/resources/application_fee.rbi +118 -0
  322. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  323. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  324. data/rbi/stripe/resources/balance.rbi +180 -0
  325. data/rbi/stripe/resources/balance_transaction.rbi +144 -0
  326. data/rbi/stripe/resources/bank_account.rbi +127 -0
  327. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  328. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  329. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  330. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  331. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  332. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  333. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  334. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  335. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  336. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  337. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  338. data/rbi/stripe/resources/capability.rbi +125 -0
  339. data/rbi/stripe/resources/card.rbi +125 -0
  340. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  341. data/rbi/stripe/resources/charge.rbi +2054 -0
  342. data/rbi/stripe/resources/checkout/session.rbi +3951 -0
  343. data/rbi/stripe/resources/climate/order.rbi +245 -0
  344. data/rbi/stripe/resources/climate/product.rbi +75 -0
  345. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  346. data/rbi/stripe/resources/confirmation_token.rbi +1793 -0
  347. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  348. data/rbi/stripe/resources/country_spec.rbi +85 -0
  349. data/rbi/stripe/resources/coupon.rbi +252 -0
  350. data/rbi/stripe/resources/credit_note.rbi +747 -0
  351. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  352. data/rbi/stripe/resources/customer.rbi +1009 -0
  353. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  354. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  355. data/rbi/stripe/resources/customer_session.rbi +200 -0
  356. data/rbi/stripe/resources/discount.rbi +53 -0
  357. data/rbi/stripe/resources/dispute.rbi +761 -0
  358. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  359. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  360. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  361. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  362. data/rbi/stripe/resources/event.rbi +146 -0
  363. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  364. data/rbi/stripe/resources/file.rbi +143 -0
  365. data/rbi/stripe/resources/file_link.rbi +141 -0
  366. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  367. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  368. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  369. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  370. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  371. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  372. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  373. data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
  374. data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
  375. data/rbi/stripe/resources/invoice.rbi +3733 -0
  376. data/rbi/stripe/resources/invoice_item.rbi +475 -0
  377. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  378. data/rbi/stripe/resources/invoice_payment.rbi +114 -0
  379. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  380. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  381. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  382. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  383. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  384. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  385. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  386. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  387. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  388. data/rbi/stripe/resources/line_item.rbi +72 -0
  389. data/rbi/stripe/resources/login_link.rbi +18 -0
  390. data/rbi/stripe/resources/mandate.rbi +187 -0
  391. data/rbi/stripe/resources/payment_intent.rbi +9731 -0
  392. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  393. data/rbi/stripe/resources/payment_method.rbi +1822 -0
  394. data/rbi/stripe/resources/payment_method_configuration.rbi +3154 -0
  395. data/rbi/stripe/resources/payment_method_domain.rbi +212 -0
  396. data/rbi/stripe/resources/payout.rbi +300 -0
  397. data/rbi/stripe/resources/person.rbi +371 -0
  398. data/rbi/stripe/resources/plan.rbi +373 -0
  399. data/rbi/stripe/resources/price.rbi +694 -0
  400. data/rbi/stripe/resources/product.rbi +557 -0
  401. data/rbi/stripe/resources/product_feature.rbi +26 -0
  402. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  403. data/rbi/stripe/resources/quote.rbi +1123 -0
  404. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  405. data/rbi/stripe/resources/radar/value_list.rbi +170 -0
  406. data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
  407. data/rbi/stripe/resources/refund.rbi +516 -0
  408. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  409. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  410. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  411. data/rbi/stripe/resources/reversal.rbi +51 -0
  412. data/rbi/stripe/resources/review.rbi +154 -0
  413. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  414. data/rbi/stripe/resources/setup_intent.rbi +3860 -0
  415. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  416. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  417. data/rbi/stripe/resources/source.rbi +1496 -0
  418. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  419. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  420. data/rbi/stripe/resources/subscription.rbi +1964 -0
  421. data/rbi/stripe/resources/subscription_item.rbi +370 -0
  422. data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
  423. data/rbi/stripe/resources/tax/calculation.rbi +474 -0
  424. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  425. data/rbi/stripe/resources/tax/registration.rbi +2485 -0
  426. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  427. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  428. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  429. data/rbi/stripe/resources/tax_code.rbi +44 -0
  430. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  431. data/rbi/stripe/resources/tax_id.rbi +167 -0
  432. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  433. data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
  434. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  435. data/rbi/stripe/resources/terminal/location.rbi +224 -0
  436. data/rbi/stripe/resources/terminal/reader.rbi +587 -0
  437. data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
  438. data/rbi/stripe/resources/token.rbi +1217 -0
  439. data/rbi/stripe/resources/topup.rbi +222 -0
  440. data/rbi/stripe/resources/transfer.rbi +199 -0
  441. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  442. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  443. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  444. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  445. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  446. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  447. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  448. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  449. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  450. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  451. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  452. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  453. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  454. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  455. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  456. data/rbi/stripe/resources/v2/event.rbi +48 -0
  457. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  458. data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
  459. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  460. data/rbi/stripe/services/account_external_account_service.rbi +306 -0
  461. data/rbi/stripe/services/account_link_service.rbi +58 -0
  462. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  463. data/rbi/stripe/services/account_person_service.rbi +923 -0
  464. data/rbi/stripe/services/account_service.rbi +4143 -0
  465. data/rbi/stripe/services/account_session_service.rbi +572 -0
  466. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  467. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  468. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  469. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  470. data/rbi/stripe/services/apps_service.rbi +9 -0
  471. data/rbi/stripe/services/balance_service.rbi +21 -0
  472. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  473. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  474. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  475. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  476. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  477. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  478. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  479. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  480. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  481. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  482. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  483. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  484. data/rbi/stripe/services/billing_service.rbi +15 -0
  485. data/rbi/stripe/services/charge_service.rbi +448 -0
  486. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  487. data/rbi/stripe/services/checkout/session_service.rbi +2585 -0
  488. data/rbi/stripe/services/checkout_service.rbi +9 -0
  489. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  490. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  491. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  492. data/rbi/stripe/services/climate_service.rbi +11 -0
  493. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  494. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  495. data/rbi/stripe/services/coupon_service.rbi +196 -0
  496. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  497. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  498. data/rbi/stripe/services/credit_note_service.rbi +416 -0
  499. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  500. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  501. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  502. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  503. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  504. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  505. data/rbi/stripe/services/customer_service.rbi +651 -0
  506. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  507. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  508. data/rbi/stripe/services/dispute_service.rbi +424 -0
  509. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  510. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  511. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  512. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  513. data/rbi/stripe/services/event_service.rbi +83 -0
  514. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  515. data/rbi/stripe/services/file_link_service.rbi +124 -0
  516. data/rbi/stripe/services/file_service.rbi +116 -0
  517. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  518. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  519. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  520. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  521. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  522. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  523. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  524. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  525. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  526. data/rbi/stripe/services/identity_service.rbi +10 -0
  527. data/rbi/stripe/services/invoice_item_service.rbi +368 -0
  528. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  529. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  530. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  531. data/rbi/stripe/services/invoice_service.rbi +2920 -0
  532. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  533. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  534. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  535. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  536. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  537. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  538. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  539. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  540. data/rbi/stripe/services/issuing_service.rbi +16 -0
  541. data/rbi/stripe/services/mandate_service.rbi +20 -0
  542. data/rbi/stripe/services/payment_intent_service.rbi +7759 -0
  543. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  544. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  545. data/rbi/stripe/services/payment_method_configuration_service.rbi +2211 -0
  546. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  547. data/rbi/stripe/services/payment_method_service.rbi +840 -0
  548. data/rbi/stripe/services/payout_service.rbi +205 -0
  549. data/rbi/stripe/services/plan_service.rbi +284 -0
  550. data/rbi/stripe/services/price_service.rbi +546 -0
  551. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  552. data/rbi/stripe/services/product_service.rbi +479 -0
  553. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  554. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  555. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  556. data/rbi/stripe/services/quote_service.rbi +686 -0
  557. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  558. data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
  559. data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
  560. data/rbi/stripe/services/radar_service.rbi +11 -0
  561. data/rbi/stripe/services/refund_service.rbi +185 -0
  562. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  563. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  564. data/rbi/stripe/services/reporting_service.rbi +10 -0
  565. data/rbi/stripe/services/review_service.rbi +84 -0
  566. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  567. data/rbi/stripe/services/setup_intent_service.rbi +3596 -0
  568. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  569. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  570. data/rbi/stripe/services/sigma_service.rbi +9 -0
  571. data/rbi/stripe/services/source_service.rbi +663 -0
  572. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  573. data/rbi/stripe/services/subscription_item_service.rbi +324 -0
  574. data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
  575. data/rbi/stripe/services/subscription_service.rbi +1596 -0
  576. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  577. data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
  578. data/rbi/stripe/services/tax/registration_service.rbi +1689 -0
  579. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  580. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  581. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  582. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  583. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  584. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  585. data/rbi/stripe/services/tax_service.rbi +12 -0
  586. data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
  587. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  588. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  589. data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
  590. data/rbi/stripe/services/terminal_service.rbi +12 -0
  591. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
  592. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  593. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  594. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  595. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  596. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  597. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  598. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  599. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  600. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  601. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
  602. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  603. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  604. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  605. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  606. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  607. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  608. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  609. data/rbi/stripe/services/token_service.rbi +1189 -0
  610. data/rbi/stripe/services/topup_service.rbi +176 -0
  611. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  612. data/rbi/stripe/services/transfer_service.rbi +152 -0
  613. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  614. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  615. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  616. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  617. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  618. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  619. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  620. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  621. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  622. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  623. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  624. data/rbi/stripe/services/treasury_service.rbi +18 -0
  625. data/rbi/stripe/services/v1_services.rbi +77 -0
  626. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  627. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  628. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  629. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  630. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  631. data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
  632. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  633. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  634. data/rbi/stripe/services/v2_services.rbi +10 -0
  635. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  636. metadata +333 -7
  637. data/lib/stripe/resources/usage_record.rb +0 -17
  638. data/lib/stripe/resources/usage_record_summary.rb +0 -12
  639. data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
  640. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
  641. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
@@ -15,6 +15,1454 @@ module Stripe
15
15
  "confirmation_token"
16
16
  end
17
17
 
18
+ class MandateData < Stripe::StripeObject
19
+ class CustomerAcceptance < Stripe::StripeObject
20
+ class Online < Stripe::StripeObject
21
+ # The IP address from which the Mandate was accepted by the customer.
22
+ attr_reader :ip_address
23
+ # The user agent of the browser from which the Mandate was accepted by the customer.
24
+ attr_reader :user_agent
25
+ end
26
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
27
+ attr_reader :online
28
+ # The type of customer acceptance information included with the Mandate.
29
+ attr_reader :type
30
+ end
31
+ # This hash contains details about the customer acceptance of the Mandate.
32
+ attr_reader :customer_acceptance
33
+ end
34
+
35
+ class PaymentMethodOptions < Stripe::StripeObject
36
+ class Card < Stripe::StripeObject
37
+ # The `cvc_update` Token collected from the Payment Element.
38
+ attr_reader :cvc_token
39
+ end
40
+ # This hash contains the card payment method options.
41
+ attr_reader :card
42
+ end
43
+
44
+ class PaymentMethodPreview < Stripe::StripeObject
45
+ class AcssDebit < Stripe::StripeObject
46
+ # Name of the bank associated with the bank account.
47
+ attr_reader :bank_name
48
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
49
+ attr_reader :fingerprint
50
+ # Institution number of the bank account.
51
+ attr_reader :institution_number
52
+ # Last four digits of the bank account number.
53
+ attr_reader :last4
54
+ # Transit number of the bank account.
55
+ attr_reader :transit_number
56
+ end
57
+
58
+ class Affirm < Stripe::StripeObject; end
59
+ class AfterpayClearpay < Stripe::StripeObject; end
60
+ class Alipay < Stripe::StripeObject; end
61
+ class Alma < Stripe::StripeObject; end
62
+ class AmazonPay < Stripe::StripeObject; end
63
+
64
+ class AuBecsDebit < Stripe::StripeObject
65
+ # Six-digit number identifying bank and branch associated with this bank account.
66
+ attr_reader :bsb_number
67
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
68
+ attr_reader :fingerprint
69
+ # Last four digits of the bank account number.
70
+ attr_reader :last4
71
+ end
72
+
73
+ class BacsDebit < Stripe::StripeObject
74
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
75
+ attr_reader :fingerprint
76
+ # Last four digits of the bank account number.
77
+ attr_reader :last4
78
+ # Sort code of the bank account. (e.g., `10-20-30`)
79
+ attr_reader :sort_code
80
+ end
81
+
82
+ class Bancontact < Stripe::StripeObject; end
83
+ class Billie < Stripe::StripeObject; end
84
+
85
+ class BillingDetails < Stripe::StripeObject
86
+ class Address < Stripe::StripeObject
87
+ # City, district, suburb, town, or village.
88
+ attr_reader :city
89
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
90
+ attr_reader :country
91
+ # Address line 1 (e.g., street, PO Box, or company name).
92
+ attr_reader :line1
93
+ # Address line 2 (e.g., apartment, suite, unit, or building).
94
+ attr_reader :line2
95
+ # ZIP or postal code.
96
+ attr_reader :postal_code
97
+ # State, county, province, or region.
98
+ attr_reader :state
99
+ end
100
+ # Billing address.
101
+ attr_reader :address
102
+ # Email address.
103
+ attr_reader :email
104
+ # Full name.
105
+ attr_reader :name
106
+ # Billing phone number (including extension).
107
+ attr_reader :phone
108
+ end
109
+
110
+ class Blik < Stripe::StripeObject; end
111
+
112
+ class Boleto < Stripe::StripeObject
113
+ # Uniquely identifies the customer tax id (CNPJ or CPF)
114
+ attr_reader :tax_id
115
+ end
116
+
117
+ class Card < Stripe::StripeObject
118
+ class Checks < Stripe::StripeObject
119
+ # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
120
+ attr_reader :address_line1_check
121
+ # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
122
+ attr_reader :address_postal_code_check
123
+ # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
124
+ attr_reader :cvc_check
125
+ end
126
+
127
+ class GeneratedFrom < Stripe::StripeObject
128
+ class PaymentMethodDetails < Stripe::StripeObject
129
+ class CardPresent < Stripe::StripeObject
130
+ class Offline < Stripe::StripeObject
131
+ # Time at which the payment was collected while offline
132
+ attr_reader :stored_at
133
+ # The method used to process this payment method offline. Only deferred is allowed.
134
+ attr_reader :type
135
+ end
136
+
137
+ class Receipt < Stripe::StripeObject
138
+ # The type of account being debited or credited
139
+ attr_reader :account_type
140
+ # EMV tag 9F26, cryptogram generated by the integrated circuit chip.
141
+ attr_reader :application_cryptogram
142
+ # Mnenomic of the Application Identifier.
143
+ attr_reader :application_preferred_name
144
+ # Identifier for this transaction.
145
+ attr_reader :authorization_code
146
+ # EMV tag 8A. A code returned by the card issuer.
147
+ attr_reader :authorization_response_code
148
+ # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
149
+ attr_reader :cardholder_verification_method
150
+ # EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
151
+ attr_reader :dedicated_file_name
152
+ # The outcome of a series of EMV functions performed by the card reader.
153
+ attr_reader :terminal_verification_results
154
+ # An indication of various EMV functions performed during the transaction.
155
+ attr_reader :transaction_status_information
156
+ end
157
+
158
+ class Wallet < Stripe::StripeObject
159
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
160
+ attr_reader :type
161
+ end
162
+ # The authorized amount
163
+ attr_reader :amount_authorized
164
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
165
+ attr_reader :brand
166
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
167
+ attr_reader :brand_product
168
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
169
+ attr_reader :capture_before
170
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
171
+ attr_reader :cardholder_name
172
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
173
+ attr_reader :country
174
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
175
+ attr_reader :description
176
+ # Authorization response cryptogram.
177
+ attr_reader :emv_auth_data
178
+ # Two-digit number representing the card's expiration month.
179
+ attr_reader :exp_month
180
+ # Four-digit number representing the card's expiration year.
181
+ attr_reader :exp_year
182
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
183
+ #
184
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
185
+ attr_reader :fingerprint
186
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
187
+ attr_reader :funding
188
+ # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
189
+ attr_reader :generated_card
190
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
191
+ attr_reader :iin
192
+ # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
193
+ attr_reader :incremental_authorization_supported
194
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
195
+ attr_reader :issuer
196
+ # The last four digits of the card.
197
+ attr_reader :last4
198
+ # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
199
+ attr_reader :network
200
+ # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
201
+ attr_reader :network_transaction_id
202
+ # Details about payments collected offline.
203
+ attr_reader :offline
204
+ # Defines whether the authorized amount can be over-captured or not
205
+ attr_reader :overcapture_supported
206
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
207
+ attr_reader :preferred_locales
208
+ # How card details were read in this transaction.
209
+ attr_reader :read_method
210
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
211
+ attr_reader :receipt
212
+ # Attribute for field wallet
213
+ attr_reader :wallet
214
+ end
215
+ # Attribute for field card_present
216
+ attr_reader :card_present
217
+ # The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
218
+ attr_reader :type
219
+ end
220
+ # The charge that created this object.
221
+ attr_reader :charge
222
+ # Transaction-specific details of the payment method used in the payment.
223
+ attr_reader :payment_method_details
224
+ # The ID of the SetupAttempt that generated this PaymentMethod, if any.
225
+ attr_reader :setup_attempt
226
+ end
227
+
228
+ class Networks < Stripe::StripeObject
229
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
230
+ attr_reader :available
231
+ # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
232
+ attr_reader :preferred
233
+ end
234
+
235
+ class ThreeDSecureUsage < Stripe::StripeObject
236
+ # Whether 3D Secure is supported on this card.
237
+ attr_reader :supported
238
+ end
239
+
240
+ class Wallet < Stripe::StripeObject
241
+ class AmexExpressCheckout < Stripe::StripeObject; end
242
+ class ApplePay < Stripe::StripeObject; end
243
+ class GooglePay < Stripe::StripeObject; end
244
+ class Link < Stripe::StripeObject; end
245
+
246
+ class Masterpass < Stripe::StripeObject
247
+ class BillingAddress < Stripe::StripeObject
248
+ # City, district, suburb, town, or village.
249
+ attr_reader :city
250
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
251
+ attr_reader :country
252
+ # Address line 1 (e.g., street, PO Box, or company name).
253
+ attr_reader :line1
254
+ # Address line 2 (e.g., apartment, suite, unit, or building).
255
+ attr_reader :line2
256
+ # ZIP or postal code.
257
+ attr_reader :postal_code
258
+ # State, county, province, or region.
259
+ attr_reader :state
260
+ end
261
+
262
+ class ShippingAddress < Stripe::StripeObject
263
+ # City, district, suburb, town, or village.
264
+ attr_reader :city
265
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
266
+ attr_reader :country
267
+ # Address line 1 (e.g., street, PO Box, or company name).
268
+ attr_reader :line1
269
+ # Address line 2 (e.g., apartment, suite, unit, or building).
270
+ attr_reader :line2
271
+ # ZIP or postal code.
272
+ attr_reader :postal_code
273
+ # State, county, province, or region.
274
+ attr_reader :state
275
+ end
276
+ # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
277
+ attr_reader :billing_address
278
+ # Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
279
+ attr_reader :email
280
+ # Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
281
+ attr_reader :name
282
+ # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
283
+ attr_reader :shipping_address
284
+ end
285
+
286
+ class SamsungPay < Stripe::StripeObject; end
287
+
288
+ class VisaCheckout < Stripe::StripeObject
289
+ class BillingAddress < Stripe::StripeObject
290
+ # City, district, suburb, town, or village.
291
+ attr_reader :city
292
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
293
+ attr_reader :country
294
+ # Address line 1 (e.g., street, PO Box, or company name).
295
+ attr_reader :line1
296
+ # Address line 2 (e.g., apartment, suite, unit, or building).
297
+ attr_reader :line2
298
+ # ZIP or postal code.
299
+ attr_reader :postal_code
300
+ # State, county, province, or region.
301
+ attr_reader :state
302
+ end
303
+
304
+ class ShippingAddress < Stripe::StripeObject
305
+ # City, district, suburb, town, or village.
306
+ attr_reader :city
307
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
308
+ attr_reader :country
309
+ # Address line 1 (e.g., street, PO Box, or company name).
310
+ attr_reader :line1
311
+ # Address line 2 (e.g., apartment, suite, unit, or building).
312
+ attr_reader :line2
313
+ # ZIP or postal code.
314
+ attr_reader :postal_code
315
+ # State, county, province, or region.
316
+ attr_reader :state
317
+ end
318
+ # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
319
+ attr_reader :billing_address
320
+ # Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
321
+ attr_reader :email
322
+ # Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
323
+ attr_reader :name
324
+ # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
325
+ attr_reader :shipping_address
326
+ end
327
+ # Attribute for field amex_express_checkout
328
+ attr_reader :amex_express_checkout
329
+ # Attribute for field apple_pay
330
+ attr_reader :apple_pay
331
+ # (For tokenized numbers only.) The last four digits of the device account number.
332
+ attr_reader :dynamic_last4
333
+ # Attribute for field google_pay
334
+ attr_reader :google_pay
335
+ # Attribute for field link
336
+ attr_reader :link
337
+ # Attribute for field masterpass
338
+ attr_reader :masterpass
339
+ # Attribute for field samsung_pay
340
+ attr_reader :samsung_pay
341
+ # The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
342
+ attr_reader :type
343
+ # Attribute for field visa_checkout
344
+ attr_reader :visa_checkout
345
+ end
346
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
347
+ attr_reader :brand
348
+ # Checks on Card address and CVC if provided.
349
+ attr_reader :checks
350
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
351
+ attr_reader :country
352
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
353
+ attr_reader :description
354
+ # The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
355
+ attr_reader :display_brand
356
+ # Two-digit number representing the card's expiration month.
357
+ attr_reader :exp_month
358
+ # Four-digit number representing the card's expiration year.
359
+ attr_reader :exp_year
360
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
361
+ #
362
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
363
+ attr_reader :fingerprint
364
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
365
+ attr_reader :funding
366
+ # Details of the original PaymentMethod that created this object.
367
+ attr_reader :generated_from
368
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
369
+ attr_reader :iin
370
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
371
+ attr_reader :issuer
372
+ # The last four digits of the card.
373
+ attr_reader :last4
374
+ # Contains information about card networks that can be used to process the payment.
375
+ attr_reader :networks
376
+ # Status of a card based on the card issuer.
377
+ attr_reader :regulated_status
378
+ # Contains details on how this Card may be used for 3D Secure authentication.
379
+ attr_reader :three_d_secure_usage
380
+ # If this Card is part of a card wallet, this contains the details of the card wallet.
381
+ attr_reader :wallet
382
+ end
383
+
384
+ class CardPresent < Stripe::StripeObject
385
+ class Networks < Stripe::StripeObject
386
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
387
+ attr_reader :available
388
+ # The preferred network for the card.
389
+ attr_reader :preferred
390
+ end
391
+
392
+ class Offline < Stripe::StripeObject
393
+ # Time at which the payment was collected while offline
394
+ attr_reader :stored_at
395
+ # The method used to process this payment method offline. Only deferred is allowed.
396
+ attr_reader :type
397
+ end
398
+
399
+ class Wallet < Stripe::StripeObject
400
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
401
+ attr_reader :type
402
+ end
403
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
404
+ attr_reader :brand
405
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
406
+ attr_reader :brand_product
407
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
408
+ attr_reader :cardholder_name
409
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
410
+ attr_reader :country
411
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
412
+ attr_reader :description
413
+ # Two-digit number representing the card's expiration month.
414
+ attr_reader :exp_month
415
+ # Four-digit number representing the card's expiration year.
416
+ attr_reader :exp_year
417
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
418
+ #
419
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
420
+ attr_reader :fingerprint
421
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
422
+ attr_reader :funding
423
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
424
+ attr_reader :iin
425
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
426
+ attr_reader :issuer
427
+ # The last four digits of the card.
428
+ attr_reader :last4
429
+ # Contains information about card networks that can be used to process the payment.
430
+ attr_reader :networks
431
+ # Details about payment methods collected offline.
432
+ attr_reader :offline
433
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
434
+ attr_reader :preferred_locales
435
+ # How card details were read in this transaction.
436
+ attr_reader :read_method
437
+ # Attribute for field wallet
438
+ attr_reader :wallet
439
+ end
440
+
441
+ class Cashapp < Stripe::StripeObject
442
+ # A unique and immutable identifier assigned by Cash App to every buyer.
443
+ attr_reader :buyer_id
444
+ # A public identifier for buyers using Cash App.
445
+ attr_reader :cashtag
446
+ end
447
+
448
+ class CustomerBalance < Stripe::StripeObject; end
449
+
450
+ class Eps < Stripe::StripeObject
451
+ # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
452
+ attr_reader :bank
453
+ end
454
+
455
+ class Fpx < Stripe::StripeObject
456
+ # Account holder type, if provided. Can be one of `individual` or `company`.
457
+ attr_reader :account_holder_type
458
+ # The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
459
+ attr_reader :bank
460
+ end
461
+
462
+ class Giropay < Stripe::StripeObject; end
463
+ class Grabpay < Stripe::StripeObject; end
464
+
465
+ class Ideal < Stripe::StripeObject
466
+ # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
467
+ attr_reader :bank
468
+ # The Bank Identifier Code of the customer's bank, if the bank was provided.
469
+ attr_reader :bic
470
+ end
471
+
472
+ class InteracPresent < Stripe::StripeObject
473
+ class Networks < Stripe::StripeObject
474
+ # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
475
+ attr_reader :available
476
+ # The preferred network for the card.
477
+ attr_reader :preferred
478
+ end
479
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
480
+ attr_reader :brand
481
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
482
+ attr_reader :cardholder_name
483
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
484
+ attr_reader :country
485
+ # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
486
+ attr_reader :description
487
+ # Two-digit number representing the card's expiration month.
488
+ attr_reader :exp_month
489
+ # Four-digit number representing the card's expiration year.
490
+ attr_reader :exp_year
491
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
492
+ #
493
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
494
+ attr_reader :fingerprint
495
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
496
+ attr_reader :funding
497
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
498
+ attr_reader :iin
499
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
500
+ attr_reader :issuer
501
+ # The last four digits of the card.
502
+ attr_reader :last4
503
+ # Contains information about card networks that can be used to process the payment.
504
+ attr_reader :networks
505
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
506
+ attr_reader :preferred_locales
507
+ # How card details were read in this transaction.
508
+ attr_reader :read_method
509
+ end
510
+
511
+ class KakaoPay < Stripe::StripeObject; end
512
+
513
+ class Klarna < Stripe::StripeObject
514
+ class Dob < Stripe::StripeObject
515
+ # The day of birth, between 1 and 31.
516
+ attr_reader :day
517
+ # The month of birth, between 1 and 12.
518
+ attr_reader :month
519
+ # The four-digit year of birth.
520
+ attr_reader :year
521
+ end
522
+ # The customer's date of birth, if provided.
523
+ attr_reader :dob
524
+ end
525
+
526
+ class Konbini < Stripe::StripeObject; end
527
+
528
+ class KrCard < Stripe::StripeObject
529
+ # The local credit or debit card brand.
530
+ attr_reader :brand
531
+ # The last four digits of the card. This may not be present for American Express cards.
532
+ attr_reader :last4
533
+ end
534
+
535
+ class Link < Stripe::StripeObject
536
+ # Account owner's email address.
537
+ attr_reader :email
538
+ # [Deprecated] This is a legacy parameter that no longer has any function.
539
+ attr_reader :persistent_token
540
+ end
541
+
542
+ class Mobilepay < Stripe::StripeObject; end
543
+ class Multibanco < Stripe::StripeObject; end
544
+
545
+ class NaverPay < Stripe::StripeObject
546
+ # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
547
+ attr_reader :buyer_id
548
+ # Whether to fund this transaction with Naver Pay points or a card.
549
+ attr_reader :funding
550
+ end
551
+
552
+ class NzBankAccount < Stripe::StripeObject
553
+ # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
554
+ attr_reader :account_holder_name
555
+ # The numeric code for the bank account's bank.
556
+ attr_reader :bank_code
557
+ # The name of the bank.
558
+ attr_reader :bank_name
559
+ # The numeric code for the bank account's bank branch.
560
+ attr_reader :branch_code
561
+ # Last four digits of the bank account number.
562
+ attr_reader :last4
563
+ # The suffix of the bank account number.
564
+ attr_reader :suffix
565
+ end
566
+
567
+ class Oxxo < Stripe::StripeObject; end
568
+
569
+ class P24 < Stripe::StripeObject
570
+ # The customer's bank, if provided.
571
+ attr_reader :bank
572
+ end
573
+
574
+ class PayByBank < Stripe::StripeObject; end
575
+ class Payco < Stripe::StripeObject; end
576
+ class Paynow < Stripe::StripeObject; end
577
+
578
+ class Paypal < Stripe::StripeObject
579
+ # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
580
+ attr_reader :country
581
+ # Owner's email. Values are provided by PayPal directly
582
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
583
+ attr_reader :payer_email
584
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
585
+ attr_reader :payer_id
586
+ end
587
+
588
+ class Pix < Stripe::StripeObject; end
589
+ class Promptpay < Stripe::StripeObject; end
590
+ class RevolutPay < Stripe::StripeObject; end
591
+ class SamsungPay < Stripe::StripeObject; end
592
+ class Satispay < Stripe::StripeObject; end
593
+
594
+ class SepaDebit < Stripe::StripeObject
595
+ class GeneratedFrom < Stripe::StripeObject
596
+ # The ID of the Charge that generated this PaymentMethod, if any.
597
+ attr_reader :charge
598
+ # The ID of the SetupAttempt that generated this PaymentMethod, if any.
599
+ attr_reader :setup_attempt
600
+ end
601
+ # Bank code of bank associated with the bank account.
602
+ attr_reader :bank_code
603
+ # Branch code of bank associated with the bank account.
604
+ attr_reader :branch_code
605
+ # Two-letter ISO code representing the country the bank account is located in.
606
+ attr_reader :country
607
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
608
+ attr_reader :fingerprint
609
+ # Information about the object that generated this PaymentMethod.
610
+ attr_reader :generated_from
611
+ # Last four characters of the IBAN.
612
+ attr_reader :last4
613
+ end
614
+
615
+ class Sofort < Stripe::StripeObject
616
+ # Two-letter ISO code representing the country the bank account is located in.
617
+ attr_reader :country
618
+ end
619
+
620
+ class Swish < Stripe::StripeObject; end
621
+ class Twint < Stripe::StripeObject; end
622
+
623
+ class UsBankAccount < Stripe::StripeObject
624
+ class Networks < Stripe::StripeObject
625
+ # The preferred network.
626
+ attr_reader :preferred
627
+ # All supported networks.
628
+ attr_reader :supported
629
+ end
630
+
631
+ class StatusDetails < Stripe::StripeObject
632
+ class Blocked < Stripe::StripeObject
633
+ # The ACH network code that resulted in this block.
634
+ attr_reader :network_code
635
+ # The reason why this PaymentMethod's fingerprint has been blocked
636
+ attr_reader :reason
637
+ end
638
+ # Attribute for field blocked
639
+ attr_reader :blocked
640
+ end
641
+ # Account holder type: individual or company.
642
+ attr_reader :account_holder_type
643
+ # Account type: checkings or savings. Defaults to checking if omitted.
644
+ attr_reader :account_type
645
+ # The name of the bank.
646
+ attr_reader :bank_name
647
+ # The ID of the Financial Connections Account used to create the payment method.
648
+ attr_reader :financial_connections_account
649
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
650
+ attr_reader :fingerprint
651
+ # Last four digits of the bank account number.
652
+ attr_reader :last4
653
+ # Contains information about US bank account networks that can be used.
654
+ attr_reader :networks
655
+ # Routing number of the bank account.
656
+ attr_reader :routing_number
657
+ # Contains information about the future reusability of this PaymentMethod.
658
+ attr_reader :status_details
659
+ end
660
+
661
+ class WechatPay < Stripe::StripeObject; end
662
+ class Zip < Stripe::StripeObject; end
663
+ # Attribute for field acss_debit
664
+ attr_reader :acss_debit
665
+ # Attribute for field affirm
666
+ attr_reader :affirm
667
+ # Attribute for field afterpay_clearpay
668
+ attr_reader :afterpay_clearpay
669
+ # Attribute for field alipay
670
+ attr_reader :alipay
671
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
672
+ attr_reader :allow_redisplay
673
+ # Attribute for field alma
674
+ attr_reader :alma
675
+ # Attribute for field amazon_pay
676
+ attr_reader :amazon_pay
677
+ # Attribute for field au_becs_debit
678
+ attr_reader :au_becs_debit
679
+ # Attribute for field bacs_debit
680
+ attr_reader :bacs_debit
681
+ # Attribute for field bancontact
682
+ attr_reader :bancontact
683
+ # Attribute for field billie
684
+ attr_reader :billie
685
+ # Attribute for field billing_details
686
+ attr_reader :billing_details
687
+ # Attribute for field blik
688
+ attr_reader :blik
689
+ # Attribute for field boleto
690
+ attr_reader :boleto
691
+ # Attribute for field card
692
+ attr_reader :card
693
+ # Attribute for field card_present
694
+ attr_reader :card_present
695
+ # Attribute for field cashapp
696
+ attr_reader :cashapp
697
+ # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
698
+ attr_reader :customer
699
+ # Attribute for field customer_balance
700
+ attr_reader :customer_balance
701
+ # Attribute for field eps
702
+ attr_reader :eps
703
+ # Attribute for field fpx
704
+ attr_reader :fpx
705
+ # Attribute for field giropay
706
+ attr_reader :giropay
707
+ # Attribute for field grabpay
708
+ attr_reader :grabpay
709
+ # Attribute for field ideal
710
+ attr_reader :ideal
711
+ # Attribute for field interac_present
712
+ attr_reader :interac_present
713
+ # Attribute for field kakao_pay
714
+ attr_reader :kakao_pay
715
+ # Attribute for field klarna
716
+ attr_reader :klarna
717
+ # Attribute for field konbini
718
+ attr_reader :konbini
719
+ # Attribute for field kr_card
720
+ attr_reader :kr_card
721
+ # Attribute for field link
722
+ attr_reader :link
723
+ # Attribute for field mobilepay
724
+ attr_reader :mobilepay
725
+ # Attribute for field multibanco
726
+ attr_reader :multibanco
727
+ # Attribute for field naver_pay
728
+ attr_reader :naver_pay
729
+ # Attribute for field nz_bank_account
730
+ attr_reader :nz_bank_account
731
+ # Attribute for field oxxo
732
+ attr_reader :oxxo
733
+ # Attribute for field p24
734
+ attr_reader :p24
735
+ # Attribute for field pay_by_bank
736
+ attr_reader :pay_by_bank
737
+ # Attribute for field payco
738
+ attr_reader :payco
739
+ # Attribute for field paynow
740
+ attr_reader :paynow
741
+ # Attribute for field paypal
742
+ attr_reader :paypal
743
+ # Attribute for field pix
744
+ attr_reader :pix
745
+ # Attribute for field promptpay
746
+ attr_reader :promptpay
747
+ # Attribute for field revolut_pay
748
+ attr_reader :revolut_pay
749
+ # Attribute for field samsung_pay
750
+ attr_reader :samsung_pay
751
+ # Attribute for field satispay
752
+ attr_reader :satispay
753
+ # Attribute for field sepa_debit
754
+ attr_reader :sepa_debit
755
+ # Attribute for field sofort
756
+ attr_reader :sofort
757
+ # Attribute for field swish
758
+ attr_reader :swish
759
+ # Attribute for field twint
760
+ attr_reader :twint
761
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
762
+ attr_reader :type
763
+ # Attribute for field us_bank_account
764
+ attr_reader :us_bank_account
765
+ # Attribute for field wechat_pay
766
+ attr_reader :wechat_pay
767
+ # Attribute for field zip
768
+ attr_reader :zip
769
+ end
770
+
771
+ class Shipping < Stripe::StripeObject
772
+ class Address < Stripe::StripeObject
773
+ # City, district, suburb, town, or village.
774
+ attr_reader :city
775
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
776
+ attr_reader :country
777
+ # Address line 1 (e.g., street, PO Box, or company name).
778
+ attr_reader :line1
779
+ # Address line 2 (e.g., apartment, suite, unit, or building).
780
+ attr_reader :line2
781
+ # ZIP or postal code.
782
+ attr_reader :postal_code
783
+ # State, county, province, or region.
784
+ attr_reader :state
785
+ end
786
+ # Attribute for field address
787
+ attr_reader :address
788
+ # Recipient name.
789
+ attr_reader :name
790
+ # Recipient phone (including extension).
791
+ attr_reader :phone
792
+ end
793
+
794
+ class CreateParams < Stripe::RequestParams
795
+ class PaymentMethodData < Stripe::RequestParams
796
+ class AcssDebit < Stripe::RequestParams
797
+ # Customer's bank account number.
798
+ attr_accessor :account_number
799
+ # Institution number of the customer's bank.
800
+ attr_accessor :institution_number
801
+ # Transit number of the customer's bank.
802
+ attr_accessor :transit_number
803
+
804
+ def initialize(account_number: nil, institution_number: nil, transit_number: nil)
805
+ @account_number = account_number
806
+ @institution_number = institution_number
807
+ @transit_number = transit_number
808
+ end
809
+ end
810
+
811
+ class Affirm < Stripe::RequestParams
812
+ end
813
+
814
+ class AfterpayClearpay < Stripe::RequestParams
815
+ end
816
+
817
+ class Alipay < Stripe::RequestParams
818
+ end
819
+
820
+ class Alma < Stripe::RequestParams
821
+ end
822
+
823
+ class AmazonPay < Stripe::RequestParams
824
+ end
825
+
826
+ class AuBecsDebit < Stripe::RequestParams
827
+ # The account number for the bank account.
828
+ attr_accessor :account_number
829
+ # Bank-State-Branch number of the bank account.
830
+ attr_accessor :bsb_number
831
+
832
+ def initialize(account_number: nil, bsb_number: nil)
833
+ @account_number = account_number
834
+ @bsb_number = bsb_number
835
+ end
836
+ end
837
+
838
+ class BacsDebit < Stripe::RequestParams
839
+ # Account number of the bank account that the funds will be debited from.
840
+ attr_accessor :account_number
841
+ # Sort code of the bank account. (e.g., `10-20-30`)
842
+ attr_accessor :sort_code
843
+
844
+ def initialize(account_number: nil, sort_code: nil)
845
+ @account_number = account_number
846
+ @sort_code = sort_code
847
+ end
848
+ end
849
+
850
+ class Bancontact < Stripe::RequestParams
851
+ end
852
+
853
+ class Billie < Stripe::RequestParams
854
+ end
855
+
856
+ class BillingDetails < Stripe::RequestParams
857
+ class Address < Stripe::RequestParams
858
+ # City, district, suburb, town, or village.
859
+ attr_accessor :city
860
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
861
+ attr_accessor :country
862
+ # Address line 1 (e.g., street, PO Box, or company name).
863
+ attr_accessor :line1
864
+ # Address line 2 (e.g., apartment, suite, unit, or building).
865
+ attr_accessor :line2
866
+ # ZIP or postal code.
867
+ attr_accessor :postal_code
868
+ # State, county, province, or region.
869
+ attr_accessor :state
870
+
871
+ def initialize(
872
+ city: nil,
873
+ country: nil,
874
+ line1: nil,
875
+ line2: nil,
876
+ postal_code: nil,
877
+ state: nil
878
+ )
879
+ @city = city
880
+ @country = country
881
+ @line1 = line1
882
+ @line2 = line2
883
+ @postal_code = postal_code
884
+ @state = state
885
+ end
886
+ end
887
+ # Billing address.
888
+ attr_accessor :address
889
+ # Email address.
890
+ attr_accessor :email
891
+ # Full name.
892
+ attr_accessor :name
893
+ # Billing phone number (including extension).
894
+ attr_accessor :phone
895
+
896
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
897
+ @address = address
898
+ @email = email
899
+ @name = name
900
+ @phone = phone
901
+ end
902
+ end
903
+
904
+ class Blik < Stripe::RequestParams
905
+ end
906
+
907
+ class Boleto < Stripe::RequestParams
908
+ # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
909
+ attr_accessor :tax_id
910
+
911
+ def initialize(tax_id: nil)
912
+ @tax_id = tax_id
913
+ end
914
+ end
915
+
916
+ class Cashapp < Stripe::RequestParams
917
+ end
918
+
919
+ class CustomerBalance < Stripe::RequestParams
920
+ end
921
+
922
+ class Eps < Stripe::RequestParams
923
+ # The customer's bank.
924
+ attr_accessor :bank
925
+
926
+ def initialize(bank: nil)
927
+ @bank = bank
928
+ end
929
+ end
930
+
931
+ class Fpx < Stripe::RequestParams
932
+ # Account holder type for FPX transaction
933
+ attr_accessor :account_holder_type
934
+ # The customer's bank.
935
+ attr_accessor :bank
936
+
937
+ def initialize(account_holder_type: nil, bank: nil)
938
+ @account_holder_type = account_holder_type
939
+ @bank = bank
940
+ end
941
+ end
942
+
943
+ class Giropay < Stripe::RequestParams
944
+ end
945
+
946
+ class Grabpay < Stripe::RequestParams
947
+ end
948
+
949
+ class Ideal < Stripe::RequestParams
950
+ # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
951
+ attr_accessor :bank
952
+
953
+ def initialize(bank: nil)
954
+ @bank = bank
955
+ end
956
+ end
957
+
958
+ class InteracPresent < Stripe::RequestParams
959
+ end
960
+
961
+ class KakaoPay < Stripe::RequestParams
962
+ end
963
+
964
+ class Klarna < Stripe::RequestParams
965
+ class Dob < Stripe::RequestParams
966
+ # The day of birth, between 1 and 31.
967
+ attr_accessor :day
968
+ # The month of birth, between 1 and 12.
969
+ attr_accessor :month
970
+ # The four-digit year of birth.
971
+ attr_accessor :year
972
+
973
+ def initialize(day: nil, month: nil, year: nil)
974
+ @day = day
975
+ @month = month
976
+ @year = year
977
+ end
978
+ end
979
+ # Customer's date of birth
980
+ attr_accessor :dob
981
+
982
+ def initialize(dob: nil)
983
+ @dob = dob
984
+ end
985
+ end
986
+
987
+ class Konbini < Stripe::RequestParams
988
+ end
989
+
990
+ class KrCard < Stripe::RequestParams
991
+ end
992
+
993
+ class Link < Stripe::RequestParams
994
+ end
995
+
996
+ class Mobilepay < Stripe::RequestParams
997
+ end
998
+
999
+ class Multibanco < Stripe::RequestParams
1000
+ end
1001
+
1002
+ class NaverPay < Stripe::RequestParams
1003
+ # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
1004
+ attr_accessor :funding
1005
+
1006
+ def initialize(funding: nil)
1007
+ @funding = funding
1008
+ end
1009
+ end
1010
+
1011
+ class NzBankAccount < Stripe::RequestParams
1012
+ # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
1013
+ attr_accessor :account_holder_name
1014
+ # The account number for the bank account.
1015
+ attr_accessor :account_number
1016
+ # The numeric code for the bank account's bank.
1017
+ attr_accessor :bank_code
1018
+ # The numeric code for the bank account's bank branch.
1019
+ attr_accessor :branch_code
1020
+ # Attribute for param field reference
1021
+ attr_accessor :reference
1022
+ # The suffix of the bank account number.
1023
+ attr_accessor :suffix
1024
+
1025
+ def initialize(
1026
+ account_holder_name: nil,
1027
+ account_number: nil,
1028
+ bank_code: nil,
1029
+ branch_code: nil,
1030
+ reference: nil,
1031
+ suffix: nil
1032
+ )
1033
+ @account_holder_name = account_holder_name
1034
+ @account_number = account_number
1035
+ @bank_code = bank_code
1036
+ @branch_code = branch_code
1037
+ @reference = reference
1038
+ @suffix = suffix
1039
+ end
1040
+ end
1041
+
1042
+ class Oxxo < Stripe::RequestParams
1043
+ end
1044
+
1045
+ class P24 < Stripe::RequestParams
1046
+ # The customer's bank.
1047
+ attr_accessor :bank
1048
+
1049
+ def initialize(bank: nil)
1050
+ @bank = bank
1051
+ end
1052
+ end
1053
+
1054
+ class PayByBank < Stripe::RequestParams
1055
+ end
1056
+
1057
+ class Payco < Stripe::RequestParams
1058
+ end
1059
+
1060
+ class Paynow < Stripe::RequestParams
1061
+ end
1062
+
1063
+ class Paypal < Stripe::RequestParams
1064
+ end
1065
+
1066
+ class Pix < Stripe::RequestParams
1067
+ end
1068
+
1069
+ class Promptpay < Stripe::RequestParams
1070
+ end
1071
+
1072
+ class RadarOptions < Stripe::RequestParams
1073
+ # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
1074
+ attr_accessor :session
1075
+
1076
+ def initialize(session: nil)
1077
+ @session = session
1078
+ end
1079
+ end
1080
+
1081
+ class RevolutPay < Stripe::RequestParams
1082
+ end
1083
+
1084
+ class SamsungPay < Stripe::RequestParams
1085
+ end
1086
+
1087
+ class Satispay < Stripe::RequestParams
1088
+ end
1089
+
1090
+ class SepaDebit < Stripe::RequestParams
1091
+ # IBAN of the bank account.
1092
+ attr_accessor :iban
1093
+
1094
+ def initialize(iban: nil)
1095
+ @iban = iban
1096
+ end
1097
+ end
1098
+
1099
+ class Sofort < Stripe::RequestParams
1100
+ # Two-letter ISO code representing the country the bank account is located in.
1101
+ attr_accessor :country
1102
+
1103
+ def initialize(country: nil)
1104
+ @country = country
1105
+ end
1106
+ end
1107
+
1108
+ class Swish < Stripe::RequestParams
1109
+ end
1110
+
1111
+ class Twint < Stripe::RequestParams
1112
+ end
1113
+
1114
+ class UsBankAccount < Stripe::RequestParams
1115
+ # Account holder type: individual or company.
1116
+ attr_accessor :account_holder_type
1117
+ # Account number of the bank account.
1118
+ attr_accessor :account_number
1119
+ # Account type: checkings or savings. Defaults to checking if omitted.
1120
+ attr_accessor :account_type
1121
+ # The ID of a Financial Connections Account to use as a payment method.
1122
+ attr_accessor :financial_connections_account
1123
+ # Routing number of the bank account.
1124
+ attr_accessor :routing_number
1125
+
1126
+ def initialize(
1127
+ account_holder_type: nil,
1128
+ account_number: nil,
1129
+ account_type: nil,
1130
+ financial_connections_account: nil,
1131
+ routing_number: nil
1132
+ )
1133
+ @account_holder_type = account_holder_type
1134
+ @account_number = account_number
1135
+ @account_type = account_type
1136
+ @financial_connections_account = financial_connections_account
1137
+ @routing_number = routing_number
1138
+ end
1139
+ end
1140
+
1141
+ class WechatPay < Stripe::RequestParams
1142
+ end
1143
+
1144
+ class Zip < Stripe::RequestParams
1145
+ end
1146
+ # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
1147
+ attr_accessor :acss_debit
1148
+ # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
1149
+ attr_accessor :affirm
1150
+ # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
1151
+ attr_accessor :afterpay_clearpay
1152
+ # If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
1153
+ attr_accessor :alipay
1154
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
1155
+ attr_accessor :allow_redisplay
1156
+ # If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
1157
+ attr_accessor :alma
1158
+ # If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
1159
+ attr_accessor :amazon_pay
1160
+ # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
1161
+ attr_accessor :au_becs_debit
1162
+ # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
1163
+ attr_accessor :bacs_debit
1164
+ # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1165
+ attr_accessor :bancontact
1166
+ # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
1167
+ attr_accessor :billie
1168
+ # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1169
+ attr_accessor :billing_details
1170
+ # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
1171
+ attr_accessor :blik
1172
+ # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
1173
+ attr_accessor :boleto
1174
+ # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
1175
+ attr_accessor :cashapp
1176
+ # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1177
+ attr_accessor :customer_balance
1178
+ # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
1179
+ attr_accessor :eps
1180
+ # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
1181
+ attr_accessor :fpx
1182
+ # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1183
+ attr_accessor :giropay
1184
+ # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1185
+ attr_accessor :grabpay
1186
+ # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1187
+ attr_accessor :ideal
1188
+ # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
1189
+ attr_accessor :interac_present
1190
+ # If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
1191
+ attr_accessor :kakao_pay
1192
+ # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1193
+ attr_accessor :klarna
1194
+ # If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
1195
+ attr_accessor :konbini
1196
+ # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
1197
+ attr_accessor :kr_card
1198
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1199
+ attr_accessor :link
1200
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1201
+ attr_accessor :metadata
1202
+ # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
1203
+ attr_accessor :mobilepay
1204
+ # If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
1205
+ attr_accessor :multibanco
1206
+ # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
1207
+ attr_accessor :naver_pay
1208
+ # If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
1209
+ attr_accessor :nz_bank_account
1210
+ # If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
1211
+ attr_accessor :oxxo
1212
+ # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
1213
+ attr_accessor :p24
1214
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1215
+ attr_accessor :pay_by_bank
1216
+ # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1217
+ attr_accessor :payco
1218
+ # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
1219
+ attr_accessor :paynow
1220
+ # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1221
+ attr_accessor :paypal
1222
+ # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1223
+ attr_accessor :pix
1224
+ # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1225
+ attr_accessor :promptpay
1226
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1227
+ attr_accessor :radar_options
1228
+ # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1229
+ attr_accessor :revolut_pay
1230
+ # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1231
+ attr_accessor :samsung_pay
1232
+ # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
1233
+ attr_accessor :satispay
1234
+ # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1235
+ attr_accessor :sepa_debit
1236
+ # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1237
+ attr_accessor :sofort
1238
+ # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1239
+ attr_accessor :swish
1240
+ # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
1241
+ attr_accessor :twint
1242
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
1243
+ attr_accessor :type
1244
+ # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
1245
+ attr_accessor :us_bank_account
1246
+ # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
1247
+ attr_accessor :wechat_pay
1248
+ # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
1249
+ attr_accessor :zip
1250
+
1251
+ def initialize(
1252
+ acss_debit: nil,
1253
+ affirm: nil,
1254
+ afterpay_clearpay: nil,
1255
+ alipay: nil,
1256
+ allow_redisplay: nil,
1257
+ alma: nil,
1258
+ amazon_pay: nil,
1259
+ au_becs_debit: nil,
1260
+ bacs_debit: nil,
1261
+ bancontact: nil,
1262
+ billie: nil,
1263
+ billing_details: nil,
1264
+ blik: nil,
1265
+ boleto: nil,
1266
+ cashapp: nil,
1267
+ customer_balance: nil,
1268
+ eps: nil,
1269
+ fpx: nil,
1270
+ giropay: nil,
1271
+ grabpay: nil,
1272
+ ideal: nil,
1273
+ interac_present: nil,
1274
+ kakao_pay: nil,
1275
+ klarna: nil,
1276
+ konbini: nil,
1277
+ kr_card: nil,
1278
+ link: nil,
1279
+ metadata: nil,
1280
+ mobilepay: nil,
1281
+ multibanco: nil,
1282
+ naver_pay: nil,
1283
+ nz_bank_account: nil,
1284
+ oxxo: nil,
1285
+ p24: nil,
1286
+ pay_by_bank: nil,
1287
+ payco: nil,
1288
+ paynow: nil,
1289
+ paypal: nil,
1290
+ pix: nil,
1291
+ promptpay: nil,
1292
+ radar_options: nil,
1293
+ revolut_pay: nil,
1294
+ samsung_pay: nil,
1295
+ satispay: nil,
1296
+ sepa_debit: nil,
1297
+ sofort: nil,
1298
+ swish: nil,
1299
+ twint: nil,
1300
+ type: nil,
1301
+ us_bank_account: nil,
1302
+ wechat_pay: nil,
1303
+ zip: nil
1304
+ )
1305
+ @acss_debit = acss_debit
1306
+ @affirm = affirm
1307
+ @afterpay_clearpay = afterpay_clearpay
1308
+ @alipay = alipay
1309
+ @allow_redisplay = allow_redisplay
1310
+ @alma = alma
1311
+ @amazon_pay = amazon_pay
1312
+ @au_becs_debit = au_becs_debit
1313
+ @bacs_debit = bacs_debit
1314
+ @bancontact = bancontact
1315
+ @billie = billie
1316
+ @billing_details = billing_details
1317
+ @blik = blik
1318
+ @boleto = boleto
1319
+ @cashapp = cashapp
1320
+ @customer_balance = customer_balance
1321
+ @eps = eps
1322
+ @fpx = fpx
1323
+ @giropay = giropay
1324
+ @grabpay = grabpay
1325
+ @ideal = ideal
1326
+ @interac_present = interac_present
1327
+ @kakao_pay = kakao_pay
1328
+ @klarna = klarna
1329
+ @konbini = konbini
1330
+ @kr_card = kr_card
1331
+ @link = link
1332
+ @metadata = metadata
1333
+ @mobilepay = mobilepay
1334
+ @multibanco = multibanco
1335
+ @naver_pay = naver_pay
1336
+ @nz_bank_account = nz_bank_account
1337
+ @oxxo = oxxo
1338
+ @p24 = p24
1339
+ @pay_by_bank = pay_by_bank
1340
+ @payco = payco
1341
+ @paynow = paynow
1342
+ @paypal = paypal
1343
+ @pix = pix
1344
+ @promptpay = promptpay
1345
+ @radar_options = radar_options
1346
+ @revolut_pay = revolut_pay
1347
+ @samsung_pay = samsung_pay
1348
+ @satispay = satispay
1349
+ @sepa_debit = sepa_debit
1350
+ @sofort = sofort
1351
+ @swish = swish
1352
+ @twint = twint
1353
+ @type = type
1354
+ @us_bank_account = us_bank_account
1355
+ @wechat_pay = wechat_pay
1356
+ @zip = zip
1357
+ end
1358
+ end
1359
+
1360
+ class Shipping < Stripe::RequestParams
1361
+ class Address < Stripe::RequestParams
1362
+ # City, district, suburb, town, or village.
1363
+ attr_accessor :city
1364
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1365
+ attr_accessor :country
1366
+ # Address line 1 (e.g., street, PO Box, or company name).
1367
+ attr_accessor :line1
1368
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1369
+ attr_accessor :line2
1370
+ # ZIP or postal code.
1371
+ attr_accessor :postal_code
1372
+ # State, county, province, or region.
1373
+ attr_accessor :state
1374
+
1375
+ def initialize(
1376
+ city: nil,
1377
+ country: nil,
1378
+ line1: nil,
1379
+ line2: nil,
1380
+ postal_code: nil,
1381
+ state: nil
1382
+ )
1383
+ @city = city
1384
+ @country = country
1385
+ @line1 = line1
1386
+ @line2 = line2
1387
+ @postal_code = postal_code
1388
+ @state = state
1389
+ end
1390
+ end
1391
+ # Shipping address
1392
+ attr_accessor :address
1393
+ # Recipient name.
1394
+ attr_accessor :name
1395
+ # Recipient phone (including extension)
1396
+ attr_accessor :phone
1397
+
1398
+ def initialize(address: nil, name: nil, phone: nil)
1399
+ @address = address
1400
+ @name = name
1401
+ @phone = phone
1402
+ end
1403
+ end
1404
+ # Specifies which fields in the response should be expanded.
1405
+ attr_accessor :expand
1406
+ # ID of an existing PaymentMethod.
1407
+ attr_accessor :payment_method
1408
+ # If provided, this hash will be used to create a PaymentMethod.
1409
+ attr_accessor :payment_method_data
1410
+ # Return URL used to confirm the Intent.
1411
+ attr_accessor :return_url
1412
+ # Indicates that you intend to make future payments with this ConfirmationToken's payment method.
1413
+ #
1414
+ # The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
1415
+ attr_accessor :setup_future_usage
1416
+ # Shipping information for this ConfirmationToken.
1417
+ attr_accessor :shipping
1418
+
1419
+ def initialize(
1420
+ expand: nil,
1421
+ payment_method: nil,
1422
+ payment_method_data: nil,
1423
+ return_url: nil,
1424
+ setup_future_usage: nil,
1425
+ shipping: nil
1426
+ )
1427
+ @expand = expand
1428
+ @payment_method = payment_method
1429
+ @payment_method_data = payment_method_data
1430
+ @return_url = return_url
1431
+ @setup_future_usage = setup_future_usage
1432
+ @shipping = shipping
1433
+ end
1434
+ end
1435
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1436
+ attr_reader :created
1437
+ # Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
1438
+ attr_reader :expires_at
1439
+ # Unique identifier for the object.
1440
+ attr_reader :id
1441
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1442
+ attr_reader :livemode
1443
+ # Data used for generating a Mandate.
1444
+ attr_reader :mandate_data
1445
+ # String representing the object's type. Objects of the same type share the same value.
1446
+ attr_reader :object
1447
+ # ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
1448
+ attr_reader :payment_intent
1449
+ # Payment-method-specific configuration for this ConfirmationToken.
1450
+ attr_reader :payment_method_options
1451
+ # Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
1452
+ attr_reader :payment_method_preview
1453
+ # Return URL used to confirm the Intent.
1454
+ attr_reader :return_url
1455
+ # Indicates that you intend to make future payments with this ConfirmationToken's payment method.
1456
+ #
1457
+ # The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
1458
+ attr_reader :setup_future_usage
1459
+ # ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
1460
+ attr_reader :setup_intent
1461
+ # Shipping information collected on this ConfirmationToken.
1462
+ attr_reader :shipping
1463
+ # Indicates whether the Stripe SDK is used to handle confirmation flow. Defaults to `true` on ConfirmationToken.
1464
+ attr_reader :use_stripe_sdk
1465
+
18
1466
  def test_helpers
19
1467
  TestHelpers.new(self)
20
1468
  end