stripe 20.1.0 → 20.2.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +4 -0
  3. data/lib/stripe/api_version.rb +2 -2
  4. data/lib/stripe/errors.rb +6 -0
  5. data/lib/stripe/event_types.rb +193 -0
  6. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  7. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  22. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  25. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  27. data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
  28. data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
  30. data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
  31. data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
  32. data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
  33. data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
  34. data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  36. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  37. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  38. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  39. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  40. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  41. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  54. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  55. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  56. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  57. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  58. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
  59. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
  60. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
  61. data/lib/stripe/object_types.rb +53 -0
  62. data/lib/stripe/params/account_create_params.rb +299 -1
  63. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  64. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  65. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  66. data/lib/stripe/params/account_session_create_params.rb +191 -0
  67. data/lib/stripe/params/account_update_params.rb +261 -0
  68. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  69. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  70. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  71. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  72. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  73. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  74. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  75. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  76. data/lib/stripe/params/charge_capture_params.rb +1646 -0
  77. data/lib/stripe/params/charge_update_params.rb +1646 -0
  78. data/lib/stripe/params/checkout/session_create_params.rb +87 -3
  79. data/lib/stripe/params/checkout/session_update_params.rb +161 -1
  80. data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
  81. data/lib/stripe/params/coupon_create_params.rb +17 -1
  82. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  83. data/lib/stripe/params/external_account_create_params.rb +134 -0
  84. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  85. data/lib/stripe/params/external_account_list_params.rb +25 -0
  86. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  87. data/lib/stripe/params/external_account_update_params.rb +91 -0
  88. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  89. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
  90. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  91. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  92. data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
  93. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  94. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  95. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  96. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  97. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  98. data/lib/stripe/params/invoice_create_params.rb +64 -2
  99. data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
  100. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  101. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  102. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  103. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  104. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  105. data/lib/stripe/params/invoice_update_params.rb +64 -2
  106. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  107. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  108. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  109. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  110. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  111. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  112. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  113. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  114. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  115. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  116. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  117. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  118. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  119. data/lib/stripe/params/mandate_list_params.rb +39 -0
  120. data/lib/stripe/params/margin_create_params.rb +25 -0
  121. data/lib/stripe/params/margin_list_params.rb +25 -0
  122. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  123. data/lib/stripe/params/margin_update_params.rb +22 -0
  124. data/lib/stripe/params/order_create_params.rb +2083 -0
  125. data/lib/stripe/params/order_list_params.rb +25 -0
  126. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  127. data/lib/stripe/params/order_submit_params.rb +16 -0
  128. data/lib/stripe/params/order_update_params.rb +2087 -0
  129. data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
  130. data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
  131. data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
  132. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
  133. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
  134. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  135. data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
  136. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  137. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  138. data/lib/stripe/params/payment_method_create_params.rb +88 -0
  139. data/lib/stripe/params/payment_plan_create_params.rb +128 -0
  140. data/lib/stripe/params/payment_plan_list_params.rb +25 -0
  141. data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
  142. data/lib/stripe/params/payment_plan_update_params.rb +105 -0
  143. data/lib/stripe/params/price_update_params.rb +19 -0
  144. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  145. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  146. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  147. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  148. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  149. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  150. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  151. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  152. data/lib/stripe/params/quote_create_params.rb +809 -3
  153. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  154. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  155. data/lib/stripe/params/quote_list_params.rb +4 -0
  156. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  157. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  158. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  159. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  160. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  161. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  162. data/lib/stripe/params/quote_update_params.rb +817 -4
  163. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
  164. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  165. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  166. data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
  167. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  168. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  169. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  170. data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
  171. data/lib/stripe/params/setup_intent_create_params.rb +122 -3
  172. data/lib/stripe/params/setup_intent_update_params.rb +122 -3
  173. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  174. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  175. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  176. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
  177. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  178. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  179. data/lib/stripe/params/subscription_create_params.rb +133 -6
  180. data/lib/stripe/params/subscription_item_create_params.rb +50 -3
  181. data/lib/stripe/params/subscription_item_update_params.rb +33 -2
  182. data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
  183. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  184. data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
  185. data/lib/stripe/params/subscription_update_params.rb +116 -5
  186. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  187. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  188. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  189. data/lib/stripe/params/tax/registration_create_params.rb +13 -1
  190. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  191. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
  192. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  193. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  194. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  195. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  196. data/lib/stripe/params/transfer_create_params.rb +4 -0
  197. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  198. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  199. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  200. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  201. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
  202. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  203. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  204. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  205. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  206. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  207. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  208. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  209. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  210. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  211. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  212. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  213. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  214. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  215. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  216. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  217. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  218. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  219. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  220. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  221. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  222. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  223. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  224. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  225. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  226. data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
  227. data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
  228. data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
  229. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  230. data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
  231. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
  233. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  234. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  235. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  236. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
  237. data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
  238. data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
  239. data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
  240. data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
  241. data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
  242. data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
  243. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  244. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
  245. data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
  246. data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
  247. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  248. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  249. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  250. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  251. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  252. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  253. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  254. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
  255. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
  256. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
  257. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
  258. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  259. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
  260. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
  261. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  262. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
  263. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  264. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
  266. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  267. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
  269. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  270. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  271. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  272. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  273. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  274. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  276. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
  277. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
  278. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
  279. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
  280. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
  281. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  282. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  283. data/lib/stripe/params.rb +364 -0
  284. data/lib/stripe/resources/account.rb +176 -1
  285. data/lib/stripe/resources/account_notice.rb +94 -0
  286. data/lib/stripe/resources/account_session.rb +81 -0
  287. data/lib/stripe/resources/balance.rb +83 -0
  288. data/lib/stripe/resources/balance_settings.rb +4 -0
  289. data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
  290. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  291. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  292. data/lib/stripe/resources/capital/financing_offer.rb +144 -0
  293. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  294. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  295. data/lib/stripe/resources/card.rb +18 -1
  296. data/lib/stripe/resources/charge.rb +227 -1
  297. data/lib/stripe/resources/checkout/session.rb +91 -3
  298. data/lib/stripe/resources/confirmation_token.rb +131 -0
  299. data/lib/stripe/resources/coupon.rb +26 -1
  300. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  301. data/lib/stripe/resources/customer.rb +16 -0
  302. data/lib/stripe/resources/customer_session.rb +36 -0
  303. data/lib/stripe/resources/dispute.rb +18 -0
  304. data/lib/stripe/resources/event.rb +64 -1
  305. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  306. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  307. data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
  308. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  309. data/lib/stripe/resources/financial_connections/session.rb +92 -0
  310. data/lib/stripe/resources/fx_quote.rb +149 -0
  311. data/lib/stripe/resources/invoice.rb +106 -1
  312. data/lib/stripe/resources/invoice_item.rb +2 -0
  313. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  314. data/lib/stripe/resources/issuing/authorization.rb +16 -0
  315. data/lib/stripe/resources/issuing/card.rb +16 -0
  316. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  317. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  318. data/lib/stripe/resources/issuing/dispute.rb +16 -1
  319. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  320. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  321. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  322. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  323. data/lib/stripe/resources/line_item.rb +42 -0
  324. data/lib/stripe/resources/mandate.rb +12 -0
  325. data/lib/stripe/resources/margin.rb +64 -0
  326. data/lib/stripe/resources/order.rb +927 -0
  327. data/lib/stripe/resources/payment_attempt_record.rb +177 -1
  328. data/lib/stripe/resources/payment_intent.rb +1588 -10
  329. data/lib/stripe/resources/payment_method.rb +151 -0
  330. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  331. data/lib/stripe/resources/payment_plan.rb +213 -0
  332. data/lib/stripe/resources/payment_record.rb +177 -1
  333. data/lib/stripe/resources/price.rb +20 -0
  334. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  335. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  336. data/lib/stripe/resources/quote.rb +569 -2
  337. data/lib/stripe/resources/quote_line.rb +525 -0
  338. data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
  339. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
  340. data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
  341. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  342. data/lib/stripe/resources/refund.rb +18 -0
  343. data/lib/stripe/resources/reserve/hold.rb +7 -0
  344. data/lib/stripe/resources/reserve/plan.rb +7 -0
  345. data/lib/stripe/resources/reserve/release.rb +12 -0
  346. data/lib/stripe/resources/setup_attempt.rb +35 -0
  347. data/lib/stripe/resources/setup_intent.rb +38 -1
  348. data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
  349. data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
  350. data/lib/stripe/resources/source.rb +54 -0
  351. data/lib/stripe/resources/subscription.rb +73 -0
  352. data/lib/stripe/resources/subscription_item.rb +22 -1
  353. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  354. data/lib/stripe/resources/tax/form.rb +264 -0
  355. data/lib/stripe/resources/tax/registration.rb +16 -1
  356. data/lib/stripe/resources/terminal/reader.rb +8 -0
  357. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  358. data/lib/stripe/resources/token.rb +15 -1
  359. data/lib/stripe/resources/transfer.rb +2 -0
  360. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  361. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  362. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  363. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  364. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  365. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  366. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  367. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  368. data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
  369. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  370. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  371. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  372. data/lib/stripe/resources/v2/core/account.rb +802 -2
  373. data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
  374. data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
  375. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  376. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
  377. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
  378. data/lib/stripe/resources/v2/data/query_run.rb +255 -0
  379. data/lib/stripe/resources/v2/data/report.rb +104 -0
  380. data/lib/stripe/resources/v2/data/report_run.rb +246 -0
  381. data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
  382. data/lib/stripe/resources/v2/data/schema.rb +121 -0
  383. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  384. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  385. data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
  386. data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
  387. data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
  388. data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
  389. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  390. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
  391. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
  392. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
  393. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
  394. data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
  395. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  396. data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
  397. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
  398. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  399. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  400. data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
  401. data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
  402. data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
  403. data/lib/stripe/resources.rb +341 -0
  404. data/lib/stripe/services/account_notice_service.rb +39 -0
  405. data/lib/stripe/services/account_service.rb +15 -0
  406. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  407. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  408. data/lib/stripe/services/billing_service.rb +2 -1
  409. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  410. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  411. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  412. data/lib/stripe/services/capital_service.rb +15 -0
  413. data/lib/stripe/services/coupon_service.rb +14 -0
  414. data/lib/stripe/services/customer_service.rb +15 -0
  415. data/lib/stripe/services/external_account_service.rb +68 -0
  416. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  417. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  418. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  419. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  420. data/lib/stripe/services/financial_connections_service.rb +3 -1
  421. data/lib/stripe/services/fx_quote_service.rb +27 -0
  422. data/lib/stripe/services/invoice_service.rb +11 -0
  423. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  424. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  425. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  426. data/lib/stripe/services/issuing_service.rb +5 -1
  427. data/lib/stripe/services/mandate_service.rb +5 -0
  428. data/lib/stripe/services/margin_service.rb +50 -0
  429. data/lib/stripe/services/order_service.rb +53 -0
  430. data/lib/stripe/services/payment_intent_service.rb +37 -0
  431. data/lib/stripe/services/payment_plan_service.rb +50 -0
  432. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  433. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  434. data/lib/stripe/services/privacy_service.rb +13 -0
  435. data/lib/stripe/services/promotion_code_service.rb +29 -0
  436. data/lib/stripe/services/quote_line_service.rb +17 -0
  437. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  438. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  439. data/lib/stripe/services/quote_service.rb +49 -1
  440. data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
  441. data/lib/stripe/services/radar_service.rb +2 -1
  442. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  443. data/lib/stripe/services/reserve/plan_service.rb +30 -0
  444. data/lib/stripe/services/reserve/release_service.rb +30 -0
  445. data/lib/stripe/services/reserve_service.rb +15 -0
  446. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  447. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  448. data/lib/stripe/services/shared_payment_service.rb +14 -0
  449. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  450. data/lib/stripe/services/subscription_service.rb +45 -0
  451. data/lib/stripe/services/tax/form_service.rb +37 -0
  452. data/lib/stripe/services/tax_service.rb +2 -1
  453. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  454. data/lib/stripe/services/terminal_service.rb +2 -1
  455. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  456. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  457. data/lib/stripe/services/test_helpers_service.rb +2 -1
  458. data/lib/stripe/services/v1_services.rb +11 -1
  459. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  460. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  461. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  462. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  463. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  464. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  465. data/lib/stripe/services/v2/billing_service.rb +5 -1
  466. data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
  467. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  468. data/lib/stripe/services/v2/core_service.rb +3 -1
  469. data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
  470. data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
  471. data/lib/stripe/services/v2/data/report_service.rb +34 -0
  472. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  473. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  474. data/lib/stripe/services/v2/data/schema_service.rb +32 -0
  475. data/lib/stripe/services/v2/data_service.rb +19 -0
  476. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  477. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  478. data/lib/stripe/services/v2/extend_service.rb +16 -0
  479. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  480. data/lib/stripe/services/v2/iam_service.rb +15 -0
  481. data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
  482. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
  483. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
  484. data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
  485. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  486. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
  487. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  488. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  489. data/lib/stripe/services/v2/network_service.rb +15 -0
  490. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  491. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  492. data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
  493. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
  494. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  495. data/lib/stripe/services/v2/signals_service.rb +17 -0
  496. data/lib/stripe/services/v2_services.rb +7 -1
  497. data/lib/stripe/services.rb +181 -0
  498. data/lib/stripe/stripe_client.rb +4 -1
  499. data/lib/stripe/stripe_configuration.rb +3 -1
  500. data/lib/stripe/stripe_event_notification_handler.rb +216 -0
  501. data/lib/stripe/stripe_object.rb +1 -1
  502. data/lib/stripe/util.rb +7 -1
  503. data/lib/stripe/version.rb +1 -1
  504. data/lib/stripe.rb +53 -0
  505. data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
  506. data/rbi/stripe.rbi +133319 -66595
  507. metadata +331 -3
@@ -60,6 +60,25 @@ module Stripe
60
60
  end
61
61
  end
62
62
 
63
+ class Surcharge < ::Stripe::StripeObject
64
+ # Portion of the amount that corresponds to a surcharge.
65
+ attr_reader :amount
66
+ # Indicate whether to enforce validations on the surcharge amount.
67
+ attr_reader :enforce_validation
68
+ # The maximum amount allowed for the surcharge.
69
+ attr_reader :maximum_amount
70
+ # The status of the surcharge.
71
+ attr_reader :status
72
+
73
+ def self.inner_class_types
74
+ @inner_class_types = {}
75
+ end
76
+
77
+ def self.field_remappings
78
+ @field_remappings = {}
79
+ end
80
+ end
81
+
63
82
  class Tax < ::Stripe::StripeObject
64
83
  # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
65
84
  #
@@ -97,13 +116,58 @@ module Stripe
97
116
  attr_reader :line_items
98
117
  # Attribute for field shipping
99
118
  attr_reader :shipping
119
+ # Attribute for field surcharge
120
+ attr_reader :surcharge
100
121
  # Attribute for field tax
101
122
  attr_reader :tax
102
123
  # Attribute for field tip
103
124
  attr_reader :tip
104
125
 
105
126
  def self.inner_class_types
106
- @inner_class_types = { error: Error, shipping: Shipping, tax: Tax, tip: Tip }
127
+ @inner_class_types = {
128
+ error: Error,
129
+ shipping: Shipping,
130
+ surcharge: Surcharge,
131
+ tax: Tax,
132
+ tip: Tip,
133
+ }
134
+ end
135
+
136
+ def self.field_remappings
137
+ @field_remappings = {}
138
+ end
139
+ end
140
+
141
+ class AsyncWorkflows < ::Stripe::StripeObject
142
+ class Inputs < ::Stripe::StripeObject
143
+ class Tax < ::Stripe::StripeObject
144
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
145
+ attr_reader :calculation
146
+
147
+ def self.inner_class_types
148
+ @inner_class_types = {}
149
+ end
150
+
151
+ def self.field_remappings
152
+ @field_remappings = {}
153
+ end
154
+ end
155
+ # Attribute for field tax
156
+ attr_reader :tax
157
+
158
+ def self.inner_class_types
159
+ @inner_class_types = { tax: Tax }
160
+ end
161
+
162
+ def self.field_remappings
163
+ @field_remappings = {}
164
+ end
165
+ end
166
+ # Attribute for field inputs
167
+ attr_reader :inputs
168
+
169
+ def self.inner_class_types
170
+ @inner_class_types = { inputs: Inputs }
107
171
  end
108
172
 
109
173
  def self.field_remappings
@@ -1280,23 +1344,1185 @@ module Stripe
1280
1344
  }
1281
1345
  end
1282
1346
 
1283
- def self.field_remappings
1284
- @field_remappings = {}
1285
- end
1286
- end
1347
+ def self.field_remappings
1348
+ @field_remappings = {}
1349
+ end
1350
+ end
1351
+
1352
+ class PaymentDetails < ::Stripe::StripeObject
1353
+ class CarRental < ::Stripe::StripeObject
1354
+ class Affiliate < ::Stripe::StripeObject
1355
+ # The name of the affiliate that originated the purchase.
1356
+ attr_reader :name
1357
+
1358
+ def self.inner_class_types
1359
+ @inner_class_types = {}
1360
+ end
1361
+
1362
+ def self.field_remappings
1363
+ @field_remappings = {}
1364
+ end
1365
+ end
1366
+
1367
+ class Delivery < ::Stripe::StripeObject
1368
+ class Recipient < ::Stripe::StripeObject
1369
+ # The email of the recipient the ticket is delivered to.
1370
+ attr_reader :email
1371
+ # The name of the recipient the ticket is delivered to.
1372
+ attr_reader :name
1373
+ # The phone number of the recipient the ticket is delivered to.
1374
+ attr_reader :phone
1375
+
1376
+ def self.inner_class_types
1377
+ @inner_class_types = {}
1378
+ end
1379
+
1380
+ def self.field_remappings
1381
+ @field_remappings = {}
1382
+ end
1383
+ end
1384
+ # The delivery method for the payment
1385
+ attr_reader :mode
1386
+ # Attribute for field recipient
1387
+ attr_reader :recipient
1388
+
1389
+ def self.inner_class_types
1390
+ @inner_class_types = { recipient: Recipient }
1391
+ end
1392
+
1393
+ def self.field_remappings
1394
+ @field_remappings = {}
1395
+ end
1396
+ end
1397
+
1398
+ class Distance < ::Stripe::StripeObject
1399
+ # Distance traveled.
1400
+ attr_reader :amount
1401
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1402
+ attr_reader :unit
1403
+
1404
+ def self.inner_class_types
1405
+ @inner_class_types = {}
1406
+ end
1407
+
1408
+ def self.field_remappings
1409
+ @field_remappings = {}
1410
+ end
1411
+ end
1412
+
1413
+ class Driver < ::Stripe::StripeObject
1414
+ # Driver's identification number.
1415
+ attr_reader :driver_identification_number
1416
+ # Driver's tax number.
1417
+ attr_reader :driver_tax_number
1418
+ # Full name of the driver on the reservation.
1419
+ attr_reader :name
1420
+
1421
+ def self.inner_class_types
1422
+ @inner_class_types = {}
1423
+ end
1424
+
1425
+ def self.field_remappings
1426
+ @field_remappings = {}
1427
+ end
1428
+ end
1429
+
1430
+ class PickupAddress < ::Stripe::StripeObject
1431
+ # City, district, suburb, town, or village.
1432
+ attr_reader :city
1433
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1434
+ attr_reader :country
1435
+ # Address line 1, such as the street, PO Box, or company name.
1436
+ attr_reader :line1
1437
+ # Address line 2, such as the apartment, suite, unit, or building.
1438
+ attr_reader :line2
1439
+ # ZIP or postal code.
1440
+ attr_reader :postal_code
1441
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1442
+ attr_reader :state
1443
+
1444
+ def self.inner_class_types
1445
+ @inner_class_types = {}
1446
+ end
1447
+
1448
+ def self.field_remappings
1449
+ @field_remappings = {}
1450
+ end
1451
+ end
1452
+
1453
+ class ReturnAddress < ::Stripe::StripeObject
1454
+ # City, district, suburb, town, or village.
1455
+ attr_reader :city
1456
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1457
+ attr_reader :country
1458
+ # Address line 1, such as the street, PO Box, or company name.
1459
+ attr_reader :line1
1460
+ # Address line 2, such as the apartment, suite, unit, or building.
1461
+ attr_reader :line2
1462
+ # ZIP or postal code.
1463
+ attr_reader :postal_code
1464
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1465
+ attr_reader :state
1466
+
1467
+ def self.inner_class_types
1468
+ @inner_class_types = {}
1469
+ end
1470
+
1471
+ def self.field_remappings
1472
+ @field_remappings = {}
1473
+ end
1474
+ end
1475
+ # Attribute for field affiliate
1476
+ attr_reader :affiliate
1477
+ # The booking number associated with the car rental.
1478
+ attr_reader :booking_number
1479
+ # Class code of the car.
1480
+ attr_reader :car_class_code
1481
+ # Make of the car.
1482
+ attr_reader :car_make
1483
+ # Model of the car.
1484
+ attr_reader :car_model
1485
+ # The name of the rental car company.
1486
+ attr_reader :company
1487
+ # The customer service phone number of the car rental company.
1488
+ attr_reader :customer_service_phone_number
1489
+ # Number of days the car is being rented.
1490
+ attr_reader :days_rented
1491
+ # Attribute for field delivery
1492
+ attr_reader :delivery
1493
+ # Attribute for field distance
1494
+ attr_reader :distance
1495
+ # The details of the drivers associated with the trip.
1496
+ attr_reader :drivers
1497
+ # List of additional charges being billed.
1498
+ attr_reader :extra_charges
1499
+ # Indicates if the customer did not keep nor cancel their booking.
1500
+ attr_reader :no_show
1501
+ # Attribute for field pickup_address
1502
+ attr_reader :pickup_address
1503
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1504
+ attr_reader :pickup_at
1505
+ # Name of the pickup location.
1506
+ attr_reader :pickup_location_name
1507
+ # Rental rate.
1508
+ attr_reader :rate_amount
1509
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1510
+ attr_reader :rate_interval
1511
+ # The full name of the person or entity renting the car.
1512
+ attr_reader :renter_name
1513
+ # Attribute for field return_address
1514
+ attr_reader :return_address
1515
+ # Car return time. Measured in seconds since the Unix epoch.
1516
+ attr_reader :return_at
1517
+ # Name of the return location.
1518
+ attr_reader :return_location_name
1519
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1520
+ attr_reader :tax_exempt
1521
+ # The vehicle identification number of the car.
1522
+ attr_reader :vehicle_identification_number
1523
+
1524
+ def self.inner_class_types
1525
+ @inner_class_types = {
1526
+ affiliate: Affiliate,
1527
+ delivery: Delivery,
1528
+ distance: Distance,
1529
+ drivers: Driver,
1530
+ pickup_address: PickupAddress,
1531
+ return_address: ReturnAddress,
1532
+ }
1533
+ end
1534
+
1535
+ def self.field_remappings
1536
+ @field_remappings = {}
1537
+ end
1538
+ end
1539
+
1540
+ class CarRentalDatum < ::Stripe::StripeObject
1541
+ class Affiliate < ::Stripe::StripeObject
1542
+ # Affiliate code.
1543
+ attr_reader :code
1544
+ # Affiliate name.
1545
+ attr_reader :name
1546
+
1547
+ def self.inner_class_types
1548
+ @inner_class_types = {}
1549
+ end
1550
+
1551
+ def self.field_remappings
1552
+ @field_remappings = {}
1553
+ end
1554
+ end
1555
+
1556
+ class Distance < ::Stripe::StripeObject
1557
+ # Distance amount.
1558
+ attr_reader :amount
1559
+ # Unit for the distance.
1560
+ attr_reader :unit
1561
+
1562
+ def self.inner_class_types
1563
+ @inner_class_types = {}
1564
+ end
1565
+
1566
+ def self.field_remappings
1567
+ @field_remappings = {}
1568
+ end
1569
+ end
1570
+
1571
+ class Driver < ::Stripe::StripeObject
1572
+ class DateOfBirth < ::Stripe::StripeObject
1573
+ # Day of birth.
1574
+ attr_reader :day
1575
+ # Month of birth.
1576
+ attr_reader :month
1577
+ # Year of birth.
1578
+ attr_reader :year
1579
+
1580
+ def self.inner_class_types
1581
+ @inner_class_types = {}
1582
+ end
1583
+
1584
+ def self.field_remappings
1585
+ @field_remappings = {}
1586
+ end
1587
+ end
1588
+ # Attribute for field date_of_birth
1589
+ attr_reader :date_of_birth
1590
+ # Driver's identification number.
1591
+ attr_reader :driver_identification_number
1592
+ # Driver's tax number.
1593
+ attr_reader :driver_tax_number
1594
+ # Full name of the driver.
1595
+ attr_reader :name
1596
+
1597
+ def self.inner_class_types
1598
+ @inner_class_types = { date_of_birth: DateOfBirth }
1599
+ end
1600
+
1601
+ def self.field_remappings
1602
+ @field_remappings = {}
1603
+ end
1604
+ end
1605
+
1606
+ class DropOff < ::Stripe::StripeObject
1607
+ class Address < ::Stripe::StripeObject
1608
+ # City, district, suburb, town, or village.
1609
+ attr_reader :city
1610
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1611
+ attr_reader :country
1612
+ # Address line 1, such as the street, PO Box, or company name.
1613
+ attr_reader :line1
1614
+ # Address line 2, such as the apartment, suite, unit, or building.
1615
+ attr_reader :line2
1616
+ # ZIP or postal code.
1617
+ attr_reader :postal_code
1618
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1619
+ attr_reader :state
1620
+
1621
+ def self.inner_class_types
1622
+ @inner_class_types = {}
1623
+ end
1624
+
1625
+ def self.field_remappings
1626
+ @field_remappings = {}
1627
+ end
1628
+ end
1629
+ # Attribute for field address
1630
+ attr_reader :address
1631
+ # Name of the location.
1632
+ attr_reader :location_name
1633
+ # Time associated with the location.
1634
+ attr_reader :time
1635
+
1636
+ def self.inner_class_types
1637
+ @inner_class_types = { address: Address }
1638
+ end
1639
+
1640
+ def self.field_remappings
1641
+ @field_remappings = {}
1642
+ end
1643
+ end
1644
+
1645
+ class Insurance < ::Stripe::StripeObject
1646
+ # Amount of the insurance.
1647
+ attr_reader :amount
1648
+ # Currency for the insurance price.
1649
+ attr_reader :currency
1650
+ # Name of the insurance company.
1651
+ attr_reader :insurance_company_name
1652
+ # Type of insurance.
1653
+ attr_reader :insurance_type
1654
+
1655
+ def self.inner_class_types
1656
+ @inner_class_types = {}
1657
+ end
1658
+
1659
+ def self.field_remappings
1660
+ @field_remappings = {}
1661
+ end
1662
+ end
1663
+
1664
+ class Pickup < ::Stripe::StripeObject
1665
+ class Address < ::Stripe::StripeObject
1666
+ # City, district, suburb, town, or village.
1667
+ attr_reader :city
1668
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1669
+ attr_reader :country
1670
+ # Address line 1, such as the street, PO Box, or company name.
1671
+ attr_reader :line1
1672
+ # Address line 2, such as the apartment, suite, unit, or building.
1673
+ attr_reader :line2
1674
+ # ZIP or postal code.
1675
+ attr_reader :postal_code
1676
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1677
+ attr_reader :state
1678
+
1679
+ def self.inner_class_types
1680
+ @inner_class_types = {}
1681
+ end
1682
+
1683
+ def self.field_remappings
1684
+ @field_remappings = {}
1685
+ end
1686
+ end
1687
+ # Attribute for field address
1688
+ attr_reader :address
1689
+ # Name of the location.
1690
+ attr_reader :location_name
1691
+ # Time associated with the location.
1692
+ attr_reader :time
1693
+
1694
+ def self.inner_class_types
1695
+ @inner_class_types = { address: Address }
1696
+ end
1697
+
1698
+ def self.field_remappings
1699
+ @field_remappings = {}
1700
+ end
1701
+ end
1702
+
1703
+ class Total < ::Stripe::StripeObject
1704
+ class Discounts < ::Stripe::StripeObject
1705
+ # Corporate client discount code.
1706
+ attr_reader :corporate_client_code
1707
+ # Coupon code applied.
1708
+ attr_reader :coupon
1709
+ # Maximum free miles or kilometers included.
1710
+ attr_reader :maximum_free_miles_or_kilometers
1711
+
1712
+ def self.inner_class_types
1713
+ @inner_class_types = {}
1714
+ end
1715
+
1716
+ def self.field_remappings
1717
+ @field_remappings = {}
1718
+ end
1719
+ end
1720
+
1721
+ class ExtraCharge < ::Stripe::StripeObject
1722
+ # Amount of the extra charge.
1723
+ attr_reader :amount
1724
+ # Type of extra charge.
1725
+ attr_reader :type
1726
+
1727
+ def self.inner_class_types
1728
+ @inner_class_types = {}
1729
+ end
1730
+
1731
+ def self.field_remappings
1732
+ @field_remappings = {}
1733
+ end
1734
+ end
1735
+
1736
+ class Tax < ::Stripe::StripeObject
1737
+ class TaxItem < ::Stripe::StripeObject
1738
+ # Tax amount.
1739
+ attr_reader :amount
1740
+ # Tax rate.
1741
+ attr_reader :rate
1742
+ # Type of tax.
1743
+ attr_reader :type
1744
+
1745
+ def self.inner_class_types
1746
+ @inner_class_types = {}
1747
+ end
1748
+
1749
+ def self.field_remappings
1750
+ @field_remappings = {}
1751
+ end
1752
+ end
1753
+ # Indicates whether the rental is tax-exempt.
1754
+ attr_reader :tax_exempt_indicator
1755
+ # Tax details.
1756
+ attr_reader :tax_items
1757
+
1758
+ def self.inner_class_types
1759
+ @inner_class_types = { tax_items: TaxItem }
1760
+ end
1761
+
1762
+ def self.field_remappings
1763
+ @field_remappings = {}
1764
+ end
1765
+ end
1766
+ # Total amount.
1767
+ attr_reader :amount
1768
+ # Currency for the total amount.
1769
+ attr_reader :currency
1770
+ # Attribute for field discounts
1771
+ attr_reader :discounts
1772
+ # Additional charges for the rental.
1773
+ attr_reader :extra_charges
1774
+ # Rate per unit.
1775
+ attr_reader :rate_per_unit
1776
+ # Unit for the rate.
1777
+ attr_reader :rate_unit
1778
+ # Attribute for field tax
1779
+ attr_reader :tax
1780
+
1781
+ def self.inner_class_types
1782
+ @inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
1783
+ end
1784
+
1785
+ def self.field_remappings
1786
+ @field_remappings = {}
1787
+ end
1788
+ end
1789
+
1790
+ class Vehicle < ::Stripe::StripeObject
1791
+ # Make of the vehicle.
1792
+ attr_reader :make
1793
+ # Model of the vehicle.
1794
+ attr_reader :model
1795
+ # Odometer reading.
1796
+ attr_reader :odometer
1797
+ # Type of the vehicle.
1798
+ attr_reader :type
1799
+ # Class of the vehicle.
1800
+ attr_reader :vehicle_class
1801
+ # Vehicle identification number.
1802
+ attr_reader :vehicle_identification_number
1803
+
1804
+ def self.inner_class_types
1805
+ @inner_class_types = {}
1806
+ end
1807
+
1808
+ def self.field_remappings
1809
+ @field_remappings = {}
1810
+ end
1811
+ end
1812
+ # Attribute for field affiliate
1813
+ attr_reader :affiliate
1814
+ # The booking number associated with the car rental.
1815
+ attr_reader :booking_number
1816
+ # The name of the car rental company.
1817
+ attr_reader :carrier_name
1818
+ # The customer service phone number of the car rental company.
1819
+ attr_reader :customer_service_phone_number
1820
+ # Number of days the car is being rented.
1821
+ attr_reader :days_rented
1822
+ # Attribute for field distance
1823
+ attr_reader :distance
1824
+ # The details of the drivers associated with the rental.
1825
+ attr_reader :drivers
1826
+ # Attribute for field drop_off
1827
+ attr_reader :drop_off
1828
+ # Insurance details for the car rental.
1829
+ attr_reader :insurances
1830
+ # Indicates if the customer did not keep nor cancel their booking.
1831
+ attr_reader :no_show_indicator
1832
+ # Attribute for field pickup
1833
+ attr_reader :pickup
1834
+ # Name of the person renting the vehicle.
1835
+ attr_reader :renter_name
1836
+ # Attribute for field total
1837
+ attr_reader :total
1838
+ # Attribute for field vehicle
1839
+ attr_reader :vehicle
1840
+
1841
+ def self.inner_class_types
1842
+ @inner_class_types = {
1843
+ affiliate: Affiliate,
1844
+ distance: Distance,
1845
+ drivers: Driver,
1846
+ drop_off: DropOff,
1847
+ insurances: Insurance,
1848
+ pickup: Pickup,
1849
+ total: Total,
1850
+ vehicle: Vehicle,
1851
+ }
1852
+ end
1853
+
1854
+ def self.field_remappings
1855
+ @field_remappings = {}
1856
+ end
1857
+ end
1858
+
1859
+ class EventDetails < ::Stripe::StripeObject
1860
+ class Address < ::Stripe::StripeObject
1861
+ # City, district, suburb, town, or village.
1862
+ attr_reader :city
1863
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1864
+ attr_reader :country
1865
+ # Address line 1, such as the street, PO Box, or company name.
1866
+ attr_reader :line1
1867
+ # Address line 2, such as the apartment, suite, unit, or building.
1868
+ attr_reader :line2
1869
+ # ZIP or postal code.
1870
+ attr_reader :postal_code
1871
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1872
+ attr_reader :state
1873
+
1874
+ def self.inner_class_types
1875
+ @inner_class_types = {}
1876
+ end
1877
+
1878
+ def self.field_remappings
1879
+ @field_remappings = {}
1880
+ end
1881
+ end
1882
+
1883
+ class Affiliate < ::Stripe::StripeObject
1884
+ # The name of the affiliate that originated the purchase.
1885
+ attr_reader :name
1886
+
1887
+ def self.inner_class_types
1888
+ @inner_class_types = {}
1889
+ end
1890
+
1891
+ def self.field_remappings
1892
+ @field_remappings = {}
1893
+ end
1894
+ end
1895
+
1896
+ class Delivery < ::Stripe::StripeObject
1897
+ class Recipient < ::Stripe::StripeObject
1898
+ # The email of the recipient the ticket is delivered to.
1899
+ attr_reader :email
1900
+ # The name of the recipient the ticket is delivered to.
1901
+ attr_reader :name
1902
+ # The phone number of the recipient the ticket is delivered to.
1903
+ attr_reader :phone
1904
+
1905
+ def self.inner_class_types
1906
+ @inner_class_types = {}
1907
+ end
1908
+
1909
+ def self.field_remappings
1910
+ @field_remappings = {}
1911
+ end
1912
+ end
1913
+ # The delivery method for the payment
1914
+ attr_reader :mode
1915
+ # Attribute for field recipient
1916
+ attr_reader :recipient
1917
+
1918
+ def self.inner_class_types
1919
+ @inner_class_types = { recipient: Recipient }
1920
+ end
1921
+
1922
+ def self.field_remappings
1923
+ @field_remappings = {}
1924
+ end
1925
+ end
1926
+ # Indicates if the tickets are digitally checked when entering the venue.
1927
+ attr_reader :access_controlled_venue
1928
+ # Attribute for field address
1929
+ attr_reader :address
1930
+ # Attribute for field affiliate
1931
+ attr_reader :affiliate
1932
+ # The name of the company
1933
+ attr_reader :company
1934
+ # Attribute for field delivery
1935
+ attr_reader :delivery
1936
+ # Event end time. Measured in seconds since the Unix epoch.
1937
+ attr_reader :ends_at
1938
+ # Type of the event entertainment (concert, sports event etc)
1939
+ attr_reader :genre
1940
+ # The name of the event.
1941
+ attr_reader :name
1942
+ # Event start time. Measured in seconds since the Unix epoch.
1943
+ attr_reader :starts_at
1944
+
1945
+ def self.inner_class_types
1946
+ @inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
1947
+ end
1948
+
1949
+ def self.field_remappings
1950
+ @field_remappings = {}
1951
+ end
1952
+ end
1953
+
1954
+ class FlightDatum < ::Stripe::StripeObject
1955
+ class Affiliate < ::Stripe::StripeObject
1956
+ # Affiliate code.
1957
+ attr_reader :code
1958
+ # Affiliate name.
1959
+ attr_reader :name
1960
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1961
+ attr_reader :travel_authorization_code
1962
+
1963
+ def self.inner_class_types
1964
+ @inner_class_types = {}
1965
+ end
1966
+
1967
+ def self.field_remappings
1968
+ @field_remappings = {}
1969
+ end
1970
+ end
1971
+
1972
+ class Insurance < ::Stripe::StripeObject
1973
+ # Amount of the insurance.
1974
+ attr_reader :amount
1975
+ # Currency for the insurance price.
1976
+ attr_reader :currency
1977
+ # Name of the insurance company.
1978
+ attr_reader :insurance_company_name
1979
+ # Type of insurance.
1980
+ attr_reader :insurance_type
1981
+
1982
+ def self.inner_class_types
1983
+ @inner_class_types = {}
1984
+ end
1985
+
1986
+ def self.field_remappings
1987
+ @field_remappings = {}
1988
+ end
1989
+ end
1990
+
1991
+ class Passenger < ::Stripe::StripeObject
1992
+ # Full name of the passenger.
1993
+ attr_reader :name
1994
+
1995
+ def self.inner_class_types
1996
+ @inner_class_types = {}
1997
+ end
1998
+
1999
+ def self.field_remappings
2000
+ @field_remappings = {}
2001
+ end
2002
+ end
2003
+
2004
+ class Segment < ::Stripe::StripeObject
2005
+ class Arrival < ::Stripe::StripeObject
2006
+ # Arrival airport IATA code.
2007
+ attr_reader :airport
2008
+ # Arrival date and time.
2009
+ attr_reader :arrives_at
2010
+ # Arrival city.
2011
+ attr_reader :city
2012
+ # Arrival country.
2013
+ attr_reader :country
2014
+
2015
+ def self.inner_class_types
2016
+ @inner_class_types = {}
2017
+ end
2018
+
2019
+ def self.field_remappings
2020
+ @field_remappings = {}
2021
+ end
2022
+ end
2023
+
2024
+ class Departure < ::Stripe::StripeObject
2025
+ # Departure airport IATA code.
2026
+ attr_reader :airport
2027
+ # Departure city.
2028
+ attr_reader :city
2029
+ # Departure country.
2030
+ attr_reader :country
2031
+ # Departure date and time.
2032
+ attr_reader :departs_at
2033
+
2034
+ def self.inner_class_types
2035
+ @inner_class_types = {}
2036
+ end
2037
+
2038
+ def self.field_remappings
2039
+ @field_remappings = {}
2040
+ end
2041
+ end
2042
+ # Segment fare amount.
2043
+ attr_reader :amount
2044
+ # Attribute for field arrival
2045
+ attr_reader :arrival
2046
+ # Airline carrier code.
2047
+ attr_reader :carrier_code
2048
+ # Carrier name.
2049
+ attr_reader :carrier_name
2050
+ # Segment currency.
2051
+ attr_reader :currency
2052
+ # Attribute for field departure
2053
+ attr_reader :departure
2054
+ # Exchange ticket number.
2055
+ attr_reader :exchange_ticket_number
2056
+ # Fare basis code.
2057
+ attr_reader :fare_basis_code
2058
+ # Additional fees.
2059
+ attr_reader :fees
2060
+ # Flight number.
2061
+ attr_reader :flight_number
2062
+ # Stopover indicator.
2063
+ attr_reader :is_stop_over_indicator
2064
+ # Refundable ticket indicator.
2065
+ attr_reader :refundable
2066
+ # Class of service.
2067
+ attr_reader :service_class
2068
+ # Tax amount for segment.
2069
+ attr_reader :tax_amount
2070
+ # Ticket number.
2071
+ attr_reader :ticket_number
2072
+
2073
+ def self.inner_class_types
2074
+ @inner_class_types = { arrival: Arrival, departure: Departure }
2075
+ end
2076
+
2077
+ def self.field_remappings
2078
+ @field_remappings = {}
2079
+ end
2080
+ end
2081
+
2082
+ class Total < ::Stripe::StripeObject
2083
+ class Discounts < ::Stripe::StripeObject
2084
+ # Corporate client discount code.
2085
+ attr_reader :corporate_client_code
2086
+
2087
+ def self.inner_class_types
2088
+ @inner_class_types = {}
2089
+ end
2090
+
2091
+ def self.field_remappings
2092
+ @field_remappings = {}
2093
+ end
2094
+ end
2095
+
2096
+ class ExtraCharge < ::Stripe::StripeObject
2097
+ # Amount of the extra charge.
2098
+ attr_reader :amount
2099
+ # Type of extra charge.
2100
+ attr_reader :type
2101
+
2102
+ def self.inner_class_types
2103
+ @inner_class_types = {}
2104
+ end
2105
+
2106
+ def self.field_remappings
2107
+ @field_remappings = {}
2108
+ end
2109
+ end
2110
+
2111
+ class Tax < ::Stripe::StripeObject
2112
+ class TaxItem < ::Stripe::StripeObject
2113
+ # Tax amount.
2114
+ attr_reader :amount
2115
+ # Tax rate.
2116
+ attr_reader :rate
2117
+ # Type of tax.
2118
+ attr_reader :type
2119
+
2120
+ def self.inner_class_types
2121
+ @inner_class_types = {}
2122
+ end
2123
+
2124
+ def self.field_remappings
2125
+ @field_remappings = {}
2126
+ end
2127
+ end
2128
+ # Tax details.
2129
+ attr_reader :tax_items
2130
+
2131
+ def self.inner_class_types
2132
+ @inner_class_types = { tax_items: TaxItem }
2133
+ end
2134
+
2135
+ def self.field_remappings
2136
+ @field_remappings = {}
2137
+ end
2138
+ end
2139
+ # Total amount.
2140
+ attr_reader :amount
2141
+ # Reason for credit.
2142
+ attr_reader :credit_reason
2143
+ # Currency for the total amount.
2144
+ attr_reader :currency
2145
+ # Attribute for field discounts
2146
+ attr_reader :discounts
2147
+ # Additional charges for the flight.
2148
+ attr_reader :extra_charges
2149
+ # Attribute for field tax
2150
+ attr_reader :tax
2151
+
2152
+ def self.inner_class_types
2153
+ @inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
2154
+ end
2155
+
2156
+ def self.field_remappings
2157
+ @field_remappings = {}
2158
+ end
2159
+ end
2160
+ # Attribute for field affiliate
2161
+ attr_reader :affiliate
2162
+ # The booking number associated with the flight reservation.
2163
+ attr_reader :booking_number
2164
+ # The computerized reservation system used to make the reservation and purchase the ticket.
2165
+ attr_reader :computerized_reservation_system
2166
+ # Ticket restrictions.
2167
+ attr_reader :endorsements_and_restrictions
2168
+ # Insurance details for the flight.
2169
+ attr_reader :insurances
2170
+ # The list of passengers for this flight.
2171
+ attr_reader :passengers
2172
+ # The list of flight segments for this reservation.
2173
+ attr_reader :segments
2174
+ # Electronic ticket indicator.
2175
+ attr_reader :ticket_electronically_issued_indicator
2176
+ # Attribute for field total
2177
+ attr_reader :total
2178
+ # Type of flight transaction.
2179
+ attr_reader :transaction_type
2180
+
2181
+ def self.inner_class_types
2182
+ @inner_class_types = {
2183
+ affiliate: Affiliate,
2184
+ insurances: Insurance,
2185
+ passengers: Passenger,
2186
+ segments: Segment,
2187
+ total: Total,
2188
+ }
2189
+ end
2190
+
2191
+ def self.field_remappings
2192
+ @field_remappings = {}
2193
+ end
2194
+ end
2195
+
2196
+ class LodgingDatum < ::Stripe::StripeObject
2197
+ class Accommodation < ::Stripe::StripeObject
2198
+ # Type of accommodation.
2199
+ attr_reader :accommodation_type
2200
+ # Bed type.
2201
+ attr_reader :bed_type
2202
+ # Daily accommodation rate in cents.
2203
+ attr_reader :daily_rate_amount
2204
+ # Number of nights.
2205
+ attr_reader :nights
2206
+ # Number of rooms, cabanas, apartments, and so on.
2207
+ attr_reader :number_of_rooms
2208
+ # Rate type.
2209
+ attr_reader :rate_type
2210
+ # Whether smoking is allowed.
2211
+ attr_reader :smoking_indicator
2212
+
2213
+ def self.inner_class_types
2214
+ @inner_class_types = {}
2215
+ end
2216
+
2217
+ def self.field_remappings
2218
+ @field_remappings = {}
2219
+ end
2220
+ end
2221
+
2222
+ class Affiliate < ::Stripe::StripeObject
2223
+ # Affiliate partner code.
2224
+ attr_reader :code
2225
+ # Affiliate partner name.
2226
+ attr_reader :name
2227
+
2228
+ def self.inner_class_types
2229
+ @inner_class_types = {}
2230
+ end
2231
+
2232
+ def self.field_remappings
2233
+ @field_remappings = {}
2234
+ end
2235
+ end
2236
+
2237
+ class Guest < ::Stripe::StripeObject
2238
+ # Guest's full name.
2239
+ attr_reader :name
2240
+
2241
+ def self.inner_class_types
2242
+ @inner_class_types = {}
2243
+ end
2244
+
2245
+ def self.field_remappings
2246
+ @field_remappings = {}
2247
+ end
2248
+ end
2249
+
2250
+ class Host < ::Stripe::StripeObject
2251
+ class Address < ::Stripe::StripeObject
2252
+ # City, district, suburb, town, or village.
2253
+ attr_reader :city
2254
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2255
+ attr_reader :country
2256
+ # Address line 1, such as the street, PO Box, or company name.
2257
+ attr_reader :line1
2258
+ # Address line 2, such as the apartment, suite, unit, or building.
2259
+ attr_reader :line2
2260
+ # ZIP or postal code.
2261
+ attr_reader :postal_code
2262
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2263
+ attr_reader :state
2264
+
2265
+ def self.inner_class_types
2266
+ @inner_class_types = {}
2267
+ end
2268
+
2269
+ def self.field_remappings
2270
+ @field_remappings = {}
2271
+ end
2272
+ end
2273
+ # Attribute for field address
2274
+ attr_reader :address
2275
+ # Host's country of domicile.
2276
+ attr_reader :country_of_domicile
2277
+ # Reference number for the host.
2278
+ attr_reader :host_reference
2279
+ # Type of host.
2280
+ attr_reader :host_type
2281
+ # Name of the lodging property or host.
2282
+ attr_reader :name
2283
+ # Total number of reservations for the host.
2284
+ attr_reader :number_of_reservations
2285
+ # Property phone number.
2286
+ attr_reader :property_phone_number
2287
+ # Host's registration date.
2288
+ attr_reader :registered_at
2289
+
2290
+ def self.inner_class_types
2291
+ @inner_class_types = { address: Address }
2292
+ end
2293
+
2294
+ def self.field_remappings
2295
+ @field_remappings = {}
2296
+ end
2297
+ end
2298
+
2299
+ class Insurance < ::Stripe::StripeObject
2300
+ # Price of the insurance coverage in cents.
2301
+ attr_reader :amount
2302
+ # Currency of the insurance amount.
2303
+ attr_reader :currency
2304
+ # Name of the insurance company.
2305
+ attr_reader :insurance_company_name
2306
+ # Type of insurance coverage.
2307
+ attr_reader :insurance_type
2308
+
2309
+ def self.inner_class_types
2310
+ @inner_class_types = {}
2311
+ end
2312
+
2313
+ def self.field_remappings
2314
+ @field_remappings = {}
2315
+ end
2316
+ end
2317
+
2318
+ class Total < ::Stripe::StripeObject
2319
+ class Discounts < ::Stripe::StripeObject
2320
+ # Corporate client discount code.
2321
+ attr_reader :corporate_client_code
2322
+ # Coupon code.
2323
+ attr_reader :coupon
2324
+
2325
+ def self.inner_class_types
2326
+ @inner_class_types = {}
2327
+ end
2328
+
2329
+ def self.field_remappings
2330
+ @field_remappings = {}
2331
+ end
2332
+ end
2333
+
2334
+ class ExtraCharge < ::Stripe::StripeObject
2335
+ # Amount of the extra charge in cents.
2336
+ attr_reader :amount
2337
+ # Type of extra charge.
2338
+ attr_reader :type
2339
+
2340
+ def self.inner_class_types
2341
+ @inner_class_types = {}
2342
+ end
2343
+
2344
+ def self.field_remappings
2345
+ @field_remappings = {}
2346
+ end
2347
+ end
2348
+
2349
+ class Tax < ::Stripe::StripeObject
2350
+ class TaxItem < ::Stripe::StripeObject
2351
+ # Tax amount in cents.
2352
+ attr_reader :amount
2353
+ # Tax rate.
2354
+ attr_reader :rate
2355
+ # Type of tax applied.
2356
+ attr_reader :type
2357
+
2358
+ def self.inner_class_types
2359
+ @inner_class_types = {}
2360
+ end
2361
+
2362
+ def self.field_remappings
2363
+ @field_remappings = {}
2364
+ end
2365
+ end
2366
+ # Indicates whether the transaction is tax exempt.
2367
+ attr_reader :tax_exempt_indicator
2368
+ # Tax details.
2369
+ attr_reader :tax_items
2370
+
2371
+ def self.inner_class_types
2372
+ @inner_class_types = { tax_items: TaxItem }
2373
+ end
2374
+
2375
+ def self.field_remappings
2376
+ @field_remappings = {}
2377
+ end
2378
+ end
2379
+ # Total price of the lodging reservation in cents.
2380
+ attr_reader :amount
2381
+ # Cash advances in cents.
2382
+ attr_reader :cash_advances
2383
+ # Currency of the total amount.
2384
+ attr_reader :currency
2385
+ # Attribute for field discounts
2386
+ attr_reader :discounts
2387
+ # Additional charges for the lodging.
2388
+ attr_reader :extra_charges
2389
+ # Prepaid amount in cents.
2390
+ attr_reader :prepaid_amount
2391
+ # Attribute for field tax
2392
+ attr_reader :tax
2393
+
2394
+ def self.inner_class_types
2395
+ @inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
2396
+ end
2397
+
2398
+ def self.field_remappings
2399
+ @field_remappings = {}
2400
+ end
2401
+ end
2402
+ # Attribute for field accommodation
2403
+ attr_reader :accommodation
2404
+ # Attribute for field affiliate
2405
+ attr_reader :affiliate
2406
+ # Booking confirmation number for the lodging.
2407
+ attr_reader :booking_number
2408
+ # Check-in date.
2409
+ attr_reader :checkin_at
2410
+ # Check-out date.
2411
+ attr_reader :checkout_at
2412
+ # Customer service phone number for the lodging company.
2413
+ attr_reader :customer_service_phone_number
2414
+ # Whether the lodging is compliant with any hotel fire safety regulations.
2415
+ attr_reader :fire_safety_act_compliance_indicator
2416
+ # List of guests for the lodging.
2417
+ attr_reader :guests
2418
+ # Attribute for field host
2419
+ attr_reader :host
2420
+ # List of insurances for the lodging.
2421
+ attr_reader :insurances
2422
+ # Whether the renter is a no-show.
2423
+ attr_reader :no_show_indicator
2424
+ # Renter ID number for the lodging.
2425
+ attr_reader :renter_id_number
2426
+ # Renter name for the lodging.
2427
+ attr_reader :renter_name
2428
+ # Attribute for field total
2429
+ attr_reader :total
2430
+
2431
+ def self.inner_class_types
2432
+ @inner_class_types = {
2433
+ accommodation: Accommodation,
2434
+ affiliate: Affiliate,
2435
+ guests: Guest,
2436
+ host: Host,
2437
+ insurances: Insurance,
2438
+ total: Total,
2439
+ }
2440
+ end
2441
+
2442
+ def self.field_remappings
2443
+ @field_remappings = {}
2444
+ end
2445
+ end
2446
+
2447
+ class Subscription < ::Stripe::StripeObject
2448
+ class Affiliate < ::Stripe::StripeObject
2449
+ # The name of the affiliate that originated the purchase.
2450
+ attr_reader :name
2451
+
2452
+ def self.inner_class_types
2453
+ @inner_class_types = {}
2454
+ end
2455
+
2456
+ def self.field_remappings
2457
+ @field_remappings = {}
2458
+ end
2459
+ end
2460
+
2461
+ class BillingInterval < ::Stripe::StripeObject
2462
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2463
+ attr_reader :count
2464
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2465
+ attr_reader :interval
1287
2466
 
1288
- class PaymentDetails < ::Stripe::StripeObject
2467
+ def self.inner_class_types
2468
+ @inner_class_types = {}
2469
+ end
2470
+
2471
+ def self.field_remappings
2472
+ @field_remappings = {}
2473
+ end
2474
+ end
2475
+ # Attribute for field affiliate
2476
+ attr_reader :affiliate
2477
+ # Info whether the subscription will be auto renewed upon expiry.
2478
+ attr_reader :auto_renewal
2479
+ # Attribute for field billing_interval
2480
+ attr_reader :billing_interval
2481
+ # Subscription end time. Measured in seconds since the Unix epoch.
2482
+ attr_reader :ends_at
2483
+ # Name of the product on subscription. e.g. Apple Music Subscription.
2484
+ attr_reader :name
2485
+ # Subscription start time. Measured in seconds since the Unix epoch.
2486
+ attr_reader :starts_at
2487
+
2488
+ def self.inner_class_types
2489
+ @inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
2490
+ end
2491
+
2492
+ def self.field_remappings
2493
+ @field_remappings = {}
2494
+ end
2495
+ end
2496
+ # Attribute for field car_rental
2497
+ attr_reader :car_rental
2498
+ # Attribute for field car_rental_data
2499
+ attr_reader :car_rental_data
1289
2500
  # A unique value to identify the customer. This field is available only for card payments.
1290
2501
  #
1291
2502
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1292
2503
  attr_reader :customer_reference
2504
+ # Attribute for field event_details
2505
+ attr_reader :event_details
2506
+ # Attribute for field flight_data
2507
+ attr_reader :flight_data
2508
+ # Attribute for field lodging_data
2509
+ attr_reader :lodging_data
1293
2510
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1294
2511
  #
1295
2512
  # 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.
1296
2513
  attr_reader :order_reference
2514
+ # Attribute for field subscription
2515
+ attr_reader :subscription
1297
2516
 
1298
2517
  def self.inner_class_types
1299
- @inner_class_types = {}
2518
+ @inner_class_types = {
2519
+ car_rental: CarRental,
2520
+ car_rental_data: CarRentalDatum,
2521
+ event_details: EventDetails,
2522
+ flight_data: FlightDatum,
2523
+ lodging_data: LodgingDatum,
2524
+ subscription: Subscription,
2525
+ }
1300
2526
  end
1301
2527
 
1302
2528
  def self.field_remappings
@@ -1746,6 +2972,43 @@ module Stripe
1746
2972
  @field_remappings = {}
1747
2973
  end
1748
2974
  end
2975
+
2976
+ class StatementDetails < ::Stripe::StripeObject
2977
+ class Address < ::Stripe::StripeObject
2978
+ # City, district, suburb, town, or village.
2979
+ attr_reader :city
2980
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2981
+ attr_reader :country
2982
+ # Address line 1, such as the street, PO Box, or company name.
2983
+ attr_reader :line1
2984
+ # Address line 2, such as the apartment, suite, unit, or building.
2985
+ attr_reader :line2
2986
+ # ZIP or postal code.
2987
+ attr_reader :postal_code
2988
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2989
+ attr_reader :state
2990
+
2991
+ def self.inner_class_types
2992
+ @inner_class_types = {}
2993
+ end
2994
+
2995
+ def self.field_remappings
2996
+ @field_remappings = {}
2997
+ end
2998
+ end
2999
+ # Attribute for field address
3000
+ attr_reader :address
3001
+ # Phone number
3002
+ attr_reader :phone
3003
+
3004
+ def self.inner_class_types
3005
+ @inner_class_types = { address: Address }
3006
+ end
3007
+
3008
+ def self.field_remappings
3009
+ @field_remappings = {}
3010
+ end
3011
+ end
1749
3012
  # Controls when the funds will be captured from the customer's account.
1750
3013
  attr_reader :capture_method
1751
3014
  # Installment details for this payment.
@@ -1756,6 +3019,8 @@ module Stripe
1756
3019
  attr_reader :mandate_options
1757
3020
  # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
1758
3021
  attr_reader :network
3022
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3023
+ attr_reader :request_decremental_authorization
1759
3024
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1760
3025
  attr_reader :request_extended_authorization
1761
3026
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1764,6 +3029,8 @@ module Stripe
1764
3029
  attr_reader :request_multicapture
1765
3030
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1766
3031
  attr_reader :request_overcapture
3032
+ # Request partial authorization on this PaymentIntent.
3033
+ attr_reader :request_partial_authorization
1767
3034
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1768
3035
  attr_reader :request_three_d_secure
1769
3036
  # 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).
@@ -1782,11 +3049,17 @@ module Stripe
1782
3049
  attr_reader :statement_descriptor_suffix_kana
1783
3050
  # 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.
1784
3051
  attr_reader :statement_descriptor_suffix_kanji
3052
+ # Attribute for field statement_details
3053
+ attr_reader :statement_details
1785
3054
  # Selected usage to indicate the transaction type of the off-session payment.
1786
3055
  attr_reader :stored_credential_usage
1787
3056
 
1788
3057
  def self.inner_class_types
1789
- @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
3058
+ @inner_class_types = {
3059
+ installments: Installments,
3060
+ mandate_options: MandateOptions,
3061
+ statement_details: StatementDetails,
3062
+ }
1790
3063
  end
1791
3064
 
1792
3065
  def self.field_remappings
@@ -1975,6 +3248,25 @@ module Stripe
1975
3248
  end
1976
3249
  end
1977
3250
 
3251
+ class Gopay < ::Stripe::StripeObject
3252
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3253
+ #
3254
+ # 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.
3255
+ #
3256
+ # 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.
3257
+ #
3258
+ # 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).
3259
+ attr_reader :setup_future_usage
3260
+
3261
+ def self.inner_class_types
3262
+ @inner_class_types = {}
3263
+ end
3264
+
3265
+ def self.field_remappings
3266
+ @field_remappings = {}
3267
+ end
3268
+ end
3269
+
1978
3270
  class Grabpay < ::Stripe::StripeObject
1979
3271
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1980
3272
  #
@@ -1994,6 +3286,29 @@ module Stripe
1994
3286
  end
1995
3287
  end
1996
3288
 
3289
+ class IdBankTransfer < ::Stripe::StripeObject
3290
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
3291
+ attr_reader :expires_after
3292
+ # 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.
3293
+ attr_reader :expires_at
3294
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3295
+ #
3296
+ # 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.
3297
+ #
3298
+ # 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.
3299
+ #
3300
+ # 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).
3301
+ attr_reader :setup_future_usage
3302
+
3303
+ def self.inner_class_types
3304
+ @inner_class_types = {}
3305
+ end
3306
+
3307
+ def self.field_remappings
3308
+ @field_remappings = {}
3309
+ end
3310
+ end
3311
+
1997
3312
  class Ideal < ::Stripe::StripeObject
1998
3313
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1999
3314
  #
@@ -2330,12 +3645,56 @@ module Stripe
2330
3645
  end
2331
3646
 
2332
3647
  class Paypal < ::Stripe::StripeObject
3648
+ class LineItem < ::Stripe::StripeObject
3649
+ class Tax < ::Stripe::StripeObject
3650
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
3651
+ attr_reader :amount
3652
+ # The tax behavior for the line item.
3653
+ attr_reader :behavior
3654
+
3655
+ def self.inner_class_types
3656
+ @inner_class_types = {}
3657
+ end
3658
+
3659
+ def self.field_remappings
3660
+ @field_remappings = {}
3661
+ end
3662
+ end
3663
+ # Type of the line item.
3664
+ attr_reader :category
3665
+ # Description of the line item.
3666
+ attr_reader :description
3667
+ # Descriptive name of the line item.
3668
+ attr_reader :name
3669
+ # Quantity of the line item. Cannot be a negative number.
3670
+ attr_reader :quantity
3671
+ # Client facing stock keeping unit, article number or similar.
3672
+ attr_reader :sku
3673
+ # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
3674
+ attr_reader :sold_by
3675
+ # Attribute for field tax
3676
+ attr_reader :tax
3677
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
3678
+ attr_reader :unit_amount
3679
+
3680
+ def self.inner_class_types
3681
+ @inner_class_types = { tax: Tax }
3682
+ end
3683
+
3684
+ def self.field_remappings
3685
+ @field_remappings = {}
3686
+ end
3687
+ end
2333
3688
  # Controls when the funds will be captured from the customer's account.
2334
3689
  attr_reader :capture_method
3690
+ # The line items purchased by the customer.
3691
+ attr_reader :line_items
2335
3692
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
2336
3693
  attr_reader :preferred_locale
2337
3694
  # 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.
2338
3695
  attr_reader :reference
3696
+ # 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.
3697
+ attr_reader :reference_id
2339
3698
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2340
3699
  #
2341
3700
  # 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.
@@ -2344,9 +3703,11 @@ module Stripe
2344
3703
  #
2345
3704
  # 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).
2346
3705
  attr_reader :setup_future_usage
3706
+ # 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.
3707
+ attr_reader :subsellers
2347
3708
 
2348
3709
  def self.inner_class_types
2349
- @inner_class_types = {}
3710
+ @inner_class_types = { line_items: LineItem }
2350
3711
  end
2351
3712
 
2352
3713
  def self.field_remappings
@@ -2479,6 +3840,35 @@ module Stripe
2479
3840
  end
2480
3841
  end
2481
3842
 
3843
+ class Qris < ::Stripe::StripeObject
3844
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3845
+ #
3846
+ # 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.
3847
+ #
3848
+ # 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.
3849
+ #
3850
+ # 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).
3851
+ attr_reader :setup_future_usage
3852
+
3853
+ def self.inner_class_types
3854
+ @inner_class_types = {}
3855
+ end
3856
+
3857
+ def self.field_remappings
3858
+ @field_remappings = {}
3859
+ end
3860
+ end
3861
+
3862
+ class Rechnung < ::Stripe::StripeObject
3863
+ def self.inner_class_types
3864
+ @inner_class_types = {}
3865
+ end
3866
+
3867
+ def self.field_remappings
3868
+ @field_remappings = {}
3869
+ end
3870
+ end
3871
+
2482
3872
  class RevolutPay < ::Stripe::StripeObject
2483
3873
  # Controls when the funds will be captured from the customer's account.
2484
3874
  attr_reader :capture_method
@@ -2611,6 +4001,25 @@ module Stripe
2611
4001
  end
2612
4002
  end
2613
4003
 
4004
+ class Shopeepay < ::Stripe::StripeObject
4005
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4006
+ #
4007
+ # 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.
4008
+ #
4009
+ # 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.
4010
+ #
4011
+ # 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).
4012
+ attr_reader :setup_future_usage
4013
+
4014
+ def self.inner_class_types
4015
+ @inner_class_types = {}
4016
+ end
4017
+
4018
+ def self.field_remappings
4019
+ @field_remappings = {}
4020
+ end
4021
+ end
4022
+
2614
4023
  class Sofort < ::Stripe::StripeObject
2615
4024
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
2616
4025
  attr_reader :preferred_language
@@ -2632,6 +4041,25 @@ module Stripe
2632
4041
  end
2633
4042
  end
2634
4043
 
4044
+ class StripeBalance < ::Stripe::StripeObject
4045
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4046
+ #
4047
+ # 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.
4048
+ #
4049
+ # 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.
4050
+ #
4051
+ # 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).
4052
+ attr_reader :setup_future_usage
4053
+
4054
+ def self.inner_class_types
4055
+ @inner_class_types = {}
4056
+ end
4057
+
4058
+ def self.field_remappings
4059
+ @field_remappings = {}
4060
+ end
4061
+ end
4062
+
2635
4063
  class Sunbit < ::Stripe::StripeObject
2636
4064
  # Controls when the funds will be captured from the customer's account.
2637
4065
  attr_reader :capture_method
@@ -2717,6 +4145,21 @@ module Stripe
2717
4145
  class Filters < ::Stripe::StripeObject
2718
4146
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2719
4147
  attr_reader :account_subcategories
4148
+ # The institution to use to filter for possible accounts to link.
4149
+ attr_reader :institution
4150
+
4151
+ def self.inner_class_types
4152
+ @inner_class_types = {}
4153
+ end
4154
+
4155
+ def self.field_remappings
4156
+ @field_remappings = {}
4157
+ end
4158
+ end
4159
+
4160
+ class ManualEntry < ::Stripe::StripeObject
4161
+ # Settings for configuring manual entry of account details.
4162
+ attr_reader :mode
2720
4163
 
2721
4164
  def self.inner_class_types
2722
4165
  @inner_class_types = {}
@@ -2728,6 +4171,8 @@ module Stripe
2728
4171
  end
2729
4172
  # Attribute for field filters
2730
4173
  attr_reader :filters
4174
+ # Attribute for field manual_entry
4175
+ attr_reader :manual_entry
2731
4176
  # The list of permissions to request. The `payment_method` permission must be included.
2732
4177
  attr_reader :permissions
2733
4178
  # Data features requested to be retrieved upon account creation.
@@ -2736,7 +4181,7 @@ module Stripe
2736
4181
  attr_reader :return_url
2737
4182
 
2738
4183
  def self.inner_class_types
2739
- @inner_class_types = { filters: Filters }
4184
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
2740
4185
  end
2741
4186
 
2742
4187
  def self.field_remappings
@@ -2810,6 +4255,25 @@ module Stripe
2810
4255
  end
2811
4256
  end
2812
4257
 
4258
+ class Wero < ::Stripe::StripeObject
4259
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4260
+ #
4261
+ # 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.
4262
+ #
4263
+ # 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.
4264
+ #
4265
+ # 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).
4266
+ attr_reader :setup_future_usage
4267
+
4268
+ def self.inner_class_types
4269
+ @inner_class_types = {}
4270
+ end
4271
+
4272
+ def self.field_remappings
4273
+ @field_remappings = {}
4274
+ end
4275
+ end
4276
+
2813
4277
  class Zip < ::Stripe::StripeObject
2814
4278
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2815
4279
  #
@@ -2870,8 +4334,12 @@ module Stripe
2870
4334
  attr_reader :fpx
2871
4335
  # Attribute for field giropay
2872
4336
  attr_reader :giropay
4337
+ # Attribute for field gopay
4338
+ attr_reader :gopay
2873
4339
  # Attribute for field grabpay
2874
4340
  attr_reader :grabpay
4341
+ # Attribute for field id_bank_transfer
4342
+ attr_reader :id_bank_transfer
2875
4343
  # Attribute for field ideal
2876
4344
  attr_reader :ideal
2877
4345
  # Attribute for field interac_present
@@ -2916,6 +4384,10 @@ module Stripe
2916
4384
  attr_reader :pix
2917
4385
  # Attribute for field promptpay
2918
4386
  attr_reader :promptpay
4387
+ # Attribute for field qris
4388
+ attr_reader :qris
4389
+ # Attribute for field rechnung
4390
+ attr_reader :rechnung
2919
4391
  # Attribute for field revolut_pay
2920
4392
  attr_reader :revolut_pay
2921
4393
  # Attribute for field samsung_pay
@@ -2928,8 +4400,12 @@ module Stripe
2928
4400
  attr_reader :sepa_debit
2929
4401
  # Attribute for field sequra
2930
4402
  attr_reader :sequra
4403
+ # Attribute for field shopeepay
4404
+ attr_reader :shopeepay
2931
4405
  # Attribute for field sofort
2932
4406
  attr_reader :sofort
4407
+ # Attribute for field stripe_balance
4408
+ attr_reader :stripe_balance
2933
4409
  # Attribute for field sunbit
2934
4410
  attr_reader :sunbit
2935
4411
  # Attribute for field swish
@@ -2942,6 +4418,8 @@ module Stripe
2942
4418
  attr_reader :us_bank_account
2943
4419
  # Attribute for field wechat_pay
2944
4420
  attr_reader :wechat_pay
4421
+ # Attribute for field wero
4422
+ attr_reader :wero
2945
4423
  # Attribute for field zip
2946
4424
  attr_reader :zip
2947
4425
 
@@ -2968,7 +4446,9 @@ module Stripe
2968
4446
  eps: Eps,
2969
4447
  fpx: Fpx,
2970
4448
  giropay: Giropay,
4449
+ gopay: Gopay,
2971
4450
  grabpay: Grabpay,
4451
+ id_bank_transfer: IdBankTransfer,
2972
4452
  ideal: Ideal,
2973
4453
  interac_present: InteracPresent,
2974
4454
  kakao_pay: KakaoPay,
@@ -2991,19 +4471,24 @@ module Stripe
2991
4471
  payto: Payto,
2992
4472
  pix: Pix,
2993
4473
  promptpay: Promptpay,
4474
+ qris: Qris,
4475
+ rechnung: Rechnung,
2994
4476
  revolut_pay: RevolutPay,
2995
4477
  samsung_pay: SamsungPay,
2996
4478
  satispay: Satispay,
2997
4479
  scalapay: Scalapay,
2998
4480
  sepa_debit: SepaDebit,
2999
4481
  sequra: Sequra,
4482
+ shopeepay: Shopeepay,
3000
4483
  sofort: Sofort,
4484
+ stripe_balance: StripeBalance,
3001
4485
  sunbit: Sunbit,
3002
4486
  swish: Swish,
3003
4487
  twint: Twint,
3004
4488
  upi: Upi,
3005
4489
  us_bank_account: UsBankAccount,
3006
4490
  wechat_pay: WechatPay,
4491
+ wero: Wero,
3007
4492
  zip: Zip,
3008
4493
  }
3009
4494
  end
@@ -3069,6 +4554,19 @@ module Stripe
3069
4554
  end
3070
4555
  end
3071
4556
 
4557
+ class Redaction < ::Stripe::StripeObject
4558
+ # Indicates whether this object and its related objects have been redacted or not.
4559
+ attr_reader :status
4560
+
4561
+ def self.inner_class_types
4562
+ @inner_class_types = {}
4563
+ end
4564
+
4565
+ def self.field_remappings
4566
+ @field_remappings = {}
4567
+ end
4568
+ end
4569
+
3072
4570
  class Shipping < ::Stripe::StripeObject
3073
4571
  class Address < ::Stripe::StripeObject
3074
4572
  # City, district, suburb, town, or village.
@@ -3162,6 +4660,8 @@ module Stripe
3162
4660
  attr_reader :application
3163
4661
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
3164
4662
  attr_reader :application_fee_amount
4663
+ # Attribute for field async_workflows
4664
+ attr_reader :async_workflows
3165
4665
  # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
3166
4666
  attr_reader :automatic_payment_methods
3167
4667
  # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
@@ -3198,6 +4698,8 @@ module Stripe
3198
4698
  attr_reader :description
3199
4699
  # The list of payment method types to exclude from use with this payment.
3200
4700
  attr_reader :excluded_payment_method_types
4701
+ # The FX Quote used for the PaymentIntent.
4702
+ attr_reader :fx_quote
3201
4703
  # Attribute for field hooks
3202
4704
  attr_reader :hooks
3203
4705
  # Unique identifier for the object.
@@ -3237,8 +4739,12 @@ module Stripe
3237
4739
  attr_reader :processing
3238
4740
  # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
3239
4741
  attr_reader :receipt_email
4742
+ # Redaction status of this PaymentIntent. If the PaymentIntent isn't redacted, this field is null.
4743
+ attr_reader :redaction
3240
4744
  # ID of the review associated with this PaymentIntent, if any.
3241
4745
  attr_reader :review
4746
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
4747
+ attr_reader :secret_key_confirmation
3242
4748
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3243
4749
  #
3244
4750
  # 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.
@@ -3432,6 +4938,56 @@ module Stripe
3432
4938
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
3433
4939
  end
3434
4940
 
4941
+ # Perform a decremental authorization on an eligible
4942
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
4943
+ # PaymentIntent's status must be requires_capture and
4944
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
4945
+ # must be available.
4946
+ #
4947
+ # Decremental authorizations decrease the authorized amount on your customer's card
4948
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
4949
+ #
4950
+ # After decrement, the PaymentIntent object
4951
+ # returns with the updated
4952
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
4953
+ # The PaymentIntent will now be capturable up to the new authorized amount.
4954
+ #
4955
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
4956
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
4957
+ def decrement_authorization(params = {}, opts = {})
4958
+ request_stripe_object(
4959
+ method: :post,
4960
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
4961
+ params: params,
4962
+ opts: opts
4963
+ )
4964
+ end
4965
+
4966
+ # Perform a decremental authorization on an eligible
4967
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
4968
+ # PaymentIntent's status must be requires_capture and
4969
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
4970
+ # must be available.
4971
+ #
4972
+ # Decremental authorizations decrease the authorized amount on your customer's card
4973
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
4974
+ #
4975
+ # After decrement, the PaymentIntent object
4976
+ # returns with the updated
4977
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
4978
+ # The PaymentIntent will now be capturable up to the new authorized amount.
4979
+ #
4980
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
4981
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
4982
+ def self.decrement_authorization(intent, params = {}, opts = {})
4983
+ request_stripe_object(
4984
+ method: :post,
4985
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
4986
+ params: params,
4987
+ opts: opts
4988
+ )
4989
+ end
4990
+
3435
4991
  # Perform an incremental authorization on an eligible
3436
4992
  # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3437
4993
  # PaymentIntent's status must be requires_capture and
@@ -3520,6 +5076,26 @@ module Stripe
3520
5076
  search(params, opts).auto_paging_each(&blk)
3521
5077
  end
3522
5078
 
5079
+ # Trigger an external action on a PaymentIntent.
5080
+ def trigger_action(params = {}, opts = {})
5081
+ request_stripe_object(
5082
+ method: :post,
5083
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
5084
+ params: params,
5085
+ opts: opts
5086
+ )
5087
+ end
5088
+
5089
+ # Trigger an external action on a PaymentIntent.
5090
+ def self.trigger_action(intent, params = {}, opts = {})
5091
+ request_stripe_object(
5092
+ method: :post,
5093
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
5094
+ params: params,
5095
+ opts: opts
5096
+ )
5097
+ end
5098
+
3523
5099
  # Updates properties on a PaymentIntent object without confirming.
3524
5100
  #
3525
5101
  # Depending on which properties you update, you might need to confirm the
@@ -3559,6 +5135,7 @@ module Stripe
3559
5135
  def self.inner_class_types
3560
5136
  @inner_class_types = {
3561
5137
  amount_details: AmountDetails,
5138
+ async_workflows: AsyncWorkflows,
3562
5139
  automatic_payment_methods: AutomaticPaymentMethods,
3563
5140
  hooks: Hooks,
3564
5141
  last_payment_error: LastPaymentError,
@@ -3569,6 +5146,7 @@ module Stripe
3569
5146
  payment_method_options: PaymentMethodOptions,
3570
5147
  presentment_details: PresentmentDetails,
3571
5148
  processing: Processing,
5149
+ redaction: Redaction,
3572
5150
  shipping: Shipping,
3573
5151
  transfer_data: TransferData,
3574
5152
  }