Class BusinessLineInfo
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.BusinessLineInfo
-
public class BusinessLineInfo extends Object
BusinessLineInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBusinessLineInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CAPABILITYstatic 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 BusinessLineInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BusinessLineInfoaddSalesChannelsItem(String salesChannelsItem)BusinessLineInfoaddWebDataItem(WebData webDataItem)BusinessLineInfocapability(String capability)booleanequals(Object o)static BusinessLineInfofromJson(String jsonString)Create an instance of BusinessLineInfo given an JSON stringStringgetCapability()The capability for which you are creating 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()BusinessLineInfoindustryCode(String industryCode)BusinessLineInfolegalEntityId(String legalEntityId)BusinessLineInfosalesChannels(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)BusinessLineInfosourceOfFunds(SourceOfFunds sourceOfFunds)StringtoJson()Convert an instance of BusinessLineInfo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundBusinessLineInfowebData(List<WebData> webData)BusinessLineInfowebDataExemption(WebDataExemption webDataExemption)
-
-
-
Field Detail
-
SERIALIZED_NAME_CAPABILITY
public static final String SERIALIZED_NAME_CAPABILITY
- 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
-
-
Method Detail
-
capability
public BusinessLineInfo 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)
-
industryCode
public BusinessLineInfo 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 BusinessLineInfo 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 BusinessLineInfo salesChannels(List<String> salesChannels)
-
addSalesChannelsItem
public BusinessLineInfo 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 BusinessLineInfo sourceOfFunds(SourceOfFunds sourceOfFunds)
-
getSourceOfFunds
public SourceOfFunds getSourceOfFunds()
Get sourceOfFunds- Returns:
- sourceOfFunds
-
setSourceOfFunds
public void setSourceOfFunds(SourceOfFunds sourceOfFunds)
-
webData
public BusinessLineInfo webData(List<WebData> webData)
-
addWebDataItem
public BusinessLineInfo 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 BusinessLineInfo 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 BusinessLineInfo
-
fromJson
public static BusinessLineInfo fromJson(String jsonString) throws IOException
Create an instance of BusinessLineInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BusinessLineInfo
- Throws:
IOException- if the JSON string is invalid with respect to BusinessLineInfo
-
toJson
public String toJson()
Convert an instance of BusinessLineInfo to an JSON string- Returns:
- JSON string
-
-