Class: Stripe::Checkout::SessionCreateParams::BrandingSettings::Logo

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) ⇒ 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

#fileObject

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

#typeObject

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

#urlObject

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