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 - A list of apps for this payment method.
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getApps

        public List<PaymentMethodUPIApps> getApps()
        A list of apps for this payment method.
        Returns:
        apps A list of apps for this payment method.
      • setApps

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

        public PaymentMethod brand​(String brand)
        Brand for the selected gift card. For example: plastix, hmclub.
        Parameters:
        brand - Brand for the selected gift card. For example: plastix, hmclub.
        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 Brand for the selected gift card. For example: plastix, hmclub.
      • setBrand

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

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

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

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

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

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

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

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

        public PaymentMethod.FundingSourceEnum getFundingSource()
        The funding source of the payment method.
        Returns:
        fundingSource The funding source of the payment method.
      • setFundingSource

        public void setFundingSource​(PaymentMethod.FundingSourceEnum fundingSource)
        The funding source of the payment method.
        Parameters:
        fundingSource - The funding source of the payment method.
      • 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 - All input details to be provided to complete the payment with this payment method.
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getInputDetails

        @Deprecated
        public List<InputDetail> getInputDetails()
        Deprecated.
        // deprecated
        All input details to be provided to complete the payment with this payment method.
        Returns:
        inputDetails All input details to be provided to complete the payment with this payment method.
      • 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 - All input details to be provided to complete the payment with this payment method.
      • issuers

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

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

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

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

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

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

        public PaymentMethod promoted​(Boolean promoted)
        Indicates whether this payment method should be promoted or not.
        Parameters:
        promoted - Indicates whether this payment method should be promoted or not.
        Returns:
        the current PaymentMethod instance, allowing for method chaining
      • getPromoted

        public Boolean getPromoted()
        Indicates whether this payment method should be promoted or not.
        Returns:
        promoted Indicates whether this payment method should be promoted or not.
      • setPromoted

        public void setPromoted​(Boolean promoted)
        Indicates whether this payment method should be promoted or not.
        Parameters:
        promoted - Indicates whether this payment method should be promoted or not.
      • type

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

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

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

        public PaymentMethod 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 PaymentMethod 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 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