Class: Worldline::Connect::SDK::V1::Merchant::Disputes::UploadFileRequest

Inherits:
Communication::MultipartFormDataRequest show all
Defined in:
lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb

Overview

Multipart/form-data parameters for Upload File

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileWorldline::Connect::SDK::Domain::UploadableFile

Returns the current value of file.

Returns:



17
18
19
# File 'lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb', line 17

def file
  @file
end

Instance Method Details

#to_multipart_form_data_objectWorldline::Connect::SDK::Communication::MultipartFormDataObject

Returns representing the attributes of this class.

Returns:



22
23
24
25
26
# File 'lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb', line 22

def to_multipart_form_data_object
  result = MultipartFormDataObject.new
  result.add_file('file', @file) unless @file.nil?
  result
end