Package com.adyen.model.checkout
Class Company
- java.lang.Object
-
- com.adyen.model.checkout.Company
-
public class Company extends Object
Company
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_HOMEPAGEstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_REGISTRATION_NUMBERstatic StringJSON_PROPERTY_REGISTRY_LOCATIONstatic StringJSON_PROPERTY_TAX_IDstatic StringJSON_PROPERTY_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)Return true if this Company object is equal to 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)
-
-
-
Field Detail
-
JSON_PROPERTY_HOMEPAGE
public static final String JSON_PROPERTY_HOMEPAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTRATION_NUMBER
public static final String JSON_PROPERTY_REGISTRATION_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTRY_LOCATION
public static final String JSON_PROPERTY_REGISTRY_LOCATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ID
public static final String JSON_PROPERTY_TAX_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_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)
-
equals
public boolean equals(Object o)
Return true if this Company object is equal to o.
-
fromJson
public static Company fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Company given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Company
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Company
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Company to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-