Package com.adyen.model.management
Class Company
- java.lang.Object
-
- com.adyen.model.management.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_DATA_CENTERSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description Company()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanyaddDataCentersItem(DataCenter dataCentersItem)CompanydataCenters(List<DataCenter> dataCenters)Companydescription(String description)booleanequals(Object o)static CompanyfromJson(String jsonString)Create an instance of Company given an JSON stringList<DataCenter>getDataCenters()List of available data centers.StringgetDescription()Your description for the company account, maximum 300 charactersStringgetId()The unique identifier of the company account.CompanyLinksgetLinks()Get linksStringgetName()The legal or trading name of the company.StringgetReference()Your reference to the accountStringgetStatus()The status of the company account.inthashCode()Companyid(String id)Companylinks(CompanyLinks links)Companyname(String name)Companyreference(String reference)voidsetDataCenters(List<DataCenter> dataCenters)voidsetDescription(String description)voidsetId(String id)voidsetLinks(CompanyLinks links)voidsetName(String name)voidsetReference(String reference)voidsetStatus(String status)Companystatus(String status)StringtoJson()Convert an instance of Company to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA_CENTERS
public static final String SERIALIZED_NAME_DATA_CENTERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public Company links(CompanyLinks links)
-
getLinks
public CompanyLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(CompanyLinks links)
-
dataCenters
public Company dataCenters(List<DataCenter> dataCenters)
-
addDataCentersItem
public Company addDataCentersItem(DataCenter dataCentersItem)
-
getDataCenters
public List<DataCenter> getDataCenters()
List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers.- Returns:
- dataCenters
-
setDataCenters
public void setDataCenters(List<DataCenter> dataCenters)
-
getDescription
public String getDescription()
Your description for the company account, maximum 300 characters- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getId
public String getId()
The unique identifier of the company account.- Returns:
- id
-
setId
public void setId(String id)
-
getName
public String getName()
The legal or trading name of the company.- Returns:
- name
-
setName
public void setName(String name)
-
getReference
public String getReference()
Your reference to the account- Returns:
- reference
-
setReference
public void setReference(String reference)
-
getStatus
public String getStatus()
The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
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
-
-