Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 49 additions & 53 deletions rbi/stripe/resources/account.rbi

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rbi/stripe/resources/billing/credit_grant.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String])).void
params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, Integer)), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(expand: nil, expires_at: nil, metadata: nil); end
end
Expand Down
56 changes: 27 additions & 29 deletions rbi/stripe/resources/billing_portal/configuration.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BusinessProfile < Stripe::RequestParams
# The messaging shown to customers in the portal.
sig { returns(T.nilable(T.nilable(String))) }
sig { returns(T.nilable(String)) }
attr_accessor :headline
# A link to the business’s publicly available privacy policy.
sig { returns(T.nilable(String)) }
Expand All @@ -215,20 +215,20 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :terms_of_service_url
sig {
params(headline: T.nilable(T.nilable(String)), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
params(headline: T.nilable(String), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
}
def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end
end
class Features < Stripe::RequestParams
class CustomerUpdate < Stripe::RequestParams
# The types of customer updates that are supported. When empty, customers are not updateable.
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :allowed_updates
# Whether the feature is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
sig {
params(allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T::Boolean).void
params(allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T::Boolean).void
}
def initialize(allowed_updates: nil, enabled: nil); end
end
Expand All @@ -252,11 +252,9 @@ module Stripe
sig { returns(T::Boolean) }
attr_accessor :enabled
# Which cancellation reasons will be given as options to the customer.
sig { returns(T.nilable(T.any(String, T::Array[String]))) }
sig { returns(T.any(String, T::Array[String])) }
attr_accessor :options
sig {
params(enabled: T::Boolean, options: T.nilable(T.any(String, T::Array[String]))).void
}
sig { params(enabled: T::Boolean, options: T.any(String, T::Array[String])).void }
def initialize(enabled: nil, options: nil); end
end
# Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer
Expand Down Expand Up @@ -335,14 +333,14 @@ module Stripe
def initialize(conditions: nil); end
end
# The types of subscription updates that are supported. When empty, subscriptions are not updateable.
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_allowed_updates
# Whether the feature is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The list of up to 10 products that support subscription updates.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product]))))
returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product])))
}
attr_accessor :products
# Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
Expand All @@ -354,7 +352,7 @@ module Stripe
}
attr_accessor :schedule_at_period_end
sig {
params(default_allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T::Boolean, products: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product]))), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
params(default_allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T::Boolean, products: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product])), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
}
def initialize(
default_allowed_updates: nil,
Expand Down Expand Up @@ -413,7 +411,7 @@ module Stripe
}
attr_accessor :business_profile
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
sig { returns(T.nilable(T.nilable(String))) }
sig { returns(T.nilable(String)) }
attr_accessor :default_return_url
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
Expand All @@ -428,7 +426,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
params(business_profile: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::BusinessProfile), default_return_url: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), features: ::Stripe::BillingPortal::Configuration::CreateParams::Features, login_page: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::LoginPage), metadata: T.nilable(T::Hash[String, String])).void
params(business_profile: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::BusinessProfile), default_return_url: T.nilable(String), expand: T.nilable(T::Array[String]), features: ::Stripe::BillingPortal::Configuration::CreateParams::Features, login_page: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::LoginPage), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(
business_profile: nil,
Expand All @@ -442,29 +440,29 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class BusinessProfile < Stripe::RequestParams
# The messaging shown to customers in the portal.
sig { returns(T.nilable(T.nilable(String))) }
sig { returns(T.nilable(String)) }
attr_accessor :headline
# A link to the business’s publicly available privacy policy.
sig { returns(T.nilable(T.nilable(String))) }
sig { returns(T.nilable(String)) }
attr_accessor :privacy_policy_url
# A link to the business’s publicly available terms of service.
sig { returns(T.nilable(T.nilable(String))) }
sig { returns(T.nilable(String)) }
attr_accessor :terms_of_service_url
sig {
params(headline: T.nilable(T.nilable(String)), privacy_policy_url: T.nilable(T.nilable(String)), terms_of_service_url: T.nilable(T.nilable(String))).void
params(headline: T.nilable(String), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
}
def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end
end
class Features < Stripe::RequestParams
class CustomerUpdate < Stripe::RequestParams
# The types of customer updates that are supported. When empty, customers are not updateable.
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :allowed_updates
# Whether the feature is enabled.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :enabled
sig {
params(allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T.nilable(T::Boolean)).void
params(allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T.nilable(T::Boolean)).void
}
def initialize(allowed_updates: nil, enabled: nil); end
end
Expand All @@ -488,10 +486,10 @@ module Stripe
sig { returns(T::Boolean) }
attr_accessor :enabled
# Which cancellation reasons will be given as options to the customer.
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :options
sig {
params(enabled: T::Boolean, options: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
params(enabled: T::Boolean, options: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(enabled: nil, options: nil); end
end
Expand Down Expand Up @@ -562,23 +560,23 @@ module Stripe
end
# List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition]))))
returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition])))
}
attr_accessor :conditions
sig {
params(conditions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition])))).void
params(conditions: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition]))).void
}
def initialize(conditions: nil); end
end
# The types of subscription updates that are supported. When empty, subscriptions are not updateable.
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_allowed_updates
# Whether the feature is enabled.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :enabled
# The list of up to 10 products that support subscription updates.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product]))))
returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product])))
}
attr_accessor :products
# Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
Expand All @@ -590,7 +588,7 @@ module Stripe
}
attr_accessor :schedule_at_period_end
sig {
params(default_allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T.nilable(T::Boolean), products: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product]))), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
params(default_allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T.nilable(T::Boolean), products: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product])), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
}
def initialize(
default_allowed_updates: nil,
Expand Down Expand Up @@ -654,7 +652,7 @@ module Stripe
}
attr_accessor :business_profile
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
sig { returns(T.nilable(T.nilable(String))) }
sig { returns(T.nilable(String)) }
attr_accessor :default_return_url
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
Expand All @@ -666,10 +664,10 @@ module Stripe
sig { returns(T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::LoginPage)) }
attr_accessor :login_page
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
params(active: T.nilable(T::Boolean), business_profile: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::BusinessProfile), default_return_url: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features), login_page: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::LoginPage), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
params(active: T.nilable(T::Boolean), business_profile: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::BusinessProfile), default_return_url: T.nilable(String), expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features), login_page: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::LoginPage), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
active: nil,
Expand Down
Loading
Loading