Class CapabilitySettings


  • public class CapabilitySettings
    extends Object
    CapabilitySettings
    • Constructor Detail

      • CapabilitySettings

        public CapabilitySettings()
    • Method Detail

      • amountPerIndustry

        public CapabilitySettings amountPerIndustry​(Map<String,​Amount> amountPerIndustry)
        The maximum amount a card holder can spend per industry.
        Parameters:
        amountPerIndustry - The maximum amount a card holder can spend per industry.
        Returns:
        the current CapabilitySettings instance, allowing for method chaining
      • getAmountPerIndustry

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

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

        public CapabilitySettings authorizedCardUsers​(Boolean authorizedCardUsers)
        The number of card holders who can use the card.
        Parameters:
        authorizedCardUsers - The number of card holders who can use the card.
        Returns:
        the current CapabilitySettings instance, allowing for method chaining
      • getAuthorizedCardUsers

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

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

        public CapabilitySettings fundingSource​(List<CapabilitySettings.FundingSourceEnum> fundingSource)
        The funding source of the card, for example **debit**.
        Parameters:
        fundingSource - The funding source of the card, for example **debit**.
        Returns:
        the current CapabilitySettings instance, allowing for method chaining
      • getFundingSource

        public List<CapabilitySettings.FundingSourceEnum> getFundingSource()
        The funding source of the card, for example **debit**.
        Returns:
        fundingSource The funding source of the card, for example **debit**.
      • setFundingSource

        public void setFundingSource​(List<CapabilitySettings.FundingSourceEnum> fundingSource)
        The funding source of the card, for example **debit**.
        Parameters:
        fundingSource - The funding source of the card, for example **debit**.
      • interval

        public CapabilitySettings interval​(CapabilitySettings.IntervalEnum interval)
        The period when the rule conditions apply.
        Parameters:
        interval - The period when the rule conditions apply.
        Returns:
        the current CapabilitySettings instance, allowing for method chaining
      • getInterval

        public CapabilitySettings.IntervalEnum getInterval()
        The period when the rule conditions apply.
        Returns:
        interval The period when the rule conditions apply.
      • setInterval

        public void setInterval​(CapabilitySettings.IntervalEnum interval)
        The period when the rule conditions apply.
        Parameters:
        interval - The period when the rule conditions apply.
      • maxAmount

        public CapabilitySettings maxAmount​(Amount maxAmount)
        maxAmount
        Parameters:
        maxAmount -
        Returns:
        the current CapabilitySettings instance, allowing for method chaining
      • getMaxAmount

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

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

        public CapabilitySettings includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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