Class: Stripe::Checkout::Session::BrandingSettings

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/checkout/session.rb

Defined Under Namespace

Classes: Icon, Logo

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

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_colorObject (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_styleObject (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_colorObject (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
  @button_color
end

#display_nameObject (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_familyObject (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

#iconObject (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

#logoObject (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
end

Class Method Details

.field_remappingsObject



162
163
164
# File 'lib/stripe/resources/checkout/session.rb', line 162

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



158
159
160
# File 'lib/stripe/resources/checkout/session.rb', line 158

def self.inner_class_types
  @inner_class_types = { icon: Icon, logo: Logo }
end