Package com.adyen.model.management
Class Company
- java.lang.Object
-
- com.adyen.model.management.Company
-
public class Company extends Object
Company
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATA_CENTERSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LINKSstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_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)Return true if this Company object is equal to 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)List of available data centers.voidsetDescription(String description)Your description for the company account, maximum 300 charactersvoidsetId(String id)The unique identifier of the company account.voidsetLinks(CompanyLinks links)linksvoidsetName(String name)The legal or trading name of the company.voidsetReference(String reference)Your reference to the accountvoidsetStatus(String status)The status of the company account.Companystatus(String status)StringtoJson()Convert an instance of Company to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATA_CENTERS
public static final String JSON_PROPERTY_DATA_CENTERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_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)
links- Parameters:
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)
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.- Parameters:
dataCenters-
-
getDescription
public String getDescription()
Your description for the company account, maximum 300 characters- Returns:
- description
-
setDescription
public void setDescription(String description)
Your description for the company account, maximum 300 characters- Parameters:
description-
-
getId
public String getId()
The unique identifier of the company account.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the company account.- Parameters:
id-
-
getName
public String getName()
The legal or trading name of the company.- Returns:
- name
-
setName
public void setName(String name)
The legal or trading name of the company.- Parameters:
name-
-
getReference
public String getReference()
Your reference to the account- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference to the account- Parameters:
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)
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.- Parameters:
status-
-
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
-
-