Class: Stripe::Checkout::SessionCreateParams::BrandingSettings::Icon
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::BrandingSettings::Icon
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
The ID of a [File upload](stripe.com/docs/api/files) representing the icon.
-
#type ⇒ Object
The type of image for the icon.
-
#url ⇒ Object
The URL of the image.
Instance Method Summary collapse
-
#initialize(file: nil, type: nil, url: nil) ⇒ Icon
constructor
A new instance of Icon.
Methods inherited from RequestParams
Constructor Details
#initialize(file: nil, type: nil, url: nil) ⇒ Icon
72 73 74 75 76 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 72 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](stripe.com/docs/api/files) representing the icon. Purpose must be ‘business_icon`. Required if `type` is `file` and disallowed otherwise.
66 67 68 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 66 def file @file end |
#type ⇒ Object
The type of image for the icon. Must be one of ‘file` or `url`.
68 69 70 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 68 def type @type end |
#url ⇒ Object
The URL of the image. Required if ‘type` is `url` and disallowed otherwise.
70 71 72 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 70 def url @url end |