target.apidocs.com.google.api.services.content.model.TestOrderPaymentMethod.html Maven / Gradle / Ivy
TestOrderPaymentMethod (Content API for Shopping v2-rev20190308-1.26.0)
com.google.api.services.content.model
Class TestOrderPaymentMethod
- 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.TestOrderPaymentMethod
-
public final class TestOrderPaymentMethod
extends com.google.api.client.json.GenericJson
Model definition for TestOrderPaymentMethod.
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
TestOrderPaymentMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TestOrderPaymentMethod
clone()
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
getPredefinedBillingAddress()
The billing address.
String
getType()
The type of instrument.
TestOrderPaymentMethod
set(String fieldName,
Object value)
TestOrderPaymentMethod
setExpirationMonth(Integer expirationMonth)
The card expiration month (January = 1, February = 2 etc.).
TestOrderPaymentMethod
setExpirationYear(Integer expirationYear)
The card expiration year (4-digit, e.g.
TestOrderPaymentMethod
setLastFourDigits(String lastFourDigits)
The last four digits of the card number.
TestOrderPaymentMethod
setPredefinedBillingAddress(String predefinedBillingAddress)
The billing address.
TestOrderPaymentMethod
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
-
getExpirationMonth
public Integer getExpirationMonth()
The card expiration month (January = 1, February = 2 etc.).
- Returns:
- value or
null
for none
-
setExpirationMonth
public TestOrderPaymentMethod 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 TestOrderPaymentMethod 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 TestOrderPaymentMethod setLastFourDigits(String lastFourDigits)
The last four digits of the card number.
- Parameters:
lastFourDigits
- lastFourDigits or null
for none
-
getPredefinedBillingAddress
public String getPredefinedBillingAddress()
The billing address.
- Returns:
- value or
null
for none
-
setPredefinedBillingAddress
public TestOrderPaymentMethod setPredefinedBillingAddress(String predefinedBillingAddress)
The billing address.
- Parameters:
predefinedBillingAddress
- predefinedBillingAddress or null
for none
-
getType
public String getType()
The type of instrument. Note that real orders might have different values than the four values
accepted by createTestOrder.
- Returns:
- value or
null
for none
-
setType
public TestOrderPaymentMethod setType(String type)
The type of instrument. Note that real orders might have different values than the four values
accepted by createTestOrder.
- Parameters:
type
- type or null
for none
-
set
public TestOrderPaymentMethod set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TestOrderPaymentMethod 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