Skip to content

Commit 17448c5

Browse files
Update generated code for v2159 and
1 parent df81e2e commit 17448c5

File tree

7 files changed

+99
-4
lines changed

7 files changed

+99
-4
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8c8709034677788a8c86b775cd16f40ecb5fb7db
1+
17ac30a7567d2c12a772939c0b90f505ef849cbe

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2156
1+
v2159

lib/stripe/params/subscription_list_params.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
6767
end
6868
# Filter subscriptions by their automatic tax settings.
6969
attr_accessor :automatic_tax
70+
# Filter for subscriptions that have the specified billing cadence.
71+
attr_accessor :billing_cadence
7072
# The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
7173
attr_accessor :collection_method
7274
# Only return subscriptions that were created during the given date interval.
@@ -98,6 +100,7 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
98100

99101
def initialize(
100102
automatic_tax: nil,
103+
billing_cadence: nil,
101104
collection_method: nil,
102105
created: nil,
103106
current_period_end: nil,
@@ -114,6 +117,7 @@ def initialize(
114117
test_clock: nil
115118
)
116119
@automatic_tax = automatic_tax
120+
@billing_cadence = billing_cadence
117121
@collection_method = collection_method
118122
@created = created
119123
@current_period_end = current_period_end

lib/stripe/resources/account_session.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,30 @@ def self.field_remappings
7676
end
7777
end
7878

79+
class AgenticCommerceSettings < ::Stripe::StripeObject
80+
class Features < ::Stripe::StripeObject
81+
def self.inner_class_types
82+
@inner_class_types = {}
83+
end
84+
85+
def self.field_remappings
86+
@field_remappings = {}
87+
end
88+
end
89+
# Whether the embedded component is enabled.
90+
attr_reader :enabled
91+
# Attribute for field features
92+
attr_reader :features
93+
94+
def self.inner_class_types
95+
@inner_class_types = { features: Features }
96+
end
97+
98+
def self.field_remappings
99+
@field_remappings = {}
100+
end
101+
end
102+
79103
class Balances < ::Stripe::StripeObject
80104
class Features < ::Stripe::StripeObject
81105
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -725,6 +749,8 @@ def self.field_remappings
725749
attr_reader :tax_registrations
726750
# Attribute for field tax_settings
727751
attr_reader :tax_settings
752+
# Configuration for the [agentic commerce settings](/connect/supported-embedded-components/agentic-commerce-settings/) embedded component.
753+
attr_reader :agentic_commerce_settings
728754

729755
def self.inner_class_types
730756
@inner_class_types = {
@@ -751,6 +777,7 @@ def self.inner_class_types
751777
payouts_list: PayoutsList,
752778
tax_registrations: TaxRegistrations,
753779
tax_settings: TaxSettings,
780+
agentic_commerce_settings: AgenticCommerceSettings,
754781
}
755782
end
756783

rbi/stripe.rbi

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2970,6 +2970,28 @@ module Stripe
29702970
@field_remappings = {}
29712971
end
29722972
end
2973+
class AgenticCommerceSettings < ::Stripe::StripeObject
2974+
class Features < ::Stripe::StripeObject
2975+
def self.inner_class_types
2976+
@inner_class_types = {}
2977+
end
2978+
def self.field_remappings
2979+
@field_remappings = {}
2980+
end
2981+
end
2982+
# Whether the embedded component is enabled.
2983+
sig { returns(T::Boolean) }
2984+
def enabled; end
2985+
# Attribute for field features
2986+
sig { returns(Features) }
2987+
def features; end
2988+
def self.inner_class_types
2989+
@inner_class_types = {features: Features}
2990+
end
2991+
def self.field_remappings
2992+
@field_remappings = {}
2993+
end
2994+
end
29732995
class Balances < ::Stripe::StripeObject
29742996
class Features < ::Stripe::StripeObject
29752997
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -3633,6 +3655,9 @@ module Stripe
36333655
# Attribute for field tax_settings
36343656
sig { returns(TaxSettings) }
36353657
def tax_settings; end
3658+
# Configuration for the [agentic commerce settings](/connect/supported-embedded-components/agentic-commerce-settings/) embedded component.
3659+
sig { returns(T.nilable(AgenticCommerceSettings)) }
3660+
def agentic_commerce_settings; end
36363661
def self.inner_class_types
36373662
@inner_class_types = {
36383663
account_management: AccountManagement,
@@ -3658,6 +3683,7 @@ module Stripe
36583683
payouts_list: PayoutsList,
36593684
tax_registrations: TaxRegistrations,
36603685
tax_settings: TaxSettings,
3686+
agentic_commerce_settings: AgenticCommerceSettings,
36613687
}
36623688
end
36633689
def self.field_remappings
@@ -193675,6 +193701,11 @@ module Stripe
193675193701
params(_automatic_tax: T.nilable(SubscriptionListParams::AutomaticTax)).returns(T.nilable(SubscriptionListParams::AutomaticTax))
193676193702
}
193677193703
def automatic_tax=(_automatic_tax); end
193704+
# Filter for subscriptions that have the specified billing cadence.
193705+
sig { returns(T.nilable(String)) }
193706+
def billing_cadence; end
193707+
sig { params(_billing_cadence: T.nilable(String)).returns(T.nilable(String)) }
193708+
def billing_cadence=(_billing_cadence); end
193678193709
# The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
193679193710
sig { returns(T.nilable(String)) }
193680193711
def collection_method; end
@@ -193752,10 +193783,11 @@ module Stripe
193752193783
sig { params(_test_clock: T.nilable(String)).returns(T.nilable(String)) }
193753193784
def test_clock=(_test_clock); end
193754193785
sig {
193755-
params(automatic_tax: T.nilable(SubscriptionListParams::AutomaticTax), collection_method: T.nilable(String), created: T.nilable(T.any(SubscriptionListParams::Created, Integer)), current_period_end: T.nilable(T.any(SubscriptionListParams::CurrentPeriodEnd, Integer)), current_period_start: T.nilable(T.any(SubscriptionListParams::CurrentPeriodStart, Integer)), customer: T.nilable(String), customer_account: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), plan: T.nilable(String), price: T.nilable(String), starting_after: T.nilable(String), status: T.nilable(String), test_clock: T.nilable(String)).void
193786+
params(automatic_tax: T.nilable(SubscriptionListParams::AutomaticTax), billing_cadence: T.nilable(String), collection_method: T.nilable(String), created: T.nilable(T.any(SubscriptionListParams::Created, Integer)), current_period_end: T.nilable(T.any(SubscriptionListParams::CurrentPeriodEnd, Integer)), current_period_start: T.nilable(T.any(SubscriptionListParams::CurrentPeriodStart, Integer)), customer: T.nilable(String), customer_account: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), plan: T.nilable(String), price: T.nilable(String), starting_after: T.nilable(String), status: T.nilable(String), test_clock: T.nilable(String)).void
193756193787
}
193757193788
def initialize(
193758193789
automatic_tax: nil,
193790+
billing_cadence: nil,
193759193791
collection_method: nil,
193760193792
created: nil,
193761193793
current_period_end: nil,

rbi/stripe/params/subscription_list_params.rbi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ module Stripe
9898
params(_automatic_tax: T.nilable(SubscriptionListParams::AutomaticTax)).returns(T.nilable(SubscriptionListParams::AutomaticTax))
9999
}
100100
def automatic_tax=(_automatic_tax); end
101+
# Filter for subscriptions that have the specified billing cadence.
102+
sig { returns(T.nilable(String)) }
103+
def billing_cadence; end
104+
sig { params(_billing_cadence: T.nilable(String)).returns(T.nilable(String)) }
105+
def billing_cadence=(_billing_cadence); end
101106
# The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
102107
sig { returns(T.nilable(String)) }
103108
def collection_method; end
@@ -175,10 +180,11 @@ module Stripe
175180
sig { params(_test_clock: T.nilable(String)).returns(T.nilable(String)) }
176181
def test_clock=(_test_clock); end
177182
sig {
178-
params(automatic_tax: T.nilable(SubscriptionListParams::AutomaticTax), collection_method: T.nilable(String), created: T.nilable(T.any(SubscriptionListParams::Created, Integer)), current_period_end: T.nilable(T.any(SubscriptionListParams::CurrentPeriodEnd, Integer)), current_period_start: T.nilable(T.any(SubscriptionListParams::CurrentPeriodStart, Integer)), customer: T.nilable(String), customer_account: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), plan: T.nilable(String), price: T.nilable(String), starting_after: T.nilable(String), status: T.nilable(String), test_clock: T.nilable(String)).void
183+
params(automatic_tax: T.nilable(SubscriptionListParams::AutomaticTax), billing_cadence: T.nilable(String), collection_method: T.nilable(String), created: T.nilable(T.any(SubscriptionListParams::Created, Integer)), current_period_end: T.nilable(T.any(SubscriptionListParams::CurrentPeriodEnd, Integer)), current_period_start: T.nilable(T.any(SubscriptionListParams::CurrentPeriodStart, Integer)), customer: T.nilable(String), customer_account: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), plan: T.nilable(String), price: T.nilable(String), starting_after: T.nilable(String), status: T.nilable(String), test_clock: T.nilable(String)).void
179184
}
180185
def initialize(
181186
automatic_tax: nil,
187+
billing_cadence: nil,
182188
collection_method: nil,
183189
created: nil,
184190
current_period_end: nil,

rbi/stripe/resources/account_session.rbi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ module Stripe
6868
@field_remappings = {}
6969
end
7070
end
71+
class AgenticCommerceSettings < ::Stripe::StripeObject
72+
class Features < ::Stripe::StripeObject
73+
def self.inner_class_types
74+
@inner_class_types = {}
75+
end
76+
def self.field_remappings
77+
@field_remappings = {}
78+
end
79+
end
80+
# Whether the embedded component is enabled.
81+
sig { returns(T::Boolean) }
82+
def enabled; end
83+
# Attribute for field features
84+
sig { returns(Features) }
85+
def features; end
86+
def self.inner_class_types
87+
@inner_class_types = {features: Features}
88+
end
89+
def self.field_remappings
90+
@field_remappings = {}
91+
end
92+
end
7193
class Balances < ::Stripe::StripeObject
7294
class Features < ::Stripe::StripeObject
7395
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -731,6 +753,9 @@ module Stripe
731753
# Attribute for field tax_settings
732754
sig { returns(TaxSettings) }
733755
def tax_settings; end
756+
# Configuration for the [agentic commerce settings](/connect/supported-embedded-components/agentic-commerce-settings/) embedded component.
757+
sig { returns(T.nilable(AgenticCommerceSettings)) }
758+
def agentic_commerce_settings; end
734759
def self.inner_class_types
735760
@inner_class_types = {
736761
account_management: AccountManagement,
@@ -756,6 +781,7 @@ module Stripe
756781
payouts_list: PayoutsList,
757782
tax_registrations: TaxRegistrations,
758783
tax_settings: TaxSettings,
784+
agentic_commerce_settings: AgenticCommerceSettings,
759785
}
760786
end
761787
def self.field_remappings

0 commit comments

Comments
 (0)