stripe 17.2.0.pre.beta.1 → 17.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +0 -34
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -63
  5. data/lib/stripe/event_types.rb +0 -233
  6. data/lib/stripe/object_types.rb +0 -55
  7. data/lib/stripe/params/account_create_params.rb +2 -301
  8. data/lib/stripe/params/account_session_create_params.rb +1 -226
  9. data/lib/stripe/params/account_update_params.rb +1 -263
  10. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -4
  11. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +0 -4
  12. data/lib/stripe/params/billing/credit_grant_create_params.rb +0 -4
  13. data/lib/stripe/params/billing/credit_grant_list_params.rb +0 -4
  14. data/lib/stripe/params/billing_portal/session_create_params.rb +0 -4
  15. data/lib/stripe/params/charge_capture_params.rb +0 -715
  16. data/lib/stripe/params/charge_update_params.rb +0 -715
  17. data/lib/stripe/params/checkout/session_create_params.rb +3 -193
  18. data/lib/stripe/params/checkout/session_list_params.rb +0 -4
  19. data/lib/stripe/params/checkout/session_update_params.rb +1 -288
  20. data/lib/stripe/params/confirmation_token_create_params.rb +0 -97
  21. data/lib/stripe/params/coupon_create_params.rb +1 -17
  22. data/lib/stripe/params/credit_note_list_params.rb +0 -4
  23. data/lib/stripe/params/customer_session_create_params.rb +3 -37
  24. data/lib/stripe/params/dispute_update_params.rb +1 -10
  25. data/lib/stripe/params/financial_connections/account_list_params.rb +1 -4
  26. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -34
  27. data/lib/stripe/params/identity/verification_session_create_params.rb +0 -4
  28. data/lib/stripe/params/identity/verification_session_list_params.rb +0 -4
  29. data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
  30. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  31. data/lib/stripe/params/invoice_create_params.rb +2 -112
  32. data/lib/stripe/params/invoice_create_preview_params.rb +9 -826
  33. data/lib/stripe/params/invoice_item_create_params.rb +1 -37
  34. data/lib/stripe/params/invoice_item_list_params.rb +0 -4
  35. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  36. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
  37. data/lib/stripe/params/invoice_list_params.rb +0 -4
  38. data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
  39. data/lib/stripe/params/invoice_update_params.rb +2 -108
  40. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  41. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  42. data/lib/stripe/params/payment_intent_capture_params.rb +1 -723
  43. data/lib/stripe/params/payment_intent_confirm_params.rb +12 -1197
  44. data/lib/stripe/params/payment_intent_create_params.rb +12 -1205
  45. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -50
  46. data/lib/stripe/params/payment_intent_list_params.rb +0 -4
  47. data/lib/stripe/params/payment_intent_update_params.rb +14 -1238
  48. data/lib/stripe/params/payment_method_attach_params.rb +1 -4
  49. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -126
  50. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -126
  51. data/lib/stripe/params/payment_method_create_params.rb +0 -97
  52. data/lib/stripe/params/payment_method_update_params.rb +0 -19
  53. data/lib/stripe/params/price_update_params.rb +0 -19
  54. data/lib/stripe/params/promotion_code_create_params.rb +0 -4
  55. data/lib/stripe/params/promotion_code_list_params.rb +0 -4
  56. data/lib/stripe/params/quote_create_params.rb +3 -805
  57. data/lib/stripe/params/quote_list_params.rb +0 -8
  58. data/lib/stripe/params/quote_update_params.rb +4 -813
  59. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -225
  60. data/lib/stripe/params/setup_intent_create_params.rb +3 -231
  61. data/lib/stripe/params/setup_intent_list_params.rb +0 -4
  62. data/lib/stripe/params/setup_intent_update_params.rb +3 -231
  63. data/lib/stripe/params/subscription_create_params.rb +5 -259
  64. data/lib/stripe/params/subscription_item_create_params.rb +2 -46
  65. data/lib/stripe/params/subscription_item_update_params.rb +1 -29
  66. data/lib/stripe/params/subscription_list_params.rb +0 -4
  67. data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
  68. data/lib/stripe/params/subscription_schedule_list_params.rb +0 -4
  69. data/lib/stripe/params/subscription_schedule_update_params.rb +5 -163
  70. data/lib/stripe/params/subscription_update_params.rb +4 -238
  71. data/lib/stripe/params/tax_id_create_params.rb +1 -4
  72. data/lib/stripe/params/tax_id_list_params.rb +1 -4
  73. data/lib/stripe/params/terminal/configuration_create_params.rb +9 -22
  74. data/lib/stripe/params/terminal/configuration_update_params.rb +9 -22
  75. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -97
  76. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  77. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  78. data/lib/stripe/params/transfer_create_params.rb +0 -4
  79. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  80. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  81. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  82. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  83. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  84. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  85. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  86. data/lib/stripe/params.rb +0 -164
  87. data/lib/stripe/resources/account.rb +2 -167
  88. data/lib/stripe/resources/account_session.rb +0 -81
  89. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
  90. data/lib/stripe/resources/billing/credit_grant.rb +0 -2
  91. data/lib/stripe/resources/billing_portal/session.rb +0 -2
  92. data/lib/stripe/resources/card.rb +0 -2
  93. data/lib/stripe/resources/cash_balance.rb +0 -2
  94. data/lib/stripe/resources/charge.rb +1 -237
  95. data/lib/stripe/resources/checkout/session.rb +4 -154
  96. data/lib/stripe/resources/confirmation_token.rb +0 -155
  97. data/lib/stripe/resources/coupon.rb +1 -26
  98. data/lib/stripe/resources/credit_note.rb +0 -2
  99. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  100. data/lib/stripe/resources/customer.rb +0 -2
  101. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  102. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  103. data/lib/stripe/resources/customer_session.rb +0 -38
  104. data/lib/stripe/resources/discount.rb +0 -2
  105. data/lib/stripe/resources/dispute.rb +0 -22
  106. data/lib/stripe/resources/event.rb +1 -64
  107. data/lib/stripe/resources/financial_connections/account.rb +0 -27
  108. data/lib/stripe/resources/financial_connections/session.rb +1 -67
  109. data/lib/stripe/resources/identity/verification_session.rb +0 -2
  110. data/lib/stripe/resources/invoice.rb +2 -153
  111. data/lib/stripe/resources/invoice_item.rb +0 -4
  112. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  113. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  114. data/lib/stripe/resources/line_item.rb +1 -68
  115. data/lib/stripe/resources/mandate.rb +0 -71
  116. data/lib/stripe/resources/payment_attempt_record.rb +1 -203
  117. data/lib/stripe/resources/payment_intent.rb +6 -789
  118. data/lib/stripe/resources/payment_method.rb +0 -157
  119. data/lib/stripe/resources/payment_method_configuration.rb +0 -204
  120. data/lib/stripe/resources/payment_record.rb +1 -203
  121. data/lib/stripe/resources/price.rb +0 -20
  122. data/lib/stripe/resources/promotion_code.rb +0 -2
  123. data/lib/stripe/resources/quote.rb +2 -571
  124. data/lib/stripe/resources/refund.rb +0 -18
  125. data/lib/stripe/resources/setup_attempt.rb +0 -63
  126. data/lib/stripe/resources/setup_intent.rb +1 -132
  127. data/lib/stripe/resources/source.rb +0 -38
  128. data/lib/stripe/resources/subscription.rb +0 -232
  129. data/lib/stripe/resources/subscription_item.rb +1 -20
  130. data/lib/stripe/resources/subscription_schedule.rb +3 -198
  131. data/lib/stripe/resources/tax_id.rb +0 -4
  132. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  133. data/lib/stripe/resources/terminal/reader.rb +0 -8
  134. data/lib/stripe/resources/transfer.rb +0 -2
  135. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  136. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  137. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  138. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  139. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  140. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
  141. data/lib/stripe/resources/v2/core/event.rb +2 -2
  142. data/lib/stripe/resources.rb +0 -112
  143. data/lib/stripe/services/billing_service.rb +1 -2
  144. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  145. data/lib/stripe/services/financial_connections_service.rb +1 -2
  146. data/lib/stripe/services/issuing_service.rb +1 -5
  147. data/lib/stripe/services/mandate_service.rb +0 -5
  148. data/lib/stripe/services/payment_intent_service.rb +0 -37
  149. data/lib/stripe/services/quote_service.rb +1 -49
  150. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  151. data/lib/stripe/services/subscription_service.rb +0 -11
  152. data/lib/stripe/services/tax_service.rb +1 -3
  153. data/lib/stripe/services/terminal_service.rb +1 -3
  154. data/lib/stripe/services/v1_services.rb +1 -8
  155. data/lib/stripe/services/v2/billing_service.rb +1 -5
  156. data/lib/stripe/services/v2/core_service.rb +1 -4
  157. data/lib/stripe/services/v2_services.rb +1 -4
  158. data/lib/stripe/services.rb +0 -58
  159. data/lib/stripe/stripe_configuration.rb +1 -3
  160. data/lib/stripe/stripe_object.rb +1 -1
  161. data/lib/stripe/util.rb +1 -7
  162. data/lib/stripe/version.rb +1 -1
  163. data/lib/stripe.rb +0 -53
  164. data/rbi/stripe.rbi +83044 -141384
  165. metadata +4 -338
  166. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
  167. data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
  168. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
  169. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
  170. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
  171. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
  172. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
  173. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
  174. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  175. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  176. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
  177. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
  178. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
  179. data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
  180. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
  181. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
  182. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
  183. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
  184. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  185. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  186. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  187. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  188. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  189. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  190. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  191. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  192. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  193. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  194. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  195. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  196. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  197. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  198. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  203. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  205. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  209. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -61
  218. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  219. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
  220. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
  221. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
  222. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
  223. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
  224. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  225. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
  226. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  227. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  228. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  229. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  230. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  231. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  232. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  233. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  234. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  235. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  236. data/lib/stripe/params/external_account_create_params.rb +0 -134
  237. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  238. data/lib/stripe/params/external_account_list_params.rb +0 -25
  239. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  240. data/lib/stripe/params/external_account_update_params.rb +0 -91
  241. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  242. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  243. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  244. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  245. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  246. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  247. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  248. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  249. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  250. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  251. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  252. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  253. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  254. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  255. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  256. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  257. data/lib/stripe/params/mandate_list_params.rb +0 -39
  258. data/lib/stripe/params/margin_create_params.rb +0 -25
  259. data/lib/stripe/params/margin_list_params.rb +0 -25
  260. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  261. data/lib/stripe/params/margin_update_params.rb +0 -22
  262. data/lib/stripe/params/order_cancel_params.rb +0 -13
  263. data/lib/stripe/params/order_create_params.rb +0 -1124
  264. data/lib/stripe/params/order_line_item_list_params.rb +0 -22
  265. data/lib/stripe/params/order_list_line_items_params.rb +0 -22
  266. data/lib/stripe/params/order_list_params.rb +0 -25
  267. data/lib/stripe/params/order_reopen_params.rb +0 -13
  268. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  269. data/lib/stripe/params/order_submit_params.rb +0 -16
  270. data/lib/stripe/params/order_update_params.rb +0 -1128
  271. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
  272. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  273. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  274. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  275. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  276. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  277. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  278. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  279. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  280. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  281. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  282. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  283. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  284. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  285. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  286. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  287. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  288. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  289. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
  290. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
  291. data/lib/stripe/params/tax/association_find_params.rb +0 -18
  292. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  293. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  294. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  295. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +0 -43
  296. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  297. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  298. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  299. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  300. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  301. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  302. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  303. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  304. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  305. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  306. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  307. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  308. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
  309. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  310. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  311. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
  312. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  313. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  314. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  315. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  316. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  317. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  318. data/lib/stripe/params/v2/core/account_close_params.rb +0 -17
  319. data/lib/stripe/params/v2/core/account_create_params.rb +0 -2248
  320. data/lib/stripe/params/v2/core/account_link_create_params.rb +0 -101
  321. data/lib/stripe/params/v2/core/account_list_params.rb +0 -23
  322. data/lib/stripe/params/v2/core/account_retrieve_params.rb +0 -17
  323. data/lib/stripe/params/v2/core/account_update_params.rb +0 -2294
  324. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +0 -493
  325. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +0 -12
  326. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +0 -19
  327. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +0 -12
  328. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +0 -493
  329. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  330. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  331. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
  332. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  333. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  334. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  335. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  336. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  337. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
  338. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  339. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  340. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  341. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  342. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  343. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  344. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  345. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  346. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  347. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  348. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  349. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  350. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  351. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  352. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  353. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  354. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  355. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  356. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
  357. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  358. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  359. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  360. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  361. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  362. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
  363. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  364. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  365. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
  366. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  367. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  368. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  369. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  370. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  371. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  372. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  374. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  375. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  376. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  377. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  378. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  379. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  380. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  381. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  382. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  383. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
  384. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
  385. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
  386. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
  387. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
  388. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  389. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  390. data/lib/stripe/resources/account_notice.rb +0 -94
  391. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  392. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  393. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  394. data/lib/stripe/resources/capital/financing_summary.rb +0 -79
  395. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  396. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  397. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  398. data/lib/stripe/resources/fx_quote.rb +0 -147
  399. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  400. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  401. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  402. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  403. data/lib/stripe/resources/margin.rb +0 -64
  404. data/lib/stripe/resources/order.rb +0 -987
  405. data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
  406. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  407. data/lib/stripe/resources/quote_line.rb +0 -521
  408. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
  409. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
  410. data/lib/stripe/resources/tax/association.rb +0 -86
  411. data/lib/stripe/resources/tax/form.rb +0 -264
  412. data/lib/stripe/resources/terminal/onboarding_link.rb +0 -71
  413. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  414. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  415. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
  416. data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
  417. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
  418. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
  419. data/lib/stripe/resources/v2/billing/profile.rb +0 -46
  420. data/lib/stripe/resources/v2/core/account.rb +0 -3906
  421. data/lib/stripe/resources/v2/core/account_link.rb +0 -123
  422. data/lib/stripe/resources/v2/core/account_person.rb +0 -477
  423. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
  424. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -81
  425. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
  426. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
  427. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  428. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  429. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
  430. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
  431. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
  432. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  433. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  434. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  435. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
  436. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
  437. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
  438. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  439. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
  440. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  441. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
  442. data/lib/stripe/services/account_notice_service.rb +0 -39
  443. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  444. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  445. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  446. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  447. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  448. data/lib/stripe/services/capital_service.rb +0 -15
  449. data/lib/stripe/services/external_account_service.rb +0 -68
  450. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  451. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  452. data/lib/stripe/services/fx_quote_service.rb +0 -27
  453. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  454. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  455. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  456. data/lib/stripe/services/margin_service.rb +0 -50
  457. data/lib/stripe/services/order_line_item_service.rb +0 -17
  458. data/lib/stripe/services/order_service.rb +0 -78
  459. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  460. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  461. data/lib/stripe/services/privacy_service.rb +0 -13
  462. data/lib/stripe/services/quote_line_service.rb +0 -17
  463. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  464. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  465. data/lib/stripe/services/tax/association_service.rb +0 -19
  466. data/lib/stripe/services/tax/form_service.rb +0 -37
  467. data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -19
  468. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  469. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  470. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  471. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  472. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
  473. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  474. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  475. data/lib/stripe/services/v2/core/account_link_service.rb +0 -21
  476. data/lib/stripe/services/v2/core/account_service.rb +0 -76
  477. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -67
  478. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  479. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  480. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  481. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  482. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  483. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  484. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  485. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  486. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  487. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
  488. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  489. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
  490. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  491. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  492. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  493. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  494. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  495. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  496. data/lib/stripe/services/v2/payment_service.rb +0 -15
  497. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
  498. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  499. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
@@ -188,31 +188,6 @@ module Stripe
188
188
  end
189
189
  end
190
190
 
191
- class Hooks < ::Stripe::RequestParams
192
- class Inputs < ::Stripe::RequestParams
193
- class Tax < ::Stripe::RequestParams
194
- # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
195
- attr_accessor :calculation
196
-
197
- def initialize(calculation: nil)
198
- @calculation = calculation
199
- end
200
- end
201
- # Tax arguments for automations
202
- attr_accessor :tax
203
-
204
- def initialize(tax: nil)
205
- @tax = tax
206
- end
207
- end
208
- # Arguments passed in automations
209
- attr_accessor :inputs
210
-
211
- def initialize(inputs: nil)
212
- @inputs = inputs
213
- end
214
- end
215
-
216
191
  class MandateData < ::Stripe::RequestParams
217
192
  class CustomerAcceptance < ::Stripe::RequestParams
218
193
  class Offline < ::Stripe::RequestParams; end
@@ -253,713 +228,20 @@ module Stripe
253
228
  end
254
229
 
255
230
  class PaymentDetails < ::Stripe::RequestParams
256
- class CarRental < ::Stripe::RequestParams
257
- class Affiliate < ::Stripe::RequestParams
258
- # The name of the affiliate that originated the purchase.
259
- attr_accessor :name
260
-
261
- def initialize(name: nil)
262
- @name = name
263
- end
264
- end
265
-
266
- class Delivery < ::Stripe::RequestParams
267
- class Recipient < ::Stripe::RequestParams
268
- # The email of the recipient the ticket is delivered to.
269
- attr_accessor :email
270
- # The name of the recipient the ticket is delivered to.
271
- attr_accessor :name
272
- # The phone number of the recipient the ticket is delivered to.
273
- attr_accessor :phone
274
-
275
- def initialize(email: nil, name: nil, phone: nil)
276
- @email = email
277
- @name = name
278
- @phone = phone
279
- end
280
- end
281
- # The delivery method for the payment
282
- attr_accessor :mode
283
- # Details of the recipient.
284
- attr_accessor :recipient
285
-
286
- def initialize(mode: nil, recipient: nil)
287
- @mode = mode
288
- @recipient = recipient
289
- end
290
- end
291
-
292
- class Distance < ::Stripe::RequestParams
293
- # Distance traveled.
294
- attr_accessor :amount
295
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
296
- attr_accessor :unit
297
-
298
- def initialize(amount: nil, unit: nil)
299
- @amount = amount
300
- @unit = unit
301
- end
302
- end
303
-
304
- class Driver < ::Stripe::RequestParams
305
- # Driver's identification number.
306
- attr_accessor :driver_identification_number
307
- # Driver's tax number.
308
- attr_accessor :driver_tax_number
309
- # Full name of the person or entity on the car reservation.
310
- attr_accessor :name
311
-
312
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
313
- @driver_identification_number = driver_identification_number
314
- @driver_tax_number = driver_tax_number
315
- @name = name
316
- end
317
- end
318
-
319
- class PickupAddress < ::Stripe::RequestParams
320
- # City, district, suburb, town, or village.
321
- attr_accessor :city
322
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
323
- attr_accessor :country
324
- # Address line 1, such as the street, PO Box, or company name.
325
- attr_accessor :line1
326
- # Address line 2, such as the apartment, suite, unit, or building.
327
- attr_accessor :line2
328
- # ZIP or postal code.
329
- attr_accessor :postal_code
330
- # State, county, province, or region.
331
- attr_accessor :state
332
-
333
- def initialize(
334
- city: nil,
335
- country: nil,
336
- line1: nil,
337
- line2: nil,
338
- postal_code: nil,
339
- state: nil
340
- )
341
- @city = city
342
- @country = country
343
- @line1 = line1
344
- @line2 = line2
345
- @postal_code = postal_code
346
- @state = state
347
- end
348
- end
349
-
350
- class ReturnAddress < ::Stripe::RequestParams
351
- # City, district, suburb, town, or village.
352
- attr_accessor :city
353
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
354
- attr_accessor :country
355
- # Address line 1, such as the street, PO Box, or company name.
356
- attr_accessor :line1
357
- # Address line 2, such as the apartment, suite, unit, or building.
358
- attr_accessor :line2
359
- # ZIP or postal code.
360
- attr_accessor :postal_code
361
- # State, county, province, or region.
362
- attr_accessor :state
363
-
364
- def initialize(
365
- city: nil,
366
- country: nil,
367
- line1: nil,
368
- line2: nil,
369
- postal_code: nil,
370
- state: nil
371
- )
372
- @city = city
373
- @country = country
374
- @line1 = line1
375
- @line2 = line2
376
- @postal_code = postal_code
377
- @state = state
378
- end
379
- end
380
- # Affiliate details for this purchase.
381
- attr_accessor :affiliate
382
- # The booking number associated with the car rental.
383
- attr_accessor :booking_number
384
- # Class code of the car.
385
- attr_accessor :car_class_code
386
- # Make of the car.
387
- attr_accessor :car_make
388
- # Model of the car.
389
- attr_accessor :car_model
390
- # The name of the rental car company.
391
- attr_accessor :company
392
- # The customer service phone number of the car rental company.
393
- attr_accessor :customer_service_phone_number
394
- # Number of days the car is being rented.
395
- attr_accessor :days_rented
396
- # Delivery details for this purchase.
397
- attr_accessor :delivery
398
- # The details of the distance traveled during the rental period.
399
- attr_accessor :distance
400
- # The details of the passengers in the travel reservation
401
- attr_accessor :drivers
402
- # List of additional charges being billed.
403
- attr_accessor :extra_charges
404
- # Indicates if the customer did not keep nor cancel their booking.
405
- attr_accessor :no_show
406
- # Car pick-up address.
407
- attr_accessor :pickup_address
408
- # Car pick-up time. Measured in seconds since the Unix epoch.
409
- attr_accessor :pickup_at
410
- # Name of the pickup location.
411
- attr_accessor :pickup_location_name
412
- # Rental rate.
413
- attr_accessor :rate_amount
414
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
415
- attr_accessor :rate_interval
416
- # The name of the person or entity renting the car.
417
- attr_accessor :renter_name
418
- # Car return address.
419
- attr_accessor :return_address
420
- # Car return time. Measured in seconds since the Unix epoch.
421
- attr_accessor :return_at
422
- # Name of the return location.
423
- attr_accessor :return_location_name
424
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
425
- attr_accessor :tax_exempt
426
- # The vehicle identification number.
427
- attr_accessor :vehicle_identification_number
428
-
429
- def initialize(
430
- affiliate: nil,
431
- booking_number: nil,
432
- car_class_code: nil,
433
- car_make: nil,
434
- car_model: nil,
435
- company: nil,
436
- customer_service_phone_number: nil,
437
- days_rented: nil,
438
- delivery: nil,
439
- distance: nil,
440
- drivers: nil,
441
- extra_charges: nil,
442
- no_show: nil,
443
- pickup_address: nil,
444
- pickup_at: nil,
445
- pickup_location_name: nil,
446
- rate_amount: nil,
447
- rate_interval: nil,
448
- renter_name: nil,
449
- return_address: nil,
450
- return_at: nil,
451
- return_location_name: nil,
452
- tax_exempt: nil,
453
- vehicle_identification_number: nil
454
- )
455
- @affiliate = affiliate
456
- @booking_number = booking_number
457
- @car_class_code = car_class_code
458
- @car_make = car_make
459
- @car_model = car_model
460
- @company = company
461
- @customer_service_phone_number = customer_service_phone_number
462
- @days_rented = days_rented
463
- @delivery = delivery
464
- @distance = distance
465
- @drivers = drivers
466
- @extra_charges = extra_charges
467
- @no_show = no_show
468
- @pickup_address = pickup_address
469
- @pickup_at = pickup_at
470
- @pickup_location_name = pickup_location_name
471
- @rate_amount = rate_amount
472
- @rate_interval = rate_interval
473
- @renter_name = renter_name
474
- @return_address = return_address
475
- @return_at = return_at
476
- @return_location_name = return_location_name
477
- @tax_exempt = tax_exempt
478
- @vehicle_identification_number = vehicle_identification_number
479
- end
480
- end
481
-
482
- class EventDetails < ::Stripe::RequestParams
483
- class Address < ::Stripe::RequestParams
484
- # City, district, suburb, town, or village.
485
- attr_accessor :city
486
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
487
- attr_accessor :country
488
- # Address line 1, such as the street, PO Box, or company name.
489
- attr_accessor :line1
490
- # Address line 2, such as the apartment, suite, unit, or building.
491
- attr_accessor :line2
492
- # ZIP or postal code.
493
- attr_accessor :postal_code
494
- # State, county, province, or region.
495
- attr_accessor :state
496
-
497
- def initialize(
498
- city: nil,
499
- country: nil,
500
- line1: nil,
501
- line2: nil,
502
- postal_code: nil,
503
- state: nil
504
- )
505
- @city = city
506
- @country = country
507
- @line1 = line1
508
- @line2 = line2
509
- @postal_code = postal_code
510
- @state = state
511
- end
512
- end
513
-
514
- class Affiliate < ::Stripe::RequestParams
515
- # The name of the affiliate that originated the purchase.
516
- attr_accessor :name
517
-
518
- def initialize(name: nil)
519
- @name = name
520
- end
521
- end
522
-
523
- class Delivery < ::Stripe::RequestParams
524
- class Recipient < ::Stripe::RequestParams
525
- # The email of the recipient the ticket is delivered to.
526
- attr_accessor :email
527
- # The name of the recipient the ticket is delivered to.
528
- attr_accessor :name
529
- # The phone number of the recipient the ticket is delivered to.
530
- attr_accessor :phone
531
-
532
- def initialize(email: nil, name: nil, phone: nil)
533
- @email = email
534
- @name = name
535
- @phone = phone
536
- end
537
- end
538
- # The delivery method for the payment
539
- attr_accessor :mode
540
- # Details of the recipient.
541
- attr_accessor :recipient
542
-
543
- def initialize(mode: nil, recipient: nil)
544
- @mode = mode
545
- @recipient = recipient
546
- end
547
- end
548
- # Indicates if the tickets are digitally checked when entering the venue.
549
- attr_accessor :access_controlled_venue
550
- # The event location's address.
551
- attr_accessor :address
552
- # Affiliate details for this purchase.
553
- attr_accessor :affiliate
554
- # The name of the company
555
- attr_accessor :company
556
- # Delivery details for this purchase.
557
- attr_accessor :delivery
558
- # Event end time. Measured in seconds since the Unix epoch.
559
- attr_accessor :ends_at
560
- # Type of the event entertainment (concert, sports event etc)
561
- attr_accessor :genre
562
- # The name of the event.
563
- attr_accessor :name
564
- # Event start time. Measured in seconds since the Unix epoch.
565
- attr_accessor :starts_at
566
-
567
- def initialize(
568
- access_controlled_venue: nil,
569
- address: nil,
570
- affiliate: nil,
571
- company: nil,
572
- delivery: nil,
573
- ends_at: nil,
574
- genre: nil,
575
- name: nil,
576
- starts_at: nil
577
- )
578
- @access_controlled_venue = access_controlled_venue
579
- @address = address
580
- @affiliate = affiliate
581
- @company = company
582
- @delivery = delivery
583
- @ends_at = ends_at
584
- @genre = genre
585
- @name = name
586
- @starts_at = starts_at
587
- end
588
- end
589
-
590
- class Flight < ::Stripe::RequestParams
591
- class Affiliate < ::Stripe::RequestParams
592
- # The name of the affiliate that originated the purchase.
593
- attr_accessor :name
594
-
595
- def initialize(name: nil)
596
- @name = name
597
- end
598
- end
599
-
600
- class Delivery < ::Stripe::RequestParams
601
- class Recipient < ::Stripe::RequestParams
602
- # The email of the recipient the ticket is delivered to.
603
- attr_accessor :email
604
- # The name of the recipient the ticket is delivered to.
605
- attr_accessor :name
606
- # The phone number of the recipient the ticket is delivered to.
607
- attr_accessor :phone
608
-
609
- def initialize(email: nil, name: nil, phone: nil)
610
- @email = email
611
- @name = name
612
- @phone = phone
613
- end
614
- end
615
- # The delivery method for the payment
616
- attr_accessor :mode
617
- # Details of the recipient.
618
- attr_accessor :recipient
619
-
620
- def initialize(mode: nil, recipient: nil)
621
- @mode = mode
622
- @recipient = recipient
623
- end
624
- end
625
-
626
- class Passenger < ::Stripe::RequestParams
627
- # Full name of the person or entity on the flight reservation.
628
- attr_accessor :name
629
-
630
- def initialize(name: nil)
631
- @name = name
632
- end
633
- end
634
-
635
- class Segment < ::Stripe::RequestParams
636
- # The flight segment amount.
637
- attr_accessor :amount
638
- # The International Air Transport Association (IATA) airport code for the arrival airport.
639
- attr_accessor :arrival_airport
640
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
641
- attr_accessor :arrives_at
642
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
643
- attr_accessor :carrier
644
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
645
- attr_accessor :departs_at
646
- # The International Air Transport Association (IATA) airport code for the departure airport.
647
- attr_accessor :departure_airport
648
- # The flight number associated with the segment
649
- attr_accessor :flight_number
650
- # The fare class for the segment.
651
- attr_accessor :service_class
652
-
653
- def initialize(
654
- amount: nil,
655
- arrival_airport: nil,
656
- arrives_at: nil,
657
- carrier: nil,
658
- departs_at: nil,
659
- departure_airport: nil,
660
- flight_number: nil,
661
- service_class: nil
662
- )
663
- @amount = amount
664
- @arrival_airport = arrival_airport
665
- @arrives_at = arrives_at
666
- @carrier = carrier
667
- @departs_at = departs_at
668
- @departure_airport = departure_airport
669
- @flight_number = flight_number
670
- @service_class = service_class
671
- end
672
- end
673
- # Affiliate details for this purchase.
674
- attr_accessor :affiliate
675
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
676
- attr_accessor :agency_number
677
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
678
- attr_accessor :carrier
679
- # Delivery details for this purchase.
680
- attr_accessor :delivery
681
- # The name of the person or entity on the reservation.
682
- attr_accessor :passenger_name
683
- # The details of the passengers in the travel reservation.
684
- attr_accessor :passengers
685
- # The individual flight segments associated with the trip.
686
- attr_accessor :segments
687
- # The ticket number associated with the travel reservation.
688
- attr_accessor :ticket_number
689
-
690
- def initialize(
691
- affiliate: nil,
692
- agency_number: nil,
693
- carrier: nil,
694
- delivery: nil,
695
- passenger_name: nil,
696
- passengers: nil,
697
- segments: nil,
698
- ticket_number: nil
699
- )
700
- @affiliate = affiliate
701
- @agency_number = agency_number
702
- @carrier = carrier
703
- @delivery = delivery
704
- @passenger_name = passenger_name
705
- @passengers = passengers
706
- @segments = segments
707
- @ticket_number = ticket_number
708
- end
709
- end
710
-
711
- class Lodging < ::Stripe::RequestParams
712
- class Address < ::Stripe::RequestParams
713
- # City, district, suburb, town, or village.
714
- attr_accessor :city
715
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
716
- attr_accessor :country
717
- # Address line 1, such as the street, PO Box, or company name.
718
- attr_accessor :line1
719
- # Address line 2, such as the apartment, suite, unit, or building.
720
- attr_accessor :line2
721
- # ZIP or postal code.
722
- attr_accessor :postal_code
723
- # State, county, province, or region.
724
- attr_accessor :state
725
-
726
- def initialize(
727
- city: nil,
728
- country: nil,
729
- line1: nil,
730
- line2: nil,
731
- postal_code: nil,
732
- state: nil
733
- )
734
- @city = city
735
- @country = country
736
- @line1 = line1
737
- @line2 = line2
738
- @postal_code = postal_code
739
- @state = state
740
- end
741
- end
742
-
743
- class Affiliate < ::Stripe::RequestParams
744
- # The name of the affiliate that originated the purchase.
745
- attr_accessor :name
746
-
747
- def initialize(name: nil)
748
- @name = name
749
- end
750
- end
751
-
752
- class Delivery < ::Stripe::RequestParams
753
- class Recipient < ::Stripe::RequestParams
754
- # The email of the recipient the ticket is delivered to.
755
- attr_accessor :email
756
- # The name of the recipient the ticket is delivered to.
757
- attr_accessor :name
758
- # The phone number of the recipient the ticket is delivered to.
759
- attr_accessor :phone
760
-
761
- def initialize(email: nil, name: nil, phone: nil)
762
- @email = email
763
- @name = name
764
- @phone = phone
765
- end
766
- end
767
- # The delivery method for the payment
768
- attr_accessor :mode
769
- # Details of the recipient.
770
- attr_accessor :recipient
771
-
772
- def initialize(mode: nil, recipient: nil)
773
- @mode = mode
774
- @recipient = recipient
775
- end
776
- end
777
-
778
- class Passenger < ::Stripe::RequestParams
779
- # Full name of the person or entity on the lodging reservation.
780
- attr_accessor :name
781
-
782
- def initialize(name: nil)
783
- @name = name
784
- end
785
- end
786
- # The lodging location's address.
787
- attr_accessor :address
788
- # The number of adults on the booking
789
- attr_accessor :adults
790
- # Affiliate details for this purchase.
791
- attr_accessor :affiliate
792
- # The booking number associated with the lodging reservation.
793
- attr_accessor :booking_number
794
- # The lodging category
795
- attr_accessor :category
796
- # Lodging check-in time. Measured in seconds since the Unix epoch.
797
- attr_accessor :checkin_at
798
- # Lodging check-out time. Measured in seconds since the Unix epoch.
799
- attr_accessor :checkout_at
800
- # The customer service phone number of the lodging company.
801
- attr_accessor :customer_service_phone_number
802
- # The daily lodging room rate.
803
- attr_accessor :daily_room_rate_amount
804
- # Delivery details for this purchase.
805
- attr_accessor :delivery
806
- # List of additional charges being billed.
807
- attr_accessor :extra_charges
808
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
809
- attr_accessor :fire_safety_act_compliance
810
- # The name of the lodging location.
811
- attr_accessor :name
812
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
813
- attr_accessor :no_show
814
- # The number of rooms on the booking
815
- attr_accessor :number_of_rooms
816
- # The details of the passengers in the travel reservation
817
- attr_accessor :passengers
818
- # The phone number of the lodging location.
819
- attr_accessor :property_phone_number
820
- # The room class for this purchase.
821
- attr_accessor :room_class
822
- # The number of room nights
823
- attr_accessor :room_nights
824
- # The total tax amount associating with the room reservation.
825
- attr_accessor :total_room_tax_amount
826
- # The total tax amount
827
- attr_accessor :total_tax_amount
828
-
829
- def initialize(
830
- address: nil,
831
- adults: nil,
832
- affiliate: nil,
833
- booking_number: nil,
834
- category: nil,
835
- checkin_at: nil,
836
- checkout_at: nil,
837
- customer_service_phone_number: nil,
838
- daily_room_rate_amount: nil,
839
- delivery: nil,
840
- extra_charges: nil,
841
- fire_safety_act_compliance: nil,
842
- name: nil,
843
- no_show: nil,
844
- number_of_rooms: nil,
845
- passengers: nil,
846
- property_phone_number: nil,
847
- room_class: nil,
848
- room_nights: nil,
849
- total_room_tax_amount: nil,
850
- total_tax_amount: nil
851
- )
852
- @address = address
853
- @adults = adults
854
- @affiliate = affiliate
855
- @booking_number = booking_number
856
- @category = category
857
- @checkin_at = checkin_at
858
- @checkout_at = checkout_at
859
- @customer_service_phone_number = customer_service_phone_number
860
- @daily_room_rate_amount = daily_room_rate_amount
861
- @delivery = delivery
862
- @extra_charges = extra_charges
863
- @fire_safety_act_compliance = fire_safety_act_compliance
864
- @name = name
865
- @no_show = no_show
866
- @number_of_rooms = number_of_rooms
867
- @passengers = passengers
868
- @property_phone_number = property_phone_number
869
- @room_class = room_class
870
- @room_nights = room_nights
871
- @total_room_tax_amount = total_room_tax_amount
872
- @total_tax_amount = total_tax_amount
873
- end
874
- end
875
-
876
- class Subscription < ::Stripe::RequestParams
877
- class Affiliate < ::Stripe::RequestParams
878
- # The name of the affiliate that originated the purchase.
879
- attr_accessor :name
880
-
881
- def initialize(name: nil)
882
- @name = name
883
- end
884
- end
885
-
886
- class BillingInterval < ::Stripe::RequestParams
887
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
888
- attr_accessor :count
889
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
890
- attr_accessor :interval
891
-
892
- def initialize(count: nil, interval: nil)
893
- @count = count
894
- @interval = interval
895
- end
896
- end
897
- # Affiliate details for this purchase.
898
- attr_accessor :affiliate
899
- # Info whether the subscription will be auto renewed upon expiry.
900
- attr_accessor :auto_renewal
901
- # Subscription billing details for this purchase.
902
- attr_accessor :billing_interval
903
- # Subscription end time. Measured in seconds since the Unix epoch.
904
- attr_accessor :ends_at
905
- # Name of the product on subscription. e.g. Apple Music Subscription
906
- attr_accessor :name
907
- # Subscription start time. Measured in seconds since the Unix epoch.
908
- attr_accessor :starts_at
909
-
910
- def initialize(
911
- affiliate: nil,
912
- auto_renewal: nil,
913
- billing_interval: nil,
914
- ends_at: nil,
915
- name: nil,
916
- starts_at: nil
917
- )
918
- @affiliate = affiliate
919
- @auto_renewal = auto_renewal
920
- @billing_interval = billing_interval
921
- @ends_at = ends_at
922
- @name = name
923
- @starts_at = starts_at
924
- end
925
- end
926
- # Car rental details for this PaymentIntent.
927
- attr_accessor :car_rental
928
231
  # A unique value to identify the customer. This field is available only for card payments.
929
232
  #
930
233
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
931
234
  attr_accessor :customer_reference
932
- # Event details for this PaymentIntent
933
- attr_accessor :event_details
934
- # Flight reservation details for this PaymentIntent
935
- attr_accessor :flight
936
- # Lodging reservation details for this PaymentIntent
937
- attr_accessor :lodging
938
235
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
939
236
  #
940
237
  # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
941
238
  #
942
239
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
943
240
  attr_accessor :order_reference
944
- # Subscription details for this PaymentIntent
945
- attr_accessor :subscription
946
241
 
947
- def initialize(
948
- car_rental: nil,
949
- customer_reference: nil,
950
- event_details: nil,
951
- flight: nil,
952
- lodging: nil,
953
- order_reference: nil,
954
- subscription: nil
955
- )
956
- @car_rental = car_rental
242
+ def initialize(customer_reference: nil, order_reference: nil)
957
243
  @customer_reference = customer_reference
958
- @event_details = event_details
959
- @flight = flight
960
- @lodging = lodging
961
244
  @order_reference = order_reference
962
- @subscription = subscription
963
245
  end
964
246
  end
965
247
 
@@ -1100,18 +382,8 @@ module Stripe
1100
382
  end
1101
383
 
1102
384
  class Giropay < ::Stripe::RequestParams; end
1103
- class Gopay < ::Stripe::RequestParams; end
1104
385
  class Grabpay < ::Stripe::RequestParams; end
1105
386
 
1106
- class IdBankTransfer < ::Stripe::RequestParams
1107
- # Bank where the account is held.
1108
- attr_accessor :bank
1109
-
1110
- def initialize(bank: nil)
1111
- @bank = bank
1112
- end
1113
- end
1114
-
1115
387
  class Ideal < ::Stripe::RequestParams
1116
388
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1117
389
  attr_accessor :bank
@@ -1209,26 +481,8 @@ module Stripe
1209
481
  class Payco < ::Stripe::RequestParams; end
1210
482
  class Paynow < ::Stripe::RequestParams; end
1211
483
  class Paypal < ::Stripe::RequestParams; end
1212
- class Paypay < ::Stripe::RequestParams; end
1213
-
1214
- class Payto < ::Stripe::RequestParams
1215
- # The account number for the bank account.
1216
- attr_accessor :account_number
1217
- # Bank-State-Branch number of the bank account.
1218
- attr_accessor :bsb_number
1219
- # The PayID alias for the bank account.
1220
- attr_accessor :pay_id
1221
-
1222
- def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1223
- @account_number = account_number
1224
- @bsb_number = bsb_number
1225
- @pay_id = pay_id
1226
- end
1227
- end
1228
-
1229
484
  class Pix < ::Stripe::RequestParams; end
1230
485
  class Promptpay < ::Stripe::RequestParams; end
1231
- class Qris < ::Stripe::RequestParams; end
1232
486
 
1233
487
  class RadarOptions < ::Stripe::RequestParams
1234
488
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -1239,29 +493,6 @@ module Stripe
1239
493
  end
1240
494
  end
1241
495
 
1242
- class Rechnung < ::Stripe::RequestParams
1243
- class Dob < ::Stripe::RequestParams
1244
- # The day of birth, between 1 and 31.
1245
- attr_accessor :day
1246
- # The month of birth, between 1 and 12.
1247
- attr_accessor :month
1248
- # The four-digit year of birth.
1249
- attr_accessor :year
1250
-
1251
- def initialize(day: nil, month: nil, year: nil)
1252
- @day = day
1253
- @month = month
1254
- @year = year
1255
- end
1256
- end
1257
- # Customer's date of birth
1258
- attr_accessor :dob
1259
-
1260
- def initialize(dob: nil)
1261
- @dob = dob
1262
- end
1263
- end
1264
-
1265
496
  class RevolutPay < ::Stripe::RequestParams; end
1266
497
  class SamsungPay < ::Stripe::RequestParams; end
1267
498
  class Satispay < ::Stripe::RequestParams; end
@@ -1275,8 +506,6 @@ module Stripe
1275
506
  end
1276
507
  end
1277
508
 
1278
- class Shopeepay < ::Stripe::RequestParams; end
1279
-
1280
509
  class Sofort < ::Stripe::RequestParams
1281
510
  # Two-letter ISO code representing the country the bank account is located in.
1282
511
  attr_accessor :country
@@ -1286,18 +515,6 @@ module Stripe
1286
515
  end
1287
516
  end
1288
517
 
1289
- class StripeBalance < ::Stripe::RequestParams
1290
- # The connected account ID whose Stripe balance to use as the source of payment
1291
- attr_accessor :account
1292
- # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1293
- attr_accessor :source_type
1294
-
1295
- def initialize(account: nil, source_type: nil)
1296
- @account = account
1297
- @source_type = source_type
1298
- end
1299
- end
1300
-
1301
518
  class Swish < ::Stripe::RequestParams; end
1302
519
  class Twint < ::Stripe::RequestParams; end
1303
520
 
@@ -1370,12 +587,8 @@ module Stripe
1370
587
  attr_accessor :fpx
1371
588
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1372
589
  attr_accessor :giropay
1373
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1374
- attr_accessor :gopay
1375
590
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1376
591
  attr_accessor :grabpay
1377
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1378
- attr_accessor :id_bank_transfer
1379
592
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1380
593
  attr_accessor :ideal
1381
594
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -1414,20 +627,12 @@ module Stripe
1414
627
  attr_accessor :paynow
1415
628
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1416
629
  attr_accessor :paypal
1417
- # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
1418
- attr_accessor :paypay
1419
- # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1420
- attr_accessor :payto
1421
630
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1422
631
  attr_accessor :pix
1423
632
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1424
633
  attr_accessor :promptpay
1425
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1426
- attr_accessor :qris
1427
634
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1428
635
  attr_accessor :radar_options
1429
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1430
- attr_accessor :rechnung
1431
636
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1432
637
  attr_accessor :revolut_pay
1433
638
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -1436,12 +641,8 @@ module Stripe
1436
641
  attr_accessor :satispay
1437
642
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1438
643
  attr_accessor :sepa_debit
1439
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1440
- attr_accessor :shopeepay
1441
644
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1442
645
  attr_accessor :sofort
1443
- # This hash contains details about the Stripe balance payment method.
1444
- attr_accessor :stripe_balance
1445
646
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1446
647
  attr_accessor :swish
1447
648
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -1476,9 +677,7 @@ module Stripe
1476
677
  eps: nil,
1477
678
  fpx: nil,
1478
679
  giropay: nil,
1479
- gopay: nil,
1480
680
  grabpay: nil,
1481
- id_bank_transfer: nil,
1482
681
  ideal: nil,
1483
682
  interac_present: nil,
1484
683
  kakao_pay: nil,
@@ -1498,20 +697,14 @@ module Stripe
1498
697
  payco: nil,
1499
698
  paynow: nil,
1500
699
  paypal: nil,
1501
- paypay: nil,
1502
- payto: nil,
1503
700
  pix: nil,
1504
701
  promptpay: nil,
1505
- qris: nil,
1506
702
  radar_options: nil,
1507
- rechnung: nil,
1508
703
  revolut_pay: nil,
1509
704
  samsung_pay: nil,
1510
705
  satispay: nil,
1511
706
  sepa_debit: nil,
1512
- shopeepay: nil,
1513
707
  sofort: nil,
1514
- stripe_balance: nil,
1515
708
  swish: nil,
1516
709
  twint: nil,
1517
710
  type: nil,
@@ -1539,9 +732,7 @@ module Stripe
1539
732
  @eps = eps
1540
733
  @fpx = fpx
1541
734
  @giropay = giropay
1542
- @gopay = gopay
1543
735
  @grabpay = grabpay
1544
- @id_bank_transfer = id_bank_transfer
1545
736
  @ideal = ideal
1546
737
  @interac_present = interac_present
1547
738
  @kakao_pay = kakao_pay
@@ -1561,20 +752,14 @@ module Stripe
1561
752
  @payco = payco
1562
753
  @paynow = paynow
1563
754
  @paypal = paypal
1564
- @paypay = paypay
1565
- @payto = payto
1566
755
  @pix = pix
1567
756
  @promptpay = promptpay
1568
- @qris = qris
1569
757
  @radar_options = radar_options
1570
- @rechnung = rechnung
1571
758
  @revolut_pay = revolut_pay
1572
759
  @samsung_pay = samsung_pay
1573
760
  @satispay = satispay
1574
761
  @sepa_debit = sepa_debit
1575
- @shopeepay = shopeepay
1576
762
  @sofort = sofort
1577
- @stripe_balance = stripe_balance
1578
763
  @swish = swish
1579
764
  @twint = twint
1580
765
  @type = type
@@ -1945,48 +1130,6 @@ module Stripe
1945
1130
  end
1946
1131
  end
1947
1132
 
1948
- class StatementDetails < ::Stripe::RequestParams
1949
- class Address < ::Stripe::RequestParams
1950
- # City, district, suburb, town, or village.
1951
- attr_accessor :city
1952
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1953
- attr_accessor :country
1954
- # Address line 1, such as the street, PO Box, or company name.
1955
- attr_accessor :line1
1956
- # Address line 2, such as the apartment, suite, unit, or building.
1957
- attr_accessor :line2
1958
- # ZIP or postal code.
1959
- attr_accessor :postal_code
1960
- # State, county, province, or region.
1961
- attr_accessor :state
1962
-
1963
- def initialize(
1964
- city: nil,
1965
- country: nil,
1966
- line1: nil,
1967
- line2: nil,
1968
- postal_code: nil,
1969
- state: nil
1970
- )
1971
- @city = city
1972
- @country = country
1973
- @line1 = line1
1974
- @line2 = line2
1975
- @postal_code = postal_code
1976
- @state = state
1977
- end
1978
- end
1979
- # Please pass in an address that is within your Stripe user account country
1980
- attr_accessor :address
1981
- # Phone number (e.g., a toll-free number that customers can call)
1982
- attr_accessor :phone
1983
-
1984
- def initialize(address: nil, phone: nil)
1985
- @address = address
1986
- @phone = phone
1987
- end
1988
- end
1989
-
1990
1133
  class ThreeDSecure < ::Stripe::RequestParams
1991
1134
  class NetworkOptions < ::Stripe::RequestParams
1992
1135
  class CartesBancaires < ::Stripe::RequestParams
@@ -2081,8 +1224,6 @@ module Stripe
2081
1224
  attr_accessor :moto
2082
1225
  # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
2083
1226
  attr_accessor :network
2084
- # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2085
- attr_accessor :request_decremental_authorization
2086
1227
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
2087
1228
  attr_accessor :request_extended_authorization
2088
1229
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -2091,8 +1232,6 @@ module Stripe
2091
1232
  attr_accessor :request_multicapture
2092
1233
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
2093
1234
  attr_accessor :request_overcapture
2094
- # Request partial authorization on this PaymentIntent.
2095
- attr_accessor :request_partial_authorization
2096
1235
  # 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.
2097
1236
  attr_accessor :request_three_d_secure
2098
1237
  # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
@@ -2111,8 +1250,6 @@ module Stripe
2111
1250
  attr_accessor :statement_descriptor_suffix_kana
2112
1251
  # 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.
2113
1252
  attr_accessor :statement_descriptor_suffix_kanji
2114
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
2115
- attr_accessor :statement_details
2116
1253
  # If 3D Secure authentication was performed with a third-party provider,
2117
1254
  # the authentication details to use for this payment.
2118
1255
  attr_accessor :three_d_secure
@@ -2124,18 +1261,15 @@ module Stripe
2124
1261
  mandate_options: nil,
2125
1262
  moto: nil,
2126
1263
  network: nil,
2127
- request_decremental_authorization: nil,
2128
1264
  request_extended_authorization: nil,
2129
1265
  request_incremental_authorization: nil,
2130
1266
  request_multicapture: nil,
2131
1267
  request_overcapture: nil,
2132
- request_partial_authorization: nil,
2133
1268
  request_three_d_secure: nil,
2134
1269
  require_cvc_recollection: nil,
2135
1270
  setup_future_usage: nil,
2136
1271
  statement_descriptor_suffix_kana: nil,
2137
1272
  statement_descriptor_suffix_kanji: nil,
2138
- statement_details: nil,
2139
1273
  three_d_secure: nil
2140
1274
  )
2141
1275
  @capture_method = capture_method
@@ -2144,18 +1278,15 @@ module Stripe
2144
1278
  @mandate_options = mandate_options
2145
1279
  @moto = moto
2146
1280
  @network = network
2147
- @request_decremental_authorization = request_decremental_authorization
2148
1281
  @request_extended_authorization = request_extended_authorization
2149
1282
  @request_incremental_authorization = request_incremental_authorization
2150
1283
  @request_multicapture = request_multicapture
2151
1284
  @request_overcapture = request_overcapture
2152
- @request_partial_authorization = request_partial_authorization
2153
1285
  @request_three_d_secure = request_three_d_secure
2154
1286
  @require_cvc_recollection = require_cvc_recollection
2155
1287
  @setup_future_usage = setup_future_usage
2156
1288
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
2157
1289
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
2158
- @statement_details = statement_details
2159
1290
  @three_d_secure = three_d_secure
2160
1291
  end
2161
1292
  end
@@ -2169,6 +1300,12 @@ module Stripe
2169
1300
  @requested_priority = requested_priority
2170
1301
  end
2171
1302
  end
1303
+ # Controls when the funds are captured from the customer's account.
1304
+ #
1305
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1306
+ #
1307
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1308
+ attr_accessor :capture_method
2172
1309
  # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
2173
1310
  attr_accessor :request_extended_authorization
2174
1311
  # Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
@@ -2177,10 +1314,12 @@ module Stripe
2177
1314
  attr_accessor :routing
2178
1315
 
2179
1316
  def initialize(
1317
+ capture_method: nil,
2180
1318
  request_extended_authorization: nil,
2181
1319
  request_incremental_authorization_support: nil,
2182
1320
  routing: nil
2183
1321
  )
1322
+ @capture_method = capture_method
2184
1323
  @request_extended_authorization = request_extended_authorization
2185
1324
  @request_incremental_authorization_support = request_incremental_authorization_support
2186
1325
  @routing = routing
@@ -2326,23 +1465,6 @@ module Stripe
2326
1465
  end
2327
1466
  end
2328
1467
 
2329
- class Gopay < ::Stripe::RequestParams
2330
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2331
- #
2332
- # 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.
2333
- #
2334
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2335
- #
2336
- # 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).
2337
- #
2338
- # 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`.
2339
- attr_accessor :setup_future_usage
2340
-
2341
- def initialize(setup_future_usage: nil)
2342
- @setup_future_usage = setup_future_usage
2343
- end
2344
- end
2345
-
2346
1468
  class Grabpay < ::Stripe::RequestParams
2347
1469
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2348
1470
  #
@@ -2360,29 +1482,6 @@ module Stripe
2360
1482
  end
2361
1483
  end
2362
1484
 
2363
- class IdBankTransfer < ::Stripe::RequestParams
2364
- # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
2365
- attr_accessor :expires_after
2366
- # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2367
- attr_accessor :expires_at
2368
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2369
- #
2370
- # 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.
2371
- #
2372
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2373
- #
2374
- # 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).
2375
- #
2376
- # 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`.
2377
- attr_accessor :setup_future_usage
2378
-
2379
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
2380
- @expires_after = expires_after
2381
- @expires_at = expires_at
2382
- @setup_future_usage = setup_future_usage
2383
- end
2384
- end
2385
-
2386
1485
  class Ideal < ::Stripe::RequestParams
2387
1486
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2388
1487
  #
@@ -2784,65 +1883,12 @@ module Stripe
2784
1883
  end
2785
1884
 
2786
1885
  class Paypal < ::Stripe::RequestParams
2787
- class LineItem < ::Stripe::RequestParams
2788
- class Tax < ::Stripe::RequestParams
2789
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2790
- attr_accessor :amount
2791
- # The tax behavior for the line item.
2792
- attr_accessor :behavior
2793
-
2794
- def initialize(amount: nil, behavior: nil)
2795
- @amount = amount
2796
- @behavior = behavior
2797
- end
2798
- end
2799
- # Type of the line item.
2800
- attr_accessor :category
2801
- # Description of the line item.
2802
- attr_accessor :description
2803
- # Descriptive name of the line item.
2804
- attr_accessor :name
2805
- # Quantity of the line item. Must be a positive number.
2806
- attr_accessor :quantity
2807
- # Client facing stock keeping unit, article number or similar.
2808
- attr_accessor :sku
2809
- # The Stripe account ID of the connected account that sells the item.
2810
- attr_accessor :sold_by
2811
- # The tax information for the line item.
2812
- attr_accessor :tax
2813
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
2814
- attr_accessor :unit_amount
2815
-
2816
- def initialize(
2817
- category: nil,
2818
- description: nil,
2819
- name: nil,
2820
- quantity: nil,
2821
- sku: nil,
2822
- sold_by: nil,
2823
- tax: nil,
2824
- unit_amount: nil
2825
- )
2826
- @category = category
2827
- @description = description
2828
- @name = name
2829
- @quantity = quantity
2830
- @sku = sku
2831
- @sold_by = sold_by
2832
- @tax = tax
2833
- @unit_amount = unit_amount
2834
- end
2835
- end
2836
1886
  # Controls when the funds will be captured from the customer's account.
2837
1887
  attr_accessor :capture_method
2838
- # The line items purchased by the customer.
2839
- attr_accessor :line_items
2840
1888
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2841
1889
  attr_accessor :preferred_locale
2842
1890
  # 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.
2843
1891
  attr_accessor :reference
2844
- # 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.
2845
- attr_accessor :reference_id
2846
1892
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2847
1893
  attr_accessor :risk_correlation_id
2848
1894
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2855,140 +1901,29 @@ module Stripe
2855
1901
  #
2856
1902
  # 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`.
2857
1903
  attr_accessor :setup_future_usage
2858
- # 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.
2859
- attr_accessor :subsellers
2860
1904
 
2861
1905
  def initialize(
2862
1906
  capture_method: nil,
2863
- line_items: nil,
2864
1907
  preferred_locale: nil,
2865
1908
  reference: nil,
2866
- reference_id: nil,
2867
1909
  risk_correlation_id: nil,
2868
- setup_future_usage: nil,
2869
- subsellers: nil
1910
+ setup_future_usage: nil
2870
1911
  )
2871
1912
  @capture_method = capture_method
2872
- @line_items = line_items
2873
1913
  @preferred_locale = preferred_locale
2874
1914
  @reference = reference
2875
- @reference_id = reference_id
2876
1915
  @risk_correlation_id = risk_correlation_id
2877
1916
  @setup_future_usage = setup_future_usage
2878
- @subsellers = subsellers
2879
- end
2880
- end
2881
-
2882
- class Paypay < ::Stripe::RequestParams
2883
- # Controls when the funds are captured from the customer's account.
2884
- #
2885
- # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2886
- #
2887
- # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2888
- attr_accessor :capture_method
2889
-
2890
- def initialize(capture_method: nil)
2891
- @capture_method = capture_method
2892
- end
2893
- end
2894
-
2895
- class Payto < ::Stripe::RequestParams
2896
- class MandateOptions < ::Stripe::RequestParams
2897
- # Amount that will be collected. It is required when `amount_type` is `fixed`.
2898
- attr_accessor :amount
2899
- # 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.
2900
- attr_accessor :amount_type
2901
- # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2902
- attr_accessor :end_date
2903
- # The periodicity at which payments will be collected.
2904
- attr_accessor :payment_schedule
2905
- # 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.
2906
- attr_accessor :payments_per_period
2907
- # The purpose for which payments are made. Defaults to retail.
2908
- attr_accessor :purpose
2909
-
2910
- def initialize(
2911
- amount: nil,
2912
- amount_type: nil,
2913
- end_date: nil,
2914
- payment_schedule: nil,
2915
- payments_per_period: nil,
2916
- purpose: nil
2917
- )
2918
- @amount = amount
2919
- @amount_type = amount_type
2920
- @end_date = end_date
2921
- @payment_schedule = payment_schedule
2922
- @payments_per_period = payments_per_period
2923
- @purpose = purpose
2924
- end
2925
- end
2926
- # Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
2927
- attr_accessor :mandate_options
2928
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2929
- #
2930
- # 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.
2931
- #
2932
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2933
- #
2934
- # 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).
2935
- #
2936
- # 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`.
2937
- attr_accessor :setup_future_usage
2938
-
2939
- def initialize(mandate_options: nil, setup_future_usage: nil)
2940
- @mandate_options = mandate_options
2941
- @setup_future_usage = setup_future_usage
2942
1917
  end
2943
1918
  end
2944
1919
 
2945
1920
  class Pix < ::Stripe::RequestParams
2946
- class MandateOptions < ::Stripe::RequestParams
2947
- # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2948
- attr_accessor :amount
2949
- # Determines if the amount includes the IOF tax. Defaults to `never`.
2950
- attr_accessor :amount_includes_iof
2951
- # Type of amount. Defaults to `maximum`.
2952
- attr_accessor :amount_type
2953
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2954
- attr_accessor :currency
2955
- # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2956
- attr_accessor :end_date
2957
- # Schedule at which the future payments will be charged. Defaults to `weekly`.
2958
- attr_accessor :payment_schedule
2959
- # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2960
- attr_accessor :reference
2961
- # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
2962
- attr_accessor :start_date
2963
-
2964
- def initialize(
2965
- amount: nil,
2966
- amount_includes_iof: nil,
2967
- amount_type: nil,
2968
- currency: nil,
2969
- end_date: nil,
2970
- payment_schedule: nil,
2971
- reference: nil,
2972
- start_date: nil
2973
- )
2974
- @amount = amount
2975
- @amount_includes_iof = amount_includes_iof
2976
- @amount_type = amount_type
2977
- @currency = currency
2978
- @end_date = end_date
2979
- @payment_schedule = payment_schedule
2980
- @reference = reference
2981
- @start_date = start_date
2982
- end
2983
- end
2984
1921
  # Determines if the amount includes the IOF tax. Defaults to `never`.
2985
1922
  attr_accessor :amount_includes_iof
2986
1923
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
2987
1924
  attr_accessor :expires_after_seconds
2988
1925
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
2989
1926
  attr_accessor :expires_at
2990
- # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
2991
- attr_accessor :mandate_options
2992
1927
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2993
1928
  #
2994
1929
  # 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.
@@ -3004,13 +1939,11 @@ module Stripe
3004
1939
  amount_includes_iof: nil,
3005
1940
  expires_after_seconds: nil,
3006
1941
  expires_at: nil,
3007
- mandate_options: nil,
3008
1942
  setup_future_usage: nil
3009
1943
  )
3010
1944
  @amount_includes_iof = amount_includes_iof
3011
1945
  @expires_after_seconds = expires_after_seconds
3012
1946
  @expires_at = expires_at
3013
- @mandate_options = mandate_options
3014
1947
  @setup_future_usage = setup_future_usage
3015
1948
  end
3016
1949
  end
@@ -3032,25 +1965,6 @@ module Stripe
3032
1965
  end
3033
1966
  end
3034
1967
 
3035
- class Qris < ::Stripe::RequestParams
3036
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3037
- #
3038
- # 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.
3039
- #
3040
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3041
- #
3042
- # 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).
3043
- #
3044
- # 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`.
3045
- attr_accessor :setup_future_usage
3046
-
3047
- def initialize(setup_future_usage: nil)
3048
- @setup_future_usage = setup_future_usage
3049
- end
3050
- end
3051
-
3052
- class Rechnung < ::Stripe::RequestParams; end
3053
-
3054
1968
  class RevolutPay < ::Stripe::RequestParams
3055
1969
  # Controls when the funds are captured from the customer's account.
3056
1970
  #
@@ -3130,23 +2044,6 @@ module Stripe
3130
2044
  end
3131
2045
  end
3132
2046
 
3133
- class Shopeepay < ::Stripe::RequestParams
3134
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3135
- #
3136
- # 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.
3137
- #
3138
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3139
- #
3140
- # 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).
3141
- #
3142
- # 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`.
3143
- attr_accessor :setup_future_usage
3144
-
3145
- def initialize(setup_future_usage: nil)
3146
- @setup_future_usage = setup_future_usage
3147
- end
3148
- end
3149
-
3150
2047
  class Sofort < ::Stripe::RequestParams
3151
2048
  # Language shown to the payer on redirect.
3152
2049
  attr_accessor :preferred_language
@@ -3167,23 +2064,6 @@ module Stripe
3167
2064
  end
3168
2065
  end
3169
2066
 
3170
- class StripeBalance < ::Stripe::RequestParams
3171
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3172
- #
3173
- # 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.
3174
- #
3175
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3176
- #
3177
- # 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).
3178
- #
3179
- # 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`.
3180
- attr_accessor :setup_future_usage
3181
-
3182
- def initialize(setup_future_usage: nil)
3183
- @setup_future_usage = setup_future_usage
3184
- end
3185
- end
3186
-
3187
2067
  class Swish < ::Stripe::RequestParams
3188
2068
  # A reference for this payment to be displayed in the Swish app.
3189
2069
  attr_accessor :reference
@@ -3226,27 +2106,13 @@ module Stripe
3226
2106
  class Filters < ::Stripe::RequestParams
3227
2107
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3228
2108
  attr_accessor :account_subcategories
3229
- # ID of the institution to use to filter for selectable accounts.
3230
- attr_accessor :institution
3231
2109
 
3232
- def initialize(account_subcategories: nil, institution: nil)
2110
+ def initialize(account_subcategories: nil)
3233
2111
  @account_subcategories = account_subcategories
3234
- @institution = institution
3235
- end
3236
- end
3237
-
3238
- class ManualEntry < ::Stripe::RequestParams
3239
- # Settings for configuring manual entry of account details.
3240
- attr_accessor :mode
3241
-
3242
- def initialize(mode: nil)
3243
- @mode = mode
3244
2112
  end
3245
2113
  end
3246
2114
  # Provide filters for the linked accounts that the customer can select for the payment method.
3247
2115
  attr_accessor :filters
3248
- # Customize manual entry behavior
3249
- attr_accessor :manual_entry
3250
2116
  # 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`.
3251
2117
  attr_accessor :permissions
3252
2118
  # List of data features that you would like to retrieve upon account creation.
@@ -3254,15 +2120,8 @@ module Stripe
3254
2120
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
3255
2121
  attr_accessor :return_url
3256
2122
 
3257
- def initialize(
3258
- filters: nil,
3259
- manual_entry: nil,
3260
- permissions: nil,
3261
- prefetch: nil,
3262
- return_url: nil
3263
- )
2123
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3264
2124
  @filters = filters
3265
- @manual_entry = manual_entry
3266
2125
  @permissions = permissions
3267
2126
  @prefetch = prefetch
3268
2127
  @return_url = return_url
@@ -3407,12 +2266,8 @@ module Stripe
3407
2266
  attr_accessor :fpx
3408
2267
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
3409
2268
  attr_accessor :giropay
3410
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
3411
- attr_accessor :gopay
3412
2269
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
3413
2270
  attr_accessor :grabpay
3414
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
3415
- attr_accessor :id_bank_transfer
3416
2271
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
3417
2272
  attr_accessor :ideal
3418
2273
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -3449,18 +2304,10 @@ module Stripe
3449
2304
  attr_accessor :paynow
3450
2305
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
3451
2306
  attr_accessor :paypal
3452
- # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
3453
- attr_accessor :paypay
3454
- # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
3455
- attr_accessor :payto
3456
2307
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
3457
2308
  attr_accessor :pix
3458
2309
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
3459
2310
  attr_accessor :promptpay
3460
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
3461
- attr_accessor :qris
3462
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
3463
- attr_accessor :rechnung
3464
2311
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
3465
2312
  attr_accessor :revolut_pay
3466
2313
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -3469,12 +2316,8 @@ module Stripe
3469
2316
  attr_accessor :satispay
3470
2317
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
3471
2318
  attr_accessor :sepa_debit
3472
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
3473
- attr_accessor :shopeepay
3474
2319
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
3475
2320
  attr_accessor :sofort
3476
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
3477
- attr_accessor :stripe_balance
3478
2321
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
3479
2322
  attr_accessor :swish
3480
2323
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -3507,9 +2350,7 @@ module Stripe
3507
2350
  eps: nil,
3508
2351
  fpx: nil,
3509
2352
  giropay: nil,
3510
- gopay: nil,
3511
2353
  grabpay: nil,
3512
- id_bank_transfer: nil,
3513
2354
  ideal: nil,
3514
2355
  interac_present: nil,
3515
2356
  kakao_pay: nil,
@@ -3528,19 +2369,13 @@ module Stripe
3528
2369
  payco: nil,
3529
2370
  paynow: nil,
3530
2371
  paypal: nil,
3531
- paypay: nil,
3532
- payto: nil,
3533
2372
  pix: nil,
3534
2373
  promptpay: nil,
3535
- qris: nil,
3536
- rechnung: nil,
3537
2374
  revolut_pay: nil,
3538
2375
  samsung_pay: nil,
3539
2376
  satispay: nil,
3540
2377
  sepa_debit: nil,
3541
- shopeepay: nil,
3542
2378
  sofort: nil,
3543
- stripe_balance: nil,
3544
2379
  swish: nil,
3545
2380
  twint: nil,
3546
2381
  us_bank_account: nil,
@@ -3567,9 +2402,7 @@ module Stripe
3567
2402
  @eps = eps
3568
2403
  @fpx = fpx
3569
2404
  @giropay = giropay
3570
- @gopay = gopay
3571
2405
  @grabpay = grabpay
3572
- @id_bank_transfer = id_bank_transfer
3573
2406
  @ideal = ideal
3574
2407
  @interac_present = interac_present
3575
2408
  @kakao_pay = kakao_pay
@@ -3588,19 +2421,13 @@ module Stripe
3588
2421
  @payco = payco
3589
2422
  @paynow = paynow
3590
2423
  @paypal = paypal
3591
- @paypay = paypay
3592
- @payto = payto
3593
2424
  @pix = pix
3594
2425
  @promptpay = promptpay
3595
- @qris = qris
3596
- @rechnung = rechnung
3597
2426
  @revolut_pay = revolut_pay
3598
2427
  @samsung_pay = samsung_pay
3599
2428
  @satispay = satispay
3600
2429
  @sepa_debit = sepa_debit
3601
- @shopeepay = shopeepay
3602
2430
  @sofort = sofort
3603
- @stripe_balance = stripe_balance
3604
2431
  @swish = swish
3605
2432
  @twint = twint
3606
2433
  @us_bank_account = us_bank_account
@@ -3715,12 +2542,6 @@ module Stripe
3715
2542
  #
3716
2543
  # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
3717
2544
  attr_accessor :customer
3718
- # ID of the Account this PaymentIntent belongs to, if one exists.
3719
- #
3720
- # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3721
- #
3722
- # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
3723
- attr_accessor :customer_account
3724
2545
  # An arbitrary string attached to the object. Often useful for displaying to users.
3725
2546
  attr_accessor :description
3726
2547
  # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -3729,10 +2550,6 @@ module Stripe
3729
2550
  attr_accessor :excluded_payment_method_types
3730
2551
  # Specifies which fields in the response should be expanded.
3731
2552
  attr_accessor :expand
3732
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3733
- attr_accessor :fx_quote
3734
- # Automations to be run during the PaymentIntent lifecycle
3735
- attr_accessor :hooks
3736
2553
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
3737
2554
  attr_accessor :mandate
3738
2555
  # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -3767,8 +2584,6 @@ module Stripe
3767
2584
  attr_accessor :receipt_email
3768
2585
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
3769
2586
  attr_accessor :return_url
3770
- # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3771
- attr_accessor :secret_key_confirmation
3772
2587
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3773
2588
  #
3774
2589
  # 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.
@@ -3804,13 +2619,10 @@ module Stripe
3804
2619
  confirmation_token: nil,
3805
2620
  currency: nil,
3806
2621
  customer: nil,
3807
- customer_account: nil,
3808
2622
  description: nil,
3809
2623
  error_on_requires_action: nil,
3810
2624
  excluded_payment_method_types: nil,
3811
2625
  expand: nil,
3812
- fx_quote: nil,
3813
- hooks: nil,
3814
2626
  mandate: nil,
3815
2627
  mandate_data: nil,
3816
2628
  metadata: nil,
@@ -3825,7 +2637,6 @@ module Stripe
3825
2637
  radar_options: nil,
3826
2638
  receipt_email: nil,
3827
2639
  return_url: nil,
3828
- secret_key_confirmation: nil,
3829
2640
  setup_future_usage: nil,
3830
2641
  shipping: nil,
3831
2642
  statement_descriptor: nil,
@@ -3844,13 +2655,10 @@ module Stripe
3844
2655
  @confirmation_token = confirmation_token
3845
2656
  @currency = currency
3846
2657
  @customer = customer
3847
- @customer_account = customer_account
3848
2658
  @description = description
3849
2659
  @error_on_requires_action = error_on_requires_action
3850
2660
  @excluded_payment_method_types = excluded_payment_method_types
3851
2661
  @expand = expand
3852
- @fx_quote = fx_quote
3853
- @hooks = hooks
3854
2662
  @mandate = mandate
3855
2663
  @mandate_data = mandate_data
3856
2664
  @metadata = metadata
@@ -3865,7 +2673,6 @@ module Stripe
3865
2673
  @radar_options = radar_options
3866
2674
  @receipt_email = receipt_email
3867
2675
  @return_url = return_url
3868
- @secret_key_confirmation = secret_key_confirmation
3869
2676
  @setup_future_usage = setup_future_usage
3870
2677
  @shipping = shipping
3871
2678
  @statement_descriptor = statement_descriptor