Class Method

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public final class Method
    extends com.google.api.client.json.GenericJson
    Supported payment methods.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.api.client.util.GenericData

        com.google.api.client.util.GenericData.Flags
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Method()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Method clone()  
      java.util.List<java.lang.String> getAllowedCountryCodes()
      The countries that the payment request is valid in, as ISO-2 country codes.
      java.lang.String getBillingAddressFormat()
      The billing address format.
      java.lang.Boolean getBillingAddressRequired()
      Whether or not the user must provide a billing address.
      java.lang.String getMerchantId()
      The merchant ID for the supported payment method.
      java.lang.String getMerchantName()
      The merchant name.
      java.lang.String getPaymentMethod()
      The payment method name.
      java.util.List<java.lang.String> getSupportedCardNetworks()
      The supported card networks.
      java.util.List<java.lang.String> getSupportedCardTypes()
      The supported card types.
      TokenizationData getTokenizationData()
      Tokenization information for the payment request.
      Method set​(java.lang.String fieldName, java.lang.Object value)  
      Method setAllowedCountryCodes​(java.util.List<java.lang.String> allowedCountryCodes)
      The countries that the payment request is valid in, as ISO-2 country codes.
      Method setBillingAddressFormat​(java.lang.String billingAddressFormat)
      The billing address format.
      Method setBillingAddressRequired​(java.lang.Boolean billingAddressRequired)
      Whether or not the user must provide a billing address.
      Method setMerchantId​(java.lang.String merchantId)
      The merchant ID for the supported payment method.
      Method setMerchantName​(java.lang.String merchantName)
      The merchant name.
      Method setPaymentMethod​(java.lang.String paymentMethod)
      The payment method name.
      Method setSupportedCardNetworks​(java.util.List<java.lang.String> supportedCardNetworks)
      The supported card networks.
      Method setSupportedCardTypes​(java.util.List<java.lang.String> supportedCardTypes)
      The supported card types.
      Method setTokenizationData​(TokenizationData tokenizationData)
      Tokenization information for the payment request.
      • Methods inherited from class com.google.api.client.json.GenericJson

        getFactory, setFactory, toPrettyString, toString
      • Methods inherited from class com.google.api.client.util.GenericData

        entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
      • Methods inherited from class java.util.AbstractMap

        clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • Method

        public Method()
    • Method Detail

      • getAllowedCountryCodes

        public java.util.List<java.lang.String> getAllowedCountryCodes()
        The countries that the payment request is valid in, as ISO-2 country codes. For example, `["US", "MX"]`.
        Returns:
        value or null for none
      • setAllowedCountryCodes

        public Method setAllowedCountryCodes​(java.util.List<java.lang.String> allowedCountryCodes)
        The countries that the payment request is valid in, as ISO-2 country codes. For example, `["US", "MX"]`.
        Parameters:
        allowedCountryCodes - allowedCountryCodes or null for none
      • getBillingAddressFormat

        public java.lang.String getBillingAddressFormat()
        The billing address format.
        Returns:
        value or null for none
      • setBillingAddressFormat

        public Method setBillingAddressFormat​(java.lang.String billingAddressFormat)
        The billing address format.
        Parameters:
        billingAddressFormat - billingAddressFormat or null for none
      • getBillingAddressRequired

        public java.lang.Boolean getBillingAddressRequired()
        Whether or not the user must provide a billing address.
        Returns:
        value or null for none
      • setBillingAddressRequired

        public Method setBillingAddressRequired​(java.lang.Boolean billingAddressRequired)
        Whether or not the user must provide a billing address.
        Parameters:
        billingAddressRequired - billingAddressRequired or null for none
      • getMerchantId

        public java.lang.String getMerchantId()
        The merchant ID for the supported payment method.
        Returns:
        value or null for none
      • setMerchantId

        public Method setMerchantId​(java.lang.String merchantId)
        The merchant ID for the supported payment method.
        Parameters:
        merchantId - merchantId or null for none
      • getMerchantName

        public java.lang.String getMerchantName()
        The merchant name.
        Returns:
        value or null for none
      • setMerchantName

        public Method setMerchantName​(java.lang.String merchantName)
        The merchant name.
        Parameters:
        merchantName - merchantName or null for none
      • getPaymentMethod

        public java.lang.String getPaymentMethod()
        The payment method name. You must set this field to `"https://paywith.google.com/pay"`.
        Returns:
        value or null for none
      • setPaymentMethod

        public Method setPaymentMethod​(java.lang.String paymentMethod)
        The payment method name. You must set this field to `"https://paywith.google.com/pay"`.
        Parameters:
        paymentMethod - paymentMethod or null for none
      • getSupportedCardNetworks

        public java.util.List<java.lang.String> getSupportedCardNetworks()
        The supported card networks. For example, `["MASTERCARD", "VISA", "DISCOVER"]`.
        Returns:
        value or null for none
      • setSupportedCardNetworks

        public Method setSupportedCardNetworks​(java.util.List<java.lang.String> supportedCardNetworks)
        The supported card networks. For example, `["MASTERCARD", "VISA", "DISCOVER"]`.
        Parameters:
        supportedCardNetworks - supportedCardNetworks or null for none
      • getSupportedCardTypes

        public java.util.List<java.lang.String> getSupportedCardTypes()
        The supported card types. For example, `["CARD", "TOKENIZED_CARD"]`.
        Returns:
        value or null for none
      • setSupportedCardTypes

        public Method setSupportedCardTypes​(java.util.List<java.lang.String> supportedCardTypes)
        The supported card types. For example, `["CARD", "TOKENIZED_CARD"]`.
        Parameters:
        supportedCardTypes - supportedCardTypes or null for none
      • getTokenizationData

        public TokenizationData getTokenizationData()
        Tokenization information for the payment request.
        Returns:
        value or null for none
      • setTokenizationData

        public Method setTokenizationData​(TokenizationData tokenizationData)
        Tokenization information for the payment request.
        Parameters:
        tokenizationData - tokenizationData or null for none
      • set

        public Method set​(java.lang.String fieldName,
                          java.lang.Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Method clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson