Package model
Class CreatePaymentInstrumentRequest
- java.lang.Object
-
- model.CreatePaymentInstrumentRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreatePaymentInstrumentRequest extends Object
CreatePaymentInstrumentRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreatePaymentInstrumentRequest.AccountTypeEnumThe type of bank account.static classCreatePaymentInstrumentRequest.CustomTypeAdapterFactorystatic classCreatePaymentInstrumentRequest.TypeEnumType of `Payment Instrument`.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_NUMBERstatic StringSERIALIZED_NAME_ACCOUNT_TYPEstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_ATTEMPT_BANK_ACCOUNT_VALIDATION_CHECKstatic StringSERIALIZED_NAME_BANK_CODEstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_EXPIRATION_MONTHstatic StringSERIALIZED_NAME_EXPIRATION_YEARstatic StringSERIALIZED_NAME_IDENTITYstatic StringSERIALIZED_NAME_MERCHANT_IDENTITYstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_NUMBERstatic StringSERIALIZED_NAME_SECURITY_CODEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_THIRD_PARTY_TOKENstatic StringSERIALIZED_NAME_TOKENstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description CreatePaymentInstrumentRequest()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRATION_MONTH
public static final String SERIALIZED_NAME_EXPIRATION_MONTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRATION_YEAR
public static final String SERIALIZED_NAME_EXPIRATION_YEAR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDENTITY
public static final String SERIALIZED_NAME_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER
public static final String SERIALIZED_NAME_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECURITY_CODE
public static final String SERIALIZED_NAME_SECURITY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_THIRD_PARTY_TOKEN
public static final String SERIALIZED_NAME_THIRD_PARTY_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_NUMBER
public static final String SERIALIZED_NAME_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_TYPE
public static final String SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ATTEMPT_BANK_ACCOUNT_VALIDATION_CHECK
public static final String SERIALIZED_NAME_ATTEMPT_BANK_ACCOUNT_VALIDATION_CHECK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BANK_CODE
public static final String SERIALIZED_NAME_BANK_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_IDENTITY
public static final String SERIALIZED_NAME_MERCHANT_IDENTITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public CreatePaymentInstrumentRequest address(CreatePaymentInstrumentRequestAddress address)
-
getAddress
@Nullable public CreatePaymentInstrumentRequestAddress getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(CreatePaymentInstrumentRequestAddress address)
-
expirationMonth
public CreatePaymentInstrumentRequest expirationMonth(Long expirationMonth)
-
getExpirationMonth
@Nullable public Long getExpirationMonth()
The expiration month of the card (e.g. 12 for December).- Returns:
- expirationMonth
-
setExpirationMonth
public void setExpirationMonth(Long expirationMonth)
-
expirationYear
public CreatePaymentInstrumentRequest expirationYear(Long expirationYear)
-
getExpirationYear
@Nullable public Long getExpirationYear()
The 4-digit expiration year of the card.- Returns:
- expirationYear
-
setExpirationYear
public void setExpirationYear(Long expirationYear)
-
identity
public CreatePaymentInstrumentRequest identity(String identity)
-
setIdentity
public void setIdentity(String identity)
-
name
public CreatePaymentInstrumentRequest name(String name)
-
setName
public void setName(String name)
-
number
public CreatePaymentInstrumentRequest number(String number)
-
getNumber
@Nullable public String getNumber()
The card or bank account number (no dashes in between numbers).- Returns:
- number
-
setNumber
public void setNumber(String number)
-
securityCode
public CreatePaymentInstrumentRequest securityCode(String securityCode)
-
getSecurityCode
@Nullable public String getSecurityCode()
The 3-4 digit security code of the card (i.e. CVV code).- Returns:
- securityCode
-
setSecurityCode
public void setSecurityCode(String securityCode)
-
tags
public CreatePaymentInstrumentRequest tags(Map<String,String> tags)
-
putTagsItem
public CreatePaymentInstrumentRequest putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
type
public CreatePaymentInstrumentRequest type(CreatePaymentInstrumentRequest.TypeEnum type)
-
getType
@Nullable public CreatePaymentInstrumentRequest.TypeEnum getType()
Type of `Payment Instrument`.- Returns:
- type
-
setType
public void setType(CreatePaymentInstrumentRequest.TypeEnum type)
-
thirdPartyToken
public CreatePaymentInstrumentRequest thirdPartyToken(String thirdPartyToken)
-
getThirdPartyToken
@Nullable public String getThirdPartyToken()
Stringified token provided by Google. Required to process Google Pay transactions.- Returns:
- thirdPartyToken
-
setThirdPartyToken
public void setThirdPartyToken(String thirdPartyToken)
-
accountNumber
public CreatePaymentInstrumentRequest accountNumber(String accountNumber)
-
getAccountNumber
@Nullable public String getAccountNumber()
The bank account number (no dashes in between numbers).- Returns:
- accountNumber
-
setAccountNumber
public void setAccountNumber(String accountNumber)
-
accountType
public CreatePaymentInstrumentRequest accountType(CreatePaymentInstrumentRequest.AccountTypeEnum accountType)
-
getAccountType
@Nullable public CreatePaymentInstrumentRequest.AccountTypeEnum getAccountType()
The type of bank account.- Returns:
- accountType
-
setAccountType
public void setAccountType(CreatePaymentInstrumentRequest.AccountTypeEnum accountType)
-
attemptBankAccountValidationCheck
public CreatePaymentInstrumentRequest attemptBankAccountValidationCheck(Boolean attemptBankAccountValidationCheck)
-
getAttemptBankAccountValidationCheck
@Nullable public Boolean getAttemptBankAccountValidationCheck()
Set to **true** if you want to request a bank account validation. Default value is **false**.- Returns:
- attemptBankAccountValidationCheck
-
setAttemptBankAccountValidationCheck
public void setAttemptBankAccountValidationCheck(Boolean attemptBankAccountValidationCheck)
-
bankCode
public CreatePaymentInstrumentRequest bankCode(String bankCode)
-
getBankCode
@Nullable public String getBankCode()
The routing number of the bank account.- Returns:
- bankCode
-
setBankCode
public void setBankCode(String bankCode)
-
country
public CreatePaymentInstrumentRequest country(String country)
-
setCountry
public void setCountry(String country)
-
token
public CreatePaymentInstrumentRequest token(String token)
-
getToken
@Nullable public String getToken()
ID of the `Token` that was returned from the tokenization client or hosted fields- Returns:
- token
-
setToken
public void setToken(String token)
-
merchantIdentity
public CreatePaymentInstrumentRequest merchantIdentity(String merchantIdentity)
-
getMerchantIdentity
@Nullable public String getMerchantIdentity()
The `id` of the identity used when registering the business with Google Pay through our registration API.- Returns:
- merchantIdentity
-
setMerchantIdentity
public void setMerchantIdentity(String merchantIdentity)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CreatePaymentInstrumentRequest
-
fromJson
public static CreatePaymentInstrumentRequest fromJson(String jsonString) throws IOException
Create an instance of CreatePaymentInstrumentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePaymentInstrumentRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreatePaymentInstrumentRequest
-
toJson
public String toJson()
Convert an instance of CreatePaymentInstrumentRequest to an JSON string- Returns:
- JSON string
-
-