stripe 20.2.0.pre.beta.1 → 21.1.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 (554) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/request.rb +18 -7
  3. data/lib/stripe/api_operations/save.rb +4 -4
  4. data/lib/stripe/api_requestor.rb +55 -38
  5. data/lib/stripe/api_resource.rb +1 -2
  6. data/lib/stripe/api_version.rb +2 -2
  7. data/lib/stripe/connection_manager.rb +3 -0
  8. data/lib/stripe/errors.rb +0 -6
  9. data/lib/stripe/event_types.rb +20 -193
  10. data/lib/stripe/events/unknown_event_notification.rb +0 -1
  11. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  12. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  13. data/lib/stripe/events/{v2_data_reporting_query_run_failed_event.rb → v2_core_claimable_sandbox_claimed_event.rb} +7 -7
  14. data/lib/stripe/events/{v2_money_management_outbound_transfer_created_event.rb → v2_core_claimable_sandbox_created_event.rb} +7 -7
  15. data/lib/stripe/events/{v2_core_approval_request_rejected_event.rb → v2_core_claimable_sandbox_expired_event.rb} +7 -7
  16. data/lib/stripe/events/{v2_core_batch_job_validation_failed_event.rb → v2_core_claimable_sandbox_expiring_event.rb} +7 -7
  17. data/lib/stripe/events/{v2_core_approval_request_approved_event.rb → v2_core_claimable_sandbox_updated_event.rb} +7 -7
  18. data/lib/stripe/object_types.rb +1 -53
  19. data/lib/stripe/params/account_create_params.rb +1 -299
  20. data/lib/stripe/params/account_session_create_params.rb +0 -191
  21. data/lib/stripe/params/account_update_params.rb +0 -261
  22. data/lib/stripe/params/balance_settings_update_params.rb +1 -9
  23. data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
  24. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  25. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  26. data/lib/stripe/params/charge_update_params.rb +0 -1646
  27. data/lib/stripe/params/checkout/session_create_params.rb +11 -88
  28. data/lib/stripe/params/checkout/session_update_params.rb +1 -161
  29. data/lib/stripe/params/confirmation_token_create_params.rb +0 -92
  30. data/lib/stripe/params/coupon_create_params.rb +2 -18
  31. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  32. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -39
  33. data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
  34. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  35. data/lib/stripe/params/invoice_create_params.rb +2 -64
  36. data/lib/stripe/params/invoice_create_preview_params.rb +9 -772
  37. data/lib/stripe/params/invoice_item_create_params.rb +2 -34
  38. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  39. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
  40. data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
  41. data/lib/stripe/params/invoice_update_params.rb +2 -64
  42. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  43. data/lib/stripe/params/issuing/cardholder_update_params.rb +0 -4
  44. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  45. data/lib/stripe/params/payment_intent_capture_params.rb +1 -981
  46. data/lib/stripe/params/payment_intent_confirm_params.rb +147 -2438
  47. data/lib/stripe/params/payment_intent_create_params.rb +148 -2439
  48. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
  49. data/lib/stripe/params/payment_intent_update_params.rb +149 -2471
  50. data/lib/stripe/params/payment_link_update_params.rb +4 -0
  51. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
  52. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
  53. data/lib/stripe/params/payment_method_create_params.rb +0 -88
  54. data/lib/stripe/params/price_update_params.rb +0 -19
  55. data/lib/stripe/params/product_create_params.rb +4 -1
  56. data/lib/stripe/params/product_update_params.rb +4 -1
  57. data/lib/stripe/params/quote_create_params.rb +4 -810
  58. data/lib/stripe/params/quote_list_params.rb +0 -4
  59. data/lib/stripe/params/quote_update_params.rb +5 -818
  60. data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
  61. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -122
  62. data/lib/stripe/params/setup_intent_create_params.rb +3 -122
  63. data/lib/stripe/params/setup_intent_update_params.rb +3 -122
  64. data/lib/stripe/params/subscription_create_params.rb +6 -133
  65. data/lib/stripe/params/subscription_item_create_params.rb +3 -50
  66. data/lib/stripe/params/subscription_item_update_params.rb +2 -33
  67. data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
  68. data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
  69. data/lib/stripe/params/subscription_update_params.rb +5 -116
  70. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
  71. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
  72. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
  73. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  74. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  75. data/lib/stripe/params/transfer_create_params.rb +0 -4
  76. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  77. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  78. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  79. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  80. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
  81. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
  82. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -19
  83. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  84. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  85. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  86. data/lib/stripe/params/v2/core/account_create_params.rb +143 -396
  87. data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
  88. data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
  89. data/lib/stripe/params/v2/core/account_update_params.rb +142 -380
  90. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
  91. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
  92. data/lib/stripe/params/v2/{billing/cadence_retrieve_params.rb → core/claimable_sandbox_retrieve_params.rb} +3 -3
  93. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
  94. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
  95. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
  96. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -21
  97. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -40
  98. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -22
  99. data/lib/stripe/params.rb +7 -364
  100. data/lib/stripe/request_options.rb +37 -2
  101. data/lib/stripe/resources/account.rb +1 -176
  102. data/lib/stripe/resources/account_session.rb +0 -81
  103. data/lib/stripe/resources/apps/install.rb +2 -2
  104. data/lib/stripe/resources/balance.rb +0 -83
  105. data/lib/stripe/resources/balance_settings.rb +0 -4
  106. data/lib/stripe/resources/balance_transaction.rb +1 -1
  107. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  108. data/lib/stripe/resources/card.rb +1 -18
  109. data/lib/stripe/resources/charge.rb +275 -232
  110. data/lib/stripe/resources/checkout/session.rb +7 -91
  111. data/lib/stripe/resources/confirmation_token.rb +2 -133
  112. data/lib/stripe/resources/coupon.rb +7 -29
  113. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  114. data/lib/stripe/resources/customer.rb +0 -16
  115. data/lib/stripe/resources/customer_session.rb +0 -36
  116. data/lib/stripe/resources/dispute.rb +1 -19
  117. data/lib/stripe/resources/event.rb +3 -66
  118. data/lib/stripe/resources/financial_connections/account.rb +1 -45
  119. data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
  120. data/lib/stripe/resources/financial_connections/session.rb +0 -92
  121. data/lib/stripe/resources/invoice.rb +1 -106
  122. data/lib/stripe/resources/invoice_item.rb +0 -2
  123. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  124. data/lib/stripe/resources/issuing/authorization.rb +0 -16
  125. data/lib/stripe/resources/issuing/card.rb +1 -17
  126. data/lib/stripe/resources/issuing/cardholder.rb +0 -16
  127. data/lib/stripe/resources/issuing/dispute.rb +1 -16
  128. data/lib/stripe/resources/issuing/transaction.rb +0 -18
  129. data/lib/stripe/resources/line_item.rb +0 -42
  130. data/lib/stripe/resources/mandate.rb +0 -12
  131. data/lib/stripe/resources/payment_attempt_record.rb +5 -178
  132. data/lib/stripe/resources/payment_intent.rb +17 -1022
  133. data/lib/stripe/resources/payment_method.rb +2 -153
  134. data/lib/stripe/resources/payment_method_configuration.rb +0 -170
  135. data/lib/stripe/resources/payment_record.rb +5 -178
  136. data/lib/stripe/resources/price.rb +0 -20
  137. data/lib/stripe/resources/product.rb +2 -0
  138. data/lib/stripe/resources/quote.rb +2 -569
  139. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  140. data/lib/stripe/resources/radar/value_list_item.rb +1 -15
  141. data/lib/stripe/resources/refund.rb +38 -18
  142. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  143. data/lib/stripe/resources/reserve/hold.rb +1 -8
  144. data/lib/stripe/resources/reserve/plan.rb +0 -7
  145. data/lib/stripe/resources/reserve/release.rb +0 -12
  146. data/lib/stripe/resources/setup_attempt.rb +2 -37
  147. data/lib/stripe/resources/setup_intent.rb +2 -39
  148. data/lib/stripe/resources/source.rb +0 -54
  149. data/lib/stripe/resources/subscription.rb +0 -73
  150. data/lib/stripe/resources/subscription_item.rb +1 -22
  151. data/lib/stripe/resources/subscription_schedule.rb +3 -198
  152. data/lib/stripe/resources/terminal/reader.rb +0 -8
  153. data/lib/stripe/resources/token.rb +1 -15
  154. data/lib/stripe/resources/transfer.rb +0 -2
  155. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  156. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  157. data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
  158. data/lib/stripe/resources/treasury/outbound_payment.rb +37 -11
  159. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -32
  160. data/lib/stripe/resources/treasury/received_credit.rb +1 -31
  161. data/lib/stripe/resources/treasury/received_debit.rb +1 -33
  162. data/lib/stripe/resources/v2/core/account.rb +293 -850
  163. data/lib/stripe/resources/v2/core/account_link.rb +18 -1
  164. data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
  165. data/lib/stripe/resources/v2/core/account_token.rb +3 -1
  166. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
  167. data/lib/stripe/resources/v2/core/event.rb +1 -1
  168. data/lib/stripe/resources/v2/core/event_base.rb +19 -0
  169. data/lib/stripe/resources/v2/core/event_notification.rb +32 -1
  170. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -91
  171. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -26
  172. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -4
  173. data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -50
  174. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -2
  175. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -63
  176. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +1 -31
  177. data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -50
  178. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
  179. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -2
  180. data/lib/stripe/resources.rb +19 -341
  181. data/lib/stripe/services/account_service.rb +0 -15
  182. data/lib/stripe/services/apps/install_service.rb +2 -2
  183. data/lib/stripe/services/billing_service.rb +1 -2
  184. data/lib/stripe/services/checkout/session_service.rb +2 -0
  185. data/lib/stripe/services/coupon_service.rb +0 -14
  186. data/lib/stripe/services/customer_service.rb +0 -15
  187. data/lib/stripe/services/event_service.rb +1 -1
  188. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  189. data/lib/stripe/services/financial_connections_service.rb +1 -3
  190. data/lib/stripe/services/invoice_service.rb +0 -11
  191. data/lib/stripe/services/issuing_service.rb +1 -5
  192. data/lib/stripe/services/mandate_service.rb +0 -5
  193. data/lib/stripe/services/payment_intent_service.rb +0 -37
  194. data/lib/stripe/services/promotion_code_service.rb +0 -29
  195. data/lib/stripe/services/quote_service.rb +1 -49
  196. data/lib/stripe/services/radar_service.rb +1 -2
  197. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  198. data/lib/stripe/services/subscription_service.rb +0 -45
  199. data/lib/stripe/services/tax_service.rb +1 -2
  200. data/lib/stripe/services/terminal_service.rb +1 -2
  201. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
  202. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
  203. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
  204. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
  205. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
  206. data/lib/stripe/services/test_helpers_service.rb +1 -2
  207. data/lib/stripe/services/v1_services.rb +1 -11
  208. data/lib/stripe/services/v2/billing_service.rb +1 -5
  209. data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
  210. data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
  211. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
  212. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
  213. data/lib/stripe/services/v2/core_service.rb +2 -3
  214. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -27
  215. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -15
  216. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +0 -13
  217. data/lib/stripe/services/v2/money_management_service.rb +1 -5
  218. data/lib/stripe/services/v2_services.rb +1 -7
  219. data/lib/stripe/services.rb +2 -181
  220. data/lib/stripe/stripe_client.rb +7 -4
  221. data/lib/stripe/stripe_configuration.rb +10 -5
  222. data/lib/stripe/stripe_event_notification_handler.rb +16 -206
  223. data/lib/stripe/stripe_object.rb +82 -10
  224. data/lib/stripe/stripe_service.rb +13 -9
  225. data/lib/stripe/util.rb +1 -7
  226. data/lib/stripe/version.rb +1 -1
  227. data/lib/stripe/webhook.rb +68 -3
  228. data/lib/stripe.rb +0 -53
  229. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  230. data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
  231. data/rbi/stripe.rbi +63009 -123066
  232. metadata +16 -332
  233. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
  234. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +0 -44
  235. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +0 -44
  236. data/lib/stripe/events/v2_core_approval_request_created_event.rb +0 -44
  237. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +0 -44
  238. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +0 -44
  239. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +0 -44
  240. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  241. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  242. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  243. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  244. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  245. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  246. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  247. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  248. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  249. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  250. data/lib/stripe/events/v2_data_query_run_created_event.rb +0 -44
  251. data/lib/stripe/events/v2_data_query_run_failed_event.rb +0 -44
  252. data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +0 -44
  253. data/lib/stripe/events/v2_data_query_run_updated_event.rb +0 -44
  254. data/lib/stripe/events/v2_data_report_run_created_event.rb +0 -44
  255. data/lib/stripe/events/v2_data_report_run_failed_event.rb +0 -44
  256. data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +0 -44
  257. data/lib/stripe/events/v2_data_report_run_updated_event.rb +0 -44
  258. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
  259. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
  260. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
  261. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
  262. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
  263. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
  264. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  265. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  266. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  267. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  268. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +0 -44
  269. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  270. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  271. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  272. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  273. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  274. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  275. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
  276. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
  277. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
  278. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
  279. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +0 -44
  280. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +0 -44
  281. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +0 -44
  282. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  283. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  284. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  285. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  286. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  287. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  288. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  289. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  290. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  291. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  292. data/lib/stripe/params/external_account_create_params.rb +0 -134
  293. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  294. data/lib/stripe/params/external_account_list_params.rb +0 -25
  295. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  296. data/lib/stripe/params/external_account_update_params.rb +0 -91
  297. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  298. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  299. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  300. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  301. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  302. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  303. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  304. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  305. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  306. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  307. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  308. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  309. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  310. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  311. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  312. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  313. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  314. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  315. data/lib/stripe/params/mandate_list_params.rb +0 -39
  316. data/lib/stripe/params/margin_create_params.rb +0 -25
  317. data/lib/stripe/params/margin_list_params.rb +0 -25
  318. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  319. data/lib/stripe/params/margin_update_params.rb +0 -22
  320. data/lib/stripe/params/order_create_params.rb +0 -2083
  321. data/lib/stripe/params/order_list_params.rb +0 -25
  322. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  323. data/lib/stripe/params/order_submit_params.rb +0 -16
  324. data/lib/stripe/params/order_update_params.rb +0 -2087
  325. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  326. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  327. data/lib/stripe/params/payment_plan_create_params.rb +0 -128
  328. data/lib/stripe/params/payment_plan_list_params.rb +0 -25
  329. data/lib/stripe/params/payment_plan_retrieve_params.rb +0 -13
  330. data/lib/stripe/params/payment_plan_update_params.rb +0 -105
  331. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  332. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  333. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  334. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  335. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  336. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  337. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  338. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  339. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  340. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  341. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  342. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  343. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  344. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  345. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  346. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  347. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +0 -231
  348. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  349. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  350. data/lib/stripe/params/reserve/plan_list_params.rb +0 -37
  351. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  352. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  353. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  354. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  355. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  356. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  357. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -71
  358. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  359. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  360. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  361. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  362. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  363. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  364. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  365. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  366. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  367. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  368. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  369. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  370. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  371. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  372. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  373. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  374. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  375. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  376. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  377. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
  378. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  379. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  380. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
  381. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  382. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  383. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  384. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  385. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  386. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  387. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +0 -10
  388. data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
  389. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
  390. data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
  391. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
  392. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -53
  393. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
  394. data/lib/stripe/params/v2/data/query_run_create_params.rb +0 -50
  395. data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +0 -23
  396. data/lib/stripe/params/v2/data/report_list_params.rb +0 -23
  397. data/lib/stripe/params/v2/data/report_retrieve_params.rb +0 -17
  398. data/lib/stripe/params/v2/data/report_run_create_params.rb +0 -48
  399. data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +0 -23
  400. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
  401. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
  402. data/lib/stripe/params/v2/data/schema_list_params.rb +0 -26
  403. data/lib/stripe/params/v2/data/schema_retrieve_params.rb +0 -10
  404. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
  405. data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
  406. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
  407. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
  408. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
  409. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
  410. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
  411. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -30
  412. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -35
  413. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -113
  414. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  415. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  416. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -112
  417. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  418. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  419. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +0 -10
  420. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  421. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  422. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +0 -12
  423. data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
  424. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
  425. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
  426. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
  427. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
  428. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
  429. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
  430. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +0 -200
  431. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
  432. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
  433. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -192
  434. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
  435. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
  436. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +0 -10
  437. data/lib/stripe/resources/account_notice.rb +0 -94
  438. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  439. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  440. data/lib/stripe/resources/capital/financing_offer.rb +0 -144
  441. data/lib/stripe/resources/capital/financing_summary.rb +0 -82
  442. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  443. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  444. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  445. data/lib/stripe/resources/fx_quote.rb +0 -149
  446. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  447. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  448. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  449. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  450. data/lib/stripe/resources/margin.rb +0 -64
  451. data/lib/stripe/resources/order.rb +0 -927
  452. data/lib/stripe/resources/payment_plan.rb +0 -213
  453. data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
  454. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  455. data/lib/stripe/resources/quote_line.rb +0 -525
  456. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1241
  457. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -968
  458. data/lib/stripe/resources/radar/billing_evaluation.rb +0 -281
  459. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
  460. data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
  461. data/lib/stripe/resources/tax/form.rb +0 -264
  462. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  463. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  464. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
  465. data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
  466. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
  467. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
  468. data/lib/stripe/resources/v2/billing/profile.rb +0 -47
  469. data/lib/stripe/resources/v2/core/approval_request.rb +0 -395
  470. data/lib/stripe/resources/v2/core/batch_job.rb +0 -536
  471. data/lib/stripe/resources/v2/data/query_run.rb +0 -255
  472. data/lib/stripe/resources/v2/data/report.rb +0 -104
  473. data/lib/stripe/resources/v2/data/report_run.rb +0 -246
  474. data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
  475. data/lib/stripe/resources/v2/data/schema.rb +0 -121
  476. data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
  477. data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
  478. data/lib/stripe/resources/v2/iam/activity_log.rb +0 -368
  479. data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +0 -33
  480. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -255
  481. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -260
  482. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
  483. data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
  484. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
  485. data/lib/stripe/resources/v2/signals/account_activity.rb +0 -252
  486. data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -249
  487. data/lib/stripe/resources/v2/signals/account_signal.rb +0 -184
  488. data/lib/stripe/services/account_notice_service.rb +0 -39
  489. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  490. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  491. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  492. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  493. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  494. data/lib/stripe/services/capital_service.rb +0 -15
  495. data/lib/stripe/services/external_account_service.rb +0 -68
  496. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  497. data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
  498. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  499. data/lib/stripe/services/fx_quote_service.rb +0 -27
  500. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  501. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  502. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  503. data/lib/stripe/services/margin_service.rb +0 -50
  504. data/lib/stripe/services/order_service.rb +0 -53
  505. data/lib/stripe/services/payment_plan_service.rb +0 -50
  506. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  507. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  508. data/lib/stripe/services/privacy_service.rb +0 -13
  509. data/lib/stripe/services/quote_line_service.rb +0 -17
  510. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  511. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  512. data/lib/stripe/services/radar/billing_evaluation_service.rb +0 -19
  513. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  514. data/lib/stripe/services/reserve/plan_service.rb +0 -30
  515. data/lib/stripe/services/reserve/release_service.rb +0 -30
  516. data/lib/stripe/services/reserve_service.rb +0 -15
  517. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  518. data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
  519. data/lib/stripe/services/shared_payment_service.rb +0 -14
  520. data/lib/stripe/services/tax/form_service.rb +0 -37
  521. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  522. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  523. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  524. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  525. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  526. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  527. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
  528. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  529. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  530. data/lib/stripe/services/v2/core/approval_request_service.rb +0 -58
  531. data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
  532. data/lib/stripe/services/v2/data/query_run_service.rb +0 -34
  533. data/lib/stripe/services/v2/data/report_run_service.rb +0 -36
  534. data/lib/stripe/services/v2/data/report_service.rb +0 -34
  535. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
  536. data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
  537. data/lib/stripe/services/v2/data/schema_service.rb +0 -32
  538. data/lib/stripe/services/v2/data_service.rb +0 -19
  539. data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
  540. data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
  541. data/lib/stripe/services/v2/extend_service.rb +0 -16
  542. data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
  543. data/lib/stripe/services/v2/iam_service.rb +0 -15
  544. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -35
  545. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -61
  546. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  547. data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
  548. data/lib/stripe/services/v2/network_service.rb +0 -15
  549. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
  550. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
  551. data/lib/stripe/services/v2/signals/account_activity_service.rb +0 -43
  552. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
  553. data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
  554. data/lib/stripe/services/v2/signals_service.rb +0 -17
@@ -145,18 +145,6 @@ module Stripe
145
145
  end
146
146
  end
147
147
 
148
- class Surcharge < ::Stripe::RequestParams
149
- # Portion of the amount that corresponds to a surcharge.
150
- attr_accessor :amount
151
- # Indicate whether to enforce validations on the surcharge amount.
152
- attr_accessor :enforce_validation
153
-
154
- def initialize(amount: nil, enforce_validation: nil)
155
- @amount = amount
156
- @enforce_validation = enforce_validation
157
- end
158
- end
159
-
160
148
  class Tax < ::Stripe::RequestParams
161
149
  # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
162
150
  #
@@ -181,8 +169,6 @@ module Stripe
181
169
  attr_accessor :line_items
182
170
  # Contains information about the shipping portion of the amount.
183
171
  attr_accessor :shipping
184
- # Contains information about the surcharge portion of the amount.
185
- attr_accessor :surcharge
186
172
  # Contains information about the tax portion of the amount.
187
173
  attr_accessor :tax
188
174
 
@@ -191,14 +177,12 @@ module Stripe
191
177
  enforce_arithmetic_validation: nil,
192
178
  line_items: nil,
193
179
  shipping: nil,
194
- surcharge: nil,
195
180
  tax: nil
196
181
  )
197
182
  @discount_amount = discount_amount
198
183
  @enforce_arithmetic_validation = enforce_arithmetic_validation
199
184
  @line_items = line_items
200
185
  @shipping = shipping
201
- @surcharge = surcharge
202
186
  @tax = tax
203
187
  end
204
188
  end
@@ -282,232 +266,6 @@ module Stripe
282
266
  end
283
267
 
284
268
  class PaymentDetails < ::Stripe::RequestParams
285
- class CarRental < ::Stripe::RequestParams
286
- class Affiliate < ::Stripe::RequestParams
287
- # The name of the affiliate that originated the purchase.
288
- attr_accessor :name
289
-
290
- def initialize(name: nil)
291
- @name = name
292
- end
293
- end
294
-
295
- class Delivery < ::Stripe::RequestParams
296
- class Recipient < ::Stripe::RequestParams
297
- # The email of the recipient the ticket is delivered to.
298
- attr_accessor :email
299
- # The name of the recipient the ticket is delivered to.
300
- attr_accessor :name
301
- # The phone number of the recipient the ticket is delivered to.
302
- attr_accessor :phone
303
-
304
- def initialize(email: nil, name: nil, phone: nil)
305
- @email = email
306
- @name = name
307
- @phone = phone
308
- end
309
- end
310
- # The delivery method for the payment
311
- attr_accessor :mode
312
- # Details of the recipient.
313
- attr_accessor :recipient
314
-
315
- def initialize(mode: nil, recipient: nil)
316
- @mode = mode
317
- @recipient = recipient
318
- end
319
- end
320
-
321
- class Distance < ::Stripe::RequestParams
322
- # Distance traveled.
323
- attr_accessor :amount
324
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
325
- attr_accessor :unit
326
-
327
- def initialize(amount: nil, unit: nil)
328
- @amount = amount
329
- @unit = unit
330
- end
331
- end
332
-
333
- class Driver < ::Stripe::RequestParams
334
- # Driver's identification number.
335
- attr_accessor :driver_identification_number
336
- # Driver's tax number.
337
- attr_accessor :driver_tax_number
338
- # Full name of the person or entity on the car reservation.
339
- attr_accessor :name
340
-
341
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
342
- @driver_identification_number = driver_identification_number
343
- @driver_tax_number = driver_tax_number
344
- @name = name
345
- end
346
- end
347
-
348
- class PickupAddress < ::Stripe::RequestParams
349
- # City, district, suburb, town, or village.
350
- attr_accessor :city
351
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
352
- attr_accessor :country
353
- # Address line 1, such as the street, PO Box, or company name.
354
- attr_accessor :line1
355
- # Address line 2, such as the apartment, suite, unit, or building.
356
- attr_accessor :line2
357
- # ZIP or postal code.
358
- attr_accessor :postal_code
359
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
360
- attr_accessor :state
361
-
362
- def initialize(
363
- city: nil,
364
- country: nil,
365
- line1: nil,
366
- line2: nil,
367
- postal_code: nil,
368
- state: nil
369
- )
370
- @city = city
371
- @country = country
372
- @line1 = line1
373
- @line2 = line2
374
- @postal_code = postal_code
375
- @state = state
376
- end
377
- end
378
-
379
- class ReturnAddress < ::Stripe::RequestParams
380
- # City, district, suburb, town, or village.
381
- attr_accessor :city
382
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
383
- attr_accessor :country
384
- # Address line 1, such as the street, PO Box, or company name.
385
- attr_accessor :line1
386
- # Address line 2, such as the apartment, suite, unit, or building.
387
- attr_accessor :line2
388
- # ZIP or postal code.
389
- attr_accessor :postal_code
390
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
391
- attr_accessor :state
392
-
393
- def initialize(
394
- city: nil,
395
- country: nil,
396
- line1: nil,
397
- line2: nil,
398
- postal_code: nil,
399
- state: nil
400
- )
401
- @city = city
402
- @country = country
403
- @line1 = line1
404
- @line2 = line2
405
- @postal_code = postal_code
406
- @state = state
407
- end
408
- end
409
- # Affiliate details for this purchase.
410
- attr_accessor :affiliate
411
- # The booking number associated with the car rental.
412
- attr_accessor :booking_number
413
- # Class code of the car.
414
- attr_accessor :car_class_code
415
- # Make of the car.
416
- attr_accessor :car_make
417
- # Model of the car.
418
- attr_accessor :car_model
419
- # The name of the rental car company.
420
- attr_accessor :company
421
- # The customer service phone number of the car rental company.
422
- attr_accessor :customer_service_phone_number
423
- # Number of days the car is being rented.
424
- attr_accessor :days_rented
425
- # Delivery details for this purchase.
426
- attr_accessor :delivery
427
- # The details of the distance traveled during the rental period.
428
- attr_accessor :distance
429
- # The details of the passengers in the travel reservation
430
- attr_accessor :drivers
431
- # List of additional charges being billed.
432
- attr_accessor :extra_charges
433
- # Indicates if the customer did not keep nor cancel their booking.
434
- attr_accessor :no_show
435
- # Car pick-up address.
436
- attr_accessor :pickup_address
437
- # Car pick-up time. Measured in seconds since the Unix epoch.
438
- attr_accessor :pickup_at
439
- # Name of the pickup location.
440
- attr_accessor :pickup_location_name
441
- # Rental rate.
442
- attr_accessor :rate_amount
443
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
444
- attr_accessor :rate_interval
445
- # The name of the person or entity renting the car.
446
- attr_accessor :renter_name
447
- # Car return address.
448
- attr_accessor :return_address
449
- # Car return time. Measured in seconds since the Unix epoch.
450
- attr_accessor :return_at
451
- # Name of the return location.
452
- attr_accessor :return_location_name
453
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
454
- attr_accessor :tax_exempt
455
- # The vehicle identification number.
456
- attr_accessor :vehicle_identification_number
457
-
458
- def initialize(
459
- affiliate: nil,
460
- booking_number: nil,
461
- car_class_code: nil,
462
- car_make: nil,
463
- car_model: nil,
464
- company: nil,
465
- customer_service_phone_number: nil,
466
- days_rented: nil,
467
- delivery: nil,
468
- distance: nil,
469
- drivers: nil,
470
- extra_charges: nil,
471
- no_show: nil,
472
- pickup_address: nil,
473
- pickup_at: nil,
474
- pickup_location_name: nil,
475
- rate_amount: nil,
476
- rate_interval: nil,
477
- renter_name: nil,
478
- return_address: nil,
479
- return_at: nil,
480
- return_location_name: nil,
481
- tax_exempt: nil,
482
- vehicle_identification_number: nil
483
- )
484
- @affiliate = affiliate
485
- @booking_number = booking_number
486
- @car_class_code = car_class_code
487
- @car_make = car_make
488
- @car_model = car_model
489
- @company = company
490
- @customer_service_phone_number = customer_service_phone_number
491
- @days_rented = days_rented
492
- @delivery = delivery
493
- @distance = distance
494
- @drivers = drivers
495
- @extra_charges = extra_charges
496
- @no_show = no_show
497
- @pickup_address = pickup_address
498
- @pickup_at = pickup_at
499
- @pickup_location_name = pickup_location_name
500
- @rate_amount = rate_amount
501
- @rate_interval = rate_interval
502
- @renter_name = renter_name
503
- @return_address = return_address
504
- @return_at = return_at
505
- @return_location_name = return_location_name
506
- @tax_exempt = tax_exempt
507
- @vehicle_identification_number = vehicle_identification_number
508
- end
509
- end
510
-
511
269
  class CarRentalDatum < ::Stripe::RequestParams
512
270
  class Affiliate < ::Stripe::RequestParams
513
271
  # Affiliate partner code.
@@ -715,817 +473,154 @@ module Stripe
715
473
  end
716
474
  end
717
475
 
718
- class Tax < ::Stripe::RequestParams
719
- class TaxItem < ::Stripe::RequestParams
720
- # Tax amount.
721
- attr_accessor :amount
722
- # Tax rate applied.
723
- attr_accessor :rate
724
- # Type of tax applied.
725
- attr_accessor :type
726
-
727
- def initialize(amount: nil, rate: nil, type: nil)
728
- @amount = amount
729
- @rate = rate
730
- @type = type
731
- end
732
- end
733
- # Indicates if the transaction is tax exempt.
734
- attr_accessor :tax_exempt_indicator
735
- # Array of tax details.
736
- attr_accessor :tax_items
737
-
738
- def initialize(tax_exempt_indicator: nil, tax_items: nil)
739
- @tax_exempt_indicator = tax_exempt_indicator
740
- @tax_items = tax_items
741
- end
742
- end
743
- # Total amount in cents.
744
- attr_accessor :amount
745
- # Currency of the amount.
746
- attr_accessor :currency
747
- # Discount details for the rental.
748
- attr_accessor :discounts
749
- # Additional charges for the rental.
750
- attr_accessor :extra_charges
751
- # Rate per unit for the rental.
752
- attr_accessor :rate_per_unit
753
- # Unit of measurement for the rate.
754
- attr_accessor :rate_unit
755
- # Tax breakdown for the rental.
756
- attr_accessor :tax
757
-
758
- def initialize(
759
- amount: nil,
760
- currency: nil,
761
- discounts: nil,
762
- extra_charges: nil,
763
- rate_per_unit: nil,
764
- rate_unit: nil,
765
- tax: nil
766
- )
767
- @amount = amount
768
- @currency = currency
769
- @discounts = discounts
770
- @extra_charges = extra_charges
771
- @rate_per_unit = rate_per_unit
772
- @rate_unit = rate_unit
773
- @tax = tax
774
- end
775
- end
776
-
777
- class Vehicle < ::Stripe::RequestParams
778
- # Make of the rental vehicle.
779
- attr_accessor :make
780
- # Model of the rental vehicle.
781
- attr_accessor :model
782
- # Odometer reading at the time of rental.
783
- attr_accessor :odometer
784
- # Type of the rental vehicle.
785
- attr_accessor :type
786
- # Class of the rental vehicle.
787
- attr_accessor :vehicle_class
788
- # Vehicle identification number (VIN).
789
- attr_accessor :vehicle_identification_number
790
-
791
- def initialize(
792
- make: nil,
793
- model: nil,
794
- odometer: nil,
795
- type: nil,
796
- vehicle_class: nil,
797
- vehicle_identification_number: nil
798
- )
799
- @make = make
800
- @model = model
801
- @odometer = odometer
802
- @type = type
803
- @vehicle_class = vehicle_class
804
- @vehicle_identification_number = vehicle_identification_number
805
- end
806
- end
807
- # Affiliate (such as travel agency) details for the rental.
808
- attr_accessor :affiliate
809
- # Booking confirmation number for the car rental.
810
- attr_accessor :booking_number
811
- # Name of the car rental company.
812
- attr_accessor :carrier_name
813
- # Customer service phone number for the car rental company.
814
- attr_accessor :customer_service_phone_number
815
- # Number of days the car is being rented.
816
- attr_accessor :days_rented
817
- # Distance details for the rental.
818
- attr_accessor :distance
819
- # List of drivers for the rental.
820
- attr_accessor :drivers
821
- # Drop-off location details.
822
- attr_accessor :drop_off
823
- # Insurance details for the rental.
824
- attr_accessor :insurances
825
- # Indicates if the customer was a no-show.
826
- attr_accessor :no_show_indicator
827
- # Pickup location details.
828
- attr_accessor :pickup
829
- # Name of the person renting the vehicle.
830
- attr_accessor :renter_name
831
- # Total cost breakdown for the rental.
832
- attr_accessor :total
833
- # Vehicle details for the rental.
834
- attr_accessor :vehicle
835
-
836
- def initialize(
837
- affiliate: nil,
838
- booking_number: nil,
839
- carrier_name: nil,
840
- customer_service_phone_number: nil,
841
- days_rented: nil,
842
- distance: nil,
843
- drivers: nil,
844
- drop_off: nil,
845
- insurances: nil,
846
- no_show_indicator: nil,
847
- pickup: nil,
848
- renter_name: nil,
849
- total: nil,
850
- vehicle: nil
851
- )
852
- @affiliate = affiliate
853
- @booking_number = booking_number
854
- @carrier_name = carrier_name
855
- @customer_service_phone_number = customer_service_phone_number
856
- @days_rented = days_rented
857
- @distance = distance
858
- @drivers = drivers
859
- @drop_off = drop_off
860
- @insurances = insurances
861
- @no_show_indicator = no_show_indicator
862
- @pickup = pickup
863
- @renter_name = renter_name
864
- @total = total
865
- @vehicle = vehicle
866
- end
867
- end
868
-
869
- class EventDetails < ::Stripe::RequestParams
870
- class Address < ::Stripe::RequestParams
871
- # City, district, suburb, town, or village.
872
- attr_accessor :city
873
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
874
- attr_accessor :country
875
- # Address line 1, such as the street, PO Box, or company name.
876
- attr_accessor :line1
877
- # Address line 2, such as the apartment, suite, unit, or building.
878
- attr_accessor :line2
879
- # ZIP or postal code.
880
- attr_accessor :postal_code
881
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
882
- attr_accessor :state
883
-
884
- def initialize(
885
- city: nil,
886
- country: nil,
887
- line1: nil,
888
- line2: nil,
889
- postal_code: nil,
890
- state: nil
891
- )
892
- @city = city
893
- @country = country
894
- @line1 = line1
895
- @line2 = line2
896
- @postal_code = postal_code
897
- @state = state
898
- end
899
- end
900
-
901
- class Affiliate < ::Stripe::RequestParams
902
- # The name of the affiliate that originated the purchase.
903
- attr_accessor :name
904
-
905
- def initialize(name: nil)
906
- @name = name
907
- end
908
- end
909
-
910
- class Delivery < ::Stripe::RequestParams
911
- class Recipient < ::Stripe::RequestParams
912
- # The email of the recipient the ticket is delivered to.
913
- attr_accessor :email
914
- # The name of the recipient the ticket is delivered to.
915
- attr_accessor :name
916
- # The phone number of the recipient the ticket is delivered to.
917
- attr_accessor :phone
918
-
919
- def initialize(email: nil, name: nil, phone: nil)
920
- @email = email
921
- @name = name
922
- @phone = phone
923
- end
924
- end
925
- # The delivery method for the payment
926
- attr_accessor :mode
927
- # Details of the recipient.
928
- attr_accessor :recipient
929
-
930
- def initialize(mode: nil, recipient: nil)
931
- @mode = mode
932
- @recipient = recipient
933
- end
934
- end
935
- # Indicates if the tickets are digitally checked when entering the venue.
936
- attr_accessor :access_controlled_venue
937
- # The event location's address.
938
- attr_accessor :address
939
- # Affiliate details for this purchase.
940
- attr_accessor :affiliate
941
- # The name of the company
942
- attr_accessor :company
943
- # Delivery details for this purchase.
944
- attr_accessor :delivery
945
- # Event end time. Measured in seconds since the Unix epoch.
946
- attr_accessor :ends_at
947
- # Type of the event entertainment (concert, sports event etc)
948
- attr_accessor :genre
949
- # The name of the event.
950
- attr_accessor :name
951
- # Event start time. Measured in seconds since the Unix epoch.
952
- attr_accessor :starts_at
953
-
954
- def initialize(
955
- access_controlled_venue: nil,
956
- address: nil,
957
- affiliate: nil,
958
- company: nil,
959
- delivery: nil,
960
- ends_at: nil,
961
- genre: nil,
962
- name: nil,
963
- starts_at: nil
964
- )
965
- @access_controlled_venue = access_controlled_venue
966
- @address = address
967
- @affiliate = affiliate
968
- @company = company
969
- @delivery = delivery
970
- @ends_at = ends_at
971
- @genre = genre
972
- @name = name
973
- @starts_at = starts_at
974
- end
975
- end
976
-
977
- class Flight < ::Stripe::RequestParams
978
- class Affiliate < ::Stripe::RequestParams
979
- # The name of the affiliate that originated the purchase.
980
- attr_accessor :name
981
-
982
- def initialize(name: nil)
983
- @name = name
984
- end
985
- end
986
-
987
- class Delivery < ::Stripe::RequestParams
988
- class Recipient < ::Stripe::RequestParams
989
- # The email of the recipient the ticket is delivered to.
990
- attr_accessor :email
991
- # The name of the recipient the ticket is delivered to.
992
- attr_accessor :name
993
- # The phone number of the recipient the ticket is delivered to.
994
- attr_accessor :phone
995
-
996
- def initialize(email: nil, name: nil, phone: nil)
997
- @email = email
998
- @name = name
999
- @phone = phone
1000
- end
1001
- end
1002
- # The delivery method for the payment
1003
- attr_accessor :mode
1004
- # Details of the recipient.
1005
- attr_accessor :recipient
1006
-
1007
- def initialize(mode: nil, recipient: nil)
1008
- @mode = mode
1009
- @recipient = recipient
1010
- end
1011
- end
1012
-
1013
- class Passenger < ::Stripe::RequestParams
1014
- # Full name of the person or entity on the flight reservation.
1015
- attr_accessor :name
1016
-
1017
- def initialize(name: nil)
1018
- @name = name
1019
- end
1020
- end
1021
-
1022
- class Segment < ::Stripe::RequestParams
1023
- # The flight segment amount.
1024
- attr_accessor :amount
1025
- # The International Air Transport Association (IATA) airport code for the arrival airport.
1026
- attr_accessor :arrival_airport
1027
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1028
- attr_accessor :arrives_at
1029
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1030
- attr_accessor :carrier
1031
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1032
- attr_accessor :departs_at
1033
- # The International Air Transport Association (IATA) airport code for the departure airport.
1034
- attr_accessor :departure_airport
1035
- # The flight number associated with the segment
1036
- attr_accessor :flight_number
1037
- # The fare class for the segment.
1038
- attr_accessor :service_class
1039
-
1040
- def initialize(
1041
- amount: nil,
1042
- arrival_airport: nil,
1043
- arrives_at: nil,
1044
- carrier: nil,
1045
- departs_at: nil,
1046
- departure_airport: nil,
1047
- flight_number: nil,
1048
- service_class: nil
1049
- )
1050
- @amount = amount
1051
- @arrival_airport = arrival_airport
1052
- @arrives_at = arrives_at
1053
- @carrier = carrier
1054
- @departs_at = departs_at
1055
- @departure_airport = departure_airport
1056
- @flight_number = flight_number
1057
- @service_class = service_class
1058
- end
1059
- end
1060
- # Affiliate details for this purchase.
1061
- attr_accessor :affiliate
1062
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1063
- attr_accessor :agency_number
1064
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1065
- attr_accessor :carrier
1066
- # Delivery details for this purchase.
1067
- attr_accessor :delivery
1068
- # The name of the person or entity on the reservation.
1069
- attr_accessor :passenger_name
1070
- # The details of the passengers in the travel reservation.
1071
- attr_accessor :passengers
1072
- # The individual flight segments associated with the trip.
1073
- attr_accessor :segments
1074
- # The ticket number associated with the travel reservation.
1075
- attr_accessor :ticket_number
1076
-
1077
- def initialize(
1078
- affiliate: nil,
1079
- agency_number: nil,
1080
- carrier: nil,
1081
- delivery: nil,
1082
- passenger_name: nil,
1083
- passengers: nil,
1084
- segments: nil,
1085
- ticket_number: nil
1086
- )
1087
- @affiliate = affiliate
1088
- @agency_number = agency_number
1089
- @carrier = carrier
1090
- @delivery = delivery
1091
- @passenger_name = passenger_name
1092
- @passengers = passengers
1093
- @segments = segments
1094
- @ticket_number = ticket_number
1095
- end
1096
- end
1097
-
1098
- class FlightDatum < ::Stripe::RequestParams
1099
- class Affiliate < ::Stripe::RequestParams
1100
- # Affiliate partner code.
1101
- attr_accessor :code
1102
- # Name of affiliate partner.
1103
- attr_accessor :name
1104
- # Code provided by the company to a travel agent authorizing ticket issuance.
1105
- attr_accessor :travel_authorization_code
1106
-
1107
- def initialize(code: nil, name: nil, travel_authorization_code: nil)
1108
- @code = code
1109
- @name = name
1110
- @travel_authorization_code = travel_authorization_code
1111
- end
1112
- end
1113
-
1114
- class Insurance < ::Stripe::RequestParams
1115
- # Insurance cost.
1116
- attr_accessor :amount
1117
- # Insurance currency.
1118
- attr_accessor :currency
1119
- # Insurance company name.
1120
- attr_accessor :insurance_company_name
1121
- # Type of insurance.
1122
- attr_accessor :insurance_type
1123
-
1124
- def initialize(
1125
- amount: nil,
1126
- currency: nil,
1127
- insurance_company_name: nil,
1128
- insurance_type: nil
1129
- )
1130
- @amount = amount
1131
- @currency = currency
1132
- @insurance_company_name = insurance_company_name
1133
- @insurance_type = insurance_type
1134
- end
1135
- end
1136
-
1137
- class Passenger < ::Stripe::RequestParams
1138
- # Passenger's full name.
1139
- attr_accessor :name
1140
-
1141
- def initialize(name: nil)
1142
- @name = name
1143
- end
1144
- end
1145
-
1146
- class Segment < ::Stripe::RequestParams
1147
- class Arrival < ::Stripe::RequestParams
1148
- # Arrival airport IATA code.
1149
- attr_accessor :airport
1150
- # Arrival date/time.
1151
- attr_accessor :arrives_at
1152
- # Arrival city.
1153
- attr_accessor :city
1154
- # Arrival country.
1155
- attr_accessor :country
1156
-
1157
- def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1158
- @airport = airport
1159
- @arrives_at = arrives_at
1160
- @city = city
1161
- @country = country
1162
- end
1163
- end
1164
-
1165
- class Departure < ::Stripe::RequestParams
1166
- # Departure airport IATA code.
1167
- attr_accessor :airport
1168
- # Departure city.
1169
- attr_accessor :city
1170
- # Departure country.
1171
- attr_accessor :country
1172
- # Departure date/time.
1173
- attr_accessor :departs_at
1174
-
1175
- def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1176
- @airport = airport
1177
- @city = city
1178
- @country = country
1179
- @departs_at = departs_at
1180
- end
1181
- end
1182
- # Segment fare amount.
1183
- attr_accessor :amount
1184
- # Arrival details.
1185
- attr_accessor :arrival
1186
- # Airline carrier code.
1187
- attr_accessor :carrier_code
1188
- # Carrier name.
1189
- attr_accessor :carrier_name
1190
- # Segment currency.
1191
- attr_accessor :currency
1192
- # Departure details.
1193
- attr_accessor :departure
1194
- # Exchange ticket number.
1195
- attr_accessor :exchange_ticket_number
1196
- # Fare basis code.
1197
- attr_accessor :fare_basis_code
1198
- # Additional fees.
1199
- attr_accessor :fees
1200
- # Flight number.
1201
- attr_accessor :flight_number
1202
- # Stopover indicator.
1203
- attr_accessor :is_stop_over_indicator
1204
- # Refundable ticket indicator.
1205
- attr_accessor :refundable
1206
- # Class of service.
1207
- attr_accessor :service_class
1208
- # Tax amount for segment.
1209
- attr_accessor :tax_amount
1210
- # Ticket number.
1211
- attr_accessor :ticket_number
1212
-
1213
- def initialize(
1214
- amount: nil,
1215
- arrival: nil,
1216
- carrier_code: nil,
1217
- carrier_name: nil,
1218
- currency: nil,
1219
- departure: nil,
1220
- exchange_ticket_number: nil,
1221
- fare_basis_code: nil,
1222
- fees: nil,
1223
- flight_number: nil,
1224
- is_stop_over_indicator: nil,
1225
- refundable: nil,
1226
- service_class: nil,
1227
- tax_amount: nil,
1228
- ticket_number: nil
1229
- )
1230
- @amount = amount
1231
- @arrival = arrival
1232
- @carrier_code = carrier_code
1233
- @carrier_name = carrier_name
1234
- @currency = currency
1235
- @departure = departure
1236
- @exchange_ticket_number = exchange_ticket_number
1237
- @fare_basis_code = fare_basis_code
1238
- @fees = fees
1239
- @flight_number = flight_number
1240
- @is_stop_over_indicator = is_stop_over_indicator
1241
- @refundable = refundable
1242
- @service_class = service_class
1243
- @tax_amount = tax_amount
1244
- @ticket_number = ticket_number
1245
- end
1246
- end
1247
-
1248
- class Total < ::Stripe::RequestParams
1249
- class Discounts < ::Stripe::RequestParams
1250
- # Corporate client discount code.
1251
- attr_accessor :corporate_client_code
1252
-
1253
- def initialize(corporate_client_code: nil)
1254
- @corporate_client_code = corporate_client_code
1255
- end
1256
- end
1257
-
1258
- class ExtraCharge < ::Stripe::RequestParams
1259
- # Amount of additional charges.
1260
- attr_accessor :amount
1261
- # Type of additional charges.
1262
- attr_accessor :type
1263
-
1264
- def initialize(amount: nil, type: nil)
1265
- @amount = amount
1266
- @type = type
1267
- end
1268
- end
1269
-
1270
- class Tax < ::Stripe::RequestParams
1271
- class TaxItem < ::Stripe::RequestParams
1272
- # Tax amount.
1273
- attr_accessor :amount
1274
- # Tax rate.
1275
- attr_accessor :rate
1276
- # Type of tax.
1277
- attr_accessor :type
1278
-
1279
- def initialize(amount: nil, rate: nil, type: nil)
1280
- @amount = amount
1281
- @rate = rate
1282
- @type = type
1283
- end
1284
- end
1285
- # Array of tax details.
1286
- attr_accessor :tax_items
1287
-
1288
- def initialize(tax_items: nil)
1289
- @tax_items = tax_items
1290
- end
1291
- end
1292
- # Total flight amount.
1293
- attr_accessor :amount
1294
- # Reason for credit.
1295
- attr_accessor :credit_reason
1296
- # Total currency.
1297
- attr_accessor :currency
1298
- # Discount details.
1299
- attr_accessor :discounts
1300
- # Additional charges.
1301
- attr_accessor :extra_charges
1302
- # Tax breakdown.
1303
- attr_accessor :tax
1304
-
1305
- def initialize(
1306
- amount: nil,
1307
- credit_reason: nil,
1308
- currency: nil,
1309
- discounts: nil,
1310
- extra_charges: nil,
1311
- tax: nil
1312
- )
1313
- @amount = amount
1314
- @credit_reason = credit_reason
1315
- @currency = currency
1316
- @discounts = discounts
1317
- @extra_charges = extra_charges
1318
- @tax = tax
1319
- end
1320
- end
1321
- # Affiliate details if applicable.
1322
- attr_accessor :affiliate
1323
- # Reservation reference.
1324
- attr_accessor :booking_number
1325
- # Computerized reservation system used to make the reservation and purchase the ticket.
1326
- attr_accessor :computerized_reservation_system
1327
- # Ticket restrictions.
1328
- attr_accessor :endorsements_and_restrictions
1329
- # List of insurances.
1330
- attr_accessor :insurances
1331
- # List of passengers.
1332
- attr_accessor :passengers
1333
- # List of flight segments.
1334
- attr_accessor :segments
1335
- # Electronic ticket indicator.
1336
- attr_accessor :ticket_electronically_issued_indicator
1337
- # Total cost breakdown.
1338
- attr_accessor :total
1339
- # Type of flight transaction.
1340
- attr_accessor :transaction_type
1341
-
1342
- def initialize(
1343
- affiliate: nil,
1344
- booking_number: nil,
1345
- computerized_reservation_system: nil,
1346
- endorsements_and_restrictions: nil,
1347
- insurances: nil,
1348
- passengers: nil,
1349
- segments: nil,
1350
- ticket_electronically_issued_indicator: nil,
1351
- total: nil,
1352
- transaction_type: nil
1353
- )
1354
- @affiliate = affiliate
1355
- @booking_number = booking_number
1356
- @computerized_reservation_system = computerized_reservation_system
1357
- @endorsements_and_restrictions = endorsements_and_restrictions
1358
- @insurances = insurances
1359
- @passengers = passengers
1360
- @segments = segments
1361
- @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1362
- @total = total
1363
- @transaction_type = transaction_type
1364
- end
1365
- end
1366
-
1367
- class Lodging < ::Stripe::RequestParams
1368
- class Address < ::Stripe::RequestParams
1369
- # City, district, suburb, town, or village.
1370
- attr_accessor :city
1371
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1372
- attr_accessor :country
1373
- # Address line 1, such as the street, PO Box, or company name.
1374
- attr_accessor :line1
1375
- # Address line 2, such as the apartment, suite, unit, or building.
1376
- attr_accessor :line2
1377
- # ZIP or postal code.
1378
- attr_accessor :postal_code
1379
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1380
- attr_accessor :state
1381
-
1382
- def initialize(
1383
- city: nil,
1384
- country: nil,
1385
- line1: nil,
1386
- line2: nil,
1387
- postal_code: nil,
1388
- state: nil
1389
- )
1390
- @city = city
1391
- @country = country
1392
- @line1 = line1
1393
- @line2 = line2
1394
- @postal_code = postal_code
1395
- @state = state
1396
- end
1397
- end
1398
-
1399
- class Affiliate < ::Stripe::RequestParams
1400
- # The name of the affiliate that originated the purchase.
1401
- attr_accessor :name
1402
-
1403
- def initialize(name: nil)
1404
- @name = name
1405
- end
1406
- end
1407
-
1408
- class Delivery < ::Stripe::RequestParams
1409
- class Recipient < ::Stripe::RequestParams
1410
- # The email of the recipient the ticket is delivered to.
1411
- attr_accessor :email
1412
- # The name of the recipient the ticket is delivered to.
1413
- attr_accessor :name
1414
- # The phone number of the recipient the ticket is delivered to.
1415
- attr_accessor :phone
1416
-
1417
- def initialize(email: nil, name: nil, phone: nil)
1418
- @email = email
1419
- @name = name
1420
- @phone = phone
476
+ class Tax < ::Stripe::RequestParams
477
+ class TaxItem < ::Stripe::RequestParams
478
+ # Tax amount.
479
+ attr_accessor :amount
480
+ # Tax rate applied.
481
+ attr_accessor :rate
482
+ # Type of tax applied.
483
+ attr_accessor :type
484
+
485
+ def initialize(amount: nil, rate: nil, type: nil)
486
+ @amount = amount
487
+ @rate = rate
488
+ @type = type
489
+ end
490
+ end
491
+ # Indicates if the transaction is tax exempt.
492
+ attr_accessor :tax_exempt_indicator
493
+ # Array of tax details.
494
+ attr_accessor :tax_items
495
+
496
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
497
+ @tax_exempt_indicator = tax_exempt_indicator
498
+ @tax_items = tax_items
1421
499
  end
1422
500
  end
1423
- # The delivery method for the payment
1424
- attr_accessor :mode
1425
- # Details of the recipient.
1426
- attr_accessor :recipient
1427
-
1428
- def initialize(mode: nil, recipient: nil)
1429
- @mode = mode
1430
- @recipient = recipient
501
+ # Total amount in cents.
502
+ attr_accessor :amount
503
+ # Currency of the amount.
504
+ attr_accessor :currency
505
+ # Discount details for the rental.
506
+ attr_accessor :discounts
507
+ # Additional charges for the rental.
508
+ attr_accessor :extra_charges
509
+ # Rate per unit for the rental.
510
+ attr_accessor :rate_per_unit
511
+ # Unit of measurement for the rate.
512
+ attr_accessor :rate_unit
513
+ # Tax breakdown for the rental.
514
+ attr_accessor :tax
515
+
516
+ def initialize(
517
+ amount: nil,
518
+ currency: nil,
519
+ discounts: nil,
520
+ extra_charges: nil,
521
+ rate_per_unit: nil,
522
+ rate_unit: nil,
523
+ tax: nil
524
+ )
525
+ @amount = amount
526
+ @currency = currency
527
+ @discounts = discounts
528
+ @extra_charges = extra_charges
529
+ @rate_per_unit = rate_per_unit
530
+ @rate_unit = rate_unit
531
+ @tax = tax
1431
532
  end
1432
533
  end
1433
534
 
1434
- class Passenger < ::Stripe::RequestParams
1435
- # Full name of the person or entity on the lodging reservation.
1436
- attr_accessor :name
535
+ class Vehicle < ::Stripe::RequestParams
536
+ # Make of the rental vehicle.
537
+ attr_accessor :make
538
+ # Model of the rental vehicle.
539
+ attr_accessor :model
540
+ # Odometer reading at the time of rental.
541
+ attr_accessor :odometer
542
+ # Type of the rental vehicle.
543
+ attr_accessor :type
544
+ # Class of the rental vehicle.
545
+ attr_accessor :vehicle_class
546
+ # Vehicle identification number (VIN).
547
+ attr_accessor :vehicle_identification_number
1437
548
 
1438
- def initialize(name: nil)
1439
- @name = name
549
+ def initialize(
550
+ make: nil,
551
+ model: nil,
552
+ odometer: nil,
553
+ type: nil,
554
+ vehicle_class: nil,
555
+ vehicle_identification_number: nil
556
+ )
557
+ @make = make
558
+ @model = model
559
+ @odometer = odometer
560
+ @type = type
561
+ @vehicle_class = vehicle_class
562
+ @vehicle_identification_number = vehicle_identification_number
1440
563
  end
1441
564
  end
1442
- # The lodging location's address.
1443
- attr_accessor :address
1444
- # The number of adults on the booking
1445
- attr_accessor :adults
1446
- # Affiliate details for this purchase.
565
+ # Affiliate (such as travel agency) details for the rental.
1447
566
  attr_accessor :affiliate
1448
- # The booking number associated with the lodging reservation.
567
+ # Booking confirmation number for the car rental.
1449
568
  attr_accessor :booking_number
1450
- # The lodging category
1451
- attr_accessor :category
1452
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1453
- attr_accessor :checkin_at
1454
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1455
- attr_accessor :checkout_at
1456
- # The customer service phone number of the lodging company.
569
+ # Name of the car rental company.
570
+ attr_accessor :carrier_name
571
+ # Customer service phone number for the car rental company.
1457
572
  attr_accessor :customer_service_phone_number
1458
- # The daily lodging room rate.
1459
- attr_accessor :daily_room_rate_amount
1460
- # Delivery details for this purchase.
1461
- attr_accessor :delivery
1462
- # List of additional charges being billed.
1463
- attr_accessor :extra_charges
1464
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
1465
- attr_accessor :fire_safety_act_compliance
1466
- # The name of the lodging location.
1467
- attr_accessor :name
1468
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1469
- attr_accessor :no_show
1470
- # The number of rooms on the booking
1471
- attr_accessor :number_of_rooms
1472
- # The details of the passengers in the travel reservation
1473
- attr_accessor :passengers
1474
- # The phone number of the lodging location.
1475
- attr_accessor :property_phone_number
1476
- # The room class for this purchase.
1477
- attr_accessor :room_class
1478
- # The number of room nights
1479
- attr_accessor :room_nights
1480
- # The total tax amount associating with the room reservation.
1481
- attr_accessor :total_room_tax_amount
1482
- # The total tax amount
1483
- attr_accessor :total_tax_amount
573
+ # Number of days the car is being rented.
574
+ attr_accessor :days_rented
575
+ # Distance details for the rental.
576
+ attr_accessor :distance
577
+ # List of drivers for the rental.
578
+ attr_accessor :drivers
579
+ # Drop-off location details.
580
+ attr_accessor :drop_off
581
+ # Insurance details for the rental.
582
+ attr_accessor :insurances
583
+ # Indicates if the customer was a no-show.
584
+ attr_accessor :no_show_indicator
585
+ # Pickup location details.
586
+ attr_accessor :pickup
587
+ # Name of the person renting the vehicle.
588
+ attr_accessor :renter_name
589
+ # Total cost breakdown for the rental.
590
+ attr_accessor :total
591
+ # Vehicle details for the rental.
592
+ attr_accessor :vehicle
1484
593
 
1485
594
  def initialize(
1486
- address: nil,
1487
- adults: nil,
1488
595
  affiliate: nil,
1489
596
  booking_number: nil,
1490
- category: nil,
1491
- checkin_at: nil,
1492
- checkout_at: nil,
597
+ carrier_name: nil,
1493
598
  customer_service_phone_number: nil,
1494
- daily_room_rate_amount: nil,
1495
- delivery: nil,
1496
- extra_charges: nil,
1497
- fire_safety_act_compliance: nil,
1498
- name: nil,
1499
- no_show: nil,
1500
- number_of_rooms: nil,
1501
- passengers: nil,
1502
- property_phone_number: nil,
1503
- room_class: nil,
1504
- room_nights: nil,
1505
- total_room_tax_amount: nil,
1506
- total_tax_amount: nil
599
+ days_rented: nil,
600
+ distance: nil,
601
+ drivers: nil,
602
+ drop_off: nil,
603
+ insurances: nil,
604
+ no_show_indicator: nil,
605
+ pickup: nil,
606
+ renter_name: nil,
607
+ total: nil,
608
+ vehicle: nil
1507
609
  )
1508
- @address = address
1509
- @adults = adults
1510
610
  @affiliate = affiliate
1511
611
  @booking_number = booking_number
1512
- @category = category
1513
- @checkin_at = checkin_at
1514
- @checkout_at = checkout_at
612
+ @carrier_name = carrier_name
1515
613
  @customer_service_phone_number = customer_service_phone_number
1516
- @daily_room_rate_amount = daily_room_rate_amount
1517
- @delivery = delivery
1518
- @extra_charges = extra_charges
1519
- @fire_safety_act_compliance = fire_safety_act_compliance
1520
- @name = name
1521
- @no_show = no_show
1522
- @number_of_rooms = number_of_rooms
1523
- @passengers = passengers
1524
- @property_phone_number = property_phone_number
1525
- @room_class = room_class
1526
- @room_nights = room_nights
1527
- @total_room_tax_amount = total_room_tax_amount
1528
- @total_tax_amount = total_tax_amount
614
+ @days_rented = days_rented
615
+ @distance = distance
616
+ @drivers = drivers
617
+ @drop_off = drop_off
618
+ @insurances = insurances
619
+ @no_show_indicator = no_show_indicator
620
+ @pickup = pickup
621
+ @renter_name = renter_name
622
+ @total = total
623
+ @vehicle = vehicle
1529
624
  end
1530
625
  end
1531
626
 
@@ -1822,104 +917,29 @@ module Stripe
1822
917
  @total = total
1823
918
  end
1824
919
  end
1825
-
1826
- class Subscription < ::Stripe::RequestParams
1827
- class Affiliate < ::Stripe::RequestParams
1828
- # The name of the affiliate that originated the purchase.
1829
- attr_accessor :name
1830
-
1831
- def initialize(name: nil)
1832
- @name = name
1833
- end
1834
- end
1835
-
1836
- class BillingInterval < ::Stripe::RequestParams
1837
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1838
- attr_accessor :count
1839
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1840
- attr_accessor :interval
1841
-
1842
- def initialize(count: nil, interval: nil)
1843
- @count = count
1844
- @interval = interval
1845
- end
1846
- end
1847
- # Affiliate details for this purchase.
1848
- attr_accessor :affiliate
1849
- # Info whether the subscription will be auto renewed upon expiry.
1850
- attr_accessor :auto_renewal
1851
- # Subscription billing details for this purchase.
1852
- attr_accessor :billing_interval
1853
- # Subscription end time. Measured in seconds since the Unix epoch.
1854
- attr_accessor :ends_at
1855
- # Name of the product on subscription. e.g. Apple Music Subscription
1856
- attr_accessor :name
1857
- # Subscription start time. Measured in seconds since the Unix epoch.
1858
- attr_accessor :starts_at
1859
-
1860
- def initialize(
1861
- affiliate: nil,
1862
- auto_renewal: nil,
1863
- billing_interval: nil,
1864
- ends_at: nil,
1865
- name: nil,
1866
- starts_at: nil
1867
- )
1868
- @affiliate = affiliate
1869
- @auto_renewal = auto_renewal
1870
- @billing_interval = billing_interval
1871
- @ends_at = ends_at
1872
- @name = name
1873
- @starts_at = starts_at
1874
- end
1875
- end
1876
- # Car rental details for this PaymentIntent.
1877
- attr_accessor :car_rental
1878
920
  # Car rental data for this PaymentIntent.
1879
921
  attr_accessor :car_rental_data
1880
922
  # A unique value to identify the customer. This field is available only for card payments.
1881
923
  #
1882
924
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1883
925
  attr_accessor :customer_reference
1884
- # Event details for this PaymentIntent
1885
- attr_accessor :event_details
1886
- # Flight reservation details for this PaymentIntent
1887
- attr_accessor :flight
1888
- # Flight data for this PaymentIntent.
1889
- attr_accessor :flight_data
1890
- # Lodging reservation details for this PaymentIntent
1891
- attr_accessor :lodging
1892
926
  # Lodging data for this PaymentIntent.
1893
927
  attr_accessor :lodging_data
1894
928
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1895
929
  #
1896
930
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1897
931
  attr_accessor :order_reference
1898
- # Subscription details for this PaymentIntent
1899
- attr_accessor :subscription
1900
932
 
1901
933
  def initialize(
1902
- car_rental: nil,
1903
934
  car_rental_data: nil,
1904
935
  customer_reference: nil,
1905
- event_details: nil,
1906
- flight: nil,
1907
- flight_data: nil,
1908
- lodging: nil,
1909
936
  lodging_data: nil,
1910
- order_reference: nil,
1911
- subscription: nil
937
+ order_reference: nil
1912
938
  )
1913
- @car_rental = car_rental
1914
939
  @car_rental_data = car_rental_data
1915
940
  @customer_reference = customer_reference
1916
- @event_details = event_details
1917
- @flight = flight
1918
- @flight_data = flight_data
1919
- @lodging = lodging
1920
941
  @lodging_data = lodging_data
1921
942
  @order_reference = order_reference
1922
- @subscription = subscription
1923
943
  end
1924
944
  end
1925
945
 
@@ -2061,18 +1081,8 @@ module Stripe
2061
1081
  end
2062
1082
 
2063
1083
  class Giropay < ::Stripe::RequestParams; end
2064
- class Gopay < ::Stripe::RequestParams; end
2065
1084
  class Grabpay < ::Stripe::RequestParams; end
2066
1085
 
2067
- class IdBankTransfer < ::Stripe::RequestParams
2068
- # Bank where the account is held.
2069
- attr_accessor :bank
2070
-
2071
- def initialize(bank: nil)
2072
- @bank = bank
2073
- end
2074
- end
2075
-
2076
1086
  class Ideal < ::Stripe::RequestParams
2077
1087
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2078
1088
  attr_accessor :bank
@@ -2189,7 +1199,6 @@ module Stripe
2189
1199
 
2190
1200
  class Pix < ::Stripe::RequestParams; end
2191
1201
  class Promptpay < ::Stripe::RequestParams; end
2192
- class Qris < ::Stripe::RequestParams; end
2193
1202
 
2194
1203
  class RadarOptions < ::Stripe::RequestParams
2195
1204
  # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -2200,29 +1209,6 @@ module Stripe
2200
1209
  end
2201
1210
  end
2202
1211
 
2203
- class Rechnung < ::Stripe::RequestParams
2204
- class Dob < ::Stripe::RequestParams
2205
- # The day of birth, between 1 and 31.
2206
- attr_accessor :day
2207
- # The month of birth, between 1 and 12.
2208
- attr_accessor :month
2209
- # The four-digit year of birth.
2210
- attr_accessor :year
2211
-
2212
- def initialize(day: nil, month: nil, year: nil)
2213
- @day = day
2214
- @month = month
2215
- @year = year
2216
- end
2217
- end
2218
- # Customer's date of birth
2219
- attr_accessor :dob
2220
-
2221
- def initialize(dob: nil)
2222
- @dob = dob
2223
- end
2224
- end
2225
-
2226
1212
  class RevolutPay < ::Stripe::RequestParams; end
2227
1213
  class SamsungPay < ::Stripe::RequestParams; end
2228
1214
  class Satispay < ::Stripe::RequestParams; end
@@ -2238,7 +1224,6 @@ module Stripe
2238
1224
  end
2239
1225
 
2240
1226
  class Sequra < ::Stripe::RequestParams; end
2241
- class Shopeepay < ::Stripe::RequestParams; end
2242
1227
 
2243
1228
  class Sofort < ::Stripe::RequestParams
2244
1229
  # Two-letter ISO code representing the country the bank account is located in.
@@ -2249,15 +1234,6 @@ module Stripe
2249
1234
  end
2250
1235
  end
2251
1236
 
2252
- class StripeBalance < ::Stripe::RequestParams
2253
- # The connected account ID whose Stripe balance to use as the source of payment
2254
- attr_accessor :account
2255
-
2256
- def initialize(account: nil)
2257
- @account = account
2258
- end
2259
- end
2260
-
2261
1237
  class Sunbit < ::Stripe::RequestParams; end
2262
1238
  class Swish < ::Stripe::RequestParams; end
2263
1239
  class Twint < ::Stripe::RequestParams; end
@@ -2289,25 +1265,12 @@ module Stripe
2289
1265
  end
2290
1266
 
2291
1267
  class UsBankAccount < ::Stripe::RequestParams
2292
- class ExternalToken < ::Stripe::RequestParams
2293
- # The Plaid processor token to use for this bank account.
2294
- attr_accessor :plaid_processor_token
2295
- # The type of external token.
2296
- attr_accessor :type
2297
-
2298
- def initialize(plaid_processor_token: nil, type: nil)
2299
- @plaid_processor_token = plaid_processor_token
2300
- @type = type
2301
- end
2302
- end
2303
1268
  # Account holder type: individual or company.
2304
1269
  attr_accessor :account_holder_type
2305
1270
  # Account number of the bank account.
2306
1271
  attr_accessor :account_number
2307
1272
  # Account type: checkings or savings. Defaults to checking if omitted.
2308
1273
  attr_accessor :account_type
2309
- # An external token used to create a payment method.
2310
- attr_accessor :external_token
2311
1274
  # The ID of a Financial Connections Account to use as a payment method.
2312
1275
  attr_accessor :financial_connections_account
2313
1276
  # Routing number of the bank account.
@@ -2317,21 +1280,18 @@ module Stripe
2317
1280
  account_holder_type: nil,
2318
1281
  account_number: nil,
2319
1282
  account_type: nil,
2320
- external_token: nil,
2321
1283
  financial_connections_account: nil,
2322
1284
  routing_number: nil
2323
1285
  )
2324
1286
  @account_holder_type = account_holder_type
2325
1287
  @account_number = account_number
2326
1288
  @account_type = account_type
2327
- @external_token = external_token
2328
1289
  @financial_connections_account = financial_connections_account
2329
1290
  @routing_number = routing_number
2330
1291
  end
2331
1292
  end
2332
1293
 
2333
1294
  class WechatPay < ::Stripe::RequestParams; end
2334
- class Wero < ::Stripe::RequestParams; end
2335
1295
  class Zip < ::Stripe::RequestParams; end
2336
1296
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
2337
1297
  attr_accessor :acss_debit
@@ -2375,12 +1335,8 @@ module Stripe
2375
1335
  attr_accessor :fpx
2376
1336
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2377
1337
  attr_accessor :giropay
2378
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2379
- attr_accessor :gopay
2380
1338
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2381
1339
  attr_accessor :grabpay
2382
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2383
- attr_accessor :id_bank_transfer
2384
1340
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2385
1341
  attr_accessor :ideal
2386
1342
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2427,12 +1383,8 @@ module Stripe
2427
1383
  attr_accessor :pix
2428
1384
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2429
1385
  attr_accessor :promptpay
2430
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2431
- attr_accessor :qris
2432
1386
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2433
1387
  attr_accessor :radar_options
2434
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2435
- attr_accessor :rechnung
2436
1388
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2437
1389
  attr_accessor :revolut_pay
2438
1390
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -2445,14 +1397,8 @@ module Stripe
2445
1397
  attr_accessor :sepa_debit
2446
1398
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
2447
1399
  attr_accessor :sequra
2448
- # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2449
- attr_accessor :shared_payment_granted_token
2450
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2451
- attr_accessor :shopeepay
2452
1400
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2453
1401
  attr_accessor :sofort
2454
- # This hash contains details about the Stripe balance payment method.
2455
- attr_accessor :stripe_balance
2456
1402
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
2457
1403
  attr_accessor :sunbit
2458
1404
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -2467,8 +1413,6 @@ module Stripe
2467
1413
  attr_accessor :us_bank_account
2468
1414
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
2469
1415
  attr_accessor :wechat_pay
2470
- # If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
2471
- attr_accessor :wero
2472
1416
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
2473
1417
  attr_accessor :zip
2474
1418
 
@@ -2494,9 +1438,7 @@ module Stripe
2494
1438
  eps: nil,
2495
1439
  fpx: nil,
2496
1440
  giropay: nil,
2497
- gopay: nil,
2498
1441
  grabpay: nil,
2499
- id_bank_transfer: nil,
2500
1442
  ideal: nil,
2501
1443
  interac_present: nil,
2502
1444
  kakao_pay: nil,
@@ -2520,19 +1462,14 @@ module Stripe
2520
1462
  payto: nil,
2521
1463
  pix: nil,
2522
1464
  promptpay: nil,
2523
- qris: nil,
2524
1465
  radar_options: nil,
2525
- rechnung: nil,
2526
1466
  revolut_pay: nil,
2527
1467
  samsung_pay: nil,
2528
1468
  satispay: nil,
2529
1469
  scalapay: nil,
2530
1470
  sepa_debit: nil,
2531
1471
  sequra: nil,
2532
- shared_payment_granted_token: nil,
2533
- shopeepay: nil,
2534
1472
  sofort: nil,
2535
- stripe_balance: nil,
2536
1473
  sunbit: nil,
2537
1474
  swish: nil,
2538
1475
  twint: nil,
@@ -2540,7 +1477,6 @@ module Stripe
2540
1477
  upi: nil,
2541
1478
  us_bank_account: nil,
2542
1479
  wechat_pay: nil,
2543
- wero: nil,
2544
1480
  zip: nil
2545
1481
  )
2546
1482
  @acss_debit = acss_debit
@@ -2564,9 +1500,7 @@ module Stripe
2564
1500
  @eps = eps
2565
1501
  @fpx = fpx
2566
1502
  @giropay = giropay
2567
- @gopay = gopay
2568
1503
  @grabpay = grabpay
2569
- @id_bank_transfer = id_bank_transfer
2570
1504
  @ideal = ideal
2571
1505
  @interac_present = interac_present
2572
1506
  @kakao_pay = kakao_pay
@@ -2590,19 +1524,14 @@ module Stripe
2590
1524
  @payto = payto
2591
1525
  @pix = pix
2592
1526
  @promptpay = promptpay
2593
- @qris = qris
2594
1527
  @radar_options = radar_options
2595
- @rechnung = rechnung
2596
1528
  @revolut_pay = revolut_pay
2597
1529
  @samsung_pay = samsung_pay
2598
1530
  @satispay = satispay
2599
1531
  @scalapay = scalapay
2600
1532
  @sepa_debit = sepa_debit
2601
1533
  @sequra = sequra
2602
- @shared_payment_granted_token = shared_payment_granted_token
2603
- @shopeepay = shopeepay
2604
1534
  @sofort = sofort
2605
- @stripe_balance = stripe_balance
2606
1535
  @sunbit = sunbit
2607
1536
  @swish = swish
2608
1537
  @twint = twint
@@ -2610,7 +1539,6 @@ module Stripe
2610
1539
  @upi = upi
2611
1540
  @us_bank_account = us_bank_account
2612
1541
  @wechat_pay = wechat_pay
2613
- @wero = wero
2614
1542
  @zip = zip
2615
1543
  end
2616
1544
  end
@@ -3034,62 +1962,20 @@ module Stripe
3034
1962
  description: nil,
3035
1963
  end_date: nil,
3036
1964
  interval: nil,
3037
- interval_count: nil,
3038
- reference: nil,
3039
- start_date: nil,
3040
- supported_types: nil
3041
- )
3042
- @amount = amount
3043
- @amount_type = amount_type
3044
- @description = description
3045
- @end_date = end_date
3046
- @interval = interval
3047
- @interval_count = interval_count
3048
- @reference = reference
3049
- @start_date = start_date
3050
- @supported_types = supported_types
3051
- end
3052
- end
3053
-
3054
- class StatementDetails < ::Stripe::RequestParams
3055
- class Address < ::Stripe::RequestParams
3056
- # City, district, suburb, town, or village.
3057
- attr_accessor :city
3058
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3059
- attr_accessor :country
3060
- # Address line 1, such as the street, PO Box, or company name.
3061
- attr_accessor :line1
3062
- # Address line 2, such as the apartment, suite, unit, or building.
3063
- attr_accessor :line2
3064
- # ZIP or postal code.
3065
- attr_accessor :postal_code
3066
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3067
- attr_accessor :state
3068
-
3069
- def initialize(
3070
- city: nil,
3071
- country: nil,
3072
- line1: nil,
3073
- line2: nil,
3074
- postal_code: nil,
3075
- state: nil
3076
- )
3077
- @city = city
3078
- @country = country
3079
- @line1 = line1
3080
- @line2 = line2
3081
- @postal_code = postal_code
3082
- @state = state
3083
- end
3084
- end
3085
- # Please pass in an address that is within your Stripe user account country
3086
- attr_accessor :address
3087
- # Phone number (e.g., a toll-free number that customers can call)
3088
- attr_accessor :phone
3089
-
3090
- def initialize(address: nil, phone: nil)
3091
- @address = address
3092
- @phone = phone
1965
+ interval_count: nil,
1966
+ reference: nil,
1967
+ start_date: nil,
1968
+ supported_types: nil
1969
+ )
1970
+ @amount = amount
1971
+ @amount_type = amount_type
1972
+ @description = description
1973
+ @end_date = end_date
1974
+ @interval = interval
1975
+ @interval_count = interval_count
1976
+ @reference = reference
1977
+ @start_date = start_date
1978
+ @supported_types = supported_types
3093
1979
  end
3094
1980
  end
3095
1981
 
@@ -3187,8 +2073,6 @@ module Stripe
3187
2073
  attr_accessor :moto
3188
2074
  # 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.
3189
2075
  attr_accessor :network
3190
- # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3191
- attr_accessor :request_decremental_authorization
3192
2076
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
3193
2077
  attr_accessor :request_extended_authorization
3194
2078
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -3197,8 +2081,6 @@ module Stripe
3197
2081
  attr_accessor :request_multicapture
3198
2082
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
3199
2083
  attr_accessor :request_overcapture
3200
- # Request partial authorization on this PaymentIntent.
3201
- attr_accessor :request_partial_authorization
3202
2084
  # 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://docs.stripe.com/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://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
3203
2085
  attr_accessor :request_three_d_secure
3204
2086
  # 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).
@@ -3219,8 +2101,6 @@ module Stripe
3219
2101
  attr_accessor :statement_descriptor_suffix_kana
3220
2102
  # 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.
3221
2103
  attr_accessor :statement_descriptor_suffix_kanji
3222
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3223
- attr_accessor :statement_details
3224
2104
  # Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
3225
2105
  #
3226
2106
  # When making an off session payment with a previously saved card (that was saved with a SetupIntent or with a PaymentIntent with `setup_future_usage`), set this parameter to indicate the type of transaction.
@@ -3240,19 +2120,16 @@ module Stripe
3240
2120
  mandate_options: nil,
3241
2121
  moto: nil,
3242
2122
  network: nil,
3243
- request_decremental_authorization: nil,
3244
2123
  request_extended_authorization: nil,
3245
2124
  request_incremental_authorization: nil,
3246
2125
  request_multicapture: nil,
3247
2126
  request_overcapture: nil,
3248
- request_partial_authorization: nil,
3249
2127
  request_three_d_secure: nil,
3250
2128
  require_cvc_recollection: nil,
3251
2129
  setup_credential_usage: nil,
3252
2130
  setup_future_usage: nil,
3253
2131
  statement_descriptor_suffix_kana: nil,
3254
2132
  statement_descriptor_suffix_kanji: nil,
3255
- statement_details: nil,
3256
2133
  stored_credential_usage: nil,
3257
2134
  three_d_secure: nil
3258
2135
  )
@@ -3262,19 +2139,16 @@ module Stripe
3262
2139
  @mandate_options = mandate_options
3263
2140
  @moto = moto
3264
2141
  @network = network
3265
- @request_decremental_authorization = request_decremental_authorization
3266
2142
  @request_extended_authorization = request_extended_authorization
3267
2143
  @request_incremental_authorization = request_incremental_authorization
3268
2144
  @request_multicapture = request_multicapture
3269
2145
  @request_overcapture = request_overcapture
3270
- @request_partial_authorization = request_partial_authorization
3271
2146
  @request_three_d_secure = request_three_d_secure
3272
2147
  @require_cvc_recollection = require_cvc_recollection
3273
2148
  @setup_credential_usage = setup_credential_usage
3274
2149
  @setup_future_usage = setup_future_usage
3275
2150
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
3276
2151
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3277
- @statement_details = statement_details
3278
2152
  @stored_credential_usage = stored_credential_usage
3279
2153
  @three_d_secure = three_d_secure
3280
2154
  end
@@ -3454,23 +2328,6 @@ module Stripe
3454
2328
  end
3455
2329
  end
3456
2330
 
3457
- class Gopay < ::Stripe::RequestParams
3458
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3459
- #
3460
- # 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.
3461
- #
3462
- # 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.
3463
- #
3464
- # 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).
3465
- #
3466
- # 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`.
3467
- attr_accessor :setup_future_usage
3468
-
3469
- def initialize(setup_future_usage: nil)
3470
- @setup_future_usage = setup_future_usage
3471
- end
3472
- end
3473
-
3474
2331
  class Grabpay < ::Stripe::RequestParams
3475
2332
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3476
2333
  #
@@ -3488,29 +2345,6 @@ module Stripe
3488
2345
  end
3489
2346
  end
3490
2347
 
3491
- class IdBankTransfer < ::Stripe::RequestParams
3492
- # 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.
3493
- attr_accessor :expires_after
3494
- # 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.
3495
- attr_accessor :expires_at
3496
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3497
- #
3498
- # 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.
3499
- #
3500
- # 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.
3501
- #
3502
- # 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).
3503
- #
3504
- # 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`.
3505
- attr_accessor :setup_future_usage
3506
-
3507
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3508
- @expires_after = expires_after
3509
- @expires_at = expires_at
3510
- @setup_future_usage = setup_future_usage
3511
- end
3512
- end
3513
-
3514
2348
  class Ideal < ::Stripe::RequestParams
3515
2349
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3516
2350
  #
@@ -3617,939 +2451,6 @@ module Stripe
3617
2451
  @reference = reference
3618
2452
  end
3619
2453
  end
3620
-
3621
- class SupplementaryPurchaseData < ::Stripe::RequestParams
3622
- class BusReservationDetail < ::Stripe::RequestParams
3623
- class Arrival < ::Stripe::RequestParams
3624
- class Address < ::Stripe::RequestParams
3625
- # The city or town.
3626
- attr_accessor :city
3627
- # The country in ISO 3166-1 alpha-2 format.
3628
- attr_accessor :country
3629
- # The postal code formatted according to country.
3630
- attr_accessor :postal_code
3631
- # The state, county, province, or region formatted according to country.
3632
- attr_accessor :region
3633
- # Line 1 of the street address.
3634
- attr_accessor :street_address
3635
- # Line 2 of the street address.
3636
- attr_accessor :street_address2
3637
-
3638
- def initialize(
3639
- city: nil,
3640
- country: nil,
3641
- postal_code: nil,
3642
- region: nil,
3643
- street_address: nil,
3644
- street_address2: nil
3645
- )
3646
- @city = city
3647
- @country = country
3648
- @postal_code = postal_code
3649
- @region = region
3650
- @street_address = street_address
3651
- @street_address2 = street_address2
3652
- end
3653
- end
3654
- # Address of the arrival location.
3655
- attr_accessor :address
3656
- # Identifier name or reference for the arrival location.
3657
- attr_accessor :arrival_location
3658
-
3659
- def initialize(address: nil, arrival_location: nil)
3660
- @address = address
3661
- @arrival_location = arrival_location
3662
- end
3663
- end
3664
-
3665
- class Departure < ::Stripe::RequestParams
3666
- class Address < ::Stripe::RequestParams
3667
- # The city or town.
3668
- attr_accessor :city
3669
- # The country in ISO 3166-1 alpha-2 format.
3670
- attr_accessor :country
3671
- # The postal code formatted according to country.
3672
- attr_accessor :postal_code
3673
- # The state, county, province, or region formatted according to country.
3674
- attr_accessor :region
3675
- # Line 1 of the street address.
3676
- attr_accessor :street_address
3677
- # Line 2 of the street address.
3678
- attr_accessor :street_address2
3679
-
3680
- def initialize(
3681
- city: nil,
3682
- country: nil,
3683
- postal_code: nil,
3684
- region: nil,
3685
- street_address: nil,
3686
- street_address2: nil
3687
- )
3688
- @city = city
3689
- @country = country
3690
- @postal_code = postal_code
3691
- @region = region
3692
- @street_address = street_address
3693
- @street_address2 = street_address2
3694
- end
3695
- end
3696
- # Address of the departure location.
3697
- attr_accessor :address
3698
- # Timestamp of departure.
3699
- attr_accessor :departs_at
3700
- # Identifier name or reference for the origin location.
3701
- attr_accessor :departure_location
3702
-
3703
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3704
- @address = address
3705
- @departs_at = departs_at
3706
- @departure_location = departure_location
3707
- end
3708
- end
3709
-
3710
- class Insurance < ::Stripe::RequestParams
3711
- # Insurance currency.
3712
- attr_accessor :currency
3713
- # Name of the company providing the insurance.
3714
- attr_accessor :insurance_company_name
3715
- # Type of insurance.
3716
- attr_accessor :insurance_type
3717
- # Price of insurance in cents.
3718
- attr_accessor :price
3719
-
3720
- def initialize(
3721
- currency: nil,
3722
- insurance_company_name: nil,
3723
- insurance_type: nil,
3724
- price: nil
3725
- )
3726
- @currency = currency
3727
- @insurance_company_name = insurance_company_name
3728
- @insurance_type = insurance_type
3729
- @price = price
3730
- end
3731
- end
3732
-
3733
- class Passenger < ::Stripe::RequestParams
3734
- # The family name of the person.
3735
- attr_accessor :family_name
3736
- # The given name of the person.
3737
- attr_accessor :given_name
3738
-
3739
- def initialize(family_name: nil, given_name: nil)
3740
- @family_name = family_name
3741
- @given_name = given_name
3742
- end
3743
- end
3744
- # Name of associated or partner company for the service.
3745
- attr_accessor :affiliate_name
3746
- # Arrival details.
3747
- attr_accessor :arrival
3748
- # Name of transportation company.
3749
- attr_accessor :carrier_name
3750
- # Currency.
3751
- attr_accessor :currency
3752
- # Departure details.
3753
- attr_accessor :departure
3754
- # List of insurances for this reservation.
3755
- attr_accessor :insurances
3756
- # List of passengers that this reservation applies to.
3757
- attr_accessor :passengers
3758
- # Price in cents.
3759
- attr_accessor :price
3760
- # Ticket class.
3761
- attr_accessor :ticket_class
3762
-
3763
- def initialize(
3764
- affiliate_name: nil,
3765
- arrival: nil,
3766
- carrier_name: nil,
3767
- currency: nil,
3768
- departure: nil,
3769
- insurances: nil,
3770
- passengers: nil,
3771
- price: nil,
3772
- ticket_class: nil
3773
- )
3774
- @affiliate_name = affiliate_name
3775
- @arrival = arrival
3776
- @carrier_name = carrier_name
3777
- @currency = currency
3778
- @departure = departure
3779
- @insurances = insurances
3780
- @passengers = passengers
3781
- @price = price
3782
- @ticket_class = ticket_class
3783
- end
3784
- end
3785
-
3786
- class EventReservationDetail < ::Stripe::RequestParams
3787
- class Address < ::Stripe::RequestParams
3788
- # The city or town.
3789
- attr_accessor :city
3790
- # The country in ISO 3166-1 alpha-2 format.
3791
- attr_accessor :country
3792
- # The postal code formatted according to country.
3793
- attr_accessor :postal_code
3794
- # The state, county, province, or region formatted according to country.
3795
- attr_accessor :region
3796
- # Line 1 of the street address.
3797
- attr_accessor :street_address
3798
- # Line 2 of the street address.
3799
- attr_accessor :street_address2
3800
-
3801
- def initialize(
3802
- city: nil,
3803
- country: nil,
3804
- postal_code: nil,
3805
- region: nil,
3806
- street_address: nil,
3807
- street_address2: nil
3808
- )
3809
- @city = city
3810
- @country = country
3811
- @postal_code = postal_code
3812
- @region = region
3813
- @street_address = street_address
3814
- @street_address2 = street_address2
3815
- end
3816
- end
3817
-
3818
- class Insurance < ::Stripe::RequestParams
3819
- # Insurance currency.
3820
- attr_accessor :currency
3821
- # Name of the company providing the insurance.
3822
- attr_accessor :insurance_company_name
3823
- # Type of insurance.
3824
- attr_accessor :insurance_type
3825
- # Price of insurance in cents.
3826
- attr_accessor :price
3827
-
3828
- def initialize(
3829
- currency: nil,
3830
- insurance_company_name: nil,
3831
- insurance_type: nil,
3832
- price: nil
3833
- )
3834
- @currency = currency
3835
- @insurance_company_name = insurance_company_name
3836
- @insurance_type = insurance_type
3837
- @price = price
3838
- end
3839
- end
3840
- # Indicates if the tickets are digitally checked when entering the venue.
3841
- attr_accessor :access_controlled_venue
3842
- # Address of the event.
3843
- attr_accessor :address
3844
- # Name of associated or partner company for the service.
3845
- attr_accessor :affiliate_name
3846
- # End timestamp of the event.
3847
- attr_accessor :ends_at
3848
- # Company selling the ticket.
3849
- attr_accessor :event_company_name
3850
- # Name of the event.
3851
- attr_accessor :event_name
3852
- # Type of the event.
3853
- attr_accessor :event_type
3854
- # List of insurances for this event.
3855
- attr_accessor :insurances
3856
- # Start timestamp of the event.
3857
- attr_accessor :starts_at
3858
- # Name of the venue where the event takes place.
3859
- attr_accessor :venue_name
3860
-
3861
- def initialize(
3862
- access_controlled_venue: nil,
3863
- address: nil,
3864
- affiliate_name: nil,
3865
- ends_at: nil,
3866
- event_company_name: nil,
3867
- event_name: nil,
3868
- event_type: nil,
3869
- insurances: nil,
3870
- starts_at: nil,
3871
- venue_name: nil
3872
- )
3873
- @access_controlled_venue = access_controlled_venue
3874
- @address = address
3875
- @affiliate_name = affiliate_name
3876
- @ends_at = ends_at
3877
- @event_company_name = event_company_name
3878
- @event_name = event_name
3879
- @event_type = event_type
3880
- @insurances = insurances
3881
- @starts_at = starts_at
3882
- @venue_name = venue_name
3883
- end
3884
- end
3885
-
3886
- class FerryReservationDetail < ::Stripe::RequestParams
3887
- class Arrival < ::Stripe::RequestParams
3888
- class Address < ::Stripe::RequestParams
3889
- # The city or town.
3890
- attr_accessor :city
3891
- # The country in ISO 3166-1 alpha-2 format.
3892
- attr_accessor :country
3893
- # The postal code formatted according to country.
3894
- attr_accessor :postal_code
3895
- # The state, county, province, or region formatted according to country.
3896
- attr_accessor :region
3897
- # Line 1 of the street address.
3898
- attr_accessor :street_address
3899
- # Line 2 of the street address.
3900
- attr_accessor :street_address2
3901
-
3902
- def initialize(
3903
- city: nil,
3904
- country: nil,
3905
- postal_code: nil,
3906
- region: nil,
3907
- street_address: nil,
3908
- street_address2: nil
3909
- )
3910
- @city = city
3911
- @country = country
3912
- @postal_code = postal_code
3913
- @region = region
3914
- @street_address = street_address
3915
- @street_address2 = street_address2
3916
- end
3917
- end
3918
- # Address of the arrival location.
3919
- attr_accessor :address
3920
- # Identifier name or reference for the arrival location.
3921
- attr_accessor :arrival_location
3922
-
3923
- def initialize(address: nil, arrival_location: nil)
3924
- @address = address
3925
- @arrival_location = arrival_location
3926
- end
3927
- end
3928
-
3929
- class Departure < ::Stripe::RequestParams
3930
- class Address < ::Stripe::RequestParams
3931
- # The city or town.
3932
- attr_accessor :city
3933
- # The country in ISO 3166-1 alpha-2 format.
3934
- attr_accessor :country
3935
- # The postal code formatted according to country.
3936
- attr_accessor :postal_code
3937
- # The state, county, province, or region formatted according to country.
3938
- attr_accessor :region
3939
- # Line 1 of the street address.
3940
- attr_accessor :street_address
3941
- # Line 2 of the street address.
3942
- attr_accessor :street_address2
3943
-
3944
- def initialize(
3945
- city: nil,
3946
- country: nil,
3947
- postal_code: nil,
3948
- region: nil,
3949
- street_address: nil,
3950
- street_address2: nil
3951
- )
3952
- @city = city
3953
- @country = country
3954
- @postal_code = postal_code
3955
- @region = region
3956
- @street_address = street_address
3957
- @street_address2 = street_address2
3958
- end
3959
- end
3960
- # Address of the departure location.
3961
- attr_accessor :address
3962
- # Timestamp of departure.
3963
- attr_accessor :departs_at
3964
- # Identifier name or reference for the origin location.
3965
- attr_accessor :departure_location
3966
-
3967
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3968
- @address = address
3969
- @departs_at = departs_at
3970
- @departure_location = departure_location
3971
- end
3972
- end
3973
-
3974
- class Insurance < ::Stripe::RequestParams
3975
- # Insurance currency.
3976
- attr_accessor :currency
3977
- # Name of the company providing the insurance.
3978
- attr_accessor :insurance_company_name
3979
- # Type of insurance.
3980
- attr_accessor :insurance_type
3981
- # Price of insurance in cents.
3982
- attr_accessor :price
3983
-
3984
- def initialize(
3985
- currency: nil,
3986
- insurance_company_name: nil,
3987
- insurance_type: nil,
3988
- price: nil
3989
- )
3990
- @currency = currency
3991
- @insurance_company_name = insurance_company_name
3992
- @insurance_type = insurance_type
3993
- @price = price
3994
- end
3995
- end
3996
-
3997
- class Passenger < ::Stripe::RequestParams
3998
- # The family name of the person.
3999
- attr_accessor :family_name
4000
- # The given name of the person.
4001
- attr_accessor :given_name
4002
-
4003
- def initialize(family_name: nil, given_name: nil)
4004
- @family_name = family_name
4005
- @given_name = given_name
4006
- end
4007
- end
4008
- # Name of associated or partner company for the service.
4009
- attr_accessor :affiliate_name
4010
- # Arrival details.
4011
- attr_accessor :arrival
4012
- # Name of transportation company.
4013
- attr_accessor :carrier_name
4014
- # Currency.
4015
- attr_accessor :currency
4016
- # Departure details.
4017
- attr_accessor :departure
4018
- # List of insurances for this reservation.
4019
- attr_accessor :insurances
4020
- # List of passengers that this reservation applies to.
4021
- attr_accessor :passengers
4022
- # Price in cents.
4023
- attr_accessor :price
4024
- # Ticket class.
4025
- attr_accessor :ticket_class
4026
-
4027
- def initialize(
4028
- affiliate_name: nil,
4029
- arrival: nil,
4030
- carrier_name: nil,
4031
- currency: nil,
4032
- departure: nil,
4033
- insurances: nil,
4034
- passengers: nil,
4035
- price: nil,
4036
- ticket_class: nil
4037
- )
4038
- @affiliate_name = affiliate_name
4039
- @arrival = arrival
4040
- @carrier_name = carrier_name
4041
- @currency = currency
4042
- @departure = departure
4043
- @insurances = insurances
4044
- @passengers = passengers
4045
- @price = price
4046
- @ticket_class = ticket_class
4047
- end
4048
- end
4049
-
4050
- class Insurance < ::Stripe::RequestParams
4051
- # Insurance currency.
4052
- attr_accessor :currency
4053
- # Name of the company providing the insurance.
4054
- attr_accessor :insurance_company_name
4055
- # Type of insurance
4056
- attr_accessor :insurance_type
4057
- # Price of insurance in cents.
4058
- attr_accessor :price
4059
-
4060
- def initialize(
4061
- currency: nil,
4062
- insurance_company_name: nil,
4063
- insurance_type: nil,
4064
- price: nil
4065
- )
4066
- @currency = currency
4067
- @insurance_company_name = insurance_company_name
4068
- @insurance_type = insurance_type
4069
- @price = price
4070
- end
4071
- end
4072
-
4073
- class MarketplaceSeller < ::Stripe::RequestParams
4074
- class MarketplaceSellerAddress < ::Stripe::RequestParams
4075
- # The city or town.
4076
- attr_accessor :city
4077
- # The country in ISO 3166-1 alpha-2 format.
4078
- attr_accessor :country
4079
- # The postal code formatted according to country.
4080
- attr_accessor :postal_code
4081
- # The state, county, province, or region formatted according to country.
4082
- attr_accessor :region
4083
- # Line 1 of the street address.
4084
- attr_accessor :street_address
4085
- # Line 2 of the street address.
4086
- attr_accessor :street_address2
4087
-
4088
- def initialize(
4089
- city: nil,
4090
- country: nil,
4091
- postal_code: nil,
4092
- region: nil,
4093
- street_address: nil,
4094
- street_address2: nil
4095
- )
4096
- @city = city
4097
- @country = country
4098
- @postal_code = postal_code
4099
- @region = region
4100
- @street_address = street_address
4101
- @street_address2 = street_address2
4102
- end
4103
- end
4104
- # The references to line items for purchases with multiple associated sub-sellers.
4105
- attr_accessor :line_item_references
4106
- # The address of the selling or delivering merchant.
4107
- attr_accessor :marketplace_seller_address
4108
- # The name of the marketplace seller.
4109
- attr_accessor :marketplace_seller_name
4110
- # The unique identifier for the marketplace seller.
4111
- attr_accessor :marketplace_seller_reference
4112
- # The number of transactions the sub-seller completed in the last 12 months.
4113
- attr_accessor :number_of_transactions
4114
- # The category of the product.
4115
- attr_accessor :product_category
4116
- # The date when the seller's account with the marketplace was last logged in.
4117
- attr_accessor :seller_last_login_at
4118
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4119
- attr_accessor :seller_rating
4120
- # The date when the seller's account with the marketplace was created.
4121
- attr_accessor :seller_registered_at
4122
- # The date when the seller's account with the marketplace was last updated.
4123
- attr_accessor :seller_updated_at
4124
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
4125
- attr_accessor :shipping_references
4126
- # The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
4127
- attr_accessor :volume_of_transactions
4128
-
4129
- def initialize(
4130
- line_item_references: nil,
4131
- marketplace_seller_address: nil,
4132
- marketplace_seller_name: nil,
4133
- marketplace_seller_reference: nil,
4134
- number_of_transactions: nil,
4135
- product_category: nil,
4136
- seller_last_login_at: nil,
4137
- seller_rating: nil,
4138
- seller_registered_at: nil,
4139
- seller_updated_at: nil,
4140
- shipping_references: nil,
4141
- volume_of_transactions: nil
4142
- )
4143
- @line_item_references = line_item_references
4144
- @marketplace_seller_address = marketplace_seller_address
4145
- @marketplace_seller_name = marketplace_seller_name
4146
- @marketplace_seller_reference = marketplace_seller_reference
4147
- @number_of_transactions = number_of_transactions
4148
- @product_category = product_category
4149
- @seller_last_login_at = seller_last_login_at
4150
- @seller_rating = seller_rating
4151
- @seller_registered_at = seller_registered_at
4152
- @seller_updated_at = seller_updated_at
4153
- @shipping_references = shipping_references
4154
- @volume_of_transactions = volume_of_transactions
4155
- end
4156
- end
4157
-
4158
- class RoundTripReservationDetail < ::Stripe::RequestParams
4159
- class Arrival < ::Stripe::RequestParams
4160
- class Address < ::Stripe::RequestParams
4161
- # The city or town.
4162
- attr_accessor :city
4163
- # The country in ISO 3166-1 alpha-2 format.
4164
- attr_accessor :country
4165
- # The postal code formatted according to country.
4166
- attr_accessor :postal_code
4167
- # The state, county, province, or region formatted according to country.
4168
- attr_accessor :region
4169
- # Line 1 of the street address.
4170
- attr_accessor :street_address
4171
- # Line 2 of the street address.
4172
- attr_accessor :street_address2
4173
-
4174
- def initialize(
4175
- city: nil,
4176
- country: nil,
4177
- postal_code: nil,
4178
- region: nil,
4179
- street_address: nil,
4180
- street_address2: nil
4181
- )
4182
- @city = city
4183
- @country = country
4184
- @postal_code = postal_code
4185
- @region = region
4186
- @street_address = street_address
4187
- @street_address2 = street_address2
4188
- end
4189
- end
4190
- # Address of the arrival location.
4191
- attr_accessor :address
4192
- # Identifier name or reference for the arrival location.
4193
- attr_accessor :arrival_location
4194
-
4195
- def initialize(address: nil, arrival_location: nil)
4196
- @address = address
4197
- @arrival_location = arrival_location
4198
- end
4199
- end
4200
-
4201
- class Departure < ::Stripe::RequestParams
4202
- class Address < ::Stripe::RequestParams
4203
- # The city or town.
4204
- attr_accessor :city
4205
- # The country in ISO 3166-1 alpha-2 format.
4206
- attr_accessor :country
4207
- # The postal code formatted according to country.
4208
- attr_accessor :postal_code
4209
- # The state, county, province, or region formatted according to country.
4210
- attr_accessor :region
4211
- # Line 1 of the street address.
4212
- attr_accessor :street_address
4213
- # Line 2 of the street address.
4214
- attr_accessor :street_address2
4215
-
4216
- def initialize(
4217
- city: nil,
4218
- country: nil,
4219
- postal_code: nil,
4220
- region: nil,
4221
- street_address: nil,
4222
- street_address2: nil
4223
- )
4224
- @city = city
4225
- @country = country
4226
- @postal_code = postal_code
4227
- @region = region
4228
- @street_address = street_address
4229
- @street_address2 = street_address2
4230
- end
4231
- end
4232
- # Address of the departure location.
4233
- attr_accessor :address
4234
- # Timestamp of departure.
4235
- attr_accessor :departs_at
4236
- # Identifier name or reference for the origin location.
4237
- attr_accessor :departure_location
4238
-
4239
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4240
- @address = address
4241
- @departs_at = departs_at
4242
- @departure_location = departure_location
4243
- end
4244
- end
4245
-
4246
- class Insurance < ::Stripe::RequestParams
4247
- # Insurance currency.
4248
- attr_accessor :currency
4249
- # Name of the company providing the insurance.
4250
- attr_accessor :insurance_company_name
4251
- # Type of insurance.
4252
- attr_accessor :insurance_type
4253
- # Price of insurance in cents.
4254
- attr_accessor :price
4255
-
4256
- def initialize(
4257
- currency: nil,
4258
- insurance_company_name: nil,
4259
- insurance_type: nil,
4260
- price: nil
4261
- )
4262
- @currency = currency
4263
- @insurance_company_name = insurance_company_name
4264
- @insurance_type = insurance_type
4265
- @price = price
4266
- end
4267
- end
4268
-
4269
- class Passenger < ::Stripe::RequestParams
4270
- # The family name of the person.
4271
- attr_accessor :family_name
4272
- # The given name of the person.
4273
- attr_accessor :given_name
4274
-
4275
- def initialize(family_name: nil, given_name: nil)
4276
- @family_name = family_name
4277
- @given_name = given_name
4278
- end
4279
- end
4280
- # Name of associated or partner company for the service.
4281
- attr_accessor :affiliate_name
4282
- # Arrival details.
4283
- attr_accessor :arrival
4284
- # Name of transportation company.
4285
- attr_accessor :carrier_name
4286
- # Currency.
4287
- attr_accessor :currency
4288
- # Departure details.
4289
- attr_accessor :departure
4290
- # List of insurances for this reservation.
4291
- attr_accessor :insurances
4292
- # List of passengers that this reservation applies to.
4293
- attr_accessor :passengers
4294
- # Price in cents.
4295
- attr_accessor :price
4296
- # Ticket class.
4297
- attr_accessor :ticket_class
4298
-
4299
- def initialize(
4300
- affiliate_name: nil,
4301
- arrival: nil,
4302
- carrier_name: nil,
4303
- currency: nil,
4304
- departure: nil,
4305
- insurances: nil,
4306
- passengers: nil,
4307
- price: nil,
4308
- ticket_class: nil
4309
- )
4310
- @affiliate_name = affiliate_name
4311
- @arrival = arrival
4312
- @carrier_name = carrier_name
4313
- @currency = currency
4314
- @departure = departure
4315
- @insurances = insurances
4316
- @passengers = passengers
4317
- @price = price
4318
- @ticket_class = ticket_class
4319
- end
4320
- end
4321
-
4322
- class TrainReservationDetail < ::Stripe::RequestParams
4323
- class Arrival < ::Stripe::RequestParams
4324
- class Address < ::Stripe::RequestParams
4325
- # The city or town.
4326
- attr_accessor :city
4327
- # The country in ISO 3166-1 alpha-2 format.
4328
- attr_accessor :country
4329
- # The postal code formatted according to country.
4330
- attr_accessor :postal_code
4331
- # The state, county, province, or region formatted according to country.
4332
- attr_accessor :region
4333
- # Line 1 of the street address.
4334
- attr_accessor :street_address
4335
- # Line 2 of the street address.
4336
- attr_accessor :street_address2
4337
-
4338
- def initialize(
4339
- city: nil,
4340
- country: nil,
4341
- postal_code: nil,
4342
- region: nil,
4343
- street_address: nil,
4344
- street_address2: nil
4345
- )
4346
- @city = city
4347
- @country = country
4348
- @postal_code = postal_code
4349
- @region = region
4350
- @street_address = street_address
4351
- @street_address2 = street_address2
4352
- end
4353
- end
4354
- # Address of the arrival location.
4355
- attr_accessor :address
4356
- # Identifier name or reference for the arrival location.
4357
- attr_accessor :arrival_location
4358
-
4359
- def initialize(address: nil, arrival_location: nil)
4360
- @address = address
4361
- @arrival_location = arrival_location
4362
- end
4363
- end
4364
-
4365
- class Departure < ::Stripe::RequestParams
4366
- class Address < ::Stripe::RequestParams
4367
- # The city or town.
4368
- attr_accessor :city
4369
- # The country in ISO 3166-1 alpha-2 format.
4370
- attr_accessor :country
4371
- # The postal code formatted according to country.
4372
- attr_accessor :postal_code
4373
- # The state, county, province, or region formatted according to country.
4374
- attr_accessor :region
4375
- # Line 1 of the street address.
4376
- attr_accessor :street_address
4377
- # Line 2 of the street address.
4378
- attr_accessor :street_address2
4379
-
4380
- def initialize(
4381
- city: nil,
4382
- country: nil,
4383
- postal_code: nil,
4384
- region: nil,
4385
- street_address: nil,
4386
- street_address2: nil
4387
- )
4388
- @city = city
4389
- @country = country
4390
- @postal_code = postal_code
4391
- @region = region
4392
- @street_address = street_address
4393
- @street_address2 = street_address2
4394
- end
4395
- end
4396
- # Address of the departure location.
4397
- attr_accessor :address
4398
- # Timestamp of departure.
4399
- attr_accessor :departs_at
4400
- # Identifier name or reference for the origin location.
4401
- attr_accessor :departure_location
4402
-
4403
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4404
- @address = address
4405
- @departs_at = departs_at
4406
- @departure_location = departure_location
4407
- end
4408
- end
4409
-
4410
- class Insurance < ::Stripe::RequestParams
4411
- # Insurance currency.
4412
- attr_accessor :currency
4413
- # Name of the company providing the insurance.
4414
- attr_accessor :insurance_company_name
4415
- # Type of insurance.
4416
- attr_accessor :insurance_type
4417
- # Price of insurance in cents.
4418
- attr_accessor :price
4419
-
4420
- def initialize(
4421
- currency: nil,
4422
- insurance_company_name: nil,
4423
- insurance_type: nil,
4424
- price: nil
4425
- )
4426
- @currency = currency
4427
- @insurance_company_name = insurance_company_name
4428
- @insurance_type = insurance_type
4429
- @price = price
4430
- end
4431
- end
4432
-
4433
- class Passenger < ::Stripe::RequestParams
4434
- # The family name of the person.
4435
- attr_accessor :family_name
4436
- # The given name of the person.
4437
- attr_accessor :given_name
4438
-
4439
- def initialize(family_name: nil, given_name: nil)
4440
- @family_name = family_name
4441
- @given_name = given_name
4442
- end
4443
- end
4444
- # Name of associated or partner company for the service.
4445
- attr_accessor :affiliate_name
4446
- # Arrival details.
4447
- attr_accessor :arrival
4448
- # Name of transportation company.
4449
- attr_accessor :carrier_name
4450
- # Currency.
4451
- attr_accessor :currency
4452
- # Departure details.
4453
- attr_accessor :departure
4454
- # List of insurances for this reservation.
4455
- attr_accessor :insurances
4456
- # List of passengers that this reservation applies to.
4457
- attr_accessor :passengers
4458
- # Price in cents.
4459
- attr_accessor :price
4460
- # Ticket class.
4461
- attr_accessor :ticket_class
4462
-
4463
- def initialize(
4464
- affiliate_name: nil,
4465
- arrival: nil,
4466
- carrier_name: nil,
4467
- currency: nil,
4468
- departure: nil,
4469
- insurances: nil,
4470
- passengers: nil,
4471
- price: nil,
4472
- ticket_class: nil
4473
- )
4474
- @affiliate_name = affiliate_name
4475
- @arrival = arrival
4476
- @carrier_name = carrier_name
4477
- @currency = currency
4478
- @departure = departure
4479
- @insurances = insurances
4480
- @passengers = passengers
4481
- @price = price
4482
- @ticket_class = ticket_class
4483
- end
4484
- end
4485
-
4486
- class Voucher < ::Stripe::RequestParams
4487
- # Name of associated or partner company for this voucher.
4488
- attr_accessor :affiliate_name
4489
- # The voucher validity end time.
4490
- attr_accessor :ends_at
4491
- # The voucher validity start time.
4492
- attr_accessor :starts_at
4493
- # The issuer or provider of this voucher.
4494
- attr_accessor :voucher_company
4495
- # The name or reference to identify the voucher.
4496
- attr_accessor :voucher_name
4497
- # The type of this voucher.
4498
- attr_accessor :voucher_type
4499
-
4500
- def initialize(
4501
- affiliate_name: nil,
4502
- ends_at: nil,
4503
- starts_at: nil,
4504
- voucher_company: nil,
4505
- voucher_name: nil,
4506
- voucher_type: nil
4507
- )
4508
- @affiliate_name = affiliate_name
4509
- @ends_at = ends_at
4510
- @starts_at = starts_at
4511
- @voucher_company = voucher_company
4512
- @voucher_name = voucher_name
4513
- @voucher_type = voucher_type
4514
- end
4515
- end
4516
- # Supplementary bus reservation details.
4517
- attr_accessor :bus_reservation_details
4518
- # Supplementary event reservation details.
4519
- attr_accessor :event_reservation_details
4520
- # Supplementary ferry reservation details.
4521
- attr_accessor :ferry_reservation_details
4522
- # Supplementary insurance details.
4523
- attr_accessor :insurances
4524
- # Supplementary marketplace seller details.
4525
- attr_accessor :marketplace_sellers
4526
- # Supplementary round trip reservation details.
4527
- attr_accessor :round_trip_reservation_details
4528
- # Supplementary train reservation details.
4529
- attr_accessor :train_reservation_details
4530
- # Voucher details, such as a gift card or discount code.
4531
- attr_accessor :vouchers
4532
-
4533
- def initialize(
4534
- bus_reservation_details: nil,
4535
- event_reservation_details: nil,
4536
- ferry_reservation_details: nil,
4537
- insurances: nil,
4538
- marketplace_sellers: nil,
4539
- round_trip_reservation_details: nil,
4540
- train_reservation_details: nil,
4541
- vouchers: nil
4542
- )
4543
- @bus_reservation_details = bus_reservation_details
4544
- @event_reservation_details = event_reservation_details
4545
- @ferry_reservation_details = ferry_reservation_details
4546
- @insurances = insurances
4547
- @marketplace_sellers = marketplace_sellers
4548
- @round_trip_reservation_details = round_trip_reservation_details
4549
- @train_reservation_details = train_reservation_details
4550
- @vouchers = vouchers
4551
- end
4552
- end
4553
2454
  # Controls when the funds are captured from the customer's account.
4554
2455
  #
4555
2456
  # 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.
@@ -4572,23 +2473,19 @@ module Stripe
4572
2473
  attr_accessor :setup_future_usage
4573
2474
  # Subscription details if setting up or charging a subscription.
4574
2475
  attr_accessor :subscriptions
4575
- # Supplementary Purchase Data for the corresponding Klarna payment
4576
- attr_accessor :supplementary_purchase_data
4577
2476
 
4578
2477
  def initialize(
4579
2478
  capture_method: nil,
4580
2479
  on_demand: nil,
4581
2480
  preferred_locale: nil,
4582
2481
  setup_future_usage: nil,
4583
- subscriptions: nil,
4584
- supplementary_purchase_data: nil
2482
+ subscriptions: nil
4585
2483
  )
4586
2484
  @capture_method = capture_method
4587
2485
  @on_demand = on_demand
4588
2486
  @preferred_locale = preferred_locale
4589
2487
  @setup_future_usage = setup_future_usage
4590
2488
  @subscriptions = subscriptions
4591
- @supplementary_purchase_data = supplementary_purchase_data
4592
2489
  end
4593
2490
  end
4594
2491
 
@@ -4858,65 +2755,12 @@ module Stripe
4858
2755
  end
4859
2756
 
4860
2757
  class Paypal < ::Stripe::RequestParams
4861
- class LineItem < ::Stripe::RequestParams
4862
- class Tax < ::Stripe::RequestParams
4863
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4864
- attr_accessor :amount
4865
- # The tax behavior for the line item.
4866
- attr_accessor :behavior
4867
-
4868
- def initialize(amount: nil, behavior: nil)
4869
- @amount = amount
4870
- @behavior = behavior
4871
- end
4872
- end
4873
- # Type of the line item.
4874
- attr_accessor :category
4875
- # Description of the line item.
4876
- attr_accessor :description
4877
- # Descriptive name of the line item.
4878
- attr_accessor :name
4879
- # Quantity of the line item. Must be a positive number.
4880
- attr_accessor :quantity
4881
- # Client facing stock keeping unit, article number or similar.
4882
- attr_accessor :sku
4883
- # The Stripe account ID of the connected account that sells the item.
4884
- attr_accessor :sold_by
4885
- # The tax information for the line item.
4886
- attr_accessor :tax
4887
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
4888
- attr_accessor :unit_amount
4889
-
4890
- def initialize(
4891
- category: nil,
4892
- description: nil,
4893
- name: nil,
4894
- quantity: nil,
4895
- sku: nil,
4896
- sold_by: nil,
4897
- tax: nil,
4898
- unit_amount: nil
4899
- )
4900
- @category = category
4901
- @description = description
4902
- @name = name
4903
- @quantity = quantity
4904
- @sku = sku
4905
- @sold_by = sold_by
4906
- @tax = tax
4907
- @unit_amount = unit_amount
4908
- end
4909
- end
4910
2758
  # Controls when the funds will be captured from the customer's account.
4911
2759
  attr_accessor :capture_method
4912
- # The line items purchased by the customer.
4913
- attr_accessor :line_items
4914
2760
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
4915
2761
  attr_accessor :preferred_locale
4916
2762
  # 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.
4917
2763
  attr_accessor :reference
4918
- # 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.
4919
- attr_accessor :reference_id
4920
2764
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
4921
2765
  attr_accessor :risk_correlation_id
4922
2766
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -4929,27 +2773,19 @@ module Stripe
4929
2773
  #
4930
2774
  # 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`.
4931
2775
  attr_accessor :setup_future_usage
4932
- # 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.
4933
- attr_accessor :subsellers
4934
2776
 
4935
2777
  def initialize(
4936
2778
  capture_method: nil,
4937
- line_items: nil,
4938
2779
  preferred_locale: nil,
4939
2780
  reference: nil,
4940
- reference_id: nil,
4941
2781
  risk_correlation_id: nil,
4942
- setup_future_usage: nil,
4943
- subsellers: nil
2782
+ setup_future_usage: nil
4944
2783
  )
4945
2784
  @capture_method = capture_method
4946
- @line_items = line_items
4947
2785
  @preferred_locale = preferred_locale
4948
2786
  @reference = reference
4949
- @reference_id = reference_id
4950
2787
  @risk_correlation_id = risk_correlation_id
4951
2788
  @setup_future_usage = setup_future_usage
4952
- @subsellers = subsellers
4953
2789
  end
4954
2790
  end
4955
2791
 
@@ -5093,25 +2929,6 @@ module Stripe
5093
2929
  end
5094
2930
  end
5095
2931
 
5096
- class Qris < ::Stripe::RequestParams
5097
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5098
- #
5099
- # 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.
5100
- #
5101
- # 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.
5102
- #
5103
- # 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).
5104
- #
5105
- # 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`.
5106
- attr_accessor :setup_future_usage
5107
-
5108
- def initialize(setup_future_usage: nil)
5109
- @setup_future_usage = setup_future_usage
5110
- end
5111
- end
5112
-
5113
- class Rechnung < ::Stripe::RequestParams; end
5114
-
5115
2932
  class RevolutPay < ::Stripe::RequestParams
5116
2933
  # Controls when the funds are captured from the customer's account.
5117
2934
  #
@@ -5246,23 +3063,6 @@ module Stripe
5246
3063
  end
5247
3064
  end
5248
3065
 
5249
- class Shopeepay < ::Stripe::RequestParams
5250
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5251
- #
5252
- # 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.
5253
- #
5254
- # 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.
5255
- #
5256
- # 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).
5257
- #
5258
- # 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`.
5259
- attr_accessor :setup_future_usage
5260
-
5261
- def initialize(setup_future_usage: nil)
5262
- @setup_future_usage = setup_future_usage
5263
- end
5264
- end
5265
-
5266
3066
  class Sofort < ::Stripe::RequestParams
5267
3067
  # Language shown to the payer on redirect.
5268
3068
  attr_accessor :preferred_language
@@ -5283,23 +3083,6 @@ module Stripe
5283
3083
  end
5284
3084
  end
5285
3085
 
5286
- class StripeBalance < ::Stripe::RequestParams
5287
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5288
- #
5289
- # 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.
5290
- #
5291
- # 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.
5292
- #
5293
- # 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).
5294
- #
5295
- # 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`.
5296
- attr_accessor :setup_future_usage
5297
-
5298
- def initialize(setup_future_usage: nil)
5299
- @setup_future_usage = setup_future_usage
5300
- end
5301
- end
5302
-
5303
3086
  class Sunbit < ::Stripe::RequestParams
5304
3087
  # Controls when the funds are captured from the customer's account.
5305
3088
  #
@@ -5393,27 +3176,13 @@ module Stripe
5393
3176
  class Filters < ::Stripe::RequestParams
5394
3177
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
5395
3178
  attr_accessor :account_subcategories
5396
- # ID of the institution to use to filter for selectable accounts.
5397
- attr_accessor :institution
5398
3179
 
5399
- def initialize(account_subcategories: nil, institution: nil)
3180
+ def initialize(account_subcategories: nil)
5400
3181
  @account_subcategories = account_subcategories
5401
- @institution = institution
5402
- end
5403
- end
5404
-
5405
- class ManualEntry < ::Stripe::RequestParams
5406
- # Settings for configuring manual entry of account details.
5407
- attr_accessor :mode
5408
-
5409
- def initialize(mode: nil)
5410
- @mode = mode
5411
3182
  end
5412
3183
  end
5413
3184
  # Provide filters for the linked accounts that the customer can select for the payment method.
5414
3185
  attr_accessor :filters
5415
- # Customize manual entry behavior
5416
- attr_accessor :manual_entry
5417
3186
  # 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`.
5418
3187
  attr_accessor :permissions
5419
3188
  # List of data features that you would like to retrieve upon account creation.
@@ -5421,15 +3190,8 @@ module Stripe
5421
3190
  # 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.
5422
3191
  attr_accessor :return_url
5423
3192
 
5424
- def initialize(
5425
- filters: nil,
5426
- manual_entry: nil,
5427
- permissions: nil,
5428
- prefetch: nil,
5429
- return_url: nil
5430
- )
3193
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5431
3194
  @filters = filters
5432
- @manual_entry = manual_entry
5433
3195
  @permissions = permissions
5434
3196
  @prefetch = prefetch
5435
3197
  @return_url = return_url
@@ -5518,23 +3280,6 @@ module Stripe
5518
3280
  end
5519
3281
  end
5520
3282
 
5521
- class Wero < ::Stripe::RequestParams
5522
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5523
- #
5524
- # 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.
5525
- #
5526
- # 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.
5527
- #
5528
- # 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).
5529
- #
5530
- # 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`.
5531
- attr_accessor :setup_future_usage
5532
-
5533
- def initialize(setup_future_usage: nil)
5534
- @setup_future_usage = setup_future_usage
5535
- end
5536
- end
5537
-
5538
3283
  class Zip < ::Stripe::RequestParams
5539
3284
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5540
3285
  #
@@ -5593,12 +3338,8 @@ module Stripe
5593
3338
  attr_accessor :fpx
5594
3339
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
5595
3340
  attr_accessor :giropay
5596
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5597
- attr_accessor :gopay
5598
3341
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
5599
3342
  attr_accessor :grabpay
5600
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5601
- attr_accessor :id_bank_transfer
5602
3343
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
5603
3344
  attr_accessor :ideal
5604
3345
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -5643,10 +3384,6 @@ module Stripe
5643
3384
  attr_accessor :pix
5644
3385
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
5645
3386
  attr_accessor :promptpay
5646
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5647
- attr_accessor :qris
5648
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5649
- attr_accessor :rechnung
5650
3387
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
5651
3388
  attr_accessor :revolut_pay
5652
3389
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -5659,12 +3396,8 @@ module Stripe
5659
3396
  attr_accessor :sepa_debit
5660
3397
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
5661
3398
  attr_accessor :sequra
5662
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5663
- attr_accessor :shopeepay
5664
3399
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
5665
3400
  attr_accessor :sofort
5666
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5667
- attr_accessor :stripe_balance
5668
3401
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
5669
3402
  attr_accessor :sunbit
5670
3403
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -5677,8 +3410,6 @@ module Stripe
5677
3410
  attr_accessor :us_bank_account
5678
3411
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
5679
3412
  attr_accessor :wechat_pay
5680
- # If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
5681
- attr_accessor :wero
5682
3413
  # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
5683
3414
  attr_accessor :zip
5684
3415
 
@@ -5704,9 +3435,7 @@ module Stripe
5704
3435
  eps: nil,
5705
3436
  fpx: nil,
5706
3437
  giropay: nil,
5707
- gopay: nil,
5708
3438
  grabpay: nil,
5709
- id_bank_transfer: nil,
5710
3439
  ideal: nil,
5711
3440
  interac_present: nil,
5712
3441
  kakao_pay: nil,
@@ -5729,24 +3458,19 @@ module Stripe
5729
3458
  payto: nil,
5730
3459
  pix: nil,
5731
3460
  promptpay: nil,
5732
- qris: nil,
5733
- rechnung: nil,
5734
3461
  revolut_pay: nil,
5735
3462
  samsung_pay: nil,
5736
3463
  satispay: nil,
5737
3464
  scalapay: nil,
5738
3465
  sepa_debit: nil,
5739
3466
  sequra: nil,
5740
- shopeepay: nil,
5741
3467
  sofort: nil,
5742
- stripe_balance: nil,
5743
3468
  sunbit: nil,
5744
3469
  swish: nil,
5745
3470
  twint: nil,
5746
3471
  upi: nil,
5747
3472
  us_bank_account: nil,
5748
3473
  wechat_pay: nil,
5749
- wero: nil,
5750
3474
  zip: nil
5751
3475
  )
5752
3476
  @acss_debit = acss_debit
@@ -5770,9 +3494,7 @@ module Stripe
5770
3494
  @eps = eps
5771
3495
  @fpx = fpx
5772
3496
  @giropay = giropay
5773
- @gopay = gopay
5774
3497
  @grabpay = grabpay
5775
- @id_bank_transfer = id_bank_transfer
5776
3498
  @ideal = ideal
5777
3499
  @interac_present = interac_present
5778
3500
  @kakao_pay = kakao_pay
@@ -5795,24 +3517,19 @@ module Stripe
5795
3517
  @payto = payto
5796
3518
  @pix = pix
5797
3519
  @promptpay = promptpay
5798
- @qris = qris
5799
- @rechnung = rechnung
5800
3520
  @revolut_pay = revolut_pay
5801
3521
  @samsung_pay = samsung_pay
5802
3522
  @satispay = satispay
5803
3523
  @scalapay = scalapay
5804
3524
  @sepa_debit = sepa_debit
5805
3525
  @sequra = sequra
5806
- @shopeepay = shopeepay
5807
3526
  @sofort = sofort
5808
- @stripe_balance = stripe_balance
5809
3527
  @sunbit = sunbit
5810
3528
  @swish = swish
5811
3529
  @twint = twint
5812
3530
  @upi = upi
5813
3531
  @us_bank_account = us_bank_account
5814
3532
  @wechat_pay = wechat_pay
5815
- @wero = wero
5816
3533
  @zip = zip
5817
3534
  end
5818
3535
  end
@@ -5968,8 +3685,6 @@ module Stripe
5968
3685
  attr_accessor :excluded_payment_method_types
5969
3686
  # Specifies which fields in the response should be expanded.
5970
3687
  attr_accessor :expand
5971
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5972
- attr_accessor :fx_quote
5973
3688
  # Automations to be run during the PaymentIntent lifecycle
5974
3689
  attr_accessor :hooks
5975
3690
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
@@ -6004,8 +3719,6 @@ module Stripe
6004
3719
  attr_accessor :receipt_email
6005
3720
  # 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://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
6006
3721
  attr_accessor :return_url
6007
- # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
6008
- attr_accessor :secret_key_confirmation
6009
3722
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
6010
3723
  #
6011
3724
  # 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.
@@ -6020,7 +3733,7 @@ module Stripe
6020
3733
  #
6021
3734
  # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
6022
3735
  attr_accessor :statement_descriptor
6023
- # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
3736
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. A suffix longer than 22 characters returns an error. If a valid suffix makes the complete statement descriptor longer than 22 characters, Stripe truncates the descriptor instead of returning an error. Learn how to [fit the suffix in the complete descriptor](https://docs.stripe.com/get-started/account/statement-descriptors#suffix-length).
6024
3737
  attr_accessor :statement_descriptor_suffix
6025
3738
  # The parameters that you can use to automatically create a Transfer.
6026
3739
  # Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
@@ -6047,7 +3760,6 @@ module Stripe
6047
3760
  error_on_requires_action: nil,
6048
3761
  excluded_payment_method_types: nil,
6049
3762
  expand: nil,
6050
- fx_quote: nil,
6051
3763
  hooks: nil,
6052
3764
  mandate: nil,
6053
3765
  mandate_data: nil,
@@ -6062,7 +3774,6 @@ module Stripe
6062
3774
  radar_options: nil,
6063
3775
  receipt_email: nil,
6064
3776
  return_url: nil,
6065
- secret_key_confirmation: nil,
6066
3777
  setup_future_usage: nil,
6067
3778
  shipping: nil,
6068
3779
  statement_descriptor: nil,
@@ -6087,7 +3798,6 @@ module Stripe
6087
3798
  @error_on_requires_action = error_on_requires_action
6088
3799
  @excluded_payment_method_types = excluded_payment_method_types
6089
3800
  @expand = expand
6090
- @fx_quote = fx_quote
6091
3801
  @hooks = hooks
6092
3802
  @mandate = mandate
6093
3803
  @mandate_data = mandate_data
@@ -6102,7 +3812,6 @@ module Stripe
6102
3812
  @radar_options = radar_options
6103
3813
  @receipt_email = receipt_email
6104
3814
  @return_url = return_url
6105
- @secret_key_confirmation = secret_key_confirmation
6106
3815
  @setup_future_usage = setup_future_usage
6107
3816
  @shipping = shipping
6108
3817
  @statement_descriptor = statement_descriptor