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

#to_h

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

#fileObject

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

#typeObject

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

#urlObject

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