stripe 18.4.0.pre.alpha.2 → 18.4.0.pre.alpha.4

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -3
  3. data/lib/stripe/object_types.rb +4 -0
  4. data/lib/stripe/params/invoice_create_preview_params.rb +14 -1
  5. data/lib/stripe/params/subscription_resume_params.rb +5 -1
  6. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_list_params.rb +22 -0
  7. data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
  8. data/lib/stripe/params/v2/billing/intent_create_params.rb +95 -2
  9. data/lib/stripe/params/v2/billing/one_time_item_create_params.rb +48 -0
  10. data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
  11. data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
  12. data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -0
  13. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_create_params.rb +33 -0
  14. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
  15. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
  16. data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
  17. data/lib/stripe/params.rb +10 -0
  18. data/lib/stripe/resources/application_fee.rb +2 -0
  19. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +13 -3
  20. data/lib/stripe/resources/invoice_item.rb +22 -0
  21. data/lib/stripe/resources/invoice_line_item.rb +22 -0
  22. data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +101 -0
  23. data/lib/stripe/resources/v2/billing/intent_action.rb +114 -2
  24. data/lib/stripe/resources/v2/billing/one_time_item.rb +60 -0
  25. data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
  26. data/lib/stripe/resources.rb +3 -0
  27. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +10 -3
  28. data/lib/stripe/services/v2/billing/cadence_service.rb +8 -0
  29. data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
  30. data/lib/stripe/services/v2/billing/one_time_item_service.rb +54 -0
  31. data/lib/stripe/services/v2/billing/rate_card_service.rb +3 -1
  32. data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
  33. data/lib/stripe/services/v2/billing_service.rb +2 -1
  34. data/lib/stripe/services.rb +3 -0
  35. data/lib/stripe/util.rb +4 -4
  36. data/lib/stripe/version.rb +1 -1
  37. data/rbi/stripe.rbi +1105 -198
  38. metadata +18 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec4035ec02530be9d3602fb27d1d811241eb3abaaba85d4181578376b3db12b0
4
- data.tar.gz: 11403e493c5ade843037bcbe53f7d875451c7d22e1a6147bd91524d4135eb48b
3
+ metadata.gz: cee6d32769a04217113d09025127299d31401a616faa1667f6ac44ddf8db813a
4
+ data.tar.gz: aa67fe0d06b16f55254c08c78c0e4b2b597c74ffa51070151ce51c1ac6cef243
5
5
  SHA512:
6
- metadata.gz: 1b286c1d66da9c3b719e37f087dc91b4bea436388e86501ddb8cd8a829aa6b6fa92d22016f8030591cb03b0ac603daadb69b5f57866ec592ca82183b8a1fc3f9
7
- data.tar.gz: 165229091104e5b1a3b2603b2371eec3b20569637109a7daed49a8fe7d85ccdaccd615baa640ce8acf8d70feeb4c1f69626cd4f8d1c80c2fee681a9135e31f11
6
+ metadata.gz: 98c1e8f78cc9c0ad8b6413151a73fd2a5888b22be4f853c8c29de4cfad6aae6fcad13cffe0c66bf72f1731f9aa108be83f657c626658569d26809592805f8408
7
+ data.tar.gz: 99a19e10f2ae7a0386598d950d4c5742f65df0492ef9e557702cbc256a908bf31d3c7dc2b7fdec7051fd6db639f460995ff6b2d2c4b4931163f4927aa8631f74
@@ -471,7 +471,6 @@ module Stripe
471
471
  raise ArgumentError, "api_base cannot be empty" if base_url.nil? || base_url.empty?
472
472
 
473
473
  api_key ||= opts[:api_key]
474
- params = Util.objects_to_ids(params, api_mode)
475
474
 
476
475
  check_api_key!(api_key)
477
476
 
@@ -479,9 +478,10 @@ module Stripe
479
478
  query_params = nil
480
479
  case method
481
480
  when :get, :head, :delete
482
- query_params = params
481
+ query_params = Util.objects_to_ids(params)
483
482
  else
484
- body_params = params
483
+ # For v2 body params, serialize nil values to preserve explicit nulls
484
+ body_params = Util.objects_to_ids(params, serialize_empty: api_mode == :v2)
485
485
  end
486
486
 
487
487
  query_params, path = merge_query_params(query_params, path)
@@ -206,6 +206,7 @@ module Stripe
206
206
  V2::Billing::BillSetting.object_name => V2::Billing::BillSetting,
207
207
  V2::Billing::BillSettingVersion.object_name => V2::Billing::BillSettingVersion,
208
208
  V2::Billing::Cadence.object_name => V2::Billing::Cadence,
209
+ V2::Billing::CadenceSpendModifier.object_name => V2::Billing::CadenceSpendModifier,
209
210
  V2::Billing::CollectionSetting.object_name => V2::Billing::CollectionSetting,
210
211
  V2::Billing::CollectionSettingVersion.object_name => V2::Billing::CollectionSettingVersion,
211
212
  V2::Billing::CustomPricingUnit.object_name => V2::Billing::CustomPricingUnit,
@@ -219,6 +220,7 @@ module Stripe
219
220
  V2::Billing::MeterEventAdjustment.object_name => V2::Billing::MeterEventAdjustment,
220
221
  V2::Billing::MeterEventSession.object_name => V2::Billing::MeterEventSession,
221
222
  V2::Billing::MeteredItem.object_name => V2::Billing::MeteredItem,
223
+ V2::Billing::OneTimeItem.object_name => V2::Billing::OneTimeItem,
222
224
  V2::Billing::PricingPlan.object_name => V2::Billing::PricingPlan,
223
225
  V2::Billing::PricingPlanComponent.object_name => V2::Billing::PricingPlanComponent,
224
226
  V2::Billing::PricingPlanSubscription.object_name => V2::Billing::PricingPlanSubscription,
@@ -227,6 +229,8 @@ module Stripe
227
229
  V2::Billing::PricingPlanVersion.object_name => V2::Billing::PricingPlanVersion,
228
230
  V2::Billing::Profile.object_name => V2::Billing::Profile,
229
231
  V2::Billing::RateCard.object_name => V2::Billing::RateCard,
232
+ V2::Billing::RateCardCustomPricingUnitOverageRate.object_name =>
233
+ V2::Billing::RateCardCustomPricingUnitOverageRate,
230
234
  V2::Billing::RateCardRate.object_name => V2::Billing::RateCardRate,
231
235
  V2::Billing::RateCardSubscription.object_name => V2::Billing::RateCardSubscription,
232
236
  V2::Billing::RateCardVersion.object_name => V2::Billing::RateCardVersion,
@@ -1174,6 +1174,15 @@ module Stripe
1174
1174
  end
1175
1175
  end
1176
1176
 
1177
+ class DefaultSettings < ::Stripe::RequestParams
1178
+ # Configures how the subscription schedule handles billing for phase transitions.
1179
+ attr_accessor :phase_effective_at
1180
+
1181
+ def initialize(phase_effective_at: nil)
1182
+ @phase_effective_at = phase_effective_at
1183
+ end
1184
+ end
1185
+
1177
1186
  class Phase < ::Stripe::RequestParams
1178
1187
  class AddInvoiceItem < ::Stripe::RequestParams
1179
1188
  class Discount < ::Stripe::RequestParams
@@ -1897,6 +1906,8 @@ module Stripe
1897
1906
  attr_accessor :prebilling
1898
1907
  # In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
1899
1908
  attr_accessor :proration_behavior
1909
+ # Object representing the subscription schedule's default settings.
1910
+ attr_accessor :default_settings
1900
1911
 
1901
1912
  def initialize(
1902
1913
  amendments: nil,
@@ -1906,7 +1917,8 @@ module Stripe
1906
1917
  end_behavior: nil,
1907
1918
  phases: nil,
1908
1919
  prebilling: nil,
1909
- proration_behavior: nil
1920
+ proration_behavior: nil,
1921
+ default_settings: nil
1910
1922
  )
1911
1923
  @amendments = amendments
1912
1924
  @billing_behavior = billing_behavior
@@ -1916,6 +1928,7 @@ module Stripe
1916
1928
  @phases = phases
1917
1929
  @prebilling = prebilling
1918
1930
  @proration_behavior = proration_behavior
1931
+ @default_settings = default_settings
1919
1932
  end
1920
1933
  end
1921
1934
 
@@ -11,17 +11,21 @@ module Stripe
11
11
  attr_accessor :proration_behavior
12
12
  # If set, prorations will be calculated as though the subscription was resumed at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint.
13
13
  attr_accessor :proration_date
14
+ # Controls when the subscription transitions from `paused` to `active`. Determines how payment on the invoice affects the resumption process.The default is `pending_if_incomplete`.
15
+ attr_accessor :payment_behavior
14
16
 
15
17
  def initialize(
16
18
  billing_cycle_anchor: nil,
17
19
  expand: nil,
18
20
  proration_behavior: nil,
19
- proration_date: nil
21
+ proration_date: nil,
22
+ payment_behavior: nil
20
23
  )
21
24
  @billing_cycle_anchor = billing_cycle_anchor
22
25
  @expand = expand
23
26
  @proration_behavior = proration_behavior
24
27
  @proration_date = proration_date
28
+ @payment_behavior = payment_behavior
25
29
  end
26
30
  end
27
31
  end
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ module Cadences
8
+ class SpendModifierRuleListParams < ::Stripe::RequestParams
9
+ # Return only spend modifiers that are effective at the specified timestamp.
10
+ attr_accessor :effective_at
11
+ # Optionally set the maximum number of results per page. Defaults to 20.
12
+ attr_accessor :limit
13
+
14
+ def initialize(effective_at: nil, limit: nil)
15
+ @effective_at = effective_at
16
+ @limit = limit
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ module Cadences
8
+ class SpendModifierRuleRetrieveParams < ::Stripe::RequestParams; end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -7,6 +7,15 @@ module Stripe
7
7
  class IntentCreateParams < ::Stripe::RequestParams
8
8
  class Action < ::Stripe::RequestParams
9
9
  class Apply < ::Stripe::RequestParams
10
+ class EffectiveAt < ::Stripe::RequestParams
11
+ # When the apply action will take effect.
12
+ attr_accessor :type
13
+
14
+ def initialize(type: nil)
15
+ @type = type
16
+ end
17
+ end
18
+
10
19
  class InvoiceDiscountRule < ::Stripe::RequestParams
11
20
  class PercentOff < ::Stripe::RequestParams
12
21
  class MaximumApplications < ::Stripe::RequestParams
@@ -40,14 +49,79 @@ module Stripe
40
49
  @percent_off = percent_off
41
50
  end
42
51
  end
52
+
53
+ class SpendModifierRule < ::Stripe::RequestParams
54
+ class MaxBillingPeriodSpend < ::Stripe::RequestParams
55
+ class Amount < ::Stripe::RequestParams
56
+ class CustomPricingUnit < ::Stripe::RequestParams
57
+ # The value of the custom pricing unit.
58
+ attr_accessor :value
59
+
60
+ def initialize(value: nil)
61
+ @value = value
62
+ end
63
+ end
64
+ # The type of the amount.
65
+ attr_accessor :type
66
+ # The custom pricing unit amount.
67
+ attr_accessor :custom_pricing_unit
68
+
69
+ def initialize(type: nil, custom_pricing_unit: nil)
70
+ @type = type
71
+ @custom_pricing_unit = custom_pricing_unit
72
+ end
73
+ end
74
+
75
+ class CustomPricingUnitOverageRate < ::Stripe::RequestParams
76
+ # ID of the custom pricing unit overage rate.
77
+ attr_accessor :id
78
+
79
+ def initialize(id: nil)
80
+ @id = id
81
+ end
82
+ end
83
+ # The maximum amount allowed for the billing period.
84
+ attr_accessor :amount
85
+ # The configration for the overage rate for the custom pricing unit.
86
+ attr_accessor :custom_pricing_unit_overage_rate
87
+
88
+ def initialize(amount: nil, custom_pricing_unit_overage_rate: nil)
89
+ @amount = amount
90
+ @custom_pricing_unit_overage_rate = custom_pricing_unit_overage_rate
91
+ end
92
+ end
93
+ # What the spend modifier applies to.
94
+ attr_accessor :applies_to
95
+ # Type of the spend modifier.
96
+ attr_accessor :type
97
+ # Details for max billing period spend modifier. Only present if type is max_billing_period_spend.
98
+ attr_accessor :max_billing_period_spend
99
+
100
+ def initialize(applies_to: nil, type: nil, max_billing_period_spend: nil)
101
+ @applies_to = applies_to
102
+ @type = type
103
+ @max_billing_period_spend = max_billing_period_spend
104
+ end
105
+ end
106
+ # When the apply action will take effect. Defaults to on_reserve if not specified.
107
+ attr_accessor :effective_at
43
108
  # Type of the apply action details.
44
109
  attr_accessor :type
45
110
  # Details for applying a discount rule to future invoices.
46
111
  attr_accessor :invoice_discount_rule
112
+ # Details for applying a spend modifier rule. Only present if type is spend_modifier_rule.
113
+ attr_accessor :spend_modifier_rule
47
114
 
48
- def initialize(type: nil, invoice_discount_rule: nil)
115
+ def initialize(
116
+ effective_at: nil,
117
+ type: nil,
118
+ invoice_discount_rule: nil,
119
+ spend_modifier_rule: nil
120
+ )
121
+ @effective_at = effective_at
49
122
  @type = type
50
123
  @invoice_discount_rule = invoice_discount_rule
124
+ @spend_modifier_rule = spend_modifier_rule
51
125
  end
52
126
  end
53
127
 
@@ -247,14 +321,33 @@ module Stripe
247
321
  end
248
322
 
249
323
  class Remove < ::Stripe::RequestParams
324
+ class EffectiveAt < ::Stripe::RequestParams
325
+ # When the remove action will take effect.
326
+ attr_accessor :type
327
+
328
+ def initialize(type: nil)
329
+ @type = type
330
+ end
331
+ end
332
+ # When the remove action will take effect. Defaults to on_reserve if not specified.
333
+ attr_accessor :effective_at
250
334
  # Type of the remove action.
251
335
  attr_accessor :type
252
336
  # The ID of the discount rule to remove for future invoices.
253
337
  attr_accessor :invoice_discount_rule
338
+ # The ID of the spend modifier rule to remove.
339
+ attr_accessor :spend_modifier_rule
254
340
 
255
- def initialize(type: nil, invoice_discount_rule: nil)
341
+ def initialize(
342
+ effective_at: nil,
343
+ type: nil,
344
+ invoice_discount_rule: nil,
345
+ spend_modifier_rule: nil
346
+ )
347
+ @effective_at = effective_at
256
348
  @type = type
257
349
  @invoice_discount_rule = invoice_discount_rule
350
+ @spend_modifier_rule = spend_modifier_rule
258
351
  end
259
352
  end
260
353
 
@@ -0,0 +1,48 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ class OneTimeItemCreateParams < ::Stripe::RequestParams
8
+ class TaxDetails < ::Stripe::RequestParams
9
+ # Product tax code (PTC).
10
+ attr_accessor :tax_code
11
+
12
+ def initialize(tax_code: nil)
13
+ @tax_code = tax_code
14
+ end
15
+ end
16
+ # Description that customers will see in the invoice line item.
17
+ # Maximum length of 250 characters.
18
+ attr_accessor :display_name
19
+ # An internal key you can use to search for a particular one-time item.
20
+ # Must be unique among billable items.
21
+ # Maximum length of 200 characters.
22
+ attr_accessor :lookup_key
23
+ # Set of [key-value pairs](/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.
24
+ attr_accessor :metadata
25
+ # Stripe Tax details.
26
+ attr_accessor :tax_details
27
+ # The unit to use when displaying prices for this one-time item. For example, set this field
28
+ # to "credit" for the display to show "(price) per credit".
29
+ # Maximum length of 100 characters.
30
+ attr_accessor :unit_label
31
+
32
+ def initialize(
33
+ display_name: nil,
34
+ lookup_key: nil,
35
+ metadata: nil,
36
+ tax_details: nil,
37
+ unit_label: nil
38
+ )
39
+ @display_name = display_name
40
+ @lookup_key = lookup_key
41
+ @metadata = metadata
42
+ @tax_details = tax_details
43
+ @unit_label = unit_label
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ class OneTimeItemListParams < ::Stripe::RequestParams
8
+ # Optionally set the maximum number of results per page. Defaults to 20.
9
+ attr_accessor :limit
10
+ # Filter by lookup keys.
11
+ # You can specify up to 10 lookup keys.
12
+ attr_accessor :lookup_keys
13
+
14
+ def initialize(limit: nil, lookup_keys: nil)
15
+ @limit = limit
16
+ @lookup_keys = lookup_keys
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ class OneTimeItemRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,48 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ class OneTimeItemUpdateParams < ::Stripe::RequestParams
8
+ class TaxDetails < ::Stripe::RequestParams
9
+ # Product tax code (PTC).
10
+ attr_accessor :tax_code
11
+
12
+ def initialize(tax_code: nil)
13
+ @tax_code = tax_code
14
+ end
15
+ end
16
+ # Description that customers will see in the invoice line item.
17
+ # Maximum length of 250 characters.
18
+ attr_accessor :display_name
19
+ # An internal key you can use to search for a particular one-time item.
20
+ # Maximum length of 200 characters.
21
+ # To remove the lookup_key from the object, set it to null in the request.
22
+ attr_accessor :lookup_key
23
+ # Set of [key-value pairs](/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.
24
+ attr_accessor :metadata
25
+ # Stripe Tax details.
26
+ attr_accessor :tax_details
27
+ # The unit to use when displaying prices for this one-time item. For example, set this field
28
+ # to "credit" for the display to show "(price) per credit".
29
+ # Maximum length of 100 characters.
30
+ attr_accessor :unit_label
31
+
32
+ def initialize(
33
+ display_name: nil,
34
+ lookup_key: nil,
35
+ metadata: nil,
36
+ tax_details: nil,
37
+ unit_label: nil
38
+ )
39
+ @display_name = display_name
40
+ @lookup_key = lookup_key
41
+ @metadata = metadata
42
+ @tax_details = tax_details
43
+ @unit_label = unit_label
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ module RateCards
8
+ class CustomPricingUnitOverageRateCreateParams < ::Stripe::RequestParams
9
+ # The ID of the custom pricing unit this overage rate applies to.
10
+ attr_accessor :custom_pricing_unit
11
+ # Set of [key-value pairs](/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.
12
+ attr_accessor :metadata
13
+ # The ID of the one-time item to use for overage line items.
14
+ attr_accessor :one_time_item
15
+ # The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places.
16
+ attr_accessor :unit_amount
17
+
18
+ def initialize(
19
+ custom_pricing_unit: nil,
20
+ metadata: nil,
21
+ one_time_item: nil,
22
+ unit_amount: nil
23
+ )
24
+ @custom_pricing_unit = custom_pricing_unit
25
+ @metadata = metadata
26
+ @one_time_item = one_time_item
27
+ @unit_amount = unit_amount
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ module RateCards
8
+ class CustomPricingUnitOverageRateDeleteParams < ::Stripe::RequestParams; end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ module RateCards
8
+ class CustomPricingUnitOverageRateListParams < ::Stripe::RequestParams
9
+ # Optionally set the maximum number of results per page. Defaults to 20.
10
+ attr_accessor :limit
11
+ # Optionally filter by a RateCard version. If not specified, defaults to the latest version.
12
+ attr_accessor :rate_card_version
13
+
14
+ def initialize(limit: nil, rate_card_version: nil)
15
+ @limit = limit
16
+ @rate_card_version = rate_card_version
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Billing
7
+ module RateCards
8
+ class CustomPricingUnitOverageRateRetrieveParams < ::Stripe::RequestParams; end
9
+ end
10
+ end
11
+ end
12
+ end
data/lib/stripe/params.rb CHANGED
@@ -700,6 +700,8 @@ require "stripe/params/v2/billing/cadence_create_params"
700
700
  require "stripe/params/v2/billing/cadence_list_params"
701
701
  require "stripe/params/v2/billing/cadence_retrieve_params"
702
702
  require "stripe/params/v2/billing/cadence_update_params"
703
+ require "stripe/params/v2/billing/cadences/spend_modifier_rule_list_params"
704
+ require "stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params"
703
705
  require "stripe/params/v2/billing/collection_setting_create_params"
704
706
  require "stripe/params/v2/billing/collection_setting_list_params"
705
707
  require "stripe/params/v2/billing/collection_setting_retrieve_params"
@@ -738,6 +740,10 @@ require "stripe/params/v2/billing/metered_item_create_params"
738
740
  require "stripe/params/v2/billing/metered_item_list_params"
739
741
  require "stripe/params/v2/billing/metered_item_retrieve_params"
740
742
  require "stripe/params/v2/billing/metered_item_update_params"
743
+ require "stripe/params/v2/billing/one_time_item_create_params"
744
+ require "stripe/params/v2/billing/one_time_item_list_params"
745
+ require "stripe/params/v2/billing/one_time_item_retrieve_params"
746
+ require "stripe/params/v2/billing/one_time_item_update_params"
741
747
  require "stripe/params/v2/billing/pricing_plan_create_params"
742
748
  require "stripe/params/v2/billing/pricing_plan_list_params"
743
749
  require "stripe/params/v2/billing/pricing_plan_retrieve_params"
@@ -766,6 +772,10 @@ require "stripe/params/v2/billing/rate_card_subscription_list_params"
766
772
  require "stripe/params/v2/billing/rate_card_subscription_retrieve_params"
767
773
  require "stripe/params/v2/billing/rate_card_subscription_update_params"
768
774
  require "stripe/params/v2/billing/rate_card_update_params"
775
+ require "stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_create_params"
776
+ require "stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params"
777
+ require "stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params"
778
+ require "stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params"
769
779
  require "stripe/params/v2/billing/rate_cards/rate_create_params"
770
780
  require "stripe/params/v2/billing/rate_cards/rate_delete_params"
771
781
  require "stripe/params/v2/billing/rate_cards/rate_list_params"
@@ -61,6 +61,8 @@ module Stripe
61
61
  attr_reader :refunded
62
62
  # A list of refunds that have been applied to the fee.
63
63
  attr_reader :refunds
64
+ # Type of settlement for the application fee. One of `net_settled` or `gross_settled`.
65
+ attr_reader :settlement_type
64
66
 
65
67
  # Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
66
68
  def self.list(params = {}, opts = {})
@@ -2,8 +2,14 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
5
+ # The `French Meal Vouchers Onboarding` resource encapsulates the onboarding status and other related information
6
6
  # for a single restaurant (SIRET number) in the context of the French Meal Vouchers program.
7
+ #
8
+ # To onboard a restaurant for the French Meal Vouchers program, you create a `French Meal Vouchers Onboarding` object.
9
+ # You can retrieve individual objects, list all such objects, or update objects to correct the postal code of the restaurant.
10
+ # We identify `French Meal Vouchers Onboarding` objects with a unique, random ID.
11
+ #
12
+ # Related guide: [Set up a restaurant for titres-restaurant payments](https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers/set-up-restaurant)
7
13
  class FrMealVouchersOnboarding < APIResource
8
14
  extend Stripe::APIOperations::Create
9
15
  extend Stripe::APIOperations::List
@@ -112,7 +118,7 @@ module Stripe
112
118
  )
113
119
  end
114
120
 
115
- # Lists French Meal Vouchers Onboarding objects
121
+ # Lists French Meal Vouchers Onboarding objects. The objects are returned in sorted order, with the most recently created objects appearing first.
116
122
  def self.list(params = {}, opts = {})
117
123
  request_stripe_object(
118
124
  method: :get,
@@ -122,7 +128,11 @@ module Stripe
122
128
  )
123
129
  end
124
130
 
125
- # Updates the details of a restaurant's French Meal Vouchers Onboarding object
131
+ # Updates the details of a restaurant's French Meal Vouchers Onboarding object by
132
+ # setting the values of the parameters passed. Any parameters not provided are left unchanged.
133
+ # After you update the object, the onboarding process automatically restarts.
134
+ #
135
+ # You can only update French Meal Vouchers Onboarding objects with the postal_code field requirement in past_due.
126
136
  def self.update(id, params = {}, opts = {})
127
137
  request_stripe_object(
128
138
  method: :post,
@@ -160,6 +160,25 @@ module Stripe
160
160
  end
161
161
  end
162
162
 
163
+ class RateCardCustomPricingUnitOverageRateDetails < ::Stripe::StripeObject
164
+ # The ID of the custom pricing unit this item is associated with
165
+ attr_reader :custom_pricing_unit
166
+ # The ID of the custom pricing unit overage rate this item is associated with
167
+ attr_reader :custom_pricing_unit_overage_rate
168
+ # The ID of the one-time item this custom pricing unit overage rate is associated with
169
+ attr_reader :one_time_item
170
+ # The ID of the rate card this item is associated with
171
+ attr_reader :rate_card
172
+
173
+ def self.inner_class_types
174
+ @inner_class_types = {}
175
+ end
176
+
177
+ def self.field_remappings
178
+ @field_remappings = {}
179
+ end
180
+ end
181
+
163
182
  class RateCardRateDetails < ::Stripe::StripeObject
164
183
  # The ID of billable item this item is associated with
165
184
  attr_reader :metered_item
@@ -186,12 +205,15 @@ module Stripe
186
205
  attr_reader :type
187
206
  # The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
188
207
  attr_reader :unit_amount_decimal
208
+ # Attribute for field rate_card_custom_pricing_unit_overage_rate_details
209
+ attr_reader :rate_card_custom_pricing_unit_overage_rate_details
189
210
 
190
211
  def self.inner_class_types
191
212
  @inner_class_types = {
192
213
  license_fee_details: LicenseFeeDetails,
193
214
  price_details: PriceDetails,
194
215
  rate_card_rate_details: RateCardRateDetails,
216
+ rate_card_custom_pricing_unit_overage_rate_details: RateCardCustomPricingUnitOverageRateDetails,
195
217
  }
196
218
  end
197
219