Package com.adyen.model.management
Class CreateMerchantRequest
- java.lang.Object
-
- com.adyen.model.management.CreateMerchantRequest
-
public class CreateMerchantRequest extends Object
CreateMerchantRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BUSINESS_LINE_IDstatic StringJSON_PROPERTY_COMPANY_IDstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_LEGAL_ENTITY_IDstatic StringJSON_PROPERTY_PRICING_PLANstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SALES_CHANNELS
-
Constructor Summary
Constructors Constructor Description CreateMerchantRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMerchantRequestaddSalesChannelsItem(String salesChannelsItem)CreateMerchantRequestbusinessLineId(String businessLineId)CreateMerchantRequestcompanyId(String companyId)CreateMerchantRequestdescription(String description)booleanequals(Object o)Return true if this CreateMerchantRequest object is equal to o.static CreateMerchantRequestfromJson(String jsonString)Create an instance of CreateMerchantRequest given an JSON stringStringgetBusinessLineId()The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines).StringgetCompanyId()The unique identifier of the company account.StringgetDescription()Your description for the merchant account, maximum 300 characters.StringgetLegalEntityId()The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities).StringgetPricingPlan()Sets the pricing plan for the merchant account.StringgetReference()Your reference for the merchant account.List<String>getSalesChannels()List of sales channels that the merchant will process payments withinthashCode()CreateMerchantRequestlegalEntityId(String legalEntityId)CreateMerchantRequestpricingPlan(String pricingPlan)CreateMerchantRequestreference(String reference)CreateMerchantRequestsalesChannels(List<String> salesChannels)voidsetBusinessLineId(String businessLineId)The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines).voidsetCompanyId(String companyId)The unique identifier of the company account.voidsetDescription(String description)Your description for the merchant account, maximum 300 characters.voidsetLegalEntityId(String legalEntityId)The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities).voidsetPricingPlan(String pricingPlan)Sets the pricing plan for the merchant account.voidsetReference(String reference)Your reference for the merchant account.voidsetSalesChannels(List<String> salesChannels)List of sales channels that the merchant will process payments withStringtoJson()Convert an instance of CreateMerchantRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BUSINESS_LINE_ID
public static final String JSON_PROPERTY_BUSINESS_LINE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPANY_ID
public static final String JSON_PROPERTY_COMPANY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEGAL_ENTITY_ID
public static final String JSON_PROPERTY_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRICING_PLAN
public static final String JSON_PROPERTY_PRICING_PLAN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALES_CHANNELS
public static final String JSON_PROPERTY_SALES_CHANNELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
businessLineId
public CreateMerchantRequest businessLineId(String businessLineId)
-
getBusinessLineId
public String getBusinessLineId()
The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration.- Returns:
- businessLineId
-
setBusinessLineId
public void setBusinessLineId(String businessLineId)
The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration.- Parameters:
businessLineId-
-
companyId
public CreateMerchantRequest companyId(String companyId)
-
getCompanyId
public String getCompanyId()
The unique identifier of the company account.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
The unique identifier of the company account.- Parameters:
companyId-
-
description
public CreateMerchantRequest description(String description)
-
getDescription
public String getDescription()
Your description for the merchant account, maximum 300 characters.- Returns:
- description
-
setDescription
public void setDescription(String description)
Your description for the merchant account, maximum 300 characters.- Parameters:
description-
-
legalEntityId
public CreateMerchantRequest legalEntityId(String legalEntityId)
-
getLegalEntityId
public String getLegalEntityId()
The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration.- Returns:
- legalEntityId
-
setLegalEntityId
public void setLegalEntityId(String legalEntityId)
The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration.- Parameters:
legalEntityId-
-
pricingPlan
public CreateMerchantRequest pricingPlan(String pricingPlan)
-
getPricingPlan
public String getPricingPlan()
Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use.- Returns:
- pricingPlan
-
setPricingPlan
public void setPricingPlan(String pricingPlan)
Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use.- Parameters:
pricingPlan-
-
reference
public CreateMerchantRequest reference(String reference)
-
getReference
public String getReference()
Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account.- Parameters:
reference-
-
salesChannels
public CreateMerchantRequest salesChannels(List<String> salesChannels)
-
addSalesChannelsItem
public CreateMerchantRequest addSalesChannelsItem(String salesChannelsItem)
-
getSalesChannels
public List<String> getSalesChannels()
List of sales channels that the merchant will process payments with- Returns:
- salesChannels
-
setSalesChannels
public void setSalesChannels(List<String> salesChannels)
List of sales channels that the merchant will process payments with- Parameters:
salesChannels-
-
equals
public boolean equals(Object o)
Return true if this CreateMerchantRequest object is equal to o.
-
fromJson
public static CreateMerchantRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateMerchantRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateMerchantRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateMerchantRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateMerchantRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-