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

#to_h

Constructor Details

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

Returns a new instance of Logo.



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

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](stripe.com/docs/api/files) representing the logo. Purpose must be ‘business_logo`. Required if `type` is `file` and disallowed otherwise.



81
82
83
# File 'lib/stripe/params/checkout/session_create_params.rb', line 81

def file
  @file
end

#typeObject

The type of image for the logo. Must be one of ‘file` or `url`.



83
84
85
# File 'lib/stripe/params/checkout/session_create_params.rb', line 83

def type
  @type
end

#urlObject

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



85
86
87
# File 'lib/stripe/params/checkout/session_create_params.rb', line 85

def url
  @url
end