Package model
Class CreateInstrumentUpdateRequest
- java.lang.Object
-
- model.CreateInstrumentUpdateRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateInstrumentUpdateRequest extends Object
CreateInstrumentUpdateRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateInstrumentUpdateRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FILEstatic StringSERIALIZED_NAME_REQUEST
-
Constructor Summary
Constructors Constructor Description CreateInstrumentUpdateRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateInstrumentUpdateRequest_file(File _file)booleanequals(Object o)static CreateInstrumentUpdateRequestfromJson(String jsonString)Create an instance of CreateInstrumentUpdateRequest given an JSON stringFilegetFile()The binary contents of the file.StringgetRequest()A JSON string of your request.inthashCode()CreateInstrumentUpdateRequestrequest(String request)voidsetFile(File _file)voidsetRequest(String request)StringtoJson()Convert an instance of CreateInstrumentUpdateRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FILE
public static final String SERIALIZED_NAME_FILE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUEST
public static final String SERIALIZED_NAME_REQUEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
_file
public CreateInstrumentUpdateRequest _file(File _file)
-
setFile
public void setFile(File _file)
-
request
public CreateInstrumentUpdateRequest request(String request)
-
getRequest
@Nullable public String getRequest()
A JSON string of your request. The JSON object needs to contain the following two fields: - `merchant`: ID of the `Merchant` object that you want to associate with the Account Updater batch for your own accounting purposes. You can only associate one `Merchant` to each. - `idemopotency_id`: A randomly generated value that will be associated with this `instrument_update` resource.- Returns:
- request
-
setRequest
public void setRequest(String request)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CreateInstrumentUpdateRequest
-
fromJson
public static CreateInstrumentUpdateRequest fromJson(String jsonString) throws IOException
Create an instance of CreateInstrumentUpdateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateInstrumentUpdateRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateInstrumentUpdateRequest
-
toJson
public String toJson()
Convert an instance of CreateInstrumentUpdateRequest to an JSON string- Returns:
- JSON string
-
-