Class: Stripe::DisputeService::UpdateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/services/dispute_service.rb

Defined Under Namespace

Classes: Evidence

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(evidence: nil, expand: nil, metadata: nil, submit: nil) ⇒ UpdateParams

Returns a new instance of UpdateParams.



363
364
365
366
367
368
# File 'lib/stripe/services/dispute_service.rb', line 363

def initialize(evidence: nil, expand: nil, metadata: nil, submit: nil)
  @evidence = evidence
  @expand = expand
  @metadata = 
  @submit = submit
end

Instance Attribute Details

#evidenceObject

Evidence to upload, to respond to a dispute. Updating any field in the hash will submit all fields in the hash for review. The combined character count of all fields is limited to 150,000.



355
356
357
# File 'lib/stripe/services/dispute_service.rb', line 355

def evidence
  @evidence
end

#expandObject

Specifies which fields in the response should be expanded.



357
358
359
# File 'lib/stripe/services/dispute_service.rb', line 357

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



359
360
361
# File 'lib/stripe/services/dispute_service.rb', line 359

def 
  @metadata
end

#submitObject

Whether to immediately submit evidence to the bank. If ‘false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).



361
362
363
# File 'lib/stripe/services/dispute_service.rb', line 361

def submit
  @submit
end