Class: Stripe::Checkout::SessionCreateParams::SetupIntentData

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(description: nil, metadata: nil, on_behalf_of: nil) ⇒ SetupIntentData



1917
1918
1919
1920
1921
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1917

def initialize(description: nil, metadata: nil, on_behalf_of: nil)
  @description = description
   = 
  @on_behalf_of = on_behalf_of
end

Instance Attribute Details

#descriptionObject

An arbitrary string attached to the object. Often useful for displaying to users.



1911
1912
1913
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1911

def description
  @description
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



1913
1914
1915
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1913

def 
  
end

#on_behalf_ofObject

The Stripe account for which the setup is intended.



1915
1916
1917
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1915

def on_behalf_of
  @on_behalf_of
end