stripe 18.1.0 → 18.2.0.pre.alpha.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 (770) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +36 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +66 -0
  5. data/lib/stripe/event_types.rb +569 -0
  6. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  7. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  8. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  9. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  10. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  11. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  12. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  13. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  15. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  17. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  18. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  19. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  29. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  30. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  31. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  41. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  43. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  44. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  45. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  46. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  48. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  50. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  51. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  52. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  53. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  54. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  55. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  56. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  57. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  58. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  59. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  60. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  61. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  62. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  63. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  64. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  65. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  66. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  67. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  68. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
  69. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
  70. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
  71. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
  72. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  73. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  74. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  75. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
  76. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
  77. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
  78. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
  79. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
  80. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
  81. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
  82. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
  83. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
  84. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  85. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  86. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  87. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  88. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  89. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  90. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  91. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  92. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  93. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  94. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  95. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  96. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  97. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  98. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  99. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  100. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  101. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  102. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  103. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  104. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  105. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  106. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  107. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  108. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  109. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  110. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  111. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  112. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  113. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  114. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  115. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  116. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  117. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  118. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  119. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  120. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  121. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  122. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  123. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  124. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  125. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  126. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  127. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  128. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  129. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  130. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  131. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  132. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
  133. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  134. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  135. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  136. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  137. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  138. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  139. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  140. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  141. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  142. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  143. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  144. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  145. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  146. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  147. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  148. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  149. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  150. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  151. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  152. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  153. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  154. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  155. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  156. data/lib/stripe/object_types.rb +89 -0
  157. data/lib/stripe/params/account_create_params.rb +338 -3
  158. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  159. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  160. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  161. data/lib/stripe/params/account_person_create_params.rb +32 -0
  162. data/lib/stripe/params/account_person_update_params.rb +32 -0
  163. data/lib/stripe/params/account_session_create_params.rb +243 -1
  164. data/lib/stripe/params/account_update_params.rb +300 -2
  165. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  166. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  167. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  168. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  169. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  170. data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
  171. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  172. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  173. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  174. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  175. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  176. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  177. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  178. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  179. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  180. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  181. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  182. data/lib/stripe/params/charge_update_params.rb +1648 -0
  183. data/lib/stripe/params/checkout/session_create_params.rb +222 -5
  184. data/lib/stripe/params/checkout/session_update_params.rb +154 -2
  185. data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
  186. data/lib/stripe/params/coupon_create_params.rb +17 -1
  187. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  188. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
  189. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  190. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  191. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  192. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  193. data/lib/stripe/params/dispute_update_params.rb +10 -1
  194. data/lib/stripe/params/external_account_create_params.rb +134 -0
  195. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  196. data/lib/stripe/params/external_account_list_params.rb +25 -0
  197. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  198. data/lib/stripe/params/external_account_update_params.rb +91 -0
  199. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  200. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  201. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  202. data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
  203. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  204. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  205. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  206. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  207. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  208. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  209. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  210. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  211. data/lib/stripe/params/invoice_add_lines_params.rb +46 -2
  212. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  213. data/lib/stripe/params/invoice_create_params.rb +107 -2
  214. data/lib/stripe/params/invoice_create_preview_params.rb +941 -9
  215. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  216. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  217. data/lib/stripe/params/invoice_line_item_update_params.rb +46 -2
  218. data/lib/stripe/params/invoice_list_params.rb +4 -0
  219. data/lib/stripe/params/invoice_update_lines_params.rb +46 -2
  220. data/lib/stripe/params/invoice_update_params.rb +107 -2
  221. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  222. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  223. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  224. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  225. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  226. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  227. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  228. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  229. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  230. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  231. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  232. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  233. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  234. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  235. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  236. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  237. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  238. data/lib/stripe/params/mandate_list_params.rb +39 -0
  239. data/lib/stripe/params/margin_create_params.rb +25 -0
  240. data/lib/stripe/params/margin_list_params.rb +25 -0
  241. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  242. data/lib/stripe/params/margin_update_params.rb +22 -0
  243. data/lib/stripe/params/order_cancel_params.rb +13 -0
  244. data/lib/stripe/params/order_create_params.rb +2061 -0
  245. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  246. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  247. data/lib/stripe/params/order_list_params.rb +25 -0
  248. data/lib/stripe/params/order_reopen_params.rb +13 -0
  249. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  250. data/lib/stripe/params/order_submit_params.rb +16 -0
  251. data/lib/stripe/params/order_update_params.rb +2065 -0
  252. data/lib/stripe/params/payment_intent_capture_params.rb +1628 -2
  253. data/lib/stripe/params/payment_intent_confirm_params.rb +3143 -145
  254. data/lib/stripe/params/payment_intent_create_params.rb +3135 -124
  255. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  256. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +22 -1
  257. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  258. data/lib/stripe/params/payment_intent_update_params.rb +3186 -161
  259. data/lib/stripe/params/payment_link_create_params.rb +13 -1
  260. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  261. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  262. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  263. data/lib/stripe/params/payment_method_create_params.rb +77 -0
  264. data/lib/stripe/params/price_update_params.rb +19 -0
  265. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  266. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  267. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  268. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  269. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  270. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  271. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  272. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  273. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
  274. data/lib/stripe/params/product_create_params.rb +14 -1
  275. data/lib/stripe/params/product_update_params.rb +14 -1
  276. data/lib/stripe/params/quote_create_params.rb +1021 -3
  277. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  278. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  279. data/lib/stripe/params/quote_list_params.rb +4 -0
  280. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  281. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  282. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  283. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  284. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  285. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  286. data/lib/stripe/params/quote_update_params.rb +1029 -4
  287. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  288. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  289. data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
  290. data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
  291. data/lib/stripe/params/setup_intent_create_params.rb +187 -3
  292. data/lib/stripe/params/setup_intent_update_params.rb +188 -4
  293. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  294. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  295. data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
  296. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  297. data/lib/stripe/params/subscription_create_params.rb +270 -5
  298. data/lib/stripe/params/subscription_item_create_params.rb +62 -2
  299. data/lib/stripe/params/subscription_item_update_params.rb +45 -1
  300. data/lib/stripe/params/subscription_schedule_amend_params.rb +609 -0
  301. data/lib/stripe/params/subscription_schedule_create_params.rb +231 -5
  302. data/lib/stripe/params/subscription_schedule_update_params.rb +231 -5
  303. data/lib/stripe/params/subscription_update_params.rb +253 -4
  304. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  305. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  306. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  307. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  308. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  309. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  310. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  311. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  312. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
  313. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  314. data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
  315. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  316. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  317. data/lib/stripe/params/token_create_params.rb +64 -0
  318. data/lib/stripe/params/transfer_create_params.rb +8 -0
  319. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  320. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  321. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  322. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  323. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  324. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  325. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  326. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  327. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  328. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  329. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  330. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  331. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  332. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  333. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  334. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  335. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  336. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  337. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  338. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  339. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  340. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  341. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  342. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  343. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  344. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  345. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  346. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  347. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  348. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  349. data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
  350. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  351. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  352. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  353. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  354. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  355. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  356. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  357. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  358. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  359. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  360. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  361. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  362. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  363. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  364. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  365. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  366. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  367. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  368. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  369. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  370. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  371. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  372. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  373. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  374. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  375. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  376. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  377. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  378. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  379. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  380. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  381. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  382. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  383. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  384. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  385. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  386. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  387. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  388. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  389. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  390. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  391. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  392. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  393. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  394. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  395. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  396. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  397. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  398. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  399. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  400. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  401. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  402. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  403. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  404. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  405. data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
  406. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  407. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  408. data/lib/stripe/params/v2/core/account_create_params.rb +959 -5
  409. data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
  410. data/lib/stripe/params/v2/core/account_update_params.rb +938 -5
  411. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  412. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  413. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  414. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  415. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  416. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  417. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  418. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  419. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  420. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  421. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  422. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  423. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  424. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  425. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  426. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  427. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  428. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  429. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  430. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  431. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  432. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  433. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  434. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  435. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  436. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  437. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  438. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  439. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  440. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  441. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +23 -0
  442. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  443. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  444. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  445. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  446. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  447. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  448. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  449. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  450. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  451. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +117 -0
  452. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  453. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +82 -0
  454. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  455. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  456. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  457. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  458. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  459. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  460. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  461. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  462. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
  463. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  464. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  465. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  466. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  467. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  468. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  469. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  470. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  471. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  472. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  473. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  474. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  475. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  476. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  477. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  478. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  479. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  480. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  481. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  482. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
  483. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
  484. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  485. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  486. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  487. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
  488. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  489. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  490. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
  491. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  492. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
  493. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  494. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  495. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  496. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  497. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
  498. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  499. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  500. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  501. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
  502. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  503. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  504. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  505. data/lib/stripe/params.rb +271 -0
  506. data/lib/stripe/resources/account.rb +182 -1
  507. data/lib/stripe/resources/account_notice.rb +94 -0
  508. data/lib/stripe/resources/account_session.rb +108 -0
  509. data/lib/stripe/resources/application_fee.rb +2 -0
  510. data/lib/stripe/resources/balance.rb +83 -0
  511. data/lib/stripe/resources/balance_transfer.rb +139 -0
  512. data/lib/stripe/resources/billing/alert.rb +105 -1
  513. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  514. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  515. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  516. data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
  517. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  518. data/lib/stripe/resources/billing/credit_grant.rb +58 -2
  519. data/lib/stripe/resources/billing/meter.rb +2 -0
  520. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  521. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  522. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  523. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  524. data/lib/stripe/resources/card.rb +20 -1
  525. data/lib/stripe/resources/charge.rb +233 -1
  526. data/lib/stripe/resources/checkout/session.rb +196 -4
  527. data/lib/stripe/resources/confirmation_token.rb +151 -0
  528. data/lib/stripe/resources/coupon.rb +26 -1
  529. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  530. data/lib/stripe/resources/customer_session.rb +36 -0
  531. data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
  532. data/lib/stripe/resources/discount.rb +2 -0
  533. data/lib/stripe/resources/dispute.rb +22 -0
  534. data/lib/stripe/resources/event.rb +64 -1
  535. data/lib/stripe/resources/financial_connections/account.rb +25 -0
  536. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  537. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  538. data/lib/stripe/resources/financial_connections/session.rb +65 -1
  539. data/lib/stripe/resources/fx_quote.rb +147 -0
  540. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  541. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  542. data/lib/stripe/resources/invoice.rb +166 -1
  543. data/lib/stripe/resources/invoice_item.rb +108 -2
  544. data/lib/stripe/resources/invoice_line_item.rb +147 -3
  545. data/lib/stripe/resources/issuing/card.rb +4 -0
  546. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  547. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  548. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  549. data/lib/stripe/resources/issuing/program.rb +69 -0
  550. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  551. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  552. data/lib/stripe/resources/line_item.rb +66 -1
  553. data/lib/stripe/resources/mandate.rb +43 -0
  554. data/lib/stripe/resources/margin.rb +64 -0
  555. data/lib/stripe/resources/order.rb +987 -0
  556. data/lib/stripe/resources/payment_attempt_record.rb +181 -1
  557. data/lib/stripe/resources/payment_intent.rb +800 -5
  558. data/lib/stripe/resources/payment_method.rb +173 -0
  559. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  560. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  561. data/lib/stripe/resources/payment_record.rb +181 -1
  562. data/lib/stripe/resources/person.rb +36 -0
  563. data/lib/stripe/resources/price.rb +20 -0
  564. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  565. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  566. data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
  567. data/lib/stripe/resources/quote.rb +806 -2
  568. data/lib/stripe/resources/quote_line.rb +527 -0
  569. data/lib/stripe/resources/quote_preview_invoice.rb +1198 -0
  570. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
  571. data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
  572. data/lib/stripe/resources/refund.rb +18 -0
  573. data/lib/stripe/resources/setup_attempt.rb +48 -0
  574. data/lib/stripe/resources/setup_intent.rb +128 -1
  575. data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
  576. data/lib/stripe/resources/source.rb +38 -0
  577. data/lib/stripe/resources/subscription.rb +249 -0
  578. data/lib/stripe/resources/subscription_item.rb +43 -1
  579. data/lib/stripe/resources/subscription_schedule.rb +290 -3
  580. data/lib/stripe/resources/tax/form.rb +264 -0
  581. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  582. data/lib/stripe/resources/terminal/reader.rb +8 -0
  583. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  584. data/lib/stripe/resources/transfer.rb +6 -0
  585. data/lib/stripe/resources/transit_balance.rb +45 -0
  586. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  587. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  588. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  589. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  590. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  591. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  592. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  593. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  594. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  595. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  596. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  597. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  598. data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
  599. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  600. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  601. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  602. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  603. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  604. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  605. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  606. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  607. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  608. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  609. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  610. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  611. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  612. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  613. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  614. data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
  615. data/lib/stripe/resources/v2/core/account.rb +1688 -58
  616. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  617. data/lib/stripe/resources/v2/core/event.rb +50 -1
  618. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +134 -0
  619. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +103 -0
  620. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  621. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  622. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  623. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  624. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  625. data/lib/stripe/resources/v2/money_management/financial_account.rb +223 -0
  626. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  627. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  628. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +265 -0
  629. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +204 -0
  630. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  631. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
  632. data/lib/stripe/resources/v2/money_management/payout_method.rb +157 -0
  633. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  634. data/lib/stripe/resources/v2/money_management/received_credit.rb +280 -0
  635. data/lib/stripe/resources/v2/money_management/received_debit.rb +208 -0
  636. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  637. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  638. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  639. data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
  640. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
  641. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
  642. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  643. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  644. data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
  645. data/lib/stripe/resources.rb +233 -0
  646. data/lib/stripe/services/account_notice_service.rb +39 -0
  647. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  648. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  649. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  650. data/lib/stripe/services/billing_service.rb +2 -1
  651. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  652. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  653. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  654. data/lib/stripe/services/capital_service.rb +15 -0
  655. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  656. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  657. data/lib/stripe/services/external_account_service.rb +68 -0
  658. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  659. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  660. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  661. data/lib/stripe/services/financial_connections_service.rb +2 -1
  662. data/lib/stripe/services/fx_quote_service.rb +27 -0
  663. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  664. data/lib/stripe/services/identity_service.rb +2 -1
  665. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  666. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  667. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  668. data/lib/stripe/services/issuing/program_service.rb +52 -0
  669. data/lib/stripe/services/issuing_service.rb +6 -1
  670. data/lib/stripe/services/mandate_service.rb +5 -0
  671. data/lib/stripe/services/margin_service.rb +50 -0
  672. data/lib/stripe/services/order_line_item_service.rb +17 -0
  673. data/lib/stripe/services/order_service.rb +78 -0
  674. data/lib/stripe/services/payment_intent_service.rb +37 -0
  675. data/lib/stripe/services/payment_method_service.rb +11 -0
  676. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  677. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  678. data/lib/stripe/services/privacy_service.rb +13 -0
  679. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  680. data/lib/stripe/services/product_catalog_service.rb +13 -0
  681. data/lib/stripe/services/quote_line_service.rb +17 -0
  682. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  683. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  684. data/lib/stripe/services/quote_service.rb +49 -1
  685. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  686. data/lib/stripe/services/radar_service.rb +2 -1
  687. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  688. data/lib/stripe/services/shared_payment_service.rb +13 -0
  689. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  690. data/lib/stripe/services/subscription_service.rb +11 -0
  691. data/lib/stripe/services/tax/form_service.rb +37 -0
  692. data/lib/stripe/services/tax_service.rb +2 -1
  693. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  694. data/lib/stripe/services/terminal_service.rb +2 -1
  695. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  696. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  697. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  698. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  699. data/lib/stripe/services/test_helpers_service.rb +3 -1
  700. data/lib/stripe/services/v1_services.rb +12 -1
  701. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  702. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  703. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  704. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  705. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  706. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  707. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  708. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  709. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  710. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  711. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  712. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  713. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  714. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  715. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  716. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  717. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  718. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  719. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  720. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  721. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  722. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  723. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  724. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  725. data/lib/stripe/services/v2/billing_service.rb +18 -1
  726. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  727. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  728. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  729. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  730. data/lib/stripe/services/v2/core_service.rb +3 -1
  731. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  732. data/lib/stripe/services/v2/iam_service.rb +15 -0
  733. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  734. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  735. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  736. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  737. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  738. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  739. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  740. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  741. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  742. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  743. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  744. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  745. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  746. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  747. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  748. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  749. data/lib/stripe/services/v2/money_management_service.rb +35 -0
  750. data/lib/stripe/services/v2/payment_service.rb +17 -0
  751. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  752. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
  753. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
  754. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  755. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  756. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  757. data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
  758. data/lib/stripe/services/v2/tax_service.rb +15 -0
  759. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  760. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  761. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  762. data/lib/stripe/services/v2_services.rb +7 -1
  763. data/lib/stripe/services.rb +98 -0
  764. data/lib/stripe/stripe_configuration.rb +3 -1
  765. data/lib/stripe/stripe_object.rb +1 -1
  766. data/lib/stripe/util.rb +7 -1
  767. data/lib/stripe/version.rb +1 -1
  768. data/lib/stripe.rb +53 -0
  769. data/rbi/stripe.rbi +129099 -49595
  770. metadata +606 -4
@@ -27,6 +27,19 @@ module Stripe
27
27
 
28
28
  nested_resource_class_methods :amount_details_line_item, operations: %i[list]
29
29
 
30
+ class AllocatedFunds < ::Stripe::StripeObject
31
+ # Allocated Funds configuration for this PaymentIntent.
32
+ attr_reader :enabled
33
+
34
+ def self.inner_class_types
35
+ @inner_class_types = {}
36
+ end
37
+
38
+ def self.field_remappings
39
+ @field_remappings = {}
40
+ end
41
+ end
42
+
30
43
  class AmountDetails < ::Stripe::StripeObject
31
44
  class Shipping < ::Stripe::StripeObject
32
45
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
@@ -76,7 +89,7 @@ module Stripe
76
89
  #
77
90
  # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
78
91
  attr_reader :discount_amount
79
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
92
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
80
93
  attr_reader :line_items
81
94
  # Attribute for field shipping
82
95
  attr_reader :shipping
@@ -94,6 +107,43 @@ module Stripe
94
107
  end
95
108
  end
96
109
 
110
+ class AsyncWorkflows < ::Stripe::StripeObject
111
+ class Inputs < ::Stripe::StripeObject
112
+ class Tax < ::Stripe::StripeObject
113
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
114
+ attr_reader :calculation
115
+
116
+ def self.inner_class_types
117
+ @inner_class_types = {}
118
+ end
119
+
120
+ def self.field_remappings
121
+ @field_remappings = {}
122
+ end
123
+ end
124
+ # Attribute for field tax
125
+ attr_reader :tax
126
+
127
+ def self.inner_class_types
128
+ @inner_class_types = { tax: Tax }
129
+ end
130
+
131
+ def self.field_remappings
132
+ @field_remappings = {}
133
+ end
134
+ end
135
+ # Attribute for field inputs
136
+ attr_reader :inputs
137
+
138
+ def self.inner_class_types
139
+ @inner_class_types = { inputs: Inputs }
140
+ end
141
+
142
+ def self.field_remappings
143
+ @field_remappings = {}
144
+ end
145
+ end
146
+
97
147
  class AutomaticPaymentMethods < ::Stripe::StripeObject
98
148
  # Controls whether this PaymentIntent will accept redirect-based payment methods.
99
149
  #
@@ -1185,19 +1235,388 @@ module Stripe
1185
1235
  end
1186
1236
 
1187
1237
  class PaymentDetails < ::Stripe::StripeObject
1238
+ class Benefit < ::Stripe::StripeObject
1239
+ class FrMealVoucher < ::Stripe::StripeObject
1240
+ # The 14-digit SIRET of the meal voucher acceptor.
1241
+ attr_reader :siret
1242
+
1243
+ def self.inner_class_types
1244
+ @inner_class_types = {}
1245
+ end
1246
+
1247
+ def self.field_remappings
1248
+ @field_remappings = {}
1249
+ end
1250
+ end
1251
+ # Attribute for field fr_meal_voucher
1252
+ attr_reader :fr_meal_voucher
1253
+
1254
+ def self.inner_class_types
1255
+ @inner_class_types = { fr_meal_voucher: FrMealVoucher }
1256
+ end
1257
+
1258
+ def self.field_remappings
1259
+ @field_remappings = {}
1260
+ end
1261
+ end
1262
+
1263
+ class CarRental < ::Stripe::StripeObject
1264
+ class Affiliate < ::Stripe::StripeObject
1265
+ # The name of the affiliate that originated the purchase.
1266
+ attr_reader :name
1267
+
1268
+ def self.inner_class_types
1269
+ @inner_class_types = {}
1270
+ end
1271
+
1272
+ def self.field_remappings
1273
+ @field_remappings = {}
1274
+ end
1275
+ end
1276
+
1277
+ class Delivery < ::Stripe::StripeObject
1278
+ class Recipient < ::Stripe::StripeObject
1279
+ # The email of the recipient the ticket is delivered to.
1280
+ attr_reader :email
1281
+ # The name of the recipient the ticket is delivered to.
1282
+ attr_reader :name
1283
+ # The phone number of the recipient the ticket is delivered to.
1284
+ attr_reader :phone
1285
+
1286
+ def self.inner_class_types
1287
+ @inner_class_types = {}
1288
+ end
1289
+
1290
+ def self.field_remappings
1291
+ @field_remappings = {}
1292
+ end
1293
+ end
1294
+ # The delivery method for the payment
1295
+ attr_reader :mode
1296
+ # Attribute for field recipient
1297
+ attr_reader :recipient
1298
+
1299
+ def self.inner_class_types
1300
+ @inner_class_types = { recipient: Recipient }
1301
+ end
1302
+
1303
+ def self.field_remappings
1304
+ @field_remappings = {}
1305
+ end
1306
+ end
1307
+
1308
+ class Distance < ::Stripe::StripeObject
1309
+ # Distance traveled.
1310
+ attr_reader :amount
1311
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1312
+ attr_reader :unit
1313
+
1314
+ def self.inner_class_types
1315
+ @inner_class_types = {}
1316
+ end
1317
+
1318
+ def self.field_remappings
1319
+ @field_remappings = {}
1320
+ end
1321
+ end
1322
+
1323
+ class Driver < ::Stripe::StripeObject
1324
+ # Driver's identification number.
1325
+ attr_reader :driver_identification_number
1326
+ # Driver's tax number.
1327
+ attr_reader :driver_tax_number
1328
+ # Full name of the driver on the reservation.
1329
+ attr_reader :name
1330
+
1331
+ def self.inner_class_types
1332
+ @inner_class_types = {}
1333
+ end
1334
+
1335
+ def self.field_remappings
1336
+ @field_remappings = {}
1337
+ end
1338
+ end
1339
+
1340
+ class PickupAddress < ::Stripe::StripeObject
1341
+ # City, district, suburb, town, or village.
1342
+ attr_reader :city
1343
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1344
+ attr_reader :country
1345
+ # Address line 1, such as the street, PO Box, or company name.
1346
+ attr_reader :line1
1347
+ # Address line 2, such as the apartment, suite, unit, or building.
1348
+ attr_reader :line2
1349
+ # ZIP or postal code.
1350
+ attr_reader :postal_code
1351
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1352
+ attr_reader :state
1353
+
1354
+ def self.inner_class_types
1355
+ @inner_class_types = {}
1356
+ end
1357
+
1358
+ def self.field_remappings
1359
+ @field_remappings = {}
1360
+ end
1361
+ end
1362
+
1363
+ class ReturnAddress < ::Stripe::StripeObject
1364
+ # City, district, suburb, town, or village.
1365
+ attr_reader :city
1366
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1367
+ attr_reader :country
1368
+ # Address line 1, such as the street, PO Box, or company name.
1369
+ attr_reader :line1
1370
+ # Address line 2, such as the apartment, suite, unit, or building.
1371
+ attr_reader :line2
1372
+ # ZIP or postal code.
1373
+ attr_reader :postal_code
1374
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1375
+ attr_reader :state
1376
+
1377
+ def self.inner_class_types
1378
+ @inner_class_types = {}
1379
+ end
1380
+
1381
+ def self.field_remappings
1382
+ @field_remappings = {}
1383
+ end
1384
+ end
1385
+ # Attribute for field affiliate
1386
+ attr_reader :affiliate
1387
+ # The booking number associated with the car rental.
1388
+ attr_reader :booking_number
1389
+ # Class code of the car.
1390
+ attr_reader :car_class_code
1391
+ # Make of the car.
1392
+ attr_reader :car_make
1393
+ # Model of the car.
1394
+ attr_reader :car_model
1395
+ # The name of the rental car company.
1396
+ attr_reader :company
1397
+ # The customer service phone number of the car rental company.
1398
+ attr_reader :customer_service_phone_number
1399
+ # Number of days the car is being rented.
1400
+ attr_reader :days_rented
1401
+ # Attribute for field delivery
1402
+ attr_reader :delivery
1403
+ # Attribute for field distance
1404
+ attr_reader :distance
1405
+ # The details of the drivers associated with the trip.
1406
+ attr_reader :drivers
1407
+ # List of additional charges being billed.
1408
+ attr_reader :extra_charges
1409
+ # Indicates if the customer did not keep nor cancel their booking.
1410
+ attr_reader :no_show
1411
+ # Attribute for field pickup_address
1412
+ attr_reader :pickup_address
1413
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1414
+ attr_reader :pickup_at
1415
+ # Name of the pickup location.
1416
+ attr_reader :pickup_location_name
1417
+ # Rental rate.
1418
+ attr_reader :rate_amount
1419
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1420
+ attr_reader :rate_interval
1421
+ # The full name of the person or entity renting the car.
1422
+ attr_reader :renter_name
1423
+ # Attribute for field return_address
1424
+ attr_reader :return_address
1425
+ # Car return time. Measured in seconds since the Unix epoch.
1426
+ attr_reader :return_at
1427
+ # Name of the return location.
1428
+ attr_reader :return_location_name
1429
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1430
+ attr_reader :tax_exempt
1431
+ # The vehicle identification number of the car.
1432
+ attr_reader :vehicle_identification_number
1433
+
1434
+ def self.inner_class_types
1435
+ @inner_class_types = {
1436
+ affiliate: Affiliate,
1437
+ delivery: Delivery,
1438
+ distance: Distance,
1439
+ drivers: Driver,
1440
+ pickup_address: PickupAddress,
1441
+ return_address: ReturnAddress,
1442
+ }
1443
+ end
1444
+
1445
+ def self.field_remappings
1446
+ @field_remappings = {}
1447
+ end
1448
+ end
1449
+
1450
+ class EventDetails < ::Stripe::StripeObject
1451
+ class Address < ::Stripe::StripeObject
1452
+ # City, district, suburb, town, or village.
1453
+ attr_reader :city
1454
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1455
+ attr_reader :country
1456
+ # Address line 1, such as the street, PO Box, or company name.
1457
+ attr_reader :line1
1458
+ # Address line 2, such as the apartment, suite, unit, or building.
1459
+ attr_reader :line2
1460
+ # ZIP or postal code.
1461
+ attr_reader :postal_code
1462
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1463
+ attr_reader :state
1464
+
1465
+ def self.inner_class_types
1466
+ @inner_class_types = {}
1467
+ end
1468
+
1469
+ def self.field_remappings
1470
+ @field_remappings = {}
1471
+ end
1472
+ end
1473
+
1474
+ class Affiliate < ::Stripe::StripeObject
1475
+ # The name of the affiliate that originated the purchase.
1476
+ attr_reader :name
1477
+
1478
+ def self.inner_class_types
1479
+ @inner_class_types = {}
1480
+ end
1481
+
1482
+ def self.field_remappings
1483
+ @field_remappings = {}
1484
+ end
1485
+ end
1486
+
1487
+ class Delivery < ::Stripe::StripeObject
1488
+ class Recipient < ::Stripe::StripeObject
1489
+ # The email of the recipient the ticket is delivered to.
1490
+ attr_reader :email
1491
+ # The name of the recipient the ticket is delivered to.
1492
+ attr_reader :name
1493
+ # The phone number of the recipient the ticket is delivered to.
1494
+ attr_reader :phone
1495
+
1496
+ def self.inner_class_types
1497
+ @inner_class_types = {}
1498
+ end
1499
+
1500
+ def self.field_remappings
1501
+ @field_remappings = {}
1502
+ end
1503
+ end
1504
+ # The delivery method for the payment
1505
+ attr_reader :mode
1506
+ # Attribute for field recipient
1507
+ attr_reader :recipient
1508
+
1509
+ def self.inner_class_types
1510
+ @inner_class_types = { recipient: Recipient }
1511
+ end
1512
+
1513
+ def self.field_remappings
1514
+ @field_remappings = {}
1515
+ end
1516
+ end
1517
+ # Indicates if the tickets are digitally checked when entering the venue.
1518
+ attr_reader :access_controlled_venue
1519
+ # Attribute for field address
1520
+ attr_reader :address
1521
+ # Attribute for field affiliate
1522
+ attr_reader :affiliate
1523
+ # The name of the company
1524
+ attr_reader :company
1525
+ # Attribute for field delivery
1526
+ attr_reader :delivery
1527
+ # Event end time. Measured in seconds since the Unix epoch.
1528
+ attr_reader :ends_at
1529
+ # Type of the event entertainment (concert, sports event etc)
1530
+ attr_reader :genre
1531
+ # The name of the event.
1532
+ attr_reader :name
1533
+ # Event start time. Measured in seconds since the Unix epoch.
1534
+ attr_reader :starts_at
1535
+
1536
+ def self.inner_class_types
1537
+ @inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
1538
+ end
1539
+
1540
+ def self.field_remappings
1541
+ @field_remappings = {}
1542
+ end
1543
+ end
1544
+
1545
+ class Subscription < ::Stripe::StripeObject
1546
+ class Affiliate < ::Stripe::StripeObject
1547
+ # The name of the affiliate that originated the purchase.
1548
+ attr_reader :name
1549
+
1550
+ def self.inner_class_types
1551
+ @inner_class_types = {}
1552
+ end
1553
+
1554
+ def self.field_remappings
1555
+ @field_remappings = {}
1556
+ end
1557
+ end
1558
+
1559
+ class BillingInterval < ::Stripe::StripeObject
1560
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1561
+ attr_reader :count
1562
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1563
+ attr_reader :interval
1564
+
1565
+ def self.inner_class_types
1566
+ @inner_class_types = {}
1567
+ end
1568
+
1569
+ def self.field_remappings
1570
+ @field_remappings = {}
1571
+ end
1572
+ end
1573
+ # Attribute for field affiliate
1574
+ attr_reader :affiliate
1575
+ # Info whether the subscription will be auto renewed upon expiry.
1576
+ attr_reader :auto_renewal
1577
+ # Attribute for field billing_interval
1578
+ attr_reader :billing_interval
1579
+ # Subscription end time. Measured in seconds since the Unix epoch.
1580
+ attr_reader :ends_at
1581
+ # Name of the product on subscription. e.g. Apple Music Subscription.
1582
+ attr_reader :name
1583
+ # Subscription start time. Measured in seconds since the Unix epoch.
1584
+ attr_reader :starts_at
1585
+
1586
+ def self.inner_class_types
1587
+ @inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
1588
+ end
1589
+
1590
+ def self.field_remappings
1591
+ @field_remappings = {}
1592
+ end
1593
+ end
1594
+ # Attribute for field benefit
1595
+ attr_reader :benefit
1596
+ # Attribute for field car_rental
1597
+ attr_reader :car_rental
1188
1598
  # A unique value to identify the customer. This field is available only for card payments.
1189
1599
  #
1190
1600
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1191
1601
  attr_reader :customer_reference
1602
+ # Attribute for field event_details
1603
+ attr_reader :event_details
1192
1604
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1193
1605
  #
1194
1606
  # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1195
1607
  #
1196
1608
  # 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.
1197
1609
  attr_reader :order_reference
1610
+ # Attribute for field subscription
1611
+ attr_reader :subscription
1198
1612
 
1199
1613
  def self.inner_class_types
1200
- @inner_class_types = {}
1614
+ @inner_class_types = {
1615
+ benefit: Benefit,
1616
+ car_rental: CarRental,
1617
+ event_details: EventDetails,
1618
+ subscription: Subscription,
1619
+ }
1201
1620
  end
1202
1621
 
1203
1622
  def self.field_remappings
@@ -1575,6 +1994,43 @@ module Stripe
1575
1994
  @field_remappings = {}
1576
1995
  end
1577
1996
  end
1997
+
1998
+ class StatementDetails < ::Stripe::StripeObject
1999
+ class Address < ::Stripe::StripeObject
2000
+ # City, district, suburb, town, or village.
2001
+ attr_reader :city
2002
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2003
+ attr_reader :country
2004
+ # Address line 1, such as the street, PO Box, or company name.
2005
+ attr_reader :line1
2006
+ # Address line 2, such as the apartment, suite, unit, or building.
2007
+ attr_reader :line2
2008
+ # ZIP or postal code.
2009
+ attr_reader :postal_code
2010
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2011
+ attr_reader :state
2012
+
2013
+ def self.inner_class_types
2014
+ @inner_class_types = {}
2015
+ end
2016
+
2017
+ def self.field_remappings
2018
+ @field_remappings = {}
2019
+ end
2020
+ end
2021
+ # Attribute for field address
2022
+ attr_reader :address
2023
+ # Phone number
2024
+ attr_reader :phone
2025
+
2026
+ def self.inner_class_types
2027
+ @inner_class_types = { address: Address }
2028
+ end
2029
+
2030
+ def self.field_remappings
2031
+ @field_remappings = {}
2032
+ end
2033
+ end
1578
2034
  # Controls when the funds will be captured from the customer's account.
1579
2035
  attr_reader :capture_method
1580
2036
  # Installment details for this payment.
@@ -1585,6 +2041,8 @@ module Stripe
1585
2041
  attr_reader :mandate_options
1586
2042
  # 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.
1587
2043
  attr_reader :network
2044
+ # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
2045
+ attr_reader :request_decremental_authorization
1588
2046
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
1589
2047
  attr_reader :request_extended_authorization
1590
2048
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -1593,6 +2051,8 @@ module Stripe
1593
2051
  attr_reader :request_multicapture
1594
2052
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
1595
2053
  attr_reader :request_overcapture
2054
+ # Request partial authorization on this PaymentIntent.
2055
+ attr_reader :request_partial_authorization
1596
2056
  # 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.
1597
2057
  attr_reader :request_three_d_secure
1598
2058
  # 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).
@@ -1609,9 +2069,15 @@ module Stripe
1609
2069
  attr_reader :statement_descriptor_suffix_kana
1610
2070
  # 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.
1611
2071
  attr_reader :statement_descriptor_suffix_kanji
2072
+ # Attribute for field statement_details
2073
+ attr_reader :statement_details
1612
2074
 
1613
2075
  def self.inner_class_types
1614
- @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
2076
+ @inner_class_types = {
2077
+ installments: Installments,
2078
+ mandate_options: MandateOptions,
2079
+ statement_details: StatementDetails,
2080
+ }
1615
2081
  end
1616
2082
 
1617
2083
  def self.field_remappings
@@ -1800,6 +2266,25 @@ module Stripe
1800
2266
  end
1801
2267
  end
1802
2268
 
2269
+ class Gopay < ::Stripe::StripeObject
2270
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2271
+ #
2272
+ # 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.
2273
+ #
2274
+ # 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.
2275
+ #
2276
+ # 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).
2277
+ attr_reader :setup_future_usage
2278
+
2279
+ def self.inner_class_types
2280
+ @inner_class_types = {}
2281
+ end
2282
+
2283
+ def self.field_remappings
2284
+ @field_remappings = {}
2285
+ end
2286
+ end
2287
+
1803
2288
  class Grabpay < ::Stripe::StripeObject
1804
2289
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1805
2290
  #
@@ -1819,6 +2304,29 @@ module Stripe
1819
2304
  end
1820
2305
  end
1821
2306
 
2307
+ class IdBankTransfer < ::Stripe::StripeObject
2308
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2309
+ attr_reader :expires_after
2310
+ # 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.
2311
+ attr_reader :expires_at
2312
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2313
+ #
2314
+ # 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.
2315
+ #
2316
+ # 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.
2317
+ #
2318
+ # 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).
2319
+ attr_reader :setup_future_usage
2320
+
2321
+ def self.inner_class_types
2322
+ @inner_class_types = {}
2323
+ end
2324
+
2325
+ def self.field_remappings
2326
+ @field_remappings = {}
2327
+ end
2328
+ end
2329
+
1822
2330
  class Ideal < ::Stripe::StripeObject
1823
2331
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1824
2332
  #
@@ -2147,12 +2655,56 @@ module Stripe
2147
2655
  end
2148
2656
 
2149
2657
  class Paypal < ::Stripe::StripeObject
2658
+ class LineItem < ::Stripe::StripeObject
2659
+ class Tax < ::Stripe::StripeObject
2660
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2661
+ attr_reader :amount
2662
+ # The tax behavior for the line item.
2663
+ attr_reader :behavior
2664
+
2665
+ def self.inner_class_types
2666
+ @inner_class_types = {}
2667
+ end
2668
+
2669
+ def self.field_remappings
2670
+ @field_remappings = {}
2671
+ end
2672
+ end
2673
+ # Type of the line item.
2674
+ attr_reader :category
2675
+ # Description of the line item.
2676
+ attr_reader :description
2677
+ # Descriptive name of the line item.
2678
+ attr_reader :name
2679
+ # Quantity of the line item. Cannot be a negative number.
2680
+ attr_reader :quantity
2681
+ # Client facing stock keeping unit, article number or similar.
2682
+ attr_reader :sku
2683
+ # 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).
2684
+ attr_reader :sold_by
2685
+ # Attribute for field tax
2686
+ attr_reader :tax
2687
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2688
+ attr_reader :unit_amount
2689
+
2690
+ def self.inner_class_types
2691
+ @inner_class_types = { tax: Tax }
2692
+ end
2693
+
2694
+ def self.field_remappings
2695
+ @field_remappings = {}
2696
+ end
2697
+ end
2150
2698
  # Controls when the funds will be captured from the customer's account.
2151
2699
  attr_reader :capture_method
2700
+ # The line items purchased by the customer.
2701
+ attr_reader :line_items
2152
2702
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
2153
2703
  attr_reader :preferred_locale
2154
2704
  # 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.
2155
2705
  attr_reader :reference
2706
+ # 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.
2707
+ attr_reader :reference_id
2156
2708
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2157
2709
  #
2158
2710
  # 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.
@@ -2161,7 +2713,19 @@ module Stripe
2161
2713
  #
2162
2714
  # 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).
2163
2715
  attr_reader :setup_future_usage
2716
+ # 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.
2717
+ attr_reader :subsellers
2718
+
2719
+ def self.inner_class_types
2720
+ @inner_class_types = { line_items: LineItem }
2721
+ end
2722
+
2723
+ def self.field_remappings
2724
+ @field_remappings = {}
2725
+ end
2726
+ end
2164
2727
 
2728
+ class Paypay < ::Stripe::StripeObject
2165
2729
  def self.inner_class_types
2166
2730
  @inner_class_types = {}
2167
2731
  end
@@ -2215,12 +2779,40 @@ module Stripe
2215
2779
  end
2216
2780
 
2217
2781
  class Pix < ::Stripe::StripeObject
2782
+ class MandateOptions < ::Stripe::StripeObject
2783
+ # Amount to be charged for future payments.
2784
+ attr_reader :amount
2785
+ # Determines if the amount includes the IOF tax.
2786
+ attr_reader :amount_includes_iof
2787
+ # Type of amount.
2788
+ attr_reader :amount_type
2789
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
2790
+ attr_reader :currency
2791
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
2792
+ attr_reader :end_date
2793
+ # Schedule at which the future payments will be charged.
2794
+ attr_reader :payment_schedule
2795
+ # Subscription name displayed to buyers in their bank app.
2796
+ attr_reader :reference
2797
+ # Start date of the mandate, in `YYYY-MM-DD`.
2798
+ attr_reader :start_date
2799
+
2800
+ def self.inner_class_types
2801
+ @inner_class_types = {}
2802
+ end
2803
+
2804
+ def self.field_remappings
2805
+ @field_remappings = {}
2806
+ end
2807
+ end
2218
2808
  # Determines if the amount includes the IOF tax.
2219
2809
  attr_reader :amount_includes_iof
2220
2810
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
2221
2811
  attr_reader :expires_after_seconds
2222
2812
  # The timestamp at which the Pix expires.
2223
2813
  attr_reader :expires_at
2814
+ # Attribute for field mandate_options
2815
+ attr_reader :mandate_options
2224
2816
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2225
2817
  #
2226
2818
  # 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.
@@ -2231,7 +2823,7 @@ module Stripe
2231
2823
  attr_reader :setup_future_usage
2232
2824
 
2233
2825
  def self.inner_class_types
2234
- @inner_class_types = {}
2826
+ @inner_class_types = { mandate_options: MandateOptions }
2235
2827
  end
2236
2828
 
2237
2829
  def self.field_remappings
@@ -2258,6 +2850,35 @@ module Stripe
2258
2850
  end
2259
2851
  end
2260
2852
 
2853
+ class Qris < ::Stripe::StripeObject
2854
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2855
+ #
2856
+ # 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.
2857
+ #
2858
+ # 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.
2859
+ #
2860
+ # 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).
2861
+ attr_reader :setup_future_usage
2862
+
2863
+ def self.inner_class_types
2864
+ @inner_class_types = {}
2865
+ end
2866
+
2867
+ def self.field_remappings
2868
+ @field_remappings = {}
2869
+ end
2870
+ end
2871
+
2872
+ class Rechnung < ::Stripe::StripeObject
2873
+ def self.inner_class_types
2874
+ @inner_class_types = {}
2875
+ end
2876
+
2877
+ def self.field_remappings
2878
+ @field_remappings = {}
2879
+ end
2880
+ end
2881
+
2261
2882
  class RevolutPay < ::Stripe::StripeObject
2262
2883
  # Controls when the funds will be captured from the customer's account.
2263
2884
  attr_reader :capture_method
@@ -2340,6 +2961,25 @@ module Stripe
2340
2961
  end
2341
2962
  end
2342
2963
 
2964
+ class Shopeepay < ::Stripe::StripeObject
2965
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2966
+ #
2967
+ # 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.
2968
+ #
2969
+ # 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.
2970
+ #
2971
+ # 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).
2972
+ attr_reader :setup_future_usage
2973
+
2974
+ def self.inner_class_types
2975
+ @inner_class_types = {}
2976
+ end
2977
+
2978
+ def self.field_remappings
2979
+ @field_remappings = {}
2980
+ end
2981
+ end
2982
+
2343
2983
  class Sofort < ::Stripe::StripeObject
2344
2984
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
2345
2985
  attr_reader :preferred_language
@@ -2361,6 +3001,25 @@ module Stripe
2361
3001
  end
2362
3002
  end
2363
3003
 
3004
+ class StripeBalance < ::Stripe::StripeObject
3005
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3006
+ #
3007
+ # 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.
3008
+ #
3009
+ # 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.
3010
+ #
3011
+ # 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).
3012
+ attr_reader :setup_future_usage
3013
+
3014
+ def self.inner_class_types
3015
+ @inner_class_types = {}
3016
+ end
3017
+
3018
+ def self.field_remappings
3019
+ @field_remappings = {}
3020
+ end
3021
+ end
3022
+
2364
3023
  class Swish < ::Stripe::StripeObject
2365
3024
  # A reference for this payment to be displayed in the Swish app.
2366
3025
  attr_reader :reference
@@ -2406,6 +3065,21 @@ module Stripe
2406
3065
  class Filters < ::Stripe::StripeObject
2407
3066
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2408
3067
  attr_reader :account_subcategories
3068
+ # The institution to use to filter for possible accounts to link.
3069
+ attr_reader :institution
3070
+
3071
+ def self.inner_class_types
3072
+ @inner_class_types = {}
3073
+ end
3074
+
3075
+ def self.field_remappings
3076
+ @field_remappings = {}
3077
+ end
3078
+ end
3079
+
3080
+ class ManualEntry < ::Stripe::StripeObject
3081
+ # Settings for configuring manual entry of account details.
3082
+ attr_reader :mode
2409
3083
 
2410
3084
  def self.inner_class_types
2411
3085
  @inner_class_types = {}
@@ -2417,6 +3091,8 @@ module Stripe
2417
3091
  end
2418
3092
  # Attribute for field filters
2419
3093
  attr_reader :filters
3094
+ # Attribute for field manual_entry
3095
+ attr_reader :manual_entry
2420
3096
  # The list of permissions to request. The `payment_method` permission must be included.
2421
3097
  attr_reader :permissions
2422
3098
  # Data features requested to be retrieved upon account creation.
@@ -2425,7 +3101,7 @@ module Stripe
2425
3101
  attr_reader :return_url
2426
3102
 
2427
3103
  def self.inner_class_types
2428
- @inner_class_types = { filters: Filters }
3104
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
2429
3105
  end
2430
3106
 
2431
3107
  def self.field_remappings
@@ -2557,8 +3233,12 @@ module Stripe
2557
3233
  attr_reader :fpx
2558
3234
  # Attribute for field giropay
2559
3235
  attr_reader :giropay
3236
+ # Attribute for field gopay
3237
+ attr_reader :gopay
2560
3238
  # Attribute for field grabpay
2561
3239
  attr_reader :grabpay
3240
+ # Attribute for field id_bank_transfer
3241
+ attr_reader :id_bank_transfer
2562
3242
  # Attribute for field ideal
2563
3243
  attr_reader :ideal
2564
3244
  # Attribute for field interac_present
@@ -2595,12 +3275,18 @@ module Stripe
2595
3275
  attr_reader :paynow
2596
3276
  # Attribute for field paypal
2597
3277
  attr_reader :paypal
3278
+ # Attribute for field paypay
3279
+ attr_reader :paypay
2598
3280
  # Attribute for field payto
2599
3281
  attr_reader :payto
2600
3282
  # Attribute for field pix
2601
3283
  attr_reader :pix
2602
3284
  # Attribute for field promptpay
2603
3285
  attr_reader :promptpay
3286
+ # Attribute for field qris
3287
+ attr_reader :qris
3288
+ # Attribute for field rechnung
3289
+ attr_reader :rechnung
2604
3290
  # Attribute for field revolut_pay
2605
3291
  attr_reader :revolut_pay
2606
3292
  # Attribute for field samsung_pay
@@ -2609,8 +3295,12 @@ module Stripe
2609
3295
  attr_reader :satispay
2610
3296
  # Attribute for field sepa_debit
2611
3297
  attr_reader :sepa_debit
3298
+ # Attribute for field shopeepay
3299
+ attr_reader :shopeepay
2612
3300
  # Attribute for field sofort
2613
3301
  attr_reader :sofort
3302
+ # Attribute for field stripe_balance
3303
+ attr_reader :stripe_balance
2614
3304
  # Attribute for field swish
2615
3305
  attr_reader :swish
2616
3306
  # Attribute for field twint
@@ -2644,7 +3334,9 @@ module Stripe
2644
3334
  eps: Eps,
2645
3335
  fpx: Fpx,
2646
3336
  giropay: Giropay,
3337
+ gopay: Gopay,
2647
3338
  grabpay: Grabpay,
3339
+ id_bank_transfer: IdBankTransfer,
2648
3340
  ideal: Ideal,
2649
3341
  interac_present: InteracPresent,
2650
3342
  kakao_pay: KakaoPay,
@@ -2663,14 +3355,19 @@ module Stripe
2663
3355
  payco: Payco,
2664
3356
  paynow: Paynow,
2665
3357
  paypal: Paypal,
3358
+ paypay: Paypay,
2666
3359
  payto: Payto,
2667
3360
  pix: Pix,
2668
3361
  promptpay: Promptpay,
3362
+ qris: Qris,
3363
+ rechnung: Rechnung,
2669
3364
  revolut_pay: RevolutPay,
2670
3365
  samsung_pay: SamsungPay,
2671
3366
  satispay: Satispay,
2672
3367
  sepa_debit: SepaDebit,
3368
+ shopeepay: Shopeepay,
2673
3369
  sofort: Sofort,
3370
+ stripe_balance: StripeBalance,
2674
3371
  swish: Swish,
2675
3372
  twint: Twint,
2676
3373
  us_bank_account: UsBankAccount,
@@ -2684,6 +3381,19 @@ module Stripe
2684
3381
  end
2685
3382
  end
2686
3383
 
3384
+ class PaymentsOrchestration < ::Stripe::StripeObject
3385
+ # Whether this feature is enabled.
3386
+ attr_reader :enabled
3387
+
3388
+ def self.inner_class_types
3389
+ @inner_class_types = {}
3390
+ end
3391
+
3392
+ def self.field_remappings
3393
+ @field_remappings = {}
3394
+ end
3395
+ end
3396
+
2687
3397
  class PresentmentDetails < ::Stripe::StripeObject
2688
3398
  # Amount intended to be collected by this payment, denominated in `presentment_currency`.
2689
3399
  attr_reader :presentment_amount
@@ -2799,6 +3509,8 @@ module Stripe
2799
3509
  @field_remappings = {}
2800
3510
  end
2801
3511
  end
3512
+ # Allocated Funds configuration for this PaymentIntent.
3513
+ attr_reader :allocated_funds
2802
3514
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2803
3515
  attr_reader :amount
2804
3516
  # Amount that can be captured from this PaymentIntent.
@@ -2811,6 +3523,8 @@ module Stripe
2811
3523
  attr_reader :application
2812
3524
  # 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).
2813
3525
  attr_reader :application_fee_amount
3526
+ # Attribute for field async_workflows
3527
+ attr_reader :async_workflows
2814
3528
  # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
2815
3529
  attr_reader :automatic_payment_methods
2816
3530
  # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
@@ -2847,6 +3561,8 @@ module Stripe
2847
3561
  attr_reader :description
2848
3562
  # The list of payment method types to exclude from use with this payment.
2849
3563
  attr_reader :excluded_payment_method_types
3564
+ # The FX Quote used for the PaymentIntent.
3565
+ attr_reader :fx_quote
2850
3566
  # Attribute for field hooks
2851
3567
  attr_reader :hooks
2852
3568
  # Unique identifier for the object.
@@ -2876,6 +3592,8 @@ module Stripe
2876
3592
  attr_reader :payment_method_options
2877
3593
  # The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
2878
3594
  attr_reader :payment_method_types
3595
+ # When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
3596
+ attr_reader :payments_orchestration
2879
3597
  # Attribute for field presentment_details
2880
3598
  attr_reader :presentment_details
2881
3599
  # If present, this property tells you about the processing state of the payment.
@@ -2884,6 +3602,8 @@ module Stripe
2884
3602
  attr_reader :receipt_email
2885
3603
  # ID of the review associated with this PaymentIntent, if any.
2886
3604
  attr_reader :review
3605
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3606
+ attr_reader :secret_key_confirmation
2887
3607
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2888
3608
  #
2889
3609
  # 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.
@@ -2908,6 +3628,8 @@ module Stripe
2908
3628
  attr_reader :transfer_data
2909
3629
  # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
2910
3630
  attr_reader :transfer_group
3631
+ # ID of the shared payment token granted to be used in this PaymentIntent
3632
+ attr_reader :shared_payment_granted_token
2911
3633
 
2912
3634
  # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
2913
3635
  def apply_customer_balance(params = {}, opts = {})
@@ -3077,6 +3799,56 @@ module Stripe
3077
3799
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
3078
3800
  end
3079
3801
 
3802
+ # Perform a decremental authorization on an eligible
3803
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3804
+ # PaymentIntent's status must be requires_capture and
3805
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3806
+ # must be available.
3807
+ #
3808
+ # Decremental authorizations decrease the authorized amount on your customer's card
3809
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3810
+ #
3811
+ # After decrement, the PaymentIntent object
3812
+ # returns with the updated
3813
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3814
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3815
+ #
3816
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3817
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3818
+ def decrement_authorization(params = {}, opts = {})
3819
+ request_stripe_object(
3820
+ method: :post,
3821
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
3822
+ params: params,
3823
+ opts: opts
3824
+ )
3825
+ end
3826
+
3827
+ # Perform a decremental authorization on an eligible
3828
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3829
+ # PaymentIntent's status must be requires_capture and
3830
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3831
+ # must be available.
3832
+ #
3833
+ # Decremental authorizations decrease the authorized amount on your customer's card
3834
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3835
+ #
3836
+ # After decrement, the PaymentIntent object
3837
+ # returns with the updated
3838
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3839
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3840
+ #
3841
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3842
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3843
+ def self.decrement_authorization(intent, params = {}, opts = {})
3844
+ request_stripe_object(
3845
+ method: :post,
3846
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
3847
+ params: params,
3848
+ opts: opts
3849
+ )
3850
+ end
3851
+
3080
3852
  # Perform an incremental authorization on an eligible
3081
3853
  # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3082
3854
  # PaymentIntent's status must be requires_capture and
@@ -3161,6 +3933,26 @@ module Stripe
3161
3933
  search(params, opts).auto_paging_each(&blk)
3162
3934
  end
3163
3935
 
3936
+ # Trigger an external action on a PaymentIntent.
3937
+ def trigger_action(params = {}, opts = {})
3938
+ request_stripe_object(
3939
+ method: :post,
3940
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
3941
+ params: params,
3942
+ opts: opts
3943
+ )
3944
+ end
3945
+
3946
+ # Trigger an external action on a PaymentIntent.
3947
+ def self.trigger_action(intent, params = {}, opts = {})
3948
+ request_stripe_object(
3949
+ method: :post,
3950
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
3951
+ params: params,
3952
+ opts: opts
3953
+ )
3954
+ end
3955
+
3164
3956
  # Updates properties on a PaymentIntent object without confirming.
3165
3957
  #
3166
3958
  # Depending on which properties you update, you might need to confirm the
@@ -3199,7 +3991,9 @@ module Stripe
3199
3991
 
3200
3992
  def self.inner_class_types
3201
3993
  @inner_class_types = {
3994
+ allocated_funds: AllocatedFunds,
3202
3995
  amount_details: AmountDetails,
3996
+ async_workflows: AsyncWorkflows,
3203
3997
  automatic_payment_methods: AutomaticPaymentMethods,
3204
3998
  hooks: Hooks,
3205
3999
  last_payment_error: LastPaymentError,
@@ -3207,6 +4001,7 @@ module Stripe
3207
4001
  payment_details: PaymentDetails,
3208
4002
  payment_method_configuration_details: PaymentMethodConfigurationDetails,
3209
4003
  payment_method_options: PaymentMethodOptions,
4004
+ payments_orchestration: PaymentsOrchestration,
3210
4005
  presentment_details: PresentmentDetails,
3211
4006
  processing: Processing,
3212
4007
  shipping: Shipping,