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.CustomTypeAdapterFactory
-
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_SALES_CHANNELSstatic 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 Modifier and Type Method Description BusinessLineaddSalesChannelsItem(String salesChannelsItem)BusinessLineaddWebDataItem(WebData webDataItem)BusinessLinecapability(String capability)booleanequals(Object o)static BusinessLinefromJson(String jsonString)Create an instance of BusinessLine given an JSON stringStringgetCapability()The capability for which you are creating the business line.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<String>getSalesChannels()A list of channels where goods or services are sold.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)BusinessLinesalesChannels(List<String> salesChannels)voidsetCapability(String capability)voidsetIndustryCode(String industryCode)voidsetLegalEntityId(String legalEntityId)voidsetSalesChannels(List<String> salesChannels)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_SALES_CHANNELS
public static final String SERIALIZED_NAME_SALES_CHANNELS
- 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
public BusinessLine capability(String capability)
-
getCapability
public String getCapability()
The capability for which you are creating the business line. For example, **receivePayments**.- Returns:
- capability
-
setCapability
public void setCapability(String capability)
-
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)
-
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. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**.- Returns:
- salesChannels
-
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 capability 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
-
-