Class PaymentMethod


  • public class PaymentMethod
    extends Object
    PaymentMethod
    • Constructor Detail

      • PaymentMethod

        public PaymentMethod()
    • Method Detail

      • apps

        public PaymentMethod apps​(List<PaymentMethodUPIApps> apps)
        A list of apps for this payment method.
        Parameters:
        apps -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • setApps

        public void setApps​(List<PaymentMethodUPIApps> apps)
        A list of apps for this payment method.
        Parameters:
        apps -
      • brand

        public PaymentMethod brand​(String brand)
        Brand for the selected gift card. For example: plastix, hmclub.
        Parameters:
        brand -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getBrand

        public String getBrand()
        Brand for the selected gift card. For example: plastix, hmclub.
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
        Brand for the selected gift card. For example: plastix, hmclub.
        Parameters:
        brand -
      • brands

        public PaymentMethod brands​(List<String> brands)
        List of possible brands. For example: visa, mc.
        Parameters:
        brands -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getBrands

        public List<String> getBrands()
        List of possible brands. For example: visa, mc.
        Returns:
        brands
      • setBrands

        public void setBrands​(List<String> brands)
        List of possible brands. For example: visa, mc.
        Parameters:
        brands -
      • configuration

        public PaymentMethod configuration​(Map<String,​String> configuration)
        The configuration of the payment method.
        Parameters:
        configuration -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getConfiguration

        public Map<String,​String> getConfiguration()
        The configuration of the payment method.
        Returns:
        configuration
      • setConfiguration

        public void setConfiguration​(Map<String,​String> configuration)
        The configuration of the payment method.
        Parameters:
        configuration -
      • fundingSource

        public PaymentMethod fundingSource​(PaymentMethod.FundingSourceEnum fundingSource)
        The funding source of the payment method.
        Parameters:
        fundingSource -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • setFundingSource

        public void setFundingSource​(PaymentMethod.FundingSourceEnum fundingSource)
        The funding source of the payment method.
        Parameters:
        fundingSource -
      • group

        public PaymentMethod group​(PaymentMethodGroup group)
        group
        Parameters:
        group -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • inputDetails

        @Deprecated
        public PaymentMethod inputDetails​(List<InputDetail> inputDetails)
        Deprecated.
        All input details to be provided to complete the payment with this payment method.
        Parameters:
        inputDetails -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getInputDetails

        @Deprecated
        public List<InputDetail> getInputDetails()
        Deprecated.
        All input details to be provided to complete the payment with this payment method.
        Returns:
        inputDetails
      • setInputDetails

        @Deprecated
        public void setInputDetails​(List<InputDetail> inputDetails)
        Deprecated.
        All input details to be provided to complete the payment with this payment method.
        Parameters:
        inputDetails -
      • issuers

        public PaymentMethod issuers​(List<PaymentMethodIssuer> issuers)
        A list of issuers for this payment method.
        Parameters:
        issuers -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getIssuers

        public List<PaymentMethodIssuer> getIssuers()
        A list of issuers for this payment method.
        Returns:
        issuers
      • setIssuers

        public void setIssuers​(List<PaymentMethodIssuer> issuers)
        A list of issuers for this payment method.
        Parameters:
        issuers -
      • name

        public PaymentMethod name​(String name)
        The displayable name of this payment method.
        Parameters:
        name -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getName

        public String getName()
        The displayable name of this payment method.
        Returns:
        name
      • setName

        public void setName​(String name)
        The displayable name of this payment method.
        Parameters:
        name -
      • type

        public PaymentMethod type​(String type)
        The unique payment method code.
        Parameters:
        type -
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getType

        public String getType()
        The unique payment method code.
        Returns:
        type
      • setType

        public void setType​(String type)
        The unique payment method code.
        Parameters:
        type -
      • equals

        public boolean equals​(Object o)
        Return true if this PaymentMethod object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

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

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