Package model
Class CreatePaymentInstrumentRequestAddress
java.lang.Object
model.CreatePaymentInstrumentRequestAddress
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class CreatePaymentInstrumentRequestAddress
extends Object
The address of the bank account or card owner.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of CreatePaymentInstrumentRequestAddress given an JSON stringgetCity()City (max 20 characters).3 Letter country code (e.g.getLine1()First line of the address (max 35 characters).Zip or Postal code (max 7 characters).2-letter State code.inthashCode()postalCode(String postalCode) voidvoidsetCountry(String country) voidvoidsetPostalCode(String postalCode) voidtoJson()Convert an instance of CreatePaymentInstrumentRequestAddress 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_CITY
- See Also:
-
SERIALIZED_NAME_REGION
- See Also:
-
SERIALIZED_NAME_POSTAL_CODE
- See Also:
-
SERIALIZED_NAME_LINE1
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreatePaymentInstrumentRequestAddress
public CreatePaymentInstrumentRequestAddress()
-
-
Method Details
-
city
-
getCity
City (max 20 characters).- Returns:
- city
-
setCity
-
region
-
getRegion
2-letter State code.- Returns:
- region
-
setRegion
-
postalCode
-
getPostalCode
Zip or Postal code (max 7 characters).- Returns:
- postalCode
-
setPostalCode
-
line1
-
getLine1
First line of the address (max 35 characters).- Returns:
- line1
-
setLine1
-
country
-
getCountry
3 Letter country code (e.g. USA).- Returns:
- country
-
setCountry
-
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 CreatePaymentInstrumentRequestAddress
-
fromJson
Create an instance of CreatePaymentInstrumentRequestAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePaymentInstrumentRequestAddress
- Throws:
IOException- if the JSON string is invalid with respect to CreatePaymentInstrumentRequestAddress
-
toJson
Convert an instance of CreatePaymentInstrumentRequestAddress to an JSON string- Returns:
- JSON string
-