All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ingenico.connect.gateway.sdk.java.merchant.disputes.UploadFileRequest Maven / Gradle / Ivy

Go to download

SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API

The newest version!
/*
 * This class was auto-generated from the API references found at
 * https://epayments-api.developer-ingenico.com/
 */

package com.ingenico.connect.gateway.sdk.java.merchant.disputes;

import com.ingenico.connect.gateway.sdk.java.MultipartFormDataObject;
import com.ingenico.connect.gateway.sdk.java.MultipartFormDataRequest;
import com.ingenico.connect.gateway.sdk.java.UploadableFile;

/**
 * Multipart/form-data parameters for
 * Upload File
 */
public class UploadFileRequest implements MultipartFormDataRequest {

	private UploadableFile file;

	/**
	 * The file that you will upload as evidence to support a dispute.
	 */
	public UploadableFile getFile() {
		return file;
	}

	/**
	 * The file that you will upload as evidence to support a dispute.
	 */
	public void setFile(UploadableFile value) {
		this.file = value;
	}

	@Override
	public MultipartFormDataObject toMultipartFormDataObject() {
		MultipartFormDataObject result = new MultipartFormDataObject();
		if (file != null) {
			result.addFile("file", file);
		}
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy