stripe 16.1.0.pre.beta.1 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -35
  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 -236
  6. data/lib/stripe/object_types.rb +0 -58
  7. data/lib/stripe/params/account_create_params.rb +1 -300
  8. data/lib/stripe/params/account_session_create_params.rb +1 -226
  9. data/lib/stripe/params/account_update_params.rb +0 -262
  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 -709
  16. data/lib/stripe/params/charge_update_params.rb +0 -709
  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 +1 -4
  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 -46
  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_payment_list_params.rb +1 -4
  39. data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
  40. data/lib/stripe/params/invoice_update_params.rb +2 -108
  41. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  42. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  43. data/lib/stripe/params/payment_intent_capture_params.rb +0 -895
  44. data/lib/stripe/params/payment_intent_confirm_params.rb +18 -1384
  45. data/lib/stripe/params/payment_intent_create_params.rb +16 -1390
  46. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -223
  47. data/lib/stripe/params/payment_intent_list_params.rb +0 -4
  48. data/lib/stripe/params/payment_intent_update_params.rb +4 -1409
  49. data/lib/stripe/params/payment_method_attach_params.rb +1 -4
  50. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -126
  51. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -126
  52. data/lib/stripe/params/payment_method_create_params.rb +0 -97
  53. data/lib/stripe/params/payment_method_update_params.rb +0 -19
  54. data/lib/stripe/params/price_update_params.rb +0 -19
  55. data/lib/stripe/params/promotion_code_create_params.rb +0 -4
  56. data/lib/stripe/params/promotion_code_list_params.rb +0 -4
  57. data/lib/stripe/params/quote_create_params.rb +3 -805
  58. data/lib/stripe/params/quote_list_params.rb +0 -8
  59. data/lib/stripe/params/quote_update_params.rb +4 -813
  60. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -225
  61. data/lib/stripe/params/setup_intent_create_params.rb +3 -231
  62. data/lib/stripe/params/setup_intent_list_params.rb +0 -4
  63. data/lib/stripe/params/setup_intent_update_params.rb +3 -231
  64. data/lib/stripe/params/subscription_create_params.rb +5 -259
  65. data/lib/stripe/params/subscription_item_create_params.rb +2 -46
  66. data/lib/stripe/params/subscription_item_update_params.rb +1 -29
  67. data/lib/stripe/params/subscription_list_params.rb +0 -4
  68. data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
  69. data/lib/stripe/params/subscription_schedule_list_params.rb +0 -4
  70. data/lib/stripe/params/subscription_schedule_update_params.rb +5 -163
  71. data/lib/stripe/params/subscription_update_params.rb +4 -238
  72. data/lib/stripe/params/tax_id_create_params.rb +1 -4
  73. data/lib/stripe/params/tax_id_list_params.rb +1 -4
  74. data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
  75. data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
  76. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -97
  77. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  78. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  79. data/lib/stripe/params/transfer_create_params.rb +0 -4
  80. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  81. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  82. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  83. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  84. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  85. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  86. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  87. data/lib/stripe/params.rb +0 -169
  88. data/lib/stripe/request_options.rb +1 -3
  89. data/lib/stripe/resources/account.rb +1 -166
  90. data/lib/stripe/resources/account_session.rb +0 -81
  91. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
  92. data/lib/stripe/resources/billing/credit_grant.rb +0 -2
  93. data/lib/stripe/resources/billing_portal/session.rb +0 -2
  94. data/lib/stripe/resources/card.rb +0 -2
  95. data/lib/stripe/resources/cash_balance.rb +0 -2
  96. data/lib/stripe/resources/charge.rb +1 -234
  97. data/lib/stripe/resources/checkout/session.rb +4 -154
  98. data/lib/stripe/resources/confirmation_token.rb +0 -155
  99. data/lib/stripe/resources/coupon.rb +1 -26
  100. data/lib/stripe/resources/credit_note.rb +0 -2
  101. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  102. data/lib/stripe/resources/customer.rb +0 -2
  103. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  104. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  105. data/lib/stripe/resources/customer_session.rb +0 -2
  106. data/lib/stripe/resources/discount.rb +0 -2
  107. data/lib/stripe/resources/dispute.rb +0 -22
  108. data/lib/stripe/resources/event.rb +1 -64
  109. data/lib/stripe/resources/financial_connections/account.rb +0 -27
  110. data/lib/stripe/resources/financial_connections/session.rb +1 -67
  111. data/lib/stripe/resources/identity/verification_session.rb +0 -2
  112. data/lib/stripe/resources/invoice.rb +1 -152
  113. data/lib/stripe/resources/invoice_item.rb +0 -4
  114. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  115. data/lib/stripe/resources/invoice_payment.rb +0 -2
  116. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  117. data/lib/stripe/resources/line_item.rb +1 -68
  118. data/lib/stripe/resources/mandate.rb +0 -71
  119. data/lib/stripe/resources/payment_intent.rb +4 -848
  120. data/lib/stripe/resources/payment_method.rb +0 -157
  121. data/lib/stripe/resources/payment_method_configuration.rb +0 -204
  122. data/lib/stripe/resources/price.rb +0 -20
  123. data/lib/stripe/resources/promotion_code.rb +0 -2
  124. data/lib/stripe/resources/quote.rb +2 -571
  125. data/lib/stripe/resources/refund.rb +0 -18
  126. data/lib/stripe/resources/setup_attempt.rb +0 -63
  127. data/lib/stripe/resources/setup_intent.rb +1 -132
  128. data/lib/stripe/resources/source.rb +0 -38
  129. data/lib/stripe/resources/subscription.rb +0 -232
  130. data/lib/stripe/resources/subscription_item.rb +1 -20
  131. data/lib/stripe/resources/subscription_schedule.rb +3 -198
  132. data/lib/stripe/resources/tax_id.rb +0 -4
  133. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  134. data/lib/stripe/resources/terminal/reader.rb +0 -8
  135. data/lib/stripe/resources/transfer.rb +0 -2
  136. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  137. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  138. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  139. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  140. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  141. data/lib/stripe/resources.rb +0 -116
  142. data/lib/stripe/services/billing_service.rb +1 -2
  143. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  144. data/lib/stripe/services/financial_connections_service.rb +1 -2
  145. data/lib/stripe/services/issuing_service.rb +1 -5
  146. data/lib/stripe/services/mandate_service.rb +0 -5
  147. data/lib/stripe/services/payment_intent_service.rb +0 -44
  148. data/lib/stripe/services/quote_service.rb +1 -49
  149. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  150. data/lib/stripe/services/subscription_service.rb +0 -11
  151. data/lib/stripe/services/tax_service.rb +1 -3
  152. data/lib/stripe/services/terminal_service.rb +1 -3
  153. data/lib/stripe/services/v1_services.rb +1 -10
  154. data/lib/stripe/services/v2/billing_service.rb +1 -5
  155. data/lib/stripe/services/v2/core_service.rb +1 -4
  156. data/lib/stripe/services/v2_services.rb +1 -4
  157. data/lib/stripe/services.rb +0 -61
  158. data/lib/stripe/stripe_client.rb +1 -1
  159. data/lib/stripe/stripe_configuration.rb +2 -9
  160. data/lib/stripe/stripe_object.rb +15 -9
  161. data/lib/stripe/util.rb +3 -9
  162. data/lib/stripe/version.rb +1 -1
  163. data/lib/stripe.rb +0 -53
  164. data/rbi/stripe.rbi +98094 -162674
  165. metadata +5 -351
  166. data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +0 -61
  167. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
  168. data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
  169. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
  170. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
  171. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
  172. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
  173. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
  174. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
  175. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  176. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  177. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
  178. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
  179. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
  180. data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
  181. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
  182. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
  183. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
  184. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
  185. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  186. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  187. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  188. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  189. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  190. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  191. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  192. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  193. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  194. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  195. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  196. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  197. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  198. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  203. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  205. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  210. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  220. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
  221. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
  222. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
  223. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
  224. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
  225. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  226. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
  227. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  228. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  229. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  230. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  231. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  232. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  233. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  234. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  235. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  236. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  237. data/lib/stripe/params/external_account_create_params.rb +0 -134
  238. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  239. data/lib/stripe/params/external_account_list_params.rb +0 -25
  240. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  241. data/lib/stripe/params/external_account_update_params.rb +0 -91
  242. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  243. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  244. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  245. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  246. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  247. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  248. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  249. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  250. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  251. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  252. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  253. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  254. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  255. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  257. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  258. data/lib/stripe/params/mandate_list_params.rb +0 -39
  259. data/lib/stripe/params/margin_create_params.rb +0 -25
  260. data/lib/stripe/params/margin_list_params.rb +0 -25
  261. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  262. data/lib/stripe/params/margin_update_params.rb +0 -22
  263. data/lib/stripe/params/order_cancel_params.rb +0 -13
  264. data/lib/stripe/params/order_create_params.rb +0 -1124
  265. data/lib/stripe/params/order_line_item_list_params.rb +0 -22
  266. data/lib/stripe/params/order_list_line_items_params.rb +0 -22
  267. data/lib/stripe/params/order_list_params.rb +0 -25
  268. data/lib/stripe/params/order_reopen_params.rb +0 -13
  269. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  270. data/lib/stripe/params/order_submit_params.rb +0 -16
  271. data/lib/stripe/params/order_update_params.rb +0 -1128
  272. data/lib/stripe/params/payment_attempt_record_list_params.rb +0 -19
  273. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +0 -13
  274. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +0 -22
  275. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
  276. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  277. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +0 -19
  278. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +0 -19
  279. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +0 -19
  280. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +0 -93
  281. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +0 -186
  282. data/lib/stripe/params/payment_record_report_payment_params.rb +0 -252
  283. data/lib/stripe/params/payment_record_retrieve_params.rb +0 -13
  284. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  285. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  286. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  287. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  288. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  290. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  291. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  292. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  293. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  294. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  295. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  296. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  297. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  298. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  299. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  300. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
  301. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
  302. data/lib/stripe/params/tax/association_find_params.rb +0 -18
  303. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  304. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  305. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +0 -43
  307. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  308. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  309. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  310. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  311. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  312. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  313. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  314. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  315. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  316. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  317. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  318. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  319. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
  320. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  321. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  322. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
  323. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  324. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  325. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  326. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  327. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  328. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  329. data/lib/stripe/params/v2/core/account_close_params.rb +0 -17
  330. data/lib/stripe/params/v2/core/account_create_params.rb +0 -2217
  331. data/lib/stripe/params/v2/core/account_link_create_params.rb +0 -101
  332. data/lib/stripe/params/v2/core/account_list_params.rb +0 -20
  333. data/lib/stripe/params/v2/core/account_retrieve_params.rb +0 -17
  334. data/lib/stripe/params/v2/core/account_update_params.rb +0 -2245
  335. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +0 -493
  336. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +0 -12
  337. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +0 -19
  338. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +0 -12
  339. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +0 -493
  340. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  341. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  342. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
  343. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  344. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  345. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  346. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
  347. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  348. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  349. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  350. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  351. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  352. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  353. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  354. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  355. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  356. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  357. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  358. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  359. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  360. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  361. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  362. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
  363. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  364. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  365. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  366. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  367. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  368. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
  369. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  370. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  371. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
  372. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  374. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  375. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  376. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  377. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  378. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  379. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  380. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  381. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  382. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  383. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  384. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  385. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  386. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  388. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  389. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
  390. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
  391. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
  392. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
  393. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
  394. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  395. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  396. data/lib/stripe/resources/account_notice.rb +0 -94
  397. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  398. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  399. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  400. data/lib/stripe/resources/capital/financing_summary.rb +0 -79
  401. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  402. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  403. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  404. data/lib/stripe/resources/fx_quote.rb +0 -147
  405. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  406. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  407. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  408. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  409. data/lib/stripe/resources/margin.rb +0 -64
  410. data/lib/stripe/resources/order.rb +0 -987
  411. data/lib/stripe/resources/payment_attempt_record.rb +0 -2102
  412. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -128
  413. data/lib/stripe/resources/payment_record.rb +0 -2208
  414. data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
  415. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  416. data/lib/stripe/resources/quote_line.rb +0 -521
  417. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
  418. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
  419. data/lib/stripe/resources/tax/association.rb +0 -86
  420. data/lib/stripe/resources/tax/form.rb +0 -264
  421. data/lib/stripe/resources/terminal/onboarding_link.rb +0 -71
  422. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  423. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  424. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
  425. data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
  426. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
  427. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
  428. data/lib/stripe/resources/v2/billing/profile.rb +0 -46
  429. data/lib/stripe/resources/v2/core/account.rb +0 -3851
  430. data/lib/stripe/resources/v2/core/account_link.rb +0 -123
  431. data/lib/stripe/resources/v2/core/account_person.rb +0 -477
  432. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
  433. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -47
  434. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
  435. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
  436. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  437. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  438. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
  439. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
  440. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
  441. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  442. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  443. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  444. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
  445. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
  446. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
  447. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  448. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
  449. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  450. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
  451. data/lib/stripe/services/account_notice_service.rb +0 -39
  452. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  453. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  454. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  455. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  456. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  457. data/lib/stripe/services/capital_service.rb +0 -15
  458. data/lib/stripe/services/external_account_service.rb +0 -68
  459. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  460. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  461. data/lib/stripe/services/fx_quote_service.rb +0 -27
  462. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  463. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  464. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  465. data/lib/stripe/services/margin_service.rb +0 -50
  466. data/lib/stripe/services/order_line_item_service.rb +0 -17
  467. data/lib/stripe/services/order_service.rb +0 -78
  468. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  469. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +0 -17
  470. data/lib/stripe/services/payment_record_service.rb +0 -89
  471. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  472. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  473. data/lib/stripe/services/privacy_service.rb +0 -13
  474. data/lib/stripe/services/quote_line_service.rb +0 -17
  475. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  476. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  477. data/lib/stripe/services/tax/association_service.rb +0 -19
  478. data/lib/stripe/services/tax/form_service.rb +0 -37
  479. data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -19
  480. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  481. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  482. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  483. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  484. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
  485. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  486. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  487. data/lib/stripe/services/v2/core/account_link_service.rb +0 -21
  488. data/lib/stripe/services/v2/core/account_service.rb +0 -76
  489. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -67
  490. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -74
  491. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -68
  492. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  493. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  494. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -59
  495. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  496. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  497. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  498. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  499. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
  500. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  501. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
  502. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  503. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  504. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  505. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  506. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  507. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  508. data/lib/stripe/services/v2/payment_service.rb +0 -15
  509. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
  510. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  511. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
@@ -3,159 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentIntentCreateParams < Stripe::RequestParams
6
- class AmountDetails < Stripe::RequestParams
7
- class LineItem < Stripe::RequestParams
8
- class PaymentMethodOptions < Stripe::RequestParams
9
- class Card < Stripe::RequestParams
10
- # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
11
- attr_accessor :commodity_code
12
-
13
- def initialize(commodity_code: nil)
14
- @commodity_code = commodity_code
15
- end
16
- end
17
-
18
- class CardPresent < Stripe::RequestParams
19
- # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
20
- attr_accessor :commodity_code
21
-
22
- def initialize(commodity_code: nil)
23
- @commodity_code = commodity_code
24
- end
25
- end
26
-
27
- class Klarna < Stripe::RequestParams
28
- # URL to an image for the product. Max length, 4096 characters.
29
- attr_accessor :image_url
30
- # URL to the product page. Max length, 4096 characters.
31
- attr_accessor :product_url
32
- # Reference for the subscription this line item is for.
33
- attr_accessor :subscription_reference
34
-
35
- def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
36
- @image_url = image_url
37
- @product_url = product_url
38
- @subscription_reference = subscription_reference
39
- end
40
- end
41
-
42
- class Paypal < Stripe::RequestParams
43
- # Type of the line item.
44
- attr_accessor :category
45
- # Description of the line item.
46
- attr_accessor :description
47
- # The Stripe account ID of the connected account that sells the item.
48
- attr_accessor :sold_by
49
-
50
- def initialize(category: nil, description: nil, sold_by: nil)
51
- @category = category
52
- @description = description
53
- @sold_by = sold_by
54
- end
55
- end
56
- # This sub-hash contains line item details that are specific to `card` payment method."
57
- attr_accessor :card
58
- # This sub-hash contains line item details that are specific to `card_present` payment method."
59
- attr_accessor :card_present
60
- # This sub-hash contains line item details that are specific to `klarna` payment method."
61
- attr_accessor :klarna
62
- # This sub-hash contains line item details that are specific to `paypal` payment method."
63
- attr_accessor :paypal
64
-
65
- def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
66
- @card = card
67
- @card_present = card_present
68
- @klarna = klarna
69
- @paypal = paypal
70
- end
71
- end
72
-
73
- class Tax < Stripe::RequestParams
74
- # The total tax on an item. Non-negative integer.
75
- attr_accessor :total_tax_amount
76
-
77
- def initialize(total_tax_amount: nil)
78
- @total_tax_amount = total_tax_amount
79
- end
80
- end
81
- # The amount an item was discounted for. Positive integer.
82
- attr_accessor :discount_amount
83
- # Payment method-specific information for line items.
84
- attr_accessor :payment_method_options
85
- # Unique identifier of the product. At most 12 characters long.
86
- attr_accessor :product_code
87
- # Name of the product. At most 100 characters long.
88
- attr_accessor :product_name
89
- # Number of items of the product. Positive integer.
90
- attr_accessor :quantity
91
- # Contains information about the tax on the item.
92
- attr_accessor :tax
93
- # Cost of the product. Non-negative integer.
94
- attr_accessor :unit_cost
95
- # A unit of measure for the line item, such as gallons, feet, meters, etc.
96
- attr_accessor :unit_of_measure
97
-
98
- def initialize(
99
- discount_amount: nil,
100
- payment_method_options: nil,
101
- product_code: nil,
102
- product_name: nil,
103
- quantity: nil,
104
- tax: nil,
105
- unit_cost: nil,
106
- unit_of_measure: nil
107
- )
108
- @discount_amount = discount_amount
109
- @payment_method_options = payment_method_options
110
- @product_code = product_code
111
- @product_name = product_name
112
- @quantity = quantity
113
- @tax = tax
114
- @unit_cost = unit_cost
115
- @unit_of_measure = unit_of_measure
116
- end
117
- end
118
-
119
- class Shipping < Stripe::RequestParams
120
- # Portion of the amount that is for shipping.
121
- attr_accessor :amount
122
- # The postal code that represents the shipping source.
123
- attr_accessor :from_postal_code
124
- # The postal code that represents the shipping destination.
125
- attr_accessor :to_postal_code
126
-
127
- def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
128
- @amount = amount
129
- @from_postal_code = from_postal_code
130
- @to_postal_code = to_postal_code
131
- end
132
- end
133
-
134
- class Tax < Stripe::RequestParams
135
- # Total portion of the amount that is for tax.
136
- attr_accessor :total_tax_amount
137
-
138
- def initialize(total_tax_amount: nil)
139
- @total_tax_amount = total_tax_amount
140
- end
141
- end
142
- # The total discount applied on the transaction.
143
- attr_accessor :discount_amount
144
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
145
- attr_accessor :line_items
146
- # Contains information about the shipping portion of the amount.
147
- attr_accessor :shipping
148
- # Contains information about the tax portion of the amount.
149
- attr_accessor :tax
150
-
151
- def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
152
- @discount_amount = discount_amount
153
- @line_items = line_items
154
- @shipping = shipping
155
- @tax = tax
156
- end
157
- end
158
-
159
6
  class AutomaticPaymentMethods < Stripe::RequestParams
160
7
  # Controls whether this PaymentIntent will accept redirect-based payment methods.
161
8
  #
@@ -170,31 +17,6 @@ module Stripe
170
17
  end
171
18
  end
172
19
 
173
- class Hooks < Stripe::RequestParams
174
- class Inputs < Stripe::RequestParams
175
- class Tax < Stripe::RequestParams
176
- # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
177
- attr_accessor :calculation
178
-
179
- def initialize(calculation: nil)
180
- @calculation = calculation
181
- end
182
- end
183
- # Tax arguments for automations
184
- attr_accessor :tax
185
-
186
- def initialize(tax: nil)
187
- @tax = tax
188
- end
189
- end
190
- # Arguments passed in automations
191
- attr_accessor :inputs
192
-
193
- def initialize(inputs: nil)
194
- @inputs = inputs
195
- end
196
- end
197
-
198
20
  class MandateData < Stripe::RequestParams
199
21
  class CustomerAcceptance < Stripe::RequestParams
200
22
  class Offline < Stripe::RequestParams; end
@@ -215,727 +37,22 @@ module Stripe
215
37
  # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
216
38
  attr_accessor :offline
217
39
  # If this is a Mandate accepted online, this hash contains details about the online acceptance.
218
- attr_accessor :online
219
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
220
- attr_accessor :type
221
-
222
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
223
- @accepted_at = accepted_at
224
- @offline = offline
225
- @online = online
226
- @type = type
227
- end
228
- end
229
- # This hash contains details about the customer acceptance of the Mandate.
230
- attr_accessor :customer_acceptance
231
-
232
- def initialize(customer_acceptance: nil)
233
- @customer_acceptance = customer_acceptance
234
- end
235
- end
236
-
237
- class PaymentDetails < Stripe::RequestParams
238
- class CarRental < Stripe::RequestParams
239
- class Affiliate < Stripe::RequestParams
240
- # The name of the affiliate that originated the purchase.
241
- attr_accessor :name
242
-
243
- def initialize(name: nil)
244
- @name = name
245
- end
246
- end
247
-
248
- class Delivery < Stripe::RequestParams
249
- class Recipient < Stripe::RequestParams
250
- # The email of the recipient the ticket is delivered to.
251
- attr_accessor :email
252
- # The name of the recipient the ticket is delivered to.
253
- attr_accessor :name
254
- # The phone number of the recipient the ticket is delivered to.
255
- attr_accessor :phone
256
-
257
- def initialize(email: nil, name: nil, phone: nil)
258
- @email = email
259
- @name = name
260
- @phone = phone
261
- end
262
- end
263
- # The delivery method for the payment
264
- attr_accessor :mode
265
- # Details of the recipient.
266
- attr_accessor :recipient
267
-
268
- def initialize(mode: nil, recipient: nil)
269
- @mode = mode
270
- @recipient = recipient
271
- end
272
- end
273
-
274
- class Distance < Stripe::RequestParams
275
- # Distance traveled.
276
- attr_accessor :amount
277
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
278
- attr_accessor :unit
279
-
280
- def initialize(amount: nil, unit: nil)
281
- @amount = amount
282
- @unit = unit
283
- end
284
- end
285
-
286
- class Driver < Stripe::RequestParams
287
- # Driver's identification number.
288
- attr_accessor :driver_identification_number
289
- # Driver's tax number.
290
- attr_accessor :driver_tax_number
291
- # Full name of the person or entity on the car reservation.
292
- attr_accessor :name
293
-
294
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
295
- @driver_identification_number = driver_identification_number
296
- @driver_tax_number = driver_tax_number
297
- @name = name
298
- end
299
- end
300
-
301
- class PickupAddress < Stripe::RequestParams
302
- # City, district, suburb, town, or village.
303
- attr_accessor :city
304
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
305
- attr_accessor :country
306
- # Address line 1, such as the street, PO Box, or company name.
307
- attr_accessor :line1
308
- # Address line 2, such as the apartment, suite, unit, or building.
309
- attr_accessor :line2
310
- # ZIP or postal code.
311
- attr_accessor :postal_code
312
- # State, county, province, or region.
313
- attr_accessor :state
314
-
315
- def initialize(
316
- city: nil,
317
- country: nil,
318
- line1: nil,
319
- line2: nil,
320
- postal_code: nil,
321
- state: nil
322
- )
323
- @city = city
324
- @country = country
325
- @line1 = line1
326
- @line2 = line2
327
- @postal_code = postal_code
328
- @state = state
329
- end
330
- end
331
-
332
- class ReturnAddress < Stripe::RequestParams
333
- # City, district, suburb, town, or village.
334
- attr_accessor :city
335
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
336
- attr_accessor :country
337
- # Address line 1, such as the street, PO Box, or company name.
338
- attr_accessor :line1
339
- # Address line 2, such as the apartment, suite, unit, or building.
340
- attr_accessor :line2
341
- # ZIP or postal code.
342
- attr_accessor :postal_code
343
- # State, county, province, or region.
344
- attr_accessor :state
345
-
346
- def initialize(
347
- city: nil,
348
- country: nil,
349
- line1: nil,
350
- line2: nil,
351
- postal_code: nil,
352
- state: nil
353
- )
354
- @city = city
355
- @country = country
356
- @line1 = line1
357
- @line2 = line2
358
- @postal_code = postal_code
359
- @state = state
360
- end
361
- end
362
- # Affiliate details for this purchase.
363
- attr_accessor :affiliate
364
- # The booking number associated with the car rental.
365
- attr_accessor :booking_number
366
- # Class code of the car.
367
- attr_accessor :car_class_code
368
- # Make of the car.
369
- attr_accessor :car_make
370
- # Model of the car.
371
- attr_accessor :car_model
372
- # The name of the rental car company.
373
- attr_accessor :company
374
- # The customer service phone number of the car rental company.
375
- attr_accessor :customer_service_phone_number
376
- # Number of days the car is being rented.
377
- attr_accessor :days_rented
378
- # Delivery details for this purchase.
379
- attr_accessor :delivery
380
- # The details of the distance traveled during the rental period.
381
- attr_accessor :distance
382
- # The details of the passengers in the travel reservation
383
- attr_accessor :drivers
384
- # List of additional charges being billed.
385
- attr_accessor :extra_charges
386
- # Indicates if the customer did not keep nor cancel their booking.
387
- attr_accessor :no_show
388
- # Car pick-up address.
389
- attr_accessor :pickup_address
390
- # Car pick-up time. Measured in seconds since the Unix epoch.
391
- attr_accessor :pickup_at
392
- # Name of the pickup location.
393
- attr_accessor :pickup_location_name
394
- # Rental rate.
395
- attr_accessor :rate_amount
396
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
397
- attr_accessor :rate_interval
398
- # The name of the person or entity renting the car.
399
- attr_accessor :renter_name
400
- # Car return address.
401
- attr_accessor :return_address
402
- # Car return time. Measured in seconds since the Unix epoch.
403
- attr_accessor :return_at
404
- # Name of the return location.
405
- attr_accessor :return_location_name
406
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
407
- attr_accessor :tax_exempt
408
- # The vehicle identification number.
409
- attr_accessor :vehicle_identification_number
410
-
411
- def initialize(
412
- affiliate: nil,
413
- booking_number: nil,
414
- car_class_code: nil,
415
- car_make: nil,
416
- car_model: nil,
417
- company: nil,
418
- customer_service_phone_number: nil,
419
- days_rented: nil,
420
- delivery: nil,
421
- distance: nil,
422
- drivers: nil,
423
- extra_charges: nil,
424
- no_show: nil,
425
- pickup_address: nil,
426
- pickup_at: nil,
427
- pickup_location_name: nil,
428
- rate_amount: nil,
429
- rate_interval: nil,
430
- renter_name: nil,
431
- return_address: nil,
432
- return_at: nil,
433
- return_location_name: nil,
434
- tax_exempt: nil,
435
- vehicle_identification_number: nil
436
- )
437
- @affiliate = affiliate
438
- @booking_number = booking_number
439
- @car_class_code = car_class_code
440
- @car_make = car_make
441
- @car_model = car_model
442
- @company = company
443
- @customer_service_phone_number = customer_service_phone_number
444
- @days_rented = days_rented
445
- @delivery = delivery
446
- @distance = distance
447
- @drivers = drivers
448
- @extra_charges = extra_charges
449
- @no_show = no_show
450
- @pickup_address = pickup_address
451
- @pickup_at = pickup_at
452
- @pickup_location_name = pickup_location_name
453
- @rate_amount = rate_amount
454
- @rate_interval = rate_interval
455
- @renter_name = renter_name
456
- @return_address = return_address
457
- @return_at = return_at
458
- @return_location_name = return_location_name
459
- @tax_exempt = tax_exempt
460
- @vehicle_identification_number = vehicle_identification_number
461
- end
462
- end
463
-
464
- class EventDetails < Stripe::RequestParams
465
- class Address < Stripe::RequestParams
466
- # City, district, suburb, town, or village.
467
- attr_accessor :city
468
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
469
- attr_accessor :country
470
- # Address line 1, such as the street, PO Box, or company name.
471
- attr_accessor :line1
472
- # Address line 2, such as the apartment, suite, unit, or building.
473
- attr_accessor :line2
474
- # ZIP or postal code.
475
- attr_accessor :postal_code
476
- # State, county, province, or region.
477
- attr_accessor :state
478
-
479
- def initialize(
480
- city: nil,
481
- country: nil,
482
- line1: nil,
483
- line2: nil,
484
- postal_code: nil,
485
- state: nil
486
- )
487
- @city = city
488
- @country = country
489
- @line1 = line1
490
- @line2 = line2
491
- @postal_code = postal_code
492
- @state = state
493
- end
494
- end
495
-
496
- class Affiliate < Stripe::RequestParams
497
- # The name of the affiliate that originated the purchase.
498
- attr_accessor :name
499
-
500
- def initialize(name: nil)
501
- @name = name
502
- end
503
- end
504
-
505
- class Delivery < Stripe::RequestParams
506
- class Recipient < Stripe::RequestParams
507
- # The email of the recipient the ticket is delivered to.
508
- attr_accessor :email
509
- # The name of the recipient the ticket is delivered to.
510
- attr_accessor :name
511
- # The phone number of the recipient the ticket is delivered to.
512
- attr_accessor :phone
513
-
514
- def initialize(email: nil, name: nil, phone: nil)
515
- @email = email
516
- @name = name
517
- @phone = phone
518
- end
519
- end
520
- # The delivery method for the payment
521
- attr_accessor :mode
522
- # Details of the recipient.
523
- attr_accessor :recipient
524
-
525
- def initialize(mode: nil, recipient: nil)
526
- @mode = mode
527
- @recipient = recipient
528
- end
529
- end
530
- # Indicates if the tickets are digitally checked when entering the venue.
531
- attr_accessor :access_controlled_venue
532
- # The event location's address.
533
- attr_accessor :address
534
- # Affiliate details for this purchase.
535
- attr_accessor :affiliate
536
- # The name of the company
537
- attr_accessor :company
538
- # Delivery details for this purchase.
539
- attr_accessor :delivery
540
- # Event end time. Measured in seconds since the Unix epoch.
541
- attr_accessor :ends_at
542
- # Type of the event entertainment (concert, sports event etc)
543
- attr_accessor :genre
544
- # The name of the event.
545
- attr_accessor :name
546
- # Event start time. Measured in seconds since the Unix epoch.
547
- attr_accessor :starts_at
548
-
549
- def initialize(
550
- access_controlled_venue: nil,
551
- address: nil,
552
- affiliate: nil,
553
- company: nil,
554
- delivery: nil,
555
- ends_at: nil,
556
- genre: nil,
557
- name: nil,
558
- starts_at: nil
559
- )
560
- @access_controlled_venue = access_controlled_venue
561
- @address = address
562
- @affiliate = affiliate
563
- @company = company
564
- @delivery = delivery
565
- @ends_at = ends_at
566
- @genre = genre
567
- @name = name
568
- @starts_at = starts_at
569
- end
570
- end
571
-
572
- class Flight < Stripe::RequestParams
573
- class Affiliate < Stripe::RequestParams
574
- # The name of the affiliate that originated the purchase.
575
- attr_accessor :name
576
-
577
- def initialize(name: nil)
578
- @name = name
579
- end
580
- end
581
-
582
- class Delivery < Stripe::RequestParams
583
- class Recipient < Stripe::RequestParams
584
- # The email of the recipient the ticket is delivered to.
585
- attr_accessor :email
586
- # The name of the recipient the ticket is delivered to.
587
- attr_accessor :name
588
- # The phone number of the recipient the ticket is delivered to.
589
- attr_accessor :phone
590
-
591
- def initialize(email: nil, name: nil, phone: nil)
592
- @email = email
593
- @name = name
594
- @phone = phone
595
- end
596
- end
597
- # The delivery method for the payment
598
- attr_accessor :mode
599
- # Details of the recipient.
600
- attr_accessor :recipient
601
-
602
- def initialize(mode: nil, recipient: nil)
603
- @mode = mode
604
- @recipient = recipient
605
- end
606
- end
607
-
608
- class Passenger < Stripe::RequestParams
609
- # Full name of the person or entity on the flight reservation.
610
- attr_accessor :name
611
-
612
- def initialize(name: nil)
613
- @name = name
614
- end
615
- end
616
-
617
- class Segment < Stripe::RequestParams
618
- # The flight segment amount.
619
- attr_accessor :amount
620
- # The International Air Transport Association (IATA) airport code for the arrival airport.
621
- attr_accessor :arrival_airport
622
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
623
- attr_accessor :arrives_at
624
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
625
- attr_accessor :carrier
626
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
627
- attr_accessor :departs_at
628
- # The International Air Transport Association (IATA) airport code for the departure airport.
629
- attr_accessor :departure_airport
630
- # The flight number associated with the segment
631
- attr_accessor :flight_number
632
- # The fare class for the segment.
633
- attr_accessor :service_class
634
-
635
- def initialize(
636
- amount: nil,
637
- arrival_airport: nil,
638
- arrives_at: nil,
639
- carrier: nil,
640
- departs_at: nil,
641
- departure_airport: nil,
642
- flight_number: nil,
643
- service_class: nil
644
- )
645
- @amount = amount
646
- @arrival_airport = arrival_airport
647
- @arrives_at = arrives_at
648
- @carrier = carrier
649
- @departs_at = departs_at
650
- @departure_airport = departure_airport
651
- @flight_number = flight_number
652
- @service_class = service_class
653
- end
654
- end
655
- # Affiliate details for this purchase.
656
- attr_accessor :affiliate
657
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
658
- attr_accessor :agency_number
659
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
660
- attr_accessor :carrier
661
- # Delivery details for this purchase.
662
- attr_accessor :delivery
663
- # The name of the person or entity on the reservation.
664
- attr_accessor :passenger_name
665
- # The details of the passengers in the travel reservation.
666
- attr_accessor :passengers
667
- # The individual flight segments associated with the trip.
668
- attr_accessor :segments
669
- # The ticket number associated with the travel reservation.
670
- attr_accessor :ticket_number
671
-
672
- def initialize(
673
- affiliate: nil,
674
- agency_number: nil,
675
- carrier: nil,
676
- delivery: nil,
677
- passenger_name: nil,
678
- passengers: nil,
679
- segments: nil,
680
- ticket_number: nil
681
- )
682
- @affiliate = affiliate
683
- @agency_number = agency_number
684
- @carrier = carrier
685
- @delivery = delivery
686
- @passenger_name = passenger_name
687
- @passengers = passengers
688
- @segments = segments
689
- @ticket_number = ticket_number
690
- end
691
- end
692
-
693
- class Lodging < Stripe::RequestParams
694
- class Address < Stripe::RequestParams
695
- # City, district, suburb, town, or village.
696
- attr_accessor :city
697
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
698
- attr_accessor :country
699
- # Address line 1, such as the street, PO Box, or company name.
700
- attr_accessor :line1
701
- # Address line 2, such as the apartment, suite, unit, or building.
702
- attr_accessor :line2
703
- # ZIP or postal code.
704
- attr_accessor :postal_code
705
- # State, county, province, or region.
706
- attr_accessor :state
707
-
708
- def initialize(
709
- city: nil,
710
- country: nil,
711
- line1: nil,
712
- line2: nil,
713
- postal_code: nil,
714
- state: nil
715
- )
716
- @city = city
717
- @country = country
718
- @line1 = line1
719
- @line2 = line2
720
- @postal_code = postal_code
721
- @state = state
722
- end
723
- end
724
-
725
- class Affiliate < Stripe::RequestParams
726
- # The name of the affiliate that originated the purchase.
727
- attr_accessor :name
728
-
729
- def initialize(name: nil)
730
- @name = name
731
- end
732
- end
733
-
734
- class Delivery < Stripe::RequestParams
735
- class Recipient < Stripe::RequestParams
736
- # The email of the recipient the ticket is delivered to.
737
- attr_accessor :email
738
- # The name of the recipient the ticket is delivered to.
739
- attr_accessor :name
740
- # The phone number of the recipient the ticket is delivered to.
741
- attr_accessor :phone
742
-
743
- def initialize(email: nil, name: nil, phone: nil)
744
- @email = email
745
- @name = name
746
- @phone = phone
747
- end
748
- end
749
- # The delivery method for the payment
750
- attr_accessor :mode
751
- # Details of the recipient.
752
- attr_accessor :recipient
753
-
754
- def initialize(mode: nil, recipient: nil)
755
- @mode = mode
756
- @recipient = recipient
757
- end
758
- end
759
-
760
- class Passenger < Stripe::RequestParams
761
- # Full name of the person or entity on the lodging reservation.
762
- attr_accessor :name
763
-
764
- def initialize(name: nil)
765
- @name = name
766
- end
767
- end
768
- # The lodging location's address.
769
- attr_accessor :address
770
- # The number of adults on the booking
771
- attr_accessor :adults
772
- # Affiliate details for this purchase.
773
- attr_accessor :affiliate
774
- # The booking number associated with the lodging reservation.
775
- attr_accessor :booking_number
776
- # The lodging category
777
- attr_accessor :category
778
- # Lodging check-in time. Measured in seconds since the Unix epoch.
779
- attr_accessor :checkin_at
780
- # Lodging check-out time. Measured in seconds since the Unix epoch.
781
- attr_accessor :checkout_at
782
- # The customer service phone number of the lodging company.
783
- attr_accessor :customer_service_phone_number
784
- # The daily lodging room rate.
785
- attr_accessor :daily_room_rate_amount
786
- # Delivery details for this purchase.
787
- attr_accessor :delivery
788
- # List of additional charges being billed.
789
- attr_accessor :extra_charges
790
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
791
- attr_accessor :fire_safety_act_compliance
792
- # The name of the lodging location.
793
- attr_accessor :name
794
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
795
- attr_accessor :no_show
796
- # The number of rooms on the booking
797
- attr_accessor :number_of_rooms
798
- # The details of the passengers in the travel reservation
799
- attr_accessor :passengers
800
- # The phone number of the lodging location.
801
- attr_accessor :property_phone_number
802
- # The room class for this purchase.
803
- attr_accessor :room_class
804
- # The number of room nights
805
- attr_accessor :room_nights
806
- # The total tax amount associating with the room reservation.
807
- attr_accessor :total_room_tax_amount
808
- # The total tax amount
809
- attr_accessor :total_tax_amount
810
-
811
- def initialize(
812
- address: nil,
813
- adults: nil,
814
- affiliate: nil,
815
- booking_number: nil,
816
- category: nil,
817
- checkin_at: nil,
818
- checkout_at: nil,
819
- customer_service_phone_number: nil,
820
- daily_room_rate_amount: nil,
821
- delivery: nil,
822
- extra_charges: nil,
823
- fire_safety_act_compliance: nil,
824
- name: nil,
825
- no_show: nil,
826
- number_of_rooms: nil,
827
- passengers: nil,
828
- property_phone_number: nil,
829
- room_class: nil,
830
- room_nights: nil,
831
- total_room_tax_amount: nil,
832
- total_tax_amount: nil
833
- )
834
- @address = address
835
- @adults = adults
836
- @affiliate = affiliate
837
- @booking_number = booking_number
838
- @category = category
839
- @checkin_at = checkin_at
840
- @checkout_at = checkout_at
841
- @customer_service_phone_number = customer_service_phone_number
842
- @daily_room_rate_amount = daily_room_rate_amount
843
- @delivery = delivery
844
- @extra_charges = extra_charges
845
- @fire_safety_act_compliance = fire_safety_act_compliance
846
- @name = name
847
- @no_show = no_show
848
- @number_of_rooms = number_of_rooms
849
- @passengers = passengers
850
- @property_phone_number = property_phone_number
851
- @room_class = room_class
852
- @room_nights = room_nights
853
- @total_room_tax_amount = total_room_tax_amount
854
- @total_tax_amount = total_tax_amount
855
- end
856
- end
857
-
858
- class Subscription < Stripe::RequestParams
859
- class Affiliate < Stripe::RequestParams
860
- # The name of the affiliate that originated the purchase.
861
- attr_accessor :name
862
-
863
- def initialize(name: nil)
864
- @name = name
865
- end
866
- end
867
-
868
- class BillingInterval < Stripe::RequestParams
869
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
870
- attr_accessor :count
871
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
872
- attr_accessor :interval
40
+ attr_accessor :online
41
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
42
+ attr_accessor :type
873
43
 
874
- def initialize(count: nil, interval: nil)
875
- @count = count
876
- @interval = interval
877
- end
44
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
45
+ @accepted_at = accepted_at
46
+ @offline = offline
47
+ @online = online
48
+ @type = type
878
49
  end
879
- # Affiliate details for this purchase.
880
- attr_accessor :affiliate
881
- # Info whether the subscription will be auto renewed upon expiry.
882
- attr_accessor :auto_renewal
883
- # Subscription billing details for this purchase.
884
- attr_accessor :billing_interval
885
- # Subscription end time. Measured in seconds since the Unix epoch.
886
- attr_accessor :ends_at
887
- # Name of the product on subscription. e.g. Apple Music Subscription
888
- attr_accessor :name
889
- # Subscription start time. Measured in seconds since the Unix epoch.
890
- attr_accessor :starts_at
891
-
892
- def initialize(
893
- affiliate: nil,
894
- auto_renewal: nil,
895
- billing_interval: nil,
896
- ends_at: nil,
897
- name: nil,
898
- starts_at: nil
899
- )
900
- @affiliate = affiliate
901
- @auto_renewal = auto_renewal
902
- @billing_interval = billing_interval
903
- @ends_at = ends_at
904
- @name = name
905
- @starts_at = starts_at
906
- end
907
- end
908
- # Car rental details for this PaymentIntent.
909
- attr_accessor :car_rental
910
- # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
911
- attr_accessor :customer_reference
912
- # Event details for this PaymentIntent
913
- attr_accessor :event_details
914
- # Flight reservation details for this PaymentIntent
915
- attr_accessor :flight
916
- # Lodging reservation details for this PaymentIntent
917
- attr_accessor :lodging
918
- # A unique value assigned by the business to identify the transaction.
919
- attr_accessor :order_reference
920
- # Subscription details for this PaymentIntent
921
- attr_accessor :subscription
50
+ end
51
+ # This hash contains details about the customer acceptance of the Mandate.
52
+ attr_accessor :customer_acceptance
922
53
 
923
- def initialize(
924
- car_rental: nil,
925
- customer_reference: nil,
926
- event_details: nil,
927
- flight: nil,
928
- lodging: nil,
929
- order_reference: nil,
930
- subscription: nil
931
- )
932
- @car_rental = car_rental
933
- @customer_reference = customer_reference
934
- @event_details = event_details
935
- @flight = flight
936
- @lodging = lodging
937
- @order_reference = order_reference
938
- @subscription = subscription
54
+ def initialize(customer_acceptance: nil)
55
+ @customer_acceptance = customer_acceptance
939
56
  end
940
57
  end
941
58
 
@@ -1076,18 +193,8 @@ module Stripe
1076
193
  end
1077
194
 
1078
195
  class Giropay < Stripe::RequestParams; end
1079
- class Gopay < Stripe::RequestParams; end
1080
196
  class Grabpay < Stripe::RequestParams; end
1081
197
 
1082
- class IdBankTransfer < Stripe::RequestParams
1083
- # Bank where the account is held.
1084
- attr_accessor :bank
1085
-
1086
- def initialize(bank: nil)
1087
- @bank = bank
1088
- end
1089
- end
1090
-
1091
198
  class Ideal < Stripe::RequestParams
1092
199
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
1093
200
  attr_accessor :bank
@@ -1185,26 +292,8 @@ module Stripe
1185
292
  class Payco < Stripe::RequestParams; end
1186
293
  class Paynow < Stripe::RequestParams; end
1187
294
  class Paypal < Stripe::RequestParams; end
1188
- class Paypay < Stripe::RequestParams; end
1189
-
1190
- class Payto < Stripe::RequestParams
1191
- # The account number for the bank account.
1192
- attr_accessor :account_number
1193
- # Bank-State-Branch number of the bank account.
1194
- attr_accessor :bsb_number
1195
- # The PayID alias for the bank account.
1196
- attr_accessor :pay_id
1197
-
1198
- def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
1199
- @account_number = account_number
1200
- @bsb_number = bsb_number
1201
- @pay_id = pay_id
1202
- end
1203
- end
1204
-
1205
295
  class Pix < Stripe::RequestParams; end
1206
296
  class Promptpay < Stripe::RequestParams; end
1207
- class Qris < Stripe::RequestParams; end
1208
297
 
1209
298
  class RadarOptions < Stripe::RequestParams
1210
299
  # 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.
@@ -1215,29 +304,6 @@ module Stripe
1215
304
  end
1216
305
  end
1217
306
 
1218
- class Rechnung < Stripe::RequestParams
1219
- class Dob < Stripe::RequestParams
1220
- # The day of birth, between 1 and 31.
1221
- attr_accessor :day
1222
- # The month of birth, between 1 and 12.
1223
- attr_accessor :month
1224
- # The four-digit year of birth.
1225
- attr_accessor :year
1226
-
1227
- def initialize(day: nil, month: nil, year: nil)
1228
- @day = day
1229
- @month = month
1230
- @year = year
1231
- end
1232
- end
1233
- # Customer's date of birth
1234
- attr_accessor :dob
1235
-
1236
- def initialize(dob: nil)
1237
- @dob = dob
1238
- end
1239
- end
1240
-
1241
307
  class RevolutPay < Stripe::RequestParams; end
1242
308
  class SamsungPay < Stripe::RequestParams; end
1243
309
  class Satispay < Stripe::RequestParams; end
@@ -1251,8 +317,6 @@ module Stripe
1251
317
  end
1252
318
  end
1253
319
 
1254
- class Shopeepay < Stripe::RequestParams; end
1255
-
1256
320
  class Sofort < Stripe::RequestParams
1257
321
  # Two-letter ISO code representing the country the bank account is located in.
1258
322
  attr_accessor :country
@@ -1262,18 +326,6 @@ module Stripe
1262
326
  end
1263
327
  end
1264
328
 
1265
- class StripeBalance < Stripe::RequestParams
1266
- # The connected account ID whose Stripe balance to use as the source of payment
1267
- attr_accessor :account
1268
- # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1269
- attr_accessor :source_type
1270
-
1271
- def initialize(account: nil, source_type: nil)
1272
- @account = account
1273
- @source_type = source_type
1274
- end
1275
- end
1276
-
1277
329
  class Swish < Stripe::RequestParams; end
1278
330
  class Twint < Stripe::RequestParams; end
1279
331
 
@@ -1346,12 +398,8 @@ module Stripe
1346
398
  attr_accessor :fpx
1347
399
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
1348
400
  attr_accessor :giropay
1349
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1350
- attr_accessor :gopay
1351
401
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1352
402
  attr_accessor :grabpay
1353
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1354
- attr_accessor :id_bank_transfer
1355
403
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1356
404
  attr_accessor :ideal
1357
405
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -1390,20 +438,12 @@ module Stripe
1390
438
  attr_accessor :paynow
1391
439
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
1392
440
  attr_accessor :paypal
1393
- # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
1394
- attr_accessor :paypay
1395
- # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1396
- attr_accessor :payto
1397
441
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1398
442
  attr_accessor :pix
1399
443
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
1400
444
  attr_accessor :promptpay
1401
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1402
- attr_accessor :qris
1403
445
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1404
446
  attr_accessor :radar_options
1405
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1406
- attr_accessor :rechnung
1407
447
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1408
448
  attr_accessor :revolut_pay
1409
449
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -1412,12 +452,8 @@ module Stripe
1412
452
  attr_accessor :satispay
1413
453
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1414
454
  attr_accessor :sepa_debit
1415
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1416
- attr_accessor :shopeepay
1417
455
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1418
456
  attr_accessor :sofort
1419
- # This hash contains details about the Stripe balance payment method.
1420
- attr_accessor :stripe_balance
1421
457
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1422
458
  attr_accessor :swish
1423
459
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -1452,9 +488,7 @@ module Stripe
1452
488
  eps: nil,
1453
489
  fpx: nil,
1454
490
  giropay: nil,
1455
- gopay: nil,
1456
491
  grabpay: nil,
1457
- id_bank_transfer: nil,
1458
492
  ideal: nil,
1459
493
  interac_present: nil,
1460
494
  kakao_pay: nil,
@@ -1474,20 +508,14 @@ module Stripe
1474
508
  payco: nil,
1475
509
  paynow: nil,
1476
510
  paypal: nil,
1477
- paypay: nil,
1478
- payto: nil,
1479
511
  pix: nil,
1480
512
  promptpay: nil,
1481
- qris: nil,
1482
513
  radar_options: nil,
1483
- rechnung: nil,
1484
514
  revolut_pay: nil,
1485
515
  samsung_pay: nil,
1486
516
  satispay: nil,
1487
517
  sepa_debit: nil,
1488
- shopeepay: nil,
1489
518
  sofort: nil,
1490
- stripe_balance: nil,
1491
519
  swish: nil,
1492
520
  twint: nil,
1493
521
  type: nil,
@@ -1515,9 +543,7 @@ module Stripe
1515
543
  @eps = eps
1516
544
  @fpx = fpx
1517
545
  @giropay = giropay
1518
- @gopay = gopay
1519
546
  @grabpay = grabpay
1520
- @id_bank_transfer = id_bank_transfer
1521
547
  @ideal = ideal
1522
548
  @interac_present = interac_present
1523
549
  @kakao_pay = kakao_pay
@@ -1537,20 +563,14 @@ module Stripe
1537
563
  @payco = payco
1538
564
  @paynow = paynow
1539
565
  @paypal = paypal
1540
- @paypay = paypay
1541
- @payto = payto
1542
566
  @pix = pix
1543
567
  @promptpay = promptpay
1544
- @qris = qris
1545
568
  @radar_options = radar_options
1546
- @rechnung = rechnung
1547
569
  @revolut_pay = revolut_pay
1548
570
  @samsung_pay = samsung_pay
1549
571
  @satispay = satispay
1550
572
  @sepa_debit = sepa_debit
1551
- @shopeepay = shopeepay
1552
573
  @sofort = sofort
1553
- @stripe_balance = stripe_balance
1554
574
  @swish = swish
1555
575
  @twint = twint
1556
576
  @type = type
@@ -1921,48 +941,6 @@ module Stripe
1921
941
  end
1922
942
  end
1923
943
 
1924
- class StatementDetails < Stripe::RequestParams
1925
- class Address < Stripe::RequestParams
1926
- # City, district, suburb, town, or village.
1927
- attr_accessor :city
1928
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1929
- attr_accessor :country
1930
- # Address line 1, such as the street, PO Box, or company name.
1931
- attr_accessor :line1
1932
- # Address line 2, such as the apartment, suite, unit, or building.
1933
- attr_accessor :line2
1934
- # ZIP or postal code.
1935
- attr_accessor :postal_code
1936
- # State, county, province, or region.
1937
- attr_accessor :state
1938
-
1939
- def initialize(
1940
- city: nil,
1941
- country: nil,
1942
- line1: nil,
1943
- line2: nil,
1944
- postal_code: nil,
1945
- state: nil
1946
- )
1947
- @city = city
1948
- @country = country
1949
- @line1 = line1
1950
- @line2 = line2
1951
- @postal_code = postal_code
1952
- @state = state
1953
- end
1954
- end
1955
- # Please pass in an address that is within your Stripe user account country
1956
- attr_accessor :address
1957
- # Phone number (e.g., a toll-free number that customers can call)
1958
- attr_accessor :phone
1959
-
1960
- def initialize(address: nil, phone: nil)
1961
- @address = address
1962
- @phone = phone
1963
- end
1964
- end
1965
-
1966
944
  class ThreeDSecure < Stripe::RequestParams
1967
945
  class NetworkOptions < Stripe::RequestParams
1968
946
  class CartesBancaires < Stripe::RequestParams
@@ -2057,8 +1035,6 @@ module Stripe
2057
1035
  attr_accessor :moto
2058
1036
  # 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.
2059
1037
  attr_accessor :network
2060
- # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2061
- attr_accessor :request_decremental_authorization
2062
1038
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
2063
1039
  attr_accessor :request_extended_authorization
2064
1040
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -2067,8 +1043,6 @@ module Stripe
2067
1043
  attr_accessor :request_multicapture
2068
1044
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
2069
1045
  attr_accessor :request_overcapture
2070
- # Request partial authorization on this PaymentIntent.
2071
- attr_accessor :request_partial_authorization
2072
1046
  # 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.
2073
1047
  attr_accessor :request_three_d_secure
2074
1048
  # 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).
@@ -2087,8 +1061,6 @@ module Stripe
2087
1061
  attr_accessor :statement_descriptor_suffix_kana
2088
1062
  # 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.
2089
1063
  attr_accessor :statement_descriptor_suffix_kanji
2090
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
2091
- attr_accessor :statement_details
2092
1064
  # If 3D Secure authentication was performed with a third-party provider,
2093
1065
  # the authentication details to use for this payment.
2094
1066
  attr_accessor :three_d_secure
@@ -2100,18 +1072,15 @@ module Stripe
2100
1072
  mandate_options: nil,
2101
1073
  moto: nil,
2102
1074
  network: nil,
2103
- request_decremental_authorization: nil,
2104
1075
  request_extended_authorization: nil,
2105
1076
  request_incremental_authorization: nil,
2106
1077
  request_multicapture: nil,
2107
1078
  request_overcapture: nil,
2108
- request_partial_authorization: nil,
2109
1079
  request_three_d_secure: nil,
2110
1080
  require_cvc_recollection: nil,
2111
1081
  setup_future_usage: nil,
2112
1082
  statement_descriptor_suffix_kana: nil,
2113
1083
  statement_descriptor_suffix_kanji: nil,
2114
- statement_details: nil,
2115
1084
  three_d_secure: nil
2116
1085
  )
2117
1086
  @capture_method = capture_method
@@ -2120,18 +1089,15 @@ module Stripe
2120
1089
  @mandate_options = mandate_options
2121
1090
  @moto = moto
2122
1091
  @network = network
2123
- @request_decremental_authorization = request_decremental_authorization
2124
1092
  @request_extended_authorization = request_extended_authorization
2125
1093
  @request_incremental_authorization = request_incremental_authorization
2126
1094
  @request_multicapture = request_multicapture
2127
1095
  @request_overcapture = request_overcapture
2128
- @request_partial_authorization = request_partial_authorization
2129
1096
  @request_three_d_secure = request_three_d_secure
2130
1097
  @require_cvc_recollection = require_cvc_recollection
2131
1098
  @setup_future_usage = setup_future_usage
2132
1099
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
2133
1100
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
2134
- @statement_details = statement_details
2135
1101
  @three_d_secure = three_d_secure
2136
1102
  end
2137
1103
  end
@@ -2302,23 +1268,6 @@ module Stripe
2302
1268
  end
2303
1269
  end
2304
1270
 
2305
- class Gopay < Stripe::RequestParams
2306
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2307
- #
2308
- # 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.
2309
- #
2310
- # 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.
2311
- #
2312
- # 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).
2313
- #
2314
- # 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`.
2315
- attr_accessor :setup_future_usage
2316
-
2317
- def initialize(setup_future_usage: nil)
2318
- @setup_future_usage = setup_future_usage
2319
- end
2320
- end
2321
-
2322
1271
  class Grabpay < Stripe::RequestParams
2323
1272
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2324
1273
  #
@@ -2336,29 +1285,6 @@ module Stripe
2336
1285
  end
2337
1286
  end
2338
1287
 
2339
- class IdBankTransfer < Stripe::RequestParams
2340
- # 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.
2341
- attr_accessor :expires_after
2342
- # 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.
2343
- attr_accessor :expires_at
2344
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2345
- #
2346
- # 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.
2347
- #
2348
- # 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.
2349
- #
2350
- # 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).
2351
- #
2352
- # 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`.
2353
- attr_accessor :setup_future_usage
2354
-
2355
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
2356
- @expires_after = expires_after
2357
- @expires_at = expires_at
2358
- @setup_future_usage = setup_future_usage
2359
- end
2360
- end
2361
-
2362
1288
  class Ideal < Stripe::RequestParams
2363
1289
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2364
1290
  #
@@ -2760,65 +1686,12 @@ module Stripe
2760
1686
  end
2761
1687
 
2762
1688
  class Paypal < Stripe::RequestParams
2763
- class LineItem < Stripe::RequestParams
2764
- class Tax < Stripe::RequestParams
2765
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2766
- attr_accessor :amount
2767
- # The tax behavior for the line item.
2768
- attr_accessor :behavior
2769
-
2770
- def initialize(amount: nil, behavior: nil)
2771
- @amount = amount
2772
- @behavior = behavior
2773
- end
2774
- end
2775
- # Type of the line item.
2776
- attr_accessor :category
2777
- # Description of the line item.
2778
- attr_accessor :description
2779
- # Descriptive name of the line item.
2780
- attr_accessor :name
2781
- # Quantity of the line item. Must be a positive number.
2782
- attr_accessor :quantity
2783
- # Client facing stock keeping unit, article number or similar.
2784
- attr_accessor :sku
2785
- # The Stripe account ID of the connected account that sells the item.
2786
- attr_accessor :sold_by
2787
- # The tax information for the line item.
2788
- attr_accessor :tax
2789
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
2790
- attr_accessor :unit_amount
2791
-
2792
- def initialize(
2793
- category: nil,
2794
- description: nil,
2795
- name: nil,
2796
- quantity: nil,
2797
- sku: nil,
2798
- sold_by: nil,
2799
- tax: nil,
2800
- unit_amount: nil
2801
- )
2802
- @category = category
2803
- @description = description
2804
- @name = name
2805
- @quantity = quantity
2806
- @sku = sku
2807
- @sold_by = sold_by
2808
- @tax = tax
2809
- @unit_amount = unit_amount
2810
- end
2811
- end
2812
1689
  # Controls when the funds will be captured from the customer's account.
2813
1690
  attr_accessor :capture_method
2814
- # The line items purchased by the customer.
2815
- attr_accessor :line_items
2816
1691
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2817
1692
  attr_accessor :preferred_locale
2818
1693
  # 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.
2819
1694
  attr_accessor :reference
2820
- # 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.
2821
- attr_accessor :reference_id
2822
1695
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2823
1696
  attr_accessor :risk_correlation_id
2824
1697
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2831,140 +1704,29 @@ module Stripe
2831
1704
  #
2832
1705
  # 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`.
2833
1706
  attr_accessor :setup_future_usage
2834
- # 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.
2835
- attr_accessor :subsellers
2836
1707
 
2837
1708
  def initialize(
2838
1709
  capture_method: nil,
2839
- line_items: nil,
2840
1710
  preferred_locale: nil,
2841
1711
  reference: nil,
2842
- reference_id: nil,
2843
1712
  risk_correlation_id: nil,
2844
- setup_future_usage: nil,
2845
- subsellers: nil
1713
+ setup_future_usage: nil
2846
1714
  )
2847
1715
  @capture_method = capture_method
2848
- @line_items = line_items
2849
1716
  @preferred_locale = preferred_locale
2850
1717
  @reference = reference
2851
- @reference_id = reference_id
2852
1718
  @risk_correlation_id = risk_correlation_id
2853
1719
  @setup_future_usage = setup_future_usage
2854
- @subsellers = subsellers
2855
- end
2856
- end
2857
-
2858
- class Paypay < Stripe::RequestParams
2859
- # Controls when the funds are captured from the customer's account.
2860
- #
2861
- # 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.
2862
- #
2863
- # 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.
2864
- attr_accessor :capture_method
2865
-
2866
- def initialize(capture_method: nil)
2867
- @capture_method = capture_method
2868
- end
2869
- end
2870
-
2871
- class Payto < Stripe::RequestParams
2872
- class MandateOptions < Stripe::RequestParams
2873
- # Amount that will be collected. It is required when `amount_type` is `fixed`.
2874
- attr_accessor :amount
2875
- # 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.
2876
- attr_accessor :amount_type
2877
- # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2878
- attr_accessor :end_date
2879
- # The periodicity at which payments will be collected.
2880
- attr_accessor :payment_schedule
2881
- # 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.
2882
- attr_accessor :payments_per_period
2883
- # The purpose for which payments are made. Defaults to retail.
2884
- attr_accessor :purpose
2885
-
2886
- def initialize(
2887
- amount: nil,
2888
- amount_type: nil,
2889
- end_date: nil,
2890
- payment_schedule: nil,
2891
- payments_per_period: nil,
2892
- purpose: nil
2893
- )
2894
- @amount = amount
2895
- @amount_type = amount_type
2896
- @end_date = end_date
2897
- @payment_schedule = payment_schedule
2898
- @payments_per_period = payments_per_period
2899
- @purpose = purpose
2900
- end
2901
- end
2902
- # 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`
2903
- attr_accessor :mandate_options
2904
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2905
- #
2906
- # 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.
2907
- #
2908
- # 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.
2909
- #
2910
- # 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).
2911
- #
2912
- # 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`.
2913
- attr_accessor :setup_future_usage
2914
-
2915
- def initialize(mandate_options: nil, setup_future_usage: nil)
2916
- @mandate_options = mandate_options
2917
- @setup_future_usage = setup_future_usage
2918
1720
  end
2919
1721
  end
2920
1722
 
2921
1723
  class Pix < Stripe::RequestParams
2922
- class MandateOptions < Stripe::RequestParams
2923
- # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
2924
- attr_accessor :amount
2925
- # Determines if the amount includes the IOF tax. Defaults to `never`.
2926
- attr_accessor :amount_includes_iof
2927
- # Type of amount. Defaults to `maximum`.
2928
- attr_accessor :amount_type
2929
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
2930
- attr_accessor :currency
2931
- # 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.
2932
- attr_accessor :end_date
2933
- # Schedule at which the future payments will be charged. Defaults to `weekly`.
2934
- attr_accessor :payment_schedule
2935
- # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
2936
- attr_accessor :reference
2937
- # 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.
2938
- attr_accessor :start_date
2939
-
2940
- def initialize(
2941
- amount: nil,
2942
- amount_includes_iof: nil,
2943
- amount_type: nil,
2944
- currency: nil,
2945
- end_date: nil,
2946
- payment_schedule: nil,
2947
- reference: nil,
2948
- start_date: nil
2949
- )
2950
- @amount = amount
2951
- @amount_includes_iof = amount_includes_iof
2952
- @amount_type = amount_type
2953
- @currency = currency
2954
- @end_date = end_date
2955
- @payment_schedule = payment_schedule
2956
- @reference = reference
2957
- @start_date = start_date
2958
- end
2959
- end
2960
1724
  # Determines if the amount includes the IOF tax. Defaults to `never`.
2961
1725
  attr_accessor :amount_includes_iof
2962
1726
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
2963
1727
  attr_accessor :expires_after_seconds
2964
1728
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
2965
1729
  attr_accessor :expires_at
2966
- # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
2967
- attr_accessor :mandate_options
2968
1730
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2969
1731
  #
2970
1732
  # 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.
@@ -2980,13 +1742,11 @@ module Stripe
2980
1742
  amount_includes_iof: nil,
2981
1743
  expires_after_seconds: nil,
2982
1744
  expires_at: nil,
2983
- mandate_options: nil,
2984
1745
  setup_future_usage: nil
2985
1746
  )
2986
1747
  @amount_includes_iof = amount_includes_iof
2987
1748
  @expires_after_seconds = expires_after_seconds
2988
1749
  @expires_at = expires_at
2989
- @mandate_options = mandate_options
2990
1750
  @setup_future_usage = setup_future_usage
2991
1751
  end
2992
1752
  end
@@ -3008,25 +1768,6 @@ module Stripe
3008
1768
  end
3009
1769
  end
3010
1770
 
3011
- class Qris < Stripe::RequestParams
3012
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3013
- #
3014
- # 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.
3015
- #
3016
- # 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.
3017
- #
3018
- # 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).
3019
- #
3020
- # 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`.
3021
- attr_accessor :setup_future_usage
3022
-
3023
- def initialize(setup_future_usage: nil)
3024
- @setup_future_usage = setup_future_usage
3025
- end
3026
- end
3027
-
3028
- class Rechnung < Stripe::RequestParams; end
3029
-
3030
1771
  class RevolutPay < Stripe::RequestParams
3031
1772
  # Controls when the funds are captured from the customer's account.
3032
1773
  #
@@ -3106,23 +1847,6 @@ module Stripe
3106
1847
  end
3107
1848
  end
3108
1849
 
3109
- class Shopeepay < Stripe::RequestParams
3110
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3111
- #
3112
- # 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.
3113
- #
3114
- # 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.
3115
- #
3116
- # 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).
3117
- #
3118
- # 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`.
3119
- attr_accessor :setup_future_usage
3120
-
3121
- def initialize(setup_future_usage: nil)
3122
- @setup_future_usage = setup_future_usage
3123
- end
3124
- end
3125
-
3126
1850
  class Sofort < Stripe::RequestParams
3127
1851
  # Language shown to the payer on redirect.
3128
1852
  attr_accessor :preferred_language
@@ -3143,23 +1867,6 @@ module Stripe
3143
1867
  end
3144
1868
  end
3145
1869
 
3146
- class StripeBalance < Stripe::RequestParams
3147
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3148
- #
3149
- # 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.
3150
- #
3151
- # 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.
3152
- #
3153
- # 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).
3154
- #
3155
- # 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`.
3156
- attr_accessor :setup_future_usage
3157
-
3158
- def initialize(setup_future_usage: nil)
3159
- @setup_future_usage = setup_future_usage
3160
- end
3161
- end
3162
-
3163
1870
  class Swish < Stripe::RequestParams
3164
1871
  # A reference for this payment to be displayed in the Swish app.
3165
1872
  attr_accessor :reference
@@ -3202,27 +1909,13 @@ module Stripe
3202
1909
  class Filters < Stripe::RequestParams
3203
1910
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3204
1911
  attr_accessor :account_subcategories
3205
- # ID of the institution to use to filter for selectable accounts.
3206
- attr_accessor :institution
3207
1912
 
3208
- def initialize(account_subcategories: nil, institution: nil)
1913
+ def initialize(account_subcategories: nil)
3209
1914
  @account_subcategories = account_subcategories
3210
- @institution = institution
3211
- end
3212
- end
3213
-
3214
- class ManualEntry < Stripe::RequestParams
3215
- # Settings for configuring manual entry of account details.
3216
- attr_accessor :mode
3217
-
3218
- def initialize(mode: nil)
3219
- @mode = mode
3220
1915
  end
3221
1916
  end
3222
1917
  # Provide filters for the linked accounts that the customer can select for the payment method.
3223
1918
  attr_accessor :filters
3224
- # Customize manual entry behavior
3225
- attr_accessor :manual_entry
3226
1919
  # 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`.
3227
1920
  attr_accessor :permissions
3228
1921
  # List of data features that you would like to retrieve upon account creation.
@@ -3230,15 +1923,8 @@ module Stripe
3230
1923
  # 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.
3231
1924
  attr_accessor :return_url
3232
1925
 
3233
- def initialize(
3234
- filters: nil,
3235
- manual_entry: nil,
3236
- permissions: nil,
3237
- prefetch: nil,
3238
- return_url: nil
3239
- )
1926
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
3240
1927
  @filters = filters
3241
- @manual_entry = manual_entry
3242
1928
  @permissions = permissions
3243
1929
  @prefetch = prefetch
3244
1930
  @return_url = return_url
@@ -3383,12 +2069,8 @@ module Stripe
3383
2069
  attr_accessor :fpx
3384
2070
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
3385
2071
  attr_accessor :giropay
3386
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
3387
- attr_accessor :gopay
3388
2072
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
3389
2073
  attr_accessor :grabpay
3390
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
3391
- attr_accessor :id_bank_transfer
3392
2074
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
3393
2075
  attr_accessor :ideal
3394
2076
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -3425,18 +2107,10 @@ module Stripe
3425
2107
  attr_accessor :paynow
3426
2108
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
3427
2109
  attr_accessor :paypal
3428
- # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
3429
- attr_accessor :paypay
3430
- # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
3431
- attr_accessor :payto
3432
2110
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
3433
2111
  attr_accessor :pix
3434
2112
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
3435
2113
  attr_accessor :promptpay
3436
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
3437
- attr_accessor :qris
3438
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
3439
- attr_accessor :rechnung
3440
2114
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
3441
2115
  attr_accessor :revolut_pay
3442
2116
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -3445,12 +2119,8 @@ module Stripe
3445
2119
  attr_accessor :satispay
3446
2120
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
3447
2121
  attr_accessor :sepa_debit
3448
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
3449
- attr_accessor :shopeepay
3450
2122
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
3451
2123
  attr_accessor :sofort
3452
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
3453
- attr_accessor :stripe_balance
3454
2124
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
3455
2125
  attr_accessor :swish
3456
2126
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -3483,9 +2153,7 @@ module Stripe
3483
2153
  eps: nil,
3484
2154
  fpx: nil,
3485
2155
  giropay: nil,
3486
- gopay: nil,
3487
2156
  grabpay: nil,
3488
- id_bank_transfer: nil,
3489
2157
  ideal: nil,
3490
2158
  interac_present: nil,
3491
2159
  kakao_pay: nil,
@@ -3504,19 +2172,13 @@ module Stripe
3504
2172
  payco: nil,
3505
2173
  paynow: nil,
3506
2174
  paypal: nil,
3507
- paypay: nil,
3508
- payto: nil,
3509
2175
  pix: nil,
3510
2176
  promptpay: nil,
3511
- qris: nil,
3512
- rechnung: nil,
3513
2177
  revolut_pay: nil,
3514
2178
  samsung_pay: nil,
3515
2179
  satispay: nil,
3516
2180
  sepa_debit: nil,
3517
- shopeepay: nil,
3518
2181
  sofort: nil,
3519
- stripe_balance: nil,
3520
2182
  swish: nil,
3521
2183
  twint: nil,
3522
2184
  us_bank_account: nil,
@@ -3543,9 +2205,7 @@ module Stripe
3543
2205
  @eps = eps
3544
2206
  @fpx = fpx
3545
2207
  @giropay = giropay
3546
- @gopay = gopay
3547
2208
  @grabpay = grabpay
3548
- @id_bank_transfer = id_bank_transfer
3549
2209
  @ideal = ideal
3550
2210
  @interac_present = interac_present
3551
2211
  @kakao_pay = kakao_pay
@@ -3564,19 +2224,13 @@ module Stripe
3564
2224
  @payco = payco
3565
2225
  @paynow = paynow
3566
2226
  @paypal = paypal
3567
- @paypay = paypay
3568
- @payto = payto
3569
2227
  @pix = pix
3570
2228
  @promptpay = promptpay
3571
- @qris = qris
3572
- @rechnung = rechnung
3573
2229
  @revolut_pay = revolut_pay
3574
2230
  @samsung_pay = samsung_pay
3575
2231
  @satispay = satispay
3576
2232
  @sepa_debit = sepa_debit
3577
- @shopeepay = shopeepay
3578
2233
  @sofort = sofort
3579
- @stripe_balance = stripe_balance
3580
2234
  @swish = swish
3581
2235
  @twint = twint
3582
2236
  @us_bank_account = us_bank_account
@@ -3667,8 +2321,6 @@ module Stripe
3667
2321
  end
3668
2322
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
3669
2323
  attr_accessor :amount
3670
- # Provides industry-specific information about the amount.
3671
- attr_accessor :amount_details
3672
2324
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3673
2325
  attr_accessor :application_fee_amount
3674
2326
  # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
@@ -3691,12 +2343,6 @@ module Stripe
3691
2343
  #
3692
2344
  # 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.
3693
2345
  attr_accessor :customer
3694
- # ID of the Account this PaymentIntent belongs to, if one exists.
3695
- #
3696
- # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3697
- #
3698
- # 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.
3699
- attr_accessor :customer_account
3700
2346
  # An arbitrary string attached to the object. Often useful for displaying to users.
3701
2347
  attr_accessor :description
3702
2348
  # 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).
@@ -3705,10 +2351,6 @@ module Stripe
3705
2351
  attr_accessor :excluded_payment_method_types
3706
2352
  # Specifies which fields in the response should be expanded.
3707
2353
  attr_accessor :expand
3708
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
3709
- attr_accessor :fx_quote
3710
- # Automations to be run during the PaymentIntent lifecycle
3711
- attr_accessor :hooks
3712
2354
  # 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).
3713
2355
  attr_accessor :mandate
3714
2356
  # 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).
@@ -3719,8 +2361,6 @@ module Stripe
3719
2361
  attr_accessor :off_session
3720
2362
  # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3721
2363
  attr_accessor :on_behalf_of
3722
- # Provides industry-specific information about the charge.
3723
- attr_accessor :payment_details
3724
2364
  # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
3725
2365
  #
3726
2366
  # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
@@ -3743,8 +2383,6 @@ module Stripe
3743
2383
  attr_accessor :receipt_email
3744
2384
  # 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).
3745
2385
  attr_accessor :return_url
3746
- # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3747
- attr_accessor :secret_key_confirmation
3748
2386
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3749
2387
  #
3750
2388
  # 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.
@@ -3771,7 +2409,6 @@ module Stripe
3771
2409
 
3772
2410
  def initialize(
3773
2411
  amount: nil,
3774
- amount_details: nil,
3775
2412
  application_fee_amount: nil,
3776
2413
  automatic_payment_methods: nil,
3777
2414
  capture_method: nil,
@@ -3780,19 +2417,15 @@ module Stripe
3780
2417
  confirmation_token: nil,
3781
2418
  currency: nil,
3782
2419
  customer: nil,
3783
- customer_account: nil,
3784
2420
  description: nil,
3785
2421
  error_on_requires_action: nil,
3786
2422
  excluded_payment_method_types: nil,
3787
2423
  expand: nil,
3788
- fx_quote: nil,
3789
- hooks: nil,
3790
2424
  mandate: nil,
3791
2425
  mandate_data: nil,
3792
2426
  metadata: nil,
3793
2427
  off_session: nil,
3794
2428
  on_behalf_of: nil,
3795
- payment_details: nil,
3796
2429
  payment_method: nil,
3797
2430
  payment_method_configuration: nil,
3798
2431
  payment_method_data: nil,
@@ -3801,7 +2434,6 @@ module Stripe
3801
2434
  radar_options: nil,
3802
2435
  receipt_email: nil,
3803
2436
  return_url: nil,
3804
- secret_key_confirmation: nil,
3805
2437
  setup_future_usage: nil,
3806
2438
  shipping: nil,
3807
2439
  statement_descriptor: nil,
@@ -3811,7 +2443,6 @@ module Stripe
3811
2443
  use_stripe_sdk: nil
3812
2444
  )
3813
2445
  @amount = amount
3814
- @amount_details = amount_details
3815
2446
  @application_fee_amount = application_fee_amount
3816
2447
  @automatic_payment_methods = automatic_payment_methods
3817
2448
  @capture_method = capture_method
@@ -3820,19 +2451,15 @@ module Stripe
3820
2451
  @confirmation_token = confirmation_token
3821
2452
  @currency = currency
3822
2453
  @customer = customer
3823
- @customer_account = customer_account
3824
2454
  @description = description
3825
2455
  @error_on_requires_action = error_on_requires_action
3826
2456
  @excluded_payment_method_types = excluded_payment_method_types
3827
2457
  @expand = expand
3828
- @fx_quote = fx_quote
3829
- @hooks = hooks
3830
2458
  @mandate = mandate
3831
2459
  @mandate_data = mandate_data
3832
2460
  @metadata = metadata
3833
2461
  @off_session = off_session
3834
2462
  @on_behalf_of = on_behalf_of
3835
- @payment_details = payment_details
3836
2463
  @payment_method = payment_method
3837
2464
  @payment_method_configuration = payment_method_configuration
3838
2465
  @payment_method_data = payment_method_data
@@ -3841,7 +2468,6 @@ module Stripe
3841
2468
  @radar_options = radar_options
3842
2469
  @receipt_email = receipt_email
3843
2470
  @return_url = return_url
3844
- @secret_key_confirmation = secret_key_confirmation
3845
2471
  @setup_future_usage = setup_future_usage
3846
2472
  @shipping = shipping
3847
2473
  @statement_descriptor = statement_descriptor