Class Method
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.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.GenericJsonSupported 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
-
-
Constructor Summary
Constructors Constructor Description Method()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Methodclone()java.util.List<java.lang.String>getAllowedCountryCodes()The countries that the payment request is valid in, as ISO-2 country codes.java.lang.StringgetBillingAddressFormat()The billing address format.java.lang.BooleangetBillingAddressRequired()Whether or not the user must provide a billing address.java.lang.StringgetMerchantId()The merchant ID for the supported payment method.java.lang.StringgetMerchantName()The merchant name.java.lang.StringgetPaymentMethod()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.TokenizationDatagetTokenizationData()Tokenization information for the payment request.Methodset(java.lang.String fieldName, java.lang.Object value)MethodsetAllowedCountryCodes(java.util.List<java.lang.String> allowedCountryCodes)The countries that the payment request is valid in, as ISO-2 country codes.MethodsetBillingAddressFormat(java.lang.String billingAddressFormat)The billing address format.MethodsetBillingAddressRequired(java.lang.Boolean billingAddressRequired)Whether or not the user must provide a billing address.MethodsetMerchantId(java.lang.String merchantId)The merchant ID for the supported payment method.MethodsetMerchantName(java.lang.String merchantName)The merchant name.MethodsetPaymentMethod(java.lang.String paymentMethod)The payment method name.MethodsetSupportedCardNetworks(java.util.List<java.lang.String> supportedCardNetworks)The supported card networks.MethodsetSupportedCardTypes(java.util.List<java.lang.String> supportedCardTypes)The supported card types.MethodsetTokenizationData(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
-
-
-
-
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
nullfor 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 ornullfor none
-
getBillingAddressFormat
public java.lang.String getBillingAddressFormat()
The billing address format.- Returns:
- value or
nullfor none
-
setBillingAddressFormat
public Method setBillingAddressFormat(java.lang.String billingAddressFormat)
The billing address format.- Parameters:
billingAddressFormat- billingAddressFormat ornullfor none
-
getBillingAddressRequired
public java.lang.Boolean getBillingAddressRequired()
Whether or not the user must provide a billing address.- Returns:
- value or
nullfor none
-
setBillingAddressRequired
public Method setBillingAddressRequired(java.lang.Boolean billingAddressRequired)
Whether or not the user must provide a billing address.- Parameters:
billingAddressRequired- billingAddressRequired ornullfor none
-
getMerchantId
public java.lang.String getMerchantId()
The merchant ID for the supported payment method.- Returns:
- value or
nullfor none
-
setMerchantId
public Method setMerchantId(java.lang.String merchantId)
The merchant ID for the supported payment method.- Parameters:
merchantId- merchantId ornullfor none
-
getMerchantName
public java.lang.String getMerchantName()
The merchant name.- Returns:
- value or
nullfor none
-
setMerchantName
public Method setMerchantName(java.lang.String merchantName)
The merchant name.- Parameters:
merchantName- merchantName ornullfor 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
nullfor 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 ornullfor none
-
getSupportedCardNetworks
public java.util.List<java.lang.String> getSupportedCardNetworks()
The supported card networks. For example, `["MASTERCARD", "VISA", "DISCOVER"]`.- Returns:
- value or
nullfor none
-
setSupportedCardNetworks
public Method setSupportedCardNetworks(java.util.List<java.lang.String> supportedCardNetworks)
The supported card networks. For example, `["MASTERCARD", "VISA", "DISCOVER"]`.- Parameters:
supportedCardNetworks- supportedCardNetworks ornullfor none
-
getSupportedCardTypes
public java.util.List<java.lang.String> getSupportedCardTypes()
The supported card types. For example, `["CARD", "TOKENIZED_CARD"]`.- Returns:
- value or
nullfor none
-
setSupportedCardTypes
public Method setSupportedCardTypes(java.util.List<java.lang.String> supportedCardTypes)
The supported card types. For example, `["CARD", "TOKENIZED_CARD"]`.- Parameters:
supportedCardTypes- supportedCardTypes ornullfor none
-
getTokenizationData
public TokenizationData getTokenizationData()
Tokenization information for the payment request.- Returns:
- value or
nullfor none
-
setTokenizationData
public Method setTokenizationData(TokenizationData tokenizationData)
Tokenization information for the payment request.- Parameters:
tokenizationData- tokenizationData ornullfor none
-
set
public Method set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public Method clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-