Package model

Class CreateSettlementRequest

java.lang.Object
model.CreateSettlementRequest

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

  • Constructor Details

    • CreateSettlementRequest

      public CreateSettlementRequest()
  • Method Details

    • currency

      public CreateSettlementRequest currency(Currency currency)
    • getCurrency

      @Nullable public Currency getCurrency()
      Get currency
      Returns:
      currency
    • setCurrency

      public void setCurrency(Currency currency)
    • processor

      public CreateSettlementRequest processor(String processor)
    • getProcessor

      @Nonnull public String getProcessor()
      If the `Application` has more than one associated `processor`, it's required when creating `settlements` to include the `processor` (e.g. DUMMY_V1).
      Returns:
      processor
    • setProcessor

      public void setProcessor(String processor)
    • merchantId

      public CreateSettlementRequest merchantId(String merchantId)
    • getMerchantId

      @Nonnull public String getMerchantId()
      If the `Application` has more than one associated `processor`, this field is required.
      Returns:
      merchantId
    • setMerchantId

      public void setMerchantId(String merchantId)
    • tags

    • putTagsItem

      public CreateSettlementRequest putTagsItem(String key, String tagsItem)
    • getTags

      @Nullable public Map<String,String> getTags()
      Key value pair for annotating custom meta data (e.g. order numbers).
      Returns:
      tags
    • setTags

      public void setTags(Map<String,String> tags)
    • 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 CreateSettlementRequest
    • fromJson

      public static CreateSettlementRequest fromJson(String jsonString) throws IOException
      Create an instance of CreateSettlementRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CreateSettlementRequest
      Throws:
      IOException - if the JSON string is invalid with respect to CreateSettlementRequest
    • toJson

      public String toJson()
      Convert an instance of CreateSettlementRequest to an JSON string
      Returns:
      JSON string