Class: Worldline::Connect::SDK::V1::Domain::UploadDisputeFileResponse

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#dispute_idString

Returns the current value of dispute_id.

Returns:

  • (String)

    the current value of dispute_id



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb', line 14

def dispute_id
  @dispute_id
end

#file_idString

Returns the current value of file_id.

Returns:

  • (String)

    the current value of file_id



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb', line 14

def file_id
  @file_id
end

Instance Method Details

#from_hash(hash) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb', line 28

def from_hash(hash)
  super
  if hash.has_key? 'disputeId'
    @dispute_id = hash['disputeId']
  end
  if hash.has_key? 'fileId'
    @file_id = hash['fileId']
  end
end

#to_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
# File 'lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb', line 21

def to_h
  hash = super
  hash['disputeId'] = @dispute_id unless @dispute_id.nil?
  hash['fileId'] = @file_id unless @file_id.nil?
  hash
end