1: <?php
2: /*
3: * This class was auto-generated from the API references found at
4: * https://apireference.connect.worldline-solutions.com/
5: */
6: namespace Worldline\Connect\Sdk\V1\Merchant\Disputes;
7:
8: use Worldline\Connect\Sdk\Communication\MultipartDataObject;
9: use Worldline\Connect\Sdk\Communication\MultipartFormDataObject;
10: use Worldline\Connect\Sdk\Domain\UploadableFile;
11:
12: /**
13: * Multipart/form-data parameters for Upload File
14: *
15: * @package Worldline\Connect\Sdk\V1\Merchant\Disputes
16: * @link https://apireference.connect.worldline-solutions.com/fileserviceapi/v1/en_US/php/disputes/uploadFile.html Upload File
17: */
18: class UploadFileRequest extends MultipartDataObject
19: {
20: /**
21: * @var UploadableFile
22: */
23: public $file;
24:
25: public function toMultipartFormDataObject()
26: {
27: $result = new MultipartFormDataObject();
28: if (!is_null($this->file)) {
29: $result->addFile("file", $this->file);
30: }
31: return $result;
32: }
33: }
34: