Package model
Class CreatePaymentInstrumentCard
java.lang.Object
model.CreatePaymentInstrumentCard
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-23T14:43:42.612114-07:00[America/Los_Angeles]")
public class CreatePaymentInstrumentCard
extends Object
CreatePaymentInstrumentCard
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of `Payment Instrument`. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpirationMonth(Long expirationMonth) expirationYear(Long expirationYear) static CreatePaymentInstrumentCardCreate an instance of CreatePaymentInstrumentCard given an JSON stringGet addressThe 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 thirdPartyTokengetType()Type of `Payment Instrument`.inthashCode()putTagsItem(String key, String tagsItem) securityCode(String securityCode) voidvoidsetExpirationMonth(Long expirationMonth) voidsetExpirationYear(Long expirationYear) voidsetIdentity(String identity) voidvoidvoidsetSecurityCode(String securityCode) voidvoidsetThirdPartyToken(String thirdPartyToken) voidthirdPartyToken(String thirdPartyToken) toJson()Convert an instance of CreatePaymentInstrumentCard 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreatePaymentInstrumentCard
public CreatePaymentInstrumentCard()
-
-
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
-
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 CreatePaymentInstrumentCard
-
fromJson
Create an instance of CreatePaymentInstrumentCard given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePaymentInstrumentCard
- Throws:
IOException- if the JSON string is invalid with respect to CreatePaymentInstrumentCard
-
toJson
Convert an instance of CreatePaymentInstrumentCard to an JSON string- Returns:
- JSON string
-