Package model

Class CreateInstrumentUpdateRequest

java.lang.Object
model.CreateInstrumentUpdateRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class CreateInstrumentUpdateRequest extends Object
CreateInstrumentUpdateRequest
  • Field Details

  • Constructor Details

    • CreateInstrumentUpdateRequest

      public CreateInstrumentUpdateRequest()
  • Method Details

    • _file

      public CreateInstrumentUpdateRequest _file(File _file)
    • getFile

      @Nullable public File getFile()
      The binary contents of the file.
      Returns:
      _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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates 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