stripe 18.0.0 → 18.1.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 (487) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +209 -0
  6. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  7. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  20. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  21. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  22. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  25. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_updated_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_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  59. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  60. data/lib/stripe/object_types.rb +54 -0
  61. data/lib/stripe/params/account_create_params.rb +317 -1
  62. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  63. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  64. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  65. data/lib/stripe/params/account_session_create_params.rb +226 -1
  66. data/lib/stripe/params/account_update_params.rb +279 -0
  67. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  68. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
  69. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  70. data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
  71. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  72. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  73. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  74. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  75. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  76. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  77. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  78. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  79. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  80. data/lib/stripe/params/charge_update_params.rb +1648 -0
  81. data/lib/stripe/params/checkout/session_create_params.rb +193 -3
  82. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  83. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  84. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  85. data/lib/stripe/params/coupon_create_params.rb +17 -1
  86. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  87. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  88. data/lib/stripe/params/dispute_update_params.rb +10 -1
  89. data/lib/stripe/params/external_account_create_params.rb +134 -0
  90. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  91. data/lib/stripe/params/external_account_list_params.rb +25 -0
  92. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  93. data/lib/stripe/params/external_account_update_params.rb +91 -0
  94. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  95. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  96. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  97. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  98. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  99. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  100. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  101. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  102. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  103. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  104. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  105. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  106. data/lib/stripe/params/invoice_create_params.rb +112 -2
  107. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  108. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  109. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  110. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  111. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  112. data/lib/stripe/params/invoice_list_params.rb +4 -0
  113. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  114. data/lib/stripe/params/invoice_update_params.rb +108 -2
  115. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  116. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  117. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  118. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  119. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  120. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  121. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  122. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  123. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  124. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  125. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  126. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  127. data/lib/stripe/params/mandate_list_params.rb +39 -0
  128. data/lib/stripe/params/margin_create_params.rb +25 -0
  129. data/lib/stripe/params/margin_list_params.rb +25 -0
  130. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  131. data/lib/stripe/params/margin_update_params.rb +22 -0
  132. data/lib/stripe/params/order_cancel_params.rb +13 -0
  133. data/lib/stripe/params/order_create_params.rb +2061 -0
  134. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  135. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  136. data/lib/stripe/params/order_list_params.rb +25 -0
  137. data/lib/stripe/params/order_reopen_params.rb +13 -0
  138. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  139. data/lib/stripe/params/order_submit_params.rb +16 -0
  140. data/lib/stripe/params/order_update_params.rb +2065 -0
  141. data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
  142. data/lib/stripe/params/payment_intent_confirm_params.rb +3134 -100
  143. data/lib/stripe/params/payment_intent_create_params.rb +3126 -84
  144. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  145. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
  146. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  147. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  148. data/lib/stripe/params/payment_intent_update_params.rb +3158 -85
  149. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  150. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  151. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  152. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  153. data/lib/stripe/params/payment_method_list_params.rb +8 -0
  154. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  155. data/lib/stripe/params/price_update_params.rb +19 -0
  156. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  157. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  158. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  159. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  160. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  161. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  162. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  163. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  164. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  165. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  166. data/lib/stripe/params/quote_create_params.rb +805 -3
  167. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  168. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  169. data/lib/stripe/params/quote_list_params.rb +8 -0
  170. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  171. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  172. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  173. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  174. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  175. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  176. data/lib/stripe/params/quote_update_params.rb +813 -4
  177. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  178. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  179. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  180. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  181. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  182. data/lib/stripe/params/subscription_create_params.rb +259 -5
  183. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  184. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  185. data/lib/stripe/params/subscription_list_params.rb +4 -0
  186. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  187. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  188. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  189. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  190. data/lib/stripe/params/subscription_update_params.rb +238 -4
  191. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  192. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  193. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  194. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  195. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  196. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  197. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  198. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  199. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  200. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  201. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  202. data/lib/stripe/params/transfer_create_params.rb +4 -0
  203. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  204. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  205. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  206. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  207. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  208. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  209. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  210. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  211. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  212. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  213. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  214. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  215. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  216. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  217. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  218. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  219. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  220. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  221. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  222. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  223. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  224. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  225. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  226. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  227. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  228. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  229. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  230. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  231. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  232. data/lib/stripe/params/v2/core/account_create_params.rb +2341 -0
  233. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  234. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  235. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  236. data/lib/stripe/params/v2/core/account_token_create_params.rb +1001 -0
  237. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  238. data/lib/stripe/params/v2/core/account_update_params.rb +2387 -0
  239. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -0
  240. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  241. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  242. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  243. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  244. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  245. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
  246. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  247. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  248. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  249. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  250. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  251. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  252. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  253. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  254. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  255. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  256. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  257. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  258. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  259. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  260. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  261. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  262. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  263. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  264. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  266. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  267. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  268. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  269. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  270. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  271. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  272. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  273. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
  274. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  275. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  276. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  277. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  278. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  279. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  280. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  281. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  282. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  283. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  284. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
  285. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  286. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  287. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  288. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  289. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  290. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  291. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  292. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  293. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  294. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  295. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  296. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  297. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  298. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  299. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  300. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  301. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  302. data/lib/stripe/params.rb +161 -0
  303. data/lib/stripe/resources/account.rb +184 -1
  304. data/lib/stripe/resources/account_notice.rb +94 -0
  305. data/lib/stripe/resources/account_session.rb +81 -0
  306. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  307. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  308. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  309. data/lib/stripe/resources/billing/credit_grant.rb +2 -0
  310. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  311. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  312. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  313. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  314. data/lib/stripe/resources/card.rb +2 -0
  315. data/lib/stripe/resources/cash_balance.rb +2 -0
  316. data/lib/stripe/resources/charge.rb +237 -1
  317. data/lib/stripe/resources/checkout/session.rb +154 -4
  318. data/lib/stripe/resources/confirmation_token.rb +155 -0
  319. data/lib/stripe/resources/coupon.rb +26 -1
  320. data/lib/stripe/resources/credit_note.rb +2 -0
  321. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  322. data/lib/stripe/resources/customer.rb +2 -0
  323. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  324. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  325. data/lib/stripe/resources/customer_session.rb +38 -0
  326. data/lib/stripe/resources/discount.rb +2 -0
  327. data/lib/stripe/resources/dispute.rb +22 -0
  328. data/lib/stripe/resources/event.rb +64 -1
  329. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  330. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  331. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  332. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  333. data/lib/stripe/resources/fx_quote.rb +147 -0
  334. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  335. data/lib/stripe/resources/invoice.rb +152 -1
  336. data/lib/stripe/resources/invoice_item.rb +4 -0
  337. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  338. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  339. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  340. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  341. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  342. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  343. data/lib/stripe/resources/line_item.rb +68 -1
  344. data/lib/stripe/resources/mandate.rb +71 -0
  345. data/lib/stripe/resources/margin.rb +64 -0
  346. data/lib/stripe/resources/order.rb +987 -0
  347. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  348. data/lib/stripe/resources/payment_intent.rb +749 -4
  349. data/lib/stripe/resources/payment_method.rb +157 -0
  350. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  351. data/lib/stripe/resources/payment_record.rb +203 -1
  352. data/lib/stripe/resources/price.rb +20 -0
  353. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  354. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  355. data/lib/stripe/resources/promotion_code.rb +2 -0
  356. data/lib/stripe/resources/quote.rb +571 -2
  357. data/lib/stripe/resources/quote_line.rb +521 -0
  358. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  359. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  360. data/lib/stripe/resources/refund.rb +18 -0
  361. data/lib/stripe/resources/setup_attempt.rb +63 -0
  362. data/lib/stripe/resources/setup_intent.rb +132 -1
  363. data/lib/stripe/resources/source.rb +38 -0
  364. data/lib/stripe/resources/subscription.rb +232 -0
  365. data/lib/stripe/resources/subscription_item.rb +20 -1
  366. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  367. data/lib/stripe/resources/tax/form.rb +264 -0
  368. data/lib/stripe/resources/tax_id.rb +4 -0
  369. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  370. data/lib/stripe/resources/terminal/reader.rb +8 -0
  371. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  372. data/lib/stripe/resources/transfer.rb +2 -0
  373. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  374. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  375. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  376. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  377. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  378. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  379. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  380. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  381. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  382. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  383. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  384. data/lib/stripe/resources/v2/core/account.rb +4209 -0
  385. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  386. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  387. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  388. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  389. data/lib/stripe/resources/v2/core/event.rb +2 -0
  390. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  391. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  392. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  393. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  394. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  395. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  396. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  397. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  398. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  399. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  400. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  401. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  402. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  403. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  404. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  405. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  406. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  407. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  408. data/lib/stripe/resources.rb +105 -0
  409. data/lib/stripe/services/account_notice_service.rb +39 -0
  410. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  411. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  412. data/lib/stripe/services/billing_service.rb +2 -1
  413. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  414. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  415. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  416. data/lib/stripe/services/capital_service.rb +15 -0
  417. data/lib/stripe/services/external_account_service.rb +68 -0
  418. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  419. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  420. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  421. data/lib/stripe/services/financial_connections_service.rb +2 -1
  422. data/lib/stripe/services/fx_quote_service.rb +27 -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_line_item_service.rb +17 -0
  430. data/lib/stripe/services/order_service.rb +78 -0
  431. data/lib/stripe/services/payment_intent_service.rb +37 -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/quote_line_service.rb +17 -0
  436. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  437. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  438. data/lib/stripe/services/quote_service.rb +49 -1
  439. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  440. data/lib/stripe/services/subscription_service.rb +11 -0
  441. data/lib/stripe/services/tax/form_service.rb +37 -0
  442. data/lib/stripe/services/tax_service.rb +2 -1
  443. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  444. data/lib/stripe/services/terminal_service.rb +2 -1
  445. data/lib/stripe/services/v1_services.rb +8 -1
  446. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  447. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  448. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  449. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  450. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  451. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  452. data/lib/stripe/services/v2/billing_service.rb +5 -1
  453. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  454. data/lib/stripe/services/v2/core/account_service.rb +77 -0
  455. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  456. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  457. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  458. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  459. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  460. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  461. data/lib/stripe/services/v2/core_service.rb +5 -1
  462. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  463. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  464. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  465. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  466. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  467. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  468. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  469. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  470. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  471. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  472. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  473. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  474. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  475. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  476. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  477. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  478. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  479. data/lib/stripe/services/v2_services.rb +3 -1
  480. data/lib/stripe/services.rb +56 -0
  481. data/lib/stripe/stripe_configuration.rb +3 -1
  482. data/lib/stripe/stripe_object.rb +1 -1
  483. data/lib/stripe/util.rb +7 -1
  484. data/lib/stripe/version.rb +1 -1
  485. data/lib/stripe.rb +53 -0
  486. data/rbi/stripe.rbi +156300 -79954
  487. metadata +325 -3
@@ -253,20 +253,1646 @@ module Stripe
253
253
  end
254
254
 
255
255
  class PaymentDetails < ::Stripe::RequestParams
256
+ class CarRental < ::Stripe::RequestParams
257
+ class Affiliate < ::Stripe::RequestParams
258
+ # The name of the affiliate that originated the purchase.
259
+ attr_accessor :name
260
+
261
+ def initialize(name: nil)
262
+ @name = name
263
+ end
264
+ end
265
+
266
+ class Delivery < ::Stripe::RequestParams
267
+ class Recipient < ::Stripe::RequestParams
268
+ # The email of the recipient the ticket is delivered to.
269
+ attr_accessor :email
270
+ # The name of the recipient the ticket is delivered to.
271
+ attr_accessor :name
272
+ # The phone number of the recipient the ticket is delivered to.
273
+ attr_accessor :phone
274
+
275
+ def initialize(email: nil, name: nil, phone: nil)
276
+ @email = email
277
+ @name = name
278
+ @phone = phone
279
+ end
280
+ end
281
+ # The delivery method for the payment
282
+ attr_accessor :mode
283
+ # Details of the recipient.
284
+ attr_accessor :recipient
285
+
286
+ def initialize(mode: nil, recipient: nil)
287
+ @mode = mode
288
+ @recipient = recipient
289
+ end
290
+ end
291
+
292
+ class Distance < ::Stripe::RequestParams
293
+ # Distance traveled.
294
+ attr_accessor :amount
295
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
296
+ attr_accessor :unit
297
+
298
+ def initialize(amount: nil, unit: nil)
299
+ @amount = amount
300
+ @unit = unit
301
+ end
302
+ end
303
+
304
+ class Driver < ::Stripe::RequestParams
305
+ # Driver's identification number.
306
+ attr_accessor :driver_identification_number
307
+ # Driver's tax number.
308
+ attr_accessor :driver_tax_number
309
+ # Full name of the person or entity on the car reservation.
310
+ attr_accessor :name
311
+
312
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
313
+ @driver_identification_number = driver_identification_number
314
+ @driver_tax_number = driver_tax_number
315
+ @name = name
316
+ end
317
+ end
318
+
319
+ class PickupAddress < ::Stripe::RequestParams
320
+ # City, district, suburb, town, or village.
321
+ attr_accessor :city
322
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
323
+ attr_accessor :country
324
+ # Address line 1, such as the street, PO Box, or company name.
325
+ attr_accessor :line1
326
+ # Address line 2, such as the apartment, suite, unit, or building.
327
+ attr_accessor :line2
328
+ # ZIP or postal code.
329
+ attr_accessor :postal_code
330
+ # State, county, province, or region.
331
+ attr_accessor :state
332
+
333
+ def initialize(
334
+ city: nil,
335
+ country: nil,
336
+ line1: nil,
337
+ line2: nil,
338
+ postal_code: nil,
339
+ state: nil
340
+ )
341
+ @city = city
342
+ @country = country
343
+ @line1 = line1
344
+ @line2 = line2
345
+ @postal_code = postal_code
346
+ @state = state
347
+ end
348
+ end
349
+
350
+ class ReturnAddress < ::Stripe::RequestParams
351
+ # City, district, suburb, town, or village.
352
+ attr_accessor :city
353
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
354
+ attr_accessor :country
355
+ # Address line 1, such as the street, PO Box, or company name.
356
+ attr_accessor :line1
357
+ # Address line 2, such as the apartment, suite, unit, or building.
358
+ attr_accessor :line2
359
+ # ZIP or postal code.
360
+ attr_accessor :postal_code
361
+ # State, county, province, or region.
362
+ attr_accessor :state
363
+
364
+ def initialize(
365
+ city: nil,
366
+ country: nil,
367
+ line1: nil,
368
+ line2: nil,
369
+ postal_code: nil,
370
+ state: nil
371
+ )
372
+ @city = city
373
+ @country = country
374
+ @line1 = line1
375
+ @line2 = line2
376
+ @postal_code = postal_code
377
+ @state = state
378
+ end
379
+ end
380
+ # Affiliate details for this purchase.
381
+ attr_accessor :affiliate
382
+ # The booking number associated with the car rental.
383
+ attr_accessor :booking_number
384
+ # Class code of the car.
385
+ attr_accessor :car_class_code
386
+ # Make of the car.
387
+ attr_accessor :car_make
388
+ # Model of the car.
389
+ attr_accessor :car_model
390
+ # The name of the rental car company.
391
+ attr_accessor :company
392
+ # The customer service phone number of the car rental company.
393
+ attr_accessor :customer_service_phone_number
394
+ # Number of days the car is being rented.
395
+ attr_accessor :days_rented
396
+ # Delivery details for this purchase.
397
+ attr_accessor :delivery
398
+ # The details of the distance traveled during the rental period.
399
+ attr_accessor :distance
400
+ # The details of the passengers in the travel reservation
401
+ attr_accessor :drivers
402
+ # List of additional charges being billed.
403
+ attr_accessor :extra_charges
404
+ # Indicates if the customer did not keep nor cancel their booking.
405
+ attr_accessor :no_show
406
+ # Car pick-up address.
407
+ attr_accessor :pickup_address
408
+ # Car pick-up time. Measured in seconds since the Unix epoch.
409
+ attr_accessor :pickup_at
410
+ # Name of the pickup location.
411
+ attr_accessor :pickup_location_name
412
+ # Rental rate.
413
+ attr_accessor :rate_amount
414
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
415
+ attr_accessor :rate_interval
416
+ # The name of the person or entity renting the car.
417
+ attr_accessor :renter_name
418
+ # Car return address.
419
+ attr_accessor :return_address
420
+ # Car return time. Measured in seconds since the Unix epoch.
421
+ attr_accessor :return_at
422
+ # Name of the return location.
423
+ attr_accessor :return_location_name
424
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
425
+ attr_accessor :tax_exempt
426
+ # The vehicle identification number.
427
+ attr_accessor :vehicle_identification_number
428
+
429
+ def initialize(
430
+ affiliate: nil,
431
+ booking_number: nil,
432
+ car_class_code: nil,
433
+ car_make: nil,
434
+ car_model: nil,
435
+ company: nil,
436
+ customer_service_phone_number: nil,
437
+ days_rented: nil,
438
+ delivery: nil,
439
+ distance: nil,
440
+ drivers: nil,
441
+ extra_charges: nil,
442
+ no_show: nil,
443
+ pickup_address: nil,
444
+ pickup_at: nil,
445
+ pickup_location_name: nil,
446
+ rate_amount: nil,
447
+ rate_interval: nil,
448
+ renter_name: nil,
449
+ return_address: nil,
450
+ return_at: nil,
451
+ return_location_name: nil,
452
+ tax_exempt: nil,
453
+ vehicle_identification_number: nil
454
+ )
455
+ @affiliate = affiliate
456
+ @booking_number = booking_number
457
+ @car_class_code = car_class_code
458
+ @car_make = car_make
459
+ @car_model = car_model
460
+ @company = company
461
+ @customer_service_phone_number = customer_service_phone_number
462
+ @days_rented = days_rented
463
+ @delivery = delivery
464
+ @distance = distance
465
+ @drivers = drivers
466
+ @extra_charges = extra_charges
467
+ @no_show = no_show
468
+ @pickup_address = pickup_address
469
+ @pickup_at = pickup_at
470
+ @pickup_location_name = pickup_location_name
471
+ @rate_amount = rate_amount
472
+ @rate_interval = rate_interval
473
+ @renter_name = renter_name
474
+ @return_address = return_address
475
+ @return_at = return_at
476
+ @return_location_name = return_location_name
477
+ @tax_exempt = tax_exempt
478
+ @vehicle_identification_number = vehicle_identification_number
479
+ end
480
+ end
481
+
482
+ class CarRentalDatum < ::Stripe::RequestParams
483
+ class Affiliate < ::Stripe::RequestParams
484
+ # Affiliate partner code.
485
+ attr_accessor :code
486
+ # Name of affiliate partner.
487
+ attr_accessor :name
488
+
489
+ def initialize(code: nil, name: nil)
490
+ @code = code
491
+ @name = name
492
+ end
493
+ end
494
+
495
+ class Distance < ::Stripe::RequestParams
496
+ # Distance traveled.
497
+ attr_accessor :amount
498
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
499
+ attr_accessor :unit
500
+
501
+ def initialize(amount: nil, unit: nil)
502
+ @amount = amount
503
+ @unit = unit
504
+ end
505
+ end
506
+
507
+ class Driver < ::Stripe::RequestParams
508
+ class DateOfBirth < ::Stripe::RequestParams
509
+ # Day of birth (1-31).
510
+ attr_accessor :day
511
+ # Month of birth (1-12).
512
+ attr_accessor :month
513
+ # Year of birth (must be greater than 1900).
514
+ attr_accessor :year
515
+
516
+ def initialize(day: nil, month: nil, year: nil)
517
+ @day = day
518
+ @month = month
519
+ @year = year
520
+ end
521
+ end
522
+ # Driver's date of birth.
523
+ attr_accessor :date_of_birth
524
+ # Driver's identification number.
525
+ attr_accessor :driver_identification_number
526
+ # Driver's tax number.
527
+ attr_accessor :driver_tax_number
528
+ # Driver's full name.
529
+ attr_accessor :name
530
+
531
+ def initialize(
532
+ date_of_birth: nil,
533
+ driver_identification_number: nil,
534
+ driver_tax_number: nil,
535
+ name: nil
536
+ )
537
+ @date_of_birth = date_of_birth
538
+ @driver_identification_number = driver_identification_number
539
+ @driver_tax_number = driver_tax_number
540
+ @name = name
541
+ end
542
+ end
543
+
544
+ class DropOff < ::Stripe::RequestParams
545
+ class Address < ::Stripe::RequestParams
546
+ # City, district, suburb, town, or village.
547
+ attr_accessor :city
548
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
549
+ attr_accessor :country
550
+ # Address line 1, such as the street, PO Box, or company name.
551
+ attr_accessor :line1
552
+ # Address line 2, such as the apartment, suite, unit, or building.
553
+ attr_accessor :line2
554
+ # ZIP or postal code.
555
+ attr_accessor :postal_code
556
+ # State, county, province, or region.
557
+ attr_accessor :state
558
+
559
+ def initialize(
560
+ city: nil,
561
+ country: nil,
562
+ line1: nil,
563
+ line2: nil,
564
+ postal_code: nil,
565
+ state: nil
566
+ )
567
+ @city = city
568
+ @country = country
569
+ @line1 = line1
570
+ @line2 = line2
571
+ @postal_code = postal_code
572
+ @state = state
573
+ end
574
+ end
575
+ # Address of the rental location.
576
+ attr_accessor :address
577
+ # Location name.
578
+ attr_accessor :location_name
579
+ # Timestamp for the location.
580
+ attr_accessor :time
581
+
582
+ def initialize(address: nil, location_name: nil, time: nil)
583
+ @address = address
584
+ @location_name = location_name
585
+ @time = time
586
+ end
587
+ end
588
+
589
+ class Insurance < ::Stripe::RequestParams
590
+ # Amount of the insurance coverage in cents.
591
+ attr_accessor :amount
592
+ # Currency of the insurance amount.
593
+ attr_accessor :currency
594
+ # Name of the insurance company.
595
+ attr_accessor :insurance_company_name
596
+ # Type of insurance coverage.
597
+ attr_accessor :insurance_type
598
+
599
+ def initialize(
600
+ amount: nil,
601
+ currency: nil,
602
+ insurance_company_name: nil,
603
+ insurance_type: nil
604
+ )
605
+ @amount = amount
606
+ @currency = currency
607
+ @insurance_company_name = insurance_company_name
608
+ @insurance_type = insurance_type
609
+ end
610
+ end
611
+
612
+ class Pickup < ::Stripe::RequestParams
613
+ class Address < ::Stripe::RequestParams
614
+ # City, district, suburb, town, or village.
615
+ attr_accessor :city
616
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
617
+ attr_accessor :country
618
+ # Address line 1, such as the street, PO Box, or company name.
619
+ attr_accessor :line1
620
+ # Address line 2, such as the apartment, suite, unit, or building.
621
+ attr_accessor :line2
622
+ # ZIP or postal code.
623
+ attr_accessor :postal_code
624
+ # State, county, province, or region.
625
+ attr_accessor :state
626
+
627
+ def initialize(
628
+ city: nil,
629
+ country: nil,
630
+ line1: nil,
631
+ line2: nil,
632
+ postal_code: nil,
633
+ state: nil
634
+ )
635
+ @city = city
636
+ @country = country
637
+ @line1 = line1
638
+ @line2 = line2
639
+ @postal_code = postal_code
640
+ @state = state
641
+ end
642
+ end
643
+ # Address of the rental location.
644
+ attr_accessor :address
645
+ # Location name.
646
+ attr_accessor :location_name
647
+ # Timestamp for the location.
648
+ attr_accessor :time
649
+
650
+ def initialize(address: nil, location_name: nil, time: nil)
651
+ @address = address
652
+ @location_name = location_name
653
+ @time = time
654
+ end
655
+ end
656
+
657
+ class Total < ::Stripe::RequestParams
658
+ class Discounts < ::Stripe::RequestParams
659
+ # Corporate client discount code.
660
+ attr_accessor :corporate_client_code
661
+ # Coupon code applied to the rental.
662
+ attr_accessor :coupon
663
+ # Maximum number of free miles or kilometers included.
664
+ attr_accessor :maximum_free_miles_or_kilometers
665
+
666
+ def initialize(
667
+ corporate_client_code: nil,
668
+ coupon: nil,
669
+ maximum_free_miles_or_kilometers: nil
670
+ )
671
+ @corporate_client_code = corporate_client_code
672
+ @coupon = coupon
673
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
674
+ end
675
+ end
676
+
677
+ class ExtraCharge < ::Stripe::RequestParams
678
+ # Amount of the extra charge in cents.
679
+ attr_accessor :amount
680
+ # Type of extra charge.
681
+ attr_accessor :type
682
+
683
+ def initialize(amount: nil, type: nil)
684
+ @amount = amount
685
+ @type = type
686
+ end
687
+ end
688
+
689
+ class Tax < ::Stripe::RequestParams
690
+ class Tax < ::Stripe::RequestParams
691
+ # Tax amount.
692
+ attr_accessor :amount
693
+ # Tax rate applied.
694
+ attr_accessor :rate
695
+ # Type of tax applied.
696
+ attr_accessor :type
697
+
698
+ def initialize(amount: nil, rate: nil, type: nil)
699
+ @amount = amount
700
+ @rate = rate
701
+ @type = type
702
+ end
703
+ end
704
+ # Indicates if the transaction is tax exempt.
705
+ attr_accessor :tax_exempt_indicator
706
+ # Array of tax details.
707
+ attr_accessor :taxes
708
+
709
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
710
+ @tax_exempt_indicator = tax_exempt_indicator
711
+ @taxes = taxes
712
+ end
713
+ end
714
+ # Total amount in cents.
715
+ attr_accessor :amount
716
+ # Currency of the amount.
717
+ attr_accessor :currency
718
+ # Discount details for the rental.
719
+ attr_accessor :discounts
720
+ # Additional charges for the rental.
721
+ attr_accessor :extra_charges
722
+ # Rate per unit for the rental.
723
+ attr_accessor :rate_per_unit
724
+ # Unit of measurement for the rate.
725
+ attr_accessor :rate_unit
726
+ # Tax breakdown for the rental.
727
+ attr_accessor :tax
728
+
729
+ def initialize(
730
+ amount: nil,
731
+ currency: nil,
732
+ discounts: nil,
733
+ extra_charges: nil,
734
+ rate_per_unit: nil,
735
+ rate_unit: nil,
736
+ tax: nil
737
+ )
738
+ @amount = amount
739
+ @currency = currency
740
+ @discounts = discounts
741
+ @extra_charges = extra_charges
742
+ @rate_per_unit = rate_per_unit
743
+ @rate_unit = rate_unit
744
+ @tax = tax
745
+ end
746
+ end
747
+
748
+ class Vehicle < ::Stripe::RequestParams
749
+ # Make of the rental vehicle.
750
+ attr_accessor :make
751
+ # Model of the rental vehicle.
752
+ attr_accessor :model
753
+ # Odometer reading at the time of rental.
754
+ attr_accessor :odometer
755
+ # Type of the rental vehicle.
756
+ attr_accessor :type
757
+ # Class of the rental vehicle.
758
+ attr_accessor :vehicle_class
759
+ # Vehicle identification number (VIN).
760
+ attr_accessor :vehicle_identification_number
761
+
762
+ def initialize(
763
+ make: nil,
764
+ model: nil,
765
+ odometer: nil,
766
+ type: nil,
767
+ vehicle_class: nil,
768
+ vehicle_identification_number: nil
769
+ )
770
+ @make = make
771
+ @model = model
772
+ @odometer = odometer
773
+ @type = type
774
+ @vehicle_class = vehicle_class
775
+ @vehicle_identification_number = vehicle_identification_number
776
+ end
777
+ end
778
+ # Affiliate (such as travel agency) details for the rental.
779
+ attr_accessor :affiliate
780
+ # Booking confirmation number for the car rental.
781
+ attr_accessor :booking_number
782
+ # Name of the car rental company.
783
+ attr_accessor :carrier_name
784
+ # Customer service phone number for the car rental company.
785
+ attr_accessor :customer_service_phone_number
786
+ # Number of days the car is being rented.
787
+ attr_accessor :days_rented
788
+ # Distance details for the rental.
789
+ attr_accessor :distance
790
+ # List of drivers for the rental.
791
+ attr_accessor :drivers
792
+ # Drop-off location details.
793
+ attr_accessor :drop_off
794
+ # Insurance details for the rental.
795
+ attr_accessor :insurances
796
+ # Indicates if the customer was a no-show.
797
+ attr_accessor :no_show_indicator
798
+ # Pickup location details.
799
+ attr_accessor :pickup
800
+ # Name of the person renting the vehicle.
801
+ attr_accessor :renter_name
802
+ # Total cost breakdown for the rental.
803
+ attr_accessor :total
804
+ # Vehicle details for the rental.
805
+ attr_accessor :vehicle
806
+
807
+ def initialize(
808
+ affiliate: nil,
809
+ booking_number: nil,
810
+ carrier_name: nil,
811
+ customer_service_phone_number: nil,
812
+ days_rented: nil,
813
+ distance: nil,
814
+ drivers: nil,
815
+ drop_off: nil,
816
+ insurances: nil,
817
+ no_show_indicator: nil,
818
+ pickup: nil,
819
+ renter_name: nil,
820
+ total: nil,
821
+ vehicle: nil
822
+ )
823
+ @affiliate = affiliate
824
+ @booking_number = booking_number
825
+ @carrier_name = carrier_name
826
+ @customer_service_phone_number = customer_service_phone_number
827
+ @days_rented = days_rented
828
+ @distance = distance
829
+ @drivers = drivers
830
+ @drop_off = drop_off
831
+ @insurances = insurances
832
+ @no_show_indicator = no_show_indicator
833
+ @pickup = pickup
834
+ @renter_name = renter_name
835
+ @total = total
836
+ @vehicle = vehicle
837
+ end
838
+ end
839
+
840
+ class EventDetails < ::Stripe::RequestParams
841
+ class Address < ::Stripe::RequestParams
842
+ # City, district, suburb, town, or village.
843
+ attr_accessor :city
844
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
845
+ attr_accessor :country
846
+ # Address line 1, such as the street, PO Box, or company name.
847
+ attr_accessor :line1
848
+ # Address line 2, such as the apartment, suite, unit, or building.
849
+ attr_accessor :line2
850
+ # ZIP or postal code.
851
+ attr_accessor :postal_code
852
+ # State, county, province, or region.
853
+ attr_accessor :state
854
+
855
+ def initialize(
856
+ city: nil,
857
+ country: nil,
858
+ line1: nil,
859
+ line2: nil,
860
+ postal_code: nil,
861
+ state: nil
862
+ )
863
+ @city = city
864
+ @country = country
865
+ @line1 = line1
866
+ @line2 = line2
867
+ @postal_code = postal_code
868
+ @state = state
869
+ end
870
+ end
871
+
872
+ class Affiliate < ::Stripe::RequestParams
873
+ # The name of the affiliate that originated the purchase.
874
+ attr_accessor :name
875
+
876
+ def initialize(name: nil)
877
+ @name = name
878
+ end
879
+ end
880
+
881
+ class Delivery < ::Stripe::RequestParams
882
+ class Recipient < ::Stripe::RequestParams
883
+ # The email of the recipient the ticket is delivered to.
884
+ attr_accessor :email
885
+ # The name of the recipient the ticket is delivered to.
886
+ attr_accessor :name
887
+ # The phone number of the recipient the ticket is delivered to.
888
+ attr_accessor :phone
889
+
890
+ def initialize(email: nil, name: nil, phone: nil)
891
+ @email = email
892
+ @name = name
893
+ @phone = phone
894
+ end
895
+ end
896
+ # The delivery method for the payment
897
+ attr_accessor :mode
898
+ # Details of the recipient.
899
+ attr_accessor :recipient
900
+
901
+ def initialize(mode: nil, recipient: nil)
902
+ @mode = mode
903
+ @recipient = recipient
904
+ end
905
+ end
906
+ # Indicates if the tickets are digitally checked when entering the venue.
907
+ attr_accessor :access_controlled_venue
908
+ # The event location's address.
909
+ attr_accessor :address
910
+ # Affiliate details for this purchase.
911
+ attr_accessor :affiliate
912
+ # The name of the company
913
+ attr_accessor :company
914
+ # Delivery details for this purchase.
915
+ attr_accessor :delivery
916
+ # Event end time. Measured in seconds since the Unix epoch.
917
+ attr_accessor :ends_at
918
+ # Type of the event entertainment (concert, sports event etc)
919
+ attr_accessor :genre
920
+ # The name of the event.
921
+ attr_accessor :name
922
+ # Event start time. Measured in seconds since the Unix epoch.
923
+ attr_accessor :starts_at
924
+
925
+ def initialize(
926
+ access_controlled_venue: nil,
927
+ address: nil,
928
+ affiliate: nil,
929
+ company: nil,
930
+ delivery: nil,
931
+ ends_at: nil,
932
+ genre: nil,
933
+ name: nil,
934
+ starts_at: nil
935
+ )
936
+ @access_controlled_venue = access_controlled_venue
937
+ @address = address
938
+ @affiliate = affiliate
939
+ @company = company
940
+ @delivery = delivery
941
+ @ends_at = ends_at
942
+ @genre = genre
943
+ @name = name
944
+ @starts_at = starts_at
945
+ end
946
+ end
947
+
948
+ class Flight < ::Stripe::RequestParams
949
+ class Affiliate < ::Stripe::RequestParams
950
+ # The name of the affiliate that originated the purchase.
951
+ attr_accessor :name
952
+
953
+ def initialize(name: nil)
954
+ @name = name
955
+ end
956
+ end
957
+
958
+ class Delivery < ::Stripe::RequestParams
959
+ class Recipient < ::Stripe::RequestParams
960
+ # The email of the recipient the ticket is delivered to.
961
+ attr_accessor :email
962
+ # The name of the recipient the ticket is delivered to.
963
+ attr_accessor :name
964
+ # The phone number of the recipient the ticket is delivered to.
965
+ attr_accessor :phone
966
+
967
+ def initialize(email: nil, name: nil, phone: nil)
968
+ @email = email
969
+ @name = name
970
+ @phone = phone
971
+ end
972
+ end
973
+ # The delivery method for the payment
974
+ attr_accessor :mode
975
+ # Details of the recipient.
976
+ attr_accessor :recipient
977
+
978
+ def initialize(mode: nil, recipient: nil)
979
+ @mode = mode
980
+ @recipient = recipient
981
+ end
982
+ end
983
+
984
+ class Passenger < ::Stripe::RequestParams
985
+ # Full name of the person or entity on the flight reservation.
986
+ attr_accessor :name
987
+
988
+ def initialize(name: nil)
989
+ @name = name
990
+ end
991
+ end
992
+
993
+ class Segment < ::Stripe::RequestParams
994
+ # The flight segment amount.
995
+ attr_accessor :amount
996
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
997
+ attr_accessor :arrival_airport
998
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
999
+ attr_accessor :arrives_at
1000
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1001
+ attr_accessor :carrier
1002
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1003
+ attr_accessor :departs_at
1004
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1005
+ attr_accessor :departure_airport
1006
+ # The flight number associated with the segment
1007
+ attr_accessor :flight_number
1008
+ # The fare class for the segment.
1009
+ attr_accessor :service_class
1010
+
1011
+ def initialize(
1012
+ amount: nil,
1013
+ arrival_airport: nil,
1014
+ arrives_at: nil,
1015
+ carrier: nil,
1016
+ departs_at: nil,
1017
+ departure_airport: nil,
1018
+ flight_number: nil,
1019
+ service_class: nil
1020
+ )
1021
+ @amount = amount
1022
+ @arrival_airport = arrival_airport
1023
+ @arrives_at = arrives_at
1024
+ @carrier = carrier
1025
+ @departs_at = departs_at
1026
+ @departure_airport = departure_airport
1027
+ @flight_number = flight_number
1028
+ @service_class = service_class
1029
+ end
1030
+ end
1031
+ # Affiliate details for this purchase.
1032
+ attr_accessor :affiliate
1033
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1034
+ attr_accessor :agency_number
1035
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1036
+ attr_accessor :carrier
1037
+ # Delivery details for this purchase.
1038
+ attr_accessor :delivery
1039
+ # The name of the person or entity on the reservation.
1040
+ attr_accessor :passenger_name
1041
+ # The details of the passengers in the travel reservation.
1042
+ attr_accessor :passengers
1043
+ # The individual flight segments associated with the trip.
1044
+ attr_accessor :segments
1045
+ # The ticket number associated with the travel reservation.
1046
+ attr_accessor :ticket_number
1047
+
1048
+ def initialize(
1049
+ affiliate: nil,
1050
+ agency_number: nil,
1051
+ carrier: nil,
1052
+ delivery: nil,
1053
+ passenger_name: nil,
1054
+ passengers: nil,
1055
+ segments: nil,
1056
+ ticket_number: nil
1057
+ )
1058
+ @affiliate = affiliate
1059
+ @agency_number = agency_number
1060
+ @carrier = carrier
1061
+ @delivery = delivery
1062
+ @passenger_name = passenger_name
1063
+ @passengers = passengers
1064
+ @segments = segments
1065
+ @ticket_number = ticket_number
1066
+ end
1067
+ end
1068
+
1069
+ class FlightDatum < ::Stripe::RequestParams
1070
+ class Affiliate < ::Stripe::RequestParams
1071
+ # Affiliate partner code.
1072
+ attr_accessor :code
1073
+ # Name of affiliate partner.
1074
+ attr_accessor :name
1075
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1076
+ attr_accessor :travel_authorization_code
1077
+
1078
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1079
+ @code = code
1080
+ @name = name
1081
+ @travel_authorization_code = travel_authorization_code
1082
+ end
1083
+ end
1084
+
1085
+ class Insurance < ::Stripe::RequestParams
1086
+ # Insurance cost.
1087
+ attr_accessor :amount
1088
+ # Insurance currency.
1089
+ attr_accessor :currency
1090
+ # Insurance company name.
1091
+ attr_accessor :insurance_company_name
1092
+ # Type of insurance.
1093
+ attr_accessor :insurance_type
1094
+
1095
+ def initialize(
1096
+ amount: nil,
1097
+ currency: nil,
1098
+ insurance_company_name: nil,
1099
+ insurance_type: nil
1100
+ )
1101
+ @amount = amount
1102
+ @currency = currency
1103
+ @insurance_company_name = insurance_company_name
1104
+ @insurance_type = insurance_type
1105
+ end
1106
+ end
1107
+
1108
+ class Passenger < ::Stripe::RequestParams
1109
+ # Passenger's full name.
1110
+ attr_accessor :name
1111
+
1112
+ def initialize(name: nil)
1113
+ @name = name
1114
+ end
1115
+ end
1116
+
1117
+ class Segment < ::Stripe::RequestParams
1118
+ class Arrival < ::Stripe::RequestParams
1119
+ # Arrival airport IATA code.
1120
+ attr_accessor :airport
1121
+ # Arrival date/time.
1122
+ attr_accessor :arrives_at
1123
+ # Arrival city.
1124
+ attr_accessor :city
1125
+ # Arrival country.
1126
+ attr_accessor :country
1127
+
1128
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1129
+ @airport = airport
1130
+ @arrives_at = arrives_at
1131
+ @city = city
1132
+ @country = country
1133
+ end
1134
+ end
1135
+
1136
+ class Departure < ::Stripe::RequestParams
1137
+ # Departure airport IATA code.
1138
+ attr_accessor :airport
1139
+ # Departure city.
1140
+ attr_accessor :city
1141
+ # Departure country.
1142
+ attr_accessor :country
1143
+ # Departure date/time.
1144
+ attr_accessor :departs_at
1145
+
1146
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1147
+ @airport = airport
1148
+ @city = city
1149
+ @country = country
1150
+ @departs_at = departs_at
1151
+ end
1152
+ end
1153
+ # Segment fare amount.
1154
+ attr_accessor :amount
1155
+ # Arrival details.
1156
+ attr_accessor :arrival
1157
+ # Airline carrier code.
1158
+ attr_accessor :carrier_code
1159
+ # Carrier name.
1160
+ attr_accessor :carrier_name
1161
+ # Segment currency.
1162
+ attr_accessor :currency
1163
+ # Departure details.
1164
+ attr_accessor :departure
1165
+ # Exchange ticket number.
1166
+ attr_accessor :exchange_ticket_number
1167
+ # Fare basis code.
1168
+ attr_accessor :fare_basis_code
1169
+ # Additional fees.
1170
+ attr_accessor :fees
1171
+ # Flight number.
1172
+ attr_accessor :flight_number
1173
+ # Stopover indicator.
1174
+ attr_accessor :is_stop_over_indicator
1175
+ # Refundable ticket indicator.
1176
+ attr_accessor :refundable
1177
+ # Class of service.
1178
+ attr_accessor :service_class
1179
+ # Tax amount for segment.
1180
+ attr_accessor :tax_amount
1181
+ # Ticket number.
1182
+ attr_accessor :ticket_number
1183
+
1184
+ def initialize(
1185
+ amount: nil,
1186
+ arrival: nil,
1187
+ carrier_code: nil,
1188
+ carrier_name: nil,
1189
+ currency: nil,
1190
+ departure: nil,
1191
+ exchange_ticket_number: nil,
1192
+ fare_basis_code: nil,
1193
+ fees: nil,
1194
+ flight_number: nil,
1195
+ is_stop_over_indicator: nil,
1196
+ refundable: nil,
1197
+ service_class: nil,
1198
+ tax_amount: nil,
1199
+ ticket_number: nil
1200
+ )
1201
+ @amount = amount
1202
+ @arrival = arrival
1203
+ @carrier_code = carrier_code
1204
+ @carrier_name = carrier_name
1205
+ @currency = currency
1206
+ @departure = departure
1207
+ @exchange_ticket_number = exchange_ticket_number
1208
+ @fare_basis_code = fare_basis_code
1209
+ @fees = fees
1210
+ @flight_number = flight_number
1211
+ @is_stop_over_indicator = is_stop_over_indicator
1212
+ @refundable = refundable
1213
+ @service_class = service_class
1214
+ @tax_amount = tax_amount
1215
+ @ticket_number = ticket_number
1216
+ end
1217
+ end
1218
+
1219
+ class Total < ::Stripe::RequestParams
1220
+ class Discounts < ::Stripe::RequestParams
1221
+ # Corporate client discount code.
1222
+ attr_accessor :corporate_client_code
1223
+
1224
+ def initialize(corporate_client_code: nil)
1225
+ @corporate_client_code = corporate_client_code
1226
+ end
1227
+ end
1228
+
1229
+ class ExtraCharge < ::Stripe::RequestParams
1230
+ # Amount of additional charges.
1231
+ attr_accessor :amount
1232
+ # Type of additional charges.
1233
+ attr_accessor :type
1234
+
1235
+ def initialize(amount: nil, type: nil)
1236
+ @amount = amount
1237
+ @type = type
1238
+ end
1239
+ end
1240
+
1241
+ class Tax < ::Stripe::RequestParams
1242
+ class Tax < ::Stripe::RequestParams
1243
+ # Tax amount.
1244
+ attr_accessor :amount
1245
+ # Tax rate.
1246
+ attr_accessor :rate
1247
+ # Type of tax.
1248
+ attr_accessor :type
1249
+
1250
+ def initialize(amount: nil, rate: nil, type: nil)
1251
+ @amount = amount
1252
+ @rate = rate
1253
+ @type = type
1254
+ end
1255
+ end
1256
+ # Array of tax details.
1257
+ attr_accessor :taxes
1258
+
1259
+ def initialize(taxes: nil)
1260
+ @taxes = taxes
1261
+ end
1262
+ end
1263
+ # Total flight amount.
1264
+ attr_accessor :amount
1265
+ # Reason for credit.
1266
+ attr_accessor :credit_reason
1267
+ # Total currency.
1268
+ attr_accessor :currency
1269
+ # Discount details.
1270
+ attr_accessor :discounts
1271
+ # Additional charges.
1272
+ attr_accessor :extra_charges
1273
+ # Tax breakdown.
1274
+ attr_accessor :tax
1275
+
1276
+ def initialize(
1277
+ amount: nil,
1278
+ credit_reason: nil,
1279
+ currency: nil,
1280
+ discounts: nil,
1281
+ extra_charges: nil,
1282
+ tax: nil
1283
+ )
1284
+ @amount = amount
1285
+ @credit_reason = credit_reason
1286
+ @currency = currency
1287
+ @discounts = discounts
1288
+ @extra_charges = extra_charges
1289
+ @tax = tax
1290
+ end
1291
+ end
1292
+ # Affiliate details if applicable.
1293
+ attr_accessor :affiliate
1294
+ # Reservation reference.
1295
+ attr_accessor :booking_number
1296
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1297
+ attr_accessor :computerized_reservation_system
1298
+ # Ticket restrictions.
1299
+ attr_accessor :endorsements_and_restrictions
1300
+ # List of insurances.
1301
+ attr_accessor :insurances
1302
+ # List of passengers.
1303
+ attr_accessor :passengers
1304
+ # List of flight segments.
1305
+ attr_accessor :segments
1306
+ # Electronic ticket indicator.
1307
+ attr_accessor :ticket_electronically_issued_indicator
1308
+ # Total cost breakdown.
1309
+ attr_accessor :total
1310
+ # Type of flight transaction.
1311
+ attr_accessor :transaction_type
1312
+
1313
+ def initialize(
1314
+ affiliate: nil,
1315
+ booking_number: nil,
1316
+ computerized_reservation_system: nil,
1317
+ endorsements_and_restrictions: nil,
1318
+ insurances: nil,
1319
+ passengers: nil,
1320
+ segments: nil,
1321
+ ticket_electronically_issued_indicator: nil,
1322
+ total: nil,
1323
+ transaction_type: nil
1324
+ )
1325
+ @affiliate = affiliate
1326
+ @booking_number = booking_number
1327
+ @computerized_reservation_system = computerized_reservation_system
1328
+ @endorsements_and_restrictions = endorsements_and_restrictions
1329
+ @insurances = insurances
1330
+ @passengers = passengers
1331
+ @segments = segments
1332
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1333
+ @total = total
1334
+ @transaction_type = transaction_type
1335
+ end
1336
+ end
1337
+
1338
+ class Lodging < ::Stripe::RequestParams
1339
+ class Address < ::Stripe::RequestParams
1340
+ # City, district, suburb, town, or village.
1341
+ attr_accessor :city
1342
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1343
+ attr_accessor :country
1344
+ # Address line 1, such as the street, PO Box, or company name.
1345
+ attr_accessor :line1
1346
+ # Address line 2, such as the apartment, suite, unit, or building.
1347
+ attr_accessor :line2
1348
+ # ZIP or postal code.
1349
+ attr_accessor :postal_code
1350
+ # State, county, province, or region.
1351
+ attr_accessor :state
1352
+
1353
+ def initialize(
1354
+ city: nil,
1355
+ country: nil,
1356
+ line1: nil,
1357
+ line2: nil,
1358
+ postal_code: nil,
1359
+ state: nil
1360
+ )
1361
+ @city = city
1362
+ @country = country
1363
+ @line1 = line1
1364
+ @line2 = line2
1365
+ @postal_code = postal_code
1366
+ @state = state
1367
+ end
1368
+ end
1369
+
1370
+ class Affiliate < ::Stripe::RequestParams
1371
+ # The name of the affiliate that originated the purchase.
1372
+ attr_accessor :name
1373
+
1374
+ def initialize(name: nil)
1375
+ @name = name
1376
+ end
1377
+ end
1378
+
1379
+ class Delivery < ::Stripe::RequestParams
1380
+ class Recipient < ::Stripe::RequestParams
1381
+ # The email of the recipient the ticket is delivered to.
1382
+ attr_accessor :email
1383
+ # The name of the recipient the ticket is delivered to.
1384
+ attr_accessor :name
1385
+ # The phone number of the recipient the ticket is delivered to.
1386
+ attr_accessor :phone
1387
+
1388
+ def initialize(email: nil, name: nil, phone: nil)
1389
+ @email = email
1390
+ @name = name
1391
+ @phone = phone
1392
+ end
1393
+ end
1394
+ # The delivery method for the payment
1395
+ attr_accessor :mode
1396
+ # Details of the recipient.
1397
+ attr_accessor :recipient
1398
+
1399
+ def initialize(mode: nil, recipient: nil)
1400
+ @mode = mode
1401
+ @recipient = recipient
1402
+ end
1403
+ end
1404
+
1405
+ class Passenger < ::Stripe::RequestParams
1406
+ # Full name of the person or entity on the lodging reservation.
1407
+ attr_accessor :name
1408
+
1409
+ def initialize(name: nil)
1410
+ @name = name
1411
+ end
1412
+ end
1413
+ # The lodging location's address.
1414
+ attr_accessor :address
1415
+ # The number of adults on the booking
1416
+ attr_accessor :adults
1417
+ # Affiliate details for this purchase.
1418
+ attr_accessor :affiliate
1419
+ # The booking number associated with the lodging reservation.
1420
+ attr_accessor :booking_number
1421
+ # The lodging category
1422
+ attr_accessor :category
1423
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1424
+ attr_accessor :checkin_at
1425
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1426
+ attr_accessor :checkout_at
1427
+ # The customer service phone number of the lodging company.
1428
+ attr_accessor :customer_service_phone_number
1429
+ # The daily lodging room rate.
1430
+ attr_accessor :daily_room_rate_amount
1431
+ # Delivery details for this purchase.
1432
+ attr_accessor :delivery
1433
+ # List of additional charges being billed.
1434
+ attr_accessor :extra_charges
1435
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1436
+ attr_accessor :fire_safety_act_compliance
1437
+ # The name of the lodging location.
1438
+ attr_accessor :name
1439
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1440
+ attr_accessor :no_show
1441
+ # The number of rooms on the booking
1442
+ attr_accessor :number_of_rooms
1443
+ # The details of the passengers in the travel reservation
1444
+ attr_accessor :passengers
1445
+ # The phone number of the lodging location.
1446
+ attr_accessor :property_phone_number
1447
+ # The room class for this purchase.
1448
+ attr_accessor :room_class
1449
+ # The number of room nights
1450
+ attr_accessor :room_nights
1451
+ # The total tax amount associating with the room reservation.
1452
+ attr_accessor :total_room_tax_amount
1453
+ # The total tax amount
1454
+ attr_accessor :total_tax_amount
1455
+
1456
+ def initialize(
1457
+ address: nil,
1458
+ adults: nil,
1459
+ affiliate: nil,
1460
+ booking_number: nil,
1461
+ category: nil,
1462
+ checkin_at: nil,
1463
+ checkout_at: nil,
1464
+ customer_service_phone_number: nil,
1465
+ daily_room_rate_amount: nil,
1466
+ delivery: nil,
1467
+ extra_charges: nil,
1468
+ fire_safety_act_compliance: nil,
1469
+ name: nil,
1470
+ no_show: nil,
1471
+ number_of_rooms: nil,
1472
+ passengers: nil,
1473
+ property_phone_number: nil,
1474
+ room_class: nil,
1475
+ room_nights: nil,
1476
+ total_room_tax_amount: nil,
1477
+ total_tax_amount: nil
1478
+ )
1479
+ @address = address
1480
+ @adults = adults
1481
+ @affiliate = affiliate
1482
+ @booking_number = booking_number
1483
+ @category = category
1484
+ @checkin_at = checkin_at
1485
+ @checkout_at = checkout_at
1486
+ @customer_service_phone_number = customer_service_phone_number
1487
+ @daily_room_rate_amount = daily_room_rate_amount
1488
+ @delivery = delivery
1489
+ @extra_charges = extra_charges
1490
+ @fire_safety_act_compliance = fire_safety_act_compliance
1491
+ @name = name
1492
+ @no_show = no_show
1493
+ @number_of_rooms = number_of_rooms
1494
+ @passengers = passengers
1495
+ @property_phone_number = property_phone_number
1496
+ @room_class = room_class
1497
+ @room_nights = room_nights
1498
+ @total_room_tax_amount = total_room_tax_amount
1499
+ @total_tax_amount = total_tax_amount
1500
+ end
1501
+ end
1502
+
1503
+ class LodgingDatum < ::Stripe::RequestParams
1504
+ class Accommodation < ::Stripe::RequestParams
1505
+ # Type of accommodation.
1506
+ attr_accessor :accommodation_type
1507
+ # Bed type.
1508
+ attr_accessor :bed_type
1509
+ # Daily accommodation rate in cents.
1510
+ attr_accessor :daily_rate_amount
1511
+ # Number of nights.
1512
+ attr_accessor :nights
1513
+ # Number of rooms, cabanas, apartments, and so on.
1514
+ attr_accessor :number_of_rooms
1515
+ # Rate type.
1516
+ attr_accessor :rate_type
1517
+ # Whether smoking is allowed.
1518
+ attr_accessor :smoking_indicator
1519
+
1520
+ def initialize(
1521
+ accommodation_type: nil,
1522
+ bed_type: nil,
1523
+ daily_rate_amount: nil,
1524
+ nights: nil,
1525
+ number_of_rooms: nil,
1526
+ rate_type: nil,
1527
+ smoking_indicator: nil
1528
+ )
1529
+ @accommodation_type = accommodation_type
1530
+ @bed_type = bed_type
1531
+ @daily_rate_amount = daily_rate_amount
1532
+ @nights = nights
1533
+ @number_of_rooms = number_of_rooms
1534
+ @rate_type = rate_type
1535
+ @smoking_indicator = smoking_indicator
1536
+ end
1537
+ end
1538
+
1539
+ class Affiliate < ::Stripe::RequestParams
1540
+ # Affiliate partner code.
1541
+ attr_accessor :code
1542
+ # Affiliate partner name.
1543
+ attr_accessor :name
1544
+
1545
+ def initialize(code: nil, name: nil)
1546
+ @code = code
1547
+ @name = name
1548
+ end
1549
+ end
1550
+
1551
+ class Guest < ::Stripe::RequestParams
1552
+ # Guest's full name.
1553
+ attr_accessor :name
1554
+
1555
+ def initialize(name: nil)
1556
+ @name = name
1557
+ end
1558
+ end
1559
+
1560
+ class Host < ::Stripe::RequestParams
1561
+ class Address < ::Stripe::RequestParams
1562
+ # City, district, suburb, town, or village.
1563
+ attr_accessor :city
1564
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1565
+ attr_accessor :country
1566
+ # Address line 1, such as the street, PO Box, or company name.
1567
+ attr_accessor :line1
1568
+ # Address line 2, such as the apartment, suite, unit, or building.
1569
+ attr_accessor :line2
1570
+ # ZIP or postal code.
1571
+ attr_accessor :postal_code
1572
+ # State, county, province, or region.
1573
+ attr_accessor :state
1574
+
1575
+ def initialize(
1576
+ city: nil,
1577
+ country: nil,
1578
+ line1: nil,
1579
+ line2: nil,
1580
+ postal_code: nil,
1581
+ state: nil
1582
+ )
1583
+ @city = city
1584
+ @country = country
1585
+ @line1 = line1
1586
+ @line2 = line2
1587
+ @postal_code = postal_code
1588
+ @state = state
1589
+ end
1590
+ end
1591
+ # Address of the host.
1592
+ attr_accessor :address
1593
+ # Host's country of domicile.
1594
+ attr_accessor :country_of_domicile
1595
+ # Reference number for the host.
1596
+ attr_accessor :host_reference
1597
+ # Type of host.
1598
+ attr_accessor :host_type
1599
+ # Name of the lodging property or host.
1600
+ attr_accessor :name
1601
+ # Total number of reservations for the host.
1602
+ attr_accessor :number_of_reservations
1603
+ # Property phone number.
1604
+ attr_accessor :property_phone_number
1605
+ # Host's registration date.
1606
+ attr_accessor :registered_at
1607
+
1608
+ def initialize(
1609
+ address: nil,
1610
+ country_of_domicile: nil,
1611
+ host_reference: nil,
1612
+ host_type: nil,
1613
+ name: nil,
1614
+ number_of_reservations: nil,
1615
+ property_phone_number: nil,
1616
+ registered_at: nil
1617
+ )
1618
+ @address = address
1619
+ @country_of_domicile = country_of_domicile
1620
+ @host_reference = host_reference
1621
+ @host_type = host_type
1622
+ @name = name
1623
+ @number_of_reservations = number_of_reservations
1624
+ @property_phone_number = property_phone_number
1625
+ @registered_at = registered_at
1626
+ end
1627
+ end
1628
+
1629
+ class Insurance < ::Stripe::RequestParams
1630
+ # Price of the insurance coverage in cents.
1631
+ attr_accessor :amount
1632
+ # Currency of the insurance amount.
1633
+ attr_accessor :currency
1634
+ # Name of the insurance company.
1635
+ attr_accessor :insurance_company_name
1636
+ # Type of insurance coverage.
1637
+ attr_accessor :insurance_type
1638
+
1639
+ def initialize(
1640
+ amount: nil,
1641
+ currency: nil,
1642
+ insurance_company_name: nil,
1643
+ insurance_type: nil
1644
+ )
1645
+ @amount = amount
1646
+ @currency = currency
1647
+ @insurance_company_name = insurance_company_name
1648
+ @insurance_type = insurance_type
1649
+ end
1650
+ end
1651
+
1652
+ class Total < ::Stripe::RequestParams
1653
+ class Discounts < ::Stripe::RequestParams
1654
+ # Corporate client discount code.
1655
+ attr_accessor :corporate_client_code
1656
+ # Coupon code.
1657
+ attr_accessor :coupon
1658
+
1659
+ def initialize(corporate_client_code: nil, coupon: nil)
1660
+ @corporate_client_code = corporate_client_code
1661
+ @coupon = coupon
1662
+ end
1663
+ end
1664
+
1665
+ class ExtraCharge < ::Stripe::RequestParams
1666
+ # Amount of the extra charge in cents.
1667
+ attr_accessor :amount
1668
+ # Type of extra charge.
1669
+ attr_accessor :type
1670
+
1671
+ def initialize(amount: nil, type: nil)
1672
+ @amount = amount
1673
+ @type = type
1674
+ end
1675
+ end
1676
+
1677
+ class Tax < ::Stripe::RequestParams
1678
+ class Tax < ::Stripe::RequestParams
1679
+ # Tax amount in cents.
1680
+ attr_accessor :amount
1681
+ # Tax rate.
1682
+ attr_accessor :rate
1683
+ # Type of tax applied.
1684
+ attr_accessor :type
1685
+
1686
+ def initialize(amount: nil, rate: nil, type: nil)
1687
+ @amount = amount
1688
+ @rate = rate
1689
+ @type = type
1690
+ end
1691
+ end
1692
+ # Indicates whether the transaction is tax exempt.
1693
+ attr_accessor :tax_exempt_indicator
1694
+ # Tax details.
1695
+ attr_accessor :taxes
1696
+
1697
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1698
+ @tax_exempt_indicator = tax_exempt_indicator
1699
+ @taxes = taxes
1700
+ end
1701
+ end
1702
+ # Total price of the lodging reservation in cents.
1703
+ attr_accessor :amount
1704
+ # Cash advances in cents.
1705
+ attr_accessor :cash_advances
1706
+ # Currency of the total amount.
1707
+ attr_accessor :currency
1708
+ # Discount details for the lodging.
1709
+ attr_accessor :discounts
1710
+ # Additional charges for the lodging.
1711
+ attr_accessor :extra_charges
1712
+ # Prepaid amount in cents.
1713
+ attr_accessor :prepaid_amount
1714
+ # Tax breakdown for the lodging reservation.
1715
+ attr_accessor :tax
1716
+
1717
+ def initialize(
1718
+ amount: nil,
1719
+ cash_advances: nil,
1720
+ currency: nil,
1721
+ discounts: nil,
1722
+ extra_charges: nil,
1723
+ prepaid_amount: nil,
1724
+ tax: nil
1725
+ )
1726
+ @amount = amount
1727
+ @cash_advances = cash_advances
1728
+ @currency = currency
1729
+ @discounts = discounts
1730
+ @extra_charges = extra_charges
1731
+ @prepaid_amount = prepaid_amount
1732
+ @tax = tax
1733
+ end
1734
+ end
1735
+ # Accommodation details for the lodging.
1736
+ attr_accessor :accommodation
1737
+ # Affiliate details if applicable.
1738
+ attr_accessor :affiliate
1739
+ # Booking confirmation number for the lodging.
1740
+ attr_accessor :booking_number
1741
+ # Check-in date.
1742
+ attr_accessor :checkin_at
1743
+ # Check-out date.
1744
+ attr_accessor :checkout_at
1745
+ # Customer service phone number for the lodging company.
1746
+ attr_accessor :customer_service_phone_number
1747
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1748
+ attr_accessor :fire_safety_act_compliance_indicator
1749
+ # List of guests for the lodging.
1750
+ attr_accessor :guests
1751
+ # Host details for the lodging.
1752
+ attr_accessor :host
1753
+ # List of insurances for the lodging.
1754
+ attr_accessor :insurances
1755
+ # Whether the renter is a no-show.
1756
+ attr_accessor :no_show_indicator
1757
+ # Renter ID number for the lodging.
1758
+ attr_accessor :renter_id_number
1759
+ # Renter name for the lodging.
1760
+ attr_accessor :renter_name
1761
+ # Total details for the lodging.
1762
+ attr_accessor :total
1763
+
1764
+ def initialize(
1765
+ accommodation: nil,
1766
+ affiliate: nil,
1767
+ booking_number: nil,
1768
+ checkin_at: nil,
1769
+ checkout_at: nil,
1770
+ customer_service_phone_number: nil,
1771
+ fire_safety_act_compliance_indicator: nil,
1772
+ guests: nil,
1773
+ host: nil,
1774
+ insurances: nil,
1775
+ no_show_indicator: nil,
1776
+ renter_id_number: nil,
1777
+ renter_name: nil,
1778
+ total: nil
1779
+ )
1780
+ @accommodation = accommodation
1781
+ @affiliate = affiliate
1782
+ @booking_number = booking_number
1783
+ @checkin_at = checkin_at
1784
+ @checkout_at = checkout_at
1785
+ @customer_service_phone_number = customer_service_phone_number
1786
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1787
+ @guests = guests
1788
+ @host = host
1789
+ @insurances = insurances
1790
+ @no_show_indicator = no_show_indicator
1791
+ @renter_id_number = renter_id_number
1792
+ @renter_name = renter_name
1793
+ @total = total
1794
+ end
1795
+ end
1796
+
1797
+ class Subscription < ::Stripe::RequestParams
1798
+ class Affiliate < ::Stripe::RequestParams
1799
+ # The name of the affiliate that originated the purchase.
1800
+ attr_accessor :name
1801
+
1802
+ def initialize(name: nil)
1803
+ @name = name
1804
+ end
1805
+ end
1806
+
1807
+ class BillingInterval < ::Stripe::RequestParams
1808
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1809
+ attr_accessor :count
1810
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1811
+ attr_accessor :interval
1812
+
1813
+ def initialize(count: nil, interval: nil)
1814
+ @count = count
1815
+ @interval = interval
1816
+ end
1817
+ end
1818
+ # Affiliate details for this purchase.
1819
+ attr_accessor :affiliate
1820
+ # Info whether the subscription will be auto renewed upon expiry.
1821
+ attr_accessor :auto_renewal
1822
+ # Subscription billing details for this purchase.
1823
+ attr_accessor :billing_interval
1824
+ # Subscription end time. Measured in seconds since the Unix epoch.
1825
+ attr_accessor :ends_at
1826
+ # Name of the product on subscription. e.g. Apple Music Subscription
1827
+ attr_accessor :name
1828
+ # Subscription start time. Measured in seconds since the Unix epoch.
1829
+ attr_accessor :starts_at
1830
+
1831
+ def initialize(
1832
+ affiliate: nil,
1833
+ auto_renewal: nil,
1834
+ billing_interval: nil,
1835
+ ends_at: nil,
1836
+ name: nil,
1837
+ starts_at: nil
1838
+ )
1839
+ @affiliate = affiliate
1840
+ @auto_renewal = auto_renewal
1841
+ @billing_interval = billing_interval
1842
+ @ends_at = ends_at
1843
+ @name = name
1844
+ @starts_at = starts_at
1845
+ end
1846
+ end
1847
+ # Car rental details for this PaymentIntent.
1848
+ attr_accessor :car_rental
1849
+ # Car rental data for this PaymentIntent.
1850
+ attr_accessor :car_rental_data
256
1851
  # A unique value to identify the customer. This field is available only for card payments.
257
1852
  #
258
1853
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
259
1854
  attr_accessor :customer_reference
1855
+ # Event details for this PaymentIntent
1856
+ attr_accessor :event_details
1857
+ # Flight reservation details for this PaymentIntent
1858
+ attr_accessor :flight
1859
+ # Flight data for this PaymentIntent.
1860
+ attr_accessor :flight_data
1861
+ # Lodging reservation details for this PaymentIntent
1862
+ attr_accessor :lodging
1863
+ # Lodging data for this PaymentIntent.
1864
+ attr_accessor :lodging_data
260
1865
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
261
1866
  #
262
1867
  # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
263
1868
  #
264
1869
  # 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.
265
1870
  attr_accessor :order_reference
1871
+ # Subscription details for this PaymentIntent
1872
+ attr_accessor :subscription
266
1873
 
267
- def initialize(customer_reference: nil, order_reference: nil)
1874
+ def initialize(
1875
+ car_rental: nil,
1876
+ car_rental_data: nil,
1877
+ customer_reference: nil,
1878
+ event_details: nil,
1879
+ flight: nil,
1880
+ flight_data: nil,
1881
+ lodging: nil,
1882
+ lodging_data: nil,
1883
+ order_reference: nil,
1884
+ subscription: nil
1885
+ )
1886
+ @car_rental = car_rental
1887
+ @car_rental_data = car_rental_data
268
1888
  @customer_reference = customer_reference
1889
+ @event_details = event_details
1890
+ @flight = flight
1891
+ @flight_data = flight_data
1892
+ @lodging = lodging
1893
+ @lodging_data = lodging_data
269
1894
  @order_reference = order_reference
1895
+ @subscription = subscription
270
1896
  end
271
1897
  end
272
1898
 
@@ -407,8 +2033,18 @@ module Stripe
407
2033
  end
408
2034
 
409
2035
  class Giropay < ::Stripe::RequestParams; end
2036
+ class Gopay < ::Stripe::RequestParams; end
410
2037
  class Grabpay < ::Stripe::RequestParams; end
411
2038
 
2039
+ class IdBankTransfer < ::Stripe::RequestParams
2040
+ # Bank where the account is held.
2041
+ attr_accessor :bank
2042
+
2043
+ def initialize(bank: nil)
2044
+ @bank = bank
2045
+ end
2046
+ end
2047
+
412
2048
  class Ideal < ::Stripe::RequestParams
413
2049
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
414
2050
  attr_accessor :bank
@@ -506,8 +2142,26 @@ module Stripe
506
2142
  class Payco < ::Stripe::RequestParams; end
507
2143
  class Paynow < ::Stripe::RequestParams; end
508
2144
  class Paypal < ::Stripe::RequestParams; end
2145
+ class Paypay < ::Stripe::RequestParams; end
2146
+
2147
+ class Payto < ::Stripe::RequestParams
2148
+ # The account number for the bank account.
2149
+ attr_accessor :account_number
2150
+ # Bank-State-Branch number of the bank account.
2151
+ attr_accessor :bsb_number
2152
+ # The PayID alias for the bank account.
2153
+ attr_accessor :pay_id
2154
+
2155
+ def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
2156
+ @account_number = account_number
2157
+ @bsb_number = bsb_number
2158
+ @pay_id = pay_id
2159
+ end
2160
+ end
2161
+
509
2162
  class Pix < ::Stripe::RequestParams; end
510
2163
  class Promptpay < ::Stripe::RequestParams; end
2164
+ class Qris < ::Stripe::RequestParams; end
511
2165
 
512
2166
  class RadarOptions < ::Stripe::RequestParams
513
2167
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -518,6 +2172,29 @@ module Stripe
518
2172
  end
519
2173
  end
520
2174
 
2175
+ class Rechnung < ::Stripe::RequestParams
2176
+ class Dob < ::Stripe::RequestParams
2177
+ # The day of birth, between 1 and 31.
2178
+ attr_accessor :day
2179
+ # The month of birth, between 1 and 12.
2180
+ attr_accessor :month
2181
+ # The four-digit year of birth.
2182
+ attr_accessor :year
2183
+
2184
+ def initialize(day: nil, month: nil, year: nil)
2185
+ @day = day
2186
+ @month = month
2187
+ @year = year
2188
+ end
2189
+ end
2190
+ # Customer's date of birth
2191
+ attr_accessor :dob
2192
+
2193
+ def initialize(dob: nil)
2194
+ @dob = dob
2195
+ end
2196
+ end
2197
+
521
2198
  class RevolutPay < ::Stripe::RequestParams; end
522
2199
  class SamsungPay < ::Stripe::RequestParams; end
523
2200
  class Satispay < ::Stripe::RequestParams; end
@@ -531,6 +2208,8 @@ module Stripe
531
2208
  end
532
2209
  end
533
2210
 
2211
+ class Shopeepay < ::Stripe::RequestParams; end
2212
+
534
2213
  class Sofort < ::Stripe::RequestParams
535
2214
  # Two-letter ISO code representing the country the bank account is located in.
536
2215
  attr_accessor :country
@@ -540,6 +2219,18 @@ module Stripe
540
2219
  end
541
2220
  end
542
2221
 
2222
+ class StripeBalance < ::Stripe::RequestParams
2223
+ # The connected account ID whose Stripe balance to use as the source of payment
2224
+ attr_accessor :account
2225
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2226
+ attr_accessor :source_type
2227
+
2228
+ def initialize(account: nil, source_type: nil)
2229
+ @account = account
2230
+ @source_type = source_type
2231
+ end
2232
+ end
2233
+
543
2234
  class Swish < ::Stripe::RequestParams; end
544
2235
  class Twint < ::Stripe::RequestParams; end
545
2236
 
@@ -612,8 +2303,12 @@ module Stripe
612
2303
  attr_accessor :fpx
613
2304
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
614
2305
  attr_accessor :giropay
2306
+ # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2307
+ attr_accessor :gopay
615
2308
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
616
2309
  attr_accessor :grabpay
2310
+ # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2311
+ attr_accessor :id_bank_transfer
617
2312
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
618
2313
  attr_accessor :ideal
619
2314
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -652,12 +2347,20 @@ module Stripe
652
2347
  attr_accessor :paynow
653
2348
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
654
2349
  attr_accessor :paypal
2350
+ # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2351
+ attr_accessor :paypay
2352
+ # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2353
+ attr_accessor :payto
655
2354
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
656
2355
  attr_accessor :pix
657
2356
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
658
2357
  attr_accessor :promptpay
2358
+ # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2359
+ attr_accessor :qris
659
2360
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
660
2361
  attr_accessor :radar_options
2362
+ # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2363
+ attr_accessor :rechnung
661
2364
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
662
2365
  attr_accessor :revolut_pay
663
2366
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -666,8 +2369,12 @@ module Stripe
666
2369
  attr_accessor :satispay
667
2370
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
668
2371
  attr_accessor :sepa_debit
2372
+ # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2373
+ attr_accessor :shopeepay
669
2374
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
670
2375
  attr_accessor :sofort
2376
+ # This hash contains details about the Stripe balance payment method.
2377
+ attr_accessor :stripe_balance
671
2378
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
672
2379
  attr_accessor :swish
673
2380
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -702,7 +2409,9 @@ module Stripe
702
2409
  eps: nil,
703
2410
  fpx: nil,
704
2411
  giropay: nil,
2412
+ gopay: nil,
705
2413
  grabpay: nil,
2414
+ id_bank_transfer: nil,
706
2415
  ideal: nil,
707
2416
  interac_present: nil,
708
2417
  kakao_pay: nil,
@@ -722,14 +2431,20 @@ module Stripe
722
2431
  payco: nil,
723
2432
  paynow: nil,
724
2433
  paypal: nil,
2434
+ paypay: nil,
2435
+ payto: nil,
725
2436
  pix: nil,
726
2437
  promptpay: nil,
2438
+ qris: nil,
727
2439
  radar_options: nil,
2440
+ rechnung: nil,
728
2441
  revolut_pay: nil,
729
2442
  samsung_pay: nil,
730
2443
  satispay: nil,
731
2444
  sepa_debit: nil,
2445
+ shopeepay: nil,
732
2446
  sofort: nil,
2447
+ stripe_balance: nil,
733
2448
  swish: nil,
734
2449
  twint: nil,
735
2450
  type: nil,
@@ -757,7 +2472,9 @@ module Stripe
757
2472
  @eps = eps
758
2473
  @fpx = fpx
759
2474
  @giropay = giropay
2475
+ @gopay = gopay
760
2476
  @grabpay = grabpay
2477
+ @id_bank_transfer = id_bank_transfer
761
2478
  @ideal = ideal
762
2479
  @interac_present = interac_present
763
2480
  @kakao_pay = kakao_pay
@@ -777,14 +2494,20 @@ module Stripe
777
2494
  @payco = payco
778
2495
  @paynow = paynow
779
2496
  @paypal = paypal
2497
+ @paypay = paypay
2498
+ @payto = payto
780
2499
  @pix = pix
781
2500
  @promptpay = promptpay
2501
+ @qris = qris
782
2502
  @radar_options = radar_options
2503
+ @rechnung = rechnung
783
2504
  @revolut_pay = revolut_pay
784
2505
  @samsung_pay = samsung_pay
785
2506
  @satispay = satispay
786
2507
  @sepa_debit = sepa_debit
2508
+ @shopeepay = shopeepay
787
2509
  @sofort = sofort
2510
+ @stripe_balance = stripe_balance
788
2511
  @swish = swish
789
2512
  @twint = twint
790
2513
  @type = type
@@ -1155,6 +2878,48 @@ module Stripe
1155
2878
  end
1156
2879
  end
1157
2880
 
2881
+ class StatementDetails < ::Stripe::RequestParams
2882
+ class Address < ::Stripe::RequestParams
2883
+ # City, district, suburb, town, or village.
2884
+ attr_accessor :city
2885
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2886
+ attr_accessor :country
2887
+ # Address line 1, such as the street, PO Box, or company name.
2888
+ attr_accessor :line1
2889
+ # Address line 2, such as the apartment, suite, unit, or building.
2890
+ attr_accessor :line2
2891
+ # ZIP or postal code.
2892
+ attr_accessor :postal_code
2893
+ # State, county, province, or region.
2894
+ attr_accessor :state
2895
+
2896
+ def initialize(
2897
+ city: nil,
2898
+ country: nil,
2899
+ line1: nil,
2900
+ line2: nil,
2901
+ postal_code: nil,
2902
+ state: nil
2903
+ )
2904
+ @city = city
2905
+ @country = country
2906
+ @line1 = line1
2907
+ @line2 = line2
2908
+ @postal_code = postal_code
2909
+ @state = state
2910
+ end
2911
+ end
2912
+ # Please pass in an address that is within your Stripe user account country
2913
+ attr_accessor :address
2914
+ # Phone number (e.g., a toll-free number that customers can call)
2915
+ attr_accessor :phone
2916
+
2917
+ def initialize(address: nil, phone: nil)
2918
+ @address = address
2919
+ @phone = phone
2920
+ end
2921
+ end
2922
+
1158
2923
  class ThreeDSecure < ::Stripe::RequestParams
1159
2924
  class NetworkOptions < ::Stripe::RequestParams
1160
2925
  class CartesBancaires < ::Stripe::RequestParams
@@ -1249,6 +3014,8 @@ module Stripe
1249
3014
  attr_accessor :moto
1250
3015
  # 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.
1251
3016
  attr_accessor :network
3017
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
3018
+ attr_accessor :request_decremental_authorization
1252
3019
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1253
3020
  attr_accessor :request_extended_authorization
1254
3021
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1257,6 +3024,8 @@ module Stripe
1257
3024
  attr_accessor :request_multicapture
1258
3025
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1259
3026
  attr_accessor :request_overcapture
3027
+ # Request partial authorization on this PaymentIntent.
3028
+ attr_accessor :request_partial_authorization
1260
3029
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1261
3030
  attr_accessor :request_three_d_secure
1262
3031
  # 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).
@@ -1275,6 +3044,8 @@ module Stripe
1275
3044
  attr_accessor :statement_descriptor_suffix_kana
1276
3045
  # 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.
1277
3046
  attr_accessor :statement_descriptor_suffix_kanji
3047
+ # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3048
+ attr_accessor :statement_details
1278
3049
  # If 3D Secure authentication was performed with a third-party provider,
1279
3050
  # the authentication details to use for this payment.
1280
3051
  attr_accessor :three_d_secure
@@ -1286,15 +3057,18 @@ module Stripe
1286
3057
  mandate_options: nil,
1287
3058
  moto: nil,
1288
3059
  network: nil,
3060
+ request_decremental_authorization: nil,
1289
3061
  request_extended_authorization: nil,
1290
3062
  request_incremental_authorization: nil,
1291
3063
  request_multicapture: nil,
1292
3064
  request_overcapture: nil,
3065
+ request_partial_authorization: nil,
1293
3066
  request_three_d_secure: nil,
1294
3067
  require_cvc_recollection: nil,
1295
3068
  setup_future_usage: nil,
1296
3069
  statement_descriptor_suffix_kana: nil,
1297
3070
  statement_descriptor_suffix_kanji: nil,
3071
+ statement_details: nil,
1298
3072
  three_d_secure: nil
1299
3073
  )
1300
3074
  @capture_method = capture_method
@@ -1303,15 +3077,18 @@ module Stripe
1303
3077
  @mandate_options = mandate_options
1304
3078
  @moto = moto
1305
3079
  @network = network
3080
+ @request_decremental_authorization = request_decremental_authorization
1306
3081
  @request_extended_authorization = request_extended_authorization
1307
3082
  @request_incremental_authorization = request_incremental_authorization
1308
3083
  @request_multicapture = request_multicapture
1309
3084
  @request_overcapture = request_overcapture
3085
+ @request_partial_authorization = request_partial_authorization
1310
3086
  @request_three_d_secure = request_three_d_secure
1311
3087
  @require_cvc_recollection = require_cvc_recollection
1312
3088
  @setup_future_usage = setup_future_usage
1313
3089
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1314
3090
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3091
+ @statement_details = statement_details
1315
3092
  @three_d_secure = three_d_secure
1316
3093
  end
1317
3094
  end
@@ -1490,6 +3267,23 @@ module Stripe
1490
3267
  end
1491
3268
  end
1492
3269
 
3270
+ class Gopay < ::Stripe::RequestParams
3271
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3272
+ #
3273
+ # 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.
3274
+ #
3275
+ # 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.
3276
+ #
3277
+ # 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).
3278
+ #
3279
+ # 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`.
3280
+ attr_accessor :setup_future_usage
3281
+
3282
+ def initialize(setup_future_usage: nil)
3283
+ @setup_future_usage = setup_future_usage
3284
+ end
3285
+ end
3286
+
1493
3287
  class Grabpay < ::Stripe::RequestParams
1494
3288
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1495
3289
  #
@@ -1507,6 +3301,29 @@ module Stripe
1507
3301
  end
1508
3302
  end
1509
3303
 
3304
+ class IdBankTransfer < ::Stripe::RequestParams
3305
+ # 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.
3306
+ attr_accessor :expires_after
3307
+ # 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.
3308
+ attr_accessor :expires_at
3309
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3310
+ #
3311
+ # 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.
3312
+ #
3313
+ # 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.
3314
+ #
3315
+ # 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).
3316
+ #
3317
+ # 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`.
3318
+ attr_accessor :setup_future_usage
3319
+
3320
+ def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3321
+ @expires_after = expires_after
3322
+ @expires_at = expires_at
3323
+ @setup_future_usage = setup_future_usage
3324
+ end
3325
+ end
3326
+
1510
3327
  class Ideal < ::Stripe::RequestParams
1511
3328
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1512
3329
  #
@@ -1519,98 +3336,1031 @@ module Stripe
1519
3336
  # 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`.
1520
3337
  attr_accessor :setup_future_usage
1521
3338
 
1522
- def initialize(setup_future_usage: nil)
1523
- @setup_future_usage = setup_future_usage
1524
- end
1525
- end
3339
+ def initialize(setup_future_usage: nil)
3340
+ @setup_future_usage = setup_future_usage
3341
+ end
3342
+ end
3343
+
3344
+ class InteracPresent < ::Stripe::RequestParams; end
3345
+
3346
+ class KakaoPay < ::Stripe::RequestParams
3347
+ # Controls when the funds are captured from the customer's account.
3348
+ #
3349
+ # 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.
3350
+ #
3351
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3352
+ attr_accessor :capture_method
3353
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3354
+ #
3355
+ # 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.
3356
+ #
3357
+ # 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.
3358
+ #
3359
+ # 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).
3360
+ attr_accessor :setup_future_usage
3361
+
3362
+ def initialize(capture_method: nil, setup_future_usage: nil)
3363
+ @capture_method = capture_method
3364
+ @setup_future_usage = setup_future_usage
3365
+ end
3366
+ end
3367
+
3368
+ class Klarna < ::Stripe::RequestParams
3369
+ class OnDemand < ::Stripe::RequestParams
3370
+ # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
3371
+ attr_accessor :average_amount
3372
+ # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
3373
+ attr_accessor :maximum_amount
3374
+ # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
3375
+ attr_accessor :minimum_amount
3376
+ # Interval at which the customer is making purchases
3377
+ attr_accessor :purchase_interval
3378
+ # The number of `purchase_interval` between charges
3379
+ attr_accessor :purchase_interval_count
3380
+
3381
+ def initialize(
3382
+ average_amount: nil,
3383
+ maximum_amount: nil,
3384
+ minimum_amount: nil,
3385
+ purchase_interval: nil,
3386
+ purchase_interval_count: nil
3387
+ )
3388
+ @average_amount = average_amount
3389
+ @maximum_amount = maximum_amount
3390
+ @minimum_amount = minimum_amount
3391
+ @purchase_interval = purchase_interval
3392
+ @purchase_interval_count = purchase_interval_count
3393
+ end
3394
+ end
3395
+
3396
+ class Subscription < ::Stripe::RequestParams
3397
+ class NextBilling < ::Stripe::RequestParams
3398
+ # The amount of the next charge for the subscription.
3399
+ attr_accessor :amount
3400
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
3401
+ attr_accessor :date
3402
+
3403
+ def initialize(amount: nil, date: nil)
3404
+ @amount = amount
3405
+ @date = date
3406
+ end
3407
+ end
3408
+ # Unit of time between subscription charges.
3409
+ attr_accessor :interval
3410
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
3411
+ attr_accessor :interval_count
3412
+ # Name for subscription.
3413
+ attr_accessor :name
3414
+ # Describes the upcoming charge for this subscription.
3415
+ attr_accessor :next_billing
3416
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
3417
+ attr_accessor :reference
3418
+
3419
+ def initialize(
3420
+ interval: nil,
3421
+ interval_count: nil,
3422
+ name: nil,
3423
+ next_billing: nil,
3424
+ reference: nil
3425
+ )
3426
+ @interval = interval
3427
+ @interval_count = interval_count
3428
+ @name = name
3429
+ @next_billing = next_billing
3430
+ @reference = reference
3431
+ end
3432
+ end
3433
+
3434
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3435
+ class BusReservationDetail < ::Stripe::RequestParams
3436
+ class Arrival < ::Stripe::RequestParams
3437
+ class Address < ::Stripe::RequestParams
3438
+ # The city or town.
3439
+ attr_accessor :city
3440
+ # The country in ISO 3166-1 alpha-2 format.
3441
+ attr_accessor :country
3442
+ # The postal code formatted according to country.
3443
+ attr_accessor :postal_code
3444
+ # The state, county, province, or region formatted according to country.
3445
+ attr_accessor :region
3446
+ # Line 1 of the street address.
3447
+ attr_accessor :street_address
3448
+ # Line 2 of the street address.
3449
+ attr_accessor :street_address2
3450
+
3451
+ def initialize(
3452
+ city: nil,
3453
+ country: nil,
3454
+ postal_code: nil,
3455
+ region: nil,
3456
+ street_address: nil,
3457
+ street_address2: nil
3458
+ )
3459
+ @city = city
3460
+ @country = country
3461
+ @postal_code = postal_code
3462
+ @region = region
3463
+ @street_address = street_address
3464
+ @street_address2 = street_address2
3465
+ end
3466
+ end
3467
+ # Address of the arrival location.
3468
+ attr_accessor :address
3469
+ # Identifier name or reference for the arrival location.
3470
+ attr_accessor :arrival_location
3471
+
3472
+ def initialize(address: nil, arrival_location: nil)
3473
+ @address = address
3474
+ @arrival_location = arrival_location
3475
+ end
3476
+ end
3477
+
3478
+ class Departure < ::Stripe::RequestParams
3479
+ class Address < ::Stripe::RequestParams
3480
+ # The city or town.
3481
+ attr_accessor :city
3482
+ # The country in ISO 3166-1 alpha-2 format.
3483
+ attr_accessor :country
3484
+ # The postal code formatted according to country.
3485
+ attr_accessor :postal_code
3486
+ # The state, county, province, or region formatted according to country.
3487
+ attr_accessor :region
3488
+ # Line 1 of the street address.
3489
+ attr_accessor :street_address
3490
+ # Line 2 of the street address.
3491
+ attr_accessor :street_address2
3492
+
3493
+ def initialize(
3494
+ city: nil,
3495
+ country: nil,
3496
+ postal_code: nil,
3497
+ region: nil,
3498
+ street_address: nil,
3499
+ street_address2: nil
3500
+ )
3501
+ @city = city
3502
+ @country = country
3503
+ @postal_code = postal_code
3504
+ @region = region
3505
+ @street_address = street_address
3506
+ @street_address2 = street_address2
3507
+ end
3508
+ end
3509
+ # Address of the departure location.
3510
+ attr_accessor :address
3511
+ # Timestamp of departure.
3512
+ attr_accessor :departs_at
3513
+ # Identifier name or reference for the origin location.
3514
+ attr_accessor :departure_location
3515
+
3516
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3517
+ @address = address
3518
+ @departs_at = departs_at
3519
+ @departure_location = departure_location
3520
+ end
3521
+ end
3522
+
3523
+ class Insurance < ::Stripe::RequestParams
3524
+ # Insurance currency.
3525
+ attr_accessor :currency
3526
+ # Name of the company providing the insurance.
3527
+ attr_accessor :insurance_company_name
3528
+ # Type of insurance.
3529
+ attr_accessor :insurance_type
3530
+ # Price of insurance in cents.
3531
+ attr_accessor :price
3532
+
3533
+ def initialize(
3534
+ currency: nil,
3535
+ insurance_company_name: nil,
3536
+ insurance_type: nil,
3537
+ price: nil
3538
+ )
3539
+ @currency = currency
3540
+ @insurance_company_name = insurance_company_name
3541
+ @insurance_type = insurance_type
3542
+ @price = price
3543
+ end
3544
+ end
3545
+
3546
+ class Passenger < ::Stripe::RequestParams
3547
+ # The family name of the person.
3548
+ attr_accessor :family_name
3549
+ # The given name of the person.
3550
+ attr_accessor :given_name
3551
+
3552
+ def initialize(family_name: nil, given_name: nil)
3553
+ @family_name = family_name
3554
+ @given_name = given_name
3555
+ end
3556
+ end
3557
+ # Name of associated or partner company for the service.
3558
+ attr_accessor :affiliate_name
3559
+ # Arrival details.
3560
+ attr_accessor :arrival
3561
+ # Name of transportation company.
3562
+ attr_accessor :carrier_name
3563
+ # Currency.
3564
+ attr_accessor :currency
3565
+ # Departure details.
3566
+ attr_accessor :departure
3567
+ # List of insurances for this reservation.
3568
+ attr_accessor :insurances
3569
+ # List of passengers that this reservation applies to.
3570
+ attr_accessor :passengers
3571
+ # Price in cents.
3572
+ attr_accessor :price
3573
+ # Ticket class.
3574
+ attr_accessor :ticket_class
3575
+
3576
+ def initialize(
3577
+ affiliate_name: nil,
3578
+ arrival: nil,
3579
+ carrier_name: nil,
3580
+ currency: nil,
3581
+ departure: nil,
3582
+ insurances: nil,
3583
+ passengers: nil,
3584
+ price: nil,
3585
+ ticket_class: nil
3586
+ )
3587
+ @affiliate_name = affiliate_name
3588
+ @arrival = arrival
3589
+ @carrier_name = carrier_name
3590
+ @currency = currency
3591
+ @departure = departure
3592
+ @insurances = insurances
3593
+ @passengers = passengers
3594
+ @price = price
3595
+ @ticket_class = ticket_class
3596
+ end
3597
+ end
3598
+
3599
+ class EventReservationDetail < ::Stripe::RequestParams
3600
+ class Address < ::Stripe::RequestParams
3601
+ # The city or town.
3602
+ attr_accessor :city
3603
+ # The country in ISO 3166-1 alpha-2 format.
3604
+ attr_accessor :country
3605
+ # The postal code formatted according to country.
3606
+ attr_accessor :postal_code
3607
+ # The state, county, province, or region formatted according to country.
3608
+ attr_accessor :region
3609
+ # Line 1 of the street address.
3610
+ attr_accessor :street_address
3611
+ # Line 2 of the street address.
3612
+ attr_accessor :street_address2
3613
+
3614
+ def initialize(
3615
+ city: nil,
3616
+ country: nil,
3617
+ postal_code: nil,
3618
+ region: nil,
3619
+ street_address: nil,
3620
+ street_address2: nil
3621
+ )
3622
+ @city = city
3623
+ @country = country
3624
+ @postal_code = postal_code
3625
+ @region = region
3626
+ @street_address = street_address
3627
+ @street_address2 = street_address2
3628
+ end
3629
+ end
3630
+
3631
+ class Insurance < ::Stripe::RequestParams
3632
+ # Insurance currency.
3633
+ attr_accessor :currency
3634
+ # Name of the company providing the insurance.
3635
+ attr_accessor :insurance_company_name
3636
+ # Type of insurance.
3637
+ attr_accessor :insurance_type
3638
+ # Price of insurance in cents.
3639
+ attr_accessor :price
3640
+
3641
+ def initialize(
3642
+ currency: nil,
3643
+ insurance_company_name: nil,
3644
+ insurance_type: nil,
3645
+ price: nil
3646
+ )
3647
+ @currency = currency
3648
+ @insurance_company_name = insurance_company_name
3649
+ @insurance_type = insurance_type
3650
+ @price = price
3651
+ end
3652
+ end
3653
+ # Indicates if the tickets are digitally checked when entering the venue.
3654
+ attr_accessor :access_controlled_venue
3655
+ # Address of the event.
3656
+ attr_accessor :address
3657
+ # Name of associated or partner company for the service.
3658
+ attr_accessor :affiliate_name
3659
+ # End timestamp of the event.
3660
+ attr_accessor :ends_at
3661
+ # Company selling the ticket.
3662
+ attr_accessor :event_company_name
3663
+ # Name of the event.
3664
+ attr_accessor :event_name
3665
+ # Type of the event.
3666
+ attr_accessor :event_type
3667
+ # List of insurances for this event.
3668
+ attr_accessor :insurances
3669
+ # Start timestamp of the event.
3670
+ attr_accessor :starts_at
3671
+ # Name of the venue where the event takes place.
3672
+ attr_accessor :venue_name
3673
+
3674
+ def initialize(
3675
+ access_controlled_venue: nil,
3676
+ address: nil,
3677
+ affiliate_name: nil,
3678
+ ends_at: nil,
3679
+ event_company_name: nil,
3680
+ event_name: nil,
3681
+ event_type: nil,
3682
+ insurances: nil,
3683
+ starts_at: nil,
3684
+ venue_name: nil
3685
+ )
3686
+ @access_controlled_venue = access_controlled_venue
3687
+ @address = address
3688
+ @affiliate_name = affiliate_name
3689
+ @ends_at = ends_at
3690
+ @event_company_name = event_company_name
3691
+ @event_name = event_name
3692
+ @event_type = event_type
3693
+ @insurances = insurances
3694
+ @starts_at = starts_at
3695
+ @venue_name = venue_name
3696
+ end
3697
+ end
3698
+
3699
+ class FerryReservationDetail < ::Stripe::RequestParams
3700
+ class Arrival < ::Stripe::RequestParams
3701
+ class Address < ::Stripe::RequestParams
3702
+ # The city or town.
3703
+ attr_accessor :city
3704
+ # The country in ISO 3166-1 alpha-2 format.
3705
+ attr_accessor :country
3706
+ # The postal code formatted according to country.
3707
+ attr_accessor :postal_code
3708
+ # The state, county, province, or region formatted according to country.
3709
+ attr_accessor :region
3710
+ # Line 1 of the street address.
3711
+ attr_accessor :street_address
3712
+ # Line 2 of the street address.
3713
+ attr_accessor :street_address2
3714
+
3715
+ def initialize(
3716
+ city: nil,
3717
+ country: nil,
3718
+ postal_code: nil,
3719
+ region: nil,
3720
+ street_address: nil,
3721
+ street_address2: nil
3722
+ )
3723
+ @city = city
3724
+ @country = country
3725
+ @postal_code = postal_code
3726
+ @region = region
3727
+ @street_address = street_address
3728
+ @street_address2 = street_address2
3729
+ end
3730
+ end
3731
+ # Address of the arrival location.
3732
+ attr_accessor :address
3733
+ # Identifier name or reference for the arrival location.
3734
+ attr_accessor :arrival_location
3735
+
3736
+ def initialize(address: nil, arrival_location: nil)
3737
+ @address = address
3738
+ @arrival_location = arrival_location
3739
+ end
3740
+ end
3741
+
3742
+ class Departure < ::Stripe::RequestParams
3743
+ class Address < ::Stripe::RequestParams
3744
+ # The city or town.
3745
+ attr_accessor :city
3746
+ # The country in ISO 3166-1 alpha-2 format.
3747
+ attr_accessor :country
3748
+ # The postal code formatted according to country.
3749
+ attr_accessor :postal_code
3750
+ # The state, county, province, or region formatted according to country.
3751
+ attr_accessor :region
3752
+ # Line 1 of the street address.
3753
+ attr_accessor :street_address
3754
+ # Line 2 of the street address.
3755
+ attr_accessor :street_address2
3756
+
3757
+ def initialize(
3758
+ city: nil,
3759
+ country: nil,
3760
+ postal_code: nil,
3761
+ region: nil,
3762
+ street_address: nil,
3763
+ street_address2: nil
3764
+ )
3765
+ @city = city
3766
+ @country = country
3767
+ @postal_code = postal_code
3768
+ @region = region
3769
+ @street_address = street_address
3770
+ @street_address2 = street_address2
3771
+ end
3772
+ end
3773
+ # Address of the departure location.
3774
+ attr_accessor :address
3775
+ # Timestamp of departure.
3776
+ attr_accessor :departs_at
3777
+ # Identifier name or reference for the origin location.
3778
+ attr_accessor :departure_location
3779
+
3780
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3781
+ @address = address
3782
+ @departs_at = departs_at
3783
+ @departure_location = departure_location
3784
+ end
3785
+ end
3786
+
3787
+ class Insurance < ::Stripe::RequestParams
3788
+ # Insurance currency.
3789
+ attr_accessor :currency
3790
+ # Name of the company providing the insurance.
3791
+ attr_accessor :insurance_company_name
3792
+ # Type of insurance.
3793
+ attr_accessor :insurance_type
3794
+ # Price of insurance in cents.
3795
+ attr_accessor :price
3796
+
3797
+ def initialize(
3798
+ currency: nil,
3799
+ insurance_company_name: nil,
3800
+ insurance_type: nil,
3801
+ price: nil
3802
+ )
3803
+ @currency = currency
3804
+ @insurance_company_name = insurance_company_name
3805
+ @insurance_type = insurance_type
3806
+ @price = price
3807
+ end
3808
+ end
3809
+
3810
+ class Passenger < ::Stripe::RequestParams
3811
+ # The family name of the person.
3812
+ attr_accessor :family_name
3813
+ # The given name of the person.
3814
+ attr_accessor :given_name
3815
+
3816
+ def initialize(family_name: nil, given_name: nil)
3817
+ @family_name = family_name
3818
+ @given_name = given_name
3819
+ end
3820
+ end
3821
+ # Name of associated or partner company for the service.
3822
+ attr_accessor :affiliate_name
3823
+ # Arrival details.
3824
+ attr_accessor :arrival
3825
+ # Name of transportation company.
3826
+ attr_accessor :carrier_name
3827
+ # Currency.
3828
+ attr_accessor :currency
3829
+ # Departure details.
3830
+ attr_accessor :departure
3831
+ # List of insurances for this reservation.
3832
+ attr_accessor :insurances
3833
+ # List of passengers that this reservation applies to.
3834
+ attr_accessor :passengers
3835
+ # Price in cents.
3836
+ attr_accessor :price
3837
+ # Ticket class.
3838
+ attr_accessor :ticket_class
3839
+
3840
+ def initialize(
3841
+ affiliate_name: nil,
3842
+ arrival: nil,
3843
+ carrier_name: nil,
3844
+ currency: nil,
3845
+ departure: nil,
3846
+ insurances: nil,
3847
+ passengers: nil,
3848
+ price: nil,
3849
+ ticket_class: nil
3850
+ )
3851
+ @affiliate_name = affiliate_name
3852
+ @arrival = arrival
3853
+ @carrier_name = carrier_name
3854
+ @currency = currency
3855
+ @departure = departure
3856
+ @insurances = insurances
3857
+ @passengers = passengers
3858
+ @price = price
3859
+ @ticket_class = ticket_class
3860
+ end
3861
+ end
3862
+
3863
+ class Insurance < ::Stripe::RequestParams
3864
+ # Insurance currency.
3865
+ attr_accessor :currency
3866
+ # Name of the company providing the insurance.
3867
+ attr_accessor :insurance_company_name
3868
+ # Type of insurance
3869
+ attr_accessor :insurance_type
3870
+ # Price of insurance in cents.
3871
+ attr_accessor :price
3872
+
3873
+ def initialize(
3874
+ currency: nil,
3875
+ insurance_company_name: nil,
3876
+ insurance_type: nil,
3877
+ price: nil
3878
+ )
3879
+ @currency = currency
3880
+ @insurance_company_name = insurance_company_name
3881
+ @insurance_type = insurance_type
3882
+ @price = price
3883
+ end
3884
+ end
3885
+
3886
+ class MarketplaceSeller < ::Stripe::RequestParams
3887
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3888
+ # The city or town.
3889
+ attr_accessor :city
3890
+ # The country in ISO 3166-1 alpha-2 format.
3891
+ attr_accessor :country
3892
+ # The postal code formatted according to country.
3893
+ attr_accessor :postal_code
3894
+ # The state, county, province, or region formatted according to country.
3895
+ attr_accessor :region
3896
+ # Line 1 of the street address.
3897
+ attr_accessor :street_address
3898
+ # Line 2 of the street address.
3899
+ attr_accessor :street_address2
3900
+
3901
+ def initialize(
3902
+ city: nil,
3903
+ country: nil,
3904
+ postal_code: nil,
3905
+ region: nil,
3906
+ street_address: nil,
3907
+ street_address2: nil
3908
+ )
3909
+ @city = city
3910
+ @country = country
3911
+ @postal_code = postal_code
3912
+ @region = region
3913
+ @street_address = street_address
3914
+ @street_address2 = street_address2
3915
+ end
3916
+ end
3917
+ # The references to line items for purchases with multiple associated sub-sellers.
3918
+ attr_accessor :line_item_references
3919
+ # The address of the selling or delivering merchant.
3920
+ attr_accessor :marketplace_seller_address
3921
+ # The name of the marketplace seller.
3922
+ attr_accessor :marketplace_seller_name
3923
+ # The unique identifier for the marketplace seller.
3924
+ attr_accessor :marketplace_seller_reference
3925
+ # The number of transactions the sub-seller completed in the last 12 months.
3926
+ attr_accessor :number_of_transactions
3927
+ # The category of the product.
3928
+ attr_accessor :product_category
3929
+ # The date when the seller's account with the marketplace was last logged in.
3930
+ attr_accessor :seller_last_login_at
3931
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3932
+ attr_accessor :seller_rating
3933
+ # The date when the seller's account with the marketplace was created.
3934
+ attr_accessor :seller_registered_at
3935
+ # The date when the seller's account with the marketplace was last updated.
3936
+ attr_accessor :seller_updated_at
3937
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3938
+ attr_accessor :shipping_references
3939
+ # 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.
3940
+ attr_accessor :volume_of_transactions
3941
+
3942
+ def initialize(
3943
+ line_item_references: nil,
3944
+ marketplace_seller_address: nil,
3945
+ marketplace_seller_name: nil,
3946
+ marketplace_seller_reference: nil,
3947
+ number_of_transactions: nil,
3948
+ product_category: nil,
3949
+ seller_last_login_at: nil,
3950
+ seller_rating: nil,
3951
+ seller_registered_at: nil,
3952
+ seller_updated_at: nil,
3953
+ shipping_references: nil,
3954
+ volume_of_transactions: nil
3955
+ )
3956
+ @line_item_references = line_item_references
3957
+ @marketplace_seller_address = marketplace_seller_address
3958
+ @marketplace_seller_name = marketplace_seller_name
3959
+ @marketplace_seller_reference = marketplace_seller_reference
3960
+ @number_of_transactions = number_of_transactions
3961
+ @product_category = product_category
3962
+ @seller_last_login_at = seller_last_login_at
3963
+ @seller_rating = seller_rating
3964
+ @seller_registered_at = seller_registered_at
3965
+ @seller_updated_at = seller_updated_at
3966
+ @shipping_references = shipping_references
3967
+ @volume_of_transactions = volume_of_transactions
3968
+ end
3969
+ end
3970
+
3971
+ class RoundTripReservationDetail < ::Stripe::RequestParams
3972
+ class Arrival < ::Stripe::RequestParams
3973
+ class Address < ::Stripe::RequestParams
3974
+ # The city or town.
3975
+ attr_accessor :city
3976
+ # The country in ISO 3166-1 alpha-2 format.
3977
+ attr_accessor :country
3978
+ # The postal code formatted according to country.
3979
+ attr_accessor :postal_code
3980
+ # The state, county, province, or region formatted according to country.
3981
+ attr_accessor :region
3982
+ # Line 1 of the street address.
3983
+ attr_accessor :street_address
3984
+ # Line 2 of the street address.
3985
+ attr_accessor :street_address2
3986
+
3987
+ def initialize(
3988
+ city: nil,
3989
+ country: nil,
3990
+ postal_code: nil,
3991
+ region: nil,
3992
+ street_address: nil,
3993
+ street_address2: nil
3994
+ )
3995
+ @city = city
3996
+ @country = country
3997
+ @postal_code = postal_code
3998
+ @region = region
3999
+ @street_address = street_address
4000
+ @street_address2 = street_address2
4001
+ end
4002
+ end
4003
+ # Address of the arrival location.
4004
+ attr_accessor :address
4005
+ # Identifier name or reference for the arrival location.
4006
+ attr_accessor :arrival_location
4007
+
4008
+ def initialize(address: nil, arrival_location: nil)
4009
+ @address = address
4010
+ @arrival_location = arrival_location
4011
+ end
4012
+ end
4013
+
4014
+ class Departure < ::Stripe::RequestParams
4015
+ class Address < ::Stripe::RequestParams
4016
+ # The city or town.
4017
+ attr_accessor :city
4018
+ # The country in ISO 3166-1 alpha-2 format.
4019
+ attr_accessor :country
4020
+ # The postal code formatted according to country.
4021
+ attr_accessor :postal_code
4022
+ # The state, county, province, or region formatted according to country.
4023
+ attr_accessor :region
4024
+ # Line 1 of the street address.
4025
+ attr_accessor :street_address
4026
+ # Line 2 of the street address.
4027
+ attr_accessor :street_address2
4028
+
4029
+ def initialize(
4030
+ city: nil,
4031
+ country: nil,
4032
+ postal_code: nil,
4033
+ region: nil,
4034
+ street_address: nil,
4035
+ street_address2: nil
4036
+ )
4037
+ @city = city
4038
+ @country = country
4039
+ @postal_code = postal_code
4040
+ @region = region
4041
+ @street_address = street_address
4042
+ @street_address2 = street_address2
4043
+ end
4044
+ end
4045
+ # Address of the departure location.
4046
+ attr_accessor :address
4047
+ # Timestamp of departure.
4048
+ attr_accessor :departs_at
4049
+ # Identifier name or reference for the origin location.
4050
+ attr_accessor :departure_location
4051
+
4052
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4053
+ @address = address
4054
+ @departs_at = departs_at
4055
+ @departure_location = departure_location
4056
+ end
4057
+ end
4058
+
4059
+ class Insurance < ::Stripe::RequestParams
4060
+ # Insurance currency.
4061
+ attr_accessor :currency
4062
+ # Name of the company providing the insurance.
4063
+ attr_accessor :insurance_company_name
4064
+ # Type of insurance.
4065
+ attr_accessor :insurance_type
4066
+ # Price of insurance in cents.
4067
+ attr_accessor :price
4068
+
4069
+ def initialize(
4070
+ currency: nil,
4071
+ insurance_company_name: nil,
4072
+ insurance_type: nil,
4073
+ price: nil
4074
+ )
4075
+ @currency = currency
4076
+ @insurance_company_name = insurance_company_name
4077
+ @insurance_type = insurance_type
4078
+ @price = price
4079
+ end
4080
+ end
1526
4081
 
1527
- class InteracPresent < ::Stripe::RequestParams; end
4082
+ class Passenger < ::Stripe::RequestParams
4083
+ # The family name of the person.
4084
+ attr_accessor :family_name
4085
+ # The given name of the person.
4086
+ attr_accessor :given_name
1528
4087
 
1529
- class KakaoPay < ::Stripe::RequestParams
1530
- # Controls when the funds are captured from the customer's account.
1531
- #
1532
- # 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.
1533
- #
1534
- # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1535
- attr_accessor :capture_method
1536
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1537
- #
1538
- # 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.
1539
- #
1540
- # 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.
1541
- #
1542
- # 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).
1543
- attr_accessor :setup_future_usage
4088
+ def initialize(family_name: nil, given_name: nil)
4089
+ @family_name = family_name
4090
+ @given_name = given_name
4091
+ end
4092
+ end
4093
+ # Name of associated or partner company for the service.
4094
+ attr_accessor :affiliate_name
4095
+ # Arrival details.
4096
+ attr_accessor :arrival
4097
+ # Name of transportation company.
4098
+ attr_accessor :carrier_name
4099
+ # Currency.
4100
+ attr_accessor :currency
4101
+ # Departure details.
4102
+ attr_accessor :departure
4103
+ # List of insurances for this reservation.
4104
+ attr_accessor :insurances
4105
+ # List of passengers that this reservation applies to.
4106
+ attr_accessor :passengers
4107
+ # Price in cents.
4108
+ attr_accessor :price
4109
+ # Ticket class.
4110
+ attr_accessor :ticket_class
1544
4111
 
1545
- def initialize(capture_method: nil, setup_future_usage: nil)
1546
- @capture_method = capture_method
1547
- @setup_future_usage = setup_future_usage
1548
- end
1549
- end
4112
+ def initialize(
4113
+ affiliate_name: nil,
4114
+ arrival: nil,
4115
+ carrier_name: nil,
4116
+ currency: nil,
4117
+ departure: nil,
4118
+ insurances: nil,
4119
+ passengers: nil,
4120
+ price: nil,
4121
+ ticket_class: nil
4122
+ )
4123
+ @affiliate_name = affiliate_name
4124
+ @arrival = arrival
4125
+ @carrier_name = carrier_name
4126
+ @currency = currency
4127
+ @departure = departure
4128
+ @insurances = insurances
4129
+ @passengers = passengers
4130
+ @price = price
4131
+ @ticket_class = ticket_class
4132
+ end
4133
+ end
1550
4134
 
1551
- class Klarna < ::Stripe::RequestParams
1552
- class OnDemand < ::Stripe::RequestParams
1553
- # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1554
- attr_accessor :average_amount
1555
- # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1556
- attr_accessor :maximum_amount
1557
- # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1558
- attr_accessor :minimum_amount
1559
- # Interval at which the customer is making purchases
1560
- attr_accessor :purchase_interval
1561
- # The number of `purchase_interval` between charges
1562
- attr_accessor :purchase_interval_count
4135
+ class TrainReservationDetail < ::Stripe::RequestParams
4136
+ class Arrival < ::Stripe::RequestParams
4137
+ class Address < ::Stripe::RequestParams
4138
+ # The city or town.
4139
+ attr_accessor :city
4140
+ # The country in ISO 3166-1 alpha-2 format.
4141
+ attr_accessor :country
4142
+ # The postal code formatted according to country.
4143
+ attr_accessor :postal_code
4144
+ # The state, county, province, or region formatted according to country.
4145
+ attr_accessor :region
4146
+ # Line 1 of the street address.
4147
+ attr_accessor :street_address
4148
+ # Line 2 of the street address.
4149
+ attr_accessor :street_address2
4150
+
4151
+ def initialize(
4152
+ city: nil,
4153
+ country: nil,
4154
+ postal_code: nil,
4155
+ region: nil,
4156
+ street_address: nil,
4157
+ street_address2: nil
4158
+ )
4159
+ @city = city
4160
+ @country = country
4161
+ @postal_code = postal_code
4162
+ @region = region
4163
+ @street_address = street_address
4164
+ @street_address2 = street_address2
4165
+ end
4166
+ end
4167
+ # Address of the arrival location.
4168
+ attr_accessor :address
4169
+ # Identifier name or reference for the arrival location.
4170
+ attr_accessor :arrival_location
4171
+
4172
+ def initialize(address: nil, arrival_location: nil)
4173
+ @address = address
4174
+ @arrival_location = arrival_location
4175
+ end
4176
+ end
1563
4177
 
1564
- def initialize(
1565
- average_amount: nil,
1566
- maximum_amount: nil,
1567
- minimum_amount: nil,
1568
- purchase_interval: nil,
1569
- purchase_interval_count: nil
1570
- )
1571
- @average_amount = average_amount
1572
- @maximum_amount = maximum_amount
1573
- @minimum_amount = minimum_amount
1574
- @purchase_interval = purchase_interval
1575
- @purchase_interval_count = purchase_interval_count
4178
+ class Departure < ::Stripe::RequestParams
4179
+ class Address < ::Stripe::RequestParams
4180
+ # The city or town.
4181
+ attr_accessor :city
4182
+ # The country in ISO 3166-1 alpha-2 format.
4183
+ attr_accessor :country
4184
+ # The postal code formatted according to country.
4185
+ attr_accessor :postal_code
4186
+ # The state, county, province, or region formatted according to country.
4187
+ attr_accessor :region
4188
+ # Line 1 of the street address.
4189
+ attr_accessor :street_address
4190
+ # Line 2 of the street address.
4191
+ attr_accessor :street_address2
4192
+
4193
+ def initialize(
4194
+ city: nil,
4195
+ country: nil,
4196
+ postal_code: nil,
4197
+ region: nil,
4198
+ street_address: nil,
4199
+ street_address2: nil
4200
+ )
4201
+ @city = city
4202
+ @country = country
4203
+ @postal_code = postal_code
4204
+ @region = region
4205
+ @street_address = street_address
4206
+ @street_address2 = street_address2
4207
+ end
4208
+ end
4209
+ # Address of the departure location.
4210
+ attr_accessor :address
4211
+ # Timestamp of departure.
4212
+ attr_accessor :departs_at
4213
+ # Identifier name or reference for the origin location.
4214
+ attr_accessor :departure_location
4215
+
4216
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4217
+ @address = address
4218
+ @departs_at = departs_at
4219
+ @departure_location = departure_location
4220
+ end
4221
+ end
4222
+
4223
+ class Insurance < ::Stripe::RequestParams
4224
+ # Insurance currency.
4225
+ attr_accessor :currency
4226
+ # Name of the company providing the insurance.
4227
+ attr_accessor :insurance_company_name
4228
+ # Type of insurance.
4229
+ attr_accessor :insurance_type
4230
+ # Price of insurance in cents.
4231
+ attr_accessor :price
4232
+
4233
+ def initialize(
4234
+ currency: nil,
4235
+ insurance_company_name: nil,
4236
+ insurance_type: nil,
4237
+ price: nil
4238
+ )
4239
+ @currency = currency
4240
+ @insurance_company_name = insurance_company_name
4241
+ @insurance_type = insurance_type
4242
+ @price = price
4243
+ end
4244
+ end
4245
+
4246
+ class Passenger < ::Stripe::RequestParams
4247
+ # The family name of the person.
4248
+ attr_accessor :family_name
4249
+ # The given name of the person.
4250
+ attr_accessor :given_name
4251
+
4252
+ def initialize(family_name: nil, given_name: nil)
4253
+ @family_name = family_name
4254
+ @given_name = given_name
4255
+ end
4256
+ end
4257
+ # Name of associated or partner company for the service.
4258
+ attr_accessor :affiliate_name
4259
+ # Arrival details.
4260
+ attr_accessor :arrival
4261
+ # Name of transportation company.
4262
+ attr_accessor :carrier_name
4263
+ # Currency.
4264
+ attr_accessor :currency
4265
+ # Departure details.
4266
+ attr_accessor :departure
4267
+ # List of insurances for this reservation.
4268
+ attr_accessor :insurances
4269
+ # List of passengers that this reservation applies to.
4270
+ attr_accessor :passengers
4271
+ # Price in cents.
4272
+ attr_accessor :price
4273
+ # Ticket class.
4274
+ attr_accessor :ticket_class
4275
+
4276
+ def initialize(
4277
+ affiliate_name: nil,
4278
+ arrival: nil,
4279
+ carrier_name: nil,
4280
+ currency: nil,
4281
+ departure: nil,
4282
+ insurances: nil,
4283
+ passengers: nil,
4284
+ price: nil,
4285
+ ticket_class: nil
4286
+ )
4287
+ @affiliate_name = affiliate_name
4288
+ @arrival = arrival
4289
+ @carrier_name = carrier_name
4290
+ @currency = currency
4291
+ @departure = departure
4292
+ @insurances = insurances
4293
+ @passengers = passengers
4294
+ @price = price
4295
+ @ticket_class = ticket_class
4296
+ end
1576
4297
  end
1577
- end
1578
4298
 
1579
- class Subscription < ::Stripe::RequestParams
1580
- class NextBilling < ::Stripe::RequestParams
1581
- # The amount of the next charge for the subscription.
1582
- attr_accessor :amount
1583
- # The date of the next charge for the subscription in YYYY-MM-DD format.
1584
- attr_accessor :date
4299
+ class Voucher < ::Stripe::RequestParams
4300
+ # Name of associated or partner company for this voucher.
4301
+ attr_accessor :affiliate_name
4302
+ # The voucher validity end time.
4303
+ attr_accessor :ends_at
4304
+ # The voucher validity start time.
4305
+ attr_accessor :starts_at
4306
+ # The issuer or provider of this voucher.
4307
+ attr_accessor :voucher_company
4308
+ # The name or reference to identify the voucher.
4309
+ attr_accessor :voucher_name
4310
+ # The type of this voucher.
4311
+ attr_accessor :voucher_type
1585
4312
 
1586
- def initialize(amount: nil, date: nil)
1587
- @amount = amount
1588
- @date = date
4313
+ def initialize(
4314
+ affiliate_name: nil,
4315
+ ends_at: nil,
4316
+ starts_at: nil,
4317
+ voucher_company: nil,
4318
+ voucher_name: nil,
4319
+ voucher_type: nil
4320
+ )
4321
+ @affiliate_name = affiliate_name
4322
+ @ends_at = ends_at
4323
+ @starts_at = starts_at
4324
+ @voucher_company = voucher_company
4325
+ @voucher_name = voucher_name
4326
+ @voucher_type = voucher_type
1589
4327
  end
1590
4328
  end
1591
- # Unit of time between subscription charges.
1592
- attr_accessor :interval
1593
- # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1594
- attr_accessor :interval_count
1595
- # Name for subscription.
1596
- attr_accessor :name
1597
- # Describes the upcoming charge for this subscription.
1598
- attr_accessor :next_billing
1599
- # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1600
- attr_accessor :reference
4329
+ # Supplementary bus reservation details.
4330
+ attr_accessor :bus_reservation_details
4331
+ # Supplementary event reservation details.
4332
+ attr_accessor :event_reservation_details
4333
+ # Supplementary ferry reservation details.
4334
+ attr_accessor :ferry_reservation_details
4335
+ # Supplementary insurance details.
4336
+ attr_accessor :insurances
4337
+ # Supplementary marketplace seller details.
4338
+ attr_accessor :marketplace_sellers
4339
+ # Supplementary round trip reservation details.
4340
+ attr_accessor :round_trip_reservation_details
4341
+ # Supplementary train reservation details.
4342
+ attr_accessor :train_reservation_details
4343
+ # Voucher details, such as a gift card or discount code.
4344
+ attr_accessor :vouchers
1601
4345
 
1602
4346
  def initialize(
1603
- interval: nil,
1604
- interval_count: nil,
1605
- name: nil,
1606
- next_billing: nil,
1607
- reference: nil
4347
+ bus_reservation_details: nil,
4348
+ event_reservation_details: nil,
4349
+ ferry_reservation_details: nil,
4350
+ insurances: nil,
4351
+ marketplace_sellers: nil,
4352
+ round_trip_reservation_details: nil,
4353
+ train_reservation_details: nil,
4354
+ vouchers: nil
1608
4355
  )
1609
- @interval = interval
1610
- @interval_count = interval_count
1611
- @name = name
1612
- @next_billing = next_billing
1613
- @reference = reference
4356
+ @bus_reservation_details = bus_reservation_details
4357
+ @event_reservation_details = event_reservation_details
4358
+ @ferry_reservation_details = ferry_reservation_details
4359
+ @insurances = insurances
4360
+ @marketplace_sellers = marketplace_sellers
4361
+ @round_trip_reservation_details = round_trip_reservation_details
4362
+ @train_reservation_details = train_reservation_details
4363
+ @vouchers = vouchers
1614
4364
  end
1615
4365
  end
1616
4366
  # Controls when the funds are captured from the customer's account.
@@ -1635,19 +4385,23 @@ module Stripe
1635
4385
  attr_accessor :setup_future_usage
1636
4386
  # Subscription details if setting up or charging a subscription.
1637
4387
  attr_accessor :subscriptions
4388
+ # Supplementary Purchase Data for the corresponding Klarna payment
4389
+ attr_accessor :supplementary_purchase_data
1638
4390
 
1639
4391
  def initialize(
1640
4392
  capture_method: nil,
1641
4393
  on_demand: nil,
1642
4394
  preferred_locale: nil,
1643
4395
  setup_future_usage: nil,
1644
- subscriptions: nil
4396
+ subscriptions: nil,
4397
+ supplementary_purchase_data: nil
1645
4398
  )
1646
4399
  @capture_method = capture_method
1647
4400
  @on_demand = on_demand
1648
4401
  @preferred_locale = preferred_locale
1649
4402
  @setup_future_usage = setup_future_usage
1650
4403
  @subscriptions = subscriptions
4404
+ @supplementary_purchase_data = supplementary_purchase_data
1651
4405
  end
1652
4406
  end
1653
4407
 
@@ -1908,12 +4662,65 @@ module Stripe
1908
4662
  end
1909
4663
 
1910
4664
  class Paypal < ::Stripe::RequestParams
4665
+ class LineItem < ::Stripe::RequestParams
4666
+ class Tax < ::Stripe::RequestParams
4667
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4668
+ attr_accessor :amount
4669
+ # The tax behavior for the line item.
4670
+ attr_accessor :behavior
4671
+
4672
+ def initialize(amount: nil, behavior: nil)
4673
+ @amount = amount
4674
+ @behavior = behavior
4675
+ end
4676
+ end
4677
+ # Type of the line item.
4678
+ attr_accessor :category
4679
+ # Description of the line item.
4680
+ attr_accessor :description
4681
+ # Descriptive name of the line item.
4682
+ attr_accessor :name
4683
+ # Quantity of the line item. Must be a positive number.
4684
+ attr_accessor :quantity
4685
+ # Client facing stock keeping unit, article number or similar.
4686
+ attr_accessor :sku
4687
+ # The Stripe account ID of the connected account that sells the item.
4688
+ attr_accessor :sold_by
4689
+ # The tax information for the line item.
4690
+ attr_accessor :tax
4691
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
4692
+ attr_accessor :unit_amount
4693
+
4694
+ def initialize(
4695
+ category: nil,
4696
+ description: nil,
4697
+ name: nil,
4698
+ quantity: nil,
4699
+ sku: nil,
4700
+ sold_by: nil,
4701
+ tax: nil,
4702
+ unit_amount: nil
4703
+ )
4704
+ @category = category
4705
+ @description = description
4706
+ @name = name
4707
+ @quantity = quantity
4708
+ @sku = sku
4709
+ @sold_by = sold_by
4710
+ @tax = tax
4711
+ @unit_amount = unit_amount
4712
+ end
4713
+ end
1911
4714
  # Controls when the funds will be captured from the customer's account.
1912
4715
  attr_accessor :capture_method
4716
+ # The line items purchased by the customer.
4717
+ attr_accessor :line_items
1913
4718
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1914
4719
  attr_accessor :preferred_locale
1915
4720
  # 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.
1916
4721
  attr_accessor :reference
4722
+ # 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.
4723
+ attr_accessor :reference_id
1917
4724
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1918
4725
  attr_accessor :risk_correlation_id
1919
4726
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1926,29 +4733,140 @@ module Stripe
1926
4733
  #
1927
4734
  # 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`.
1928
4735
  attr_accessor :setup_future_usage
4736
+ # 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.
4737
+ attr_accessor :subsellers
1929
4738
 
1930
4739
  def initialize(
1931
4740
  capture_method: nil,
4741
+ line_items: nil,
1932
4742
  preferred_locale: nil,
1933
4743
  reference: nil,
4744
+ reference_id: nil,
1934
4745
  risk_correlation_id: nil,
1935
- setup_future_usage: nil
4746
+ setup_future_usage: nil,
4747
+ subsellers: nil
1936
4748
  )
1937
4749
  @capture_method = capture_method
4750
+ @line_items = line_items
1938
4751
  @preferred_locale = preferred_locale
1939
4752
  @reference = reference
4753
+ @reference_id = reference_id
1940
4754
  @risk_correlation_id = risk_correlation_id
1941
4755
  @setup_future_usage = setup_future_usage
4756
+ @subsellers = subsellers
4757
+ end
4758
+ end
4759
+
4760
+ class Paypay < ::Stripe::RequestParams
4761
+ # Controls when the funds are captured from the customer's account.
4762
+ #
4763
+ # 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.
4764
+ #
4765
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
4766
+ attr_accessor :capture_method
4767
+
4768
+ def initialize(capture_method: nil)
4769
+ @capture_method = capture_method
4770
+ end
4771
+ end
4772
+
4773
+ class Payto < ::Stripe::RequestParams
4774
+ class MandateOptions < ::Stripe::RequestParams
4775
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
4776
+ attr_accessor :amount
4777
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
4778
+ attr_accessor :amount_type
4779
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4780
+ attr_accessor :end_date
4781
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
4782
+ attr_accessor :payment_schedule
4783
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
4784
+ attr_accessor :payments_per_period
4785
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
4786
+ attr_accessor :purpose
4787
+
4788
+ def initialize(
4789
+ amount: nil,
4790
+ amount_type: nil,
4791
+ end_date: nil,
4792
+ payment_schedule: nil,
4793
+ payments_per_period: nil,
4794
+ purpose: nil
4795
+ )
4796
+ @amount = amount
4797
+ @amount_type = amount_type
4798
+ @end_date = end_date
4799
+ @payment_schedule = payment_schedule
4800
+ @payments_per_period = payments_per_period
4801
+ @purpose = purpose
4802
+ end
4803
+ end
4804
+ # Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
4805
+ attr_accessor :mandate_options
4806
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4807
+ #
4808
+ # 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.
4809
+ #
4810
+ # 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.
4811
+ #
4812
+ # 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).
4813
+ #
4814
+ # 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`.
4815
+ attr_accessor :setup_future_usage
4816
+
4817
+ def initialize(mandate_options: nil, setup_future_usage: nil)
4818
+ @mandate_options = mandate_options
4819
+ @setup_future_usage = setup_future_usage
1942
4820
  end
1943
4821
  end
1944
4822
 
1945
4823
  class Pix < ::Stripe::RequestParams
4824
+ class MandateOptions < ::Stripe::RequestParams
4825
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
4826
+ attr_accessor :amount
4827
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
4828
+ attr_accessor :amount_includes_iof
4829
+ # Type of amount. Defaults to `maximum`.
4830
+ attr_accessor :amount_type
4831
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
4832
+ attr_accessor :currency
4833
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
4834
+ attr_accessor :end_date
4835
+ # Schedule at which the future payments will be charged. Defaults to `weekly`.
4836
+ attr_accessor :payment_schedule
4837
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
4838
+ attr_accessor :reference
4839
+ # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
4840
+ attr_accessor :start_date
4841
+
4842
+ def initialize(
4843
+ amount: nil,
4844
+ amount_includes_iof: nil,
4845
+ amount_type: nil,
4846
+ currency: nil,
4847
+ end_date: nil,
4848
+ payment_schedule: nil,
4849
+ reference: nil,
4850
+ start_date: nil
4851
+ )
4852
+ @amount = amount
4853
+ @amount_includes_iof = amount_includes_iof
4854
+ @amount_type = amount_type
4855
+ @currency = currency
4856
+ @end_date = end_date
4857
+ @payment_schedule = payment_schedule
4858
+ @reference = reference
4859
+ @start_date = start_date
4860
+ end
4861
+ end
1946
4862
  # Determines if the amount includes the IOF tax. Defaults to `never`.
1947
4863
  attr_accessor :amount_includes_iof
1948
4864
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1949
4865
  attr_accessor :expires_after_seconds
1950
4866
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
1951
4867
  attr_accessor :expires_at
4868
+ # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
4869
+ attr_accessor :mandate_options
1952
4870
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1953
4871
  #
1954
4872
  # 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.
@@ -1964,11 +4882,13 @@ module Stripe
1964
4882
  amount_includes_iof: nil,
1965
4883
  expires_after_seconds: nil,
1966
4884
  expires_at: nil,
4885
+ mandate_options: nil,
1967
4886
  setup_future_usage: nil
1968
4887
  )
1969
4888
  @amount_includes_iof = amount_includes_iof
1970
4889
  @expires_after_seconds = expires_after_seconds
1971
4890
  @expires_at = expires_at
4891
+ @mandate_options = mandate_options
1972
4892
  @setup_future_usage = setup_future_usage
1973
4893
  end
1974
4894
  end
@@ -1990,6 +4910,25 @@ module Stripe
1990
4910
  end
1991
4911
  end
1992
4912
 
4913
+ class Qris < ::Stripe::RequestParams
4914
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4915
+ #
4916
+ # 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.
4917
+ #
4918
+ # 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.
4919
+ #
4920
+ # 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).
4921
+ #
4922
+ # 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`.
4923
+ attr_accessor :setup_future_usage
4924
+
4925
+ def initialize(setup_future_usage: nil)
4926
+ @setup_future_usage = setup_future_usage
4927
+ end
4928
+ end
4929
+
4930
+ class Rechnung < ::Stripe::RequestParams; end
4931
+
1993
4932
  class RevolutPay < ::Stripe::RequestParams
1994
4933
  # Controls when the funds are captured from the customer's account.
1995
4934
  #
@@ -2069,6 +5008,23 @@ module Stripe
2069
5008
  end
2070
5009
  end
2071
5010
 
5011
+ class Shopeepay < ::Stripe::RequestParams
5012
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5013
+ #
5014
+ # 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.
5015
+ #
5016
+ # 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.
5017
+ #
5018
+ # 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).
5019
+ #
5020
+ # 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`.
5021
+ attr_accessor :setup_future_usage
5022
+
5023
+ def initialize(setup_future_usage: nil)
5024
+ @setup_future_usage = setup_future_usage
5025
+ end
5026
+ end
5027
+
2072
5028
  class Sofort < ::Stripe::RequestParams
2073
5029
  # Language shown to the payer on redirect.
2074
5030
  attr_accessor :preferred_language
@@ -2089,6 +5045,23 @@ module Stripe
2089
5045
  end
2090
5046
  end
2091
5047
 
5048
+ class StripeBalance < ::Stripe::RequestParams
5049
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5050
+ #
5051
+ # 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.
5052
+ #
5053
+ # 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.
5054
+ #
5055
+ # 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).
5056
+ #
5057
+ # 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`.
5058
+ attr_accessor :setup_future_usage
5059
+
5060
+ def initialize(setup_future_usage: nil)
5061
+ @setup_future_usage = setup_future_usage
5062
+ end
5063
+ end
5064
+
2092
5065
  class Swish < ::Stripe::RequestParams
2093
5066
  # A reference for this payment to be displayed in the Swish app.
2094
5067
  attr_accessor :reference
@@ -2131,13 +5104,27 @@ module Stripe
2131
5104
  class Filters < ::Stripe::RequestParams
2132
5105
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2133
5106
  attr_accessor :account_subcategories
5107
+ # ID of the institution to use to filter for selectable accounts.
5108
+ attr_accessor :institution
2134
5109
 
2135
- def initialize(account_subcategories: nil)
5110
+ def initialize(account_subcategories: nil, institution: nil)
2136
5111
  @account_subcategories = account_subcategories
5112
+ @institution = institution
5113
+ end
5114
+ end
5115
+
5116
+ class ManualEntry < ::Stripe::RequestParams
5117
+ # Settings for configuring manual entry of account details.
5118
+ attr_accessor :mode
5119
+
5120
+ def initialize(mode: nil)
5121
+ @mode = mode
2137
5122
  end
2138
5123
  end
2139
5124
  # Provide filters for the linked accounts that the customer can select for the payment method.
2140
5125
  attr_accessor :filters
5126
+ # Customize manual entry behavior
5127
+ attr_accessor :manual_entry
2141
5128
  # 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`.
2142
5129
  attr_accessor :permissions
2143
5130
  # List of data features that you would like to retrieve upon account creation.
@@ -2145,8 +5132,15 @@ module Stripe
2145
5132
  # 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.
2146
5133
  attr_accessor :return_url
2147
5134
 
2148
- def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5135
+ def initialize(
5136
+ filters: nil,
5137
+ manual_entry: nil,
5138
+ permissions: nil,
5139
+ prefetch: nil,
5140
+ return_url: nil
5141
+ )
2149
5142
  @filters = filters
5143
+ @manual_entry = manual_entry
2150
5144
  @permissions = permissions
2151
5145
  @prefetch = prefetch
2152
5146
  @return_url = return_url
@@ -2291,8 +5285,12 @@ module Stripe
2291
5285
  attr_accessor :fpx
2292
5286
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
2293
5287
  attr_accessor :giropay
5288
+ # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5289
+ attr_accessor :gopay
2294
5290
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
2295
5291
  attr_accessor :grabpay
5292
+ # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5293
+ attr_accessor :id_bank_transfer
2296
5294
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
2297
5295
  attr_accessor :ideal
2298
5296
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -2329,10 +5327,18 @@ module Stripe
2329
5327
  attr_accessor :paynow
2330
5328
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
2331
5329
  attr_accessor :paypal
5330
+ # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5331
+ attr_accessor :paypay
5332
+ # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5333
+ attr_accessor :payto
2332
5334
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
2333
5335
  attr_accessor :pix
2334
5336
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
2335
5337
  attr_accessor :promptpay
5338
+ # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5339
+ attr_accessor :qris
5340
+ # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5341
+ attr_accessor :rechnung
2336
5342
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
2337
5343
  attr_accessor :revolut_pay
2338
5344
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -2341,8 +5347,12 @@ module Stripe
2341
5347
  attr_accessor :satispay
2342
5348
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
2343
5349
  attr_accessor :sepa_debit
5350
+ # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5351
+ attr_accessor :shopeepay
2344
5352
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
2345
5353
  attr_accessor :sofort
5354
+ # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5355
+ attr_accessor :stripe_balance
2346
5356
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
2347
5357
  attr_accessor :swish
2348
5358
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -2375,7 +5385,9 @@ module Stripe
2375
5385
  eps: nil,
2376
5386
  fpx: nil,
2377
5387
  giropay: nil,
5388
+ gopay: nil,
2378
5389
  grabpay: nil,
5390
+ id_bank_transfer: nil,
2379
5391
  ideal: nil,
2380
5392
  interac_present: nil,
2381
5393
  kakao_pay: nil,
@@ -2394,13 +5406,19 @@ module Stripe
2394
5406
  payco: nil,
2395
5407
  paynow: nil,
2396
5408
  paypal: nil,
5409
+ paypay: nil,
5410
+ payto: nil,
2397
5411
  pix: nil,
2398
5412
  promptpay: nil,
5413
+ qris: nil,
5414
+ rechnung: nil,
2399
5415
  revolut_pay: nil,
2400
5416
  samsung_pay: nil,
2401
5417
  satispay: nil,
2402
5418
  sepa_debit: nil,
5419
+ shopeepay: nil,
2403
5420
  sofort: nil,
5421
+ stripe_balance: nil,
2404
5422
  swish: nil,
2405
5423
  twint: nil,
2406
5424
  us_bank_account: nil,
@@ -2427,7 +5445,9 @@ module Stripe
2427
5445
  @eps = eps
2428
5446
  @fpx = fpx
2429
5447
  @giropay = giropay
5448
+ @gopay = gopay
2430
5449
  @grabpay = grabpay
5450
+ @id_bank_transfer = id_bank_transfer
2431
5451
  @ideal = ideal
2432
5452
  @interac_present = interac_present
2433
5453
  @kakao_pay = kakao_pay
@@ -2446,13 +5466,19 @@ module Stripe
2446
5466
  @payco = payco
2447
5467
  @paynow = paynow
2448
5468
  @paypal = paypal
5469
+ @paypay = paypay
5470
+ @payto = payto
2449
5471
  @pix = pix
2450
5472
  @promptpay = promptpay
5473
+ @qris = qris
5474
+ @rechnung = rechnung
2451
5475
  @revolut_pay = revolut_pay
2452
5476
  @samsung_pay = samsung_pay
2453
5477
  @satispay = satispay
2454
5478
  @sepa_debit = sepa_debit
5479
+ @shopeepay = shopeepay
2455
5480
  @sofort = sofort
5481
+ @stripe_balance = stripe_balance
2456
5482
  @swish = swish
2457
5483
  @twint = twint
2458
5484
  @us_bank_account = us_bank_account
@@ -2567,6 +5593,12 @@ module Stripe
2567
5593
  #
2568
5594
  # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2569
5595
  attr_accessor :customer
5596
+ # ID of the Account this PaymentIntent belongs to, if one exists.
5597
+ #
5598
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
5599
+ #
5600
+ # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
5601
+ attr_accessor :customer_account
2570
5602
  # An arbitrary string attached to the object. Often useful for displaying to users.
2571
5603
  attr_accessor :description
2572
5604
  # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -2575,6 +5607,8 @@ module Stripe
2575
5607
  attr_accessor :excluded_payment_method_types
2576
5608
  # Specifies which fields in the response should be expanded.
2577
5609
  attr_accessor :expand
5610
+ # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5611
+ attr_accessor :fx_quote
2578
5612
  # Automations to be run during the PaymentIntent lifecycle
2579
5613
  attr_accessor :hooks
2580
5614
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
@@ -2611,6 +5645,8 @@ module Stripe
2611
5645
  attr_accessor :receipt_email
2612
5646
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2613
5647
  attr_accessor :return_url
5648
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
5649
+ attr_accessor :secret_key_confirmation
2614
5650
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2615
5651
  #
2616
5652
  # 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.
@@ -2646,10 +5682,12 @@ module Stripe
2646
5682
  confirmation_token: nil,
2647
5683
  currency: nil,
2648
5684
  customer: nil,
5685
+ customer_account: nil,
2649
5686
  description: nil,
2650
5687
  error_on_requires_action: nil,
2651
5688
  excluded_payment_method_types: nil,
2652
5689
  expand: nil,
5690
+ fx_quote: nil,
2653
5691
  hooks: nil,
2654
5692
  mandate: nil,
2655
5693
  mandate_data: nil,
@@ -2665,6 +5703,7 @@ module Stripe
2665
5703
  radar_options: nil,
2666
5704
  receipt_email: nil,
2667
5705
  return_url: nil,
5706
+ secret_key_confirmation: nil,
2668
5707
  setup_future_usage: nil,
2669
5708
  shipping: nil,
2670
5709
  statement_descriptor: nil,
@@ -2683,10 +5722,12 @@ module Stripe
2683
5722
  @confirmation_token = confirmation_token
2684
5723
  @currency = currency
2685
5724
  @customer = customer
5725
+ @customer_account = customer_account
2686
5726
  @description = description
2687
5727
  @error_on_requires_action = error_on_requires_action
2688
5728
  @excluded_payment_method_types = excluded_payment_method_types
2689
5729
  @expand = expand
5730
+ @fx_quote = fx_quote
2690
5731
  @hooks = hooks
2691
5732
  @mandate = mandate
2692
5733
  @mandate_data = mandate_data
@@ -2702,6 +5743,7 @@ module Stripe
2702
5743
  @radar_options = radar_options
2703
5744
  @receipt_email = receipt_email
2704
5745
  @return_url = return_url
5746
+ @secret_key_confirmation = secret_key_confirmation
2705
5747
  @setup_future_usage = setup_future_usage
2706
5748
  @shipping = shipping
2707
5749
  @statement_descriptor = statement_descriptor