Class: Stripe::SourceUpdateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/source_update_params.rb

Defined Under Namespace

Classes: Mandate, Owner, SourceOrder

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, expand: nil, mandate: nil, metadata: nil, owner: nil, source_order: nil) ⇒ SourceUpdateParams

Returns a new instance of SourceUpdateParams.



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# File 'lib/stripe/params/source_update_params.rb', line 243

def initialize(
  amount: nil,
  expand: nil,
  mandate: nil,
  metadata: nil,
  owner: nil,
  source_order: nil
)
  @amount = amount
  @expand = expand
  @mandate = mandate
  @metadata = 
  @owner = owner
  @source_order = source_order
end

Instance Attribute Details

#amountObject

Amount associated with the source.



231
232
233
# File 'lib/stripe/params/source_update_params.rb', line 231

def amount
  @amount
end

#expandObject

Specifies which fields in the response should be expanded.



233
234
235
# File 'lib/stripe/params/source_update_params.rb', line 233

def expand
  @expand
end

#mandateObject

Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status.



235
236
237
# File 'lib/stripe/params/source_update_params.rb', line 235

def mandate
  @mandate
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`.



237
238
239
# File 'lib/stripe/params/source_update_params.rb', line 237

def 
  @metadata
end

#ownerObject

Information about the owner of the payment instrument that may be used or required by particular source types.



239
240
241
# File 'lib/stripe/params/source_update_params.rb', line 239

def owner
  @owner
end

#source_orderObject

Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.



241
242
243
# File 'lib/stripe/params/source_update_params.rb', line 241

def source_order
  @source_order
end