Class BusinessLine
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.BusinessLine
-
public class BusinessLine extends Object
BusinessLine
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBusinessLine.CustomTypeAdapterFactorystatic classBusinessLine.ServiceEnumThe service for which you are creating the business line.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CAPABILITYstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_INDUSTRY_CODEstatic StringSERIALIZED_NAME_LEGAL_ENTITY_IDstatic StringSERIALIZED_NAME_PROBLEMSstatic StringSERIALIZED_NAME_SALES_CHANNELSstatic StringSERIALIZED_NAME_SERVICEstatic StringSERIALIZED_NAME_SOURCE_OF_FUNDSstatic StringSERIALIZED_NAME_WEB_DATAstatic StringSERIALIZED_NAME_WEB_DATA_EXEMPTION
-
Constructor Summary
Constructors Constructor Description BusinessLine()BusinessLine(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BusinessLineaddProblemsItem(CapabilityProblem problemsItem)BusinessLineaddSalesChannelsItem(String salesChannelsItem)BusinessLineaddWebDataItem(WebData webDataItem)BusinessLinecapability(String capability)Deprecated.booleanequals(Object o)static BusinessLinefromJson(String jsonString)Create an instance of BusinessLine given an JSON stringStringgetCapability()Deprecated.StringgetId()The unique identifier of the business line.StringgetIndustryCode()A code that represents the industry of the legal entity.StringgetLegalEntityId()Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line.List<CapabilityProblem>getProblems()List of the verification errors from capabilities for this supporting entity.List<String>getSalesChannels()A list of channels where goods or services are sold.BusinessLine.ServiceEnumgetService()The service for which you are creating the business line.SourceOfFundsgetSourceOfFunds()Get sourceOfFundsList<WebData>getWebData()List of website URLs where your user's goods or services are sold.WebDataExemptiongetWebDataExemption()Get webDataExemptioninthashCode()BusinessLineindustryCode(String industryCode)BusinessLinelegalEntityId(String legalEntityId)BusinessLineproblems(List<CapabilityProblem> problems)BusinessLinesalesChannels(List<String> salesChannels)BusinessLineservice(BusinessLine.ServiceEnum service)voidsetCapability(String capability)Deprecated.voidsetIndustryCode(String industryCode)voidsetLegalEntityId(String legalEntityId)voidsetProblems(List<CapabilityProblem> problems)voidsetSalesChannels(List<String> salesChannels)voidsetService(BusinessLine.ServiceEnum service)voidsetSourceOfFunds(SourceOfFunds sourceOfFunds)voidsetWebData(List<WebData> webData)voidsetWebDataExemption(WebDataExemption webDataExemption)BusinessLinesourceOfFunds(SourceOfFunds sourceOfFunds)StringtoJson()Convert an instance of BusinessLine to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundBusinessLinewebData(List<WebData> webData)BusinessLinewebDataExemption(WebDataExemption webDataExemption)
-
-
-
Field Detail
-
SERIALIZED_NAME_CAPABILITY
public static final String SERIALIZED_NAME_CAPABILITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INDUSTRY_CODE
public static final String SERIALIZED_NAME_INDUSTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LEGAL_ENTITY_ID
public static final String SERIALIZED_NAME_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROBLEMS
public static final String SERIALIZED_NAME_PROBLEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SALES_CHANNELS
public static final String SERIALIZED_NAME_SALES_CHANNELS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVICE
public static final String SERIALIZED_NAME_SERVICE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE_OF_FUNDS
public static final String SERIALIZED_NAME_SOURCE_OF_FUNDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WEB_DATA
public static final String SERIALIZED_NAME_WEB_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WEB_DATA_EXEMPTION
public static final String SERIALIZED_NAME_WEB_DATA_EXEMPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BusinessLine
public BusinessLine()
-
BusinessLine
public BusinessLine(String id)
-
-
Method Detail
-
capability
@Deprecated public BusinessLine capability(String capability)
Deprecated.
-
getCapability
@Deprecated public String getCapability()
Deprecated.The capability for which you are creating the business line. For example, **receivePayments**.- Returns:
- capability
-
setCapability
@Deprecated public void setCapability(String capability)
Deprecated.
-
getId
public String getId()
The unique identifier of the business line.- Returns:
- id
-
industryCode
public BusinessLine industryCode(String industryCode)
-
getIndustryCode
public String getIndustryCode()
A code that represents the industry of the legal entity. For example, **4431A** for computer software stores.- Returns:
- industryCode
-
setIndustryCode
public void setIndustryCode(String industryCode)
-
legalEntityId
public BusinessLine legalEntityId(String legalEntityId)
-
getLegalEntityId
public String getLegalEntityId()
Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line.- Returns:
- legalEntityId
-
setLegalEntityId
public void setLegalEntityId(String legalEntityId)
-
problems
public BusinessLine problems(List<CapabilityProblem> problems)
-
addProblemsItem
public BusinessLine addProblemsItem(CapabilityProblem problemsItem)
-
getProblems
public List<CapabilityProblem> getProblems()
List of the verification errors from capabilities for this supporting entity.- Returns:
- problems
-
setProblems
public void setProblems(List<CapabilityProblem> problems)
-
salesChannels
public BusinessLine salesChannels(List<String> salesChannels)
-
addSalesChannelsItem
public BusinessLine addSalesChannelsItem(String salesChannelsItem)
-
getSalesChannels
public List<String> getSalesChannels()
A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**.- Returns:
- salesChannels
-
service
public BusinessLine service(BusinessLine.ServiceEnum service)
-
getService
public BusinessLine.ServiceEnum getService()
The service for which you are creating the business line. Possible values:**paymentProcessing**, **issuing**, **banking**- Returns:
- service
-
setService
public void setService(BusinessLine.ServiceEnum service)
-
sourceOfFunds
public BusinessLine sourceOfFunds(SourceOfFunds sourceOfFunds)
-
getSourceOfFunds
public SourceOfFunds getSourceOfFunds()
Get sourceOfFunds- Returns:
- sourceOfFunds
-
setSourceOfFunds
public void setSourceOfFunds(SourceOfFunds sourceOfFunds)
-
webData
public BusinessLine webData(List<WebData> webData)
-
addWebDataItem
public BusinessLine addWebDataItem(WebData webDataItem)
-
getWebData
public List<WebData> getWebData()
List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object.- Returns:
- webData
-
webDataExemption
public BusinessLine webDataExemption(WebDataExemption webDataExemption)
-
getWebDataExemption
public WebDataExemption getWebDataExemption()
Get webDataExemption- Returns:
- webDataExemption
-
setWebDataExemption
public void setWebDataExemption(WebDataExemption webDataExemption)
-
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 BusinessLine
-
fromJson
public static BusinessLine fromJson(String jsonString) throws IOException
Create an instance of BusinessLine given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BusinessLine
- Throws:
IOException- if the JSON string is invalid with respect to BusinessLine
-
toJson
public String toJson()
Convert an instance of BusinessLine to an JSON string- Returns:
- JSON string
-
-