Package model
Class UpdatePaymentInstrumentRequest
java.lang.Object
model.UpdatePaymentInstrumentRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class UpdatePaymentInstrumentRequest
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of bank account.static classstatic enumType of `Payment Instrument`. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountNumber(String accountNumber) booleanexpirationMonth(Long expirationMonth) expirationYear(Long expirationYear) Create an instance of UpdatePaymentInstrumentRequest given an JSON stringThe bank account number (no dashes in between numbers).The type of bank account.Get addressThe routing number of the bank account.3 Letter country code (e.g.The expiration month of the card (e.g.The 4-digit expiration year of the card.The ID of the resource.getName()The name of the bank account or card owner.The card or bank account number (no dashes in between numbers).The 3-4 digit security code of the card (i.e.getTags()Key value pair for annotating custom meta data (e.g.Get thirdPartyTokengetToken()Get tokengetType()Type of `Payment Instrument`.inthashCode()putTagsItem(String key, String tagsItem) securityCode(String securityCode) voidsetAccountNumber(String accountNumber) voidvoidvoidsetBankCode(String bankCode) voidsetCountry(String country) voidsetExpirationMonth(Long expirationMonth) voidsetExpirationYear(Long expirationYear) voidsetIdentity(String identity) voidvoidvoidsetSecurityCode(String securityCode) voidvoidsetThirdPartyToken(String thirdPartyToken) voidvoidthirdPartyToken(String thirdPartyToken) toJson()Convert an instance of UpdatePaymentInstrumentRequest to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EXPIRATION_YEAR
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_NUMBER
- See Also:
-
SERIALIZED_NAME_EXPIRATION_MONTH
- See Also:
-
SERIALIZED_NAME_ADDRESS
- See Also:
-
SERIALIZED_NAME_SECURITY_CODE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_THIRD_PARTY_TOKEN
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
-
SERIALIZED_NAME_BANK_CODE
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_TOKEN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdatePaymentInstrumentRequest
public UpdatePaymentInstrumentRequest()
-
-
Method Details
-
name
-
getName
The name of the bank account or card owner.- Returns:
- name
-
setName
-
expirationYear
-
getExpirationYear
The 4-digit expiration year of the card.- Returns:
- expirationYear
-
setExpirationYear
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
number
-
getNumber
The card or bank account number (no dashes in between numbers).- Returns:
- number
-
setNumber
-
expirationMonth
-
getExpirationMonth
The expiration month of the card (e.g. 12 for December).- Returns:
- expirationMonth
-
setExpirationMonth
-
address
-
getAddress
Get address- Returns:
- address
-
setAddress
-
securityCode
-
getSecurityCode
The 3-4 digit security code of the card (i.e. CVV code).- Returns:
- securityCode
-
setSecurityCode
-
type
-
getType
Type of `Payment Instrument`.- Returns:
- type
-
setType
-
identity
-
getIdentity
The ID of the resource.- Returns:
- identity
-
setIdentity
-
thirdPartyToken
-
getThirdPartyToken
Get thirdPartyToken- Returns:
- thirdPartyToken
-
setThirdPartyToken
-
accountNumber
-
getAccountNumber
The bank account number (no dashes in between numbers).- Returns:
- accountNumber
-
setAccountNumber
-
accountType
public UpdatePaymentInstrumentRequest accountType(UpdatePaymentInstrumentRequest.AccountTypeEnum accountType) -
getAccountType
The type of bank account.- Returns:
- accountType
-
setAccountType
-
bankCode
-
getBankCode
The routing number of the bank account.- Returns:
- bankCode
-
setBankCode
-
country
-
getCountry
3 Letter country code (e.g. USA).- Returns:
- country
-
setCountry
-
token
-
getToken
Get token- Returns:
- token
-
setToken
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates 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 UpdatePaymentInstrumentRequest
-
fromJson
Create an instance of UpdatePaymentInstrumentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdatePaymentInstrumentRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdatePaymentInstrumentRequest
-
toJson
Convert an instance of UpdatePaymentInstrumentRequest to an JSON string- Returns:
- JSON string
-