Class: Stripe::Checkout::SessionCreateParams::BrandingSettings::Icon

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(file: nil, type: nil, url: nil) ⇒ Icon

Returns a new instance of Icon.



94
95
96
97
98
# File 'lib/stripe/params/checkout/session_create_params.rb', line 94

def initialize(file: nil, type: nil, url: nil)
  @file = file
  @type = type
  @url = url
end

Instance Attribute Details

#fileObject

The ID of a File upload representing the icon. Purpose must be business_icon. Required if type is file and disallowed otherwise.



88
89
90
# File 'lib/stripe/params/checkout/session_create_params.rb', line 88

def file
  @file
end

#typeObject

The type of image for the icon. Must be one of file or url.



90
91
92
# File 'lib/stripe/params/checkout/session_create_params.rb', line 90

def type
  @type
end

#urlObject

The URL of the image. Required if type is url and disallowed otherwise.



92
93
94
# File 'lib/stripe/params/checkout/session_create_params.rb', line 92

def url
  @url
end