stripe 12.5.0 → 15.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 (688) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +197 -9
  3. data/Gemfile +4 -0
  4. data/Makefile +2 -0
  5. data/OPENAPI_VERSION +1 -1
  6. data/README.md +48 -13
  7. data/Rakefile +0 -5
  8. data/VERSION +1 -1
  9. data/examples/README.md +16 -0
  10. data/examples/example_template.rb +36 -0
  11. data/examples/meter_event_stream.rb +57 -0
  12. data/examples/thinevent_webhook_handler.rb +39 -0
  13. data/justfile +43 -0
  14. data/lib/stripe/api_operations/nested_resource.rb +1 -21
  15. data/lib/stripe/api_operations/request.rb +20 -69
  16. data/lib/stripe/api_operations/save.rb +5 -3
  17. data/lib/stripe/api_operations/singleton_save.rb +6 -2
  18. data/lib/stripe/api_requestor.rb +1136 -0
  19. data/lib/stripe/api_resource.rb +38 -17
  20. data/lib/stripe/api_version.rb +1 -1
  21. data/lib/stripe/connection_manager.rb +1 -1
  22. data/lib/stripe/errors.rb +8 -9
  23. data/lib/stripe/event_types.rb +14 -0
  24. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
  25. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
  26. data/lib/stripe/list_object.rb +2 -3
  27. data/lib/stripe/oauth.rb +8 -15
  28. data/lib/stripe/object_types.rb +26 -3
  29. data/lib/stripe/request_options.rb +129 -0
  30. data/lib/stripe/request_params.rb +24 -0
  31. data/lib/stripe/resources/account.rb +4642 -8
  32. data/lib/stripe/resources/account_link.rb +54 -0
  33. data/lib/stripe/resources/account_session.rb +739 -0
  34. data/lib/stripe/resources/apple_pay_domain.rb +58 -9
  35. data/lib/stripe/resources/application.rb +20 -0
  36. data/lib/stripe/resources/application_fee.rb +89 -2
  37. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  38. data/lib/stripe/resources/apps/secret.rb +143 -2
  39. data/lib/stripe/resources/balance.rb +122 -0
  40. data/lib/stripe/resources/balance_transaction.rb +105 -2
  41. data/lib/stripe/resources/bank_account.rb +85 -3
  42. data/lib/stripe/resources/billing/alert.rb +137 -2
  43. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  44. data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
  45. data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
  46. data/lib/stripe/resources/billing/credit_grant.rb +307 -0
  47. data/lib/stripe/resources/billing/meter.rb +180 -9
  48. data/lib/stripe/resources/billing/meter_event.rb +37 -3
  49. data/lib/stripe/resources/billing/meter_event_adjustment.rb +44 -1
  50. data/lib/stripe/resources/billing/meter_event_summary.rb +17 -0
  51. data/lib/stripe/resources/billing_portal/configuration.rb +557 -4
  52. data/lib/stripe/resources/billing_portal/session.rb +271 -0
  53. data/lib/stripe/resources/capability.rb +84 -0
  54. data/lib/stripe/resources/card.rb +78 -1
  55. data/lib/stripe/resources/cash_balance.rb +17 -0
  56. data/lib/stripe/resources/charge.rb +1616 -4
  57. data/lib/stripe/resources/checkout/session.rb +3534 -10
  58. data/lib/stripe/resources/climate/order.rb +171 -4
  59. data/lib/stripe/resources/climate/product.rb +49 -2
  60. data/lib/stripe/resources/climate/supplier.rb +47 -2
  61. data/lib/stripe/resources/confirmation_token.rb +1448 -0
  62. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  63. data/lib/stripe/resources/country_spec.rb +56 -2
  64. data/lib/stripe/resources/coupon.rb +195 -6
  65. data/lib/stripe/resources/credit_note.rb +641 -2
  66. data/lib/stripe/resources/credit_note_line_item.rb +67 -0
  67. data/lib/stripe/resources/customer.rb +832 -9
  68. data/lib/stripe/resources/customer_balance_transaction.rb +29 -0
  69. data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
  70. data/lib/stripe/resources/customer_session.rb +163 -0
  71. data/lib/stripe/resources/discount.rb +29 -0
  72. data/lib/stripe/resources/dispute.rb +614 -4
  73. data/lib/stripe/resources/entitlements/active_entitlement.rb +39 -2
  74. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  75. data/lib/stripe/resources/entitlements/feature.rb +83 -2
  76. data/lib/stripe/resources/ephemeral_key.rb +23 -2
  77. data/lib/stripe/resources/event.rb +92 -2
  78. data/lib/stripe/resources/exchange_rate.rb +26 -2
  79. data/lib/stripe/resources/file.rb +123 -15
  80. data/lib/stripe/resources/file_link.rb +107 -4
  81. data/lib/stripe/resources/financial_connections/account.rb +239 -2
  82. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  83. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  84. data/lib/stripe/resources/financial_connections/session.rb +95 -0
  85. data/lib/stripe/resources/financial_connections/transaction.rb +94 -2
  86. data/lib/stripe/resources/forwarding/request.rb +158 -2
  87. data/lib/stripe/resources/funding_instructions.rb +308 -0
  88. data/lib/stripe/resources/identity/verification_report.rb +259 -2
  89. data/lib/stripe/resources/identity/verification_session.rb +356 -4
  90. data/lib/stripe/resources/invoice.rb +3210 -27
  91. data/lib/stripe/resources/invoice_item.rb +406 -6
  92. data/lib/stripe/resources/invoice_line_item.rb +356 -3
  93. data/lib/stripe/resources/invoice_payment.rb +105 -0
  94. data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
  95. data/lib/stripe/resources/issuing/authorization.rb +1132 -6
  96. data/lib/stripe/resources/issuing/card.rb +682 -5
  97. data/lib/stripe/resources/issuing/cardholder.rb +653 -5
  98. data/lib/stripe/resources/issuing/dispute.rb +785 -4
  99. data/lib/stripe/resources/issuing/personalization_design.rb +280 -4
  100. data/lib/stripe/resources/issuing/physical_bundle.rb +56 -2
  101. data/lib/stripe/resources/issuing/token.rb +170 -4
  102. data/lib/stripe/resources/issuing/transaction.rb +916 -4
  103. data/lib/stripe/resources/line_item.rb +47 -0
  104. data/lib/stripe/resources/login_link.rb +7 -0
  105. data/lib/stripe/resources/mandate.rb +142 -0
  106. data/lib/stripe/resources/payment_intent.rb +8660 -4
  107. data/lib/stripe/resources/payment_link.rb +1636 -4
  108. data/lib/stripe/resources/payment_method.rb +1546 -4
  109. data/lib/stripe/resources/payment_method_configuration.rb +2780 -4
  110. data/lib/stripe/resources/payment_method_domain.rb +154 -10
  111. data/lib/stripe/resources/payout.rb +213 -4
  112. data/lib/stripe/resources/person.rb +264 -1
  113. data/lib/stripe/resources/plan.rb +308 -6
  114. data/lib/stripe/resources/price.rb +609 -5
  115. data/lib/stripe/resources/product.rb +474 -2
  116. data/lib/stripe/resources/product_feature.rb +12 -0
  117. data/lib/stripe/resources/promotion_code.rb +216 -4
  118. data/lib/stripe/resources/quote.rb +927 -10
  119. data/lib/stripe/resources/radar/early_fraud_warning.rb +70 -2
  120. data/lib/stripe/resources/radar/value_list.rb +122 -6
  121. data/lib/stripe/resources/radar/value_list_item.rb +90 -4
  122. data/lib/stripe/resources/refund.rb +396 -4
  123. data/lib/stripe/resources/reporting/report_run.rb +143 -2
  124. data/lib/stripe/resources/reporting/report_type.rb +29 -2
  125. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  126. data/lib/stripe/resources/reversal.rb +21 -0
  127. data/lib/stripe/resources/review.rb +101 -2
  128. data/lib/stripe/resources/setup_attempt.rb +370 -2
  129. data/lib/stripe/resources/setup_intent.rb +3477 -4
  130. data/lib/stripe/resources/shipping_rate.rb +254 -4
  131. data/lib/stripe/resources/sigma/scheduled_query_run.rb +47 -2
  132. data/lib/stripe/resources/source.rb +1203 -4
  133. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  134. data/lib/stripe/resources/source_transaction.rb +85 -0
  135. data/lib/stripe/resources/subscription.rb +1697 -11
  136. data/lib/stripe/resources/subscription_item.rb +319 -11
  137. data/lib/stripe/resources/subscription_schedule.rb +1285 -4
  138. data/lib/stripe/resources/tax/calculation.rb +378 -0
  139. data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
  140. data/lib/stripe/resources/tax/registration.rb +2375 -2
  141. data/lib/stripe/resources/tax/settings.rb +117 -0
  142. data/lib/stripe/resources/tax/transaction.rb +258 -0
  143. data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
  144. data/lib/stripe/resources/tax_code.rb +28 -2
  145. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  146. data/lib/stripe/resources/tax_id.rb +114 -2
  147. data/lib/stripe/resources/tax_rate.rb +197 -6
  148. data/lib/stripe/resources/terminal/configuration.rb +1266 -6
  149. data/lib/stripe/resources/terminal/connection_token.rb +18 -0
  150. data/lib/stripe/resources/terminal/location.rb +172 -6
  151. data/lib/stripe/resources/terminal/reader.rb +433 -6
  152. data/lib/stripe/resources/test_helpers/test_clock.rb +81 -4
  153. data/lib/stripe/resources/token.rb +1160 -1
  154. data/lib/stripe/resources/topup.rb +169 -4
  155. data/lib/stripe/resources/transfer.rb +148 -4
  156. data/lib/stripe/resources/treasury/credit_reversal.rb +85 -2
  157. data/lib/stripe/resources/treasury/debit_reversal.rb +96 -2
  158. data/lib/stripe/resources/treasury/financial_account.rb +749 -5
  159. data/lib/stripe/resources/treasury/financial_account_features.rb +189 -0
  160. data/lib/stripe/resources/treasury/inbound_transfer.rb +231 -3
  161. data/lib/stripe/resources/treasury/outbound_payment.rb +491 -3
  162. data/lib/stripe/resources/treasury/outbound_transfer.rb +346 -3
  163. data/lib/stripe/resources/treasury/received_credit.rb +239 -2
  164. data/lib/stripe/resources/treasury/received_debit.rb +198 -2
  165. data/lib/stripe/resources/treasury/transaction.rb +169 -2
  166. data/lib/stripe/resources/treasury/transaction_entry.rb +150 -2
  167. data/lib/stripe/resources/v2/amount.rb +9 -0
  168. data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
  169. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
  170. data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
  171. data/lib/stripe/resources/v2/event.rb +41 -0
  172. data/lib/stripe/resources/v2/event_destination.rb +73 -0
  173. data/lib/stripe/resources/webhook_endpoint.rb +119 -11
  174. data/lib/stripe/resources.rb +19 -2
  175. data/lib/stripe/search_result_object.rb +1 -1
  176. data/lib/stripe/services/account_capability_service.rb +71 -0
  177. data/lib/stripe/services/account_external_account_service.rb +318 -0
  178. data/lib/stripe/services/account_link_service.rb +63 -0
  179. data/lib/stripe/services/account_login_link_service.rb +28 -0
  180. data/lib/stripe/services/account_person_service.rb +936 -0
  181. data/lib/stripe/services/account_service.rb +4100 -0
  182. data/lib/stripe/services/account_session_service.rb +501 -0
  183. data/lib/stripe/services/apple_pay_domain_service.rb +101 -0
  184. data/lib/stripe/services/application_fee_refund_service.rb +114 -0
  185. data/lib/stripe/services/application_fee_service.rb +92 -0
  186. data/lib/stripe/services/apps/secret_service.rb +168 -0
  187. data/lib/stripe/services/apps_service.rb +13 -0
  188. data/lib/stripe/services/balance_service.rb +21 -0
  189. data/lib/stripe/services/balance_transaction_service.rb +101 -0
  190. data/lib/stripe/services/billing/alert_service.rb +187 -0
  191. data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
  192. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
  193. data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
  194. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
  195. data/lib/stripe/services/billing/meter_event_service.rb +40 -0
  196. data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
  197. data/lib/stripe/services/billing/meter_service.rb +211 -0
  198. data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
  199. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  200. data/lib/stripe/services/billing_portal_service.rb +14 -0
  201. data/lib/stripe/services/billing_service.rb +20 -0
  202. data/lib/stripe/services/charge_service.rb +471 -0
  203. data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
  204. data/lib/stripe/services/checkout/session_service.rb +2466 -0
  205. data/lib/stripe/services/checkout_service.rb +13 -0
  206. data/lib/stripe/services/climate/order_service.rb +170 -0
  207. data/lib/stripe/services/climate/product_service.rb +57 -0
  208. data/lib/stripe/services/climate/supplier_service.rb +57 -0
  209. data/lib/stripe/services/climate_service.rb +15 -0
  210. data/lib/stripe/services/confirmation_token_service.rb +26 -0
  211. data/lib/stripe/services/country_spec_service.rb +55 -0
  212. data/lib/stripe/services/coupon_service.rb +203 -0
  213. data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
  214. data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
  215. data/lib/stripe/services/credit_note_service.rb +458 -0
  216. data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
  217. data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
  218. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
  219. data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
  220. data/lib/stripe/services/customer_payment_method_service.rb +68 -0
  221. data/lib/stripe/services/customer_payment_source_service.rb +255 -0
  222. data/lib/stripe/services/customer_service.rb +666 -0
  223. data/lib/stripe/services/customer_session_service.rb +113 -0
  224. data/lib/stripe/services/customer_tax_id_service.rb +95 -0
  225. data/lib/stripe/services/dispute_service.rb +422 -0
  226. data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
  227. data/lib/stripe/services/entitlements/feature_service.rb +128 -0
  228. data/lib/stripe/services/entitlements_service.rb +14 -0
  229. data/lib/stripe/services/ephemeral_key_service.rb +64 -0
  230. data/lib/stripe/services/event_service.rb +87 -0
  231. data/lib/stripe/services/exchange_rate_service.rb +55 -0
  232. data/lib/stripe/services/file_link_service.rb +132 -0
  233. data/lib/stripe/services/file_service.rb +124 -0
  234. data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
  235. data/lib/stripe/services/financial_connections/account_service.rb +177 -0
  236. data/lib/stripe/services/financial_connections/session_service.rb +98 -0
  237. data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
  238. data/lib/stripe/services/financial_connections_service.rb +15 -0
  239. data/lib/stripe/services/forwarding/request_service.rb +147 -0
  240. data/lib/stripe/services/forwarding_service.rb +13 -0
  241. data/lib/stripe/services/identity/verification_report_service.rb +95 -0
  242. data/lib/stripe/services/identity/verification_session_service.rb +337 -0
  243. data/lib/stripe/services/identity_service.rb +14 -0
  244. data/lib/stripe/services/invoice_item_service.rb +395 -0
  245. data/lib/stripe/services/invoice_line_item_service.rb +252 -0
  246. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  247. data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
  248. data/lib/stripe/services/invoice_service.rb +2831 -0
  249. data/lib/stripe/services/issuing/authorization_service.rb +169 -0
  250. data/lib/stripe/services/issuing/card_service.rb +507 -0
  251. data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
  252. data/lib/stripe/services/issuing/dispute_service.rb +696 -0
  253. data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
  254. data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
  255. data/lib/stripe/services/issuing/token_service.rb +114 -0
  256. data/lib/stripe/services/issuing/transaction_service.rb +118 -0
  257. data/lib/stripe/services/issuing_service.rb +20 -0
  258. data/lib/stripe/services/mandate_service.rb +26 -0
  259. data/lib/stripe/services/oauth_service.rb +63 -0
  260. data/lib/stripe/services/payment_intent_service.rb +7258 -0
  261. data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
  262. data/lib/stripe/services/payment_link_service.rb +1333 -0
  263. data/lib/stripe/services/payment_method_configuration_service.rb +2054 -0
  264. data/lib/stripe/services/payment_method_domain_service.rb +142 -0
  265. data/lib/stripe/services/payment_method_service.rb +894 -0
  266. data/lib/stripe/services/payout_service.rb +225 -0
  267. data/lib/stripe/services/plan_service.rb +298 -0
  268. data/lib/stripe/services/price_service.rb +545 -0
  269. data/lib/stripe/services/product_feature_service.rb +92 -0
  270. data/lib/stripe/services/product_service.rb +495 -0
  271. data/lib/stripe/services/promotion_code_service.rb +228 -0
  272. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
  273. data/lib/stripe/services/quote_line_item_service.rb +35 -0
  274. data/lib/stripe/services/quote_service.rb +703 -0
  275. data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
  276. data/lib/stripe/services/radar/value_list_item_service.rb +131 -0
  277. data/lib/stripe/services/radar/value_list_service.rb +166 -0
  278. data/lib/stripe/services/radar_service.rb +15 -0
  279. data/lib/stripe/services/refund_service.rb +200 -0
  280. data/lib/stripe/services/reporting/report_run_service.rb +147 -0
  281. data/lib/stripe/services/reporting/report_type_service.rb +48 -0
  282. data/lib/stripe/services/reporting_service.rb +14 -0
  283. data/lib/stripe/services/review_service.rb +89 -0
  284. data/lib/stripe/services/setup_attempt_service.rb +68 -0
  285. data/lib/stripe/services/setup_intent_service.rb +3268 -0
  286. data/lib/stripe/services/shipping_rate_service.rb +250 -0
  287. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
  288. data/lib/stripe/services/sigma_service.rb +13 -0
  289. data/lib/stripe/services/source_service.rb +665 -0
  290. data/lib/stripe/services/source_transaction_service.rb +35 -0
  291. data/lib/stripe/services/subscription_item_service.rb +346 -0
  292. data/lib/stripe/services/subscription_schedule_service.rb +1134 -0
  293. data/lib/stripe/services/subscription_service.rb +1539 -0
  294. data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
  295. data/lib/stripe/services/tax/calculation_service.rb +242 -0
  296. data/lib/stripe/services/tax/registration_service.rb +1618 -0
  297. data/lib/stripe/services/tax/settings_service.rb +104 -0
  298. data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
  299. data/lib/stripe/services/tax/transaction_service.rb +159 -0
  300. data/lib/stripe/services/tax_code_service.rb +49 -0
  301. data/lib/stripe/services/tax_id_service.rb +117 -0
  302. data/lib/stripe/services/tax_rate_service.rb +193 -0
  303. data/lib/stripe/services/tax_service.rb +16 -0
  304. data/lib/stripe/services/terminal/configuration_service.rb +1060 -0
  305. data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
  306. data/lib/stripe/services/terminal/location_service.rb +208 -0
  307. data/lib/stripe/services/terminal/reader_service.rb +384 -0
  308. data/lib/stripe/services/terminal_service.rb +16 -0
  309. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +661 -0
  310. data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
  311. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
  312. data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
  313. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
  314. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
  315. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  316. data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
  317. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +65 -0
  318. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  319. data/lib/stripe/services/test_helpers/test_clock_service.rb +120 -0
  320. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
  321. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
  322. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
  323. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
  324. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
  325. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  326. data/lib/stripe/services/test_helpers_service.rb +19 -0
  327. data/lib/stripe/services/token_service.rb +1163 -0
  328. data/lib/stripe/services/topup_service.rb +191 -0
  329. data/lib/stripe/services/transfer_reversal_service.rb +122 -0
  330. data/lib/stripe/services/transfer_service.rb +166 -0
  331. data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
  332. data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
  333. data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
  334. data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
  335. data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
  336. data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
  337. data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
  338. data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
  339. data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
  340. data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
  341. data/lib/stripe/services/treasury/transaction_service.rb +125 -0
  342. data/lib/stripe/services/treasury_service.rb +22 -0
  343. data/lib/stripe/services/v1_services.rb +90 -0
  344. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
  345. data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
  346. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +24 -0
  347. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
  348. data/lib/stripe/services/v2/billing_service.rb +18 -0
  349. data/lib/stripe/services/v2/core/event_destination_service.rb +241 -0
  350. data/lib/stripe/services/v2/core/event_service.rb +49 -0
  351. data/lib/stripe/services/v2/core_service.rb +16 -0
  352. data/lib/stripe/services/v2_services.rb +14 -0
  353. data/lib/stripe/services/webhook_endpoint_service.rb +157 -0
  354. data/lib/stripe/services.rb +180 -0
  355. data/lib/stripe/singleton_api_resource.rb +1 -18
  356. data/lib/stripe/stripe_client.rb +53 -1031
  357. data/lib/stripe/stripe_configuration.rb +52 -19
  358. data/lib/stripe/stripe_object.rb +54 -20
  359. data/lib/stripe/stripe_service.rb +32 -0
  360. data/lib/stripe/thin_event.rb +37 -0
  361. data/lib/stripe/util.rb +78 -37
  362. data/lib/stripe/v2_list_object.rb +84 -0
  363. data/lib/stripe/version.rb +1 -1
  364. data/lib/stripe/webhook.rb +1 -1
  365. data/lib/stripe.rb +38 -25
  366. data/rbi/stripe/resources/account.rbi +4840 -0
  367. data/rbi/stripe/resources/account_link.rbi +74 -0
  368. data/rbi/stripe/resources/account_session.rbi +894 -0
  369. data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
  370. data/rbi/stripe/resources/application.rbi +20 -0
  371. data/rbi/stripe/resources/application_fee.rbi +118 -0
  372. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  373. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  374. data/rbi/stripe/resources/balance.rbi +180 -0
  375. data/rbi/stripe/resources/balance_transaction.rbi +144 -0
  376. data/rbi/stripe/resources/bank_account.rbi +127 -0
  377. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  378. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  379. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  380. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  381. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  382. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  383. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  384. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  385. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  386. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  387. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  388. data/rbi/stripe/resources/capability.rbi +125 -0
  389. data/rbi/stripe/resources/card.rbi +125 -0
  390. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  391. data/rbi/stripe/resources/charge.rbi +2054 -0
  392. data/rbi/stripe/resources/checkout/session.rbi +3951 -0
  393. data/rbi/stripe/resources/climate/order.rbi +245 -0
  394. data/rbi/stripe/resources/climate/product.rbi +75 -0
  395. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  396. data/rbi/stripe/resources/confirmation_token.rbi +1793 -0
  397. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  398. data/rbi/stripe/resources/country_spec.rbi +85 -0
  399. data/rbi/stripe/resources/coupon.rbi +252 -0
  400. data/rbi/stripe/resources/credit_note.rbi +747 -0
  401. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  402. data/rbi/stripe/resources/customer.rbi +1009 -0
  403. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  404. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  405. data/rbi/stripe/resources/customer_session.rbi +200 -0
  406. data/rbi/stripe/resources/discount.rbi +53 -0
  407. data/rbi/stripe/resources/dispute.rbi +761 -0
  408. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  409. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  410. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  411. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  412. data/rbi/stripe/resources/event.rbi +146 -0
  413. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  414. data/rbi/stripe/resources/file.rbi +143 -0
  415. data/rbi/stripe/resources/file_link.rbi +141 -0
  416. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  417. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  418. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  419. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  420. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  421. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  422. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  423. data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
  424. data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
  425. data/rbi/stripe/resources/invoice.rbi +3733 -0
  426. data/rbi/stripe/resources/invoice_item.rbi +475 -0
  427. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  428. data/rbi/stripe/resources/invoice_payment.rbi +114 -0
  429. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  430. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  431. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  432. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  433. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  434. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  435. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  436. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  437. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  438. data/rbi/stripe/resources/line_item.rbi +72 -0
  439. data/rbi/stripe/resources/login_link.rbi +18 -0
  440. data/rbi/stripe/resources/mandate.rbi +187 -0
  441. data/rbi/stripe/resources/payment_intent.rbi +9731 -0
  442. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  443. data/rbi/stripe/resources/payment_method.rbi +1822 -0
  444. data/rbi/stripe/resources/payment_method_configuration.rbi +3154 -0
  445. data/rbi/stripe/resources/payment_method_domain.rbi +212 -0
  446. data/rbi/stripe/resources/payout.rbi +300 -0
  447. data/rbi/stripe/resources/person.rbi +371 -0
  448. data/rbi/stripe/resources/plan.rbi +373 -0
  449. data/rbi/stripe/resources/price.rbi +694 -0
  450. data/rbi/stripe/resources/product.rbi +557 -0
  451. data/rbi/stripe/resources/product_feature.rbi +26 -0
  452. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  453. data/rbi/stripe/resources/quote.rbi +1123 -0
  454. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  455. data/rbi/stripe/resources/radar/value_list.rbi +170 -0
  456. data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
  457. data/rbi/stripe/resources/refund.rbi +516 -0
  458. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  459. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  460. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  461. data/rbi/stripe/resources/reversal.rbi +51 -0
  462. data/rbi/stripe/resources/review.rbi +154 -0
  463. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  464. data/rbi/stripe/resources/setup_intent.rbi +3860 -0
  465. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  466. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  467. data/rbi/stripe/resources/source.rbi +1496 -0
  468. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  469. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  470. data/rbi/stripe/resources/subscription.rbi +1964 -0
  471. data/rbi/stripe/resources/subscription_item.rbi +370 -0
  472. data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
  473. data/rbi/stripe/resources/tax/calculation.rbi +474 -0
  474. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  475. data/rbi/stripe/resources/tax/registration.rbi +2485 -0
  476. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  477. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  478. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  479. data/rbi/stripe/resources/tax_code.rbi +44 -0
  480. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  481. data/rbi/stripe/resources/tax_id.rbi +167 -0
  482. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  483. data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
  484. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  485. data/rbi/stripe/resources/terminal/location.rbi +224 -0
  486. data/rbi/stripe/resources/terminal/reader.rbi +587 -0
  487. data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
  488. data/rbi/stripe/resources/token.rbi +1217 -0
  489. data/rbi/stripe/resources/topup.rbi +222 -0
  490. data/rbi/stripe/resources/transfer.rbi +199 -0
  491. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  492. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  493. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  494. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  495. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  496. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  497. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  498. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  499. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  500. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  501. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  502. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  503. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  504. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  505. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  506. data/rbi/stripe/resources/v2/event.rbi +48 -0
  507. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  508. data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
  509. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  510. data/rbi/stripe/services/account_external_account_service.rbi +306 -0
  511. data/rbi/stripe/services/account_link_service.rbi +58 -0
  512. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  513. data/rbi/stripe/services/account_person_service.rbi +923 -0
  514. data/rbi/stripe/services/account_service.rbi +4143 -0
  515. data/rbi/stripe/services/account_session_service.rbi +572 -0
  516. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  517. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  518. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  519. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  520. data/rbi/stripe/services/apps_service.rbi +9 -0
  521. data/rbi/stripe/services/balance_service.rbi +21 -0
  522. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  523. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  524. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  525. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  526. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  527. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  528. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  529. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  530. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  531. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  532. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  533. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  534. data/rbi/stripe/services/billing_service.rbi +15 -0
  535. data/rbi/stripe/services/charge_service.rbi +448 -0
  536. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  537. data/rbi/stripe/services/checkout/session_service.rbi +2585 -0
  538. data/rbi/stripe/services/checkout_service.rbi +9 -0
  539. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  540. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  541. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  542. data/rbi/stripe/services/climate_service.rbi +11 -0
  543. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  544. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  545. data/rbi/stripe/services/coupon_service.rbi +196 -0
  546. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  547. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  548. data/rbi/stripe/services/credit_note_service.rbi +416 -0
  549. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  550. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  551. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  552. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  553. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  554. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  555. data/rbi/stripe/services/customer_service.rbi +651 -0
  556. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  557. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  558. data/rbi/stripe/services/dispute_service.rbi +424 -0
  559. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  560. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  561. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  562. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  563. data/rbi/stripe/services/event_service.rbi +83 -0
  564. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  565. data/rbi/stripe/services/file_link_service.rbi +124 -0
  566. data/rbi/stripe/services/file_service.rbi +116 -0
  567. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  568. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  569. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  570. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  571. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  572. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  573. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  574. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  575. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  576. data/rbi/stripe/services/identity_service.rbi +10 -0
  577. data/rbi/stripe/services/invoice_item_service.rbi +368 -0
  578. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  579. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  580. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  581. data/rbi/stripe/services/invoice_service.rbi +2920 -0
  582. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  583. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  584. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  585. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  586. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  587. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  588. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  589. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  590. data/rbi/stripe/services/issuing_service.rbi +16 -0
  591. data/rbi/stripe/services/mandate_service.rbi +20 -0
  592. data/rbi/stripe/services/payment_intent_service.rbi +7759 -0
  593. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  594. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  595. data/rbi/stripe/services/payment_method_configuration_service.rbi +2211 -0
  596. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  597. data/rbi/stripe/services/payment_method_service.rbi +840 -0
  598. data/rbi/stripe/services/payout_service.rbi +205 -0
  599. data/rbi/stripe/services/plan_service.rbi +284 -0
  600. data/rbi/stripe/services/price_service.rbi +546 -0
  601. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  602. data/rbi/stripe/services/product_service.rbi +479 -0
  603. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  604. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  605. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  606. data/rbi/stripe/services/quote_service.rbi +686 -0
  607. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  608. data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
  609. data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
  610. data/rbi/stripe/services/radar_service.rbi +11 -0
  611. data/rbi/stripe/services/refund_service.rbi +185 -0
  612. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  613. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  614. data/rbi/stripe/services/reporting_service.rbi +10 -0
  615. data/rbi/stripe/services/review_service.rbi +84 -0
  616. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  617. data/rbi/stripe/services/setup_intent_service.rbi +3596 -0
  618. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  619. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  620. data/rbi/stripe/services/sigma_service.rbi +9 -0
  621. data/rbi/stripe/services/source_service.rbi +663 -0
  622. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  623. data/rbi/stripe/services/subscription_item_service.rbi +324 -0
  624. data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
  625. data/rbi/stripe/services/subscription_service.rbi +1596 -0
  626. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  627. data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
  628. data/rbi/stripe/services/tax/registration_service.rbi +1689 -0
  629. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  630. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  631. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  632. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  633. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  634. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  635. data/rbi/stripe/services/tax_service.rbi +12 -0
  636. data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
  637. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  638. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  639. data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
  640. data/rbi/stripe/services/terminal_service.rbi +12 -0
  641. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
  642. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  643. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  644. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  645. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  646. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  647. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  648. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  649. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  650. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  651. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
  652. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  653. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  654. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  655. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  656. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  657. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  658. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  659. data/rbi/stripe/services/token_service.rbi +1189 -0
  660. data/rbi/stripe/services/topup_service.rbi +176 -0
  661. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  662. data/rbi/stripe/services/transfer_service.rbi +152 -0
  663. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  664. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  665. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  666. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  667. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  668. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  669. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  670. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  671. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  672. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  673. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  674. data/rbi/stripe/services/treasury_service.rbi +18 -0
  675. data/rbi/stripe/services/v1_services.rbi +77 -0
  676. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  677. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  678. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  679. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  680. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  681. data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
  682. data/rbi/stripe/services/v2/core/event_service.rbi +38 -0
  683. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  684. data/rbi/stripe/services/v2_services.rbi +10 -0
  685. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  686. metadata +533 -4
  687. data/lib/stripe/resources/usage_record.rb +0 -17
  688. data/lib/stripe/resources/usage_record_summary.rb +0 -11
@@ -0,0 +1,2585 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ # typed: true
5
+ module Stripe
6
+ module Checkout
7
+ class SessionService < StripeService
8
+ attr_reader :line_items
9
+ class ListParams < Stripe::RequestParams
10
+ class Created < Stripe::RequestParams
11
+ # Minimum value to filter by (exclusive)
12
+ sig { returns(T.nilable(Integer)) }
13
+ attr_accessor :gt
14
+ # Minimum value to filter by (inclusive)
15
+ sig { returns(T.nilable(Integer)) }
16
+ attr_accessor :gte
17
+ # Maximum value to filter by (exclusive)
18
+ sig { returns(T.nilable(Integer)) }
19
+ attr_accessor :lt
20
+ # Maximum value to filter by (inclusive)
21
+ sig { returns(T.nilable(Integer)) }
22
+ attr_accessor :lte
23
+ sig {
24
+ params(gt: T.nilable(Integer), gte: T.nilable(Integer), lt: T.nilable(Integer), lte: T.nilable(Integer)).void
25
+ }
26
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end
27
+ end
28
+ class CustomerDetails < Stripe::RequestParams
29
+ # Customer's email address.
30
+ sig { returns(String) }
31
+ attr_accessor :email
32
+ sig { params(email: String).void }
33
+ def initialize(email: nil); end
34
+ end
35
+ # Only return Checkout Sessions that were created during the given date interval.
36
+ sig {
37
+ returns(T.nilable(T.any(::Stripe::Checkout::SessionService::ListParams::Created, Integer)))
38
+ }
39
+ attr_accessor :created
40
+ # Only return the Checkout Sessions for the Customer specified.
41
+ sig { returns(T.nilable(String)) }
42
+ attr_accessor :customer
43
+ # Only return the Checkout Sessions for the Customer details specified.
44
+ sig { returns(T.nilable(::Stripe::Checkout::SessionService::ListParams::CustomerDetails)) }
45
+ attr_accessor :customer_details
46
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_accessor :ending_before
49
+ # Specifies which fields in the response should be expanded.
50
+ sig { returns(T.nilable(T::Array[String])) }
51
+ attr_accessor :expand
52
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
53
+ sig { returns(T.nilable(Integer)) }
54
+ attr_accessor :limit
55
+ # Only return the Checkout Session for the PaymentIntent specified.
56
+ sig { returns(T.nilable(String)) }
57
+ attr_accessor :payment_intent
58
+ # Only return the Checkout Sessions for the Payment Link specified.
59
+ sig { returns(T.nilable(String)) }
60
+ attr_accessor :payment_link
61
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
62
+ sig { returns(T.nilable(String)) }
63
+ attr_accessor :starting_after
64
+ # Only return the Checkout Sessions matching the given status.
65
+ sig { returns(T.nilable(String)) }
66
+ attr_accessor :status
67
+ # Only return the Checkout Session for the subscription specified.
68
+ sig { returns(T.nilable(String)) }
69
+ attr_accessor :subscription
70
+ sig {
71
+ params(created: T.nilable(T.any(::Stripe::Checkout::SessionService::ListParams::Created, Integer)), customer: T.nilable(String), customer_details: T.nilable(::Stripe::Checkout::SessionService::ListParams::CustomerDetails), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), payment_intent: T.nilable(String), payment_link: T.nilable(String), starting_after: T.nilable(String), status: T.nilable(String), subscription: T.nilable(String)).void
72
+ }
73
+ def initialize(
74
+ created: nil,
75
+ customer: nil,
76
+ customer_details: nil,
77
+ ending_before: nil,
78
+ expand: nil,
79
+ limit: nil,
80
+ payment_intent: nil,
81
+ payment_link: nil,
82
+ starting_after: nil,
83
+ status: nil,
84
+ subscription: nil
85
+ ); end
86
+ end
87
+ class CreateParams < Stripe::RequestParams
88
+ class AdaptivePricing < Stripe::RequestParams
89
+ # Set to `true` to enable [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing).
90
+ sig { returns(T.nilable(T::Boolean)) }
91
+ attr_accessor :enabled
92
+ sig { params(enabled: T.nilable(T::Boolean)).void }
93
+ def initialize(enabled: nil); end
94
+ end
95
+ class AfterExpiration < Stripe::RequestParams
96
+ class Recovery < Stripe::RequestParams
97
+ # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
98
+ sig { returns(T.nilable(T::Boolean)) }
99
+ attr_accessor :allow_promotion_codes
100
+ # If `true`, a recovery URL will be generated to recover this Checkout Session if it
101
+ # expires before a successful transaction is completed. It will be attached to the
102
+ # Checkout Session object upon expiration.
103
+ sig { returns(T::Boolean) }
104
+ attr_accessor :enabled
105
+ sig { params(allow_promotion_codes: T.nilable(T::Boolean), enabled: T::Boolean).void }
106
+ def initialize(allow_promotion_codes: nil, enabled: nil); end
107
+ end
108
+ # Configure a Checkout Session that can be used to recover an expired session.
109
+ sig {
110
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration::Recovery))
111
+ }
112
+ attr_accessor :recovery
113
+ sig {
114
+ params(recovery: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration::Recovery)).void
115
+ }
116
+ def initialize(recovery: nil); end
117
+ end
118
+ class AutomaticTax < Stripe::RequestParams
119
+ class Liability < Stripe::RequestParams
120
+ # The connected account being referenced when `type` is `account`.
121
+ sig { returns(T.nilable(String)) }
122
+ attr_accessor :account
123
+ # Type of the account referenced in the request.
124
+ sig { returns(String) }
125
+ attr_accessor :type
126
+ sig { params(account: T.nilable(String), type: String).void }
127
+ def initialize(account: nil, type: nil); end
128
+ end
129
+ # Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
130
+ #
131
+ # Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
132
+ sig { returns(T::Boolean) }
133
+ attr_accessor :enabled
134
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
135
+ sig {
136
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax::Liability))
137
+ }
138
+ attr_accessor :liability
139
+ sig {
140
+ params(enabled: T::Boolean, liability: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax::Liability)).void
141
+ }
142
+ def initialize(enabled: nil, liability: nil); end
143
+ end
144
+ class ConsentCollection < Stripe::RequestParams
145
+ class PaymentMethodReuseAgreement < Stripe::RequestParams
146
+ # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
147
+ # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
148
+ sig { returns(String) }
149
+ attr_accessor :position
150
+ sig { params(position: String).void }
151
+ def initialize(position: nil); end
152
+ end
153
+ # Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
154
+ sig {
155
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection::PaymentMethodReuseAgreement))
156
+ }
157
+ attr_accessor :payment_method_reuse_agreement
158
+ # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
159
+ # Session will determine whether to display an option to opt into promotional communication
160
+ # from the merchant depending on the customer's locale. Only available to US merchants.
161
+ sig { returns(T.nilable(String)) }
162
+ attr_accessor :promotions
163
+ # If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.
164
+ # There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).
165
+ sig { returns(T.nilable(String)) }
166
+ attr_accessor :terms_of_service
167
+ sig {
168
+ params(payment_method_reuse_agreement: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection::PaymentMethodReuseAgreement), promotions: T.nilable(String), terms_of_service: T.nilable(String)).void
169
+ }
170
+ def initialize(
171
+ payment_method_reuse_agreement: nil,
172
+ promotions: nil,
173
+ terms_of_service: nil
174
+ ); end
175
+ end
176
+ class CustomField < Stripe::RequestParams
177
+ class Dropdown < Stripe::RequestParams
178
+ class Option < Stripe::RequestParams
179
+ # The label for the option, displayed to the customer. Up to 100 characters.
180
+ sig { returns(String) }
181
+ attr_accessor :label
182
+ # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
183
+ sig { returns(String) }
184
+ attr_accessor :value
185
+ sig { params(label: String, value: String).void }
186
+ def initialize(label: nil, value: nil); end
187
+ end
188
+ # The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
189
+ sig { returns(T.nilable(String)) }
190
+ attr_accessor :default_value
191
+ # The options available for the customer to select. Up to 200 options allowed.
192
+ sig {
193
+ returns(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField::Dropdown::Option])
194
+ }
195
+ attr_accessor :options
196
+ sig {
197
+ params(default_value: T.nilable(String), options: T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField::Dropdown::Option]).void
198
+ }
199
+ def initialize(default_value: nil, options: nil); end
200
+ end
201
+ class Label < Stripe::RequestParams
202
+ # Custom text for the label, displayed to the customer. Up to 50 characters.
203
+ sig { returns(String) }
204
+ attr_accessor :custom
205
+ # The type of the label.
206
+ sig { returns(String) }
207
+ attr_accessor :type
208
+ sig { params(custom: String, type: String).void }
209
+ def initialize(custom: nil, type: nil); end
210
+ end
211
+ class Numeric < Stripe::RequestParams
212
+ # The value that will pre-fill the field on the payment page.
213
+ sig { returns(T.nilable(String)) }
214
+ attr_accessor :default_value
215
+ # The maximum character length constraint for the customer's input.
216
+ sig { returns(T.nilable(Integer)) }
217
+ attr_accessor :maximum_length
218
+ # The minimum character length requirement for the customer's input.
219
+ sig { returns(T.nilable(Integer)) }
220
+ attr_accessor :minimum_length
221
+ sig {
222
+ params(default_value: T.nilable(String), maximum_length: T.nilable(Integer), minimum_length: T.nilable(Integer)).void
223
+ }
224
+ def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end
225
+ end
226
+ class Text < Stripe::RequestParams
227
+ # The value that will pre-fill the field on the payment page.
228
+ sig { returns(T.nilable(String)) }
229
+ attr_accessor :default_value
230
+ # The maximum character length constraint for the customer's input.
231
+ sig { returns(T.nilable(Integer)) }
232
+ attr_accessor :maximum_length
233
+ # The minimum character length requirement for the customer's input.
234
+ sig { returns(T.nilable(Integer)) }
235
+ attr_accessor :minimum_length
236
+ sig {
237
+ params(default_value: T.nilable(String), maximum_length: T.nilable(Integer), minimum_length: T.nilable(Integer)).void
238
+ }
239
+ def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end
240
+ end
241
+ # Configuration for `type=dropdown` fields.
242
+ sig {
243
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomField::Dropdown))
244
+ }
245
+ attr_accessor :dropdown
246
+ # String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
247
+ sig { returns(String) }
248
+ attr_accessor :key
249
+ # The label for the field, displayed to the customer.
250
+ sig { returns(::Stripe::Checkout::SessionService::CreateParams::CustomField::Label) }
251
+ attr_accessor :label
252
+ # Configuration for `type=numeric` fields.
253
+ sig {
254
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomField::Numeric))
255
+ }
256
+ attr_accessor :numeric
257
+ # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
258
+ sig { returns(T.nilable(T::Boolean)) }
259
+ attr_accessor :optional
260
+ # Configuration for `type=text` fields.
261
+ sig {
262
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomField::Text))
263
+ }
264
+ attr_accessor :text
265
+ # The type of the field.
266
+ sig { returns(String) }
267
+ attr_accessor :type
268
+ sig {
269
+ params(dropdown: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomField::Dropdown), key: String, label: ::Stripe::Checkout::SessionService::CreateParams::CustomField::Label, numeric: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomField::Numeric), optional: T.nilable(T::Boolean), text: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomField::Text), type: String).void
270
+ }
271
+ def initialize(
272
+ dropdown: nil,
273
+ key: nil,
274
+ label: nil,
275
+ numeric: nil,
276
+ optional: nil,
277
+ text: nil,
278
+ type: nil
279
+ ); end
280
+ end
281
+ class CustomText < Stripe::RequestParams
282
+ class AfterSubmit < Stripe::RequestParams
283
+ # Text may be up to 1200 characters in length.
284
+ sig { returns(String) }
285
+ attr_accessor :message
286
+ sig { params(message: String).void }
287
+ def initialize(message: nil); end
288
+ end
289
+ class ShippingAddress < Stripe::RequestParams
290
+ # Text may be up to 1200 characters in length.
291
+ sig { returns(String) }
292
+ attr_accessor :message
293
+ sig { params(message: String).void }
294
+ def initialize(message: nil); end
295
+ end
296
+ class Submit < Stripe::RequestParams
297
+ # Text may be up to 1200 characters in length.
298
+ sig { returns(String) }
299
+ attr_accessor :message
300
+ sig { params(message: String).void }
301
+ def initialize(message: nil); end
302
+ end
303
+ class TermsOfServiceAcceptance < Stripe::RequestParams
304
+ # Text may be up to 1200 characters in length.
305
+ sig { returns(String) }
306
+ attr_accessor :message
307
+ sig { params(message: String).void }
308
+ def initialize(message: nil); end
309
+ end
310
+ # Custom text that should be displayed after the payment confirmation button.
311
+ sig {
312
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::AfterSubmit))))
313
+ }
314
+ attr_accessor :after_submit
315
+ # Custom text that should be displayed alongside shipping address collection.
316
+ sig {
317
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::ShippingAddress))))
318
+ }
319
+ attr_accessor :shipping_address
320
+ # Custom text that should be displayed alongside the payment confirmation button.
321
+ sig {
322
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::Submit))))
323
+ }
324
+ attr_accessor :submit
325
+ # Custom text that should be displayed in place of the default terms of service agreement text.
326
+ sig {
327
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::TermsOfServiceAcceptance))))
328
+ }
329
+ attr_accessor :terms_of_service_acceptance
330
+ sig {
331
+ params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::TermsOfServiceAcceptance)))).void
332
+ }
333
+ def initialize(
334
+ after_submit: nil,
335
+ shipping_address: nil,
336
+ submit: nil,
337
+ terms_of_service_acceptance: nil
338
+ ); end
339
+ end
340
+ class CustomerUpdate < Stripe::RequestParams
341
+ # Describes whether Checkout saves the billing address onto `customer.address`.
342
+ # To always collect a full billing address, use `billing_address_collection`. Defaults to `never`.
343
+ sig { returns(T.nilable(String)) }
344
+ attr_accessor :address
345
+ # Describes whether Checkout saves the name onto `customer.name`. Defaults to `never`.
346
+ sig { returns(T.nilable(String)) }
347
+ attr_accessor :name
348
+ # Describes whether Checkout saves shipping information onto `customer.shipping`.
349
+ # To collect shipping information, use `shipping_address_collection`. Defaults to `never`.
350
+ sig { returns(T.nilable(String)) }
351
+ attr_accessor :shipping
352
+ sig {
353
+ params(address: T.nilable(String), name: T.nilable(String), shipping: T.nilable(String)).void
354
+ }
355
+ def initialize(address: nil, name: nil, shipping: nil); end
356
+ end
357
+ class Discount < Stripe::RequestParams
358
+ # The ID of the coupon to apply to this Session.
359
+ sig { returns(T.nilable(String)) }
360
+ attr_accessor :coupon
361
+ # The ID of a promotion code to apply to this Session.
362
+ sig { returns(T.nilable(String)) }
363
+ attr_accessor :promotion_code
364
+ sig { params(coupon: T.nilable(String), promotion_code: T.nilable(String)).void }
365
+ def initialize(coupon: nil, promotion_code: nil); end
366
+ end
367
+ class InvoiceCreation < Stripe::RequestParams
368
+ class InvoiceData < Stripe::RequestParams
369
+ class CustomField < Stripe::RequestParams
370
+ # The name of the custom field. This may be up to 40 characters.
371
+ sig { returns(String) }
372
+ attr_accessor :name
373
+ # The value of the custom field. This may be up to 140 characters.
374
+ sig { returns(String) }
375
+ attr_accessor :value
376
+ sig { params(name: String, value: String).void }
377
+ def initialize(name: nil, value: nil); end
378
+ end
379
+ class Issuer < Stripe::RequestParams
380
+ # The connected account being referenced when `type` is `account`.
381
+ sig { returns(T.nilable(String)) }
382
+ attr_accessor :account
383
+ # Type of the account referenced in the request.
384
+ sig { returns(String) }
385
+ attr_accessor :type
386
+ sig { params(account: T.nilable(String), type: String).void }
387
+ def initialize(account: nil, type: nil); end
388
+ end
389
+ class RenderingOptions < Stripe::RequestParams
390
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
391
+ sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
392
+ attr_accessor :amount_tax_display
393
+ sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
394
+ def initialize(amount_tax_display: nil); end
395
+ end
396
+ # The account tax IDs associated with the invoice.
397
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
398
+ attr_accessor :account_tax_ids
399
+ # Default custom fields to be displayed on invoices for this customer.
400
+ sig {
401
+ returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField]))))
402
+ }
403
+ attr_accessor :custom_fields
404
+ # An arbitrary string attached to the object. Often useful for displaying to users.
405
+ sig { returns(T.nilable(String)) }
406
+ attr_accessor :description
407
+ # Default footer to be displayed on invoices for this customer.
408
+ sig { returns(T.nilable(String)) }
409
+ attr_accessor :footer
410
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
411
+ sig {
412
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::Issuer))
413
+ }
414
+ attr_accessor :issuer
415
+ # 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`.
416
+ sig { returns(T.nilable(T::Hash[String, String])) }
417
+ attr_accessor :metadata
418
+ # Default options for invoice PDF rendering for this customer.
419
+ sig {
420
+ returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
421
+ }
422
+ attr_accessor :rendering_options
423
+ sig {
424
+ params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
425
+ }
426
+ def initialize(
427
+ account_tax_ids: nil,
428
+ custom_fields: nil,
429
+ description: nil,
430
+ footer: nil,
431
+ issuer: nil,
432
+ metadata: nil,
433
+ rendering_options: nil
434
+ ); end
435
+ end
436
+ # Set to `true` to enable invoice creation.
437
+ sig { returns(T::Boolean) }
438
+ attr_accessor :enabled
439
+ # Parameters passed when creating invoices for payment-mode Checkout Sessions.
440
+ sig {
441
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData))
442
+ }
443
+ attr_accessor :invoice_data
444
+ sig {
445
+ params(enabled: T::Boolean, invoice_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData)).void
446
+ }
447
+ def initialize(enabled: nil, invoice_data: nil); end
448
+ end
449
+ class LineItem < Stripe::RequestParams
450
+ class AdjustableQuantity < Stripe::RequestParams
451
+ # Set to true if the quantity can be adjusted to any non-negative integer.
452
+ sig { returns(T::Boolean) }
453
+ attr_accessor :enabled
454
+ # The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
455
+ sig { returns(T.nilable(Integer)) }
456
+ attr_accessor :maximum
457
+ # The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
458
+ sig { returns(T.nilable(Integer)) }
459
+ attr_accessor :minimum
460
+ sig {
461
+ params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
462
+ }
463
+ def initialize(enabled: nil, maximum: nil, minimum: nil); end
464
+ end
465
+ class PriceData < Stripe::RequestParams
466
+ class ProductData < Stripe::RequestParams
467
+ # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
468
+ sig { returns(T.nilable(String)) }
469
+ attr_accessor :description
470
+ # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
471
+ sig { returns(T.nilable(T::Array[String])) }
472
+ attr_accessor :images
473
+ # 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`.
474
+ sig { returns(T.nilable(T::Hash[String, String])) }
475
+ attr_accessor :metadata
476
+ # The product's name, meant to be displayable to the customer.
477
+ sig { returns(String) }
478
+ attr_accessor :name
479
+ # A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
480
+ sig { returns(T.nilable(String)) }
481
+ attr_accessor :tax_code
482
+ sig {
483
+ params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void
484
+ }
485
+ def initialize(
486
+ description: nil,
487
+ images: nil,
488
+ metadata: nil,
489
+ name: nil,
490
+ tax_code: nil
491
+ ); end
492
+ end
493
+ class Recurring < Stripe::RequestParams
494
+ # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
495
+ sig { returns(String) }
496
+ attr_accessor :interval
497
+ # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
498
+ sig { returns(T.nilable(Integer)) }
499
+ attr_accessor :interval_count
500
+ sig { params(interval: String, interval_count: T.nilable(Integer)).void }
501
+ def initialize(interval: nil, interval_count: nil); end
502
+ end
503
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
504
+ sig { returns(String) }
505
+ attr_accessor :currency
506
+ # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
507
+ sig { returns(T.nilable(String)) }
508
+ attr_accessor :product
509
+ # Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
510
+ sig {
511
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::PriceData::ProductData))
512
+ }
513
+ attr_accessor :product_data
514
+ # The recurring components of a price such as `interval` and `interval_count`.
515
+ sig {
516
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::PriceData::Recurring))
517
+ }
518
+ attr_accessor :recurring
519
+ # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
520
+ sig { returns(T.nilable(String)) }
521
+ attr_accessor :tax_behavior
522
+ # A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
523
+ sig { returns(T.nilable(Integer)) }
524
+ attr_accessor :unit_amount
525
+ # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
526
+ sig { returns(T.nilable(String)) }
527
+ attr_accessor :unit_amount_decimal
528
+ sig {
529
+ params(currency: String, product: T.nilable(String), product_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::PriceData::ProductData), recurring: T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::PriceData::Recurring), tax_behavior: T.nilable(String), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
530
+ }
531
+ def initialize(
532
+ currency: nil,
533
+ product: nil,
534
+ product_data: nil,
535
+ recurring: nil,
536
+ tax_behavior: nil,
537
+ unit_amount: nil,
538
+ unit_amount_decimal: nil
539
+ ); end
540
+ end
541
+ # When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
542
+ sig {
543
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::AdjustableQuantity))
544
+ }
545
+ attr_accessor :adjustable_quantity
546
+ # The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
547
+ sig { returns(T.nilable(T::Array[String])) }
548
+ attr_accessor :dynamic_tax_rates
549
+ # The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
550
+ sig { returns(T.nilable(String)) }
551
+ attr_accessor :price
552
+ # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
553
+ sig {
554
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::PriceData))
555
+ }
556
+ attr_accessor :price_data
557
+ # The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
558
+ sig { returns(T.nilable(Integer)) }
559
+ attr_accessor :quantity
560
+ # The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
561
+ sig { returns(T.nilable(T::Array[String])) }
562
+ attr_accessor :tax_rates
563
+ sig {
564
+ params(adjustable_quantity: T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::AdjustableQuantity), dynamic_tax_rates: T.nilable(T::Array[String]), price: T.nilable(String), price_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T::Array[String])).void
565
+ }
566
+ def initialize(
567
+ adjustable_quantity: nil,
568
+ dynamic_tax_rates: nil,
569
+ price: nil,
570
+ price_data: nil,
571
+ quantity: nil,
572
+ tax_rates: nil
573
+ ); end
574
+ end
575
+ class OptionalItem < Stripe::RequestParams
576
+ class AdjustableQuantity < Stripe::RequestParams
577
+ # Set to true if the quantity can be adjusted to any non-negative integer.
578
+ sig { returns(T::Boolean) }
579
+ attr_accessor :enabled
580
+ # The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
581
+ sig { returns(T.nilable(Integer)) }
582
+ attr_accessor :maximum
583
+ # The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
584
+ sig { returns(T.nilable(Integer)) }
585
+ attr_accessor :minimum
586
+ sig {
587
+ params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
588
+ }
589
+ def initialize(enabled: nil, maximum: nil, minimum: nil); end
590
+ end
591
+ # When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
592
+ sig {
593
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::OptionalItem::AdjustableQuantity))
594
+ }
595
+ attr_accessor :adjustable_quantity
596
+ # The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
597
+ sig { returns(String) }
598
+ attr_accessor :price
599
+ # The initial quantity of the line item created when a customer chooses to add this optional item to their order.
600
+ sig { returns(Integer) }
601
+ attr_accessor :quantity
602
+ sig {
603
+ params(adjustable_quantity: T.nilable(::Stripe::Checkout::SessionService::CreateParams::OptionalItem::AdjustableQuantity), price: String, quantity: Integer).void
604
+ }
605
+ def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end
606
+ end
607
+ class PaymentIntentData < Stripe::RequestParams
608
+ class Shipping < Stripe::RequestParams
609
+ class Address < Stripe::RequestParams
610
+ # City, district, suburb, town, or village.
611
+ sig { returns(T.nilable(String)) }
612
+ attr_accessor :city
613
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
614
+ sig { returns(T.nilable(String)) }
615
+ attr_accessor :country
616
+ # Address line 1 (e.g., street, PO Box, or company name).
617
+ sig { returns(String) }
618
+ attr_accessor :line1
619
+ # Address line 2 (e.g., apartment, suite, unit, or building).
620
+ sig { returns(T.nilable(String)) }
621
+ attr_accessor :line2
622
+ # ZIP or postal code.
623
+ sig { returns(T.nilable(String)) }
624
+ attr_accessor :postal_code
625
+ # State, county, province, or region.
626
+ sig { returns(T.nilable(String)) }
627
+ attr_accessor :state
628
+ sig {
629
+ params(city: T.nilable(String), country: T.nilable(String), line1: String, line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
630
+ }
631
+ def initialize(
632
+ city: nil,
633
+ country: nil,
634
+ line1: nil,
635
+ line2: nil,
636
+ postal_code: nil,
637
+ state: nil
638
+ ); end
639
+ end
640
+ # Shipping address.
641
+ sig {
642
+ returns(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData::Shipping::Address)
643
+ }
644
+ attr_accessor :address
645
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
646
+ sig { returns(T.nilable(String)) }
647
+ attr_accessor :carrier
648
+ # Recipient name.
649
+ sig { returns(String) }
650
+ attr_accessor :name
651
+ # Recipient phone (including extension).
652
+ sig { returns(T.nilable(String)) }
653
+ attr_accessor :phone
654
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
655
+ sig { returns(T.nilable(String)) }
656
+ attr_accessor :tracking_number
657
+ sig {
658
+ params(address: ::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData::Shipping::Address, carrier: T.nilable(String), name: String, phone: T.nilable(String), tracking_number: T.nilable(String)).void
659
+ }
660
+ def initialize(
661
+ address: nil,
662
+ carrier: nil,
663
+ name: nil,
664
+ phone: nil,
665
+ tracking_number: nil
666
+ ); end
667
+ end
668
+ class TransferData < Stripe::RequestParams
669
+ # The amount that will be transferred automatically when a charge succeeds.
670
+ sig { returns(T.nilable(Integer)) }
671
+ attr_accessor :amount
672
+ # If specified, successful charges will be attributed to the destination
673
+ # account for tax reporting, and the funds from charges will be transferred
674
+ # to the destination account. The ID of the resulting transfer will be
675
+ # returned on the successful charge's `transfer` field.
676
+ sig { returns(String) }
677
+ attr_accessor :destination
678
+ sig { params(amount: T.nilable(Integer), destination: String).void }
679
+ def initialize(amount: nil, destination: nil); end
680
+ end
681
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
682
+ sig { returns(T.nilable(Integer)) }
683
+ attr_accessor :application_fee_amount
684
+ # Controls when the funds will be captured from the customer's account.
685
+ sig { returns(T.nilable(String)) }
686
+ attr_accessor :capture_method
687
+ # An arbitrary string attached to the object. Often useful for displaying to users.
688
+ sig { returns(T.nilable(String)) }
689
+ attr_accessor :description
690
+ # 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`.
691
+ sig { returns(T.nilable(T::Hash[String, String])) }
692
+ attr_accessor :metadata
693
+ # The Stripe account ID for which these funds are intended. For details,
694
+ # see the PaymentIntents [use case for connected
695
+ # accounts](/docs/payments/connected-accounts).
696
+ sig { returns(T.nilable(String)) }
697
+ attr_accessor :on_behalf_of
698
+ # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
699
+ sig { returns(T.nilable(String)) }
700
+ attr_accessor :receipt_email
701
+ # Indicates that you intend to [make future payments](https://stripe.com/docs/payments/payment-intents#future-usage) with the payment
702
+ # method collected by this Checkout Session.
703
+ #
704
+ # When setting this to `on_session`, Checkout will show a notice to the
705
+ # customer that their payment details will be saved.
706
+ #
707
+ # When setting this to `off_session`, Checkout will show a notice to the
708
+ # customer that their payment details will be saved and used for future
709
+ # payments.
710
+ #
711
+ # If a Customer has been provided or Checkout creates a new Customer,
712
+ # Checkout will attach the payment method to the Customer.
713
+ #
714
+ # If Checkout does not create a Customer, the payment method is not attached
715
+ # to a Customer. To reuse the payment method, you can retrieve it from the
716
+ # Checkout Session's PaymentIntent.
717
+ #
718
+ # When processing card payments, Checkout also uses `setup_future_usage`
719
+ # to dynamically optimize your payment flow and comply with regional
720
+ # legislation and network rules, such as SCA.
721
+ sig { returns(T.nilable(String)) }
722
+ attr_accessor :setup_future_usage
723
+ # Shipping information for this payment.
724
+ sig {
725
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData::Shipping))
726
+ }
727
+ attr_accessor :shipping
728
+ # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
729
+ #
730
+ # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
731
+ sig { returns(T.nilable(String)) }
732
+ attr_accessor :statement_descriptor
733
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
734
+ sig { returns(T.nilable(String)) }
735
+ attr_accessor :statement_descriptor_suffix
736
+ # The parameters used to automatically create a Transfer when the payment succeeds.
737
+ # For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
738
+ sig {
739
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData::TransferData))
740
+ }
741
+ attr_accessor :transfer_data
742
+ # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
743
+ sig { returns(T.nilable(String)) }
744
+ attr_accessor :transfer_group
745
+ sig {
746
+ params(application_fee_amount: T.nilable(Integer), capture_method: T.nilable(String), description: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), receipt_email: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData::TransferData), transfer_group: T.nilable(String)).void
747
+ }
748
+ def initialize(
749
+ application_fee_amount: nil,
750
+ capture_method: nil,
751
+ description: nil,
752
+ metadata: nil,
753
+ on_behalf_of: nil,
754
+ receipt_email: nil,
755
+ setup_future_usage: nil,
756
+ shipping: nil,
757
+ statement_descriptor: nil,
758
+ statement_descriptor_suffix: nil,
759
+ transfer_data: nil,
760
+ transfer_group: nil
761
+ ); end
762
+ end
763
+ class PaymentMethodData < Stripe::RequestParams
764
+ # Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.
765
+ sig { returns(T.nilable(String)) }
766
+ attr_accessor :allow_redisplay
767
+ sig { params(allow_redisplay: T.nilable(String)).void }
768
+ def initialize(allow_redisplay: nil); end
769
+ end
770
+ class PaymentMethodOptions < Stripe::RequestParams
771
+ class AcssDebit < Stripe::RequestParams
772
+ class MandateOptions < Stripe::RequestParams
773
+ # A URL for custom mandate text to render during confirmation step.
774
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
775
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
776
+ sig { returns(T.nilable(T.nilable(String))) }
777
+ attr_accessor :custom_mandate_url
778
+ # List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
779
+ sig { returns(T.nilable(T::Array[String])) }
780
+ attr_accessor :default_for
781
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
782
+ sig { returns(T.nilable(String)) }
783
+ attr_accessor :interval_description
784
+ # Payment schedule for the mandate.
785
+ sig { returns(T.nilable(String)) }
786
+ attr_accessor :payment_schedule
787
+ # Transaction type of the mandate.
788
+ sig { returns(T.nilable(String)) }
789
+ attr_accessor :transaction_type
790
+ sig {
791
+ params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
792
+ }
793
+ def initialize(
794
+ custom_mandate_url: nil,
795
+ default_for: nil,
796
+ interval_description: nil,
797
+ payment_schedule: nil,
798
+ transaction_type: nil
799
+ ); end
800
+ end
801
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). This is only accepted for Checkout Sessions in `setup` mode.
802
+ sig { returns(T.nilable(String)) }
803
+ attr_accessor :currency
804
+ # Additional fields for Mandate creation
805
+ sig {
806
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions))
807
+ }
808
+ attr_accessor :mandate_options
809
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
810
+ #
811
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
812
+ #
813
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
814
+ #
815
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
816
+ sig { returns(T.nilable(String)) }
817
+ attr_accessor :setup_future_usage
818
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
819
+ sig { returns(T.nilable(String)) }
820
+ attr_accessor :target_date
821
+ # Verification method for the intent
822
+ sig { returns(T.nilable(String)) }
823
+ attr_accessor :verification_method
824
+ sig {
825
+ params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(String), target_date: T.nilable(String), verification_method: T.nilable(String)).void
826
+ }
827
+ def initialize(
828
+ currency: nil,
829
+ mandate_options: nil,
830
+ setup_future_usage: nil,
831
+ target_date: nil,
832
+ verification_method: nil
833
+ ); end
834
+ end
835
+ class Affirm < Stripe::RequestParams
836
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
837
+ #
838
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
839
+ #
840
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
841
+ #
842
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
843
+ sig { returns(T.nilable(String)) }
844
+ attr_accessor :setup_future_usage
845
+ sig { params(setup_future_usage: T.nilable(String)).void }
846
+ def initialize(setup_future_usage: nil); end
847
+ end
848
+ class AfterpayClearpay < Stripe::RequestParams
849
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
850
+ #
851
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
852
+ #
853
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
854
+ #
855
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
856
+ sig { returns(T.nilable(String)) }
857
+ attr_accessor :setup_future_usage
858
+ sig { params(setup_future_usage: T.nilable(String)).void }
859
+ def initialize(setup_future_usage: nil); end
860
+ end
861
+ class Alipay < Stripe::RequestParams
862
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
863
+ #
864
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
865
+ #
866
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
867
+ #
868
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
869
+ sig { returns(T.nilable(String)) }
870
+ attr_accessor :setup_future_usage
871
+ sig { params(setup_future_usage: T.nilable(String)).void }
872
+ def initialize(setup_future_usage: nil); end
873
+ end
874
+ class AmazonPay < Stripe::RequestParams
875
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
876
+ #
877
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
878
+ #
879
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
880
+ #
881
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
882
+ sig { returns(T.nilable(String)) }
883
+ attr_accessor :setup_future_usage
884
+ sig { params(setup_future_usage: T.nilable(String)).void }
885
+ def initialize(setup_future_usage: nil); end
886
+ end
887
+ class AuBecsDebit < Stripe::RequestParams
888
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
889
+ #
890
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
891
+ #
892
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
893
+ #
894
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
895
+ sig { returns(T.nilable(String)) }
896
+ attr_accessor :setup_future_usage
897
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
898
+ sig { returns(T.nilable(String)) }
899
+ attr_accessor :target_date
900
+ sig {
901
+ params(setup_future_usage: T.nilable(String), target_date: T.nilable(String)).void
902
+ }
903
+ def initialize(setup_future_usage: nil, target_date: nil); end
904
+ end
905
+ class BacsDebit < Stripe::RequestParams
906
+ class MandateOptions < Stripe::RequestParams
907
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
908
+ sig { returns(T.nilable(T.nilable(String))) }
909
+ attr_accessor :reference_prefix
910
+ sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
911
+ def initialize(reference_prefix: nil); end
912
+ end
913
+ # Additional fields for Mandate creation
914
+ sig {
915
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions))
916
+ }
917
+ attr_accessor :mandate_options
918
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
919
+ #
920
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
921
+ #
922
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
923
+ #
924
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
925
+ sig { returns(T.nilable(String)) }
926
+ attr_accessor :setup_future_usage
927
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
928
+ sig { returns(T.nilable(String)) }
929
+ attr_accessor :target_date
930
+ sig {
931
+ params(mandate_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(String), target_date: T.nilable(String)).void
932
+ }
933
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
934
+ end
935
+ class Bancontact < Stripe::RequestParams
936
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
937
+ #
938
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
939
+ #
940
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
941
+ #
942
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
943
+ sig { returns(T.nilable(String)) }
944
+ attr_accessor :setup_future_usage
945
+ sig { params(setup_future_usage: T.nilable(String)).void }
946
+ def initialize(setup_future_usage: nil); end
947
+ end
948
+ class Boleto < Stripe::RequestParams
949
+ # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
950
+ sig { returns(T.nilable(Integer)) }
951
+ attr_accessor :expires_after_days
952
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
953
+ #
954
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
955
+ #
956
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
957
+ #
958
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
959
+ sig { returns(T.nilable(String)) }
960
+ attr_accessor :setup_future_usage
961
+ sig {
962
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(String)).void
963
+ }
964
+ def initialize(expires_after_days: nil, setup_future_usage: nil); end
965
+ end
966
+ class Card < Stripe::RequestParams
967
+ class Installments < Stripe::RequestParams
968
+ # Setting to true enables installments for this Checkout Session.
969
+ # Setting to false will prevent any installment plan from applying to a payment.
970
+ sig { returns(T.nilable(T::Boolean)) }
971
+ attr_accessor :enabled
972
+ sig { params(enabled: T.nilable(T::Boolean)).void }
973
+ def initialize(enabled: nil); end
974
+ end
975
+ class Restrictions < Stripe::RequestParams
976
+ # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
977
+ sig { returns(T.nilable(T::Array[String])) }
978
+ attr_accessor :brands_blocked
979
+ sig { params(brands_blocked: T.nilable(T::Array[String])).void }
980
+ def initialize(brands_blocked: nil); end
981
+ end
982
+ # Installment options for card payments
983
+ sig {
984
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Installments))
985
+ }
986
+ attr_accessor :installments
987
+ # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
988
+ sig { returns(T.nilable(String)) }
989
+ attr_accessor :request_extended_authorization
990
+ # Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
991
+ sig { returns(T.nilable(String)) }
992
+ attr_accessor :request_incremental_authorization
993
+ # Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession.
994
+ sig { returns(T.nilable(String)) }
995
+ attr_accessor :request_multicapture
996
+ # Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
997
+ sig { returns(T.nilable(String)) }
998
+ attr_accessor :request_overcapture
999
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1000
+ sig { returns(T.nilable(String)) }
1001
+ attr_accessor :request_three_d_secure
1002
+ # Restrictions to apply to the card payment method. For example, you can block specific card brands.
1003
+ sig {
1004
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Restrictions))
1005
+ }
1006
+ attr_accessor :restrictions
1007
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1008
+ #
1009
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1010
+ #
1011
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1012
+ #
1013
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1014
+ sig { returns(T.nilable(String)) }
1015
+ attr_accessor :setup_future_usage
1016
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
1017
+ sig { returns(T.nilable(String)) }
1018
+ attr_accessor :statement_descriptor_suffix_kana
1019
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1020
+ sig { returns(T.nilable(String)) }
1021
+ attr_accessor :statement_descriptor_suffix_kanji
1022
+ sig {
1023
+ params(installments: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Installments), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), restrictions: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Restrictions), setup_future_usage: T.nilable(String), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String)).void
1024
+ }
1025
+ def initialize(
1026
+ installments: nil,
1027
+ request_extended_authorization: nil,
1028
+ request_incremental_authorization: nil,
1029
+ request_multicapture: nil,
1030
+ request_overcapture: nil,
1031
+ request_three_d_secure: nil,
1032
+ restrictions: nil,
1033
+ setup_future_usage: nil,
1034
+ statement_descriptor_suffix_kana: nil,
1035
+ statement_descriptor_suffix_kanji: nil
1036
+ ); end
1037
+ end
1038
+ class Cashapp < Stripe::RequestParams
1039
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1040
+ #
1041
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1042
+ #
1043
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1044
+ #
1045
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1046
+ sig { returns(T.nilable(String)) }
1047
+ attr_accessor :setup_future_usage
1048
+ sig { params(setup_future_usage: T.nilable(String)).void }
1049
+ def initialize(setup_future_usage: nil); end
1050
+ end
1051
+ class CustomerBalance < Stripe::RequestParams
1052
+ class BankTransfer < Stripe::RequestParams
1053
+ class EuBankTransfer < Stripe::RequestParams
1054
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1055
+ sig { returns(String) }
1056
+ attr_accessor :country
1057
+ sig { params(country: String).void }
1058
+ def initialize(country: nil); end
1059
+ end
1060
+ # Configuration for eu_bank_transfer funding type.
1061
+ sig {
1062
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance::BankTransfer::EuBankTransfer))
1063
+ }
1064
+ attr_accessor :eu_bank_transfer
1065
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1066
+ #
1067
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1068
+ sig { returns(T.nilable(T::Array[String])) }
1069
+ attr_accessor :requested_address_types
1070
+ # The list of bank transfer types that this PaymentIntent is allowed to use for funding.
1071
+ sig { returns(String) }
1072
+ attr_accessor :type
1073
+ sig {
1074
+ params(eu_bank_transfer: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance::BankTransfer::EuBankTransfer), requested_address_types: T.nilable(T::Array[String]), type: String).void
1075
+ }
1076
+ def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil); end
1077
+ end
1078
+ # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
1079
+ sig {
1080
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance::BankTransfer))
1081
+ }
1082
+ attr_accessor :bank_transfer
1083
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1084
+ sig { returns(T.nilable(String)) }
1085
+ attr_accessor :funding_type
1086
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1087
+ #
1088
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1089
+ #
1090
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1091
+ #
1092
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1093
+ sig { returns(T.nilable(String)) }
1094
+ attr_accessor :setup_future_usage
1095
+ sig {
1096
+ params(bank_transfer: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance::BankTransfer), funding_type: T.nilable(String), setup_future_usage: T.nilable(String)).void
1097
+ }
1098
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end
1099
+ end
1100
+ class Eps < Stripe::RequestParams
1101
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1102
+ #
1103
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1104
+ #
1105
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1106
+ #
1107
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1108
+ sig { returns(T.nilable(String)) }
1109
+ attr_accessor :setup_future_usage
1110
+ sig { params(setup_future_usage: T.nilable(String)).void }
1111
+ def initialize(setup_future_usage: nil); end
1112
+ end
1113
+ class Fpx < Stripe::RequestParams
1114
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1115
+ #
1116
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1117
+ #
1118
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1119
+ #
1120
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1121
+ sig { returns(T.nilable(String)) }
1122
+ attr_accessor :setup_future_usage
1123
+ sig { params(setup_future_usage: T.nilable(String)).void }
1124
+ def initialize(setup_future_usage: nil); end
1125
+ end
1126
+ class Giropay < Stripe::RequestParams
1127
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1128
+ #
1129
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1130
+ #
1131
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1132
+ #
1133
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1134
+ sig { returns(T.nilable(String)) }
1135
+ attr_accessor :setup_future_usage
1136
+ sig { params(setup_future_usage: T.nilable(String)).void }
1137
+ def initialize(setup_future_usage: nil); end
1138
+ end
1139
+ class Grabpay < Stripe::RequestParams
1140
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1141
+ #
1142
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1143
+ #
1144
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1145
+ #
1146
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1147
+ sig { returns(T.nilable(String)) }
1148
+ attr_accessor :setup_future_usage
1149
+ sig { params(setup_future_usage: T.nilable(String)).void }
1150
+ def initialize(setup_future_usage: nil); end
1151
+ end
1152
+ class Ideal < Stripe::RequestParams
1153
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1154
+ #
1155
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1156
+ #
1157
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1158
+ #
1159
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1160
+ sig { returns(T.nilable(String)) }
1161
+ attr_accessor :setup_future_usage
1162
+ sig { params(setup_future_usage: T.nilable(String)).void }
1163
+ def initialize(setup_future_usage: nil); end
1164
+ end
1165
+ class KakaoPay < Stripe::RequestParams
1166
+ # Controls when the funds will be captured from the customer's account.
1167
+ sig { returns(T.nilable(String)) }
1168
+ attr_accessor :capture_method
1169
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1170
+ #
1171
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1172
+ #
1173
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1174
+ #
1175
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1176
+ sig { returns(T.nilable(String)) }
1177
+ attr_accessor :setup_future_usage
1178
+ sig {
1179
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
1180
+ }
1181
+ def initialize(capture_method: nil, setup_future_usage: nil); end
1182
+ end
1183
+ class Klarna < Stripe::RequestParams
1184
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1185
+ #
1186
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1187
+ #
1188
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1189
+ #
1190
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1191
+ sig { returns(T.nilable(String)) }
1192
+ attr_accessor :setup_future_usage
1193
+ sig { params(setup_future_usage: T.nilable(String)).void }
1194
+ def initialize(setup_future_usage: nil); end
1195
+ end
1196
+ class Konbini < Stripe::RequestParams
1197
+ # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
1198
+ sig { returns(T.nilable(Integer)) }
1199
+ attr_accessor :expires_after_days
1200
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1201
+ #
1202
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1203
+ #
1204
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1205
+ #
1206
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1207
+ sig { returns(T.nilable(String)) }
1208
+ attr_accessor :setup_future_usage
1209
+ sig {
1210
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(String)).void
1211
+ }
1212
+ def initialize(expires_after_days: nil, setup_future_usage: nil); end
1213
+ end
1214
+ class KrCard < Stripe::RequestParams
1215
+ # Controls when the funds will be captured from the customer's account.
1216
+ sig { returns(T.nilable(String)) }
1217
+ attr_accessor :capture_method
1218
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1219
+ #
1220
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1221
+ #
1222
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1223
+ #
1224
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1225
+ sig { returns(T.nilable(String)) }
1226
+ attr_accessor :setup_future_usage
1227
+ sig {
1228
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
1229
+ }
1230
+ def initialize(capture_method: nil, setup_future_usage: nil); end
1231
+ end
1232
+ class Link < Stripe::RequestParams
1233
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1234
+ #
1235
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1236
+ #
1237
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1238
+ #
1239
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1240
+ sig { returns(T.nilable(String)) }
1241
+ attr_accessor :setup_future_usage
1242
+ sig { params(setup_future_usage: T.nilable(String)).void }
1243
+ def initialize(setup_future_usage: nil); end
1244
+ end
1245
+ class Mobilepay < Stripe::RequestParams
1246
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1247
+ #
1248
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1249
+ #
1250
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1251
+ #
1252
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1253
+ sig { returns(T.nilable(String)) }
1254
+ attr_accessor :setup_future_usage
1255
+ sig { params(setup_future_usage: T.nilable(String)).void }
1256
+ def initialize(setup_future_usage: nil); end
1257
+ end
1258
+ class Multibanco < Stripe::RequestParams
1259
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1260
+ #
1261
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1262
+ #
1263
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1264
+ #
1265
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1266
+ sig { returns(T.nilable(String)) }
1267
+ attr_accessor :setup_future_usage
1268
+ sig { params(setup_future_usage: T.nilable(String)).void }
1269
+ def initialize(setup_future_usage: nil); end
1270
+ end
1271
+ class NaverPay < Stripe::RequestParams
1272
+ # Controls when the funds will be captured from the customer's account.
1273
+ sig { returns(T.nilable(String)) }
1274
+ attr_accessor :capture_method
1275
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1276
+ #
1277
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1278
+ #
1279
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1280
+ #
1281
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1282
+ sig { returns(T.nilable(String)) }
1283
+ attr_accessor :setup_future_usage
1284
+ sig {
1285
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
1286
+ }
1287
+ def initialize(capture_method: nil, setup_future_usage: nil); end
1288
+ end
1289
+ class Oxxo < Stripe::RequestParams
1290
+ # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1291
+ sig { returns(T.nilable(Integer)) }
1292
+ attr_accessor :expires_after_days
1293
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1294
+ #
1295
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1296
+ #
1297
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1298
+ #
1299
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1300
+ sig { returns(T.nilable(String)) }
1301
+ attr_accessor :setup_future_usage
1302
+ sig {
1303
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(String)).void
1304
+ }
1305
+ def initialize(expires_after_days: nil, setup_future_usage: nil); end
1306
+ end
1307
+ class P24 < Stripe::RequestParams
1308
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1309
+ #
1310
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1311
+ #
1312
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1313
+ #
1314
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1315
+ sig { returns(T.nilable(String)) }
1316
+ attr_accessor :setup_future_usage
1317
+ # Confirm that the payer has accepted the P24 terms and conditions.
1318
+ sig { returns(T.nilable(T::Boolean)) }
1319
+ attr_accessor :tos_shown_and_accepted
1320
+ sig {
1321
+ params(setup_future_usage: T.nilable(String), tos_shown_and_accepted: T.nilable(T::Boolean)).void
1322
+ }
1323
+ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
1324
+ end
1325
+ class PayByBank < Stripe::RequestParams
1326
+
1327
+ end
1328
+ class Payco < Stripe::RequestParams
1329
+ # Controls when the funds will be captured from the customer's account.
1330
+ sig { returns(T.nilable(String)) }
1331
+ attr_accessor :capture_method
1332
+ sig { params(capture_method: T.nilable(String)).void }
1333
+ def initialize(capture_method: nil); end
1334
+ end
1335
+ class Paynow < Stripe::RequestParams
1336
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1337
+ #
1338
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1339
+ #
1340
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1341
+ #
1342
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1343
+ sig { returns(T.nilable(String)) }
1344
+ attr_accessor :setup_future_usage
1345
+ sig { params(setup_future_usage: T.nilable(String)).void }
1346
+ def initialize(setup_future_usage: nil); end
1347
+ end
1348
+ class Paypal < Stripe::RequestParams
1349
+ # Controls when the funds will be captured from the customer's account.
1350
+ sig { returns(T.nilable(T.nilable(String))) }
1351
+ attr_accessor :capture_method
1352
+ # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1353
+ sig { returns(T.nilable(String)) }
1354
+ attr_accessor :preferred_locale
1355
+ # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1356
+ sig { returns(T.nilable(String)) }
1357
+ attr_accessor :reference
1358
+ # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1359
+ sig { returns(T.nilable(String)) }
1360
+ attr_accessor :risk_correlation_id
1361
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1362
+ #
1363
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1364
+ #
1365
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1366
+ #
1367
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1368
+ #
1369
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1370
+ sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
1371
+ attr_accessor :setup_future_usage
1372
+ sig {
1373
+ params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
1374
+ }
1375
+ def initialize(
1376
+ capture_method: nil,
1377
+ preferred_locale: nil,
1378
+ reference: nil,
1379
+ risk_correlation_id: nil,
1380
+ setup_future_usage: nil
1381
+ ); end
1382
+ end
1383
+ class Pix < Stripe::RequestParams
1384
+ # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1385
+ sig { returns(T.nilable(Integer)) }
1386
+ attr_accessor :expires_after_seconds
1387
+ sig { params(expires_after_seconds: T.nilable(Integer)).void }
1388
+ def initialize(expires_after_seconds: nil); end
1389
+ end
1390
+ class RevolutPay < Stripe::RequestParams
1391
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1392
+ #
1393
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1394
+ #
1395
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1396
+ #
1397
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1398
+ sig { returns(T.nilable(String)) }
1399
+ attr_accessor :setup_future_usage
1400
+ sig { params(setup_future_usage: T.nilable(String)).void }
1401
+ def initialize(setup_future_usage: nil); end
1402
+ end
1403
+ class SamsungPay < Stripe::RequestParams
1404
+ # Controls when the funds will be captured from the customer's account.
1405
+ sig { returns(T.nilable(String)) }
1406
+ attr_accessor :capture_method
1407
+ sig { params(capture_method: T.nilable(String)).void }
1408
+ def initialize(capture_method: nil); end
1409
+ end
1410
+ class SepaDebit < Stripe::RequestParams
1411
+ class MandateOptions < Stripe::RequestParams
1412
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
1413
+ sig { returns(T.nilable(T.nilable(String))) }
1414
+ attr_accessor :reference_prefix
1415
+ sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
1416
+ def initialize(reference_prefix: nil); end
1417
+ end
1418
+ # Additional fields for Mandate creation
1419
+ sig {
1420
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions))
1421
+ }
1422
+ attr_accessor :mandate_options
1423
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1424
+ #
1425
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1426
+ #
1427
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1428
+ #
1429
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1430
+ sig { returns(T.nilable(String)) }
1431
+ attr_accessor :setup_future_usage
1432
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1433
+ sig { returns(T.nilable(String)) }
1434
+ attr_accessor :target_date
1435
+ sig {
1436
+ params(mandate_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(String), target_date: T.nilable(String)).void
1437
+ }
1438
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
1439
+ end
1440
+ class Sofort < Stripe::RequestParams
1441
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1442
+ #
1443
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1444
+ #
1445
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1446
+ #
1447
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1448
+ sig { returns(T.nilable(String)) }
1449
+ attr_accessor :setup_future_usage
1450
+ sig { params(setup_future_usage: T.nilable(String)).void }
1451
+ def initialize(setup_future_usage: nil); end
1452
+ end
1453
+ class Swish < Stripe::RequestParams
1454
+ # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
1455
+ sig { returns(T.nilable(String)) }
1456
+ attr_accessor :reference
1457
+ sig { params(reference: T.nilable(String)).void }
1458
+ def initialize(reference: nil); end
1459
+ end
1460
+ class UsBankAccount < Stripe::RequestParams
1461
+ class FinancialConnections < Stripe::RequestParams
1462
+ # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1463
+ sig { returns(T.nilable(T::Array[String])) }
1464
+ attr_accessor :permissions
1465
+ # List of data features that you would like to retrieve upon account creation.
1466
+ sig { returns(T.nilable(T::Array[String])) }
1467
+ attr_accessor :prefetch
1468
+ sig {
1469
+ params(permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String])).void
1470
+ }
1471
+ def initialize(permissions: nil, prefetch: nil); end
1472
+ end
1473
+ # Additional fields for Financial Connections Session creation
1474
+ sig {
1475
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
1476
+ }
1477
+ attr_accessor :financial_connections
1478
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1479
+ #
1480
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1481
+ #
1482
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1483
+ #
1484
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1485
+ sig { returns(T.nilable(String)) }
1486
+ attr_accessor :setup_future_usage
1487
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1488
+ sig { returns(T.nilable(String)) }
1489
+ attr_accessor :target_date
1490
+ # Verification method for the intent
1491
+ sig { returns(T.nilable(String)) }
1492
+ attr_accessor :verification_method
1493
+ sig {
1494
+ params(financial_connections: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), setup_future_usage: T.nilable(String), target_date: T.nilable(String), verification_method: T.nilable(String)).void
1495
+ }
1496
+ def initialize(
1497
+ financial_connections: nil,
1498
+ setup_future_usage: nil,
1499
+ target_date: nil,
1500
+ verification_method: nil
1501
+ ); end
1502
+ end
1503
+ class WechatPay < Stripe::RequestParams
1504
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
1505
+ sig { returns(T.nilable(String)) }
1506
+ attr_accessor :app_id
1507
+ # The client type that the end customer will pay from
1508
+ sig { returns(String) }
1509
+ attr_accessor :client
1510
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1511
+ #
1512
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1513
+ #
1514
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1515
+ #
1516
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1517
+ sig { returns(T.nilable(String)) }
1518
+ attr_accessor :setup_future_usage
1519
+ sig {
1520
+ params(app_id: T.nilable(String), client: String, setup_future_usage: T.nilable(String)).void
1521
+ }
1522
+ def initialize(app_id: nil, client: nil, setup_future_usage: nil); end
1523
+ end
1524
+ # contains details about the ACSS Debit payment method options.
1525
+ sig {
1526
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit))
1527
+ }
1528
+ attr_accessor :acss_debit
1529
+ # contains details about the Affirm payment method options.
1530
+ sig {
1531
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Affirm))
1532
+ }
1533
+ attr_accessor :affirm
1534
+ # contains details about the Afterpay Clearpay payment method options.
1535
+ sig {
1536
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AfterpayClearpay))
1537
+ }
1538
+ attr_accessor :afterpay_clearpay
1539
+ # contains details about the Alipay payment method options.
1540
+ sig {
1541
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Alipay))
1542
+ }
1543
+ attr_accessor :alipay
1544
+ # contains details about the AmazonPay payment method options.
1545
+ sig {
1546
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AmazonPay))
1547
+ }
1548
+ attr_accessor :amazon_pay
1549
+ # contains details about the AU Becs Debit payment method options.
1550
+ sig {
1551
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AuBecsDebit))
1552
+ }
1553
+ attr_accessor :au_becs_debit
1554
+ # contains details about the Bacs Debit payment method options.
1555
+ sig {
1556
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit))
1557
+ }
1558
+ attr_accessor :bacs_debit
1559
+ # contains details about the Bancontact payment method options.
1560
+ sig {
1561
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Bancontact))
1562
+ }
1563
+ attr_accessor :bancontact
1564
+ # contains details about the Boleto payment method options.
1565
+ sig {
1566
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Boleto))
1567
+ }
1568
+ attr_accessor :boleto
1569
+ # contains details about the Card payment method options.
1570
+ sig {
1571
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card))
1572
+ }
1573
+ attr_accessor :card
1574
+ # contains details about the Cashapp Pay payment method options.
1575
+ sig {
1576
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Cashapp))
1577
+ }
1578
+ attr_accessor :cashapp
1579
+ # contains details about the Customer Balance payment method options.
1580
+ sig {
1581
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance))
1582
+ }
1583
+ attr_accessor :customer_balance
1584
+ # contains details about the EPS payment method options.
1585
+ sig {
1586
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Eps))
1587
+ }
1588
+ attr_accessor :eps
1589
+ # contains details about the FPX payment method options.
1590
+ sig {
1591
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Fpx))
1592
+ }
1593
+ attr_accessor :fpx
1594
+ # contains details about the Giropay payment method options.
1595
+ sig {
1596
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Giropay))
1597
+ }
1598
+ attr_accessor :giropay
1599
+ # contains details about the Grabpay payment method options.
1600
+ sig {
1601
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Grabpay))
1602
+ }
1603
+ attr_accessor :grabpay
1604
+ # contains details about the Ideal payment method options.
1605
+ sig {
1606
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Ideal))
1607
+ }
1608
+ attr_accessor :ideal
1609
+ # contains details about the Kakao Pay payment method options.
1610
+ sig {
1611
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KakaoPay))
1612
+ }
1613
+ attr_accessor :kakao_pay
1614
+ # contains details about the Klarna payment method options.
1615
+ sig {
1616
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna))
1617
+ }
1618
+ attr_accessor :klarna
1619
+ # contains details about the Konbini payment method options.
1620
+ sig {
1621
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Konbini))
1622
+ }
1623
+ attr_accessor :konbini
1624
+ # contains details about the Korean card payment method options.
1625
+ sig {
1626
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KrCard))
1627
+ }
1628
+ attr_accessor :kr_card
1629
+ # contains details about the Link payment method options.
1630
+ sig {
1631
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Link))
1632
+ }
1633
+ attr_accessor :link
1634
+ # contains details about the Mobilepay payment method options.
1635
+ sig {
1636
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Mobilepay))
1637
+ }
1638
+ attr_accessor :mobilepay
1639
+ # contains details about the Multibanco payment method options.
1640
+ sig {
1641
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Multibanco))
1642
+ }
1643
+ attr_accessor :multibanco
1644
+ # contains details about the Naver Pay payment method options.
1645
+ sig {
1646
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::NaverPay))
1647
+ }
1648
+ attr_accessor :naver_pay
1649
+ # contains details about the OXXO payment method options.
1650
+ sig {
1651
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Oxxo))
1652
+ }
1653
+ attr_accessor :oxxo
1654
+ # contains details about the P24 payment method options.
1655
+ sig {
1656
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24))
1657
+ }
1658
+ attr_accessor :p24
1659
+ # contains details about the Pay By Bank payment method options.
1660
+ sig {
1661
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::PayByBank))
1662
+ }
1663
+ attr_accessor :pay_by_bank
1664
+ # contains details about the PAYCO payment method options.
1665
+ sig {
1666
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco))
1667
+ }
1668
+ attr_accessor :payco
1669
+ # contains details about the PayNow payment method options.
1670
+ sig {
1671
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paynow))
1672
+ }
1673
+ attr_accessor :paynow
1674
+ # contains details about the PayPal payment method options.
1675
+ sig {
1676
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paypal))
1677
+ }
1678
+ attr_accessor :paypal
1679
+ # contains details about the Pix payment method options.
1680
+ sig {
1681
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Pix))
1682
+ }
1683
+ attr_accessor :pix
1684
+ # contains details about the RevolutPay payment method options.
1685
+ sig {
1686
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::RevolutPay))
1687
+ }
1688
+ attr_accessor :revolut_pay
1689
+ # contains details about the Samsung Pay payment method options.
1690
+ sig {
1691
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SamsungPay))
1692
+ }
1693
+ attr_accessor :samsung_pay
1694
+ # contains details about the Sepa Debit payment method options.
1695
+ sig {
1696
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit))
1697
+ }
1698
+ attr_accessor :sepa_debit
1699
+ # contains details about the Sofort payment method options.
1700
+ sig {
1701
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Sofort))
1702
+ }
1703
+ attr_accessor :sofort
1704
+ # contains details about the Swish payment method options.
1705
+ sig {
1706
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Swish))
1707
+ }
1708
+ attr_accessor :swish
1709
+ # contains details about the Us Bank Account payment method options.
1710
+ sig {
1711
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount))
1712
+ }
1713
+ attr_accessor :us_bank_account
1714
+ # contains details about the WeChat Pay payment method options.
1715
+ sig {
1716
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::WechatPay))
1717
+ }
1718
+ attr_accessor :wechat_pay
1719
+ sig {
1720
+ params(acss_debit: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Alipay), amazon_pay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Bancontact), boleto: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance), eps: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paypal), pix: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SamsungPay), sepa_debit: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Swish), us_bank_account: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::WechatPay)).void
1721
+ }
1722
+ def initialize(
1723
+ acss_debit: nil,
1724
+ affirm: nil,
1725
+ afterpay_clearpay: nil,
1726
+ alipay: nil,
1727
+ amazon_pay: nil,
1728
+ au_becs_debit: nil,
1729
+ bacs_debit: nil,
1730
+ bancontact: nil,
1731
+ boleto: nil,
1732
+ card: nil,
1733
+ cashapp: nil,
1734
+ customer_balance: nil,
1735
+ eps: nil,
1736
+ fpx: nil,
1737
+ giropay: nil,
1738
+ grabpay: nil,
1739
+ ideal: nil,
1740
+ kakao_pay: nil,
1741
+ klarna: nil,
1742
+ konbini: nil,
1743
+ kr_card: nil,
1744
+ link: nil,
1745
+ mobilepay: nil,
1746
+ multibanco: nil,
1747
+ naver_pay: nil,
1748
+ oxxo: nil,
1749
+ p24: nil,
1750
+ pay_by_bank: nil,
1751
+ payco: nil,
1752
+ paynow: nil,
1753
+ paypal: nil,
1754
+ pix: nil,
1755
+ revolut_pay: nil,
1756
+ samsung_pay: nil,
1757
+ sepa_debit: nil,
1758
+ sofort: nil,
1759
+ swish: nil,
1760
+ us_bank_account: nil,
1761
+ wechat_pay: nil
1762
+ ); end
1763
+ end
1764
+ class Permissions < Stripe::RequestParams
1765
+ # Determines which entity is allowed to update the shipping details.
1766
+ #
1767
+ # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
1768
+ #
1769
+ # When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
1770
+ sig { returns(T.nilable(String)) }
1771
+ attr_accessor :update_shipping_details
1772
+ sig { params(update_shipping_details: T.nilable(String)).void }
1773
+ def initialize(update_shipping_details: nil); end
1774
+ end
1775
+ class PhoneNumberCollection < Stripe::RequestParams
1776
+ # Set to `true` to enable phone number collection.
1777
+ #
1778
+ # Can only be set in `payment` and `subscription` mode.
1779
+ sig { returns(T::Boolean) }
1780
+ attr_accessor :enabled
1781
+ sig { params(enabled: T::Boolean).void }
1782
+ def initialize(enabled: nil); end
1783
+ end
1784
+ class SavedPaymentMethodOptions < Stripe::RequestParams
1785
+ # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
1786
+ sig { returns(T.nilable(T::Array[String])) }
1787
+ attr_accessor :allow_redisplay_filters
1788
+ # Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
1789
+ sig { returns(T.nilable(String)) }
1790
+ attr_accessor :payment_method_save
1791
+ sig {
1792
+ params(allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_save: T.nilable(String)).void
1793
+ }
1794
+ def initialize(allow_redisplay_filters: nil, payment_method_save: nil); end
1795
+ end
1796
+ class SetupIntentData < Stripe::RequestParams
1797
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1798
+ sig { returns(T.nilable(String)) }
1799
+ attr_accessor :description
1800
+ # 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`.
1801
+ sig { returns(T.nilable(T::Hash[String, String])) }
1802
+ attr_accessor :metadata
1803
+ # The Stripe account for which the setup is intended.
1804
+ sig { returns(T.nilable(String)) }
1805
+ attr_accessor :on_behalf_of
1806
+ sig {
1807
+ params(description: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String)).void
1808
+ }
1809
+ def initialize(description: nil, metadata: nil, on_behalf_of: nil); end
1810
+ end
1811
+ class ShippingAddressCollection < Stripe::RequestParams
1812
+ # An array of two-letter ISO country codes representing which countries Checkout should provide as options for
1813
+ # shipping locations.
1814
+ sig { returns(T::Array[String]) }
1815
+ attr_accessor :allowed_countries
1816
+ sig { params(allowed_countries: T::Array[String]).void }
1817
+ def initialize(allowed_countries: nil); end
1818
+ end
1819
+ class ShippingOption < Stripe::RequestParams
1820
+ class ShippingRateData < Stripe::RequestParams
1821
+ class DeliveryEstimate < Stripe::RequestParams
1822
+ class Maximum < Stripe::RequestParams
1823
+ # A unit of time.
1824
+ sig { returns(String) }
1825
+ attr_accessor :unit
1826
+ # Must be greater than 0.
1827
+ sig { returns(Integer) }
1828
+ attr_accessor :value
1829
+ sig { params(unit: String, value: Integer).void }
1830
+ def initialize(unit: nil, value: nil); end
1831
+ end
1832
+ class Minimum < Stripe::RequestParams
1833
+ # A unit of time.
1834
+ sig { returns(String) }
1835
+ attr_accessor :unit
1836
+ # Must be greater than 0.
1837
+ sig { returns(Integer) }
1838
+ attr_accessor :value
1839
+ sig { params(unit: String, value: Integer).void }
1840
+ def initialize(unit: nil, value: nil); end
1841
+ end
1842
+ # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
1843
+ sig {
1844
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Maximum))
1845
+ }
1846
+ attr_accessor :maximum
1847
+ # The lower bound of the estimated range. If empty, represents no lower bound.
1848
+ sig {
1849
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Minimum))
1850
+ }
1851
+ attr_accessor :minimum
1852
+ sig {
1853
+ params(maximum: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Maximum), minimum: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Minimum)).void
1854
+ }
1855
+ def initialize(maximum: nil, minimum: nil); end
1856
+ end
1857
+ class FixedAmount < Stripe::RequestParams
1858
+ class CurrencyOptions < Stripe::RequestParams
1859
+ # A non-negative integer in cents representing how much to charge.
1860
+ sig { returns(Integer) }
1861
+ attr_accessor :amount
1862
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1863
+ sig { returns(T.nilable(String)) }
1864
+ attr_accessor :tax_behavior
1865
+ sig { params(amount: Integer, tax_behavior: T.nilable(String)).void }
1866
+ def initialize(amount: nil, tax_behavior: nil); end
1867
+ end
1868
+ # A non-negative integer in cents representing how much to charge.
1869
+ sig { returns(Integer) }
1870
+ attr_accessor :amount
1871
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1872
+ sig { returns(String) }
1873
+ attr_accessor :currency
1874
+ # Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
1875
+ sig {
1876
+ returns(T.nilable(T::Hash[String, ::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::FixedAmount::CurrencyOptions]))
1877
+ }
1878
+ attr_accessor :currency_options
1879
+ sig {
1880
+ params(amount: Integer, currency: String, currency_options: T.nilable(T::Hash[String, ::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::FixedAmount::CurrencyOptions])).void
1881
+ }
1882
+ def initialize(amount: nil, currency: nil, currency_options: nil); end
1883
+ end
1884
+ # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
1885
+ sig {
1886
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::DeliveryEstimate))
1887
+ }
1888
+ attr_accessor :delivery_estimate
1889
+ # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
1890
+ sig { returns(String) }
1891
+ attr_accessor :display_name
1892
+ # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1893
+ sig {
1894
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::FixedAmount))
1895
+ }
1896
+ attr_accessor :fixed_amount
1897
+ # 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`.
1898
+ sig { returns(T.nilable(T::Hash[String, String])) }
1899
+ attr_accessor :metadata
1900
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1901
+ sig { returns(T.nilable(String)) }
1902
+ attr_accessor :tax_behavior
1903
+ # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1904
+ sig { returns(T.nilable(String)) }
1905
+ attr_accessor :tax_code
1906
+ # The type of calculation to use on the shipping rate.
1907
+ sig { returns(T.nilable(String)) }
1908
+ attr_accessor :type
1909
+ sig {
1910
+ params(delivery_estimate: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::DeliveryEstimate), display_name: String, fixed_amount: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData::FixedAmount), metadata: T.nilable(T::Hash[String, String]), tax_behavior: T.nilable(String), tax_code: T.nilable(String), type: T.nilable(String)).void
1911
+ }
1912
+ def initialize(
1913
+ delivery_estimate: nil,
1914
+ display_name: nil,
1915
+ fixed_amount: nil,
1916
+ metadata: nil,
1917
+ tax_behavior: nil,
1918
+ tax_code: nil,
1919
+ type: nil
1920
+ ); end
1921
+ end
1922
+ # The ID of the Shipping Rate to use for this shipping option.
1923
+ sig { returns(T.nilable(String)) }
1924
+ attr_accessor :shipping_rate
1925
+ # Parameters to be passed to Shipping Rate creation for this shipping option.
1926
+ sig {
1927
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData))
1928
+ }
1929
+ attr_accessor :shipping_rate_data
1930
+ sig {
1931
+ params(shipping_rate: T.nilable(String), shipping_rate_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingOption::ShippingRateData)).void
1932
+ }
1933
+ def initialize(shipping_rate: nil, shipping_rate_data: nil); end
1934
+ end
1935
+ class SubscriptionData < Stripe::RequestParams
1936
+ class InvoiceSettings < Stripe::RequestParams
1937
+ class Issuer < Stripe::RequestParams
1938
+ # The connected account being referenced when `type` is `account`.
1939
+ sig { returns(T.nilable(String)) }
1940
+ attr_accessor :account
1941
+ # Type of the account referenced in the request.
1942
+ sig { returns(String) }
1943
+ attr_accessor :type
1944
+ sig { params(account: T.nilable(String), type: String).void }
1945
+ def initialize(account: nil, type: nil); end
1946
+ end
1947
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
1948
+ sig {
1949
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::InvoiceSettings::Issuer))
1950
+ }
1951
+ attr_accessor :issuer
1952
+ sig {
1953
+ params(issuer: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::InvoiceSettings::Issuer)).void
1954
+ }
1955
+ def initialize(issuer: nil); end
1956
+ end
1957
+ class TransferData < Stripe::RequestParams
1958
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
1959
+ sig { returns(T.nilable(Float)) }
1960
+ attr_accessor :amount_percent
1961
+ # ID of an existing, connected Stripe account.
1962
+ sig { returns(String) }
1963
+ attr_accessor :destination
1964
+ sig { params(amount_percent: T.nilable(Float), destination: String).void }
1965
+ def initialize(amount_percent: nil, destination: nil); end
1966
+ end
1967
+ class TrialSettings < Stripe::RequestParams
1968
+ class EndBehavior < Stripe::RequestParams
1969
+ # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
1970
+ sig { returns(String) }
1971
+ attr_accessor :missing_payment_method
1972
+ sig { params(missing_payment_method: String).void }
1973
+ def initialize(missing_payment_method: nil); end
1974
+ end
1975
+ # Defines how the subscription should behave when the user's free trial ends.
1976
+ sig {
1977
+ returns(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::TrialSettings::EndBehavior)
1978
+ }
1979
+ attr_accessor :end_behavior
1980
+ sig {
1981
+ params(end_behavior: ::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::TrialSettings::EndBehavior).void
1982
+ }
1983
+ def initialize(end_behavior: nil); end
1984
+ end
1985
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
1986
+ sig { returns(T.nilable(Float)) }
1987
+ attr_accessor :application_fee_percent
1988
+ # A future timestamp to anchor the subscription's billing cycle for new subscriptions.
1989
+ sig { returns(T.nilable(Integer)) }
1990
+ attr_accessor :billing_cycle_anchor
1991
+ # The tax rates that will apply to any subscription item that does not have
1992
+ # `tax_rates` set. Invoices created will have their `default_tax_rates` populated
1993
+ # from the subscription.
1994
+ sig { returns(T.nilable(T::Array[String])) }
1995
+ attr_accessor :default_tax_rates
1996
+ # The subscription's description, meant to be displayable to the customer.
1997
+ # Use this field to optionally store an explanation of the subscription
1998
+ # for rendering in the [customer portal](https://stripe.com/docs/customer-management).
1999
+ sig { returns(T.nilable(String)) }
2000
+ attr_accessor :description
2001
+ # All invoices will be billed using the specified settings.
2002
+ sig {
2003
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::InvoiceSettings))
2004
+ }
2005
+ attr_accessor :invoice_settings
2006
+ # 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`.
2007
+ sig { returns(T.nilable(T::Hash[String, String])) }
2008
+ attr_accessor :metadata
2009
+ # The account on behalf of which to charge, for each of the subscription's invoices.
2010
+ sig { returns(T.nilable(String)) }
2011
+ attr_accessor :on_behalf_of
2012
+ # Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
2013
+ sig { returns(T.nilable(String)) }
2014
+ attr_accessor :proration_behavior
2015
+ # If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
2016
+ sig {
2017
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::TransferData))
2018
+ }
2019
+ attr_accessor :transfer_data
2020
+ # Unix timestamp representing the end of the trial period the customer
2021
+ # will get before being charged for the first time. Has to be at least
2022
+ # 48 hours in the future.
2023
+ sig { returns(T.nilable(Integer)) }
2024
+ attr_accessor :trial_end
2025
+ # Integer representing the number of trial period days before the
2026
+ # customer is charged for the first time. Has to be at least 1.
2027
+ sig { returns(T.nilable(Integer)) }
2028
+ attr_accessor :trial_period_days
2029
+ # Settings related to subscription trials.
2030
+ sig {
2031
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::TrialSettings))
2032
+ }
2033
+ attr_accessor :trial_settings
2034
+ sig {
2035
+ params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData::TrialSettings)).void
2036
+ }
2037
+ def initialize(
2038
+ application_fee_percent: nil,
2039
+ billing_cycle_anchor: nil,
2040
+ default_tax_rates: nil,
2041
+ description: nil,
2042
+ invoice_settings: nil,
2043
+ metadata: nil,
2044
+ on_behalf_of: nil,
2045
+ proration_behavior: nil,
2046
+ transfer_data: nil,
2047
+ trial_end: nil,
2048
+ trial_period_days: nil,
2049
+ trial_settings: nil
2050
+ ); end
2051
+ end
2052
+ class TaxIdCollection < Stripe::RequestParams
2053
+ # Enable tax ID collection during checkout. Defaults to `false`.
2054
+ sig { returns(T::Boolean) }
2055
+ attr_accessor :enabled
2056
+ # Describes whether a tax ID is required during checkout. Defaults to `never`.
2057
+ sig { returns(T.nilable(String)) }
2058
+ attr_accessor :required
2059
+ sig { params(enabled: T::Boolean, required: T.nilable(String)).void }
2060
+ def initialize(enabled: nil, required: nil); end
2061
+ end
2062
+ # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
2063
+ sig {
2064
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing))
2065
+ }
2066
+ attr_accessor :adaptive_pricing
2067
+ # Configure actions after a Checkout Session has expired.
2068
+ sig {
2069
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration))
2070
+ }
2071
+ attr_accessor :after_expiration
2072
+ # Enables user redeemable promotion codes.
2073
+ sig { returns(T.nilable(T::Boolean)) }
2074
+ attr_accessor :allow_promotion_codes
2075
+ # Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
2076
+ sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax)) }
2077
+ attr_accessor :automatic_tax
2078
+ # Specify whether Checkout should collect the customer's billing address. Defaults to `auto`.
2079
+ sig { returns(T.nilable(String)) }
2080
+ attr_accessor :billing_address_collection
2081
+ # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`.
2082
+ sig { returns(T.nilable(String)) }
2083
+ attr_accessor :cancel_url
2084
+ # A unique string to reference the Checkout Session. This can be a
2085
+ # customer ID, a cart ID, or similar, and can be used to reconcile the
2086
+ # session with your internal systems.
2087
+ sig { returns(T.nilable(String)) }
2088
+ attr_accessor :client_reference_id
2089
+ # Configure fields for the Checkout Session to gather active consent from customers.
2090
+ sig {
2091
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection))
2092
+ }
2093
+ attr_accessor :consent_collection
2094
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `payment_method_types` is not set.
2095
+ sig { returns(T.nilable(String)) }
2096
+ attr_accessor :currency
2097
+ # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
2098
+ sig {
2099
+ returns(T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField]))
2100
+ }
2101
+ attr_accessor :custom_fields
2102
+ # Display additional text for your customers using custom text.
2103
+ sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomText)) }
2104
+ attr_accessor :custom_text
2105
+ # ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card
2106
+ # payment method will be used to prefill the email, name, card details, and billing address
2107
+ # on the Checkout page. In `subscription` mode, the customer’s [default payment method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
2108
+ # will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
2109
+ #
2110
+ # If the Customer already has a valid [email](https://stripe.com/docs/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
2111
+ # If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
2112
+ #
2113
+ # If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.
2114
+ #
2115
+ # You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
2116
+ sig { returns(T.nilable(String)) }
2117
+ attr_accessor :customer
2118
+ # Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
2119
+ #
2120
+ # When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
2121
+ # with [customer_details](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_details).
2122
+ #
2123
+ # Sessions that don't create Customers instead are grouped by [guest customers](https://stripe.com/docs/payments/checkout/guest-customers)
2124
+ # in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
2125
+ #
2126
+ # Can only be set in `payment` and `setup` mode.
2127
+ sig { returns(T.nilable(String)) }
2128
+ attr_accessor :customer_creation
2129
+ # If provided, this value will be used when the Customer object is created.
2130
+ # If not provided, customers will be asked to enter their email address.
2131
+ # Use this parameter to prefill customer data if you already have an email
2132
+ # on file. To access information about the customer once a session is
2133
+ # complete, use the `customer` field.
2134
+ sig { returns(T.nilable(String)) }
2135
+ attr_accessor :customer_email
2136
+ # Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided.
2137
+ sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomerUpdate)) }
2138
+ attr_accessor :customer_update
2139
+ # The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.
2140
+ sig {
2141
+ returns(T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::Discount]))
2142
+ }
2143
+ attr_accessor :discounts
2144
+ # Specifies which fields in the response should be expanded.
2145
+ sig { returns(T.nilable(T::Array[String])) }
2146
+ attr_accessor :expand
2147
+ # The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.
2148
+ sig { returns(T.nilable(Integer)) }
2149
+ attr_accessor :expires_at
2150
+ # Generate a post-purchase Invoice for one-time payments.
2151
+ sig {
2152
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation))
2153
+ }
2154
+ attr_accessor :invoice_creation
2155
+ # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
2156
+ #
2157
+ # For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
2158
+ #
2159
+ # For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.
2160
+ sig {
2161
+ returns(T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::LineItem]))
2162
+ }
2163
+ attr_accessor :line_items
2164
+ # The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
2165
+ sig { returns(T.nilable(String)) }
2166
+ attr_accessor :locale
2167
+ # 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`.
2168
+ sig { returns(T.nilable(T::Hash[String, String])) }
2169
+ attr_accessor :metadata
2170
+ # The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
2171
+ sig { returns(T.nilable(String)) }
2172
+ attr_accessor :mode
2173
+ # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
2174
+ #
2175
+ # There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
2176
+ #
2177
+ # For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
2178
+ #
2179
+ # For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
2180
+ sig {
2181
+ returns(T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]))
2182
+ }
2183
+ attr_accessor :optional_items
2184
+ # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
2185
+ sig {
2186
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData))
2187
+ }
2188
+ attr_accessor :payment_intent_data
2189
+ # Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
2190
+ # This may occur if the Checkout Session includes a free trial or a discount.
2191
+ #
2192
+ # Can only be set in `subscription` mode. Defaults to `always`.
2193
+ #
2194
+ # If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials).
2195
+ sig { returns(T.nilable(String)) }
2196
+ attr_accessor :payment_method_collection
2197
+ # The ID of the payment method configuration to use with this Checkout session.
2198
+ sig { returns(T.nilable(String)) }
2199
+ attr_accessor :payment_method_configuration
2200
+ # This parameter allows you to set some attributes on the payment method created during a Checkout session.
2201
+ sig {
2202
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodData))
2203
+ }
2204
+ attr_accessor :payment_method_data
2205
+ # Payment-method-specific configuration.
2206
+ sig {
2207
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions))
2208
+ }
2209
+ attr_accessor :payment_method_options
2210
+ # A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
2211
+ #
2212
+ # You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
2213
+ # See [Dynamic Payment Methods](https://stripe.com/docs/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
2214
+ #
2215
+ # Read more about the supported payment methods and their requirements in our [payment
2216
+ # method details guide](/docs/payments/checkout/payment-methods).
2217
+ #
2218
+ # If multiple payment methods are passed, Checkout will dynamically reorder them to
2219
+ # prioritize the most relevant payment methods based on the customer's location and
2220
+ # other characteristics.
2221
+ sig { returns(T.nilable(T::Array[String])) }
2222
+ attr_accessor :payment_method_types
2223
+ # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
2224
+ #
2225
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
2226
+ sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions)) }
2227
+ attr_accessor :permissions
2228
+ # Controls phone number collection settings for the session.
2229
+ #
2230
+ # We recommend that you review your privacy policy and check with your legal contacts
2231
+ # before using this feature. Learn more about [collecting phone numbers with Checkout](https://stripe.com/docs/payments/checkout/phone-numbers).
2232
+ sig {
2233
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PhoneNumberCollection))
2234
+ }
2235
+ attr_accessor :phone_number_collection
2236
+ # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
2237
+ sig { returns(T.nilable(String)) }
2238
+ attr_accessor :redirect_on_completion
2239
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the
2240
+ # payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`
2241
+ # and redirect-based payment methods are enabled on the session.
2242
+ sig { returns(T.nilable(String)) }
2243
+ attr_accessor :return_url
2244
+ # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
2245
+ sig {
2246
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SavedPaymentMethodOptions))
2247
+ }
2248
+ attr_accessor :saved_payment_method_options
2249
+ # A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
2250
+ sig {
2251
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SetupIntentData))
2252
+ }
2253
+ attr_accessor :setup_intent_data
2254
+ # When set, provides configuration for Checkout to collect a shipping address from a customer.
2255
+ sig {
2256
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection))
2257
+ }
2258
+ attr_accessor :shipping_address_collection
2259
+ # The shipping rate options to apply to this Session. Up to a maximum of 5.
2260
+ sig {
2261
+ returns(T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::ShippingOption]))
2262
+ }
2263
+ attr_accessor :shipping_options
2264
+ # Describes the type of transaction being performed by Checkout in order
2265
+ # to customize relevant text on the page, such as the submit button.
2266
+ # `submit_type` can only be specified on Checkout Sessions in
2267
+ # `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
2268
+ sig { returns(T.nilable(String)) }
2269
+ attr_accessor :submit_type
2270
+ # A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
2271
+ sig {
2272
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData))
2273
+ }
2274
+ attr_accessor :subscription_data
2275
+ # The URL to which Stripe should send customers when payment or setup
2276
+ # is complete.
2277
+ # This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
2278
+ # information from the successful Checkout Session on your page, read the
2279
+ # guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
2280
+ sig { returns(T.nilable(String)) }
2281
+ attr_accessor :success_url
2282
+ # Controls tax ID collection during checkout.
2283
+ sig {
2284
+ returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::TaxIdCollection))
2285
+ }
2286
+ attr_accessor :tax_id_collection
2287
+ # The UI mode of the Session. Defaults to `hosted`.
2288
+ sig { returns(T.nilable(String)) }
2289
+ attr_accessor :ui_mode
2290
+ sig {
2291
+ params(adaptive_pricing: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::TaxIdCollection), ui_mode: T.nilable(String)).void
2292
+ }
2293
+ def initialize(
2294
+ adaptive_pricing: nil,
2295
+ after_expiration: nil,
2296
+ allow_promotion_codes: nil,
2297
+ automatic_tax: nil,
2298
+ billing_address_collection: nil,
2299
+ cancel_url: nil,
2300
+ client_reference_id: nil,
2301
+ consent_collection: nil,
2302
+ currency: nil,
2303
+ custom_fields: nil,
2304
+ custom_text: nil,
2305
+ customer: nil,
2306
+ customer_creation: nil,
2307
+ customer_email: nil,
2308
+ customer_update: nil,
2309
+ discounts: nil,
2310
+ expand: nil,
2311
+ expires_at: nil,
2312
+ invoice_creation: nil,
2313
+ line_items: nil,
2314
+ locale: nil,
2315
+ metadata: nil,
2316
+ mode: nil,
2317
+ optional_items: nil,
2318
+ payment_intent_data: nil,
2319
+ payment_method_collection: nil,
2320
+ payment_method_configuration: nil,
2321
+ payment_method_data: nil,
2322
+ payment_method_options: nil,
2323
+ payment_method_types: nil,
2324
+ permissions: nil,
2325
+ phone_number_collection: nil,
2326
+ redirect_on_completion: nil,
2327
+ return_url: nil,
2328
+ saved_payment_method_options: nil,
2329
+ setup_intent_data: nil,
2330
+ shipping_address_collection: nil,
2331
+ shipping_options: nil,
2332
+ submit_type: nil,
2333
+ subscription_data: nil,
2334
+ success_url: nil,
2335
+ tax_id_collection: nil,
2336
+ ui_mode: nil
2337
+ ); end
2338
+ end
2339
+ class RetrieveParams < Stripe::RequestParams
2340
+ # Specifies which fields in the response should be expanded.
2341
+ sig { returns(T.nilable(T::Array[String])) }
2342
+ attr_accessor :expand
2343
+ sig { params(expand: T.nilable(T::Array[String])).void }
2344
+ def initialize(expand: nil); end
2345
+ end
2346
+ class UpdateParams < Stripe::RequestParams
2347
+ class CollectedInformation < Stripe::RequestParams
2348
+ class ShippingDetails < Stripe::RequestParams
2349
+ class Address < Stripe::RequestParams
2350
+ # City, district, suburb, town, or village.
2351
+ sig { returns(T.nilable(String)) }
2352
+ attr_accessor :city
2353
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2354
+ sig { returns(String) }
2355
+ attr_accessor :country
2356
+ # Address line 1 (e.g., street, PO Box, or company name).
2357
+ sig { returns(String) }
2358
+ attr_accessor :line1
2359
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2360
+ sig { returns(T.nilable(String)) }
2361
+ attr_accessor :line2
2362
+ # ZIP or postal code.
2363
+ sig { returns(T.nilable(String)) }
2364
+ attr_accessor :postal_code
2365
+ # State, county, province, or region.
2366
+ sig { returns(T.nilable(String)) }
2367
+ attr_accessor :state
2368
+ sig {
2369
+ params(city: T.nilable(String), country: String, line1: String, line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
2370
+ }
2371
+ def initialize(
2372
+ city: nil,
2373
+ country: nil,
2374
+ line1: nil,
2375
+ line2: nil,
2376
+ postal_code: nil,
2377
+ state: nil
2378
+ ); end
2379
+ end
2380
+ # The address of the customer
2381
+ sig {
2382
+ returns(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation::ShippingDetails::Address)
2383
+ }
2384
+ attr_accessor :address
2385
+ # The name of customer
2386
+ sig { returns(String) }
2387
+ attr_accessor :name
2388
+ sig {
2389
+ params(address: ::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation::ShippingDetails::Address, name: String).void
2390
+ }
2391
+ def initialize(address: nil, name: nil); end
2392
+ end
2393
+ # The shipping details to apply to this Session.
2394
+ sig {
2395
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation::ShippingDetails))
2396
+ }
2397
+ attr_accessor :shipping_details
2398
+ sig {
2399
+ params(shipping_details: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation::ShippingDetails)).void
2400
+ }
2401
+ def initialize(shipping_details: nil); end
2402
+ end
2403
+ class ShippingOption < Stripe::RequestParams
2404
+ class ShippingRateData < Stripe::RequestParams
2405
+ class DeliveryEstimate < Stripe::RequestParams
2406
+ class Maximum < Stripe::RequestParams
2407
+ # A unit of time.
2408
+ sig { returns(String) }
2409
+ attr_accessor :unit
2410
+ # Must be greater than 0.
2411
+ sig { returns(Integer) }
2412
+ attr_accessor :value
2413
+ sig { params(unit: String, value: Integer).void }
2414
+ def initialize(unit: nil, value: nil); end
2415
+ end
2416
+ class Minimum < Stripe::RequestParams
2417
+ # A unit of time.
2418
+ sig { returns(String) }
2419
+ attr_accessor :unit
2420
+ # Must be greater than 0.
2421
+ sig { returns(Integer) }
2422
+ attr_accessor :value
2423
+ sig { params(unit: String, value: Integer).void }
2424
+ def initialize(unit: nil, value: nil); end
2425
+ end
2426
+ # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
2427
+ sig {
2428
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Maximum))
2429
+ }
2430
+ attr_accessor :maximum
2431
+ # The lower bound of the estimated range. If empty, represents no lower bound.
2432
+ sig {
2433
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Minimum))
2434
+ }
2435
+ attr_accessor :minimum
2436
+ sig {
2437
+ params(maximum: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Maximum), minimum: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Minimum)).void
2438
+ }
2439
+ def initialize(maximum: nil, minimum: nil); end
2440
+ end
2441
+ class FixedAmount < Stripe::RequestParams
2442
+ class CurrencyOptions < Stripe::RequestParams
2443
+ # A non-negative integer in cents representing how much to charge.
2444
+ sig { returns(Integer) }
2445
+ attr_accessor :amount
2446
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2447
+ sig { returns(T.nilable(String)) }
2448
+ attr_accessor :tax_behavior
2449
+ sig { params(amount: Integer, tax_behavior: T.nilable(String)).void }
2450
+ def initialize(amount: nil, tax_behavior: nil); end
2451
+ end
2452
+ # A non-negative integer in cents representing how much to charge.
2453
+ sig { returns(Integer) }
2454
+ attr_accessor :amount
2455
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2456
+ sig { returns(String) }
2457
+ attr_accessor :currency
2458
+ # Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
2459
+ sig {
2460
+ returns(T.nilable(T::Hash[String, ::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::FixedAmount::CurrencyOptions]))
2461
+ }
2462
+ attr_accessor :currency_options
2463
+ sig {
2464
+ params(amount: Integer, currency: String, currency_options: T.nilable(T::Hash[String, ::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::FixedAmount::CurrencyOptions])).void
2465
+ }
2466
+ def initialize(amount: nil, currency: nil, currency_options: nil); end
2467
+ end
2468
+ # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
2469
+ sig {
2470
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::DeliveryEstimate))
2471
+ }
2472
+ attr_accessor :delivery_estimate
2473
+ # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
2474
+ sig { returns(String) }
2475
+ attr_accessor :display_name
2476
+ # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
2477
+ sig {
2478
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::FixedAmount))
2479
+ }
2480
+ attr_accessor :fixed_amount
2481
+ # 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`.
2482
+ sig { returns(T.nilable(T::Hash[String, String])) }
2483
+ attr_accessor :metadata
2484
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2485
+ sig { returns(T.nilable(String)) }
2486
+ attr_accessor :tax_behavior
2487
+ # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
2488
+ sig { returns(T.nilable(String)) }
2489
+ attr_accessor :tax_code
2490
+ # The type of calculation to use on the shipping rate.
2491
+ sig { returns(T.nilable(String)) }
2492
+ attr_accessor :type
2493
+ sig {
2494
+ params(delivery_estimate: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::DeliveryEstimate), display_name: String, fixed_amount: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData::FixedAmount), metadata: T.nilable(T::Hash[String, String]), tax_behavior: T.nilable(String), tax_code: T.nilable(String), type: T.nilable(String)).void
2495
+ }
2496
+ def initialize(
2497
+ delivery_estimate: nil,
2498
+ display_name: nil,
2499
+ fixed_amount: nil,
2500
+ metadata: nil,
2501
+ tax_behavior: nil,
2502
+ tax_code: nil,
2503
+ type: nil
2504
+ ); end
2505
+ end
2506
+ # The ID of the Shipping Rate to use for this shipping option.
2507
+ sig { returns(T.nilable(String)) }
2508
+ attr_accessor :shipping_rate
2509
+ # Parameters to be passed to Shipping Rate creation for this shipping option.
2510
+ sig {
2511
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData))
2512
+ }
2513
+ attr_accessor :shipping_rate_data
2514
+ sig {
2515
+ params(shipping_rate: T.nilable(String), shipping_rate_data: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::ShippingOption::ShippingRateData)).void
2516
+ }
2517
+ def initialize(shipping_rate: nil, shipping_rate_data: nil); end
2518
+ end
2519
+ # Information about the customer collected within the Checkout Session.
2520
+ sig {
2521
+ returns(T.nilable(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation))
2522
+ }
2523
+ attr_accessor :collected_information
2524
+ # Specifies which fields in the response should be expanded.
2525
+ sig { returns(T.nilable(T::Array[String])) }
2526
+ attr_accessor :expand
2527
+ # 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`.
2528
+ sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
2529
+ attr_accessor :metadata
2530
+ # The shipping rate options to apply to this Session. Up to a maximum of 5.
2531
+ sig {
2532
+ returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::UpdateParams::ShippingOption]))))
2533
+ }
2534
+ attr_accessor :shipping_options
2535
+ sig {
2536
+ params(collected_information: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), shipping_options: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::UpdateParams::ShippingOption])))).void
2537
+ }
2538
+ def initialize(
2539
+ collected_information: nil,
2540
+ expand: nil,
2541
+ metadata: nil,
2542
+ shipping_options: nil
2543
+ ); end
2544
+ end
2545
+ class ExpireParams < Stripe::RequestParams
2546
+ # Specifies which fields in the response should be expanded.
2547
+ sig { returns(T.nilable(T::Array[String])) }
2548
+ attr_accessor :expand
2549
+ sig { params(expand: T.nilable(T::Array[String])).void }
2550
+ def initialize(expand: nil); end
2551
+ end
2552
+ # Creates a Checkout Session object.
2553
+ sig {
2554
+ params(params: T.any(::Stripe::Checkout::SessionService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session)
2555
+ }
2556
+ def create(params = {}, opts = {}); end
2557
+
2558
+ # A Checkout Session can be expired when it is in one of these statuses: open
2559
+ #
2560
+ # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
2561
+ sig {
2562
+ params(session: String, params: T.any(::Stripe::Checkout::SessionService::ExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session)
2563
+ }
2564
+ def expire(session, params = {}, opts = {}); end
2565
+
2566
+ # Returns a list of Checkout Sessions.
2567
+ sig {
2568
+ params(params: T.any(::Stripe::Checkout::SessionService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
2569
+ }
2570
+ def list(params = {}, opts = {}); end
2571
+
2572
+ # Retrieves a Checkout Session object.
2573
+ sig {
2574
+ params(session: String, params: T.any(::Stripe::Checkout::SessionService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session)
2575
+ }
2576
+ def retrieve(session, params = {}, opts = {}); end
2577
+
2578
+ # Updates a Checkout Session object.
2579
+ sig {
2580
+ params(session: String, params: T.any(::Stripe::Checkout::SessionService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session)
2581
+ }
2582
+ def update(session, params = {}, opts = {}); end
2583
+ end
2584
+ end
2585
+ end