Class GivexInfo


  • public class GivexInfo
    extends Object
    GivexInfo
    • Constructor Detail

      • GivexInfo

        public GivexInfo()
    • Method Detail

      • currencyCode

        public GivexInfo currencyCode​(String currencyCode)
        The three-character ISO currency code, such as **EUR**.
        Parameters:
        currencyCode - The three-character ISO currency code, such as **EUR**.
        Returns:
        the current GivexInfo instance, allowing for method chaining
      • getCurrencyCode

        public String getCurrencyCode()
        The three-character ISO currency code, such as **EUR**.
        Returns:
        currencyCode The three-character ISO currency code, such as **EUR**.
      • setCurrencyCode

        public void setCurrencyCode​(String currencyCode)
        The three-character ISO currency code, such as **EUR**.
        Parameters:
        currencyCode - The three-character ISO currency code, such as **EUR**.
      • password

        public GivexInfo password​(String password)
        The password provided by the acquirer.
        Parameters:
        password - The password provided by the acquirer.
        Returns:
        the current GivexInfo instance, allowing for method chaining
      • getPassword

        public String getPassword()
        The password provided by the acquirer.
        Returns:
        password The password provided by the acquirer.
      • setPassword

        public void setPassword​(String password)
        The password provided by the acquirer.
        Parameters:
        password - The password provided by the acquirer.
      • paymentFlow

        public GivexInfo paymentFlow​(GivexInfo.PaymentFlowEnum paymentFlow)
        The sales channel used for the payment.
        Parameters:
        paymentFlow - The sales channel used for the payment.
        Returns:
        the current GivexInfo instance, allowing for method chaining
      • getPaymentFlow

        public GivexInfo.PaymentFlowEnum getPaymentFlow()
        The sales channel used for the payment.
        Returns:
        paymentFlow The sales channel used for the payment.
      • setPaymentFlow

        public void setPaymentFlow​(GivexInfo.PaymentFlowEnum paymentFlow)
        The sales channel used for the payment.
        Parameters:
        paymentFlow - The sales channel used for the payment.
      • username

        public GivexInfo username​(String username)
        The username provided by the acquirer.
        Parameters:
        username - The username provided by the acquirer.
        Returns:
        the current GivexInfo instance, allowing for method chaining
      • getUsername

        public String getUsername()
        The username provided by the acquirer.
        Returns:
        username The username provided by the acquirer.
      • setUsername

        public void setUsername​(String username)
        The username provided by the acquirer.
        Parameters:
        username - The username provided by the acquirer.
      • includeNullValues

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

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