Class: Stripe::BillingPortal::ConfigurationService::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::ConfigurationService::CreateParams
- Defined in:
- lib/stripe/services/billing_portal/configuration_service.rb
Defined Under Namespace
Classes: BusinessProfile, Features, LoginPage
Instance Attribute Summary collapse
-
#business_profile ⇒ Object
The business information shown to customers in the portal.
-
#default_return_url ⇒ Object
The default URL to redirect customers to when they click on the portal’s link to return to your website.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#features ⇒ Object
Information about the features available in the portal.
-
#login_page ⇒ Object
The hosted login page for this configuration.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
Instance Method Summary collapse
-
#initialize(business_profile: nil, default_return_url: nil, expand: nil, features: nil, login_page: nil, metadata: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(business_profile: nil, default_return_url: nil, expand: nil, features: nil, login_page: nil, metadata: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 220 def initialize( business_profile: nil, default_return_url: nil, expand: nil, features: nil, login_page: nil, metadata: nil ) @business_profile = business_profile @default_return_url = default_return_url @expand = @features = features @login_page = login_page @metadata = end |
Instance Attribute Details
#business_profile ⇒ Object
The business information shown to customers in the portal.
208 209 210 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 208 def business_profile @business_profile end |
#default_return_url ⇒ Object
The default URL to redirect customers to when they click on the portal’s link to return to your website. This can be [overriden](stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
210 211 212 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 210 def default_return_url @default_return_url end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
212 213 214 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 212 def @expand end |
#features ⇒ Object
Information about the features available in the portal.
214 215 216 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 214 def features @features end |
#login_page ⇒ Object
The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).
216 217 218 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 216 def login_page @login_page end |
#metadata ⇒ Object
Set of [key-value pairs](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`.
218 219 220 |
# File 'lib/stripe/services/billing_portal/configuration_service.rb', line 218 def @metadata end |