stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1 -65
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +4 -6
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +0 -2
  8. data/lib/stripe/errors.rb +0 -3
  9. data/lib/stripe/event_types.rb +0 -83
  10. data/lib/stripe/object_types.rb +0 -27
  11. data/lib/stripe/resources/billing/alert.rb +1 -128
  12. data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
  13. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -50
  14. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -50
  15. data/lib/stripe/resources/billing/credit_grant.rb +2 -61
  16. data/lib/stripe/resources/charge.rb +4 -0
  17. data/lib/stripe/resources/checkout/session.rb +1 -128
  18. data/lib/stripe/resources/invoice.rb +0 -11
  19. data/lib/stripe/resources/invoice_item.rb +0 -48
  20. data/lib/stripe/resources/invoice_line_item.rb +0 -52
  21. data/lib/stripe/resources/issuing/card.rb +8 -0
  22. data/lib/stripe/resources/payment_attempt_record.rb +4 -0
  23. data/lib/stripe/resources/payment_record.rb +4 -0
  24. data/lib/stripe/resources/quote_preview_invoice.rb +0 -7
  25. data/lib/stripe/resources/subscription.rb +0 -38
  26. data/lib/stripe/resources/v2/event.rb +0 -2
  27. data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -2
  28. data/lib/stripe/resources.rb +0 -85
  29. data/lib/stripe/services/billing/alert_service.rb +1 -75
  30. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
  31. data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
  32. data/lib/stripe/services/checkout/session_service.rb +1 -80
  33. data/lib/stripe/services/invoice_service.rb +0 -4
  34. data/lib/stripe/services/issuing/card_service.rb +8 -0
  35. data/lib/stripe/services/subscription_service.rb +0 -27
  36. data/lib/stripe/services/v2/billing_service.rb +1 -18
  37. data/lib/stripe/services/v2/core_service.rb +1 -2
  38. data/lib/stripe/services/v2_services.rb +1 -3
  39. data/lib/stripe/services.rb +0 -29
  40. data/lib/stripe/version.rb +1 -1
  41. data/rbi/stripe.rbi +201354 -0
  42. metadata +2 -115
  43. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
  44. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
  45. data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
  46. data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
  47. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
  48. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
  49. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
  50. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
  51. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
  52. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
  53. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
  54. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
  55. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
  56. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
  57. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
  58. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
  59. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
  60. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
  61. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
  62. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
  63. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
  64. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
  65. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
  66. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
  67. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
  68. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
  69. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
  70. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
  71. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
  72. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
  73. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
  74. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
  75. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
  76. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
  77. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
  78. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
  79. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
  80. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
  81. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
  82. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
  83. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
  84. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
  85. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
  86. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
  87. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
  88. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
  89. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
  90. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
  91. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
  92. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
  93. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
  94. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
  95. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
  96. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
  97. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
  98. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
  99. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
  100. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
  101. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -62
  102. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -50
  103. data/lib/stripe/resources/v2/billing/cadence.rb +0 -182
  104. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -148
  105. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -136
  106. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -35
  107. data/lib/stripe/resources/v2/billing/intent.rb +0 -59
  108. data/lib/stripe/resources/v2/billing/intent_action.rb +0 -200
  109. data/lib/stripe/resources/v2/billing/license_fee.rb +0 -79
  110. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -36
  111. data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -56
  112. data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -44
  113. data/lib/stripe/resources/v2/billing/metered_item.rb +0 -58
  114. data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -43
  115. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -58
  116. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -63
  117. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -30
  118. data/lib/stripe/resources/v2/billing/profile.rb +0 -38
  119. data/lib/stripe/resources/v2/billing/rate_card.rb +0 -53
  120. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -71
  121. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -63
  122. data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -26
  123. data/lib/stripe/resources/v2/billing/service_action.rb +0 -117
  124. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -57
  125. data/lib/stripe/resources/v2/reporting/report.rb +0 -64
  126. data/lib/stripe/resources/v2/reporting/report_run.rb +0 -89
  127. data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -31
  128. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
  129. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
  130. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
  131. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
  132. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
  133. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
  134. data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
  135. data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
  136. data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
  137. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
  138. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
  139. data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
  140. data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
  141. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
  142. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
  143. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
  144. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
  145. data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
  146. data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
  147. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
  148. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
  149. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
  150. data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
  151. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
  152. data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
  153. data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
  154. data/lib/stripe/services/v2/reporting_service.rb +0 -16
  155. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
  156. data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -1941,8 +1941,6 @@ module Stripe
1941
1941
  attr_accessor :automatic_tax
1942
1942
  # A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
1943
1943
  attr_accessor :backdate_start_date
1944
- # The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
1945
- attr_accessor :billing_cadence
1946
1944
  # A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
1947
1945
  attr_accessor :billing_cycle_anchor
1948
1946
  # Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.
@@ -2023,7 +2021,6 @@ module Stripe
2023
2021
  application_fee_percent: nil,
2024
2022
  automatic_tax: nil,
2025
2023
  backdate_start_date: nil,
2026
- billing_cadence: nil,
2027
2024
  billing_cycle_anchor: nil,
2028
2025
  billing_cycle_anchor_config: nil,
2029
2026
  billing_mode: nil,
@@ -2061,7 +2058,6 @@ module Stripe
2061
2058
  @application_fee_percent = application_fee_percent
2062
2059
  @automatic_tax = automatic_tax
2063
2060
  @backdate_start_date = backdate_start_date
2064
- @billing_cadence = billing_cadence
2065
2061
  @billing_cycle_anchor = billing_cycle_anchor
2066
2062
  @billing_cycle_anchor_config = billing_cycle_anchor_config
2067
2063
  @billing_mode = billing_mode
@@ -2115,18 +2111,6 @@ module Stripe
2115
2111
  end
2116
2112
  end
2117
2113
 
2118
- class AttachCadenceParams < Stripe::RequestParams
2119
- # The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
2120
- attr_accessor :billing_cadence
2121
- # Specifies which fields in the response should be expanded.
2122
- attr_accessor :expand
2123
-
2124
- def initialize(billing_cadence: nil, expand: nil)
2125
- @billing_cadence = billing_cadence
2126
- @expand = expand
2127
- end
2128
- end
2129
-
2130
2114
  class MigrateParams < Stripe::RequestParams
2131
2115
  class BillingMode < Stripe::RequestParams
2132
2116
  # Attribute for param field type
@@ -2175,8 +2159,6 @@ module Stripe
2175
2159
  attr_reader :application_fee_percent
2176
2160
  # Attribute for field automatic_tax
2177
2161
  attr_reader :automatic_tax
2178
- # The Billing Cadence which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
2179
- attr_reader :billing_cadence
2180
2162
  # The reference point that aligns future [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
2181
2163
  attr_reader :billing_cycle_anchor
2182
2164
  # The fixed values used to calculate the `billing_cycle_anchor`.
@@ -2276,26 +2258,6 @@ module Stripe
2276
2258
  # If the subscription has a trial, the beginning of that trial.
2277
2259
  attr_reader :trial_start
2278
2260
 
2279
- # Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
2280
- def attach_cadence(params = {}, opts = {})
2281
- request_stripe_object(
2282
- method: :post,
2283
- path: format("/v1/subscriptions/%<subscription>s/attach_cadence", { subscription: CGI.escape(self["id"]) }),
2284
- params: params,
2285
- opts: opts
2286
- )
2287
- end
2288
-
2289
- # Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
2290
- def self.attach_cadence(subscription, params = {}, opts = {})
2291
- request_stripe_object(
2292
- method: :post,
2293
- path: format("/v1/subscriptions/%<subscription>s/attach_cadence", { subscription: CGI.escape(subscription) }),
2294
- params: params,
2295
- opts: opts
2296
- )
2297
- end
2298
-
2299
2261
  # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
2300
2262
  #
2301
2263
  # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
@@ -22,8 +22,6 @@ module Stripe
22
22
  # Information on the API request that instigated the event.
23
23
  attr_reader :request
24
24
  end
25
- # Before and after changes for the primary related object.
26
- attr_reader :changes
27
25
  # Authentication context needed to fetch the event or related object.
28
26
  attr_reader :context
29
27
  # Time at which the object was created.
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module MoneyManagement
7
- # A FinancialAccount represents a balance and can be used as the source or destination for the money management (`/v2/money_management`) APIs.
7
+ # The Financial Account is the container that allows for the configuration of money movement.
8
8
  class FinancialAccount < APIResource
9
9
  OBJECT_NAME = "v2.money_management.financial_account"
10
10
  def self.object_name
@@ -56,7 +56,7 @@ module Stripe
56
56
  attr_reader :display_name
57
57
  # Unique identifier for the object.
58
58
  attr_reader :id
59
- # Metadata associated with the FinancialAccount.
59
+ # Metadata associated with the FinancialAccount
60
60
  attr_reader :metadata
61
61
  # String representing the object's type. Objects of the same type share the same value of the object field.
62
62
  attr_reader :object
@@ -165,35 +165,11 @@ require "stripe/resources/treasury/received_credit"
165
165
  require "stripe/resources/treasury/received_debit"
166
166
  require "stripe/resources/treasury/transaction"
167
167
  require "stripe/resources/treasury/transaction_entry"
168
- require "stripe/resources/v2/billing/bill_setting"
169
- require "stripe/resources/v2/billing/bill_setting_version"
170
- require "stripe/resources/v2/billing/cadence"
171
- require "stripe/resources/v2/billing/collection_setting"
172
- require "stripe/resources/v2/billing/collection_setting_version"
173
- require "stripe/resources/v2/billing/custom_pricing_unit"
174
- require "stripe/resources/v2/billing/intent"
175
- require "stripe/resources/v2/billing/intent_action"
176
- require "stripe/resources/v2/billing/license_fee"
177
- require "stripe/resources/v2/billing/license_fee_subscription"
178
- require "stripe/resources/v2/billing/license_fee_version"
179
- require "stripe/resources/v2/billing/licensed_item"
180
168
  require "stripe/resources/v2/billing/meter_event"
181
169
  require "stripe/resources/v2/billing/meter_event_adjustment"
182
170
  require "stripe/resources/v2/billing/meter_event_session"
183
- require "stripe/resources/v2/billing/metered_item"
184
- require "stripe/resources/v2/billing/pricing_plan"
185
- require "stripe/resources/v2/billing/pricing_plan_component"
186
- require "stripe/resources/v2/billing/pricing_plan_subscription"
187
- require "stripe/resources/v2/billing/pricing_plan_version"
188
- require "stripe/resources/v2/billing/profile"
189
- require "stripe/resources/v2/billing/rate_card"
190
- require "stripe/resources/v2/billing/rate_card_rate"
191
- require "stripe/resources/v2/billing/rate_card_subscription"
192
- require "stripe/resources/v2/billing/rate_card_version"
193
- require "stripe/resources/v2/billing/service_action"
194
171
  require "stripe/resources/v2/core/account"
195
172
  require "stripe/resources/v2/core/account_link"
196
- require "stripe/resources/v2/core/claimable_sandbox"
197
173
  require "stripe/resources/v2/core/person"
198
174
  require "stripe/resources/v2/core/vault/gb_bank_account"
199
175
  require "stripe/resources/v2/core/vault/us_bank_account"
@@ -216,50 +192,9 @@ require "stripe/resources/v2/money_management/received_debit"
216
192
  require "stripe/resources/v2/money_management/transaction"
217
193
  require "stripe/resources/v2/money_management/transaction_entry"
218
194
  require "stripe/resources/v2/payments/off_session_payment"
219
- require "stripe/resources/v2/reporting/report"
220
- require "stripe/resources/v2/reporting/report_run"
221
- require "stripe/resources/v2/tax/automatic_rule"
222
195
  require "stripe/resources/webhook_endpoint"
223
196
  require "stripe/events/v1_billing_meter_error_report_triggered_event"
224
197
  require "stripe/events/v1_billing_meter_no_meter_found_event"
225
- require "stripe/events/v2_billing_cadence_billed_event"
226
- require "stripe/events/v2_billing_cadence_canceled_event"
227
- require "stripe/events/v2_billing_cadence_created_event"
228
- require "stripe/events/v2_billing_cadence_errored_event"
229
- require "stripe/events/v2_billing_license_fee_created_event"
230
- require "stripe/events/v2_billing_license_fee_updated_event"
231
- require "stripe/events/v2_billing_license_fee_version_created_event"
232
- require "stripe/events/v2_billing_licensed_item_created_event"
233
- require "stripe/events/v2_billing_licensed_item_updated_event"
234
- require "stripe/events/v2_billing_metered_item_created_event"
235
- require "stripe/events/v2_billing_metered_item_updated_event"
236
- require "stripe/events/v2_billing_pricing_plan_component_created_event"
237
- require "stripe/events/v2_billing_pricing_plan_component_updated_event"
238
- require "stripe/events/v2_billing_pricing_plan_created_event"
239
- require "stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event"
240
- require "stripe/events/v2_billing_pricing_plan_subscription_collection_current_event"
241
- require "stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event"
242
- require "stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event"
243
- require "stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event"
244
- require "stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event"
245
- require "stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event"
246
- require "stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event"
247
- require "stripe/events/v2_billing_pricing_plan_updated_event"
248
- require "stripe/events/v2_billing_pricing_plan_version_created_event"
249
- require "stripe/events/v2_billing_rate_card_created_event"
250
- require "stripe/events/v2_billing_rate_card_rate_created_event"
251
- require "stripe/events/v2_billing_rate_card_subscription_activated_event"
252
- require "stripe/events/v2_billing_rate_card_subscription_canceled_event"
253
- require "stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event"
254
- require "stripe/events/v2_billing_rate_card_subscription_collection_current_event"
255
- require "stripe/events/v2_billing_rate_card_subscription_collection_past_due_event"
256
- require "stripe/events/v2_billing_rate_card_subscription_collection_paused_event"
257
- require "stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event"
258
- require "stripe/events/v2_billing_rate_card_subscription_servicing_activated_event"
259
- require "stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event"
260
- require "stripe/events/v2_billing_rate_card_subscription_servicing_paused_event"
261
- require "stripe/events/v2_billing_rate_card_updated_event"
262
- require "stripe/events/v2_billing_rate_card_version_created_event"
263
198
  require "stripe/events/v2_core_account_closed_event"
264
199
  require "stripe/events/v2_core_account_created_event"
265
200
  require "stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event"
@@ -279,22 +214,6 @@ require "stripe/events/v2_core_account_person_deleted_event"
279
214
  require "stripe/events/v2_core_account_person_updated_event"
280
215
  require "stripe/events/v2_core_account_updated_event"
281
216
  require "stripe/events/v2_core_event_destination_ping_event"
282
- require "stripe/events/v2_core_health_api_error_firing_event"
283
- require "stripe/events/v2_core_health_api_error_resolved_event"
284
- require "stripe/events/v2_core_health_api_latency_firing_event"
285
- require "stripe/events/v2_core_health_api_latency_resolved_event"
286
- require "stripe/events/v2_core_health_authorization_rate_drop_firing_event"
287
- require "stripe/events/v2_core_health_authorization_rate_drop_resolved_event"
288
- require "stripe/events/v2_core_health_event_generation_failure_resolved_event"
289
- require "stripe/events/v2_core_health_fraud_rate_increased_event"
290
- require "stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event"
291
- require "stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event"
292
- require "stripe/events/v2_core_health_payment_method_error_firing_event"
293
- require "stripe/events/v2_core_health_payment_method_error_resolved_event"
294
- require "stripe/events/v2_core_health_traffic_volume_drop_firing_event"
295
- require "stripe/events/v2_core_health_traffic_volume_drop_resolved_event"
296
- require "stripe/events/v2_core_health_webhook_latency_firing_event"
297
- require "stripe/events/v2_core_health_webhook_latency_resolved_event"
298
217
  require "stripe/events/v2_money_management_adjustment_created_event"
299
218
  require "stripe/events/v2_money_management_financial_account_created_event"
300
219
  require "stripe/events/v2_money_management_financial_account_updated_event"
@@ -336,7 +255,3 @@ require "stripe/events/v2_payments_off_session_payment_canceled_event"
336
255
  require "stripe/events/v2_payments_off_session_payment_created_event"
337
256
  require "stripe/events/v2_payments_off_session_payment_failed_event"
338
257
  require "stripe/events/v2_payments_off_session_payment_succeeded_event"
339
- require "stripe/events/v2_reporting_report_run_created_event"
340
- require "stripe/events/v2_reporting_report_run_failed_event"
341
- require "stripe/events/v2_reporting_report_run_succeeded_event"
342
- require "stripe/events/v2_reporting_report_run_updated_event"
@@ -7,8 +7,6 @@ module Stripe
7
7
  class ListParams < Stripe::RequestParams
8
8
  # Filter results to only include this type of alert.
9
9
  attr_accessor :alert_type
10
- # Filter results to only include alerts for the given customer.
11
- attr_accessor :customer
12
10
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
13
11
  attr_accessor :ending_before
14
12
  # Specifies which fields in the response should be expanded.
@@ -22,7 +20,6 @@ module Stripe
22
20
 
23
21
  def initialize(
24
22
  alert_type: nil,
25
- customer: nil,
26
23
  ending_before: nil,
27
24
  expand: nil,
28
25
  limit: nil,
@@ -30,7 +27,6 @@ module Stripe
30
27
  starting_after: nil
31
28
  )
32
29
  @alert_type = alert_type
33
- @customer = customer
34
30
  @ending_before = ending_before
35
31
  @expand = expand
36
32
  @limit = limit
@@ -40,67 +36,6 @@ module Stripe
40
36
  end
41
37
 
42
38
  class CreateParams < Stripe::RequestParams
43
- class CreditBalanceThreshold < Stripe::RequestParams
44
- class Filter < Stripe::RequestParams
45
- # Limit the scope to this credit balance alert only to this customer.
46
- attr_accessor :customer
47
- # What type of filter is being applied to this credit balance alert.
48
- attr_accessor :type
49
-
50
- def initialize(customer: nil, type: nil)
51
- @customer = customer
52
- @type = type
53
- end
54
- end
55
-
56
- class Lte < Stripe::RequestParams
57
- class CustomPricingUnit < Stripe::RequestParams
58
- # The ID of the custom pricing unit.
59
- attr_accessor :id
60
- # A positive decimal string representing the amount of the custom pricing unit threshold.
61
- attr_accessor :value
62
-
63
- def initialize(id: nil, value: nil)
64
- @id = id
65
- @value = value
66
- end
67
- end
68
-
69
- class Monetary < Stripe::RequestParams
70
- # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
71
- attr_accessor :currency
72
- # An integer representing the amount of the threshold.
73
- attr_accessor :value
74
-
75
- def initialize(currency: nil, value: nil)
76
- @currency = currency
77
- @value = value
78
- end
79
- end
80
- # Specify the type of this balance. We currently only support `monetary` billing credits.
81
- attr_accessor :balance_type
82
- # The custom pricing unit amount.
83
- attr_accessor :custom_pricing_unit
84
- # The monetary amount.
85
- attr_accessor :monetary
86
-
87
- def initialize(balance_type: nil, custom_pricing_unit: nil, monetary: nil)
88
- @balance_type = balance_type
89
- @custom_pricing_unit = custom_pricing_unit
90
- @monetary = monetary
91
- end
92
- end
93
- # The filters allows limiting the scope of this credit balance alert. You must specify a customer filter at this time.
94
- attr_accessor :filters
95
- # Defines at which value the alert will fire.
96
- attr_accessor :lte
97
-
98
- def initialize(filters: nil, lte: nil)
99
- @filters = filters
100
- @lte = lte
101
- end
102
- end
103
-
104
39
  class UsageThreshold < Stripe::RequestParams
105
40
  class Filter < Stripe::RequestParams
106
41
  # Limit the scope to this usage alert only to this customer.
@@ -131,8 +66,6 @@ module Stripe
131
66
  end
132
67
  # The type of alert to create.
133
68
  attr_accessor :alert_type
134
- # The configuration of the credit balance threshold.
135
- attr_accessor :credit_balance_threshold
136
69
  # Specifies which fields in the response should be expanded.
137
70
  attr_accessor :expand
138
71
  # The title of the alert.
@@ -140,15 +73,8 @@ module Stripe
140
73
  # The configuration of the usage threshold.
141
74
  attr_accessor :usage_threshold
142
75
 
143
- def initialize(
144
- alert_type: nil,
145
- credit_balance_threshold: nil,
146
- expand: nil,
147
- title: nil,
148
- usage_threshold: nil
149
- )
76
+ def initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil)
150
77
  @alert_type = alert_type
151
- @credit_balance_threshold = credit_balance_threshold
152
78
  @expand = expand
153
79
  @title = title
154
80
  @usage_threshold = usage_threshold
@@ -7,15 +7,6 @@ module Stripe
7
7
  class RetrieveParams < Stripe::RequestParams
8
8
  class Filter < Stripe::RequestParams
9
9
  class ApplicabilityScope < Stripe::RequestParams
10
- class BillableItem < Stripe::RequestParams
11
- # The billable item ID this credit grant should apply to.
12
- attr_accessor :id
13
-
14
- def initialize(id: nil)
15
- @id = id
16
- end
17
- end
18
-
19
10
  class Price < Stripe::RequestParams
20
11
  # The price ID this credit grant should apply to.
21
12
  attr_accessor :id
@@ -24,15 +15,12 @@ module Stripe
24
15
  @id = id
25
16
  end
26
17
  end
27
- # A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
28
- attr_accessor :billable_items
29
18
  # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
30
19
  attr_accessor :price_type
31
20
  # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
32
21
  attr_accessor :prices
33
22
 
34
- def initialize(billable_items: nil, price_type: nil, prices: nil)
35
- @billable_items = billable_items
23
+ def initialize(price_type: nil, prices: nil)
36
24
  @price_type = price_type
37
25
  @prices = prices
38
26
  end
@@ -37,18 +37,6 @@ module Stripe
37
37
 
38
38
  class CreateParams < Stripe::RequestParams
39
39
  class Amount < Stripe::RequestParams
40
- class CustomPricingUnit < Stripe::RequestParams
41
- # The ID of the custom pricing unit.
42
- attr_accessor :id
43
- # A positive integer representing the amount of the credit grant.
44
- attr_accessor :value
45
-
46
- def initialize(id: nil, value: nil)
47
- @id = id
48
- @value = value
49
- end
50
- end
51
-
52
40
  class Monetary < Stripe::RequestParams
53
41
  # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
54
42
  attr_accessor :currency
@@ -60,15 +48,12 @@ module Stripe
60
48
  @value = value
61
49
  end
62
50
  end
63
- # The custom pricing unit amount.
64
- attr_accessor :custom_pricing_unit
65
51
  # The monetary amount.
66
52
  attr_accessor :monetary
67
53
  # The type of this amount. We currently only support `monetary` billing credits.
68
54
  attr_accessor :type
69
55
 
70
- def initialize(custom_pricing_unit: nil, monetary: nil, type: nil)
71
- @custom_pricing_unit = custom_pricing_unit
56
+ def initialize(monetary: nil, type: nil)
72
57
  @monetary = monetary
73
58
  @type = type
74
59
  end
@@ -76,15 +61,6 @@ module Stripe
76
61
 
77
62
  class ApplicabilityConfig < Stripe::RequestParams
78
63
  class Scope < Stripe::RequestParams
79
- class BillableItem < Stripe::RequestParams
80
- # The billable item ID this credit grant should apply to.
81
- attr_accessor :id
82
-
83
- def initialize(id: nil)
84
- @id = id
85
- end
86
- end
87
-
88
64
  class Price < Stripe::RequestParams
89
65
  # The price ID this credit grant should apply to.
90
66
  attr_accessor :id
@@ -93,15 +69,12 @@ module Stripe
93
69
  @id = id
94
70
  end
95
71
  end
96
- # A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
97
- attr_accessor :billable_items
98
72
  # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
99
73
  attr_accessor :price_type
100
74
  # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
101
75
  attr_accessor :prices
102
76
 
103
- def initialize(billable_items: nil, price_type: nil, prices: nil)
104
- @billable_items = billable_items
77
+ def initialize(price_type: nil, prices: nil)
105
78
  @price_type = price_type
106
79
  @prices = prices
107
80
  end
@@ -149,81 +149,6 @@ module Stripe
149
149
  end
150
150
  end
151
151
 
152
- class CheckoutItem < Stripe::RequestParams
153
- class PricingPlanSubscriptionItem < Stripe::RequestParams
154
- class ComponentConfigurations < Stripe::RequestParams
155
- class LicenseFeeComponent < Stripe::RequestParams
156
- # Attribute for param field quantity
157
- attr_accessor :quantity
158
-
159
- def initialize(quantity: nil)
160
- @quantity = quantity
161
- end
162
- end
163
- # Attribute for param field type
164
- attr_accessor :type
165
- # Attribute for param field license_fee_component
166
- attr_accessor :license_fee_component
167
-
168
- def initialize(type: nil, license_fee_component: nil)
169
- @type = type
170
- @license_fee_component = license_fee_component
171
- end
172
- end
173
- # Attribute for param field pricing_plan
174
- attr_accessor :pricing_plan
175
- # Attribute for param field pricing_plan_version
176
- attr_accessor :pricing_plan_version
177
- # Attribute for param field metadata
178
- attr_accessor :metadata
179
- # Attribute for param field component_configurations
180
- attr_accessor :component_configurations
181
-
182
- def initialize(
183
- pricing_plan: nil,
184
- pricing_plan_version: nil,
185
- metadata: nil,
186
- component_configurations: nil
187
- )
188
- @pricing_plan = pricing_plan
189
- @pricing_plan_version = pricing_plan_version
190
- @metadata = metadata
191
- @component_configurations = component_configurations
192
- end
193
- end
194
-
195
- class RateCardSubscriptionItem < Stripe::RequestParams
196
- # Attribute for param field rate_card
197
- attr_accessor :rate_card
198
- # Attribute for param field metadata
199
- attr_accessor :metadata
200
- # Attribute for param field rate_card_version
201
- attr_accessor :rate_card_version
202
-
203
- def initialize(rate_card: nil, metadata: nil, rate_card_version: nil)
204
- @rate_card = rate_card
205
- @metadata = metadata
206
- @rate_card_version = rate_card_version
207
- end
208
- end
209
- # Attribute for param field type
210
- attr_accessor :type
211
- # Attribute for param field rate_card_subscription_item
212
- attr_accessor :rate_card_subscription_item
213
- # Attribute for param field pricing_plan_subscription_item
214
- attr_accessor :pricing_plan_subscription_item
215
-
216
- def initialize(
217
- type: nil,
218
- rate_card_subscription_item: nil,
219
- pricing_plan_subscription_item: nil
220
- )
221
- @type = type
222
- @rate_card_subscription_item = rate_card_subscription_item
223
- @pricing_plan_subscription_item = pricing_plan_subscription_item
224
- end
225
- end
226
-
227
152
  class ConsentCollection < Stripe::RequestParams
228
153
  class PaymentMethodReuseAgreement < Stripe::RequestParams
229
154
  # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
@@ -2480,8 +2405,6 @@ module Stripe
2480
2405
  attr_accessor :ui_mode
2481
2406
  # Wallet-specific configuration.
2482
2407
  attr_accessor :wallet_options
2483
- # Attribute for param field checkout_items
2484
- attr_accessor :checkout_items
2485
2408
 
2486
2409
  def initialize(
2487
2410
  adaptive_pricing: nil,
@@ -2529,8 +2452,7 @@ module Stripe
2529
2452
  success_url: nil,
2530
2453
  tax_id_collection: nil,
2531
2454
  ui_mode: nil,
2532
- wallet_options: nil,
2533
- checkout_items: nil
2455
+ wallet_options: nil
2534
2456
  )
2535
2457
  @adaptive_pricing = adaptive_pricing
2536
2458
  @after_expiration = after_expiration
@@ -2578,7 +2500,6 @@ module Stripe
2578
2500
  @tax_id_collection = tax_id_collection
2579
2501
  @ui_mode = ui_mode
2580
2502
  @wallet_options = wallet_options
2581
- @checkout_items = checkout_items
2582
2503
  end
2583
2504
  end
2584
2505
 
@@ -3782,8 +3782,6 @@ module Stripe
3782
3782
  end
3783
3783
  # Settings for automatic tax lookup for this invoice preview.
3784
3784
  attr_accessor :automatic_tax
3785
- # The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice.Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
3786
- attr_accessor :billing_cadence
3787
3785
  # The currency to preview this invoice in. Defaults to that of `customer` if not specified.
3788
3786
  attr_accessor :currency
3789
3787
  # The identifier of the customer whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
@@ -3815,7 +3813,6 @@ module Stripe
3815
3813
 
3816
3814
  def initialize(
3817
3815
  automatic_tax: nil,
3818
- billing_cadence: nil,
3819
3816
  currency: nil,
3820
3817
  customer: nil,
3821
3818
  customer_account: nil,
@@ -3832,7 +3829,6 @@ module Stripe
3832
3829
  subscription_details: nil
3833
3830
  )
3834
3831
  @automatic_tax = automatic_tax
3835
- @billing_cadence = billing_cadence
3836
3832
  @currency = currency
3837
3833
  @customer = customer
3838
3834
  @customer_account = customer_account
@@ -217,6 +217,10 @@ module Stripe
217
217
  attr_accessor :cardholder
218
218
  # The currency for the card.
219
219
  attr_accessor :currency
220
+ # The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
221
+ attr_accessor :exp_month
222
+ # The desired 4-digit expiration year for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
223
+ attr_accessor :exp_year
220
224
  # Specifies which fields in the response should be expanded.
221
225
  attr_accessor :expand
222
226
  # The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
@@ -245,6 +249,8 @@ module Stripe
245
249
  def initialize(
246
250
  cardholder: nil,
247
251
  currency: nil,
252
+ exp_month: nil,
253
+ exp_year: nil,
248
254
  expand: nil,
249
255
  financial_account: nil,
250
256
  metadata: nil,
@@ -260,6 +266,8 @@ module Stripe
260
266
  )
261
267
  @cardholder = cardholder
262
268
  @currency = currency
269
+ @exp_month = exp_month
270
+ @exp_year = exp_year
263
271
  @expand = expand
264
272
  @financial_account = financial_account
265
273
  @metadata = metadata