Class Payment


  • public class Payment
    extends Object
    Payment
    • Field Detail

      • SERIALIZED_NAME_HIDE_MINOR_UNITS_IN_CURRENCIES

        public static final String SERIALIZED_NAME_HIDE_MINOR_UNITS_IN_CURRENCIES
        See Also:
        Constant Field Values
      • openapiRequiredFields

        public static HashSet<String> openapiRequiredFields
    • Constructor Detail

      • Payment

        public Payment()
    • Method Detail

      • hideMinorUnitsInCurrencies

        public Payment hideMinorUnitsInCurrencies​(List<String> hideMinorUnitsInCurrencies)
      • addHideMinorUnitsInCurrenciesItem

        public Payment addHideMinorUnitsInCurrenciesItem​(String hideMinorUnitsInCurrenciesItem)
      • getHideMinorUnitsInCurrencies

        public List<String> getHideMinorUnitsInCurrencies()
        Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
        Returns:
        hideMinorUnitsInCurrencies
      • setHideMinorUnitsInCurrencies

        public void setHideMinorUnitsInCurrencies​(List<String> hideMinorUnitsInCurrencies)
      • 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 Payment
      • fromJson

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

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