Class StoredValueResult


  • public class StoredValueResult
    extends Object
    For each stored value card loaded or reloaded, in the StoredValue response message. Result of loading/reloading a stored value card.
    • Constructor Detail

      • StoredValueResult

        public StoredValueResult()
    • Method Detail

      • storedValueTransactionType

        public StoredValueResult storedValueTransactionType​(StoredValueTransactionType storedValueTransactionType)
        storedValueTransactionType
        Parameters:
        storedValueTransactionType -
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getStoredValueTransactionType

        public StoredValueTransactionType getStoredValueTransactionType()
        Get storedValueTransactionType
        Returns:
        storedValueTransactionType
      • setStoredValueTransactionType

        public void setStoredValueTransactionType​(StoredValueTransactionType storedValueTransactionType)
        storedValueTransactionType
        Parameters:
        storedValueTransactionType -
      • productCode

        public StoredValueResult productCode​(Integer productCode)
        Product code of item purchased with the transaction. Copy.
        Parameters:
        productCode - Product code of item purchased with the transaction. Copy.
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getProductCode

        public Integer getProductCode()
        Product code of item purchased with the transaction. Copy. minimum: 1 maximum: 20
        Returns:
        productCode Product code of item purchased with the transaction. Copy.
      • setProductCode

        public void setProductCode​(Integer productCode)
        Product code of item purchased with the transaction. Copy.
        Parameters:
        productCode - Product code of item purchased with the transaction. Copy.
      • eanUpc

        public StoredValueResult eanUpc​(Integer eanUpc)
        Standard product code of item purchased with the transaction. Copy.
        Parameters:
        eanUpc - Standard product code of item purchased with the transaction. Copy.
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getEanUpc

        public Integer getEanUpc()
        Standard product code of item purchased with the transaction. Copy.
        Returns:
        eanUpc Standard product code of item purchased with the transaction. Copy.
      • setEanUpc

        public void setEanUpc​(Integer eanUpc)
        Standard product code of item purchased with the transaction. Copy.
        Parameters:
        eanUpc - Standard product code of item purchased with the transaction. Copy.
      • itemAmount

        public StoredValueResult itemAmount​(BigDecimal itemAmount)
        Total amount of the item line.
        Parameters:
        itemAmount - Total amount of the item line.
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getItemAmount

        public BigDecimal getItemAmount()
        Total amount of the item line. minimum: 0.0 maximum: 99999999.999999
        Returns:
        itemAmount Total amount of the item line.
      • setItemAmount

        public void setItemAmount​(BigDecimal itemAmount)
        Total amount of the item line.
        Parameters:
        itemAmount - Total amount of the item line.
      • currency

        public StoredValueResult currency​(String currency)
        Currency of a monetary amount. Copy.
        Parameters:
        currency - Currency of a monetary amount. Copy.
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getCurrency

        public String getCurrency()
        Currency of a monetary amount. Copy.
        Returns:
        currency Currency of a monetary amount. Copy.
      • setCurrency

        public void setCurrency​(String currency)
        Currency of a monetary amount. Copy.
        Parameters:
        currency - Currency of a monetary amount. Copy.
      • storedValueAccountStatus

        public StoredValueResult storedValueAccountStatus​(StoredValueAccountStatus storedValueAccountStatus)
        storedValueAccountStatus
        Parameters:
        storedValueAccountStatus -
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getStoredValueAccountStatus

        public StoredValueAccountStatus getStoredValueAccountStatus()
        Get storedValueAccountStatus
        Returns:
        storedValueAccountStatus
      • setStoredValueAccountStatus

        public void setStoredValueAccountStatus​(StoredValueAccountStatus storedValueAccountStatus)
        storedValueAccountStatus
        Parameters:
        storedValueAccountStatus -
      • hostTransactionID

        public StoredValueResult hostTransactionID​(TransactionIDType hostTransactionID)
        hostTransactionID
        Parameters:
        hostTransactionID -
        Returns:
        the current StoredValueResult instance, allowing for method chaining
      • getHostTransactionID

        public TransactionIDType getHostTransactionID()
        Get hostTransactionID
        Returns:
        hostTransactionID
      • setHostTransactionID

        public void setHostTransactionID​(TransactionIDType hostTransactionID)
        hostTransactionID
        Parameters:
        hostTransactionID -
      • includeNullValues

        public StoredValueResult 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 StoredValueResult 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 StoredValueResult fromJson​(String jsonString)
                                          throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of StoredValueResult given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of StoredValueResult
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to StoredValueResult
      • toJson

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