stripe 20.1.0 → 20.2.0.pre.beta.1

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 (507) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +4 -0
  3. data/lib/stripe/api_version.rb +2 -2
  4. data/lib/stripe/errors.rb +6 -0
  5. data/lib/stripe/event_types.rb +193 -0
  6. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  7. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  22. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  25. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  27. data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
  28. data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
  30. data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
  31. data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
  32. data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
  33. data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
  34. data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  36. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  37. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  38. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  39. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  40. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  41. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  54. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  55. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  56. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  57. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  58. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
  59. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
  60. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
  61. data/lib/stripe/object_types.rb +53 -0
  62. data/lib/stripe/params/account_create_params.rb +299 -1
  63. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  64. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  65. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  66. data/lib/stripe/params/account_session_create_params.rb +191 -0
  67. data/lib/stripe/params/account_update_params.rb +261 -0
  68. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  69. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  70. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  71. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  72. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  73. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  74. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  75. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  76. data/lib/stripe/params/charge_capture_params.rb +1646 -0
  77. data/lib/stripe/params/charge_update_params.rb +1646 -0
  78. data/lib/stripe/params/checkout/session_create_params.rb +87 -3
  79. data/lib/stripe/params/checkout/session_update_params.rb +161 -1
  80. data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
  81. data/lib/stripe/params/coupon_create_params.rb +17 -1
  82. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  83. data/lib/stripe/params/external_account_create_params.rb +134 -0
  84. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  85. data/lib/stripe/params/external_account_list_params.rb +25 -0
  86. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  87. data/lib/stripe/params/external_account_update_params.rb +91 -0
  88. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  89. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  90. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  91. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  92. data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
  93. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  94. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  95. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  96. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  97. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  98. data/lib/stripe/params/invoice_create_params.rb +64 -2
  99. data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
  100. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  101. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  102. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  103. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  104. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  105. data/lib/stripe/params/invoice_update_params.rb +64 -2
  106. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  107. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  108. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  109. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  110. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  111. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  112. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  113. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  114. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  115. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  116. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  117. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  118. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  119. data/lib/stripe/params/mandate_list_params.rb +39 -0
  120. data/lib/stripe/params/margin_create_params.rb +25 -0
  121. data/lib/stripe/params/margin_list_params.rb +25 -0
  122. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  123. data/lib/stripe/params/margin_update_params.rb +22 -0
  124. data/lib/stripe/params/order_create_params.rb +2083 -0
  125. data/lib/stripe/params/order_list_params.rb +25 -0
  126. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  127. data/lib/stripe/params/order_submit_params.rb +16 -0
  128. data/lib/stripe/params/order_update_params.rb +2087 -0
  129. data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
  130. data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
  131. data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
  132. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
  133. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
  134. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  135. data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
  136. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  137. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  138. data/lib/stripe/params/payment_method_create_params.rb +88 -0
  139. data/lib/stripe/params/payment_plan_create_params.rb +128 -0
  140. data/lib/stripe/params/payment_plan_list_params.rb +25 -0
  141. data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
  142. data/lib/stripe/params/payment_plan_update_params.rb +105 -0
  143. data/lib/stripe/params/price_update_params.rb +19 -0
  144. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  145. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  146. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  147. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  148. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  149. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  150. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  151. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  152. data/lib/stripe/params/quote_create_params.rb +809 -3
  153. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  154. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  155. data/lib/stripe/params/quote_list_params.rb +4 -0
  156. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  157. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  158. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  159. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  160. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  161. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  162. data/lib/stripe/params/quote_update_params.rb +817 -4
  163. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
  164. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  165. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  166. data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
  167. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  168. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  169. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  170. data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
  171. data/lib/stripe/params/setup_intent_create_params.rb +122 -3
  172. data/lib/stripe/params/setup_intent_update_params.rb +122 -3
  173. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  174. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  175. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  176. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
  177. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  178. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  179. data/lib/stripe/params/subscription_create_params.rb +133 -6
  180. data/lib/stripe/params/subscription_item_create_params.rb +50 -3
  181. data/lib/stripe/params/subscription_item_update_params.rb +33 -2
  182. data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
  183. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  184. data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
  185. data/lib/stripe/params/subscription_update_params.rb +116 -5
  186. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  187. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  188. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  189. data/lib/stripe/params/tax/registration_create_params.rb +13 -1
  190. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  191. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
  192. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  193. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  194. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  195. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  196. data/lib/stripe/params/transfer_create_params.rb +4 -0
  197. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  198. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  199. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  200. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  201. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
  202. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  203. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  204. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  205. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  206. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  207. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  208. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  209. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  210. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  211. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  212. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  213. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  214. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  215. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  216. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  217. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  218. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  219. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  220. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  221. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  222. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  223. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  224. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  225. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  226. data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
  227. data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
  228. data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
  229. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  230. data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
  231. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
  233. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  234. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  235. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  236. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
  237. data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
  238. data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
  239. data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
  240. data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
  241. data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
  242. data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
  243. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  244. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
  245. data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
  246. data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
  247. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  248. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  249. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  250. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  251. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  252. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  253. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  254. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
  255. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
  256. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
  257. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
  258. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  259. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
  260. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
  261. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  262. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
  263. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  264. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
  266. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  267. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
  269. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  270. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  271. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  272. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  273. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  274. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  276. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
  277. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
  278. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
  279. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
  280. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
  281. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  282. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  283. data/lib/stripe/params.rb +364 -0
  284. data/lib/stripe/resources/account.rb +176 -1
  285. data/lib/stripe/resources/account_notice.rb +94 -0
  286. data/lib/stripe/resources/account_session.rb +81 -0
  287. data/lib/stripe/resources/balance.rb +83 -0
  288. data/lib/stripe/resources/balance_settings.rb +4 -0
  289. data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
  290. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  291. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  292. data/lib/stripe/resources/capital/financing_offer.rb +144 -0
  293. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  294. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  295. data/lib/stripe/resources/card.rb +18 -1
  296. data/lib/stripe/resources/charge.rb +227 -1
  297. data/lib/stripe/resources/checkout/session.rb +91 -3
  298. data/lib/stripe/resources/confirmation_token.rb +131 -0
  299. data/lib/stripe/resources/coupon.rb +26 -1
  300. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  301. data/lib/stripe/resources/customer.rb +16 -0
  302. data/lib/stripe/resources/customer_session.rb +36 -0
  303. data/lib/stripe/resources/dispute.rb +18 -0
  304. data/lib/stripe/resources/event.rb +64 -1
  305. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  306. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  307. data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
  308. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  309. data/lib/stripe/resources/financial_connections/session.rb +92 -0
  310. data/lib/stripe/resources/fx_quote.rb +149 -0
  311. data/lib/stripe/resources/invoice.rb +106 -1
  312. data/lib/stripe/resources/invoice_item.rb +2 -0
  313. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  314. data/lib/stripe/resources/issuing/authorization.rb +16 -0
  315. data/lib/stripe/resources/issuing/card.rb +16 -0
  316. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  317. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  318. data/lib/stripe/resources/issuing/dispute.rb +16 -1
  319. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  320. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  321. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  322. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  323. data/lib/stripe/resources/line_item.rb +42 -0
  324. data/lib/stripe/resources/mandate.rb +12 -0
  325. data/lib/stripe/resources/margin.rb +64 -0
  326. data/lib/stripe/resources/order.rb +927 -0
  327. data/lib/stripe/resources/payment_attempt_record.rb +177 -1
  328. data/lib/stripe/resources/payment_intent.rb +1588 -10
  329. data/lib/stripe/resources/payment_method.rb +151 -0
  330. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  331. data/lib/stripe/resources/payment_plan.rb +213 -0
  332. data/lib/stripe/resources/payment_record.rb +177 -1
  333. data/lib/stripe/resources/price.rb +20 -0
  334. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  335. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  336. data/lib/stripe/resources/quote.rb +569 -2
  337. data/lib/stripe/resources/quote_line.rb +525 -0
  338. data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
  339. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
  340. data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
  341. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  342. data/lib/stripe/resources/refund.rb +18 -0
  343. data/lib/stripe/resources/reserve/hold.rb +7 -0
  344. data/lib/stripe/resources/reserve/plan.rb +7 -0
  345. data/lib/stripe/resources/reserve/release.rb +12 -0
  346. data/lib/stripe/resources/setup_attempt.rb +35 -0
  347. data/lib/stripe/resources/setup_intent.rb +38 -1
  348. data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
  349. data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
  350. data/lib/stripe/resources/source.rb +54 -0
  351. data/lib/stripe/resources/subscription.rb +73 -0
  352. data/lib/stripe/resources/subscription_item.rb +22 -1
  353. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  354. data/lib/stripe/resources/tax/form.rb +264 -0
  355. data/lib/stripe/resources/tax/registration.rb +16 -1
  356. data/lib/stripe/resources/terminal/reader.rb +8 -0
  357. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  358. data/lib/stripe/resources/token.rb +15 -1
  359. data/lib/stripe/resources/transfer.rb +2 -0
  360. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  361. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  362. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  363. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  364. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  365. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  366. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  367. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  368. data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
  369. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  370. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  371. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  372. data/lib/stripe/resources/v2/core/account.rb +802 -2
  373. data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
  374. data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
  375. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  376. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
  377. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
  378. data/lib/stripe/resources/v2/data/query_run.rb +255 -0
  379. data/lib/stripe/resources/v2/data/report.rb +104 -0
  380. data/lib/stripe/resources/v2/data/report_run.rb +246 -0
  381. data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
  382. data/lib/stripe/resources/v2/data/schema.rb +121 -0
  383. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  384. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  385. data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
  386. data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
  387. data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
  388. data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
  389. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  390. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
  391. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
  392. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
  393. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
  394. data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
  395. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  396. data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
  397. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
  398. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  399. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  400. data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
  401. data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
  402. data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
  403. data/lib/stripe/resources.rb +341 -0
  404. data/lib/stripe/services/account_notice_service.rb +39 -0
  405. data/lib/stripe/services/account_service.rb +15 -0
  406. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  407. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  408. data/lib/stripe/services/billing_service.rb +2 -1
  409. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  410. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  411. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  412. data/lib/stripe/services/capital_service.rb +15 -0
  413. data/lib/stripe/services/coupon_service.rb +14 -0
  414. data/lib/stripe/services/customer_service.rb +15 -0
  415. data/lib/stripe/services/external_account_service.rb +68 -0
  416. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  417. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  418. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  419. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  420. data/lib/stripe/services/financial_connections_service.rb +3 -1
  421. data/lib/stripe/services/fx_quote_service.rb +27 -0
  422. data/lib/stripe/services/invoice_service.rb +11 -0
  423. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  424. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  425. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  426. data/lib/stripe/services/issuing_service.rb +5 -1
  427. data/lib/stripe/services/mandate_service.rb +5 -0
  428. data/lib/stripe/services/margin_service.rb +50 -0
  429. data/lib/stripe/services/order_service.rb +53 -0
  430. data/lib/stripe/services/payment_intent_service.rb +37 -0
  431. data/lib/stripe/services/payment_plan_service.rb +50 -0
  432. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  433. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  434. data/lib/stripe/services/privacy_service.rb +13 -0
  435. data/lib/stripe/services/promotion_code_service.rb +29 -0
  436. data/lib/stripe/services/quote_line_service.rb +17 -0
  437. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  438. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  439. data/lib/stripe/services/quote_service.rb +49 -1
  440. data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
  441. data/lib/stripe/services/radar_service.rb +2 -1
  442. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  443. data/lib/stripe/services/reserve/plan_service.rb +30 -0
  444. data/lib/stripe/services/reserve/release_service.rb +30 -0
  445. data/lib/stripe/services/reserve_service.rb +15 -0
  446. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  447. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  448. data/lib/stripe/services/shared_payment_service.rb +14 -0
  449. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  450. data/lib/stripe/services/subscription_service.rb +45 -0
  451. data/lib/stripe/services/tax/form_service.rb +37 -0
  452. data/lib/stripe/services/tax_service.rb +2 -1
  453. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  454. data/lib/stripe/services/terminal_service.rb +2 -1
  455. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  456. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  457. data/lib/stripe/services/test_helpers_service.rb +2 -1
  458. data/lib/stripe/services/v1_services.rb +11 -1
  459. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  460. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  461. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  462. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  463. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  464. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  465. data/lib/stripe/services/v2/billing_service.rb +5 -1
  466. data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
  467. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  468. data/lib/stripe/services/v2/core_service.rb +3 -1
  469. data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
  470. data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
  471. data/lib/stripe/services/v2/data/report_service.rb +34 -0
  472. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  473. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  474. data/lib/stripe/services/v2/data/schema_service.rb +32 -0
  475. data/lib/stripe/services/v2/data_service.rb +19 -0
  476. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  477. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  478. data/lib/stripe/services/v2/extend_service.rb +16 -0
  479. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  480. data/lib/stripe/services/v2/iam_service.rb +15 -0
  481. data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
  482. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
  483. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
  484. data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
  485. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  486. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
  487. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  488. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  489. data/lib/stripe/services/v2/network_service.rb +15 -0
  490. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  491. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  492. data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
  493. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
  494. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  495. data/lib/stripe/services/v2/signals_service.rb +17 -0
  496. data/lib/stripe/services/v2_services.rb +7 -1
  497. data/lib/stripe/services.rb +181 -0
  498. data/lib/stripe/stripe_client.rb +4 -1
  499. data/lib/stripe/stripe_configuration.rb +3 -1
  500. data/lib/stripe/stripe_event_notification_handler.rb +216 -0
  501. data/lib/stripe/stripe_object.rb +1 -1
  502. data/lib/stripe/util.rb +7 -1
  503. data/lib/stripe/version.rb +1 -1
  504. data/lib/stripe.rb +53 -0
  505. data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
  506. data/rbi/stripe.rbi +133319 -66595
  507. metadata +331 -3
@@ -145,139 +145,1781 @@ 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
+
148
160
  class Tax < ::Stripe::RequestParams
149
161
  # 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.
150
162
  #
151
163
  # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
152
164
  attr_accessor :total_tax_amount
153
165
 
154
- def initialize(total_tax_amount: nil)
166
+ def initialize(total_tax_amount: nil)
167
+ @total_tax_amount = total_tax_amount
168
+ end
169
+ end
170
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
171
+ #
172
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
173
+ attr_accessor :discount_amount
174
+ # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
175
+ #
176
+ # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
177
+ #
178
+ # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
179
+ attr_accessor :enforce_arithmetic_validation
180
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
181
+ attr_accessor :line_items
182
+ # Contains information about the shipping portion of the amount.
183
+ attr_accessor :shipping
184
+ # Contains information about the surcharge portion of the amount.
185
+ attr_accessor :surcharge
186
+ # Contains information about the tax portion of the amount.
187
+ attr_accessor :tax
188
+
189
+ def initialize(
190
+ discount_amount: nil,
191
+ enforce_arithmetic_validation: nil,
192
+ line_items: nil,
193
+ shipping: nil,
194
+ surcharge: nil,
195
+ tax: nil
196
+ )
197
+ @discount_amount = discount_amount
198
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
199
+ @line_items = line_items
200
+ @shipping = shipping
201
+ @surcharge = surcharge
202
+ @tax = tax
203
+ end
204
+ end
205
+
206
+ class AutomaticPaymentMethods < ::Stripe::RequestParams
207
+ # Controls whether this PaymentIntent will accept redirect-based payment methods.
208
+ #
209
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
210
+ attr_accessor :allow_redirects
211
+ # Whether this feature is enabled.
212
+ attr_accessor :enabled
213
+
214
+ def initialize(allow_redirects: nil, enabled: nil)
215
+ @allow_redirects = allow_redirects
216
+ @enabled = enabled
217
+ end
218
+ end
219
+
220
+ class Hooks < ::Stripe::RequestParams
221
+ class Inputs < ::Stripe::RequestParams
222
+ class Tax < ::Stripe::RequestParams
223
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
224
+ attr_accessor :calculation
225
+
226
+ def initialize(calculation: nil)
227
+ @calculation = calculation
228
+ end
229
+ end
230
+ # Tax arguments for automations
231
+ attr_accessor :tax
232
+
233
+ def initialize(tax: nil)
234
+ @tax = tax
235
+ end
236
+ end
237
+ # Arguments passed in automations
238
+ attr_accessor :inputs
239
+
240
+ def initialize(inputs: nil)
241
+ @inputs = inputs
242
+ end
243
+ end
244
+
245
+ class MandateData < ::Stripe::RequestParams
246
+ class CustomerAcceptance < ::Stripe::RequestParams
247
+ class Offline < ::Stripe::RequestParams; end
248
+
249
+ class Online < ::Stripe::RequestParams
250
+ # The IP address from which the Mandate was accepted by the customer.
251
+ attr_accessor :ip_address
252
+ # The user agent of the browser from which the Mandate was accepted by the customer.
253
+ attr_accessor :user_agent
254
+
255
+ def initialize(ip_address: nil, user_agent: nil)
256
+ @ip_address = ip_address
257
+ @user_agent = user_agent
258
+ end
259
+ end
260
+ # The time at which the customer accepted the Mandate.
261
+ attr_accessor :accepted_at
262
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
263
+ attr_accessor :offline
264
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
265
+ attr_accessor :online
266
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
267
+ attr_accessor :type
268
+
269
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
270
+ @accepted_at = accepted_at
271
+ @offline = offline
272
+ @online = online
273
+ @type = type
274
+ end
275
+ end
276
+ # This hash contains details about the customer acceptance of the Mandate.
277
+ attr_accessor :customer_acceptance
278
+
279
+ def initialize(customer_acceptance: nil)
280
+ @customer_acceptance = customer_acceptance
281
+ end
282
+ end
283
+
284
+ 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
+ class CarRentalDatum < ::Stripe::RequestParams
512
+ class Affiliate < ::Stripe::RequestParams
513
+ # Affiliate partner code.
514
+ attr_accessor :code
515
+ # Name of affiliate partner.
516
+ attr_accessor :name
517
+
518
+ def initialize(code: nil, name: nil)
519
+ @code = code
520
+ @name = name
521
+ end
522
+ end
523
+
524
+ class Distance < ::Stripe::RequestParams
525
+ # Distance traveled.
526
+ attr_accessor :amount
527
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
528
+ attr_accessor :unit
529
+
530
+ def initialize(amount: nil, unit: nil)
531
+ @amount = amount
532
+ @unit = unit
533
+ end
534
+ end
535
+
536
+ class Driver < ::Stripe::RequestParams
537
+ class DateOfBirth < ::Stripe::RequestParams
538
+ # Day of birth (1-31).
539
+ attr_accessor :day
540
+ # Month of birth (1-12).
541
+ attr_accessor :month
542
+ # Year of birth (must be greater than 1900).
543
+ attr_accessor :year
544
+
545
+ def initialize(day: nil, month: nil, year: nil)
546
+ @day = day
547
+ @month = month
548
+ @year = year
549
+ end
550
+ end
551
+ # Driver's date of birth.
552
+ attr_accessor :date_of_birth
553
+ # Driver's identification number.
554
+ attr_accessor :driver_identification_number
555
+ # Driver's tax number.
556
+ attr_accessor :driver_tax_number
557
+ # Driver's full name.
558
+ attr_accessor :name
559
+
560
+ def initialize(
561
+ date_of_birth: nil,
562
+ driver_identification_number: nil,
563
+ driver_tax_number: nil,
564
+ name: nil
565
+ )
566
+ @date_of_birth = date_of_birth
567
+ @driver_identification_number = driver_identification_number
568
+ @driver_tax_number = driver_tax_number
569
+ @name = name
570
+ end
571
+ end
572
+
573
+ class DropOff < ::Stripe::RequestParams
574
+ class Address < ::Stripe::RequestParams
575
+ # City, district, suburb, town, or village.
576
+ attr_accessor :city
577
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
578
+ attr_accessor :country
579
+ # Address line 1, such as the street, PO Box, or company name.
580
+ attr_accessor :line1
581
+ # Address line 2, such as the apartment, suite, unit, or building.
582
+ attr_accessor :line2
583
+ # ZIP or postal code.
584
+ attr_accessor :postal_code
585
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
586
+ attr_accessor :state
587
+
588
+ def initialize(
589
+ city: nil,
590
+ country: nil,
591
+ line1: nil,
592
+ line2: nil,
593
+ postal_code: nil,
594
+ state: nil
595
+ )
596
+ @city = city
597
+ @country = country
598
+ @line1 = line1
599
+ @line2 = line2
600
+ @postal_code = postal_code
601
+ @state = state
602
+ end
603
+ end
604
+ # Address of the rental location.
605
+ attr_accessor :address
606
+ # Location name.
607
+ attr_accessor :location_name
608
+ # Timestamp for the location.
609
+ attr_accessor :time
610
+
611
+ def initialize(address: nil, location_name: nil, time: nil)
612
+ @address = address
613
+ @location_name = location_name
614
+ @time = time
615
+ end
616
+ end
617
+
618
+ class Insurance < ::Stripe::RequestParams
619
+ # Amount of the insurance coverage in cents.
620
+ attr_accessor :amount
621
+ # Currency of the insurance amount.
622
+ attr_accessor :currency
623
+ # Name of the insurance company.
624
+ attr_accessor :insurance_company_name
625
+ # Type of insurance coverage.
626
+ attr_accessor :insurance_type
627
+
628
+ def initialize(
629
+ amount: nil,
630
+ currency: nil,
631
+ insurance_company_name: nil,
632
+ insurance_type: nil
633
+ )
634
+ @amount = amount
635
+ @currency = currency
636
+ @insurance_company_name = insurance_company_name
637
+ @insurance_type = insurance_type
638
+ end
639
+ end
640
+
641
+ class Pickup < ::Stripe::RequestParams
642
+ class Address < ::Stripe::RequestParams
643
+ # City, district, suburb, town, or village.
644
+ attr_accessor :city
645
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
646
+ attr_accessor :country
647
+ # Address line 1, such as the street, PO Box, or company name.
648
+ attr_accessor :line1
649
+ # Address line 2, such as the apartment, suite, unit, or building.
650
+ attr_accessor :line2
651
+ # ZIP or postal code.
652
+ attr_accessor :postal_code
653
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
654
+ attr_accessor :state
655
+
656
+ def initialize(
657
+ city: nil,
658
+ country: nil,
659
+ line1: nil,
660
+ line2: nil,
661
+ postal_code: nil,
662
+ state: nil
663
+ )
664
+ @city = city
665
+ @country = country
666
+ @line1 = line1
667
+ @line2 = line2
668
+ @postal_code = postal_code
669
+ @state = state
670
+ end
671
+ end
672
+ # Address of the rental location.
673
+ attr_accessor :address
674
+ # Location name.
675
+ attr_accessor :location_name
676
+ # Timestamp for the location.
677
+ attr_accessor :time
678
+
679
+ def initialize(address: nil, location_name: nil, time: nil)
680
+ @address = address
681
+ @location_name = location_name
682
+ @time = time
683
+ end
684
+ end
685
+
686
+ class Total < ::Stripe::RequestParams
687
+ class Discounts < ::Stripe::RequestParams
688
+ # Corporate client discount code.
689
+ attr_accessor :corporate_client_code
690
+ # Coupon code applied to the rental.
691
+ attr_accessor :coupon
692
+ # Maximum number of free miles or kilometers included.
693
+ attr_accessor :maximum_free_miles_or_kilometers
694
+
695
+ def initialize(
696
+ corporate_client_code: nil,
697
+ coupon: nil,
698
+ maximum_free_miles_or_kilometers: nil
699
+ )
700
+ @corporate_client_code = corporate_client_code
701
+ @coupon = coupon
702
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
703
+ end
704
+ end
705
+
706
+ class ExtraCharge < ::Stripe::RequestParams
707
+ # Amount of the extra charge in cents.
708
+ attr_accessor :amount
709
+ # Type of extra charge.
710
+ attr_accessor :type
711
+
712
+ def initialize(amount: nil, type: nil)
713
+ @amount = amount
714
+ @type = type
715
+ end
716
+ end
717
+
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
1421
+ end
1422
+ 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
1431
+ end
1432
+ end
1433
+
1434
+ class Passenger < ::Stripe::RequestParams
1435
+ # Full name of the person or entity on the lodging reservation.
1436
+ attr_accessor :name
1437
+
1438
+ def initialize(name: nil)
1439
+ @name = name
1440
+ end
1441
+ 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.
1447
+ attr_accessor :affiliate
1448
+ # The booking number associated with the lodging reservation.
1449
+ 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.
1457
+ 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
1484
+
1485
+ def initialize(
1486
+ address: nil,
1487
+ adults: nil,
1488
+ affiliate: nil,
1489
+ booking_number: nil,
1490
+ category: nil,
1491
+ checkin_at: nil,
1492
+ checkout_at: nil,
1493
+ 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
1507
+ )
1508
+ @address = address
1509
+ @adults = adults
1510
+ @affiliate = affiliate
1511
+ @booking_number = booking_number
1512
+ @category = category
1513
+ @checkin_at = checkin_at
1514
+ @checkout_at = checkout_at
1515
+ @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
155
1528
  @total_tax_amount = total_tax_amount
156
1529
  end
157
1530
  end
158
- # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
159
- #
160
- # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
161
- attr_accessor :discount_amount
162
- # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
163
- #
164
- # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
165
- #
166
- # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
167
- attr_accessor :enforce_arithmetic_validation
168
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
169
- attr_accessor :line_items
170
- # Contains information about the shipping portion of the amount.
171
- attr_accessor :shipping
172
- # Contains information about the tax portion of the amount.
173
- attr_accessor :tax
174
1531
 
175
- def initialize(
176
- discount_amount: nil,
177
- enforce_arithmetic_validation: nil,
178
- line_items: nil,
179
- shipping: nil,
180
- tax: nil
181
- )
182
- @discount_amount = discount_amount
183
- @enforce_arithmetic_validation = enforce_arithmetic_validation
184
- @line_items = line_items
185
- @shipping = shipping
186
- @tax = tax
187
- end
188
- end
1532
+ class LodgingDatum < ::Stripe::RequestParams
1533
+ class Accommodation < ::Stripe::RequestParams
1534
+ # Type of accommodation.
1535
+ attr_accessor :accommodation_type
1536
+ # Bed type.
1537
+ attr_accessor :bed_type
1538
+ # Daily accommodation rate in cents.
1539
+ attr_accessor :daily_rate_amount
1540
+ # Number of nights.
1541
+ attr_accessor :nights
1542
+ # Number of rooms, cabanas, apartments, and so on.
1543
+ attr_accessor :number_of_rooms
1544
+ # Rate type.
1545
+ attr_accessor :rate_type
1546
+ # Whether smoking is allowed.
1547
+ attr_accessor :smoking_indicator
189
1548
 
190
- class AutomaticPaymentMethods < ::Stripe::RequestParams
191
- # Controls whether this PaymentIntent will accept redirect-based payment methods.
192
- #
193
- # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
194
- attr_accessor :allow_redirects
195
- # Whether this feature is enabled.
196
- attr_accessor :enabled
1549
+ def initialize(
1550
+ accommodation_type: nil,
1551
+ bed_type: nil,
1552
+ daily_rate_amount: nil,
1553
+ nights: nil,
1554
+ number_of_rooms: nil,
1555
+ rate_type: nil,
1556
+ smoking_indicator: nil
1557
+ )
1558
+ @accommodation_type = accommodation_type
1559
+ @bed_type = bed_type
1560
+ @daily_rate_amount = daily_rate_amount
1561
+ @nights = nights
1562
+ @number_of_rooms = number_of_rooms
1563
+ @rate_type = rate_type
1564
+ @smoking_indicator = smoking_indicator
1565
+ end
1566
+ end
197
1567
 
198
- def initialize(allow_redirects: nil, enabled: nil)
199
- @allow_redirects = allow_redirects
200
- @enabled = enabled
201
- end
202
- end
1568
+ class Affiliate < ::Stripe::RequestParams
1569
+ # Affiliate partner code.
1570
+ attr_accessor :code
1571
+ # Affiliate partner name.
1572
+ attr_accessor :name
203
1573
 
204
- class Hooks < ::Stripe::RequestParams
205
- class Inputs < ::Stripe::RequestParams
206
- class Tax < ::Stripe::RequestParams
207
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
208
- attr_accessor :calculation
1574
+ def initialize(code: nil, name: nil)
1575
+ @code = code
1576
+ @name = name
1577
+ end
1578
+ end
209
1579
 
210
- def initialize(calculation: nil)
211
- @calculation = calculation
1580
+ class Guest < ::Stripe::RequestParams
1581
+ # Guest's full name.
1582
+ attr_accessor :name
1583
+
1584
+ def initialize(name: nil)
1585
+ @name = name
212
1586
  end
213
1587
  end
214
- # Tax arguments for automations
215
- attr_accessor :tax
216
1588
 
217
- def initialize(tax: nil)
218
- @tax = tax
1589
+ class Host < ::Stripe::RequestParams
1590
+ class Address < ::Stripe::RequestParams
1591
+ # City, district, suburb, town, or village.
1592
+ attr_accessor :city
1593
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1594
+ attr_accessor :country
1595
+ # Address line 1, such as the street, PO Box, or company name.
1596
+ attr_accessor :line1
1597
+ # Address line 2, such as the apartment, suite, unit, or building.
1598
+ attr_accessor :line2
1599
+ # ZIP or postal code.
1600
+ attr_accessor :postal_code
1601
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1602
+ attr_accessor :state
1603
+
1604
+ def initialize(
1605
+ city: nil,
1606
+ country: nil,
1607
+ line1: nil,
1608
+ line2: nil,
1609
+ postal_code: nil,
1610
+ state: nil
1611
+ )
1612
+ @city = city
1613
+ @country = country
1614
+ @line1 = line1
1615
+ @line2 = line2
1616
+ @postal_code = postal_code
1617
+ @state = state
1618
+ end
1619
+ end
1620
+ # Address of the host.
1621
+ attr_accessor :address
1622
+ # Host's country of domicile.
1623
+ attr_accessor :country_of_domicile
1624
+ # Reference number for the host.
1625
+ attr_accessor :host_reference
1626
+ # Type of host.
1627
+ attr_accessor :host_type
1628
+ # Name of the lodging property or host.
1629
+ attr_accessor :name
1630
+ # Total number of reservations for the host.
1631
+ attr_accessor :number_of_reservations
1632
+ # Property phone number.
1633
+ attr_accessor :property_phone_number
1634
+ # Host's registration date.
1635
+ attr_accessor :registered_at
1636
+
1637
+ def initialize(
1638
+ address: nil,
1639
+ country_of_domicile: nil,
1640
+ host_reference: nil,
1641
+ host_type: nil,
1642
+ name: nil,
1643
+ number_of_reservations: nil,
1644
+ property_phone_number: nil,
1645
+ registered_at: nil
1646
+ )
1647
+ @address = address
1648
+ @country_of_domicile = country_of_domicile
1649
+ @host_reference = host_reference
1650
+ @host_type = host_type
1651
+ @name = name
1652
+ @number_of_reservations = number_of_reservations
1653
+ @property_phone_number = property_phone_number
1654
+ @registered_at = registered_at
1655
+ end
219
1656
  end
220
- end
221
- # Arguments passed in automations
222
- attr_accessor :inputs
223
1657
 
224
- def initialize(inputs: nil)
225
- @inputs = inputs
226
- end
227
- end
1658
+ class Insurance < ::Stripe::RequestParams
1659
+ # Price of the insurance coverage in cents.
1660
+ attr_accessor :amount
1661
+ # Currency of the insurance amount.
1662
+ attr_accessor :currency
1663
+ # Name of the insurance company.
1664
+ attr_accessor :insurance_company_name
1665
+ # Type of insurance coverage.
1666
+ attr_accessor :insurance_type
228
1667
 
229
- class MandateData < ::Stripe::RequestParams
230
- class CustomerAcceptance < ::Stripe::RequestParams
231
- class Offline < ::Stripe::RequestParams; end
1668
+ def initialize(
1669
+ amount: nil,
1670
+ currency: nil,
1671
+ insurance_company_name: nil,
1672
+ insurance_type: nil
1673
+ )
1674
+ @amount = amount
1675
+ @currency = currency
1676
+ @insurance_company_name = insurance_company_name
1677
+ @insurance_type = insurance_type
1678
+ end
1679
+ end
232
1680
 
233
- class Online < ::Stripe::RequestParams
234
- # The IP address from which the Mandate was accepted by the customer.
235
- attr_accessor :ip_address
236
- # The user agent of the browser from which the Mandate was accepted by the customer.
237
- attr_accessor :user_agent
1681
+ class Total < ::Stripe::RequestParams
1682
+ class Discounts < ::Stripe::RequestParams
1683
+ # Corporate client discount code.
1684
+ attr_accessor :corporate_client_code
1685
+ # Coupon code.
1686
+ attr_accessor :coupon
238
1687
 
239
- def initialize(ip_address: nil, user_agent: nil)
240
- @ip_address = ip_address
241
- @user_agent = user_agent
1688
+ def initialize(corporate_client_code: nil, coupon: nil)
1689
+ @corporate_client_code = corporate_client_code
1690
+ @coupon = coupon
1691
+ end
1692
+ end
1693
+
1694
+ class ExtraCharge < ::Stripe::RequestParams
1695
+ # Amount of the extra charge in cents.
1696
+ attr_accessor :amount
1697
+ # Type of extra charge.
1698
+ attr_accessor :type
1699
+
1700
+ def initialize(amount: nil, type: nil)
1701
+ @amount = amount
1702
+ @type = type
1703
+ end
1704
+ end
1705
+
1706
+ class Tax < ::Stripe::RequestParams
1707
+ class TaxItem < ::Stripe::RequestParams
1708
+ # Tax amount in cents.
1709
+ attr_accessor :amount
1710
+ # Tax rate.
1711
+ attr_accessor :rate
1712
+ # Type of tax applied.
1713
+ attr_accessor :type
1714
+
1715
+ def initialize(amount: nil, rate: nil, type: nil)
1716
+ @amount = amount
1717
+ @rate = rate
1718
+ @type = type
1719
+ end
1720
+ end
1721
+ # Indicates whether the transaction is tax exempt.
1722
+ attr_accessor :tax_exempt_indicator
1723
+ # Tax details.
1724
+ attr_accessor :tax_items
1725
+
1726
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
1727
+ @tax_exempt_indicator = tax_exempt_indicator
1728
+ @tax_items = tax_items
1729
+ end
1730
+ end
1731
+ # Total price of the lodging reservation in cents.
1732
+ attr_accessor :amount
1733
+ # Cash advances in cents.
1734
+ attr_accessor :cash_advances
1735
+ # Currency of the total amount.
1736
+ attr_accessor :currency
1737
+ # Discount details for the lodging.
1738
+ attr_accessor :discounts
1739
+ # Additional charges for the lodging.
1740
+ attr_accessor :extra_charges
1741
+ # Prepaid amount in cents.
1742
+ attr_accessor :prepaid_amount
1743
+ # Tax breakdown for the lodging reservation.
1744
+ attr_accessor :tax
1745
+
1746
+ def initialize(
1747
+ amount: nil,
1748
+ cash_advances: nil,
1749
+ currency: nil,
1750
+ discounts: nil,
1751
+ extra_charges: nil,
1752
+ prepaid_amount: nil,
1753
+ tax: nil
1754
+ )
1755
+ @amount = amount
1756
+ @cash_advances = cash_advances
1757
+ @currency = currency
1758
+ @discounts = discounts
1759
+ @extra_charges = extra_charges
1760
+ @prepaid_amount = prepaid_amount
1761
+ @tax = tax
242
1762
  end
243
1763
  end
244
- # The time at which the customer accepted the Mandate.
245
- attr_accessor :accepted_at
246
- # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
247
- attr_accessor :offline
248
- # If this is a Mandate accepted online, this hash contains details about the online acceptance.
249
- attr_accessor :online
250
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
251
- attr_accessor :type
1764
+ # Accommodation details for the lodging.
1765
+ attr_accessor :accommodation
1766
+ # Affiliate details if applicable.
1767
+ attr_accessor :affiliate
1768
+ # Booking confirmation number for the lodging.
1769
+ attr_accessor :booking_number
1770
+ # Check-in date.
1771
+ attr_accessor :checkin_at
1772
+ # Check-out date.
1773
+ attr_accessor :checkout_at
1774
+ # Customer service phone number for the lodging company.
1775
+ attr_accessor :customer_service_phone_number
1776
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1777
+ attr_accessor :fire_safety_act_compliance_indicator
1778
+ # List of guests for the lodging.
1779
+ attr_accessor :guests
1780
+ # Host details for the lodging.
1781
+ attr_accessor :host
1782
+ # List of insurances for the lodging.
1783
+ attr_accessor :insurances
1784
+ # Whether the renter is a no-show.
1785
+ attr_accessor :no_show_indicator
1786
+ # Renter ID number for the lodging.
1787
+ attr_accessor :renter_id_number
1788
+ # Renter name for the lodging.
1789
+ attr_accessor :renter_name
1790
+ # Total details for the lodging.
1791
+ attr_accessor :total
252
1792
 
253
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
254
- @accepted_at = accepted_at
255
- @offline = offline
256
- @online = online
257
- @type = type
1793
+ def initialize(
1794
+ accommodation: nil,
1795
+ affiliate: nil,
1796
+ booking_number: nil,
1797
+ checkin_at: nil,
1798
+ checkout_at: nil,
1799
+ customer_service_phone_number: nil,
1800
+ fire_safety_act_compliance_indicator: nil,
1801
+ guests: nil,
1802
+ host: nil,
1803
+ insurances: nil,
1804
+ no_show_indicator: nil,
1805
+ renter_id_number: nil,
1806
+ renter_name: nil,
1807
+ total: nil
1808
+ )
1809
+ @accommodation = accommodation
1810
+ @affiliate = affiliate
1811
+ @booking_number = booking_number
1812
+ @checkin_at = checkin_at
1813
+ @checkout_at = checkout_at
1814
+ @customer_service_phone_number = customer_service_phone_number
1815
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1816
+ @guests = guests
1817
+ @host = host
1818
+ @insurances = insurances
1819
+ @no_show_indicator = no_show_indicator
1820
+ @renter_id_number = renter_id_number
1821
+ @renter_name = renter_name
1822
+ @total = total
258
1823
  end
259
1824
  end
260
- # This hash contains details about the customer acceptance of the Mandate.
261
- attr_accessor :customer_acceptance
262
1825
 
263
- def initialize(customer_acceptance: nil)
264
- @customer_acceptance = customer_acceptance
265
- end
266
- end
1826
+ class Subscription < ::Stripe::RequestParams
1827
+ class Affiliate < ::Stripe::RequestParams
1828
+ # The name of the affiliate that originated the purchase.
1829
+ attr_accessor :name
267
1830
 
268
- class PaymentDetails < ::Stripe::RequestParams
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
+ # Car rental data for this PaymentIntent.
1879
+ attr_accessor :car_rental_data
269
1880
  # A unique value to identify the customer. This field is available only for card payments.
270
1881
  #
271
1882
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
272
1883
  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
+ # Lodging data for this PaymentIntent.
1893
+ attr_accessor :lodging_data
273
1894
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
274
1895
  #
275
1896
  # 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.
276
1897
  attr_accessor :order_reference
1898
+ # Subscription details for this PaymentIntent
1899
+ attr_accessor :subscription
277
1900
 
278
- def initialize(customer_reference: nil, order_reference: nil)
1901
+ def initialize(
1902
+ car_rental: nil,
1903
+ car_rental_data: nil,
1904
+ customer_reference: nil,
1905
+ event_details: nil,
1906
+ flight: nil,
1907
+ flight_data: nil,
1908
+ lodging: nil,
1909
+ lodging_data: nil,
1910
+ order_reference: nil,
1911
+ subscription: nil
1912
+ )
1913
+ @car_rental = car_rental
1914
+ @car_rental_data = car_rental_data
279
1915
  @customer_reference = customer_reference
1916
+ @event_details = event_details
1917
+ @flight = flight
1918
+ @flight_data = flight_data
1919
+ @lodging = lodging
1920
+ @lodging_data = lodging_data
280
1921
  @order_reference = order_reference
1922
+ @subscription = subscription
281
1923
  end
282
1924
  end
283
1925
 
@@ -419,8 +2061,18 @@ module Stripe
419
2061
  end
420
2062
 
421
2063
  class Giropay < ::Stripe::RequestParams; end
2064
+ class Gopay < ::Stripe::RequestParams; end
422
2065
  class Grabpay < ::Stripe::RequestParams; end
423
2066
 
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
+
424
2076
  class Ideal < ::Stripe::RequestParams
425
2077
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
426
2078
  attr_accessor :bank
@@ -537,6 +2189,7 @@ module Stripe
537
2189
 
538
2190
  class Pix < ::Stripe::RequestParams; end
539
2191
  class Promptpay < ::Stripe::RequestParams; end
2192
+ class Qris < ::Stripe::RequestParams; end
540
2193
 
541
2194
  class RadarOptions < ::Stripe::RequestParams
542
2195
  # 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.
@@ -547,6 +2200,29 @@ module Stripe
547
2200
  end
548
2201
  end
549
2202
 
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
+
550
2226
  class RevolutPay < ::Stripe::RequestParams; end
551
2227
  class SamsungPay < ::Stripe::RequestParams; end
552
2228
  class Satispay < ::Stripe::RequestParams; end
@@ -562,6 +2238,7 @@ module Stripe
562
2238
  end
563
2239
 
564
2240
  class Sequra < ::Stripe::RequestParams; end
2241
+ class Shopeepay < ::Stripe::RequestParams; end
565
2242
 
566
2243
  class Sofort < ::Stripe::RequestParams
567
2244
  # Two-letter ISO code representing the country the bank account is located in.
@@ -572,6 +2249,15 @@ module Stripe
572
2249
  end
573
2250
  end
574
2251
 
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
+
575
2261
  class Sunbit < ::Stripe::RequestParams; end
576
2262
  class Swish < ::Stripe::RequestParams; end
577
2263
  class Twint < ::Stripe::RequestParams; end
@@ -603,12 +2289,25 @@ module Stripe
603
2289
  end
604
2290
 
605
2291
  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
606
2303
  # Account holder type: individual or company.
607
2304
  attr_accessor :account_holder_type
608
2305
  # Account number of the bank account.
609
2306
  attr_accessor :account_number
610
2307
  # Account type: checkings or savings. Defaults to checking if omitted.
611
2308
  attr_accessor :account_type
2309
+ # An external token used to create a payment method.
2310
+ attr_accessor :external_token
612
2311
  # The ID of a Financial Connections Account to use as a payment method.
613
2312
  attr_accessor :financial_connections_account
614
2313
  # Routing number of the bank account.
@@ -618,18 +2317,21 @@ module Stripe
618
2317
  account_holder_type: nil,
619
2318
  account_number: nil,
620
2319
  account_type: nil,
2320
+ external_token: nil,
621
2321
  financial_connections_account: nil,
622
2322
  routing_number: nil
623
2323
  )
624
2324
  @account_holder_type = account_holder_type
625
2325
  @account_number = account_number
626
2326
  @account_type = account_type
2327
+ @external_token = external_token
627
2328
  @financial_connections_account = financial_connections_account
628
2329
  @routing_number = routing_number
629
2330
  end
630
2331
  end
631
2332
 
632
2333
  class WechatPay < ::Stripe::RequestParams; end
2334
+ class Wero < ::Stripe::RequestParams; end
633
2335
  class Zip < ::Stripe::RequestParams; end
634
2336
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
635
2337
  attr_accessor :acss_debit
@@ -673,8 +2375,12 @@ module Stripe
673
2375
  attr_accessor :fpx
674
2376
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
675
2377
  attr_accessor :giropay
2378
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2379
+ attr_accessor :gopay
676
2380
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
677
2381
  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
678
2384
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
679
2385
  attr_accessor :ideal
680
2386
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -721,8 +2427,12 @@ module Stripe
721
2427
  attr_accessor :pix
722
2428
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
723
2429
  attr_accessor :promptpay
2430
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2431
+ attr_accessor :qris
724
2432
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
725
2433
  attr_accessor :radar_options
2434
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2435
+ attr_accessor :rechnung
726
2436
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
727
2437
  attr_accessor :revolut_pay
728
2438
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -735,8 +2445,14 @@ module Stripe
735
2445
  attr_accessor :sepa_debit
736
2446
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
737
2447
  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
738
2452
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
739
2453
  attr_accessor :sofort
2454
+ # This hash contains details about the Stripe balance payment method.
2455
+ attr_accessor :stripe_balance
740
2456
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
741
2457
  attr_accessor :sunbit
742
2458
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -751,6 +2467,8 @@ module Stripe
751
2467
  attr_accessor :us_bank_account
752
2468
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
753
2469
  attr_accessor :wechat_pay
2470
+ # If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
2471
+ attr_accessor :wero
754
2472
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
755
2473
  attr_accessor :zip
756
2474
 
@@ -776,7 +2494,9 @@ module Stripe
776
2494
  eps: nil,
777
2495
  fpx: nil,
778
2496
  giropay: nil,
2497
+ gopay: nil,
779
2498
  grabpay: nil,
2499
+ id_bank_transfer: nil,
780
2500
  ideal: nil,
781
2501
  interac_present: nil,
782
2502
  kakao_pay: nil,
@@ -800,14 +2520,19 @@ module Stripe
800
2520
  payto: nil,
801
2521
  pix: nil,
802
2522
  promptpay: nil,
2523
+ qris: nil,
803
2524
  radar_options: nil,
2525
+ rechnung: nil,
804
2526
  revolut_pay: nil,
805
2527
  samsung_pay: nil,
806
2528
  satispay: nil,
807
2529
  scalapay: nil,
808
2530
  sepa_debit: nil,
809
2531
  sequra: nil,
2532
+ shared_payment_granted_token: nil,
2533
+ shopeepay: nil,
810
2534
  sofort: nil,
2535
+ stripe_balance: nil,
811
2536
  sunbit: nil,
812
2537
  swish: nil,
813
2538
  twint: nil,
@@ -815,6 +2540,7 @@ module Stripe
815
2540
  upi: nil,
816
2541
  us_bank_account: nil,
817
2542
  wechat_pay: nil,
2543
+ wero: nil,
818
2544
  zip: nil
819
2545
  )
820
2546
  @acss_debit = acss_debit
@@ -838,7 +2564,9 @@ module Stripe
838
2564
  @eps = eps
839
2565
  @fpx = fpx
840
2566
  @giropay = giropay
2567
+ @gopay = gopay
841
2568
  @grabpay = grabpay
2569
+ @id_bank_transfer = id_bank_transfer
842
2570
  @ideal = ideal
843
2571
  @interac_present = interac_present
844
2572
  @kakao_pay = kakao_pay
@@ -862,14 +2590,19 @@ module Stripe
862
2590
  @payto = payto
863
2591
  @pix = pix
864
2592
  @promptpay = promptpay
2593
+ @qris = qris
865
2594
  @radar_options = radar_options
2595
+ @rechnung = rechnung
866
2596
  @revolut_pay = revolut_pay
867
2597
  @samsung_pay = samsung_pay
868
2598
  @satispay = satispay
869
2599
  @scalapay = scalapay
870
2600
  @sepa_debit = sepa_debit
871
2601
  @sequra = sequra
2602
+ @shared_payment_granted_token = shared_payment_granted_token
2603
+ @shopeepay = shopeepay
872
2604
  @sofort = sofort
2605
+ @stripe_balance = stripe_balance
873
2606
  @sunbit = sunbit
874
2607
  @swish = swish
875
2608
  @twint = twint
@@ -877,6 +2610,7 @@ module Stripe
877
2610
  @upi = upi
878
2611
  @us_bank_account = us_bank_account
879
2612
  @wechat_pay = wechat_pay
2613
+ @wero = wero
880
2614
  @zip = zip
881
2615
  end
882
2616
  end
@@ -1317,6 +3051,48 @@ module Stripe
1317
3051
  end
1318
3052
  end
1319
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
3093
+ end
3094
+ end
3095
+
1320
3096
  class ThreeDSecure < ::Stripe::RequestParams
1321
3097
  class NetworkOptions < ::Stripe::RequestParams
1322
3098
  class CartesBancaires < ::Stripe::RequestParams
@@ -1411,6 +3187,8 @@ module Stripe
1411
3187
  attr_accessor :moto
1412
3188
  # 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.
1413
3189
  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
1414
3192
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1415
3193
  attr_accessor :request_extended_authorization
1416
3194
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1419,6 +3197,8 @@ module Stripe
1419
3197
  attr_accessor :request_multicapture
1420
3198
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1421
3199
  attr_accessor :request_overcapture
3200
+ # Request partial authorization on this PaymentIntent.
3201
+ attr_accessor :request_partial_authorization
1422
3202
  # 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.
1423
3203
  attr_accessor :request_three_d_secure
1424
3204
  # 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).
@@ -1439,6 +3219,8 @@ module Stripe
1439
3219
  attr_accessor :statement_descriptor_suffix_kana
1440
3220
  # 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.
1441
3221
  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
1442
3224
  # Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
1443
3225
  #
1444
3226
  # 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.
@@ -1458,16 +3240,19 @@ module Stripe
1458
3240
  mandate_options: nil,
1459
3241
  moto: nil,
1460
3242
  network: nil,
3243
+ request_decremental_authorization: nil,
1461
3244
  request_extended_authorization: nil,
1462
3245
  request_incremental_authorization: nil,
1463
3246
  request_multicapture: nil,
1464
3247
  request_overcapture: nil,
3248
+ request_partial_authorization: nil,
1465
3249
  request_three_d_secure: nil,
1466
3250
  require_cvc_recollection: nil,
1467
3251
  setup_credential_usage: nil,
1468
3252
  setup_future_usage: nil,
1469
3253
  statement_descriptor_suffix_kana: nil,
1470
3254
  statement_descriptor_suffix_kanji: nil,
3255
+ statement_details: nil,
1471
3256
  stored_credential_usage: nil,
1472
3257
  three_d_secure: nil
1473
3258
  )
@@ -1477,16 +3262,19 @@ module Stripe
1477
3262
  @mandate_options = mandate_options
1478
3263
  @moto = moto
1479
3264
  @network = network
3265
+ @request_decremental_authorization = request_decremental_authorization
1480
3266
  @request_extended_authorization = request_extended_authorization
1481
3267
  @request_incremental_authorization = request_incremental_authorization
1482
3268
  @request_multicapture = request_multicapture
1483
3269
  @request_overcapture = request_overcapture
3270
+ @request_partial_authorization = request_partial_authorization
1484
3271
  @request_three_d_secure = request_three_d_secure
1485
3272
  @require_cvc_recollection = require_cvc_recollection
1486
3273
  @setup_credential_usage = setup_credential_usage
1487
3274
  @setup_future_usage = setup_future_usage
1488
3275
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1489
3276
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3277
+ @statement_details = statement_details
1490
3278
  @stored_credential_usage = stored_credential_usage
1491
3279
  @three_d_secure = three_d_secure
1492
3280
  end
@@ -1666,6 +3454,23 @@ module Stripe
1666
3454
  end
1667
3455
  end
1668
3456
 
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
+
1669
3474
  class Grabpay < ::Stripe::RequestParams
1670
3475
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1671
3476
  #
@@ -1683,6 +3488,29 @@ module Stripe
1683
3488
  end
1684
3489
  end
1685
3490
 
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
+
1686
3514
  class Ideal < ::Stripe::RequestParams
1687
3515
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1688
3516
  #
@@ -1789,6 +3617,939 @@ module Stripe
1789
3617
  @reference = reference
1790
3618
  end
1791
3619
  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
1792
4553
  # Controls when the funds are captured from the customer's account.
1793
4554
  #
1794
4555
  # 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.
@@ -1811,19 +4572,23 @@ module Stripe
1811
4572
  attr_accessor :setup_future_usage
1812
4573
  # Subscription details if setting up or charging a subscription.
1813
4574
  attr_accessor :subscriptions
4575
+ # Supplementary Purchase Data for the corresponding Klarna payment
4576
+ attr_accessor :supplementary_purchase_data
1814
4577
 
1815
4578
  def initialize(
1816
4579
  capture_method: nil,
1817
4580
  on_demand: nil,
1818
4581
  preferred_locale: nil,
1819
4582
  setup_future_usage: nil,
1820
- subscriptions: nil
4583
+ subscriptions: nil,
4584
+ supplementary_purchase_data: nil
1821
4585
  )
1822
4586
  @capture_method = capture_method
1823
4587
  @on_demand = on_demand
1824
4588
  @preferred_locale = preferred_locale
1825
4589
  @setup_future_usage = setup_future_usage
1826
4590
  @subscriptions = subscriptions
4591
+ @supplementary_purchase_data = supplementary_purchase_data
1827
4592
  end
1828
4593
  end
1829
4594
 
@@ -2093,12 +4858,65 @@ module Stripe
2093
4858
  end
2094
4859
 
2095
4860
  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
2096
4910
  # Controls when the funds will be captured from the customer's account.
2097
4911
  attr_accessor :capture_method
4912
+ # The line items purchased by the customer.
4913
+ attr_accessor :line_items
2098
4914
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2099
4915
  attr_accessor :preferred_locale
2100
4916
  # 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.
2101
4917
  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
2102
4920
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2103
4921
  attr_accessor :risk_correlation_id
2104
4922
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2111,19 +4929,27 @@ module Stripe
2111
4929
  #
2112
4930
  # 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`.
2113
4931
  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
2114
4934
 
2115
4935
  def initialize(
2116
4936
  capture_method: nil,
4937
+ line_items: nil,
2117
4938
  preferred_locale: nil,
2118
4939
  reference: nil,
4940
+ reference_id: nil,
2119
4941
  risk_correlation_id: nil,
2120
- setup_future_usage: nil
4942
+ setup_future_usage: nil,
4943
+ subsellers: nil
2121
4944
  )
2122
4945
  @capture_method = capture_method
4946
+ @line_items = line_items
2123
4947
  @preferred_locale = preferred_locale
2124
4948
  @reference = reference
4949
+ @reference_id = reference_id
2125
4950
  @risk_correlation_id = risk_correlation_id
2126
4951
  @setup_future_usage = setup_future_usage
4952
+ @subsellers = subsellers
2127
4953
  end
2128
4954
  end
2129
4955
 
@@ -2267,6 +5093,25 @@ module Stripe
2267
5093
  end
2268
5094
  end
2269
5095
 
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
+
2270
5115
  class RevolutPay < ::Stripe::RequestParams
2271
5116
  # Controls when the funds are captured from the customer's account.
2272
5117
  #
@@ -2401,6 +5246,23 @@ module Stripe
2401
5246
  end
2402
5247
  end
2403
5248
 
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
+
2404
5266
  class Sofort < ::Stripe::RequestParams
2405
5267
  # Language shown to the payer on redirect.
2406
5268
  attr_accessor :preferred_language
@@ -2421,6 +5283,23 @@ module Stripe
2421
5283
  end
2422
5284
  end
2423
5285
 
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
+
2424
5303
  class Sunbit < ::Stripe::RequestParams
2425
5304
  # Controls when the funds are captured from the customer's account.
2426
5305
  #
@@ -2514,13 +5393,27 @@ module Stripe
2514
5393
  class Filters < ::Stripe::RequestParams
2515
5394
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2516
5395
  attr_accessor :account_subcategories
5396
+ # ID of the institution to use to filter for selectable accounts.
5397
+ attr_accessor :institution
2517
5398
 
2518
- def initialize(account_subcategories: nil)
5399
+ def initialize(account_subcategories: nil, institution: nil)
2519
5400
  @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
2520
5411
  end
2521
5412
  end
2522
5413
  # Provide filters for the linked accounts that the customer can select for the payment method.
2523
5414
  attr_accessor :filters
5415
+ # Customize manual entry behavior
5416
+ attr_accessor :manual_entry
2524
5417
  # 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`.
2525
5418
  attr_accessor :permissions
2526
5419
  # List of data features that you would like to retrieve upon account creation.
@@ -2528,8 +5421,15 @@ module Stripe
2528
5421
  # 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.
2529
5422
  attr_accessor :return_url
2530
5423
 
2531
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5424
+ def initialize(
5425
+ filters: nil,
5426
+ manual_entry: nil,
5427
+ permissions: nil,
5428
+ prefetch: nil,
5429
+ return_url: nil
5430
+ )
2532
5431
  @filters = filters
5432
+ @manual_entry = manual_entry
2533
5433
  @permissions = permissions
2534
5434
  @prefetch = prefetch
2535
5435
  @return_url = return_url
@@ -2618,6 +5518,23 @@ module Stripe
2618
5518
  end
2619
5519
  end
2620
5520
 
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
+
2621
5538
  class Zip < ::Stripe::RequestParams
2622
5539
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2623
5540
  #
@@ -2676,8 +5593,12 @@ module Stripe
2676
5593
  attr_accessor :fpx
2677
5594
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2678
5595
  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
2679
5598
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2680
5599
  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
2681
5602
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2682
5603
  attr_accessor :ideal
2683
5604
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2722,6 +5643,10 @@ module Stripe
2722
5643
  attr_accessor :pix
2723
5644
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2724
5645
  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
2725
5650
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2726
5651
  attr_accessor :revolut_pay
2727
5652
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2734,8 +5659,12 @@ module Stripe
2734
5659
  attr_accessor :sepa_debit
2735
5660
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
2736
5661
  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
2737
5664
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2738
5665
  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
2739
5668
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
2740
5669
  attr_accessor :sunbit
2741
5670
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -2748,6 +5677,8 @@ module Stripe
2748
5677
  attr_accessor :us_bank_account
2749
5678
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
2750
5679
  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
2751
5682
  # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
2752
5683
  attr_accessor :zip
2753
5684
 
@@ -2773,7 +5704,9 @@ module Stripe
2773
5704
  eps: nil,
2774
5705
  fpx: nil,
2775
5706
  giropay: nil,
5707
+ gopay: nil,
2776
5708
  grabpay: nil,
5709
+ id_bank_transfer: nil,
2777
5710
  ideal: nil,
2778
5711
  interac_present: nil,
2779
5712
  kakao_pay: nil,
@@ -2796,19 +5729,24 @@ module Stripe
2796
5729
  payto: nil,
2797
5730
  pix: nil,
2798
5731
  promptpay: nil,
5732
+ qris: nil,
5733
+ rechnung: nil,
2799
5734
  revolut_pay: nil,
2800
5735
  samsung_pay: nil,
2801
5736
  satispay: nil,
2802
5737
  scalapay: nil,
2803
5738
  sepa_debit: nil,
2804
5739
  sequra: nil,
5740
+ shopeepay: nil,
2805
5741
  sofort: nil,
5742
+ stripe_balance: nil,
2806
5743
  sunbit: nil,
2807
5744
  swish: nil,
2808
5745
  twint: nil,
2809
5746
  upi: nil,
2810
5747
  us_bank_account: nil,
2811
5748
  wechat_pay: nil,
5749
+ wero: nil,
2812
5750
  zip: nil
2813
5751
  )
2814
5752
  @acss_debit = acss_debit
@@ -2832,7 +5770,9 @@ module Stripe
2832
5770
  @eps = eps
2833
5771
  @fpx = fpx
2834
5772
  @giropay = giropay
5773
+ @gopay = gopay
2835
5774
  @grabpay = grabpay
5775
+ @id_bank_transfer = id_bank_transfer
2836
5776
  @ideal = ideal
2837
5777
  @interac_present = interac_present
2838
5778
  @kakao_pay = kakao_pay
@@ -2855,19 +5795,24 @@ module Stripe
2855
5795
  @payto = payto
2856
5796
  @pix = pix
2857
5797
  @promptpay = promptpay
5798
+ @qris = qris
5799
+ @rechnung = rechnung
2858
5800
  @revolut_pay = revolut_pay
2859
5801
  @samsung_pay = samsung_pay
2860
5802
  @satispay = satispay
2861
5803
  @scalapay = scalapay
2862
5804
  @sepa_debit = sepa_debit
2863
5805
  @sequra = sequra
5806
+ @shopeepay = shopeepay
2864
5807
  @sofort = sofort
5808
+ @stripe_balance = stripe_balance
2865
5809
  @sunbit = sunbit
2866
5810
  @swish = swish
2867
5811
  @twint = twint
2868
5812
  @upi = upi
2869
5813
  @us_bank_account = us_bank_account
2870
5814
  @wechat_pay = wechat_pay
5815
+ @wero = wero
2871
5816
  @zip = zip
2872
5817
  end
2873
5818
  end
@@ -3023,6 +5968,8 @@ module Stripe
3023
5968
  attr_accessor :excluded_payment_method_types
3024
5969
  # Specifies which fields in the response should be expanded.
3025
5970
  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
3026
5973
  # Automations to be run during the PaymentIntent lifecycle
3027
5974
  attr_accessor :hooks
3028
5975
  # 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).
@@ -3057,6 +6004,8 @@ module Stripe
3057
6004
  attr_accessor :receipt_email
3058
6005
  # 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).
3059
6006
  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
3060
6009
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3061
6010
  #
3062
6011
  # 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.
@@ -3098,6 +6047,7 @@ module Stripe
3098
6047
  error_on_requires_action: nil,
3099
6048
  excluded_payment_method_types: nil,
3100
6049
  expand: nil,
6050
+ fx_quote: nil,
3101
6051
  hooks: nil,
3102
6052
  mandate: nil,
3103
6053
  mandate_data: nil,
@@ -3112,6 +6062,7 @@ module Stripe
3112
6062
  radar_options: nil,
3113
6063
  receipt_email: nil,
3114
6064
  return_url: nil,
6065
+ secret_key_confirmation: nil,
3115
6066
  setup_future_usage: nil,
3116
6067
  shipping: nil,
3117
6068
  statement_descriptor: nil,
@@ -3136,6 +6087,7 @@ module Stripe
3136
6087
  @error_on_requires_action = error_on_requires_action
3137
6088
  @excluded_payment_method_types = excluded_payment_method_types
3138
6089
  @expand = expand
6090
+ @fx_quote = fx_quote
3139
6091
  @hooks = hooks
3140
6092
  @mandate = mandate
3141
6093
  @mandate_data = mandate_data
@@ -3150,6 +6102,7 @@ module Stripe
3150
6102
  @radar_options = radar_options
3151
6103
  @receipt_email = receipt_email
3152
6104
  @return_url = return_url
6105
+ @secret_key_confirmation = secret_key_confirmation
3153
6106
  @setup_future_usage = setup_future_usage
3154
6107
  @shipping = shipping
3155
6108
  @statement_descriptor = statement_descriptor