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,125 +145,1767 @@ 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 Hooks < ::Stripe::RequestParams
207
+ class Inputs < ::Stripe::RequestParams
208
+ class Tax < ::Stripe::RequestParams
209
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
210
+ attr_accessor :calculation
211
+
212
+ def initialize(calculation: nil)
213
+ @calculation = calculation
214
+ end
215
+ end
216
+ # Tax arguments for automations
217
+ attr_accessor :tax
218
+
219
+ def initialize(tax: nil)
220
+ @tax = tax
221
+ end
222
+ end
223
+ # Arguments passed in automations
224
+ attr_accessor :inputs
225
+
226
+ def initialize(inputs: nil)
227
+ @inputs = inputs
228
+ end
229
+ end
230
+
231
+ class MandateData < ::Stripe::RequestParams
232
+ class CustomerAcceptance < ::Stripe::RequestParams
233
+ class Offline < ::Stripe::RequestParams; end
234
+
235
+ class Online < ::Stripe::RequestParams
236
+ # The IP address from which the Mandate was accepted by the customer.
237
+ attr_accessor :ip_address
238
+ # The user agent of the browser from which the Mandate was accepted by the customer.
239
+ attr_accessor :user_agent
240
+
241
+ def initialize(ip_address: nil, user_agent: nil)
242
+ @ip_address = ip_address
243
+ @user_agent = user_agent
244
+ end
245
+ end
246
+ # The time at which the customer accepted the Mandate.
247
+ attr_accessor :accepted_at
248
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
249
+ attr_accessor :offline
250
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
251
+ attr_accessor :online
252
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
253
+ attr_accessor :type
254
+
255
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
256
+ @accepted_at = accepted_at
257
+ @offline = offline
258
+ @online = online
259
+ @type = type
260
+ end
261
+ end
262
+ # This hash contains details about the customer acceptance of the Mandate.
263
+ attr_accessor :customer_acceptance
264
+
265
+ def initialize(customer_acceptance: nil)
266
+ @customer_acceptance = customer_acceptance
267
+ end
268
+ end
269
+
270
+ class PaymentDetails < ::Stripe::RequestParams
271
+ class CarRental < ::Stripe::RequestParams
272
+ class Affiliate < ::Stripe::RequestParams
273
+ # The name of the affiliate that originated the purchase.
274
+ attr_accessor :name
275
+
276
+ def initialize(name: nil)
277
+ @name = name
278
+ end
279
+ end
280
+
281
+ class Delivery < ::Stripe::RequestParams
282
+ class Recipient < ::Stripe::RequestParams
283
+ # The email of the recipient the ticket is delivered to.
284
+ attr_accessor :email
285
+ # The name of the recipient the ticket is delivered to.
286
+ attr_accessor :name
287
+ # The phone number of the recipient the ticket is delivered to.
288
+ attr_accessor :phone
289
+
290
+ def initialize(email: nil, name: nil, phone: nil)
291
+ @email = email
292
+ @name = name
293
+ @phone = phone
294
+ end
295
+ end
296
+ # The delivery method for the payment
297
+ attr_accessor :mode
298
+ # Details of the recipient.
299
+ attr_accessor :recipient
300
+
301
+ def initialize(mode: nil, recipient: nil)
302
+ @mode = mode
303
+ @recipient = recipient
304
+ end
305
+ end
306
+
307
+ class Distance < ::Stripe::RequestParams
308
+ # Distance traveled.
309
+ attr_accessor :amount
310
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
311
+ attr_accessor :unit
312
+
313
+ def initialize(amount: nil, unit: nil)
314
+ @amount = amount
315
+ @unit = unit
316
+ end
317
+ end
318
+
319
+ class Driver < ::Stripe::RequestParams
320
+ # Driver's identification number.
321
+ attr_accessor :driver_identification_number
322
+ # Driver's tax number.
323
+ attr_accessor :driver_tax_number
324
+ # Full name of the person or entity on the car reservation.
325
+ attr_accessor :name
326
+
327
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
328
+ @driver_identification_number = driver_identification_number
329
+ @driver_tax_number = driver_tax_number
330
+ @name = name
331
+ end
332
+ end
333
+
334
+ class PickupAddress < ::Stripe::RequestParams
335
+ # City, district, suburb, town, or village.
336
+ attr_accessor :city
337
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
338
+ attr_accessor :country
339
+ # Address line 1, such as the street, PO Box, or company name.
340
+ attr_accessor :line1
341
+ # Address line 2, such as the apartment, suite, unit, or building.
342
+ attr_accessor :line2
343
+ # ZIP or postal code.
344
+ attr_accessor :postal_code
345
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
346
+ attr_accessor :state
347
+
348
+ def initialize(
349
+ city: nil,
350
+ country: nil,
351
+ line1: nil,
352
+ line2: nil,
353
+ postal_code: nil,
354
+ state: nil
355
+ )
356
+ @city = city
357
+ @country = country
358
+ @line1 = line1
359
+ @line2 = line2
360
+ @postal_code = postal_code
361
+ @state = state
362
+ end
363
+ end
364
+
365
+ class ReturnAddress < ::Stripe::RequestParams
366
+ # City, district, suburb, town, or village.
367
+ attr_accessor :city
368
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
369
+ attr_accessor :country
370
+ # Address line 1, such as the street, PO Box, or company name.
371
+ attr_accessor :line1
372
+ # Address line 2, such as the apartment, suite, unit, or building.
373
+ attr_accessor :line2
374
+ # ZIP or postal code.
375
+ attr_accessor :postal_code
376
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
377
+ attr_accessor :state
378
+
379
+ def initialize(
380
+ city: nil,
381
+ country: nil,
382
+ line1: nil,
383
+ line2: nil,
384
+ postal_code: nil,
385
+ state: nil
386
+ )
387
+ @city = city
388
+ @country = country
389
+ @line1 = line1
390
+ @line2 = line2
391
+ @postal_code = postal_code
392
+ @state = state
393
+ end
394
+ end
395
+ # Affiliate details for this purchase.
396
+ attr_accessor :affiliate
397
+ # The booking number associated with the car rental.
398
+ attr_accessor :booking_number
399
+ # Class code of the car.
400
+ attr_accessor :car_class_code
401
+ # Make of the car.
402
+ attr_accessor :car_make
403
+ # Model of the car.
404
+ attr_accessor :car_model
405
+ # The name of the rental car company.
406
+ attr_accessor :company
407
+ # The customer service phone number of the car rental company.
408
+ attr_accessor :customer_service_phone_number
409
+ # Number of days the car is being rented.
410
+ attr_accessor :days_rented
411
+ # Delivery details for this purchase.
412
+ attr_accessor :delivery
413
+ # The details of the distance traveled during the rental period.
414
+ attr_accessor :distance
415
+ # The details of the passengers in the travel reservation
416
+ attr_accessor :drivers
417
+ # List of additional charges being billed.
418
+ attr_accessor :extra_charges
419
+ # Indicates if the customer did not keep nor cancel their booking.
420
+ attr_accessor :no_show
421
+ # Car pick-up address.
422
+ attr_accessor :pickup_address
423
+ # Car pick-up time. Measured in seconds since the Unix epoch.
424
+ attr_accessor :pickup_at
425
+ # Name of the pickup location.
426
+ attr_accessor :pickup_location_name
427
+ # Rental rate.
428
+ attr_accessor :rate_amount
429
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
430
+ attr_accessor :rate_interval
431
+ # The name of the person or entity renting the car.
432
+ attr_accessor :renter_name
433
+ # Car return address.
434
+ attr_accessor :return_address
435
+ # Car return time. Measured in seconds since the Unix epoch.
436
+ attr_accessor :return_at
437
+ # Name of the return location.
438
+ attr_accessor :return_location_name
439
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
440
+ attr_accessor :tax_exempt
441
+ # The vehicle identification number.
442
+ attr_accessor :vehicle_identification_number
443
+
444
+ def initialize(
445
+ affiliate: nil,
446
+ booking_number: nil,
447
+ car_class_code: nil,
448
+ car_make: nil,
449
+ car_model: nil,
450
+ company: nil,
451
+ customer_service_phone_number: nil,
452
+ days_rented: nil,
453
+ delivery: nil,
454
+ distance: nil,
455
+ drivers: nil,
456
+ extra_charges: nil,
457
+ no_show: nil,
458
+ pickup_address: nil,
459
+ pickup_at: nil,
460
+ pickup_location_name: nil,
461
+ rate_amount: nil,
462
+ rate_interval: nil,
463
+ renter_name: nil,
464
+ return_address: nil,
465
+ return_at: nil,
466
+ return_location_name: nil,
467
+ tax_exempt: nil,
468
+ vehicle_identification_number: nil
469
+ )
470
+ @affiliate = affiliate
471
+ @booking_number = booking_number
472
+ @car_class_code = car_class_code
473
+ @car_make = car_make
474
+ @car_model = car_model
475
+ @company = company
476
+ @customer_service_phone_number = customer_service_phone_number
477
+ @days_rented = days_rented
478
+ @delivery = delivery
479
+ @distance = distance
480
+ @drivers = drivers
481
+ @extra_charges = extra_charges
482
+ @no_show = no_show
483
+ @pickup_address = pickup_address
484
+ @pickup_at = pickup_at
485
+ @pickup_location_name = pickup_location_name
486
+ @rate_amount = rate_amount
487
+ @rate_interval = rate_interval
488
+ @renter_name = renter_name
489
+ @return_address = return_address
490
+ @return_at = return_at
491
+ @return_location_name = return_location_name
492
+ @tax_exempt = tax_exempt
493
+ @vehicle_identification_number = vehicle_identification_number
494
+ end
495
+ end
496
+
497
+ class CarRentalDatum < ::Stripe::RequestParams
498
+ class Affiliate < ::Stripe::RequestParams
499
+ # Affiliate partner code.
500
+ attr_accessor :code
501
+ # Name of affiliate partner.
502
+ attr_accessor :name
503
+
504
+ def initialize(code: nil, name: nil)
505
+ @code = code
506
+ @name = name
507
+ end
508
+ end
509
+
510
+ class Distance < ::Stripe::RequestParams
511
+ # Distance traveled.
512
+ attr_accessor :amount
513
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
514
+ attr_accessor :unit
515
+
516
+ def initialize(amount: nil, unit: nil)
517
+ @amount = amount
518
+ @unit = unit
519
+ end
520
+ end
521
+
522
+ class Driver < ::Stripe::RequestParams
523
+ class DateOfBirth < ::Stripe::RequestParams
524
+ # Day of birth (1-31).
525
+ attr_accessor :day
526
+ # Month of birth (1-12).
527
+ attr_accessor :month
528
+ # Year of birth (must be greater than 1900).
529
+ attr_accessor :year
530
+
531
+ def initialize(day: nil, month: nil, year: nil)
532
+ @day = day
533
+ @month = month
534
+ @year = year
535
+ end
536
+ end
537
+ # Driver's date of birth.
538
+ attr_accessor :date_of_birth
539
+ # Driver's identification number.
540
+ attr_accessor :driver_identification_number
541
+ # Driver's tax number.
542
+ attr_accessor :driver_tax_number
543
+ # Driver's full name.
544
+ attr_accessor :name
545
+
546
+ def initialize(
547
+ date_of_birth: nil,
548
+ driver_identification_number: nil,
549
+ driver_tax_number: nil,
550
+ name: nil
551
+ )
552
+ @date_of_birth = date_of_birth
553
+ @driver_identification_number = driver_identification_number
554
+ @driver_tax_number = driver_tax_number
555
+ @name = name
556
+ end
557
+ end
558
+
559
+ class DropOff < ::Stripe::RequestParams
560
+ class Address < ::Stripe::RequestParams
561
+ # City, district, suburb, town, or village.
562
+ attr_accessor :city
563
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
564
+ attr_accessor :country
565
+ # Address line 1, such as the street, PO Box, or company name.
566
+ attr_accessor :line1
567
+ # Address line 2, such as the apartment, suite, unit, or building.
568
+ attr_accessor :line2
569
+ # ZIP or postal code.
570
+ attr_accessor :postal_code
571
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
572
+ attr_accessor :state
573
+
574
+ def initialize(
575
+ city: nil,
576
+ country: nil,
577
+ line1: nil,
578
+ line2: nil,
579
+ postal_code: nil,
580
+ state: nil
581
+ )
582
+ @city = city
583
+ @country = country
584
+ @line1 = line1
585
+ @line2 = line2
586
+ @postal_code = postal_code
587
+ @state = state
588
+ end
589
+ end
590
+ # Address of the rental location.
591
+ attr_accessor :address
592
+ # Location name.
593
+ attr_accessor :location_name
594
+ # Timestamp for the location.
595
+ attr_accessor :time
596
+
597
+ def initialize(address: nil, location_name: nil, time: nil)
598
+ @address = address
599
+ @location_name = location_name
600
+ @time = time
601
+ end
602
+ end
603
+
604
+ class Insurance < ::Stripe::RequestParams
605
+ # Amount of the insurance coverage in cents.
606
+ attr_accessor :amount
607
+ # Currency of the insurance amount.
608
+ attr_accessor :currency
609
+ # Name of the insurance company.
610
+ attr_accessor :insurance_company_name
611
+ # Type of insurance coverage.
612
+ attr_accessor :insurance_type
613
+
614
+ def initialize(
615
+ amount: nil,
616
+ currency: nil,
617
+ insurance_company_name: nil,
618
+ insurance_type: nil
619
+ )
620
+ @amount = amount
621
+ @currency = currency
622
+ @insurance_company_name = insurance_company_name
623
+ @insurance_type = insurance_type
624
+ end
625
+ end
626
+
627
+ class Pickup < ::Stripe::RequestParams
628
+ class Address < ::Stripe::RequestParams
629
+ # City, district, suburb, town, or village.
630
+ attr_accessor :city
631
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
632
+ attr_accessor :country
633
+ # Address line 1, such as the street, PO Box, or company name.
634
+ attr_accessor :line1
635
+ # Address line 2, such as the apartment, suite, unit, or building.
636
+ attr_accessor :line2
637
+ # ZIP or postal code.
638
+ attr_accessor :postal_code
639
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
640
+ attr_accessor :state
641
+
642
+ def initialize(
643
+ city: nil,
644
+ country: nil,
645
+ line1: nil,
646
+ line2: nil,
647
+ postal_code: nil,
648
+ state: nil
649
+ )
650
+ @city = city
651
+ @country = country
652
+ @line1 = line1
653
+ @line2 = line2
654
+ @postal_code = postal_code
655
+ @state = state
656
+ end
657
+ end
658
+ # Address of the rental location.
659
+ attr_accessor :address
660
+ # Location name.
661
+ attr_accessor :location_name
662
+ # Timestamp for the location.
663
+ attr_accessor :time
664
+
665
+ def initialize(address: nil, location_name: nil, time: nil)
666
+ @address = address
667
+ @location_name = location_name
668
+ @time = time
669
+ end
670
+ end
671
+
672
+ class Total < ::Stripe::RequestParams
673
+ class Discounts < ::Stripe::RequestParams
674
+ # Corporate client discount code.
675
+ attr_accessor :corporate_client_code
676
+ # Coupon code applied to the rental.
677
+ attr_accessor :coupon
678
+ # Maximum number of free miles or kilometers included.
679
+ attr_accessor :maximum_free_miles_or_kilometers
680
+
681
+ def initialize(
682
+ corporate_client_code: nil,
683
+ coupon: nil,
684
+ maximum_free_miles_or_kilometers: nil
685
+ )
686
+ @corporate_client_code = corporate_client_code
687
+ @coupon = coupon
688
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
689
+ end
690
+ end
691
+
692
+ class ExtraCharge < ::Stripe::RequestParams
693
+ # Amount of the extra charge in cents.
694
+ attr_accessor :amount
695
+ # Type of extra charge.
696
+ attr_accessor :type
697
+
698
+ def initialize(amount: nil, type: nil)
699
+ @amount = amount
700
+ @type = type
701
+ end
702
+ end
703
+
704
+ class Tax < ::Stripe::RequestParams
705
+ class TaxItem < ::Stripe::RequestParams
706
+ # Tax amount.
707
+ attr_accessor :amount
708
+ # Tax rate applied.
709
+ attr_accessor :rate
710
+ # Type of tax applied.
711
+ attr_accessor :type
712
+
713
+ def initialize(amount: nil, rate: nil, type: nil)
714
+ @amount = amount
715
+ @rate = rate
716
+ @type = type
717
+ end
718
+ end
719
+ # Indicates if the transaction is tax exempt.
720
+ attr_accessor :tax_exempt_indicator
721
+ # Array of tax details.
722
+ attr_accessor :tax_items
723
+
724
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
725
+ @tax_exempt_indicator = tax_exempt_indicator
726
+ @tax_items = tax_items
727
+ end
728
+ end
729
+ # Total amount in cents.
730
+ attr_accessor :amount
731
+ # Currency of the amount.
732
+ attr_accessor :currency
733
+ # Discount details for the rental.
734
+ attr_accessor :discounts
735
+ # Additional charges for the rental.
736
+ attr_accessor :extra_charges
737
+ # Rate per unit for the rental.
738
+ attr_accessor :rate_per_unit
739
+ # Unit of measurement for the rate.
740
+ attr_accessor :rate_unit
741
+ # Tax breakdown for the rental.
742
+ attr_accessor :tax
743
+
744
+ def initialize(
745
+ amount: nil,
746
+ currency: nil,
747
+ discounts: nil,
748
+ extra_charges: nil,
749
+ rate_per_unit: nil,
750
+ rate_unit: nil,
751
+ tax: nil
752
+ )
753
+ @amount = amount
754
+ @currency = currency
755
+ @discounts = discounts
756
+ @extra_charges = extra_charges
757
+ @rate_per_unit = rate_per_unit
758
+ @rate_unit = rate_unit
759
+ @tax = tax
760
+ end
761
+ end
762
+
763
+ class Vehicle < ::Stripe::RequestParams
764
+ # Make of the rental vehicle.
765
+ attr_accessor :make
766
+ # Model of the rental vehicle.
767
+ attr_accessor :model
768
+ # Odometer reading at the time of rental.
769
+ attr_accessor :odometer
770
+ # Type of the rental vehicle.
771
+ attr_accessor :type
772
+ # Class of the rental vehicle.
773
+ attr_accessor :vehicle_class
774
+ # Vehicle identification number (VIN).
775
+ attr_accessor :vehicle_identification_number
776
+
777
+ def initialize(
778
+ make: nil,
779
+ model: nil,
780
+ odometer: nil,
781
+ type: nil,
782
+ vehicle_class: nil,
783
+ vehicle_identification_number: nil
784
+ )
785
+ @make = make
786
+ @model = model
787
+ @odometer = odometer
788
+ @type = type
789
+ @vehicle_class = vehicle_class
790
+ @vehicle_identification_number = vehicle_identification_number
791
+ end
792
+ end
793
+ # Affiliate (such as travel agency) details for the rental.
794
+ attr_accessor :affiliate
795
+ # Booking confirmation number for the car rental.
796
+ attr_accessor :booking_number
797
+ # Name of the car rental company.
798
+ attr_accessor :carrier_name
799
+ # Customer service phone number for the car rental company.
800
+ attr_accessor :customer_service_phone_number
801
+ # Number of days the car is being rented.
802
+ attr_accessor :days_rented
803
+ # Distance details for the rental.
804
+ attr_accessor :distance
805
+ # List of drivers for the rental.
806
+ attr_accessor :drivers
807
+ # Drop-off location details.
808
+ attr_accessor :drop_off
809
+ # Insurance details for the rental.
810
+ attr_accessor :insurances
811
+ # Indicates if the customer was a no-show.
812
+ attr_accessor :no_show_indicator
813
+ # Pickup location details.
814
+ attr_accessor :pickup
815
+ # Name of the person renting the vehicle.
816
+ attr_accessor :renter_name
817
+ # Total cost breakdown for the rental.
818
+ attr_accessor :total
819
+ # Vehicle details for the rental.
820
+ attr_accessor :vehicle
821
+
822
+ def initialize(
823
+ affiliate: nil,
824
+ booking_number: nil,
825
+ carrier_name: nil,
826
+ customer_service_phone_number: nil,
827
+ days_rented: nil,
828
+ distance: nil,
829
+ drivers: nil,
830
+ drop_off: nil,
831
+ insurances: nil,
832
+ no_show_indicator: nil,
833
+ pickup: nil,
834
+ renter_name: nil,
835
+ total: nil,
836
+ vehicle: nil
837
+ )
838
+ @affiliate = affiliate
839
+ @booking_number = booking_number
840
+ @carrier_name = carrier_name
841
+ @customer_service_phone_number = customer_service_phone_number
842
+ @days_rented = days_rented
843
+ @distance = distance
844
+ @drivers = drivers
845
+ @drop_off = drop_off
846
+ @insurances = insurances
847
+ @no_show_indicator = no_show_indicator
848
+ @pickup = pickup
849
+ @renter_name = renter_name
850
+ @total = total
851
+ @vehicle = vehicle
852
+ end
853
+ end
854
+
855
+ class EventDetails < ::Stripe::RequestParams
856
+ class Address < ::Stripe::RequestParams
857
+ # City, district, suburb, town, or village.
858
+ attr_accessor :city
859
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
860
+ attr_accessor :country
861
+ # Address line 1, such as the street, PO Box, or company name.
862
+ attr_accessor :line1
863
+ # Address line 2, such as the apartment, suite, unit, or building.
864
+ attr_accessor :line2
865
+ # ZIP or postal code.
866
+ attr_accessor :postal_code
867
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
868
+ attr_accessor :state
869
+
870
+ def initialize(
871
+ city: nil,
872
+ country: nil,
873
+ line1: nil,
874
+ line2: nil,
875
+ postal_code: nil,
876
+ state: nil
877
+ )
878
+ @city = city
879
+ @country = country
880
+ @line1 = line1
881
+ @line2 = line2
882
+ @postal_code = postal_code
883
+ @state = state
884
+ end
885
+ end
886
+
887
+ class Affiliate < ::Stripe::RequestParams
888
+ # The name of the affiliate that originated the purchase.
889
+ attr_accessor :name
890
+
891
+ def initialize(name: nil)
892
+ @name = name
893
+ end
894
+ end
895
+
896
+ class Delivery < ::Stripe::RequestParams
897
+ class Recipient < ::Stripe::RequestParams
898
+ # The email of the recipient the ticket is delivered to.
899
+ attr_accessor :email
900
+ # The name of the recipient the ticket is delivered to.
901
+ attr_accessor :name
902
+ # The phone number of the recipient the ticket is delivered to.
903
+ attr_accessor :phone
904
+
905
+ def initialize(email: nil, name: nil, phone: nil)
906
+ @email = email
907
+ @name = name
908
+ @phone = phone
909
+ end
910
+ end
911
+ # The delivery method for the payment
912
+ attr_accessor :mode
913
+ # Details of the recipient.
914
+ attr_accessor :recipient
915
+
916
+ def initialize(mode: nil, recipient: nil)
917
+ @mode = mode
918
+ @recipient = recipient
919
+ end
920
+ end
921
+ # Indicates if the tickets are digitally checked when entering the venue.
922
+ attr_accessor :access_controlled_venue
923
+ # The event location's address.
924
+ attr_accessor :address
925
+ # Affiliate details for this purchase.
926
+ attr_accessor :affiliate
927
+ # The name of the company
928
+ attr_accessor :company
929
+ # Delivery details for this purchase.
930
+ attr_accessor :delivery
931
+ # Event end time. Measured in seconds since the Unix epoch.
932
+ attr_accessor :ends_at
933
+ # Type of the event entertainment (concert, sports event etc)
934
+ attr_accessor :genre
935
+ # The name of the event.
936
+ attr_accessor :name
937
+ # Event start time. Measured in seconds since the Unix epoch.
938
+ attr_accessor :starts_at
939
+
940
+ def initialize(
941
+ access_controlled_venue: nil,
942
+ address: nil,
943
+ affiliate: nil,
944
+ company: nil,
945
+ delivery: nil,
946
+ ends_at: nil,
947
+ genre: nil,
948
+ name: nil,
949
+ starts_at: nil
950
+ )
951
+ @access_controlled_venue = access_controlled_venue
952
+ @address = address
953
+ @affiliate = affiliate
954
+ @company = company
955
+ @delivery = delivery
956
+ @ends_at = ends_at
957
+ @genre = genre
958
+ @name = name
959
+ @starts_at = starts_at
960
+ end
961
+ end
962
+
963
+ class Flight < ::Stripe::RequestParams
964
+ class Affiliate < ::Stripe::RequestParams
965
+ # The name of the affiliate that originated the purchase.
966
+ attr_accessor :name
967
+
968
+ def initialize(name: nil)
969
+ @name = name
970
+ end
971
+ end
972
+
973
+ class Delivery < ::Stripe::RequestParams
974
+ class Recipient < ::Stripe::RequestParams
975
+ # The email of the recipient the ticket is delivered to.
976
+ attr_accessor :email
977
+ # The name of the recipient the ticket is delivered to.
978
+ attr_accessor :name
979
+ # The phone number of the recipient the ticket is delivered to.
980
+ attr_accessor :phone
981
+
982
+ def initialize(email: nil, name: nil, phone: nil)
983
+ @email = email
984
+ @name = name
985
+ @phone = phone
986
+ end
987
+ end
988
+ # The delivery method for the payment
989
+ attr_accessor :mode
990
+ # Details of the recipient.
991
+ attr_accessor :recipient
992
+
993
+ def initialize(mode: nil, recipient: nil)
994
+ @mode = mode
995
+ @recipient = recipient
996
+ end
997
+ end
998
+
999
+ class Passenger < ::Stripe::RequestParams
1000
+ # Full name of the person or entity on the flight reservation.
1001
+ attr_accessor :name
1002
+
1003
+ def initialize(name: nil)
1004
+ @name = name
1005
+ end
1006
+ end
1007
+
1008
+ class Segment < ::Stripe::RequestParams
1009
+ # The flight segment amount.
1010
+ attr_accessor :amount
1011
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1012
+ attr_accessor :arrival_airport
1013
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1014
+ attr_accessor :arrives_at
1015
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1016
+ attr_accessor :carrier
1017
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1018
+ attr_accessor :departs_at
1019
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1020
+ attr_accessor :departure_airport
1021
+ # The flight number associated with the segment
1022
+ attr_accessor :flight_number
1023
+ # The fare class for the segment.
1024
+ attr_accessor :service_class
1025
+
1026
+ def initialize(
1027
+ amount: nil,
1028
+ arrival_airport: nil,
1029
+ arrives_at: nil,
1030
+ carrier: nil,
1031
+ departs_at: nil,
1032
+ departure_airport: nil,
1033
+ flight_number: nil,
1034
+ service_class: nil
1035
+ )
1036
+ @amount = amount
1037
+ @arrival_airport = arrival_airport
1038
+ @arrives_at = arrives_at
1039
+ @carrier = carrier
1040
+ @departs_at = departs_at
1041
+ @departure_airport = departure_airport
1042
+ @flight_number = flight_number
1043
+ @service_class = service_class
1044
+ end
1045
+ end
1046
+ # Affiliate details for this purchase.
1047
+ attr_accessor :affiliate
1048
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1049
+ attr_accessor :agency_number
1050
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1051
+ attr_accessor :carrier
1052
+ # Delivery details for this purchase.
1053
+ attr_accessor :delivery
1054
+ # The name of the person or entity on the reservation.
1055
+ attr_accessor :passenger_name
1056
+ # The details of the passengers in the travel reservation.
1057
+ attr_accessor :passengers
1058
+ # The individual flight segments associated with the trip.
1059
+ attr_accessor :segments
1060
+ # The ticket number associated with the travel reservation.
1061
+ attr_accessor :ticket_number
1062
+
1063
+ def initialize(
1064
+ affiliate: nil,
1065
+ agency_number: nil,
1066
+ carrier: nil,
1067
+ delivery: nil,
1068
+ passenger_name: nil,
1069
+ passengers: nil,
1070
+ segments: nil,
1071
+ ticket_number: nil
1072
+ )
1073
+ @affiliate = affiliate
1074
+ @agency_number = agency_number
1075
+ @carrier = carrier
1076
+ @delivery = delivery
1077
+ @passenger_name = passenger_name
1078
+ @passengers = passengers
1079
+ @segments = segments
1080
+ @ticket_number = ticket_number
1081
+ end
1082
+ end
1083
+
1084
+ class FlightDatum < ::Stripe::RequestParams
1085
+ class Affiliate < ::Stripe::RequestParams
1086
+ # Affiliate partner code.
1087
+ attr_accessor :code
1088
+ # Name of affiliate partner.
1089
+ attr_accessor :name
1090
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1091
+ attr_accessor :travel_authorization_code
1092
+
1093
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1094
+ @code = code
1095
+ @name = name
1096
+ @travel_authorization_code = travel_authorization_code
1097
+ end
1098
+ end
1099
+
1100
+ class Insurance < ::Stripe::RequestParams
1101
+ # Insurance cost.
1102
+ attr_accessor :amount
1103
+ # Insurance currency.
1104
+ attr_accessor :currency
1105
+ # Insurance company name.
1106
+ attr_accessor :insurance_company_name
1107
+ # Type of insurance.
1108
+ attr_accessor :insurance_type
1109
+
1110
+ def initialize(
1111
+ amount: nil,
1112
+ currency: nil,
1113
+ insurance_company_name: nil,
1114
+ insurance_type: nil
1115
+ )
1116
+ @amount = amount
1117
+ @currency = currency
1118
+ @insurance_company_name = insurance_company_name
1119
+ @insurance_type = insurance_type
1120
+ end
1121
+ end
1122
+
1123
+ class Passenger < ::Stripe::RequestParams
1124
+ # Passenger's full name.
1125
+ attr_accessor :name
1126
+
1127
+ def initialize(name: nil)
1128
+ @name = name
1129
+ end
1130
+ end
1131
+
1132
+ class Segment < ::Stripe::RequestParams
1133
+ class Arrival < ::Stripe::RequestParams
1134
+ # Arrival airport IATA code.
1135
+ attr_accessor :airport
1136
+ # Arrival date/time.
1137
+ attr_accessor :arrives_at
1138
+ # Arrival city.
1139
+ attr_accessor :city
1140
+ # Arrival country.
1141
+ attr_accessor :country
1142
+
1143
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1144
+ @airport = airport
1145
+ @arrives_at = arrives_at
1146
+ @city = city
1147
+ @country = country
1148
+ end
1149
+ end
1150
+
1151
+ class Departure < ::Stripe::RequestParams
1152
+ # Departure airport IATA code.
1153
+ attr_accessor :airport
1154
+ # Departure city.
1155
+ attr_accessor :city
1156
+ # Departure country.
1157
+ attr_accessor :country
1158
+ # Departure date/time.
1159
+ attr_accessor :departs_at
1160
+
1161
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1162
+ @airport = airport
1163
+ @city = city
1164
+ @country = country
1165
+ @departs_at = departs_at
1166
+ end
1167
+ end
1168
+ # Segment fare amount.
1169
+ attr_accessor :amount
1170
+ # Arrival details.
1171
+ attr_accessor :arrival
1172
+ # Airline carrier code.
1173
+ attr_accessor :carrier_code
1174
+ # Carrier name.
1175
+ attr_accessor :carrier_name
1176
+ # Segment currency.
1177
+ attr_accessor :currency
1178
+ # Departure details.
1179
+ attr_accessor :departure
1180
+ # Exchange ticket number.
1181
+ attr_accessor :exchange_ticket_number
1182
+ # Fare basis code.
1183
+ attr_accessor :fare_basis_code
1184
+ # Additional fees.
1185
+ attr_accessor :fees
1186
+ # Flight number.
1187
+ attr_accessor :flight_number
1188
+ # Stopover indicator.
1189
+ attr_accessor :is_stop_over_indicator
1190
+ # Refundable ticket indicator.
1191
+ attr_accessor :refundable
1192
+ # Class of service.
1193
+ attr_accessor :service_class
1194
+ # Tax amount for segment.
1195
+ attr_accessor :tax_amount
1196
+ # Ticket number.
1197
+ attr_accessor :ticket_number
1198
+
1199
+ def initialize(
1200
+ amount: nil,
1201
+ arrival: nil,
1202
+ carrier_code: nil,
1203
+ carrier_name: nil,
1204
+ currency: nil,
1205
+ departure: nil,
1206
+ exchange_ticket_number: nil,
1207
+ fare_basis_code: nil,
1208
+ fees: nil,
1209
+ flight_number: nil,
1210
+ is_stop_over_indicator: nil,
1211
+ refundable: nil,
1212
+ service_class: nil,
1213
+ tax_amount: nil,
1214
+ ticket_number: nil
1215
+ )
1216
+ @amount = amount
1217
+ @arrival = arrival
1218
+ @carrier_code = carrier_code
1219
+ @carrier_name = carrier_name
1220
+ @currency = currency
1221
+ @departure = departure
1222
+ @exchange_ticket_number = exchange_ticket_number
1223
+ @fare_basis_code = fare_basis_code
1224
+ @fees = fees
1225
+ @flight_number = flight_number
1226
+ @is_stop_over_indicator = is_stop_over_indicator
1227
+ @refundable = refundable
1228
+ @service_class = service_class
1229
+ @tax_amount = tax_amount
1230
+ @ticket_number = ticket_number
1231
+ end
1232
+ end
1233
+
1234
+ class Total < ::Stripe::RequestParams
1235
+ class Discounts < ::Stripe::RequestParams
1236
+ # Corporate client discount code.
1237
+ attr_accessor :corporate_client_code
1238
+
1239
+ def initialize(corporate_client_code: nil)
1240
+ @corporate_client_code = corporate_client_code
1241
+ end
1242
+ end
1243
+
1244
+ class ExtraCharge < ::Stripe::RequestParams
1245
+ # Amount of additional charges.
1246
+ attr_accessor :amount
1247
+ # Type of additional charges.
1248
+ attr_accessor :type
1249
+
1250
+ def initialize(amount: nil, type: nil)
1251
+ @amount = amount
1252
+ @type = type
1253
+ end
1254
+ end
1255
+
1256
+ class Tax < ::Stripe::RequestParams
1257
+ class TaxItem < ::Stripe::RequestParams
1258
+ # Tax amount.
1259
+ attr_accessor :amount
1260
+ # Tax rate.
1261
+ attr_accessor :rate
1262
+ # Type of tax.
1263
+ attr_accessor :type
1264
+
1265
+ def initialize(amount: nil, rate: nil, type: nil)
1266
+ @amount = amount
1267
+ @rate = rate
1268
+ @type = type
1269
+ end
1270
+ end
1271
+ # Array of tax details.
1272
+ attr_accessor :tax_items
1273
+
1274
+ def initialize(tax_items: nil)
1275
+ @tax_items = tax_items
1276
+ end
1277
+ end
1278
+ # Total flight amount.
1279
+ attr_accessor :amount
1280
+ # Reason for credit.
1281
+ attr_accessor :credit_reason
1282
+ # Total currency.
1283
+ attr_accessor :currency
1284
+ # Discount details.
1285
+ attr_accessor :discounts
1286
+ # Additional charges.
1287
+ attr_accessor :extra_charges
1288
+ # Tax breakdown.
1289
+ attr_accessor :tax
1290
+
1291
+ def initialize(
1292
+ amount: nil,
1293
+ credit_reason: nil,
1294
+ currency: nil,
1295
+ discounts: nil,
1296
+ extra_charges: nil,
1297
+ tax: nil
1298
+ )
1299
+ @amount = amount
1300
+ @credit_reason = credit_reason
1301
+ @currency = currency
1302
+ @discounts = discounts
1303
+ @extra_charges = extra_charges
1304
+ @tax = tax
1305
+ end
1306
+ end
1307
+ # Affiliate details if applicable.
1308
+ attr_accessor :affiliate
1309
+ # Reservation reference.
1310
+ attr_accessor :booking_number
1311
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1312
+ attr_accessor :computerized_reservation_system
1313
+ # Ticket restrictions.
1314
+ attr_accessor :endorsements_and_restrictions
1315
+ # List of insurances.
1316
+ attr_accessor :insurances
1317
+ # List of passengers.
1318
+ attr_accessor :passengers
1319
+ # List of flight segments.
1320
+ attr_accessor :segments
1321
+ # Electronic ticket indicator.
1322
+ attr_accessor :ticket_electronically_issued_indicator
1323
+ # Total cost breakdown.
1324
+ attr_accessor :total
1325
+ # Type of flight transaction.
1326
+ attr_accessor :transaction_type
1327
+
1328
+ def initialize(
1329
+ affiliate: nil,
1330
+ booking_number: nil,
1331
+ computerized_reservation_system: nil,
1332
+ endorsements_and_restrictions: nil,
1333
+ insurances: nil,
1334
+ passengers: nil,
1335
+ segments: nil,
1336
+ ticket_electronically_issued_indicator: nil,
1337
+ total: nil,
1338
+ transaction_type: nil
1339
+ )
1340
+ @affiliate = affiliate
1341
+ @booking_number = booking_number
1342
+ @computerized_reservation_system = computerized_reservation_system
1343
+ @endorsements_and_restrictions = endorsements_and_restrictions
1344
+ @insurances = insurances
1345
+ @passengers = passengers
1346
+ @segments = segments
1347
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1348
+ @total = total
1349
+ @transaction_type = transaction_type
1350
+ end
1351
+ end
1352
+
1353
+ class Lodging < ::Stripe::RequestParams
1354
+ class Address < ::Stripe::RequestParams
1355
+ # City, district, suburb, town, or village.
1356
+ attr_accessor :city
1357
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1358
+ attr_accessor :country
1359
+ # Address line 1, such as the street, PO Box, or company name.
1360
+ attr_accessor :line1
1361
+ # Address line 2, such as the apartment, suite, unit, or building.
1362
+ attr_accessor :line2
1363
+ # ZIP or postal code.
1364
+ attr_accessor :postal_code
1365
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1366
+ attr_accessor :state
1367
+
1368
+ def initialize(
1369
+ city: nil,
1370
+ country: nil,
1371
+ line1: nil,
1372
+ line2: nil,
1373
+ postal_code: nil,
1374
+ state: nil
1375
+ )
1376
+ @city = city
1377
+ @country = country
1378
+ @line1 = line1
1379
+ @line2 = line2
1380
+ @postal_code = postal_code
1381
+ @state = state
1382
+ end
1383
+ end
1384
+
1385
+ class Affiliate < ::Stripe::RequestParams
1386
+ # The name of the affiliate that originated the purchase.
1387
+ attr_accessor :name
1388
+
1389
+ def initialize(name: nil)
1390
+ @name = name
1391
+ end
1392
+ end
1393
+
1394
+ class Delivery < ::Stripe::RequestParams
1395
+ class Recipient < ::Stripe::RequestParams
1396
+ # The email of the recipient the ticket is delivered to.
1397
+ attr_accessor :email
1398
+ # The name of the recipient the ticket is delivered to.
1399
+ attr_accessor :name
1400
+ # The phone number of the recipient the ticket is delivered to.
1401
+ attr_accessor :phone
1402
+
1403
+ def initialize(email: nil, name: nil, phone: nil)
1404
+ @email = email
1405
+ @name = name
1406
+ @phone = phone
1407
+ end
1408
+ end
1409
+ # The delivery method for the payment
1410
+ attr_accessor :mode
1411
+ # Details of the recipient.
1412
+ attr_accessor :recipient
1413
+
1414
+ def initialize(mode: nil, recipient: nil)
1415
+ @mode = mode
1416
+ @recipient = recipient
1417
+ end
1418
+ end
1419
+
1420
+ class Passenger < ::Stripe::RequestParams
1421
+ # Full name of the person or entity on the lodging reservation.
1422
+ attr_accessor :name
1423
+
1424
+ def initialize(name: nil)
1425
+ @name = name
1426
+ end
1427
+ end
1428
+ # The lodging location's address.
1429
+ attr_accessor :address
1430
+ # The number of adults on the booking
1431
+ attr_accessor :adults
1432
+ # Affiliate details for this purchase.
1433
+ attr_accessor :affiliate
1434
+ # The booking number associated with the lodging reservation.
1435
+ attr_accessor :booking_number
1436
+ # The lodging category
1437
+ attr_accessor :category
1438
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1439
+ attr_accessor :checkin_at
1440
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1441
+ attr_accessor :checkout_at
1442
+ # The customer service phone number of the lodging company.
1443
+ attr_accessor :customer_service_phone_number
1444
+ # The daily lodging room rate.
1445
+ attr_accessor :daily_room_rate_amount
1446
+ # Delivery details for this purchase.
1447
+ attr_accessor :delivery
1448
+ # List of additional charges being billed.
1449
+ attr_accessor :extra_charges
1450
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1451
+ attr_accessor :fire_safety_act_compliance
1452
+ # The name of the lodging location.
1453
+ attr_accessor :name
1454
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1455
+ attr_accessor :no_show
1456
+ # The number of rooms on the booking
1457
+ attr_accessor :number_of_rooms
1458
+ # The details of the passengers in the travel reservation
1459
+ attr_accessor :passengers
1460
+ # The phone number of the lodging location.
1461
+ attr_accessor :property_phone_number
1462
+ # The room class for this purchase.
1463
+ attr_accessor :room_class
1464
+ # The number of room nights
1465
+ attr_accessor :room_nights
1466
+ # The total tax amount associating with the room reservation.
1467
+ attr_accessor :total_room_tax_amount
1468
+ # The total tax amount
1469
+ attr_accessor :total_tax_amount
1470
+
1471
+ def initialize(
1472
+ address: nil,
1473
+ adults: nil,
1474
+ affiliate: nil,
1475
+ booking_number: nil,
1476
+ category: nil,
1477
+ checkin_at: nil,
1478
+ checkout_at: nil,
1479
+ customer_service_phone_number: nil,
1480
+ daily_room_rate_amount: nil,
1481
+ delivery: nil,
1482
+ extra_charges: nil,
1483
+ fire_safety_act_compliance: nil,
1484
+ name: nil,
1485
+ no_show: nil,
1486
+ number_of_rooms: nil,
1487
+ passengers: nil,
1488
+ property_phone_number: nil,
1489
+ room_class: nil,
1490
+ room_nights: nil,
1491
+ total_room_tax_amount: nil,
1492
+ total_tax_amount: nil
1493
+ )
1494
+ @address = address
1495
+ @adults = adults
1496
+ @affiliate = affiliate
1497
+ @booking_number = booking_number
1498
+ @category = category
1499
+ @checkin_at = checkin_at
1500
+ @checkout_at = checkout_at
1501
+ @customer_service_phone_number = customer_service_phone_number
1502
+ @daily_room_rate_amount = daily_room_rate_amount
1503
+ @delivery = delivery
1504
+ @extra_charges = extra_charges
1505
+ @fire_safety_act_compliance = fire_safety_act_compliance
1506
+ @name = name
1507
+ @no_show = no_show
1508
+ @number_of_rooms = number_of_rooms
1509
+ @passengers = passengers
1510
+ @property_phone_number = property_phone_number
1511
+ @room_class = room_class
1512
+ @room_nights = room_nights
1513
+ @total_room_tax_amount = total_room_tax_amount
155
1514
  @total_tax_amount = total_tax_amount
156
1515
  end
157
1516
  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
1517
 
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
1518
+ class LodgingDatum < ::Stripe::RequestParams
1519
+ class Accommodation < ::Stripe::RequestParams
1520
+ # Type of accommodation.
1521
+ attr_accessor :accommodation_type
1522
+ # Bed type.
1523
+ attr_accessor :bed_type
1524
+ # Daily accommodation rate in cents.
1525
+ attr_accessor :daily_rate_amount
1526
+ # Number of nights.
1527
+ attr_accessor :nights
1528
+ # Number of rooms, cabanas, apartments, and so on.
1529
+ attr_accessor :number_of_rooms
1530
+ # Rate type.
1531
+ attr_accessor :rate_type
1532
+ # Whether smoking is allowed.
1533
+ attr_accessor :smoking_indicator
189
1534
 
190
- class Hooks < ::Stripe::RequestParams
191
- class Inputs < ::Stripe::RequestParams
192
- class Tax < ::Stripe::RequestParams
193
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
194
- attr_accessor :calculation
1535
+ def initialize(
1536
+ accommodation_type: nil,
1537
+ bed_type: nil,
1538
+ daily_rate_amount: nil,
1539
+ nights: nil,
1540
+ number_of_rooms: nil,
1541
+ rate_type: nil,
1542
+ smoking_indicator: nil
1543
+ )
1544
+ @accommodation_type = accommodation_type
1545
+ @bed_type = bed_type
1546
+ @daily_rate_amount = daily_rate_amount
1547
+ @nights = nights
1548
+ @number_of_rooms = number_of_rooms
1549
+ @rate_type = rate_type
1550
+ @smoking_indicator = smoking_indicator
1551
+ end
1552
+ end
195
1553
 
196
- def initialize(calculation: nil)
197
- @calculation = calculation
1554
+ class Affiliate < ::Stripe::RequestParams
1555
+ # Affiliate partner code.
1556
+ attr_accessor :code
1557
+ # Affiliate partner name.
1558
+ attr_accessor :name
1559
+
1560
+ def initialize(code: nil, name: nil)
1561
+ @code = code
1562
+ @name = name
198
1563
  end
199
1564
  end
200
- # Tax arguments for automations
201
- attr_accessor :tax
202
1565
 
203
- def initialize(tax: nil)
204
- @tax = tax
1566
+ class Guest < ::Stripe::RequestParams
1567
+ # Guest's full name.
1568
+ attr_accessor :name
1569
+
1570
+ def initialize(name: nil)
1571
+ @name = name
1572
+ end
205
1573
  end
206
- end
207
- # Arguments passed in automations
208
- attr_accessor :inputs
209
1574
 
210
- def initialize(inputs: nil)
211
- @inputs = inputs
212
- end
213
- end
1575
+ class Host < ::Stripe::RequestParams
1576
+ class Address < ::Stripe::RequestParams
1577
+ # City, district, suburb, town, or village.
1578
+ attr_accessor :city
1579
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1580
+ attr_accessor :country
1581
+ # Address line 1, such as the street, PO Box, or company name.
1582
+ attr_accessor :line1
1583
+ # Address line 2, such as the apartment, suite, unit, or building.
1584
+ attr_accessor :line2
1585
+ # ZIP or postal code.
1586
+ attr_accessor :postal_code
1587
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1588
+ attr_accessor :state
214
1589
 
215
- class MandateData < ::Stripe::RequestParams
216
- class CustomerAcceptance < ::Stripe::RequestParams
217
- class Offline < ::Stripe::RequestParams; end
1590
+ def initialize(
1591
+ city: nil,
1592
+ country: nil,
1593
+ line1: nil,
1594
+ line2: nil,
1595
+ postal_code: nil,
1596
+ state: nil
1597
+ )
1598
+ @city = city
1599
+ @country = country
1600
+ @line1 = line1
1601
+ @line2 = line2
1602
+ @postal_code = postal_code
1603
+ @state = state
1604
+ end
1605
+ end
1606
+ # Address of the host.
1607
+ attr_accessor :address
1608
+ # Host's country of domicile.
1609
+ attr_accessor :country_of_domicile
1610
+ # Reference number for the host.
1611
+ attr_accessor :host_reference
1612
+ # Type of host.
1613
+ attr_accessor :host_type
1614
+ # Name of the lodging property or host.
1615
+ attr_accessor :name
1616
+ # Total number of reservations for the host.
1617
+ attr_accessor :number_of_reservations
1618
+ # Property phone number.
1619
+ attr_accessor :property_phone_number
1620
+ # Host's registration date.
1621
+ attr_accessor :registered_at
218
1622
 
219
- class Online < ::Stripe::RequestParams
220
- # The IP address from which the Mandate was accepted by the customer.
221
- attr_accessor :ip_address
222
- # The user agent of the browser from which the Mandate was accepted by the customer.
223
- attr_accessor :user_agent
1623
+ def initialize(
1624
+ address: nil,
1625
+ country_of_domicile: nil,
1626
+ host_reference: nil,
1627
+ host_type: nil,
1628
+ name: nil,
1629
+ number_of_reservations: nil,
1630
+ property_phone_number: nil,
1631
+ registered_at: nil
1632
+ )
1633
+ @address = address
1634
+ @country_of_domicile = country_of_domicile
1635
+ @host_reference = host_reference
1636
+ @host_type = host_type
1637
+ @name = name
1638
+ @number_of_reservations = number_of_reservations
1639
+ @property_phone_number = property_phone_number
1640
+ @registered_at = registered_at
1641
+ end
1642
+ end
224
1643
 
225
- def initialize(ip_address: nil, user_agent: nil)
226
- @ip_address = ip_address
227
- @user_agent = user_agent
1644
+ class Insurance < ::Stripe::RequestParams
1645
+ # Price of the insurance coverage in cents.
1646
+ attr_accessor :amount
1647
+ # Currency of the insurance amount.
1648
+ attr_accessor :currency
1649
+ # Name of the insurance company.
1650
+ attr_accessor :insurance_company_name
1651
+ # Type of insurance coverage.
1652
+ attr_accessor :insurance_type
1653
+
1654
+ def initialize(
1655
+ amount: nil,
1656
+ currency: nil,
1657
+ insurance_company_name: nil,
1658
+ insurance_type: nil
1659
+ )
1660
+ @amount = amount
1661
+ @currency = currency
1662
+ @insurance_company_name = insurance_company_name
1663
+ @insurance_type = insurance_type
228
1664
  end
229
1665
  end
230
- # The time at which the customer accepted the Mandate.
231
- attr_accessor :accepted_at
232
- # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
233
- attr_accessor :offline
234
- # If this is a Mandate accepted online, this hash contains details about the online acceptance.
235
- attr_accessor :online
236
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
237
- attr_accessor :type
238
1666
 
239
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
240
- @accepted_at = accepted_at
241
- @offline = offline
242
- @online = online
243
- @type = type
1667
+ class Total < ::Stripe::RequestParams
1668
+ class Discounts < ::Stripe::RequestParams
1669
+ # Corporate client discount code.
1670
+ attr_accessor :corporate_client_code
1671
+ # Coupon code.
1672
+ attr_accessor :coupon
1673
+
1674
+ def initialize(corporate_client_code: nil, coupon: nil)
1675
+ @corporate_client_code = corporate_client_code
1676
+ @coupon = coupon
1677
+ end
1678
+ end
1679
+
1680
+ class ExtraCharge < ::Stripe::RequestParams
1681
+ # Amount of the extra charge in cents.
1682
+ attr_accessor :amount
1683
+ # Type of extra charge.
1684
+ attr_accessor :type
1685
+
1686
+ def initialize(amount: nil, type: nil)
1687
+ @amount = amount
1688
+ @type = type
1689
+ end
1690
+ end
1691
+
1692
+ class Tax < ::Stripe::RequestParams
1693
+ class TaxItem < ::Stripe::RequestParams
1694
+ # Tax amount in cents.
1695
+ attr_accessor :amount
1696
+ # Tax rate.
1697
+ attr_accessor :rate
1698
+ # Type of tax applied.
1699
+ attr_accessor :type
1700
+
1701
+ def initialize(amount: nil, rate: nil, type: nil)
1702
+ @amount = amount
1703
+ @rate = rate
1704
+ @type = type
1705
+ end
1706
+ end
1707
+ # Indicates whether the transaction is tax exempt.
1708
+ attr_accessor :tax_exempt_indicator
1709
+ # Tax details.
1710
+ attr_accessor :tax_items
1711
+
1712
+ def initialize(tax_exempt_indicator: nil, tax_items: nil)
1713
+ @tax_exempt_indicator = tax_exempt_indicator
1714
+ @tax_items = tax_items
1715
+ end
1716
+ end
1717
+ # Total price of the lodging reservation in cents.
1718
+ attr_accessor :amount
1719
+ # Cash advances in cents.
1720
+ attr_accessor :cash_advances
1721
+ # Currency of the total amount.
1722
+ attr_accessor :currency
1723
+ # Discount details for the lodging.
1724
+ attr_accessor :discounts
1725
+ # Additional charges for the lodging.
1726
+ attr_accessor :extra_charges
1727
+ # Prepaid amount in cents.
1728
+ attr_accessor :prepaid_amount
1729
+ # Tax breakdown for the lodging reservation.
1730
+ attr_accessor :tax
1731
+
1732
+ def initialize(
1733
+ amount: nil,
1734
+ cash_advances: nil,
1735
+ currency: nil,
1736
+ discounts: nil,
1737
+ extra_charges: nil,
1738
+ prepaid_amount: nil,
1739
+ tax: nil
1740
+ )
1741
+ @amount = amount
1742
+ @cash_advances = cash_advances
1743
+ @currency = currency
1744
+ @discounts = discounts
1745
+ @extra_charges = extra_charges
1746
+ @prepaid_amount = prepaid_amount
1747
+ @tax = tax
1748
+ end
244
1749
  end
245
- end
246
- # This hash contains details about the customer acceptance of the Mandate.
247
- attr_accessor :customer_acceptance
1750
+ # Accommodation details for the lodging.
1751
+ attr_accessor :accommodation
1752
+ # Affiliate details if applicable.
1753
+ attr_accessor :affiliate
1754
+ # Booking confirmation number for the lodging.
1755
+ attr_accessor :booking_number
1756
+ # Check-in date.
1757
+ attr_accessor :checkin_at
1758
+ # Check-out date.
1759
+ attr_accessor :checkout_at
1760
+ # Customer service phone number for the lodging company.
1761
+ attr_accessor :customer_service_phone_number
1762
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1763
+ attr_accessor :fire_safety_act_compliance_indicator
1764
+ # List of guests for the lodging.
1765
+ attr_accessor :guests
1766
+ # Host details for the lodging.
1767
+ attr_accessor :host
1768
+ # List of insurances for the lodging.
1769
+ attr_accessor :insurances
1770
+ # Whether the renter is a no-show.
1771
+ attr_accessor :no_show_indicator
1772
+ # Renter ID number for the lodging.
1773
+ attr_accessor :renter_id_number
1774
+ # Renter name for the lodging.
1775
+ attr_accessor :renter_name
1776
+ # Total details for the lodging.
1777
+ attr_accessor :total
248
1778
 
249
- def initialize(customer_acceptance: nil)
250
- @customer_acceptance = customer_acceptance
1779
+ def initialize(
1780
+ accommodation: nil,
1781
+ affiliate: nil,
1782
+ booking_number: nil,
1783
+ checkin_at: nil,
1784
+ checkout_at: nil,
1785
+ customer_service_phone_number: nil,
1786
+ fire_safety_act_compliance_indicator: nil,
1787
+ guests: nil,
1788
+ host: nil,
1789
+ insurances: nil,
1790
+ no_show_indicator: nil,
1791
+ renter_id_number: nil,
1792
+ renter_name: nil,
1793
+ total: nil
1794
+ )
1795
+ @accommodation = accommodation
1796
+ @affiliate = affiliate
1797
+ @booking_number = booking_number
1798
+ @checkin_at = checkin_at
1799
+ @checkout_at = checkout_at
1800
+ @customer_service_phone_number = customer_service_phone_number
1801
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1802
+ @guests = guests
1803
+ @host = host
1804
+ @insurances = insurances
1805
+ @no_show_indicator = no_show_indicator
1806
+ @renter_id_number = renter_id_number
1807
+ @renter_name = renter_name
1808
+ @total = total
1809
+ end
251
1810
  end
252
- end
253
1811
 
254
- class PaymentDetails < ::Stripe::RequestParams
1812
+ class Subscription < ::Stripe::RequestParams
1813
+ class Affiliate < ::Stripe::RequestParams
1814
+ # The name of the affiliate that originated the purchase.
1815
+ attr_accessor :name
1816
+
1817
+ def initialize(name: nil)
1818
+ @name = name
1819
+ end
1820
+ end
1821
+
1822
+ class BillingInterval < ::Stripe::RequestParams
1823
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1824
+ attr_accessor :count
1825
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1826
+ attr_accessor :interval
1827
+
1828
+ def initialize(count: nil, interval: nil)
1829
+ @count = count
1830
+ @interval = interval
1831
+ end
1832
+ end
1833
+ # Affiliate details for this purchase.
1834
+ attr_accessor :affiliate
1835
+ # Info whether the subscription will be auto renewed upon expiry.
1836
+ attr_accessor :auto_renewal
1837
+ # Subscription billing details for this purchase.
1838
+ attr_accessor :billing_interval
1839
+ # Subscription end time. Measured in seconds since the Unix epoch.
1840
+ attr_accessor :ends_at
1841
+ # Name of the product on subscription. e.g. Apple Music Subscription
1842
+ attr_accessor :name
1843
+ # Subscription start time. Measured in seconds since the Unix epoch.
1844
+ attr_accessor :starts_at
1845
+
1846
+ def initialize(
1847
+ affiliate: nil,
1848
+ auto_renewal: nil,
1849
+ billing_interval: nil,
1850
+ ends_at: nil,
1851
+ name: nil,
1852
+ starts_at: nil
1853
+ )
1854
+ @affiliate = affiliate
1855
+ @auto_renewal = auto_renewal
1856
+ @billing_interval = billing_interval
1857
+ @ends_at = ends_at
1858
+ @name = name
1859
+ @starts_at = starts_at
1860
+ end
1861
+ end
1862
+ # Car rental details for this PaymentIntent.
1863
+ attr_accessor :car_rental
1864
+ # Car rental data for this PaymentIntent.
1865
+ attr_accessor :car_rental_data
255
1866
  # A unique value to identify the customer. This field is available only for card payments.
256
1867
  #
257
1868
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
258
1869
  attr_accessor :customer_reference
1870
+ # Event details for this PaymentIntent
1871
+ attr_accessor :event_details
1872
+ # Flight reservation details for this PaymentIntent
1873
+ attr_accessor :flight
1874
+ # Flight data for this PaymentIntent.
1875
+ attr_accessor :flight_data
1876
+ # Lodging reservation details for this PaymentIntent
1877
+ attr_accessor :lodging
1878
+ # Lodging data for this PaymentIntent.
1879
+ attr_accessor :lodging_data
259
1880
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
260
1881
  #
261
1882
  # 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.
262
1883
  attr_accessor :order_reference
1884
+ # Subscription details for this PaymentIntent
1885
+ attr_accessor :subscription
263
1886
 
264
- def initialize(customer_reference: nil, order_reference: nil)
1887
+ def initialize(
1888
+ car_rental: nil,
1889
+ car_rental_data: nil,
1890
+ customer_reference: nil,
1891
+ event_details: nil,
1892
+ flight: nil,
1893
+ flight_data: nil,
1894
+ lodging: nil,
1895
+ lodging_data: nil,
1896
+ order_reference: nil,
1897
+ subscription: nil
1898
+ )
1899
+ @car_rental = car_rental
1900
+ @car_rental_data = car_rental_data
265
1901
  @customer_reference = customer_reference
1902
+ @event_details = event_details
1903
+ @flight = flight
1904
+ @flight_data = flight_data
1905
+ @lodging = lodging
1906
+ @lodging_data = lodging_data
266
1907
  @order_reference = order_reference
1908
+ @subscription = subscription
267
1909
  end
268
1910
  end
269
1911
 
@@ -405,8 +2047,18 @@ module Stripe
405
2047
  end
406
2048
 
407
2049
  class Giropay < ::Stripe::RequestParams; end
2050
+ class Gopay < ::Stripe::RequestParams; end
408
2051
  class Grabpay < ::Stripe::RequestParams; end
409
2052
 
2053
+ class IdBankTransfer < ::Stripe::RequestParams
2054
+ # Bank where the account is held.
2055
+ attr_accessor :bank
2056
+
2057
+ def initialize(bank: nil)
2058
+ @bank = bank
2059
+ end
2060
+ end
2061
+
410
2062
  class Ideal < ::Stripe::RequestParams
411
2063
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
412
2064
  attr_accessor :bank
@@ -523,6 +2175,7 @@ module Stripe
523
2175
 
524
2176
  class Pix < ::Stripe::RequestParams; end
525
2177
  class Promptpay < ::Stripe::RequestParams; end
2178
+ class Qris < ::Stripe::RequestParams; end
526
2179
 
527
2180
  class RadarOptions < ::Stripe::RequestParams
528
2181
  # 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.
@@ -533,6 +2186,29 @@ module Stripe
533
2186
  end
534
2187
  end
535
2188
 
2189
+ class Rechnung < ::Stripe::RequestParams
2190
+ class Dob < ::Stripe::RequestParams
2191
+ # The day of birth, between 1 and 31.
2192
+ attr_accessor :day
2193
+ # The month of birth, between 1 and 12.
2194
+ attr_accessor :month
2195
+ # The four-digit year of birth.
2196
+ attr_accessor :year
2197
+
2198
+ def initialize(day: nil, month: nil, year: nil)
2199
+ @day = day
2200
+ @month = month
2201
+ @year = year
2202
+ end
2203
+ end
2204
+ # Customer's date of birth
2205
+ attr_accessor :dob
2206
+
2207
+ def initialize(dob: nil)
2208
+ @dob = dob
2209
+ end
2210
+ end
2211
+
536
2212
  class RevolutPay < ::Stripe::RequestParams; end
537
2213
  class SamsungPay < ::Stripe::RequestParams; end
538
2214
  class Satispay < ::Stripe::RequestParams; end
@@ -548,6 +2224,7 @@ module Stripe
548
2224
  end
549
2225
 
550
2226
  class Sequra < ::Stripe::RequestParams; end
2227
+ class Shopeepay < ::Stripe::RequestParams; end
551
2228
 
552
2229
  class Sofort < ::Stripe::RequestParams
553
2230
  # Two-letter ISO code representing the country the bank account is located in.
@@ -558,6 +2235,15 @@ module Stripe
558
2235
  end
559
2236
  end
560
2237
 
2238
+ class StripeBalance < ::Stripe::RequestParams
2239
+ # The connected account ID whose Stripe balance to use as the source of payment
2240
+ attr_accessor :account
2241
+
2242
+ def initialize(account: nil)
2243
+ @account = account
2244
+ end
2245
+ end
2246
+
561
2247
  class Sunbit < ::Stripe::RequestParams; end
562
2248
  class Swish < ::Stripe::RequestParams; end
563
2249
  class Twint < ::Stripe::RequestParams; end
@@ -589,12 +2275,25 @@ module Stripe
589
2275
  end
590
2276
 
591
2277
  class UsBankAccount < ::Stripe::RequestParams
2278
+ class ExternalToken < ::Stripe::RequestParams
2279
+ # The Plaid processor token to use for this bank account.
2280
+ attr_accessor :plaid_processor_token
2281
+ # The type of external token.
2282
+ attr_accessor :type
2283
+
2284
+ def initialize(plaid_processor_token: nil, type: nil)
2285
+ @plaid_processor_token = plaid_processor_token
2286
+ @type = type
2287
+ end
2288
+ end
592
2289
  # Account holder type: individual or company.
593
2290
  attr_accessor :account_holder_type
594
2291
  # Account number of the bank account.
595
2292
  attr_accessor :account_number
596
2293
  # Account type: checkings or savings. Defaults to checking if omitted.
597
2294
  attr_accessor :account_type
2295
+ # An external token used to create a payment method.
2296
+ attr_accessor :external_token
598
2297
  # The ID of a Financial Connections Account to use as a payment method.
599
2298
  attr_accessor :financial_connections_account
600
2299
  # Routing number of the bank account.
@@ -604,18 +2303,21 @@ module Stripe
604
2303
  account_holder_type: nil,
605
2304
  account_number: nil,
606
2305
  account_type: nil,
2306
+ external_token: nil,
607
2307
  financial_connections_account: nil,
608
2308
  routing_number: nil
609
2309
  )
610
2310
  @account_holder_type = account_holder_type
611
2311
  @account_number = account_number
612
2312
  @account_type = account_type
2313
+ @external_token = external_token
613
2314
  @financial_connections_account = financial_connections_account
614
2315
  @routing_number = routing_number
615
2316
  end
616
2317
  end
617
2318
 
618
2319
  class WechatPay < ::Stripe::RequestParams; end
2320
+ class Wero < ::Stripe::RequestParams; end
619
2321
  class Zip < ::Stripe::RequestParams; end
620
2322
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
621
2323
  attr_accessor :acss_debit
@@ -659,8 +2361,12 @@ module Stripe
659
2361
  attr_accessor :fpx
660
2362
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
661
2363
  attr_accessor :giropay
2364
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2365
+ attr_accessor :gopay
662
2366
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
663
2367
  attr_accessor :grabpay
2368
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2369
+ attr_accessor :id_bank_transfer
664
2370
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
665
2371
  attr_accessor :ideal
666
2372
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -707,8 +2413,12 @@ module Stripe
707
2413
  attr_accessor :pix
708
2414
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
709
2415
  attr_accessor :promptpay
2416
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2417
+ attr_accessor :qris
710
2418
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
711
2419
  attr_accessor :radar_options
2420
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2421
+ attr_accessor :rechnung
712
2422
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
713
2423
  attr_accessor :revolut_pay
714
2424
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -721,8 +2431,14 @@ module Stripe
721
2431
  attr_accessor :sepa_debit
722
2432
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
723
2433
  attr_accessor :sequra
2434
+ # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2435
+ attr_accessor :shared_payment_granted_token
2436
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2437
+ attr_accessor :shopeepay
724
2438
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
725
2439
  attr_accessor :sofort
2440
+ # This hash contains details about the Stripe balance payment method.
2441
+ attr_accessor :stripe_balance
726
2442
  # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
727
2443
  attr_accessor :sunbit
728
2444
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -737,6 +2453,8 @@ module Stripe
737
2453
  attr_accessor :us_bank_account
738
2454
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
739
2455
  attr_accessor :wechat_pay
2456
+ # If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
2457
+ attr_accessor :wero
740
2458
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
741
2459
  attr_accessor :zip
742
2460
 
@@ -762,7 +2480,9 @@ module Stripe
762
2480
  eps: nil,
763
2481
  fpx: nil,
764
2482
  giropay: nil,
2483
+ gopay: nil,
765
2484
  grabpay: nil,
2485
+ id_bank_transfer: nil,
766
2486
  ideal: nil,
767
2487
  interac_present: nil,
768
2488
  kakao_pay: nil,
@@ -786,14 +2506,19 @@ module Stripe
786
2506
  payto: nil,
787
2507
  pix: nil,
788
2508
  promptpay: nil,
2509
+ qris: nil,
789
2510
  radar_options: nil,
2511
+ rechnung: nil,
790
2512
  revolut_pay: nil,
791
2513
  samsung_pay: nil,
792
2514
  satispay: nil,
793
2515
  scalapay: nil,
794
2516
  sepa_debit: nil,
795
2517
  sequra: nil,
2518
+ shared_payment_granted_token: nil,
2519
+ shopeepay: nil,
796
2520
  sofort: nil,
2521
+ stripe_balance: nil,
797
2522
  sunbit: nil,
798
2523
  swish: nil,
799
2524
  twint: nil,
@@ -801,6 +2526,7 @@ module Stripe
801
2526
  upi: nil,
802
2527
  us_bank_account: nil,
803
2528
  wechat_pay: nil,
2529
+ wero: nil,
804
2530
  zip: nil
805
2531
  )
806
2532
  @acss_debit = acss_debit
@@ -824,7 +2550,9 @@ module Stripe
824
2550
  @eps = eps
825
2551
  @fpx = fpx
826
2552
  @giropay = giropay
2553
+ @gopay = gopay
827
2554
  @grabpay = grabpay
2555
+ @id_bank_transfer = id_bank_transfer
828
2556
  @ideal = ideal
829
2557
  @interac_present = interac_present
830
2558
  @kakao_pay = kakao_pay
@@ -848,14 +2576,19 @@ module Stripe
848
2576
  @payto = payto
849
2577
  @pix = pix
850
2578
  @promptpay = promptpay
2579
+ @qris = qris
851
2580
  @radar_options = radar_options
2581
+ @rechnung = rechnung
852
2582
  @revolut_pay = revolut_pay
853
2583
  @samsung_pay = samsung_pay
854
2584
  @satispay = satispay
855
2585
  @scalapay = scalapay
856
2586
  @sepa_debit = sepa_debit
857
2587
  @sequra = sequra
2588
+ @shared_payment_granted_token = shared_payment_granted_token
2589
+ @shopeepay = shopeepay
858
2590
  @sofort = sofort
2591
+ @stripe_balance = stripe_balance
859
2592
  @sunbit = sunbit
860
2593
  @swish = swish
861
2594
  @twint = twint
@@ -863,6 +2596,7 @@ module Stripe
863
2596
  @upi = upi
864
2597
  @us_bank_account = us_bank_account
865
2598
  @wechat_pay = wechat_pay
2599
+ @wero = wero
866
2600
  @zip = zip
867
2601
  end
868
2602
  end
@@ -1303,6 +3037,48 @@ module Stripe
1303
3037
  end
1304
3038
  end
1305
3039
 
3040
+ class StatementDetails < ::Stripe::RequestParams
3041
+ class Address < ::Stripe::RequestParams
3042
+ # City, district, suburb, town, or village.
3043
+ attr_accessor :city
3044
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3045
+ attr_accessor :country
3046
+ # Address line 1, such as the street, PO Box, or company name.
3047
+ attr_accessor :line1
3048
+ # Address line 2, such as the apartment, suite, unit, or building.
3049
+ attr_accessor :line2
3050
+ # ZIP or postal code.
3051
+ attr_accessor :postal_code
3052
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3053
+ attr_accessor :state
3054
+
3055
+ def initialize(
3056
+ city: nil,
3057
+ country: nil,
3058
+ line1: nil,
3059
+ line2: nil,
3060
+ postal_code: nil,
3061
+ state: nil
3062
+ )
3063
+ @city = city
3064
+ @country = country
3065
+ @line1 = line1
3066
+ @line2 = line2
3067
+ @postal_code = postal_code
3068
+ @state = state
3069
+ end
3070
+ end
3071
+ # Please pass in an address that is within your Stripe user account country
3072
+ attr_accessor :address
3073
+ # Phone number (e.g., a toll-free number that customers can call)
3074
+ attr_accessor :phone
3075
+
3076
+ def initialize(address: nil, phone: nil)
3077
+ @address = address
3078
+ @phone = phone
3079
+ end
3080
+ end
3081
+
1306
3082
  class ThreeDSecure < ::Stripe::RequestParams
1307
3083
  class NetworkOptions < ::Stripe::RequestParams
1308
3084
  class CartesBancaires < ::Stripe::RequestParams
@@ -1397,6 +3173,8 @@ module Stripe
1397
3173
  attr_accessor :moto
1398
3174
  # 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.
1399
3175
  attr_accessor :network
3176
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3177
+ attr_accessor :request_decremental_authorization
1400
3178
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1401
3179
  attr_accessor :request_extended_authorization
1402
3180
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1405,6 +3183,8 @@ module Stripe
1405
3183
  attr_accessor :request_multicapture
1406
3184
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1407
3185
  attr_accessor :request_overcapture
3186
+ # Request partial authorization on this PaymentIntent.
3187
+ attr_accessor :request_partial_authorization
1408
3188
  # 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.
1409
3189
  attr_accessor :request_three_d_secure
1410
3190
  # 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).
@@ -1425,6 +3205,8 @@ module Stripe
1425
3205
  attr_accessor :statement_descriptor_suffix_kana
1426
3206
  # 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.
1427
3207
  attr_accessor :statement_descriptor_suffix_kanji
3208
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3209
+ attr_accessor :statement_details
1428
3210
  # Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
1429
3211
  #
1430
3212
  # 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.
@@ -1444,16 +3226,19 @@ module Stripe
1444
3226
  mandate_options: nil,
1445
3227
  moto: nil,
1446
3228
  network: nil,
3229
+ request_decremental_authorization: nil,
1447
3230
  request_extended_authorization: nil,
1448
3231
  request_incremental_authorization: nil,
1449
3232
  request_multicapture: nil,
1450
3233
  request_overcapture: nil,
3234
+ request_partial_authorization: nil,
1451
3235
  request_three_d_secure: nil,
1452
3236
  require_cvc_recollection: nil,
1453
3237
  setup_credential_usage: nil,
1454
3238
  setup_future_usage: nil,
1455
3239
  statement_descriptor_suffix_kana: nil,
1456
3240
  statement_descriptor_suffix_kanji: nil,
3241
+ statement_details: nil,
1457
3242
  stored_credential_usage: nil,
1458
3243
  three_d_secure: nil
1459
3244
  )
@@ -1463,16 +3248,19 @@ module Stripe
1463
3248
  @mandate_options = mandate_options
1464
3249
  @moto = moto
1465
3250
  @network = network
3251
+ @request_decremental_authorization = request_decremental_authorization
1466
3252
  @request_extended_authorization = request_extended_authorization
1467
3253
  @request_incremental_authorization = request_incremental_authorization
1468
3254
  @request_multicapture = request_multicapture
1469
3255
  @request_overcapture = request_overcapture
3256
+ @request_partial_authorization = request_partial_authorization
1470
3257
  @request_three_d_secure = request_three_d_secure
1471
3258
  @require_cvc_recollection = require_cvc_recollection
1472
3259
  @setup_credential_usage = setup_credential_usage
1473
3260
  @setup_future_usage = setup_future_usage
1474
3261
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1475
3262
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3263
+ @statement_details = statement_details
1476
3264
  @stored_credential_usage = stored_credential_usage
1477
3265
  @three_d_secure = three_d_secure
1478
3266
  end
@@ -1652,6 +3440,23 @@ module Stripe
1652
3440
  end
1653
3441
  end
1654
3442
 
3443
+ class Gopay < ::Stripe::RequestParams
3444
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3445
+ #
3446
+ # 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.
3447
+ #
3448
+ # 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.
3449
+ #
3450
+ # 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).
3451
+ #
3452
+ # 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`.
3453
+ attr_accessor :setup_future_usage
3454
+
3455
+ def initialize(setup_future_usage: nil)
3456
+ @setup_future_usage = setup_future_usage
3457
+ end
3458
+ end
3459
+
1655
3460
  class Grabpay < ::Stripe::RequestParams
1656
3461
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1657
3462
  #
@@ -1669,6 +3474,29 @@ module Stripe
1669
3474
  end
1670
3475
  end
1671
3476
 
3477
+ class IdBankTransfer < ::Stripe::RequestParams
3478
+ # 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.
3479
+ attr_accessor :expires_after
3480
+ # 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.
3481
+ attr_accessor :expires_at
3482
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3483
+ #
3484
+ # 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.
3485
+ #
3486
+ # 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.
3487
+ #
3488
+ # 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).
3489
+ #
3490
+ # 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`.
3491
+ attr_accessor :setup_future_usage
3492
+
3493
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3494
+ @expires_after = expires_after
3495
+ @expires_at = expires_at
3496
+ @setup_future_usage = setup_future_usage
3497
+ end
3498
+ end
3499
+
1672
3500
  class Ideal < ::Stripe::RequestParams
1673
3501
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1674
3502
  #
@@ -1775,6 +3603,939 @@ module Stripe
1775
3603
  @reference = reference
1776
3604
  end
1777
3605
  end
3606
+
3607
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3608
+ class BusReservationDetail < ::Stripe::RequestParams
3609
+ class Arrival < ::Stripe::RequestParams
3610
+ class Address < ::Stripe::RequestParams
3611
+ # The city or town.
3612
+ attr_accessor :city
3613
+ # The country in ISO 3166-1 alpha-2 format.
3614
+ attr_accessor :country
3615
+ # The postal code formatted according to country.
3616
+ attr_accessor :postal_code
3617
+ # The state, county, province, or region formatted according to country.
3618
+ attr_accessor :region
3619
+ # Line 1 of the street address.
3620
+ attr_accessor :street_address
3621
+ # Line 2 of the street address.
3622
+ attr_accessor :street_address2
3623
+
3624
+ def initialize(
3625
+ city: nil,
3626
+ country: nil,
3627
+ postal_code: nil,
3628
+ region: nil,
3629
+ street_address: nil,
3630
+ street_address2: nil
3631
+ )
3632
+ @city = city
3633
+ @country = country
3634
+ @postal_code = postal_code
3635
+ @region = region
3636
+ @street_address = street_address
3637
+ @street_address2 = street_address2
3638
+ end
3639
+ end
3640
+ # Address of the arrival location.
3641
+ attr_accessor :address
3642
+ # Identifier name or reference for the arrival location.
3643
+ attr_accessor :arrival_location
3644
+
3645
+ def initialize(address: nil, arrival_location: nil)
3646
+ @address = address
3647
+ @arrival_location = arrival_location
3648
+ end
3649
+ end
3650
+
3651
+ class Departure < ::Stripe::RequestParams
3652
+ class Address < ::Stripe::RequestParams
3653
+ # The city or town.
3654
+ attr_accessor :city
3655
+ # The country in ISO 3166-1 alpha-2 format.
3656
+ attr_accessor :country
3657
+ # The postal code formatted according to country.
3658
+ attr_accessor :postal_code
3659
+ # The state, county, province, or region formatted according to country.
3660
+ attr_accessor :region
3661
+ # Line 1 of the street address.
3662
+ attr_accessor :street_address
3663
+ # Line 2 of the street address.
3664
+ attr_accessor :street_address2
3665
+
3666
+ def initialize(
3667
+ city: nil,
3668
+ country: nil,
3669
+ postal_code: nil,
3670
+ region: nil,
3671
+ street_address: nil,
3672
+ street_address2: nil
3673
+ )
3674
+ @city = city
3675
+ @country = country
3676
+ @postal_code = postal_code
3677
+ @region = region
3678
+ @street_address = street_address
3679
+ @street_address2 = street_address2
3680
+ end
3681
+ end
3682
+ # Address of the departure location.
3683
+ attr_accessor :address
3684
+ # Timestamp of departure.
3685
+ attr_accessor :departs_at
3686
+ # Identifier name or reference for the origin location.
3687
+ attr_accessor :departure_location
3688
+
3689
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3690
+ @address = address
3691
+ @departs_at = departs_at
3692
+ @departure_location = departure_location
3693
+ end
3694
+ end
3695
+
3696
+ class Insurance < ::Stripe::RequestParams
3697
+ # Insurance currency.
3698
+ attr_accessor :currency
3699
+ # Name of the company providing the insurance.
3700
+ attr_accessor :insurance_company_name
3701
+ # Type of insurance.
3702
+ attr_accessor :insurance_type
3703
+ # Price of insurance in cents.
3704
+ attr_accessor :price
3705
+
3706
+ def initialize(
3707
+ currency: nil,
3708
+ insurance_company_name: nil,
3709
+ insurance_type: nil,
3710
+ price: nil
3711
+ )
3712
+ @currency = currency
3713
+ @insurance_company_name = insurance_company_name
3714
+ @insurance_type = insurance_type
3715
+ @price = price
3716
+ end
3717
+ end
3718
+
3719
+ class Passenger < ::Stripe::RequestParams
3720
+ # The family name of the person.
3721
+ attr_accessor :family_name
3722
+ # The given name of the person.
3723
+ attr_accessor :given_name
3724
+
3725
+ def initialize(family_name: nil, given_name: nil)
3726
+ @family_name = family_name
3727
+ @given_name = given_name
3728
+ end
3729
+ end
3730
+ # Name of associated or partner company for the service.
3731
+ attr_accessor :affiliate_name
3732
+ # Arrival details.
3733
+ attr_accessor :arrival
3734
+ # Name of transportation company.
3735
+ attr_accessor :carrier_name
3736
+ # Currency.
3737
+ attr_accessor :currency
3738
+ # Departure details.
3739
+ attr_accessor :departure
3740
+ # List of insurances for this reservation.
3741
+ attr_accessor :insurances
3742
+ # List of passengers that this reservation applies to.
3743
+ attr_accessor :passengers
3744
+ # Price in cents.
3745
+ attr_accessor :price
3746
+ # Ticket class.
3747
+ attr_accessor :ticket_class
3748
+
3749
+ def initialize(
3750
+ affiliate_name: nil,
3751
+ arrival: nil,
3752
+ carrier_name: nil,
3753
+ currency: nil,
3754
+ departure: nil,
3755
+ insurances: nil,
3756
+ passengers: nil,
3757
+ price: nil,
3758
+ ticket_class: nil
3759
+ )
3760
+ @affiliate_name = affiliate_name
3761
+ @arrival = arrival
3762
+ @carrier_name = carrier_name
3763
+ @currency = currency
3764
+ @departure = departure
3765
+ @insurances = insurances
3766
+ @passengers = passengers
3767
+ @price = price
3768
+ @ticket_class = ticket_class
3769
+ end
3770
+ end
3771
+
3772
+ class EventReservationDetail < ::Stripe::RequestParams
3773
+ class Address < ::Stripe::RequestParams
3774
+ # The city or town.
3775
+ attr_accessor :city
3776
+ # The country in ISO 3166-1 alpha-2 format.
3777
+ attr_accessor :country
3778
+ # The postal code formatted according to country.
3779
+ attr_accessor :postal_code
3780
+ # The state, county, province, or region formatted according to country.
3781
+ attr_accessor :region
3782
+ # Line 1 of the street address.
3783
+ attr_accessor :street_address
3784
+ # Line 2 of the street address.
3785
+ attr_accessor :street_address2
3786
+
3787
+ def initialize(
3788
+ city: nil,
3789
+ country: nil,
3790
+ postal_code: nil,
3791
+ region: nil,
3792
+ street_address: nil,
3793
+ street_address2: nil
3794
+ )
3795
+ @city = city
3796
+ @country = country
3797
+ @postal_code = postal_code
3798
+ @region = region
3799
+ @street_address = street_address
3800
+ @street_address2 = street_address2
3801
+ end
3802
+ end
3803
+
3804
+ class Insurance < ::Stripe::RequestParams
3805
+ # Insurance currency.
3806
+ attr_accessor :currency
3807
+ # Name of the company providing the insurance.
3808
+ attr_accessor :insurance_company_name
3809
+ # Type of insurance.
3810
+ attr_accessor :insurance_type
3811
+ # Price of insurance in cents.
3812
+ attr_accessor :price
3813
+
3814
+ def initialize(
3815
+ currency: nil,
3816
+ insurance_company_name: nil,
3817
+ insurance_type: nil,
3818
+ price: nil
3819
+ )
3820
+ @currency = currency
3821
+ @insurance_company_name = insurance_company_name
3822
+ @insurance_type = insurance_type
3823
+ @price = price
3824
+ end
3825
+ end
3826
+ # Indicates if the tickets are digitally checked when entering the venue.
3827
+ attr_accessor :access_controlled_venue
3828
+ # Address of the event.
3829
+ attr_accessor :address
3830
+ # Name of associated or partner company for the service.
3831
+ attr_accessor :affiliate_name
3832
+ # End timestamp of the event.
3833
+ attr_accessor :ends_at
3834
+ # Company selling the ticket.
3835
+ attr_accessor :event_company_name
3836
+ # Name of the event.
3837
+ attr_accessor :event_name
3838
+ # Type of the event.
3839
+ attr_accessor :event_type
3840
+ # List of insurances for this event.
3841
+ attr_accessor :insurances
3842
+ # Start timestamp of the event.
3843
+ attr_accessor :starts_at
3844
+ # Name of the venue where the event takes place.
3845
+ attr_accessor :venue_name
3846
+
3847
+ def initialize(
3848
+ access_controlled_venue: nil,
3849
+ address: nil,
3850
+ affiliate_name: nil,
3851
+ ends_at: nil,
3852
+ event_company_name: nil,
3853
+ event_name: nil,
3854
+ event_type: nil,
3855
+ insurances: nil,
3856
+ starts_at: nil,
3857
+ venue_name: nil
3858
+ )
3859
+ @access_controlled_venue = access_controlled_venue
3860
+ @address = address
3861
+ @affiliate_name = affiliate_name
3862
+ @ends_at = ends_at
3863
+ @event_company_name = event_company_name
3864
+ @event_name = event_name
3865
+ @event_type = event_type
3866
+ @insurances = insurances
3867
+ @starts_at = starts_at
3868
+ @venue_name = venue_name
3869
+ end
3870
+ end
3871
+
3872
+ class FerryReservationDetail < ::Stripe::RequestParams
3873
+ class Arrival < ::Stripe::RequestParams
3874
+ class Address < ::Stripe::RequestParams
3875
+ # The city or town.
3876
+ attr_accessor :city
3877
+ # The country in ISO 3166-1 alpha-2 format.
3878
+ attr_accessor :country
3879
+ # The postal code formatted according to country.
3880
+ attr_accessor :postal_code
3881
+ # The state, county, province, or region formatted according to country.
3882
+ attr_accessor :region
3883
+ # Line 1 of the street address.
3884
+ attr_accessor :street_address
3885
+ # Line 2 of the street address.
3886
+ attr_accessor :street_address2
3887
+
3888
+ def initialize(
3889
+ city: nil,
3890
+ country: nil,
3891
+ postal_code: nil,
3892
+ region: nil,
3893
+ street_address: nil,
3894
+ street_address2: nil
3895
+ )
3896
+ @city = city
3897
+ @country = country
3898
+ @postal_code = postal_code
3899
+ @region = region
3900
+ @street_address = street_address
3901
+ @street_address2 = street_address2
3902
+ end
3903
+ end
3904
+ # Address of the arrival location.
3905
+ attr_accessor :address
3906
+ # Identifier name or reference for the arrival location.
3907
+ attr_accessor :arrival_location
3908
+
3909
+ def initialize(address: nil, arrival_location: nil)
3910
+ @address = address
3911
+ @arrival_location = arrival_location
3912
+ end
3913
+ end
3914
+
3915
+ class Departure < ::Stripe::RequestParams
3916
+ class Address < ::Stripe::RequestParams
3917
+ # The city or town.
3918
+ attr_accessor :city
3919
+ # The country in ISO 3166-1 alpha-2 format.
3920
+ attr_accessor :country
3921
+ # The postal code formatted according to country.
3922
+ attr_accessor :postal_code
3923
+ # The state, county, province, or region formatted according to country.
3924
+ attr_accessor :region
3925
+ # Line 1 of the street address.
3926
+ attr_accessor :street_address
3927
+ # Line 2 of the street address.
3928
+ attr_accessor :street_address2
3929
+
3930
+ def initialize(
3931
+ city: nil,
3932
+ country: nil,
3933
+ postal_code: nil,
3934
+ region: nil,
3935
+ street_address: nil,
3936
+ street_address2: nil
3937
+ )
3938
+ @city = city
3939
+ @country = country
3940
+ @postal_code = postal_code
3941
+ @region = region
3942
+ @street_address = street_address
3943
+ @street_address2 = street_address2
3944
+ end
3945
+ end
3946
+ # Address of the departure location.
3947
+ attr_accessor :address
3948
+ # Timestamp of departure.
3949
+ attr_accessor :departs_at
3950
+ # Identifier name or reference for the origin location.
3951
+ attr_accessor :departure_location
3952
+
3953
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3954
+ @address = address
3955
+ @departs_at = departs_at
3956
+ @departure_location = departure_location
3957
+ end
3958
+ end
3959
+
3960
+ class Insurance < ::Stripe::RequestParams
3961
+ # Insurance currency.
3962
+ attr_accessor :currency
3963
+ # Name of the company providing the insurance.
3964
+ attr_accessor :insurance_company_name
3965
+ # Type of insurance.
3966
+ attr_accessor :insurance_type
3967
+ # Price of insurance in cents.
3968
+ attr_accessor :price
3969
+
3970
+ def initialize(
3971
+ currency: nil,
3972
+ insurance_company_name: nil,
3973
+ insurance_type: nil,
3974
+ price: nil
3975
+ )
3976
+ @currency = currency
3977
+ @insurance_company_name = insurance_company_name
3978
+ @insurance_type = insurance_type
3979
+ @price = price
3980
+ end
3981
+ end
3982
+
3983
+ class Passenger < ::Stripe::RequestParams
3984
+ # The family name of the person.
3985
+ attr_accessor :family_name
3986
+ # The given name of the person.
3987
+ attr_accessor :given_name
3988
+
3989
+ def initialize(family_name: nil, given_name: nil)
3990
+ @family_name = family_name
3991
+ @given_name = given_name
3992
+ end
3993
+ end
3994
+ # Name of associated or partner company for the service.
3995
+ attr_accessor :affiliate_name
3996
+ # Arrival details.
3997
+ attr_accessor :arrival
3998
+ # Name of transportation company.
3999
+ attr_accessor :carrier_name
4000
+ # Currency.
4001
+ attr_accessor :currency
4002
+ # Departure details.
4003
+ attr_accessor :departure
4004
+ # List of insurances for this reservation.
4005
+ attr_accessor :insurances
4006
+ # List of passengers that this reservation applies to.
4007
+ attr_accessor :passengers
4008
+ # Price in cents.
4009
+ attr_accessor :price
4010
+ # Ticket class.
4011
+ attr_accessor :ticket_class
4012
+
4013
+ def initialize(
4014
+ affiliate_name: nil,
4015
+ arrival: nil,
4016
+ carrier_name: nil,
4017
+ currency: nil,
4018
+ departure: nil,
4019
+ insurances: nil,
4020
+ passengers: nil,
4021
+ price: nil,
4022
+ ticket_class: nil
4023
+ )
4024
+ @affiliate_name = affiliate_name
4025
+ @arrival = arrival
4026
+ @carrier_name = carrier_name
4027
+ @currency = currency
4028
+ @departure = departure
4029
+ @insurances = insurances
4030
+ @passengers = passengers
4031
+ @price = price
4032
+ @ticket_class = ticket_class
4033
+ end
4034
+ end
4035
+
4036
+ class Insurance < ::Stripe::RequestParams
4037
+ # Insurance currency.
4038
+ attr_accessor :currency
4039
+ # Name of the company providing the insurance.
4040
+ attr_accessor :insurance_company_name
4041
+ # Type of insurance
4042
+ attr_accessor :insurance_type
4043
+ # Price of insurance in cents.
4044
+ attr_accessor :price
4045
+
4046
+ def initialize(
4047
+ currency: nil,
4048
+ insurance_company_name: nil,
4049
+ insurance_type: nil,
4050
+ price: nil
4051
+ )
4052
+ @currency = currency
4053
+ @insurance_company_name = insurance_company_name
4054
+ @insurance_type = insurance_type
4055
+ @price = price
4056
+ end
4057
+ end
4058
+
4059
+ class MarketplaceSeller < ::Stripe::RequestParams
4060
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
4061
+ # The city or town.
4062
+ attr_accessor :city
4063
+ # The country in ISO 3166-1 alpha-2 format.
4064
+ attr_accessor :country
4065
+ # The postal code formatted according to country.
4066
+ attr_accessor :postal_code
4067
+ # The state, county, province, or region formatted according to country.
4068
+ attr_accessor :region
4069
+ # Line 1 of the street address.
4070
+ attr_accessor :street_address
4071
+ # Line 2 of the street address.
4072
+ attr_accessor :street_address2
4073
+
4074
+ def initialize(
4075
+ city: nil,
4076
+ country: nil,
4077
+ postal_code: nil,
4078
+ region: nil,
4079
+ street_address: nil,
4080
+ street_address2: nil
4081
+ )
4082
+ @city = city
4083
+ @country = country
4084
+ @postal_code = postal_code
4085
+ @region = region
4086
+ @street_address = street_address
4087
+ @street_address2 = street_address2
4088
+ end
4089
+ end
4090
+ # The references to line items for purchases with multiple associated sub-sellers.
4091
+ attr_accessor :line_item_references
4092
+ # The address of the selling or delivering merchant.
4093
+ attr_accessor :marketplace_seller_address
4094
+ # The name of the marketplace seller.
4095
+ attr_accessor :marketplace_seller_name
4096
+ # The unique identifier for the marketplace seller.
4097
+ attr_accessor :marketplace_seller_reference
4098
+ # The number of transactions the sub-seller completed in the last 12 months.
4099
+ attr_accessor :number_of_transactions
4100
+ # The category of the product.
4101
+ attr_accessor :product_category
4102
+ # The date when the seller's account with the marketplace was last logged in.
4103
+ attr_accessor :seller_last_login_at
4104
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
4105
+ attr_accessor :seller_rating
4106
+ # The date when the seller's account with the marketplace was created.
4107
+ attr_accessor :seller_registered_at
4108
+ # The date when the seller's account with the marketplace was last updated.
4109
+ attr_accessor :seller_updated_at
4110
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
4111
+ attr_accessor :shipping_references
4112
+ # 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.
4113
+ attr_accessor :volume_of_transactions
4114
+
4115
+ def initialize(
4116
+ line_item_references: nil,
4117
+ marketplace_seller_address: nil,
4118
+ marketplace_seller_name: nil,
4119
+ marketplace_seller_reference: nil,
4120
+ number_of_transactions: nil,
4121
+ product_category: nil,
4122
+ seller_last_login_at: nil,
4123
+ seller_rating: nil,
4124
+ seller_registered_at: nil,
4125
+ seller_updated_at: nil,
4126
+ shipping_references: nil,
4127
+ volume_of_transactions: nil
4128
+ )
4129
+ @line_item_references = line_item_references
4130
+ @marketplace_seller_address = marketplace_seller_address
4131
+ @marketplace_seller_name = marketplace_seller_name
4132
+ @marketplace_seller_reference = marketplace_seller_reference
4133
+ @number_of_transactions = number_of_transactions
4134
+ @product_category = product_category
4135
+ @seller_last_login_at = seller_last_login_at
4136
+ @seller_rating = seller_rating
4137
+ @seller_registered_at = seller_registered_at
4138
+ @seller_updated_at = seller_updated_at
4139
+ @shipping_references = shipping_references
4140
+ @volume_of_transactions = volume_of_transactions
4141
+ end
4142
+ end
4143
+
4144
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4145
+ class Arrival < ::Stripe::RequestParams
4146
+ class Address < ::Stripe::RequestParams
4147
+ # The city or town.
4148
+ attr_accessor :city
4149
+ # The country in ISO 3166-1 alpha-2 format.
4150
+ attr_accessor :country
4151
+ # The postal code formatted according to country.
4152
+ attr_accessor :postal_code
4153
+ # The state, county, province, or region formatted according to country.
4154
+ attr_accessor :region
4155
+ # Line 1 of the street address.
4156
+ attr_accessor :street_address
4157
+ # Line 2 of the street address.
4158
+ attr_accessor :street_address2
4159
+
4160
+ def initialize(
4161
+ city: nil,
4162
+ country: nil,
4163
+ postal_code: nil,
4164
+ region: nil,
4165
+ street_address: nil,
4166
+ street_address2: nil
4167
+ )
4168
+ @city = city
4169
+ @country = country
4170
+ @postal_code = postal_code
4171
+ @region = region
4172
+ @street_address = street_address
4173
+ @street_address2 = street_address2
4174
+ end
4175
+ end
4176
+ # Address of the arrival location.
4177
+ attr_accessor :address
4178
+ # Identifier name or reference for the arrival location.
4179
+ attr_accessor :arrival_location
4180
+
4181
+ def initialize(address: nil, arrival_location: nil)
4182
+ @address = address
4183
+ @arrival_location = arrival_location
4184
+ end
4185
+ end
4186
+
4187
+ class Departure < ::Stripe::RequestParams
4188
+ class Address < ::Stripe::RequestParams
4189
+ # The city or town.
4190
+ attr_accessor :city
4191
+ # The country in ISO 3166-1 alpha-2 format.
4192
+ attr_accessor :country
4193
+ # The postal code formatted according to country.
4194
+ attr_accessor :postal_code
4195
+ # The state, county, province, or region formatted according to country.
4196
+ attr_accessor :region
4197
+ # Line 1 of the street address.
4198
+ attr_accessor :street_address
4199
+ # Line 2 of the street address.
4200
+ attr_accessor :street_address2
4201
+
4202
+ def initialize(
4203
+ city: nil,
4204
+ country: nil,
4205
+ postal_code: nil,
4206
+ region: nil,
4207
+ street_address: nil,
4208
+ street_address2: nil
4209
+ )
4210
+ @city = city
4211
+ @country = country
4212
+ @postal_code = postal_code
4213
+ @region = region
4214
+ @street_address = street_address
4215
+ @street_address2 = street_address2
4216
+ end
4217
+ end
4218
+ # Address of the departure location.
4219
+ attr_accessor :address
4220
+ # Timestamp of departure.
4221
+ attr_accessor :departs_at
4222
+ # Identifier name or reference for the origin location.
4223
+ attr_accessor :departure_location
4224
+
4225
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4226
+ @address = address
4227
+ @departs_at = departs_at
4228
+ @departure_location = departure_location
4229
+ end
4230
+ end
4231
+
4232
+ class Insurance < ::Stripe::RequestParams
4233
+ # Insurance currency.
4234
+ attr_accessor :currency
4235
+ # Name of the company providing the insurance.
4236
+ attr_accessor :insurance_company_name
4237
+ # Type of insurance.
4238
+ attr_accessor :insurance_type
4239
+ # Price of insurance in cents.
4240
+ attr_accessor :price
4241
+
4242
+ def initialize(
4243
+ currency: nil,
4244
+ insurance_company_name: nil,
4245
+ insurance_type: nil,
4246
+ price: nil
4247
+ )
4248
+ @currency = currency
4249
+ @insurance_company_name = insurance_company_name
4250
+ @insurance_type = insurance_type
4251
+ @price = price
4252
+ end
4253
+ end
4254
+
4255
+ class Passenger < ::Stripe::RequestParams
4256
+ # The family name of the person.
4257
+ attr_accessor :family_name
4258
+ # The given name of the person.
4259
+ attr_accessor :given_name
4260
+
4261
+ def initialize(family_name: nil, given_name: nil)
4262
+ @family_name = family_name
4263
+ @given_name = given_name
4264
+ end
4265
+ end
4266
+ # Name of associated or partner company for the service.
4267
+ attr_accessor :affiliate_name
4268
+ # Arrival details.
4269
+ attr_accessor :arrival
4270
+ # Name of transportation company.
4271
+ attr_accessor :carrier_name
4272
+ # Currency.
4273
+ attr_accessor :currency
4274
+ # Departure details.
4275
+ attr_accessor :departure
4276
+ # List of insurances for this reservation.
4277
+ attr_accessor :insurances
4278
+ # List of passengers that this reservation applies to.
4279
+ attr_accessor :passengers
4280
+ # Price in cents.
4281
+ attr_accessor :price
4282
+ # Ticket class.
4283
+ attr_accessor :ticket_class
4284
+
4285
+ def initialize(
4286
+ affiliate_name: nil,
4287
+ arrival: nil,
4288
+ carrier_name: nil,
4289
+ currency: nil,
4290
+ departure: nil,
4291
+ insurances: nil,
4292
+ passengers: nil,
4293
+ price: nil,
4294
+ ticket_class: nil
4295
+ )
4296
+ @affiliate_name = affiliate_name
4297
+ @arrival = arrival
4298
+ @carrier_name = carrier_name
4299
+ @currency = currency
4300
+ @departure = departure
4301
+ @insurances = insurances
4302
+ @passengers = passengers
4303
+ @price = price
4304
+ @ticket_class = ticket_class
4305
+ end
4306
+ end
4307
+
4308
+ class TrainReservationDetail < ::Stripe::RequestParams
4309
+ class Arrival < ::Stripe::RequestParams
4310
+ class Address < ::Stripe::RequestParams
4311
+ # The city or town.
4312
+ attr_accessor :city
4313
+ # The country in ISO 3166-1 alpha-2 format.
4314
+ attr_accessor :country
4315
+ # The postal code formatted according to country.
4316
+ attr_accessor :postal_code
4317
+ # The state, county, province, or region formatted according to country.
4318
+ attr_accessor :region
4319
+ # Line 1 of the street address.
4320
+ attr_accessor :street_address
4321
+ # Line 2 of the street address.
4322
+ attr_accessor :street_address2
4323
+
4324
+ def initialize(
4325
+ city: nil,
4326
+ country: nil,
4327
+ postal_code: nil,
4328
+ region: nil,
4329
+ street_address: nil,
4330
+ street_address2: nil
4331
+ )
4332
+ @city = city
4333
+ @country = country
4334
+ @postal_code = postal_code
4335
+ @region = region
4336
+ @street_address = street_address
4337
+ @street_address2 = street_address2
4338
+ end
4339
+ end
4340
+ # Address of the arrival location.
4341
+ attr_accessor :address
4342
+ # Identifier name or reference for the arrival location.
4343
+ attr_accessor :arrival_location
4344
+
4345
+ def initialize(address: nil, arrival_location: nil)
4346
+ @address = address
4347
+ @arrival_location = arrival_location
4348
+ end
4349
+ end
4350
+
4351
+ class Departure < ::Stripe::RequestParams
4352
+ class Address < ::Stripe::RequestParams
4353
+ # The city or town.
4354
+ attr_accessor :city
4355
+ # The country in ISO 3166-1 alpha-2 format.
4356
+ attr_accessor :country
4357
+ # The postal code formatted according to country.
4358
+ attr_accessor :postal_code
4359
+ # The state, county, province, or region formatted according to country.
4360
+ attr_accessor :region
4361
+ # Line 1 of the street address.
4362
+ attr_accessor :street_address
4363
+ # Line 2 of the street address.
4364
+ attr_accessor :street_address2
4365
+
4366
+ def initialize(
4367
+ city: nil,
4368
+ country: nil,
4369
+ postal_code: nil,
4370
+ region: nil,
4371
+ street_address: nil,
4372
+ street_address2: nil
4373
+ )
4374
+ @city = city
4375
+ @country = country
4376
+ @postal_code = postal_code
4377
+ @region = region
4378
+ @street_address = street_address
4379
+ @street_address2 = street_address2
4380
+ end
4381
+ end
4382
+ # Address of the departure location.
4383
+ attr_accessor :address
4384
+ # Timestamp of departure.
4385
+ attr_accessor :departs_at
4386
+ # Identifier name or reference for the origin location.
4387
+ attr_accessor :departure_location
4388
+
4389
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4390
+ @address = address
4391
+ @departs_at = departs_at
4392
+ @departure_location = departure_location
4393
+ end
4394
+ end
4395
+
4396
+ class Insurance < ::Stripe::RequestParams
4397
+ # Insurance currency.
4398
+ attr_accessor :currency
4399
+ # Name of the company providing the insurance.
4400
+ attr_accessor :insurance_company_name
4401
+ # Type of insurance.
4402
+ attr_accessor :insurance_type
4403
+ # Price of insurance in cents.
4404
+ attr_accessor :price
4405
+
4406
+ def initialize(
4407
+ currency: nil,
4408
+ insurance_company_name: nil,
4409
+ insurance_type: nil,
4410
+ price: nil
4411
+ )
4412
+ @currency = currency
4413
+ @insurance_company_name = insurance_company_name
4414
+ @insurance_type = insurance_type
4415
+ @price = price
4416
+ end
4417
+ end
4418
+
4419
+ class Passenger < ::Stripe::RequestParams
4420
+ # The family name of the person.
4421
+ attr_accessor :family_name
4422
+ # The given name of the person.
4423
+ attr_accessor :given_name
4424
+
4425
+ def initialize(family_name: nil, given_name: nil)
4426
+ @family_name = family_name
4427
+ @given_name = given_name
4428
+ end
4429
+ end
4430
+ # Name of associated or partner company for the service.
4431
+ attr_accessor :affiliate_name
4432
+ # Arrival details.
4433
+ attr_accessor :arrival
4434
+ # Name of transportation company.
4435
+ attr_accessor :carrier_name
4436
+ # Currency.
4437
+ attr_accessor :currency
4438
+ # Departure details.
4439
+ attr_accessor :departure
4440
+ # List of insurances for this reservation.
4441
+ attr_accessor :insurances
4442
+ # List of passengers that this reservation applies to.
4443
+ attr_accessor :passengers
4444
+ # Price in cents.
4445
+ attr_accessor :price
4446
+ # Ticket class.
4447
+ attr_accessor :ticket_class
4448
+
4449
+ def initialize(
4450
+ affiliate_name: nil,
4451
+ arrival: nil,
4452
+ carrier_name: nil,
4453
+ currency: nil,
4454
+ departure: nil,
4455
+ insurances: nil,
4456
+ passengers: nil,
4457
+ price: nil,
4458
+ ticket_class: nil
4459
+ )
4460
+ @affiliate_name = affiliate_name
4461
+ @arrival = arrival
4462
+ @carrier_name = carrier_name
4463
+ @currency = currency
4464
+ @departure = departure
4465
+ @insurances = insurances
4466
+ @passengers = passengers
4467
+ @price = price
4468
+ @ticket_class = ticket_class
4469
+ end
4470
+ end
4471
+
4472
+ class Voucher < ::Stripe::RequestParams
4473
+ # Name of associated or partner company for this voucher.
4474
+ attr_accessor :affiliate_name
4475
+ # The voucher validity end time.
4476
+ attr_accessor :ends_at
4477
+ # The voucher validity start time.
4478
+ attr_accessor :starts_at
4479
+ # The issuer or provider of this voucher.
4480
+ attr_accessor :voucher_company
4481
+ # The name or reference to identify the voucher.
4482
+ attr_accessor :voucher_name
4483
+ # The type of this voucher.
4484
+ attr_accessor :voucher_type
4485
+
4486
+ def initialize(
4487
+ affiliate_name: nil,
4488
+ ends_at: nil,
4489
+ starts_at: nil,
4490
+ voucher_company: nil,
4491
+ voucher_name: nil,
4492
+ voucher_type: nil
4493
+ )
4494
+ @affiliate_name = affiliate_name
4495
+ @ends_at = ends_at
4496
+ @starts_at = starts_at
4497
+ @voucher_company = voucher_company
4498
+ @voucher_name = voucher_name
4499
+ @voucher_type = voucher_type
4500
+ end
4501
+ end
4502
+ # Supplementary bus reservation details.
4503
+ attr_accessor :bus_reservation_details
4504
+ # Supplementary event reservation details.
4505
+ attr_accessor :event_reservation_details
4506
+ # Supplementary ferry reservation details.
4507
+ attr_accessor :ferry_reservation_details
4508
+ # Supplementary insurance details.
4509
+ attr_accessor :insurances
4510
+ # Supplementary marketplace seller details.
4511
+ attr_accessor :marketplace_sellers
4512
+ # Supplementary round trip reservation details.
4513
+ attr_accessor :round_trip_reservation_details
4514
+ # Supplementary train reservation details.
4515
+ attr_accessor :train_reservation_details
4516
+ # Voucher details, such as a gift card or discount code.
4517
+ attr_accessor :vouchers
4518
+
4519
+ def initialize(
4520
+ bus_reservation_details: nil,
4521
+ event_reservation_details: nil,
4522
+ ferry_reservation_details: nil,
4523
+ insurances: nil,
4524
+ marketplace_sellers: nil,
4525
+ round_trip_reservation_details: nil,
4526
+ train_reservation_details: nil,
4527
+ vouchers: nil
4528
+ )
4529
+ @bus_reservation_details = bus_reservation_details
4530
+ @event_reservation_details = event_reservation_details
4531
+ @ferry_reservation_details = ferry_reservation_details
4532
+ @insurances = insurances
4533
+ @marketplace_sellers = marketplace_sellers
4534
+ @round_trip_reservation_details = round_trip_reservation_details
4535
+ @train_reservation_details = train_reservation_details
4536
+ @vouchers = vouchers
4537
+ end
4538
+ end
1778
4539
  # Controls when the funds are captured from the customer's account.
1779
4540
  #
1780
4541
  # 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.
@@ -1797,19 +4558,23 @@ module Stripe
1797
4558
  attr_accessor :setup_future_usage
1798
4559
  # Subscription details if setting up or charging a subscription.
1799
4560
  attr_accessor :subscriptions
4561
+ # Supplementary Purchase Data for the corresponding Klarna payment
4562
+ attr_accessor :supplementary_purchase_data
1800
4563
 
1801
4564
  def initialize(
1802
4565
  capture_method: nil,
1803
4566
  on_demand: nil,
1804
4567
  preferred_locale: nil,
1805
4568
  setup_future_usage: nil,
1806
- subscriptions: nil
4569
+ subscriptions: nil,
4570
+ supplementary_purchase_data: nil
1807
4571
  )
1808
4572
  @capture_method = capture_method
1809
4573
  @on_demand = on_demand
1810
4574
  @preferred_locale = preferred_locale
1811
4575
  @setup_future_usage = setup_future_usage
1812
4576
  @subscriptions = subscriptions
4577
+ @supplementary_purchase_data = supplementary_purchase_data
1813
4578
  end
1814
4579
  end
1815
4580
 
@@ -2079,12 +4844,65 @@ module Stripe
2079
4844
  end
2080
4845
 
2081
4846
  class Paypal < ::Stripe::RequestParams
4847
+ class LineItem < ::Stripe::RequestParams
4848
+ class Tax < ::Stripe::RequestParams
4849
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4850
+ attr_accessor :amount
4851
+ # The tax behavior for the line item.
4852
+ attr_accessor :behavior
4853
+
4854
+ def initialize(amount: nil, behavior: nil)
4855
+ @amount = amount
4856
+ @behavior = behavior
4857
+ end
4858
+ end
4859
+ # Type of the line item.
4860
+ attr_accessor :category
4861
+ # Description of the line item.
4862
+ attr_accessor :description
4863
+ # Descriptive name of the line item.
4864
+ attr_accessor :name
4865
+ # Quantity of the line item. Must be a positive number.
4866
+ attr_accessor :quantity
4867
+ # Client facing stock keeping unit, article number or similar.
4868
+ attr_accessor :sku
4869
+ # The Stripe account ID of the connected account that sells the item.
4870
+ attr_accessor :sold_by
4871
+ # The tax information for the line item.
4872
+ attr_accessor :tax
4873
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4874
+ attr_accessor :unit_amount
4875
+
4876
+ def initialize(
4877
+ category: nil,
4878
+ description: nil,
4879
+ name: nil,
4880
+ quantity: nil,
4881
+ sku: nil,
4882
+ sold_by: nil,
4883
+ tax: nil,
4884
+ unit_amount: nil
4885
+ )
4886
+ @category = category
4887
+ @description = description
4888
+ @name = name
4889
+ @quantity = quantity
4890
+ @sku = sku
4891
+ @sold_by = sold_by
4892
+ @tax = tax
4893
+ @unit_amount = unit_amount
4894
+ end
4895
+ end
2082
4896
  # Controls when the funds will be captured from the customer's account.
2083
4897
  attr_accessor :capture_method
4898
+ # The line items purchased by the customer.
4899
+ attr_accessor :line_items
2084
4900
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2085
4901
  attr_accessor :preferred_locale
2086
4902
  # 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.
2087
4903
  attr_accessor :reference
4904
+ # 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.
4905
+ attr_accessor :reference_id
2088
4906
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2089
4907
  attr_accessor :risk_correlation_id
2090
4908
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2097,19 +4915,27 @@ module Stripe
2097
4915
  #
2098
4916
  # 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`.
2099
4917
  attr_accessor :setup_future_usage
4918
+ # 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.
4919
+ attr_accessor :subsellers
2100
4920
 
2101
4921
  def initialize(
2102
4922
  capture_method: nil,
4923
+ line_items: nil,
2103
4924
  preferred_locale: nil,
2104
4925
  reference: nil,
4926
+ reference_id: nil,
2105
4927
  risk_correlation_id: nil,
2106
- setup_future_usage: nil
4928
+ setup_future_usage: nil,
4929
+ subsellers: nil
2107
4930
  )
2108
4931
  @capture_method = capture_method
4932
+ @line_items = line_items
2109
4933
  @preferred_locale = preferred_locale
2110
4934
  @reference = reference
4935
+ @reference_id = reference_id
2111
4936
  @risk_correlation_id = risk_correlation_id
2112
4937
  @setup_future_usage = setup_future_usage
4938
+ @subsellers = subsellers
2113
4939
  end
2114
4940
  end
2115
4941
 
@@ -2253,6 +5079,25 @@ module Stripe
2253
5079
  end
2254
5080
  end
2255
5081
 
5082
+ class Qris < ::Stripe::RequestParams
5083
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5084
+ #
5085
+ # 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.
5086
+ #
5087
+ # 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.
5088
+ #
5089
+ # 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).
5090
+ #
5091
+ # 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`.
5092
+ attr_accessor :setup_future_usage
5093
+
5094
+ def initialize(setup_future_usage: nil)
5095
+ @setup_future_usage = setup_future_usage
5096
+ end
5097
+ end
5098
+
5099
+ class Rechnung < ::Stripe::RequestParams; end
5100
+
2256
5101
  class RevolutPay < ::Stripe::RequestParams
2257
5102
  # Controls when the funds are captured from the customer's account.
2258
5103
  #
@@ -2387,6 +5232,23 @@ module Stripe
2387
5232
  end
2388
5233
  end
2389
5234
 
5235
+ class Shopeepay < ::Stripe::RequestParams
5236
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5237
+ #
5238
+ # 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.
5239
+ #
5240
+ # 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.
5241
+ #
5242
+ # 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).
5243
+ #
5244
+ # 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`.
5245
+ attr_accessor :setup_future_usage
5246
+
5247
+ def initialize(setup_future_usage: nil)
5248
+ @setup_future_usage = setup_future_usage
5249
+ end
5250
+ end
5251
+
2390
5252
  class Sofort < ::Stripe::RequestParams
2391
5253
  # Language shown to the payer on redirect.
2392
5254
  attr_accessor :preferred_language
@@ -2407,6 +5269,23 @@ module Stripe
2407
5269
  end
2408
5270
  end
2409
5271
 
5272
+ class StripeBalance < ::Stripe::RequestParams
5273
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5274
+ #
5275
+ # 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.
5276
+ #
5277
+ # 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.
5278
+ #
5279
+ # 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).
5280
+ #
5281
+ # 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`.
5282
+ attr_accessor :setup_future_usage
5283
+
5284
+ def initialize(setup_future_usage: nil)
5285
+ @setup_future_usage = setup_future_usage
5286
+ end
5287
+ end
5288
+
2410
5289
  class Sunbit < ::Stripe::RequestParams
2411
5290
  # Controls when the funds are captured from the customer's account.
2412
5291
  #
@@ -2500,13 +5379,27 @@ module Stripe
2500
5379
  class Filters < ::Stripe::RequestParams
2501
5380
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2502
5381
  attr_accessor :account_subcategories
5382
+ # ID of the institution to use to filter for selectable accounts.
5383
+ attr_accessor :institution
2503
5384
 
2504
- def initialize(account_subcategories: nil)
5385
+ def initialize(account_subcategories: nil, institution: nil)
2505
5386
  @account_subcategories = account_subcategories
5387
+ @institution = institution
5388
+ end
5389
+ end
5390
+
5391
+ class ManualEntry < ::Stripe::RequestParams
5392
+ # Settings for configuring manual entry of account details.
5393
+ attr_accessor :mode
5394
+
5395
+ def initialize(mode: nil)
5396
+ @mode = mode
2506
5397
  end
2507
5398
  end
2508
5399
  # Provide filters for the linked accounts that the customer can select for the payment method.
2509
5400
  attr_accessor :filters
5401
+ # Customize manual entry behavior
5402
+ attr_accessor :manual_entry
2510
5403
  # 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`.
2511
5404
  attr_accessor :permissions
2512
5405
  # List of data features that you would like to retrieve upon account creation.
@@ -2514,8 +5407,15 @@ module Stripe
2514
5407
  # 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.
2515
5408
  attr_accessor :return_url
2516
5409
 
2517
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5410
+ def initialize(
5411
+ filters: nil,
5412
+ manual_entry: nil,
5413
+ permissions: nil,
5414
+ prefetch: nil,
5415
+ return_url: nil
5416
+ )
2518
5417
  @filters = filters
5418
+ @manual_entry = manual_entry
2519
5419
  @permissions = permissions
2520
5420
  @prefetch = prefetch
2521
5421
  @return_url = return_url
@@ -2604,6 +5504,23 @@ module Stripe
2604
5504
  end
2605
5505
  end
2606
5506
 
5507
+ class Wero < ::Stripe::RequestParams
5508
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5509
+ #
5510
+ # 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.
5511
+ #
5512
+ # 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.
5513
+ #
5514
+ # 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).
5515
+ #
5516
+ # 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`.
5517
+ attr_accessor :setup_future_usage
5518
+
5519
+ def initialize(setup_future_usage: nil)
5520
+ @setup_future_usage = setup_future_usage
5521
+ end
5522
+ end
5523
+
2607
5524
  class Zip < ::Stripe::RequestParams
2608
5525
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2609
5526
  #
@@ -2662,8 +5579,12 @@ module Stripe
2662
5579
  attr_accessor :fpx
2663
5580
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2664
5581
  attr_accessor :giropay
5582
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5583
+ attr_accessor :gopay
2665
5584
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2666
5585
  attr_accessor :grabpay
5586
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5587
+ attr_accessor :id_bank_transfer
2667
5588
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2668
5589
  attr_accessor :ideal
2669
5590
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2708,6 +5629,10 @@ module Stripe
2708
5629
  attr_accessor :pix
2709
5630
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2710
5631
  attr_accessor :promptpay
5632
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5633
+ attr_accessor :qris
5634
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5635
+ attr_accessor :rechnung
2711
5636
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2712
5637
  attr_accessor :revolut_pay
2713
5638
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2720,8 +5645,12 @@ module Stripe
2720
5645
  attr_accessor :sepa_debit
2721
5646
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
2722
5647
  attr_accessor :sequra
5648
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5649
+ attr_accessor :shopeepay
2723
5650
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2724
5651
  attr_accessor :sofort
5652
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5653
+ attr_accessor :stripe_balance
2725
5654
  # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
2726
5655
  attr_accessor :sunbit
2727
5656
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
@@ -2734,6 +5663,8 @@ module Stripe
2734
5663
  attr_accessor :us_bank_account
2735
5664
  # If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
2736
5665
  attr_accessor :wechat_pay
5666
+ # If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
5667
+ attr_accessor :wero
2737
5668
  # If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
2738
5669
  attr_accessor :zip
2739
5670
 
@@ -2759,7 +5690,9 @@ module Stripe
2759
5690
  eps: nil,
2760
5691
  fpx: nil,
2761
5692
  giropay: nil,
5693
+ gopay: nil,
2762
5694
  grabpay: nil,
5695
+ id_bank_transfer: nil,
2763
5696
  ideal: nil,
2764
5697
  interac_present: nil,
2765
5698
  kakao_pay: nil,
@@ -2782,19 +5715,24 @@ module Stripe
2782
5715
  payto: nil,
2783
5716
  pix: nil,
2784
5717
  promptpay: nil,
5718
+ qris: nil,
5719
+ rechnung: nil,
2785
5720
  revolut_pay: nil,
2786
5721
  samsung_pay: nil,
2787
5722
  satispay: nil,
2788
5723
  scalapay: nil,
2789
5724
  sepa_debit: nil,
2790
5725
  sequra: nil,
5726
+ shopeepay: nil,
2791
5727
  sofort: nil,
5728
+ stripe_balance: nil,
2792
5729
  sunbit: nil,
2793
5730
  swish: nil,
2794
5731
  twint: nil,
2795
5732
  upi: nil,
2796
5733
  us_bank_account: nil,
2797
5734
  wechat_pay: nil,
5735
+ wero: nil,
2798
5736
  zip: nil
2799
5737
  )
2800
5738
  @acss_debit = acss_debit
@@ -2818,7 +5756,9 @@ module Stripe
2818
5756
  @eps = eps
2819
5757
  @fpx = fpx
2820
5758
  @giropay = giropay
5759
+ @gopay = gopay
2821
5760
  @grabpay = grabpay
5761
+ @id_bank_transfer = id_bank_transfer
2822
5762
  @ideal = ideal
2823
5763
  @interac_present = interac_present
2824
5764
  @kakao_pay = kakao_pay
@@ -2841,19 +5781,24 @@ module Stripe
2841
5781
  @payto = payto
2842
5782
  @pix = pix
2843
5783
  @promptpay = promptpay
5784
+ @qris = qris
5785
+ @rechnung = rechnung
2844
5786
  @revolut_pay = revolut_pay
2845
5787
  @samsung_pay = samsung_pay
2846
5788
  @satispay = satispay
2847
5789
  @scalapay = scalapay
2848
5790
  @sepa_debit = sepa_debit
2849
5791
  @sequra = sequra
5792
+ @shopeepay = shopeepay
2850
5793
  @sofort = sofort
5794
+ @stripe_balance = stripe_balance
2851
5795
  @sunbit = sunbit
2852
5796
  @swish = swish
2853
5797
  @twint = twint
2854
5798
  @upi = upi
2855
5799
  @us_bank_account = us_bank_account
2856
5800
  @wechat_pay = wechat_pay
5801
+ @wero = wero
2857
5802
  @zip = zip
2858
5803
  end
2859
5804
  end
@@ -2926,6 +5871,8 @@ module Stripe
2926
5871
  attr_accessor :amount_details
2927
5872
  # Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
2928
5873
  attr_accessor :amount_to_confirm
5874
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
5875
+ attr_accessor :application_fee_amount
2929
5876
  # Controls when the funds will be captured from the customer's account.
2930
5877
  attr_accessor :capture_method
2931
5878
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -2938,6 +5885,8 @@ module Stripe
2938
5885
  attr_accessor :excluded_payment_method_types
2939
5886
  # Specifies which fields in the response should be expanded.
2940
5887
  attr_accessor :expand
5888
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5889
+ attr_accessor :fx_quote
2941
5890
  # Automations to be run during the PaymentIntent lifecycle
2942
5891
  attr_accessor :hooks
2943
5892
  # ID of the mandate that's used for this payment.
@@ -2984,11 +5933,13 @@ module Stripe
2984
5933
  allowed_payment_method_types: nil,
2985
5934
  amount_details: nil,
2986
5935
  amount_to_confirm: nil,
5936
+ application_fee_amount: nil,
2987
5937
  capture_method: nil,
2988
5938
  confirmation_token: nil,
2989
5939
  error_on_requires_action: nil,
2990
5940
  excluded_payment_method_types: nil,
2991
5941
  expand: nil,
5942
+ fx_quote: nil,
2992
5943
  hooks: nil,
2993
5944
  mandate: nil,
2994
5945
  mandate_data: nil,
@@ -3007,11 +5958,13 @@ module Stripe
3007
5958
  @allowed_payment_method_types = allowed_payment_method_types
3008
5959
  @amount_details = amount_details
3009
5960
  @amount_to_confirm = amount_to_confirm
5961
+ @application_fee_amount = application_fee_amount
3010
5962
  @capture_method = capture_method
3011
5963
  @confirmation_token = confirmation_token
3012
5964
  @error_on_requires_action = error_on_requires_action
3013
5965
  @excluded_payment_method_types = excluded_payment_method_types
3014
5966
  @expand = expand
5967
+ @fx_quote = fx_quote
3015
5968
  @hooks = hooks
3016
5969
  @mandate = mandate
3017
5970
  @mandate_data = mandate_data