Class: Stripe::Checkout::Session::BrandingSettings
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Checkout::Session::BrandingSettings
- Defined in:
- lib/stripe/resources/checkout/session.rb
Defined Under Namespace
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#background_color ⇒ Object
readonly
A hex color value starting with ‘#` representing the background color for the Checkout Session.
-
#border_style ⇒ Object
readonly
The border style for the Checkout Session.
-
#button_color ⇒ Object
readonly
A hex color value starting with ‘#` representing the button color for the Checkout Session.
-
#display_name ⇒ Object
readonly
The display name shown on the Checkout Session.
-
#font_family ⇒ Object
readonly
The font family for the Checkout Session.
-
#icon ⇒ Object
readonly
The icon for the Checkout Session.
-
#logo ⇒ Object
readonly
The logo for the Checkout Session.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#background_color ⇒ Object (readonly)
A hex color value starting with ‘#` representing the background color for the Checkout Session.
144 145 146 |
# File 'lib/stripe/resources/checkout/session.rb', line 144 def background_color @background_color end |
#border_style ⇒ Object (readonly)
The border style for the Checkout Session. Must be one of ‘rounded`, `rectangular`, or `pill`.
146 147 148 |
# File 'lib/stripe/resources/checkout/session.rb', line 146 def border_style @border_style end |
#button_color ⇒ Object (readonly)
A hex color value starting with ‘#` representing the button color for the Checkout Session.
148 149 150 |
# File 'lib/stripe/resources/checkout/session.rb', line 148 def @button_color end |
#display_name ⇒ Object (readonly)
The display name shown on the Checkout Session.
150 151 152 |
# File 'lib/stripe/resources/checkout/session.rb', line 150 def display_name @display_name end |
#font_family ⇒ Object (readonly)
The font family for the Checkout Session. Must be one of the [supported font families](docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
152 153 154 |
# File 'lib/stripe/resources/checkout/session.rb', line 152 def font_family @font_family end |
#icon ⇒ Object (readonly)
The icon for the Checkout Session. You cannot set both ‘logo` and `icon`.
154 155 156 |
# File 'lib/stripe/resources/checkout/session.rb', line 154 def icon @icon end |
#logo ⇒ Object (readonly)
The logo for the Checkout Session. You cannot set both ‘logo` and `icon`.
156 157 158 |
# File 'lib/stripe/resources/checkout/session.rb', line 156 def logo @logo end |
Class Method Details
.field_remappings ⇒ Object
162 163 164 |
# File 'lib/stripe/resources/checkout/session.rb', line 162 def self.field_remappings @field_remappings = {} end |