target.apidocs.com.google.api.services.content.model.OrderPaymentMethod.html Maven / Gradle / Ivy
OrderPaymentMethod (Content API for Shopping v2-rev20190308-1.26.0)
com.google.api.services.content.model
Class OrderPaymentMethod
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.OrderPaymentMethod
-
public final class OrderPaymentMethod
extends com.google.api.client.json.GenericJson
Model definition for OrderPaymentMethod.
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
- 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
OrderPaymentMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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
-
-
Method Detail
-
getBillingAddress
public OrderAddress getBillingAddress()
The billing address.
- Returns:
- value or
null
for none
-
setBillingAddress
public OrderPaymentMethod setBillingAddress(OrderAddress billingAddress)
The billing address.
- Parameters:
billingAddress
- billingAddress or null
for none
-
getExpirationMonth
public Integer getExpirationMonth()
The card expiration month (January = 1, February = 2 etc.).
- Returns:
- value or
null
for none
-
setExpirationMonth
public OrderPaymentMethod setExpirationMonth(Integer expirationMonth)
The card expiration month (January = 1, February = 2 etc.).
- Parameters:
expirationMonth
- expirationMonth or null
for none
-
getExpirationYear
public Integer getExpirationYear()
The card expiration year (4-digit, e.g. 2015).
- Returns:
- value or
null
for none
-
setExpirationYear
public OrderPaymentMethod setExpirationYear(Integer expirationYear)
The card expiration year (4-digit, e.g. 2015).
- Parameters:
expirationYear
- expirationYear or null
for none
-
getLastFourDigits
public String getLastFourDigits()
The last four digits of the card number.
- Returns:
- value or
null
for none
-
setLastFourDigits
public OrderPaymentMethod setLastFourDigits(String lastFourDigits)
The last four digits of the card number.
- Parameters:
lastFourDigits
- lastFourDigits or null
for none
-
getPhoneNumber
public String getPhoneNumber()
The billing phone number.
- Returns:
- value or
null
for none
-
setPhoneNumber
public OrderPaymentMethod setPhoneNumber(String phoneNumber)
The billing phone number.
- Parameters:
phoneNumber
- phoneNumber or null
for none
-
getType
public String getType()
The type of instrument.
Acceptable values are: - "AMEX" - "DISCOVER" - "JCB" - "MASTERCARD" - "UNIONPAY" -
"VISA" - ""
- Returns:
- value or
null
for none
-
setType
public OrderPaymentMethod setType(String type)
The type of instrument.
Acceptable values are: - "AMEX" - "DISCOVER" - "JCB" - "MASTERCARD" - "UNIONPAY" -
"VISA" - ""
- Parameters:
type
- type or null
for none
-
set
public OrderPaymentMethod set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OrderPaymentMethod clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy