Class: Stripe::Checkout::SessionCreateParams::BrandingSettings::Logo
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::BrandingSettings::Logo
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
The ID of a File upload representing the logo.
-
#type ⇒ Object
The type of image for the logo.
-
#url ⇒ Object
The URL of the image.
Instance Method Summary collapse
-
#initialize(file: nil, type: nil, url: nil) ⇒ Logo
constructor
A new instance of Logo.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(file: nil, type: nil, url: nil) ⇒ Logo
Returns a new instance of Logo.
109 110 111 112 113 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 109 def initialize(file: nil, type: nil, url: nil) @file = file @type = type @url = url end |
Instance Attribute Details
#file ⇒ Object
The ID of a File upload representing the logo. Purpose must be business_logo. Required if type is file and disallowed otherwise.
103 104 105 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 103 def file @file end |
#type ⇒ Object
The type of image for the logo. Must be one of file or url.
105 106 107 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 105 def type @type end |
#url ⇒ Object
The URL of the image. Required if type is url and disallowed otherwise.
107 108 109 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 107 def url @url end |