Class UPIPaymentMethod

    • Field Detail

      • JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS

        public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS
        See Also:
        Constant Field Values
    • Constructor Detail

      • UPIPaymentMethod

        public UPIPaymentMethod()
    • Method Detail

      • virtualPaymentAddress

        public UPIPaymentMethod virtualPaymentAddress​(String virtualPaymentAddress)
        virtualPaymentAddress
        Parameters:
        virtualPaymentAddress -
        Returns:
        the current UPIPaymentMethod instance, allowing for method chaining
      • getVirtualPaymentAddress

        public String getVirtualPaymentAddress()
        Get virtualPaymentAddress
        Returns:
        virtualPaymentAddress
      • setVirtualPaymentAddress

        public void setVirtualPaymentAddress​(String virtualPaymentAddress)
        virtualPaymentAddress
        Parameters:
        virtualPaymentAddress -
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
        Overrides:
        setIncludeNullValues in class ShopperIdPaymentMethod
      • fromJson

        public static UPIPaymentMethod fromJson​(String jsonString)
                                         throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of UPIPaymentMethod given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of UPIPaymentMethod
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to UPIPaymentMethod
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of UPIPaymentMethod to an JSON string
        Overrides:
        toJson in class ShopperIdPaymentMethod
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException