Class CapabilitySettings


  • public class CapabilitySettings
    extends Object
    CapabilitySettings
    • Constructor Detail

      • CapabilitySettings

        public CapabilitySettings()
    • Method Detail

      • getAmountPerIndustry

        public Map<String,​Amount> getAmountPerIndustry()
        The maximum amount a card holder can spend per industry.
        Returns:
        amountPerIndustry
      • setAmountPerIndustry

        public void setAmountPerIndustry​(Map<String,​Amount> amountPerIndustry)
        The maximum amount a card holder can spend per industry.
        Parameters:
        amountPerIndustry -
      • getAuthorizedCardUsers

        public Boolean getAuthorizedCardUsers()
        The number of card holders who can use the card.
        Returns:
        authorizedCardUsers
      • setAuthorizedCardUsers

        public void setAuthorizedCardUsers​(Boolean authorizedCardUsers)
        The number of card holders who can use the card.
        Parameters:
        authorizedCardUsers -
      • getMaxAmount

        public Amount getMaxAmount()
        Get maxAmount
        Returns:
        maxAmount
      • setMaxAmount

        public void setMaxAmount​(Amount maxAmount)
        maxAmount
        Parameters:
        maxAmount -
      • equals

        public boolean equals​(Object o)
        Return true if this CapabilitySettings object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static CapabilitySettings fromJson​(String jsonString)
                                           throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CapabilitySettings given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CapabilitySettings
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CapabilitySettings
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CapabilitySettings to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException