Class ShopperStatement


  • public class ShopperStatement
    extends Object
    ShopperStatement
    • Constructor Detail

      • ShopperStatement

        public ShopperStatement()
    • Method Detail

      • getDoingBusinessAsName

        public String getDoingBusinessAsName()
        The name you want to be shown on the shopper's bank or credit card statement. Can't be all numbers. If a shopper statement is present, this field is required.
        Returns:
        doingBusinessAsName
      • setDoingBusinessAsName

        public void setDoingBusinessAsName​(String doingBusinessAsName)
      • getType

        public ShopperStatement.TypeEnum getType()
        The type of shopperstatement you want to use: fixed, append or dynamic
        Returns:
        type
      • 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 ShopperStatement
      • fromJson

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

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