Package com.adyen.model.management
Class CreateMerchantRequest
- java.lang.Object
-
- com.adyen.model.management.CreateMerchantRequest
-
public class CreateMerchantRequest extends Object
CreateMerchantRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateMerchantRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BUSINESS_LINE_IDstatic StringSERIALIZED_NAME_COMPANY_IDstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_LEGAL_ENTITY_IDstatic StringSERIALIZED_NAME_PRICING_PLANstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_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)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)voidsetCompanyId(String companyId)voidsetDescription(String description)voidsetLegalEntityId(String legalEntityId)voidsetPricingPlan(String pricingPlan)voidsetReference(String reference)voidsetSalesChannels(List<String> salesChannels)StringtoJson()Convert an instance of CreateMerchantRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BUSINESS_LINE_ID
public static final String SERIALIZED_NAME_BUSINESS_LINE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY_ID
public static final String SERIALIZED_NAME_COMPANY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- 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_PRICING_PLAN
public static final String SERIALIZED_NAME_PRICING_PLAN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SALES_CHANNELS
public static final String SERIALIZED_NAME_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)
-
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)
-
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)
-
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)
-
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)
-
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)
-
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
-
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 CreateMerchantRequest
-
fromJson
public static CreateMerchantRequest fromJson(String jsonString) throws IOException
Create an instance of CreateMerchantRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateMerchantRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateMerchantRequest
-
toJson
public String toJson()
Convert an instance of CreateMerchantRequest to an JSON string- Returns:
- JSON string
-
-