public final class OrderPaymentMethod extends GenericJson
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 Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OrderPaymentMethod() |
Modifier and Type | Method and Description |
---|---|
OrderPaymentMethod |
clone() |
OrderAddress |
getBillingAddress()
The billing address.
|
Integer |
getExpirationMonth()
The card expiration month (January = 1, February = 2 etc.).
|
Integer |
getExpirationYear()
The card expiration year (4-digit, e.g.
|
String |
getLastFourDigits()
The last four digits of the card number.
|
String |
getPhoneNumber()
The billing phone number.
|
String |
getType()
The type of instrument.
|
OrderPaymentMethod |
set(String fieldName,
Object value) |
OrderPaymentMethod |
setBillingAddress(OrderAddress billingAddress)
The billing address.
|
OrderPaymentMethod |
setExpirationMonth(Integer expirationMonth)
The card expiration month (January = 1, February = 2 etc.).
|
OrderPaymentMethod |
setExpirationYear(Integer expirationYear)
The card expiration year (4-digit, e.g.
|
OrderPaymentMethod |
setLastFourDigits(String lastFourDigits)
The last four digits of the card number.
|
OrderPaymentMethod |
setPhoneNumber(String phoneNumber)
The billing phone number.
|
OrderPaymentMethod |
setType(String type)
The type of instrument.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public OrderAddress getBillingAddress()
null
for nonepublic OrderPaymentMethod setBillingAddress(OrderAddress billingAddress)
billingAddress
- billingAddress or null
for nonepublic Integer getExpirationMonth()
null
for nonepublic OrderPaymentMethod setExpirationMonth(Integer expirationMonth)
expirationMonth
- expirationMonth or null
for nonepublic Integer getExpirationYear()
null
for nonepublic OrderPaymentMethod setExpirationYear(Integer expirationYear)
expirationYear
- expirationYear or null
for nonepublic String getLastFourDigits()
null
for nonepublic OrderPaymentMethod setLastFourDigits(String lastFourDigits)
lastFourDigits
- lastFourDigits or null
for nonepublic String getPhoneNumber()
null
for nonepublic OrderPaymentMethod setPhoneNumber(String phoneNumber)
phoneNumber
- phoneNumber or null
for nonepublic String getType()
null
for nonepublic OrderPaymentMethod setType(String type)
type
- type or null
for nonepublic OrderPaymentMethod set(String fieldName, Object value)
set
in class GenericJson
public OrderPaymentMethod clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.