Package com.adyen.model.checkout
Class Company
- java.lang.Object
-
- com.adyen.model.checkout.Company
-
public class Company extends Object
Company
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompany.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HOMEPAGEstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_REGISTRATION_NUMBERstatic StringSERIALIZED_NAME_REGISTRY_LOCATIONstatic StringSERIALIZED_NAME_TAX_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Company()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CompanyfromJson(String jsonString)Create an instance of Company given an JSON stringStringgetHomepage()The company website's home page.StringgetName()The company name.StringgetRegistrationNumber()Registration number of the company.StringgetRegistryLocation()Registry location of the company.StringgetTaxId()Tax ID of the company.StringgetType()The company type.inthashCode()Companyhomepage(String homepage)Companyname(String name)CompanyregistrationNumber(String registrationNumber)CompanyregistryLocation(String registryLocation)voidsetHomepage(String homepage)voidsetName(String name)voidsetRegistrationNumber(String registrationNumber)voidsetRegistryLocation(String registryLocation)voidsetTaxId(String taxId)voidsetType(String type)CompanytaxId(String taxId)StringtoJson()Convert an instance of Company to an JSON stringStringtoString()Companytype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_HOMEPAGE
public static final String SERIALIZED_NAME_HOMEPAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGISTRATION_NUMBER
public static final String SERIALIZED_NAME_REGISTRATION_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGISTRY_LOCATION
public static final String SERIALIZED_NAME_REGISTRY_LOCATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAX_ID
public static final String SERIALIZED_NAME_TAX_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHomepage
public String getHomepage()
The company website's home page.- Returns:
- homepage
-
setHomepage
public void setHomepage(String homepage)
-
getName
public String getName()
The company name.- Returns:
- name
-
setName
public void setName(String name)
-
getRegistrationNumber
public String getRegistrationNumber()
Registration number of the company.- Returns:
- registrationNumber
-
setRegistrationNumber
public void setRegistrationNumber(String registrationNumber)
-
getRegistryLocation
public String getRegistryLocation()
Registry location of the company.- Returns:
- registryLocation
-
setRegistryLocation
public void setRegistryLocation(String registryLocation)
-
getTaxId
public String getTaxId()
Tax ID of the company.- Returns:
- taxId
-
setTaxId
public void setTaxId(String taxId)
-
getType
public String getType()
The company type.- Returns:
- type
-
setType
public void setType(String type)
-
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 Company
-
fromJson
public static Company fromJson(String jsonString) throws IOException
Create an instance of Company given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Company
- Throws:
IOException- if the JSON string is invalid with respect to Company
-
toJson
public String toJson()
Convert an instance of Company to an JSON string- Returns:
- JSON string
-
-