Class StoreAndForward


  • public class StoreAndForward
    extends Object
    StoreAndForward
    • Constructor Detail

      • StoreAndForward

        public StoreAndForward()
    • Method Detail

      • maxAmount

        public StoreAndForward maxAmount​(List<MinorUnitsMonetaryValue> maxAmount)
        The maximum amount that the terminal accepts for a single store-and-forward payment.
        Parameters:
        maxAmount - The maximum amount that the terminal accepts for a single store-and-forward payment.
        Returns:
        the current StoreAndForward instance, allowing for method chaining
      • getMaxAmount

        public List<MinorUnitsMonetaryValue> getMaxAmount()
        The maximum amount that the terminal accepts for a single store-and-forward payment.
        Returns:
        maxAmount The maximum amount that the terminal accepts for a single store-and-forward payment.
      • setMaxAmount

        public void setMaxAmount​(List<MinorUnitsMonetaryValue> maxAmount)
        The maximum amount that the terminal accepts for a single store-and-forward payment.
        Parameters:
        maxAmount - The maximum amount that the terminal accepts for a single store-and-forward payment.
      • maxPayments

        public StoreAndForward maxPayments​(Integer maxPayments)
        The maximum number of store-and-forward transactions per terminal that you can process while offline.
        Parameters:
        maxPayments - The maximum number of store-and-forward transactions per terminal that you can process while offline.
        Returns:
        the current StoreAndForward instance, allowing for method chaining
      • getMaxPayments

        public Integer getMaxPayments()
        The maximum number of store-and-forward transactions per terminal that you can process while offline.
        Returns:
        maxPayments The maximum number of store-and-forward transactions per terminal that you can process while offline.
      • setMaxPayments

        public void setMaxPayments​(Integer maxPayments)
        The maximum number of store-and-forward transactions per terminal that you can process while offline.
        Parameters:
        maxPayments - The maximum number of store-and-forward transactions per terminal that you can process while offline.
      • supportedCardTypes

        public StoreAndForward supportedCardTypes​(SupportedCardTypes supportedCardTypes)
        supportedCardTypes
        Parameters:
        supportedCardTypes -
        Returns:
        the current StoreAndForward instance, allowing for method chaining
      • getSupportedCardTypes

        public SupportedCardTypes getSupportedCardTypes()
        Get supportedCardTypes
        Returns:
        supportedCardTypes
      • setSupportedCardTypes

        public void setSupportedCardTypes​(SupportedCardTypes supportedCardTypes)
        supportedCardTypes
        Parameters:
        supportedCardTypes -
      • includeNullValues

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

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