Package model

Class CreateSettlementRequest


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class CreateSettlementRequest
    extends Object
    CreateSettlementRequest
    • Constructor Detail

      • CreateSettlementRequest

        public CreateSettlementRequest()
    • Method Detail

      • getCurrency

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

        public void setCurrency​(Currency currency)
      • getMerchantId

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

        public void setMerchantId​(String merchantId)
      • getProcessor

        @Nullable
        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)
      • getTags

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

        public int hashCode()
        Overrides:
        hashCode 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