Class: Stripe::Checkout::SessionService::CreateParams::SetupIntentData

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/checkout/session_service.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

Returns a new instance of SetupIntentData.



1727
1728
1729
1730
1731
# File 'lib/stripe/services/checkout/session_service.rb', line 1727

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

Instance Attribute Details

#descriptionObject

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



1721
1722
1723
# File 'lib/stripe/services/checkout/session_service.rb', line 1721

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`.



1723
1724
1725
# File 'lib/stripe/services/checkout/session_service.rb', line 1723

def 
  @metadata
end

#on_behalf_ofObject

The Stripe account for which the setup is intended.



1725
1726
1727
# File 'lib/stripe/services/checkout/session_service.rb', line 1725

def on_behalf_of
  @on_behalf_of
end