stripe 13.4.0.pre.beta.1 → 13.4.0.pre.beta.3

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