stripe 17.2.0 → 17.3.0.pre.alpha.2

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 (919) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +1050 -0
  6. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  7. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  8. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  9. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  10. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  11. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  12. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  13. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  14. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  15. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  16. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  17. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  18. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  19. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  20. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  21. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  22. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  23. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  25. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  26. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  27. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  28. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  29. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  30. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  31. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  32. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  33. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  34. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  35. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  36. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  37. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  38. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  39. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  40. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  41. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  42. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  43. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  44. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  45. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  46. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  47. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  48. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  49. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  50. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  51. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  52. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  53. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  56. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  57. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  59. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  60. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  61. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  62. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  63. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  64. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  65. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  66. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  67. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  68. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  69. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  70. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  71. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  72. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  73. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  74. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  75. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  76. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  77. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  78. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  79. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  80. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  81. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  82. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  83. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  89. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  90. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  91. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  92. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  93. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  94. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  95. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  96. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  97. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  98. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  99. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  100. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  101. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  102. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  111. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  112. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  113. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  114. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  115. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  116. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  117. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  118. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  119. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  120. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  121. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  123. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  125. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  127. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  128. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  129. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  130. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  132. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  133. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  134. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  135. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  136. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  137. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  139. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  140. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  141. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  142. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  143. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  144. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  145. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  147. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  148. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  149. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  150. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  151. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  152. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  154. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  155. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  156. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  157. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  158. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  159. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  160. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  161. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  162. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  163. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  164. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  165. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  166. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  167. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  168. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  169. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  170. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  171. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  172. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  173. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  174. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  175. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  176. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  177. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  178. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  179. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  180. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  181. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  182. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  183. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  184. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  185. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  186. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  187. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  188. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  189. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  190. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  191. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  192. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  193. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  194. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  195. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  196. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  197. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  198. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  199. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  200. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  203. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  215. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  216. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  217. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  218. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  229. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  230. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  231. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  232. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  240. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  242. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  244. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  245. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  246. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  247. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  248. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  250. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  255. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  256. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  257. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  258. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  259. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  260. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  261. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  262. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  263. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  265. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  266. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  267. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  268. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  270. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  271. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  272. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  273. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  274. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  277. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  278. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  296. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  297. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  299. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  308. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  309. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  310. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  315. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  316. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  317. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  318. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  319. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  320. data/lib/stripe/object_types.rb +84 -0
  321. data/lib/stripe/params/account_create_params.rb +334 -3
  322. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  323. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  324. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  325. data/lib/stripe/params/account_person_create_params.rb +33 -1
  326. data/lib/stripe/params/account_person_update_params.rb +33 -1
  327. data/lib/stripe/params/account_session_create_params.rb +226 -1
  328. data/lib/stripe/params/account_update_params.rb +296 -2
  329. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  330. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  331. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  332. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  333. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  334. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  335. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  336. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  337. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  338. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  339. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  340. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  341. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  342. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  343. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  344. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  345. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  346. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  347. data/lib/stripe/params/charge_capture_params.rb +709 -0
  348. data/lib/stripe/params/charge_update_params.rb +709 -0
  349. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  350. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  351. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  352. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  353. data/lib/stripe/params/coupon_create_params.rb +17 -1
  354. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  355. data/lib/stripe/params/customer_session_create_params.rb +37 -3
  356. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
  357. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  358. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  359. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  360. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  361. data/lib/stripe/params/dispute_update_params.rb +10 -1
  362. data/lib/stripe/params/external_account_create_params.rb +134 -0
  363. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  364. data/lib/stripe/params/external_account_list_params.rb +25 -0
  365. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  366. data/lib/stripe/params/external_account_update_params.rb +91 -0
  367. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  368. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  369. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  370. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  371. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  372. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  373. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  374. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  375. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  376. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  377. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  378. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  379. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  380. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  381. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  382. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  383. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  384. data/lib/stripe/params/invoice_create_params.rb +112 -2
  385. data/lib/stripe/params/invoice_create_preview_params.rb +882 -9
  386. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  387. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  388. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  389. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  390. data/lib/stripe/params/invoice_list_params.rb +8 -0
  391. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  392. data/lib/stripe/params/invoice_update_params.rb +108 -2
  393. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  394. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  395. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  396. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  397. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  398. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  399. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  400. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  401. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  402. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  403. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  404. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  405. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  406. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  407. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  408. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  409. data/lib/stripe/params/mandate_list_params.rb +39 -0
  410. data/lib/stripe/params/margin_create_params.rb +25 -0
  411. data/lib/stripe/params/margin_list_params.rb +25 -0
  412. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  413. data/lib/stripe/params/margin_update_params.rb +22 -0
  414. data/lib/stripe/params/order_cancel_params.rb +13 -0
  415. data/lib/stripe/params/order_create_params.rb +1124 -0
  416. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  417. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  418. data/lib/stripe/params/order_list_params.rb +25 -0
  419. data/lib/stripe/params/order_reopen_params.rb +13 -0
  420. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  421. data/lib/stripe/params/order_submit_params.rb +16 -0
  422. data/lib/stripe/params/order_update_params.rb +1128 -0
  423. data/lib/stripe/params/payment_intent_capture_params.rb +736 -30
  424. data/lib/stripe/params/payment_intent_confirm_params.rb +1250 -47
  425. data/lib/stripe/params/payment_intent_create_params.rb +1254 -43
  426. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  427. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +63 -29
  428. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  429. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  430. data/lib/stripe/params/payment_intent_update_params.rb +1286 -44
  431. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  432. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  433. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  434. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  435. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  436. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  437. data/lib/stripe/params/price_update_params.rb +19 -0
  438. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  439. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  440. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  441. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  442. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  443. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  444. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  445. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  446. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  447. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  448. data/lib/stripe/params/quote_create_params.rb +1014 -4
  449. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  450. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  451. data/lib/stripe/params/quote_list_params.rb +8 -0
  452. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  453. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  454. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  455. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  456. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  457. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  458. data/lib/stripe/params/quote_update_params.rb +1021 -4
  459. data/lib/stripe/params/setup_intent_confirm_params.rb +254 -3
  460. data/lib/stripe/params/setup_intent_create_params.rb +260 -3
  461. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  462. data/lib/stripe/params/setup_intent_update_params.rb +261 -4
  463. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  464. data/lib/stripe/params/subscription_create_params.rb +259 -5
  465. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  466. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  467. data/lib/stripe/params/subscription_list_params.rb +4 -0
  468. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  469. data/lib/stripe/params/subscription_schedule_create_params.rb +229 -7
  470. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  471. data/lib/stripe/params/subscription_schedule_update_params.rb +225 -7
  472. data/lib/stripe/params/subscription_update_params.rb +238 -4
  473. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  474. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  475. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  476. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  477. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  478. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  479. data/lib/stripe/params/terminal/configuration_create_params.rb +22 -9
  480. data/lib/stripe/params/terminal/configuration_update_params.rb +22 -9
  481. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  482. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  483. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  484. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  485. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  486. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  487. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  488. data/lib/stripe/params/token_create_params.rb +66 -2
  489. data/lib/stripe/params/transfer_create_params.rb +9 -1
  490. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  491. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  492. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  493. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  494. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  495. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  496. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  497. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  498. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  499. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  500. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  501. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  502. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  503. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  504. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  505. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  506. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  507. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  508. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  509. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  510. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  511. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  512. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  513. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  514. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  515. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  516. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  517. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  518. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  519. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  520. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  521. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  522. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  523. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  524. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  525. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  526. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  527. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  528. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  529. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  530. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  531. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  532. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  533. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  534. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  535. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  536. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  537. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  538. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  539. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  540. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  541. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  542. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  543. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  544. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  545. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  546. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  547. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  548. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  549. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  550. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  551. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  552. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  553. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  554. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  555. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  556. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  557. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  558. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  559. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  560. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  561. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  562. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  563. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  564. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  565. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  566. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  567. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  568. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  569. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  570. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  571. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  572. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  573. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  574. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  575. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  576. data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
  577. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  578. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  579. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  580. data/lib/stripe/params/v2/core/account_create_params.rb +2943 -0
  581. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  582. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  583. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  584. data/lib/stripe/params/v2/core/account_update_params.rb +2975 -0
  585. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  586. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  587. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  588. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  589. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  590. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  591. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  593. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  594. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  595. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  596. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  597. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  598. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  599. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  600. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  601. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  602. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  603. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  604. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  605. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  606. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  607. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  608. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  609. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  610. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  611. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  612. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  613. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  614. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  615. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  616. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  617. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  618. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  619. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  620. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  621. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  622. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  623. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  624. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  625. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  626. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  627. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  628. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  629. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  630. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  631. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  632. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  633. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  634. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  635. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  636. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  637. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  638. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  639. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  640. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  641. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  642. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  643. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  644. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  645. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  646. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  647. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  648. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  649. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  650. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  651. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  652. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  653. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  654. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  655. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  656. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  657. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  658. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  659. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  660. data/lib/stripe/params.rb +252 -0
  661. data/lib/stripe/resources/account.rb +167 -2
  662. data/lib/stripe/resources/account_notice.rb +94 -0
  663. data/lib/stripe/resources/account_session.rb +81 -0
  664. data/lib/stripe/resources/application_fee.rb +2 -0
  665. data/lib/stripe/resources/balance.rb +83 -0
  666. data/lib/stripe/resources/billing/alert.rb +105 -1
  667. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  668. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  669. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  670. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  671. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  672. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  673. data/lib/stripe/resources/billing/meter.rb +2 -0
  674. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  675. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  676. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  677. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  678. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  679. data/lib/stripe/resources/card.rb +20 -1
  680. data/lib/stripe/resources/cash_balance.rb +2 -0
  681. data/lib/stripe/resources/charge.rb +255 -1
  682. data/lib/stripe/resources/checkout/session.rb +246 -4
  683. data/lib/stripe/resources/confirmation_token.rb +173 -0
  684. data/lib/stripe/resources/coupon.rb +26 -1
  685. data/lib/stripe/resources/credit_note.rb +2 -0
  686. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  687. data/lib/stripe/resources/customer.rb +2 -0
  688. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  689. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  690. data/lib/stripe/resources/customer_session.rb +38 -0
  691. data/lib/stripe/resources/delegated_checkout/requested_session.rb +420 -0
  692. data/lib/stripe/resources/discount.rb +4 -0
  693. data/lib/stripe/resources/dispute.rb +22 -0
  694. data/lib/stripe/resources/event.rb +64 -1
  695. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  696. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  697. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  698. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  699. data/lib/stripe/resources/fx_quote.rb +147 -0
  700. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  701. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  702. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  703. data/lib/stripe/resources/invoice.rb +169 -2
  704. data/lib/stripe/resources/invoice_item.rb +110 -2
  705. data/lib/stripe/resources/invoice_line_item.rb +147 -1
  706. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  707. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  708. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  709. data/lib/stripe/resources/issuing/program.rb +69 -0
  710. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  711. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  712. data/lib/stripe/resources/line_item.rb +68 -1
  713. data/lib/stripe/resources/mandate.rb +71 -0
  714. data/lib/stripe/resources/margin.rb +64 -0
  715. data/lib/stripe/resources/order.rb +987 -0
  716. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  717. data/lib/stripe/resources/payment_intent.rb +840 -23
  718. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -13
  719. data/lib/stripe/resources/payment_method.rb +195 -0
  720. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  721. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  722. data/lib/stripe/resources/payment_record.rb +203 -1
  723. data/lib/stripe/resources/person.rb +36 -0
  724. data/lib/stripe/resources/price.rb +20 -0
  725. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  726. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  727. data/lib/stripe/resources/promotion_code.rb +2 -0
  728. data/lib/stripe/resources/quote.rb +918 -2
  729. data/lib/stripe/resources/quote_line.rb +521 -0
  730. data/lib/stripe/resources/quote_preview_invoice.rb +1166 -0
  731. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +906 -0
  732. data/lib/stripe/resources/refund.rb +18 -0
  733. data/lib/stripe/resources/setup_attempt.rb +63 -0
  734. data/lib/stripe/resources/setup_intent.rb +172 -1
  735. data/lib/stripe/resources/source.rb +38 -0
  736. data/lib/stripe/resources/subscription.rb +335 -0
  737. data/lib/stripe/resources/subscription_item.rb +20 -1
  738. data/lib/stripe/resources/subscription_schedule.rb +372 -3
  739. data/lib/stripe/resources/tax/association.rb +86 -0
  740. data/lib/stripe/resources/tax/form.rb +264 -0
  741. data/lib/stripe/resources/tax_id.rb +4 -0
  742. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  743. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  744. data/lib/stripe/resources/terminal/reader.rb +8 -0
  745. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  746. data/lib/stripe/resources/transfer.rb +6 -0
  747. data/lib/stripe/resources/transit_balance.rb +45 -0
  748. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  749. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  750. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  751. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  752. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  753. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  754. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  755. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  756. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  757. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  758. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  759. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  760. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  761. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  762. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  763. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  764. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  765. data/lib/stripe/resources/v2/billing/meter_event.rb +1 -2
  766. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  767. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  768. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  769. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  770. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  771. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  772. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  773. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  774. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  775. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  776. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  777. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  778. data/lib/stripe/resources/v2/core/account.rb +4967 -0
  779. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  780. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  781. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  782. data/lib/stripe/resources/v2/core/event.rb +4 -0
  783. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  784. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  785. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  786. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  787. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  788. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  789. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  790. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  791. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  792. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  793. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  794. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  795. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  796. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  797. data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
  798. data/lib/stripe/resources/v2/money_management/received_debit.rb +140 -0
  799. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  800. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  801. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  802. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  803. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  804. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  805. data/lib/stripe/resources.rb +393 -0
  806. data/lib/stripe/services/account_notice_service.rb +39 -0
  807. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  808. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  809. data/lib/stripe/services/billing_service.rb +2 -1
  810. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  811. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  812. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  813. data/lib/stripe/services/capital_service.rb +15 -0
  814. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  815. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  816. data/lib/stripe/services/external_account_service.rb +68 -0
  817. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  818. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  819. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  820. data/lib/stripe/services/financial_connections_service.rb +2 -1
  821. data/lib/stripe/services/fx_quote_service.rb +27 -0
  822. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  823. data/lib/stripe/services/identity_service.rb +2 -1
  824. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  825. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  826. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  827. data/lib/stripe/services/issuing/program_service.rb +52 -0
  828. data/lib/stripe/services/issuing_service.rb +6 -1
  829. data/lib/stripe/services/mandate_service.rb +5 -0
  830. data/lib/stripe/services/margin_service.rb +50 -0
  831. data/lib/stripe/services/order_line_item_service.rb +17 -0
  832. data/lib/stripe/services/order_service.rb +78 -0
  833. data/lib/stripe/services/payment_intent_service.rb +37 -0
  834. data/lib/stripe/services/payment_method_service.rb +11 -0
  835. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  836. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  837. data/lib/stripe/services/privacy_service.rb +13 -0
  838. data/lib/stripe/services/quote_line_service.rb +17 -0
  839. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  840. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  841. data/lib/stripe/services/quote_service.rb +49 -1
  842. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  843. data/lib/stripe/services/subscription_service.rb +11 -0
  844. data/lib/stripe/services/tax/association_service.rb +19 -0
  845. data/lib/stripe/services/tax/form_service.rb +37 -0
  846. data/lib/stripe/services/tax_service.rb +3 -1
  847. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  848. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  849. data/lib/stripe/services/terminal_service.rb +3 -1
  850. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  851. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  852. data/lib/stripe/services/test_helpers_service.rb +2 -1
  853. data/lib/stripe/services/v1_services.rb +9 -1
  854. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  855. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  856. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  857. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  858. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  859. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  860. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  861. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  862. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  863. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  864. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  865. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  866. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  867. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  868. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  869. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  870. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  871. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  872. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  873. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  874. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  875. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  876. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  877. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  878. data/lib/stripe/services/v2/billing_service.rb +18 -1
  879. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  880. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  881. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  882. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  883. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  884. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  885. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  886. data/lib/stripe/services/v2/core_service.rb +5 -1
  887. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  888. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  889. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  890. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  891. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  892. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  893. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  894. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  895. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  896. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  897. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  898. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  899. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  900. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  901. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  902. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  903. data/lib/stripe/services/v2/payment_service.rb +15 -0
  904. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  905. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  906. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  907. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  908. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  909. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  910. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  911. data/lib/stripe/services/v2_services.rb +5 -1
  912. data/lib/stripe/services.rb +88 -0
  913. data/lib/stripe/stripe_configuration.rb +3 -1
  914. data/lib/stripe/stripe_object.rb +1 -1
  915. data/lib/stripe/util.rb +7 -1
  916. data/lib/stripe/version.rb +1 -1
  917. data/lib/stripe.rb +53 -0
  918. data/rbi/stripe.rbi +156568 -83268
  919. metadata +737 -4
@@ -0,0 +1,1166 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Invoices are statements of amounts owed by a customer, and are either
6
+ # generated one-off, or generated periodically from a subscription.
7
+ #
8
+ # They contain [invoice items](https://stripe.com/docs/api#invoiceitems), and proration adjustments
9
+ # that may be caused by subscription upgrades/downgrades (if necessary).
10
+ #
11
+ # If your invoice is configured to be billed through automatic charges,
12
+ # Stripe automatically finalizes your invoice and attempts payment. Note
13
+ # that finalizing the invoice,
14
+ # [when automatic](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection), does
15
+ # not happen immediately as the invoice is created. Stripe waits
16
+ # until one hour after the last webhook was successfully sent (or the last
17
+ # webhook timed out after failing). If you (and the platforms you may have
18
+ # connected to) have no webhooks configured, Stripe waits one hour after
19
+ # creation to finalize the invoice.
20
+ #
21
+ # If your invoice is configured to be billed by sending an email, then based on your
22
+ # [email settings](https://dashboard.stripe.com/account/billing/automatic),
23
+ # Stripe will email the invoice to your customer and await payment. These
24
+ # emails can contain a link to a hosted page to pay the invoice.
25
+ #
26
+ # Stripe applies any customer credit on the account before determining the
27
+ # amount due for the invoice (i.e., the amount that will be actually
28
+ # charged). If the amount due for the invoice is less than Stripe's [minimum allowed charge
29
+ # per currency](https://docs.stripe.com/docs/currencies#minimum-and-maximum-charge-amounts), the
30
+ # invoice is automatically marked paid, and we add the amount due to the
31
+ # customer's credit balance which is applied to the next invoice.
32
+ #
33
+ # More details on the customer's credit balance are
34
+ # [here](https://stripe.com/docs/billing/customer/balance).
35
+ #
36
+ # Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending)
37
+ class QuotePreviewInvoice < APIResource
38
+ OBJECT_NAME = "quote_preview_invoice"
39
+ def self.object_name
40
+ "quote_preview_invoice"
41
+ end
42
+
43
+ class AmountsDue < ::Stripe::StripeObject
44
+ # Incremental amount due for this payment in cents (or local equivalent).
45
+ attr_reader :amount
46
+ # The amount in cents (or local equivalent) that was paid for this payment.
47
+ attr_reader :amount_paid
48
+ # The difference between the payment’s amount and amount_paid, in cents (or local equivalent).
49
+ attr_reader :amount_remaining
50
+ # Number of days from when invoice is finalized until the payment is due.
51
+ attr_reader :days_until_due
52
+ # An arbitrary string attached to the object. Often useful for displaying to users.
53
+ attr_reader :description
54
+ # Date on which a payment plan’s payment is due.
55
+ attr_reader :due_date
56
+ # Timestamp when the payment was paid.
57
+ attr_reader :paid_at
58
+ # The status of the payment, one of `open`, `paid`, or `past_due`
59
+ attr_reader :status
60
+
61
+ def self.inner_class_types
62
+ @inner_class_types = {}
63
+ end
64
+
65
+ def self.field_remappings
66
+ @field_remappings = {}
67
+ end
68
+ end
69
+
70
+ class AppliesTo < ::Stripe::StripeObject
71
+ # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
72
+ attr_reader :new_reference
73
+ # The ID of the schedule the line applies to.
74
+ attr_reader :subscription_schedule
75
+ # Describes whether the quote line is affecting a new schedule or an existing schedule.
76
+ attr_reader :type
77
+
78
+ def self.inner_class_types
79
+ @inner_class_types = {}
80
+ end
81
+
82
+ def self.field_remappings
83
+ @field_remappings = {}
84
+ end
85
+ end
86
+
87
+ class AutomaticTax < ::Stripe::StripeObject
88
+ class Liability < ::Stripe::StripeObject
89
+ # The connected account being referenced when `type` is `account`.
90
+ attr_reader :account
91
+ # Type of the account referenced.
92
+ attr_reader :type
93
+
94
+ def self.inner_class_types
95
+ @inner_class_types = {}
96
+ end
97
+
98
+ def self.field_remappings
99
+ @field_remappings = {}
100
+ end
101
+ end
102
+ # If Stripe disabled automatic tax, this enum describes why.
103
+ attr_reader :disabled_reason
104
+ # Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
105
+ attr_reader :enabled
106
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
107
+ attr_reader :liability
108
+ # The tax provider powering automatic tax.
109
+ attr_reader :provider
110
+ # The status of the most recent automated tax calculation for this invoice.
111
+ attr_reader :status
112
+
113
+ def self.inner_class_types
114
+ @inner_class_types = { liability: Liability }
115
+ end
116
+
117
+ def self.field_remappings
118
+ @field_remappings = {}
119
+ end
120
+ end
121
+
122
+ class ConfirmationSecret < ::Stripe::StripeObject
123
+ # The client_secret of the payment that Stripe creates for the invoice after finalization.
124
+ attr_reader :client_secret
125
+ # The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
126
+ attr_reader :type
127
+
128
+ def self.inner_class_types
129
+ @inner_class_types = {}
130
+ end
131
+
132
+ def self.field_remappings
133
+ @field_remappings = {}
134
+ end
135
+ end
136
+
137
+ class CustomField < ::Stripe::StripeObject
138
+ # The name of the custom field.
139
+ attr_reader :name
140
+ # The value of the custom field.
141
+ attr_reader :value
142
+
143
+ def self.inner_class_types
144
+ @inner_class_types = {}
145
+ end
146
+
147
+ def self.field_remappings
148
+ @field_remappings = {}
149
+ end
150
+ end
151
+
152
+ class CustomerAddress < ::Stripe::StripeObject
153
+ # City, district, suburb, town, or village.
154
+ attr_reader :city
155
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
156
+ attr_reader :country
157
+ # Address line 1, such as the street, PO Box, or company name.
158
+ attr_reader :line1
159
+ # Address line 2, such as the apartment, suite, unit, or building.
160
+ attr_reader :line2
161
+ # ZIP or postal code.
162
+ attr_reader :postal_code
163
+ # State, county, province, or region.
164
+ attr_reader :state
165
+
166
+ def self.inner_class_types
167
+ @inner_class_types = {}
168
+ end
169
+
170
+ def self.field_remappings
171
+ @field_remappings = {}
172
+ end
173
+ end
174
+
175
+ class CustomerShipping < ::Stripe::StripeObject
176
+ class Address < ::Stripe::StripeObject
177
+ # City, district, suburb, town, or village.
178
+ attr_reader :city
179
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
180
+ attr_reader :country
181
+ # Address line 1, such as the street, PO Box, or company name.
182
+ attr_reader :line1
183
+ # Address line 2, such as the apartment, suite, unit, or building.
184
+ attr_reader :line2
185
+ # ZIP or postal code.
186
+ attr_reader :postal_code
187
+ # State, county, province, or region.
188
+ attr_reader :state
189
+
190
+ def self.inner_class_types
191
+ @inner_class_types = {}
192
+ end
193
+
194
+ def self.field_remappings
195
+ @field_remappings = {}
196
+ end
197
+ end
198
+ # Attribute for field address
199
+ attr_reader :address
200
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
201
+ attr_reader :carrier
202
+ # Recipient name.
203
+ attr_reader :name
204
+ # Recipient phone (including extension).
205
+ attr_reader :phone
206
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
207
+ attr_reader :tracking_number
208
+
209
+ def self.inner_class_types
210
+ @inner_class_types = { address: Address }
211
+ end
212
+
213
+ def self.field_remappings
214
+ @field_remappings = {}
215
+ end
216
+ end
217
+
218
+ class CustomerTaxId < ::Stripe::StripeObject
219
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
220
+ attr_reader :type
221
+ # The value of the tax ID.
222
+ attr_reader :value
223
+
224
+ def self.inner_class_types
225
+ @inner_class_types = {}
226
+ end
227
+
228
+ def self.field_remappings
229
+ @field_remappings = {}
230
+ end
231
+ end
232
+
233
+ class FromInvoice < ::Stripe::StripeObject
234
+ # The relation between this invoice and the cloned invoice
235
+ attr_reader :action
236
+ # The invoice that was cloned.
237
+ attr_reader :invoice
238
+
239
+ def self.inner_class_types
240
+ @inner_class_types = {}
241
+ end
242
+
243
+ def self.field_remappings
244
+ @field_remappings = {}
245
+ end
246
+ end
247
+
248
+ class Issuer < ::Stripe::StripeObject
249
+ # The connected account being referenced when `type` is `account`.
250
+ attr_reader :account
251
+ # Type of the account referenced.
252
+ attr_reader :type
253
+
254
+ def self.inner_class_types
255
+ @inner_class_types = {}
256
+ end
257
+
258
+ def self.field_remappings
259
+ @field_remappings = {}
260
+ end
261
+ end
262
+
263
+ class LastFinalizationError < ::Stripe::StripeObject
264
+ # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
265
+ attr_reader :advice_code
266
+ # For card errors, the ID of the failed charge.
267
+ attr_reader :charge
268
+ # For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
269
+ attr_reader :code
270
+ # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
271
+ attr_reader :decline_code
272
+ # A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
273
+ attr_reader :doc_url
274
+ # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
275
+ attr_reader :message
276
+ # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
277
+ attr_reader :network_advice_code
278
+ # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
279
+ attr_reader :network_decline_code
280
+ # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
281
+ attr_reader :param
282
+ # A PaymentIntent guides you through the process of collecting a payment from your customer.
283
+ # We recommend that you create exactly one PaymentIntent for each order or
284
+ # customer session in your system. You can reference the PaymentIntent later to
285
+ # see the history of payment attempts for a particular session.
286
+ #
287
+ # A PaymentIntent transitions through
288
+ # [multiple statuses](https://stripe.com/docs/payments/intents#intent-statuses)
289
+ # throughout its lifetime as it interfaces with Stripe.js to perform
290
+ # authentication flows and ultimately creates at most one successful charge.
291
+ #
292
+ # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents)
293
+ attr_reader :payment_intent
294
+ # PaymentMethod objects represent your customer's payment instruments.
295
+ # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
296
+ # Customer objects to store instrument details for future payments.
297
+ #
298
+ # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
299
+ attr_reader :payment_method
300
+ # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
301
+ attr_reader :payment_method_type
302
+ # A URL to the request log entry in your dashboard.
303
+ attr_reader :request_log_url
304
+ # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
305
+ # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
306
+ # Later, you can use [PaymentIntents](https://stripe.com/docs/api#payment_intents) to drive the payment flow.
307
+ #
308
+ # Create a SetupIntent when you're ready to collect your customer's payment credentials.
309
+ # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
310
+ # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
311
+ # you through the setup process.
312
+ #
313
+ # Successful SetupIntents result in payment credentials that are optimized for future payments.
314
+ # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
315
+ # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
316
+ # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
317
+ # If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
318
+ # it automatically attaches the resulting payment method to that Customer after successful setup.
319
+ # We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
320
+ # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
321
+ #
322
+ # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
323
+ #
324
+ # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
325
+ attr_reader :setup_intent
326
+ # Attribute for field source
327
+ attr_reader :source
328
+ # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
329
+ attr_reader :type
330
+
331
+ def self.inner_class_types
332
+ @inner_class_types = {}
333
+ end
334
+
335
+ def self.field_remappings
336
+ @field_remappings = {}
337
+ end
338
+ end
339
+
340
+ class Parent < ::Stripe::StripeObject
341
+ class BillingCadenceDetails < ::Stripe::StripeObject
342
+ # The billing cadence that generated this invoice
343
+ attr_reader :billing_cadence
344
+
345
+ def self.inner_class_types
346
+ @inner_class_types = {}
347
+ end
348
+
349
+ def self.field_remappings
350
+ @field_remappings = {}
351
+ end
352
+ end
353
+
354
+ class QuoteDetails < ::Stripe::StripeObject
355
+ # The quote that generated this invoice
356
+ attr_reader :quote
357
+
358
+ def self.inner_class_types
359
+ @inner_class_types = {}
360
+ end
361
+
362
+ def self.field_remappings
363
+ @field_remappings = {}
364
+ end
365
+ end
366
+
367
+ class ScheduleDetails < ::Stripe::StripeObject
368
+ # The schedule that generated this invoice
369
+ attr_reader :schedule
370
+
371
+ def self.inner_class_types
372
+ @inner_class_types = {}
373
+ end
374
+
375
+ def self.field_remappings
376
+ @field_remappings = {}
377
+ end
378
+ end
379
+
380
+ class SubscriptionDetails < ::Stripe::StripeObject
381
+ class PauseCollection < ::Stripe::StripeObject
382
+ # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
383
+ attr_reader :behavior
384
+ # The time after which the subscription will resume collecting payments.
385
+ attr_reader :resumes_at
386
+
387
+ def self.inner_class_types
388
+ @inner_class_types = {}
389
+ end
390
+
391
+ def self.field_remappings
392
+ @field_remappings = {}
393
+ end
394
+ end
395
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
396
+ # *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
397
+ attr_reader :metadata
398
+ # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
399
+ attr_reader :pause_collection
400
+ # The subscription that generated this invoice
401
+ attr_reader :subscription
402
+ # Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
403
+ attr_reader :subscription_proration_date
404
+
405
+ def self.inner_class_types
406
+ @inner_class_types = { pause_collection: PauseCollection }
407
+ end
408
+
409
+ def self.field_remappings
410
+ @field_remappings = {}
411
+ end
412
+ end
413
+ # Details about the billing cadence that generated this invoice
414
+ attr_reader :billing_cadence_details
415
+ # Details about the quote that generated this invoice
416
+ attr_reader :quote_details
417
+ # Details about the subscription that generated this invoice
418
+ attr_reader :subscription_details
419
+ # The type of parent that generated this invoice
420
+ attr_reader :type
421
+ # Details about the schedule that generated this invoice
422
+ attr_reader :schedule_details
423
+
424
+ def self.inner_class_types
425
+ @inner_class_types = {
426
+ billing_cadence_details: BillingCadenceDetails,
427
+ quote_details: QuoteDetails,
428
+ subscription_details: SubscriptionDetails,
429
+ schedule_details: ScheduleDetails,
430
+ }
431
+ end
432
+
433
+ def self.field_remappings
434
+ @field_remappings = {}
435
+ end
436
+ end
437
+
438
+ class PaymentSettings < ::Stripe::StripeObject
439
+ class PaymentMethodOptions < ::Stripe::StripeObject
440
+ class AcssDebit < ::Stripe::StripeObject
441
+ class MandateOptions < ::Stripe::StripeObject
442
+ # Transaction type of the mandate.
443
+ attr_reader :transaction_type
444
+
445
+ def self.inner_class_types
446
+ @inner_class_types = {}
447
+ end
448
+
449
+ def self.field_remappings
450
+ @field_remappings = {}
451
+ end
452
+ end
453
+ # Attribute for field mandate_options
454
+ attr_reader :mandate_options
455
+ # Bank account verification method.
456
+ attr_reader :verification_method
457
+
458
+ def self.inner_class_types
459
+ @inner_class_types = { mandate_options: MandateOptions }
460
+ end
461
+
462
+ def self.field_remappings
463
+ @field_remappings = {}
464
+ end
465
+ end
466
+
467
+ class Bancontact < ::Stripe::StripeObject
468
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
469
+ attr_reader :preferred_language
470
+
471
+ def self.inner_class_types
472
+ @inner_class_types = {}
473
+ end
474
+
475
+ def self.field_remappings
476
+ @field_remappings = {}
477
+ end
478
+ end
479
+
480
+ class Card < ::Stripe::StripeObject
481
+ class Installments < ::Stripe::StripeObject
482
+ # Whether Installments are enabled for this Invoice.
483
+ attr_reader :enabled
484
+
485
+ def self.inner_class_types
486
+ @inner_class_types = {}
487
+ end
488
+
489
+ def self.field_remappings
490
+ @field_remappings = {}
491
+ end
492
+ end
493
+ # Attribute for field installments
494
+ attr_reader :installments
495
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
496
+ attr_reader :request_three_d_secure
497
+
498
+ def self.inner_class_types
499
+ @inner_class_types = { installments: Installments }
500
+ end
501
+
502
+ def self.field_remappings
503
+ @field_remappings = {}
504
+ end
505
+ end
506
+
507
+ class CustomerBalance < ::Stripe::StripeObject
508
+ class BankTransfer < ::Stripe::StripeObject
509
+ class EuBankTransfer < ::Stripe::StripeObject
510
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
511
+ attr_reader :country
512
+
513
+ def self.inner_class_types
514
+ @inner_class_types = {}
515
+ end
516
+
517
+ def self.field_remappings
518
+ @field_remappings = {}
519
+ end
520
+ end
521
+ # Attribute for field eu_bank_transfer
522
+ attr_reader :eu_bank_transfer
523
+ # The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
524
+ attr_reader :type
525
+
526
+ def self.inner_class_types
527
+ @inner_class_types = { eu_bank_transfer: EuBankTransfer }
528
+ end
529
+
530
+ def self.field_remappings
531
+ @field_remappings = {}
532
+ end
533
+ end
534
+ # Attribute for field bank_transfer
535
+ attr_reader :bank_transfer
536
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
537
+ attr_reader :funding_type
538
+
539
+ def self.inner_class_types
540
+ @inner_class_types = { bank_transfer: BankTransfer }
541
+ end
542
+
543
+ def self.field_remappings
544
+ @field_remappings = {}
545
+ end
546
+ end
547
+
548
+ class IdBankTransfer < ::Stripe::StripeObject
549
+ def self.inner_class_types
550
+ @inner_class_types = {}
551
+ end
552
+
553
+ def self.field_remappings
554
+ @field_remappings = {}
555
+ end
556
+ end
557
+
558
+ class Konbini < ::Stripe::StripeObject
559
+ def self.inner_class_types
560
+ @inner_class_types = {}
561
+ end
562
+
563
+ def self.field_remappings
564
+ @field_remappings = {}
565
+ end
566
+ end
567
+
568
+ class Pix < ::Stripe::StripeObject
569
+ # Determines if the amount includes the IOF tax.
570
+ attr_reader :amount_includes_iof
571
+
572
+ def self.inner_class_types
573
+ @inner_class_types = {}
574
+ end
575
+
576
+ def self.field_remappings
577
+ @field_remappings = {}
578
+ end
579
+ end
580
+
581
+ class SepaDebit < ::Stripe::StripeObject
582
+ def self.inner_class_types
583
+ @inner_class_types = {}
584
+ end
585
+
586
+ def self.field_remappings
587
+ @field_remappings = {}
588
+ end
589
+ end
590
+
591
+ class Upi < ::Stripe::StripeObject
592
+ class MandateOptions < ::Stripe::StripeObject
593
+ # Amount to be charged for future payments.
594
+ attr_reader :amount
595
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
596
+ attr_reader :amount_type
597
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
598
+ attr_reader :description
599
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
600
+ attr_reader :end_date
601
+
602
+ def self.inner_class_types
603
+ @inner_class_types = {}
604
+ end
605
+
606
+ def self.field_remappings
607
+ @field_remappings = {}
608
+ end
609
+ end
610
+ # Attribute for field mandate_options
611
+ attr_reader :mandate_options
612
+
613
+ def self.inner_class_types
614
+ @inner_class_types = { mandate_options: MandateOptions }
615
+ end
616
+
617
+ def self.field_remappings
618
+ @field_remappings = {}
619
+ end
620
+ end
621
+
622
+ class UsBankAccount < ::Stripe::StripeObject
623
+ class FinancialConnections < ::Stripe::StripeObject
624
+ class Filters < ::Stripe::StripeObject
625
+ # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
626
+ attr_reader :account_subcategories
627
+ # The institution to use to filter for possible accounts to link.
628
+ attr_reader :institution
629
+
630
+ def self.inner_class_types
631
+ @inner_class_types = {}
632
+ end
633
+
634
+ def self.field_remappings
635
+ @field_remappings = {}
636
+ end
637
+ end
638
+ # Attribute for field filters
639
+ attr_reader :filters
640
+ # The list of permissions to request. The `payment_method` permission must be included.
641
+ attr_reader :permissions
642
+ # Data features requested to be retrieved upon account creation.
643
+ attr_reader :prefetch
644
+
645
+ def self.inner_class_types
646
+ @inner_class_types = { filters: Filters }
647
+ end
648
+
649
+ def self.field_remappings
650
+ @field_remappings = {}
651
+ end
652
+ end
653
+ # Attribute for field financial_connections
654
+ attr_reader :financial_connections
655
+ # Bank account verification method.
656
+ attr_reader :verification_method
657
+
658
+ def self.inner_class_types
659
+ @inner_class_types = { financial_connections: FinancialConnections }
660
+ end
661
+
662
+ def self.field_remappings
663
+ @field_remappings = {}
664
+ end
665
+ end
666
+ # If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
667
+ attr_reader :acss_debit
668
+ # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
669
+ attr_reader :bancontact
670
+ # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
671
+ attr_reader :card
672
+ # If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
673
+ attr_reader :customer_balance
674
+ # If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
675
+ attr_reader :id_bank_transfer
676
+ # If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
677
+ attr_reader :konbini
678
+ # If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
679
+ attr_reader :pix
680
+ # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
681
+ attr_reader :sepa_debit
682
+ # If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
683
+ attr_reader :upi
684
+ # If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
685
+ attr_reader :us_bank_account
686
+
687
+ def self.inner_class_types
688
+ @inner_class_types = {
689
+ acss_debit: AcssDebit,
690
+ bancontact: Bancontact,
691
+ card: Card,
692
+ customer_balance: CustomerBalance,
693
+ id_bank_transfer: IdBankTransfer,
694
+ konbini: Konbini,
695
+ pix: Pix,
696
+ sepa_debit: SepaDebit,
697
+ upi: Upi,
698
+ us_bank_account: UsBankAccount,
699
+ }
700
+ end
701
+
702
+ def self.field_remappings
703
+ @field_remappings = {}
704
+ end
705
+ end
706
+ # ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
707
+ attr_reader :default_mandate
708
+ # Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
709
+ attr_reader :payment_method_options
710
+ # The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
711
+ attr_reader :payment_method_types
712
+
713
+ def self.inner_class_types
714
+ @inner_class_types = { payment_method_options: PaymentMethodOptions }
715
+ end
716
+
717
+ def self.field_remappings
718
+ @field_remappings = {}
719
+ end
720
+ end
721
+
722
+ class Rendering < ::Stripe::StripeObject
723
+ class Pdf < ::Stripe::StripeObject
724
+ # Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
725
+ attr_reader :page_size
726
+
727
+ def self.inner_class_types
728
+ @inner_class_types = {}
729
+ end
730
+
731
+ def self.field_remappings
732
+ @field_remappings = {}
733
+ end
734
+ end
735
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
736
+ attr_reader :amount_tax_display
737
+ # Invoice pdf rendering options
738
+ attr_reader :pdf
739
+ # ID of the rendering template that the invoice is formatted by.
740
+ attr_reader :template
741
+ # Version of the rendering template that the invoice is using.
742
+ attr_reader :template_version
743
+
744
+ def self.inner_class_types
745
+ @inner_class_types = { pdf: Pdf }
746
+ end
747
+
748
+ def self.field_remappings
749
+ @field_remappings = {}
750
+ end
751
+ end
752
+
753
+ class ShippingCost < ::Stripe::StripeObject
754
+ class Tax < ::Stripe::StripeObject
755
+ # Amount of tax applied for this rate.
756
+ attr_reader :amount
757
+ # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
758
+ #
759
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
760
+ attr_reader :rate
761
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
762
+ attr_reader :taxability_reason
763
+ # The amount on which tax is calculated, in cents (or local equivalent).
764
+ attr_reader :taxable_amount
765
+
766
+ def self.inner_class_types
767
+ @inner_class_types = {}
768
+ end
769
+
770
+ def self.field_remappings
771
+ @field_remappings = {}
772
+ end
773
+ end
774
+ # Total shipping cost before any taxes are applied.
775
+ attr_reader :amount_subtotal
776
+ # Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
777
+ attr_reader :amount_tax
778
+ # Total shipping cost after taxes are applied.
779
+ attr_reader :amount_total
780
+ # The ID of the ShippingRate for this invoice.
781
+ attr_reader :shipping_rate
782
+ # The taxes applied to the shipping rate.
783
+ attr_reader :taxes
784
+
785
+ def self.inner_class_types
786
+ @inner_class_types = { taxes: Tax }
787
+ end
788
+
789
+ def self.field_remappings
790
+ @field_remappings = {}
791
+ end
792
+ end
793
+
794
+ class ShippingDetails < ::Stripe::StripeObject
795
+ class Address < ::Stripe::StripeObject
796
+ # City, district, suburb, town, or village.
797
+ attr_reader :city
798
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
799
+ attr_reader :country
800
+ # Address line 1, such as the street, PO Box, or company name.
801
+ attr_reader :line1
802
+ # Address line 2, such as the apartment, suite, unit, or building.
803
+ attr_reader :line2
804
+ # ZIP or postal code.
805
+ attr_reader :postal_code
806
+ # State, county, province, or region.
807
+ attr_reader :state
808
+
809
+ def self.inner_class_types
810
+ @inner_class_types = {}
811
+ end
812
+
813
+ def self.field_remappings
814
+ @field_remappings = {}
815
+ end
816
+ end
817
+ # Attribute for field address
818
+ attr_reader :address
819
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
820
+ attr_reader :carrier
821
+ # Recipient name.
822
+ attr_reader :name
823
+ # Recipient phone (including extension).
824
+ attr_reader :phone
825
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
826
+ attr_reader :tracking_number
827
+
828
+ def self.inner_class_types
829
+ @inner_class_types = { address: Address }
830
+ end
831
+
832
+ def self.field_remappings
833
+ @field_remappings = {}
834
+ end
835
+ end
836
+
837
+ class StatusTransitions < ::Stripe::StripeObject
838
+ # The time that the invoice draft was finalized.
839
+ attr_reader :finalized_at
840
+ # The time that the invoice was marked uncollectible.
841
+ attr_reader :marked_uncollectible_at
842
+ # The time that the invoice was paid.
843
+ attr_reader :paid_at
844
+ # The time that the invoice was voided.
845
+ attr_reader :voided_at
846
+
847
+ def self.inner_class_types
848
+ @inner_class_types = {}
849
+ end
850
+
851
+ def self.field_remappings
852
+ @field_remappings = {}
853
+ end
854
+ end
855
+
856
+ class ThresholdReason < ::Stripe::StripeObject
857
+ class ItemReason < ::Stripe::StripeObject
858
+ # The IDs of the line items that triggered the threshold invoice.
859
+ attr_reader :line_item_ids
860
+ # The quantity threshold boundary that applied to the given line item.
861
+ attr_reader :usage_gte
862
+
863
+ def self.inner_class_types
864
+ @inner_class_types = {}
865
+ end
866
+
867
+ def self.field_remappings
868
+ @field_remappings = {}
869
+ end
870
+ end
871
+ # The total invoice amount threshold boundary if it triggered the threshold invoice.
872
+ attr_reader :amount_gte
873
+ # Indicates which line items triggered a threshold invoice.
874
+ attr_reader :item_reasons
875
+
876
+ def self.inner_class_types
877
+ @inner_class_types = { item_reasons: ItemReason }
878
+ end
879
+
880
+ def self.field_remappings
881
+ @field_remappings = {}
882
+ end
883
+ end
884
+
885
+ class TotalDiscountAmount < ::Stripe::StripeObject
886
+ # The amount, in cents (or local equivalent), of the discount.
887
+ attr_reader :amount
888
+ # The discount that was applied to get this discount amount.
889
+ attr_reader :discount
890
+
891
+ def self.inner_class_types
892
+ @inner_class_types = {}
893
+ end
894
+
895
+ def self.field_remappings
896
+ @field_remappings = {}
897
+ end
898
+ end
899
+
900
+ class TotalMarginAmount < ::Stripe::StripeObject
901
+ # The amount, in cents (or local equivalent), of the reduction in line item amount.
902
+ attr_reader :amount
903
+ # The margin that was applied to get this margin amount.
904
+ attr_reader :margin
905
+
906
+ def self.inner_class_types
907
+ @inner_class_types = {}
908
+ end
909
+
910
+ def self.field_remappings
911
+ @field_remappings = {}
912
+ end
913
+ end
914
+
915
+ class TotalPretaxCreditAmount < ::Stripe::StripeObject
916
+ # The amount, in cents (or local equivalent), of the pretax credit amount.
917
+ attr_reader :amount
918
+ # The credit balance transaction that was applied to get this pretax credit amount.
919
+ attr_reader :credit_balance_transaction
920
+ # The discount that was applied to get this pretax credit amount.
921
+ attr_reader :discount
922
+ # The margin that was applied to get this pretax credit amount.
923
+ attr_reader :margin
924
+ # Type of the pretax credit amount referenced.
925
+ attr_reader :type
926
+
927
+ def self.inner_class_types
928
+ @inner_class_types = {}
929
+ end
930
+
931
+ def self.field_remappings
932
+ @field_remappings = {}
933
+ end
934
+ end
935
+
936
+ class TotalTax < ::Stripe::StripeObject
937
+ class TaxRateDetails < ::Stripe::StripeObject
938
+ # Attribute for field tax_rate
939
+ attr_reader :tax_rate
940
+
941
+ def self.inner_class_types
942
+ @inner_class_types = {}
943
+ end
944
+
945
+ def self.field_remappings
946
+ @field_remappings = {}
947
+ end
948
+ end
949
+ # The amount of the tax, in cents (or local equivalent).
950
+ attr_reader :amount
951
+ # Whether this tax is inclusive or exclusive.
952
+ attr_reader :tax_behavior
953
+ # Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
954
+ attr_reader :tax_rate_details
955
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
956
+ attr_reader :taxability_reason
957
+ # The amount on which tax is calculated, in cents (or local equivalent).
958
+ attr_reader :taxable_amount
959
+ # The type of tax information.
960
+ attr_reader :type
961
+
962
+ def self.inner_class_types
963
+ @inner_class_types = { tax_rate_details: TaxRateDetails }
964
+ end
965
+
966
+ def self.field_remappings
967
+ @field_remappings = {}
968
+ end
969
+ end
970
+ # The country of the business associated with this invoice, most often the business creating the invoice.
971
+ attr_reader :account_country
972
+ # The public name of the business associated with this invoice, most often the business creating the invoice.
973
+ attr_reader :account_name
974
+ # The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
975
+ attr_reader :account_tax_ids
976
+ # Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.
977
+ attr_reader :amount_due
978
+ # Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.
979
+ attr_reader :amount_overpaid
980
+ # The amount, in cents (or local equivalent), that was paid.
981
+ attr_reader :amount_paid
982
+ # The difference between amount_due and amount_paid, in cents (or local equivalent).
983
+ attr_reader :amount_remaining
984
+ # This is the sum of all the shipping amounts.
985
+ attr_reader :amount_shipping
986
+ # List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
987
+ attr_reader :amounts_due
988
+ # ID of the Connect Application that created the invoice.
989
+ attr_reader :application
990
+ # Attribute for field applies_to
991
+ attr_reader :applies_to
992
+ # Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
993
+ attr_reader :attempt_count
994
+ # Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.
995
+ attr_reader :attempted
996
+ # Attribute for field automatic_tax
997
+ attr_reader :automatic_tax
998
+ # The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
999
+ attr_reader :automatically_finalizes_at
1000
+ # Indicates the reason why the invoice was created.
1001
+ #
1002
+ # * `manual`: Unrelated to a subscription, for example, created via the invoice editor.
1003
+ # * `subscription`: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.
1004
+ # * `subscription_create`: A new subscription was created.
1005
+ # * `subscription_cycle`: A subscription advanced into a new period.
1006
+ # * `subscription_threshold`: A subscription reached a billing threshold.
1007
+ # * `subscription_update`: A subscription was updated.
1008
+ # * `upcoming`: Reserved for simulated invoices, per the upcoming invoice endpoint.
1009
+ attr_reader :billing_reason
1010
+ # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
1011
+ attr_reader :collection_method
1012
+ # The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.
1013
+ attr_reader :confirmation_secret
1014
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1015
+ attr_reader :created
1016
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1017
+ attr_reader :currency
1018
+ # Custom fields displayed on the invoice.
1019
+ attr_reader :custom_fields
1020
+ # The ID of the account who will be billed.
1021
+ attr_reader :customer_account
1022
+ # The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
1023
+ attr_reader :customer_address
1024
+ # The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
1025
+ attr_reader :customer_email
1026
+ # The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.
1027
+ attr_reader :customer_name
1028
+ # The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.
1029
+ attr_reader :customer_phone
1030
+ # The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.
1031
+ attr_reader :customer_shipping
1032
+ # The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.
1033
+ attr_reader :customer_tax_exempt
1034
+ # The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
1035
+ attr_reader :customer_tax_ids
1036
+ # The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
1037
+ attr_reader :default_margins
1038
+ # ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
1039
+ attr_reader :default_payment_method
1040
+ # ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
1041
+ attr_reader :default_source
1042
+ # The tax rates applied to this invoice, if any.
1043
+ attr_reader :default_tax_rates
1044
+ # An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
1045
+ attr_reader :description
1046
+ # The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
1047
+ attr_reader :discounts
1048
+ # The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.
1049
+ attr_reader :due_date
1050
+ # The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
1051
+ attr_reader :effective_at
1052
+ # Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
1053
+ attr_reader :ending_balance
1054
+ # Footer displayed on the invoice.
1055
+ attr_reader :footer
1056
+ # Details of the invoice that was cloned. See the [revision documentation](https://stripe.com/docs/invoicing/invoice-revisions) for more details.
1057
+ attr_reader :from_invoice
1058
+ # Unique identifier for the object. For preview invoices created using the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint, this id will be prefixed with `upcoming_in`.
1059
+ attr_reader :id
1060
+ # Attribute for field issuer
1061
+ attr_reader :issuer
1062
+ # The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
1063
+ attr_reader :last_finalization_error
1064
+ # The ID of the most recent non-draft revision of this invoice
1065
+ attr_reader :latest_revision
1066
+ # The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
1067
+ attr_reader :lines
1068
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1069
+ attr_reader :livemode
1070
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1071
+ attr_reader :metadata
1072
+ # The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.
1073
+ attr_reader :next_payment_attempt
1074
+ # A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
1075
+ attr_reader :number
1076
+ # String representing the object's type. Objects of the same type share the same value.
1077
+ attr_reader :object
1078
+ # The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
1079
+ attr_reader :on_behalf_of
1080
+ # The parent that generated this invoice
1081
+ attr_reader :parent
1082
+ # Attribute for field payment_settings
1083
+ attr_reader :payment_settings
1084
+ # Payments for this invoice
1085
+ attr_reader :payments
1086
+ # End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
1087
+ attr_reader :period_end
1088
+ # Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
1089
+ attr_reader :period_start
1090
+ # Total amount of all post-payment credit notes issued for this invoice.
1091
+ attr_reader :post_payment_credit_notes_amount
1092
+ # Total amount of all pre-payment credit notes issued for this invoice.
1093
+ attr_reader :pre_payment_credit_notes_amount
1094
+ # This is the transaction number that appears on email receipts sent for this invoice.
1095
+ attr_reader :receipt_number
1096
+ # The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
1097
+ attr_reader :rendering
1098
+ # The details of the cost of shipping, including the ShippingRate applied on the invoice.
1099
+ attr_reader :shipping_cost
1100
+ # Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
1101
+ attr_reader :shipping_details
1102
+ # Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
1103
+ attr_reader :starting_balance
1104
+ # Extra information about an invoice for the customer's credit card statement.
1105
+ attr_reader :statement_descriptor
1106
+ # The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/docs/billing/invoices/workflow#workflow-overview)
1107
+ attr_reader :status
1108
+ # Attribute for field status_transitions
1109
+ attr_reader :status_transitions
1110
+ # Attribute for field subscription
1111
+ attr_reader :subscription
1112
+ # Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
1113
+ attr_reader :subtotal
1114
+ # The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
1115
+ attr_reader :subtotal_excluding_tax
1116
+ # ID of the test clock this invoice belongs to.
1117
+ attr_reader :test_clock
1118
+ # Attribute for field threshold_reason
1119
+ attr_reader :threshold_reason
1120
+ # Total after discounts and taxes.
1121
+ attr_reader :total
1122
+ # The aggregate amounts calculated per discount across all line items.
1123
+ attr_reader :total_discount_amounts
1124
+ # The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
1125
+ attr_reader :total_excluding_tax
1126
+ # The aggregate amounts calculated per margin across all line items.
1127
+ attr_reader :total_margin_amounts
1128
+ # Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
1129
+ attr_reader :total_pretax_credit_amounts
1130
+ # The aggregate tax information of all line items.
1131
+ attr_reader :total_taxes
1132
+ # Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://stripe.com/docs/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
1133
+ attr_reader :webhooks_delivered_at
1134
+
1135
+ def self.inner_class_types
1136
+ @inner_class_types = {
1137
+ amounts_due: AmountsDue,
1138
+ applies_to: AppliesTo,
1139
+ automatic_tax: AutomaticTax,
1140
+ confirmation_secret: ConfirmationSecret,
1141
+ custom_fields: CustomField,
1142
+ customer_address: CustomerAddress,
1143
+ customer_shipping: CustomerShipping,
1144
+ customer_tax_ids: CustomerTaxId,
1145
+ from_invoice: FromInvoice,
1146
+ issuer: Issuer,
1147
+ last_finalization_error: LastFinalizationError,
1148
+ parent: Parent,
1149
+ payment_settings: PaymentSettings,
1150
+ rendering: Rendering,
1151
+ shipping_cost: ShippingCost,
1152
+ shipping_details: ShippingDetails,
1153
+ status_transitions: StatusTransitions,
1154
+ threshold_reason: ThresholdReason,
1155
+ total_discount_amounts: TotalDiscountAmount,
1156
+ total_margin_amounts: TotalMarginAmount,
1157
+ total_pretax_credit_amounts: TotalPretaxCreditAmount,
1158
+ total_taxes: TotalTax,
1159
+ }
1160
+ end
1161
+
1162
+ def self.field_remappings
1163
+ @field_remappings = {}
1164
+ end
1165
+ end
1166
+ end