content: /*
   * Management API
   *
   * The version of the OpenAPI document: 3
   *
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  package com.adyen.model.management;
  
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  import com.fasterxml.jackson.core.JsonProcessingException;
  import java.util.*;
  import java.util.ArrayList;
  import java.util.List;
  
  /** CreateMerchantRequest */
  @JsonPropertyOrder({
    CreateMerchantRequest.JSON_PROPERTY_BUSINESS_LINE_ID,
    CreateMerchantRequest.JSON_PROPERTY_COMPANY_ID,
    CreateMerchantRequest.JSON_PROPERTY_DESCRIPTION,
    CreateMerchantRequest.JSON_PROPERTY_LEGAL_ENTITY_ID,
    CreateMerchantRequest.JSON_PROPERTY_PRICING_PLAN,
    CreateMerchantRequest.JSON_PROPERTY_REFERENCE,
    CreateMerchantRequest.JSON_PROPERTY_SALES_CHANNELS
  })
  public class CreateMerchantRequest {
    public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId";
    private String businessLineId;
  
    public static final String JSON_PROPERTY_COMPANY_ID = "companyId";
    private String companyId;
  
    public static final String JSON_PROPERTY_DESCRIPTION = "description";
    private String description;
  
    public static final String JSON_PROPERTY_LEGAL_ENTITY_ID = "legalEntityId";
    private String legalEntityId;
  
    public static final String JSON_PROPERTY_PRICING_PLAN = "pricingPlan";
    private String pricingPlan;
  
    public static final String JSON_PROPERTY_REFERENCE = "reference";
    private String reference;
  
    public static final String JSON_PROPERTY_SALES_CHANNELS = "salesChannels";
    private List<String> salesChannels;
  
    public CreateMerchantRequest() {}
  
    /**
     * 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.
     *
     * @param 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.
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest businessLineId(String businessLineId) {
      this.businessLineId = businessLineId;
      return this;
    }
  
    /**
     * 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.
     *
     * @return 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.
     */
    @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getBusinessLineId() {
      return 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.
     *
     * @param 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.
     */
    @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setBusinessLineId(String businessLineId) {
      this.businessLineId = businessLineId;
    }
  
    /**
     * The unique identifier of the company account.
     *
     * @param companyId The unique identifier of the company account.
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest companyId(String companyId) {
      this.companyId = companyId;
      return this;
    }
  
    /**
     * The unique identifier of the company account.
     *
     * @return companyId The unique identifier of the company account.
     */
    @JsonProperty(JSON_PROPERTY_COMPANY_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getCompanyId() {
      return companyId;
    }
  
    /**
     * The unique identifier of the company account.
     *
     * @param companyId The unique identifier of the company account.
     */
    @JsonProperty(JSON_PROPERTY_COMPANY_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setCompanyId(String companyId) {
      this.companyId = companyId;
    }
  
    /**
     * Your description for the merchant account, maximum 300 characters.
     *
     * @param description Your description for the merchant account, maximum 300 characters.
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest description(String description) {
      this.description = description;
      return this;
    }
  
    /**
     * Your description for the merchant account, maximum 300 characters.
     *
     * @return description Your description for the merchant account, maximum 300 characters.
     */
    @JsonProperty(JSON_PROPERTY_DESCRIPTION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getDescription() {
      return description;
    }
  
    /**
     * Your description for the merchant account, maximum 300 characters.
     *
     * @param description Your description for the merchant account, maximum 300 characters.
     */
    @JsonProperty(JSON_PROPERTY_DESCRIPTION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setDescription(String description) {
      this.description = description;
    }
  
    /**
     * 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.
     *
     * @param 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.
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest legalEntityId(String legalEntityId) {
      this.legalEntityId = legalEntityId;
      return this;
    }
  
    /**
     * 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.
     *
     * @return 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.
     */
    @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getLegalEntityId() {
      return 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.
     *
     * @param 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.
     */
    @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setLegalEntityId(String legalEntityId) {
      this.legalEntityId = legalEntityId;
    }
  
    /**
     * 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.
     *
     * @param 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.
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest pricingPlan(String pricingPlan) {
      this.pricingPlan = pricingPlan;
      return this;
    }
  
    /**
     * 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.
     *
     * @return 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.
     */
    @JsonProperty(JSON_PROPERTY_PRICING_PLAN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getPricingPlan() {
      return 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.
     *
     * @param 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.
     */
    @JsonProperty(JSON_PROPERTY_PRICING_PLAN)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setPricingPlan(String pricingPlan) {
      this.pricingPlan = pricingPlan;
    }
  
    /**
     * 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 &#x60;reference&#x60; is required
     * and must be unique within the company account.
     *
     * @param 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
     *     &#x60;reference&#x60; is required and must be unique within the company account.
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest reference(String reference) {
      this.reference = reference;
      return this;
    }
  
    /**
     * 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 &#x60;reference&#x60; is required
     * and must be unique within the company account.
     *
     * @return 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
     *     &#x60;reference&#x60; is required and must be unique within the company account.
     */
    @JsonProperty(JSON_PROPERTY_REFERENCE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getReference() {
      return 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 &#x60;reference&#x60; is required
     * and must be unique within the company account.
     *
     * @param 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
     *     &#x60;reference&#x60; is required and must be unique within the company account.
     */
    @JsonProperty(JSON_PROPERTY_REFERENCE)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setReference(String reference) {
      this.reference = reference;
    }
  
    /**
     * List of sales channels that the merchant will process payments with
     *
     * @param salesChannels List of sales channels that the merchant will process payments with
     * @return the current {@code CreateMerchantRequest} instance, allowing for method chaining
     */
    public CreateMerchantRequest salesChannels(List<String> salesChannels) {
      this.salesChannels = salesChannels;
      return this;
    }
  
    public CreateMerchantRequest addSalesChannelsItem(String salesChannelsItem) {
      if (this.salesChannels == null) {
        this.salesChannels = new ArrayList<>();
      }
      this.salesChannels.add(salesChannelsItem);
      return this;
    }
  
    /**
     * List of sales channels that the merchant will process payments with
     *
     * @return salesChannels List of sales channels that the merchant will process payments with
     */
    @JsonProperty(JSON_PROPERTY_SALES_CHANNELS)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public List<String> getSalesChannels() {
      return salesChannels;
    }
  
    /**
     * List of sales channels that the merchant will process payments with
     *
     * @param salesChannels List of sales channels that the merchant will process payments with
     */
    @JsonProperty(JSON_PROPERTY_SALES_CHANNELS)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setSalesChannels(List<String> salesChannels) {
      this.salesChannels = salesChannels;
    }
  
    /** Return true if this CreateMerchantRequest object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      CreateMerchantRequest createMerchantRequest = (CreateMerchantRequest) o;
      return Objects.equals(this.businessLineId, createMerchantRequest.businessLineId)
          && Objects.equals(this.companyId, createMerchantRequest.companyId)
          && Objects.equals(this.description, createMerchantRequest.description)
          && Objects.equals(this.legalEntityId, createMerchantRequest.legalEntityId)
          && Objects.equals(this.pricingPlan, createMerchantRequest.pricingPlan)
          && Objects.equals(this.reference, createMerchantRequest.reference)
          && Objects.equals(this.salesChannels, createMerchantRequest.salesChannels);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(
          businessLineId,
          companyId,
          description,
          legalEntityId,
          pricingPlan,
          reference,
          salesChannels);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class CreateMerchantRequest {\n");
      sb.append("    businessLineId: ").append(toIndentedString(businessLineId)).append("\n");
      sb.append("    companyId: ").append(toIndentedString(companyId)).append("\n");
      sb.append("    description: ").append(toIndentedString(description)).append("\n");
      sb.append("    legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n");
      sb.append("    pricingPlan: ").append(toIndentedString(pricingPlan)).append("\n");
      sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
      sb.append("    salesChannels: ").append(toIndentedString(salesChannels)).append("\n");
      sb.append("}");
      return sb.toString();
    }
  
    /**
     * Convert the given object to string with each line indented by 4 spaces (except the first line).
     */
    private String toIndentedString(Object o) {
      if (o == null) {
        return "null";
      }
      return o.toString().replace("\n", "\n    ");
    }
  
    /**
     * Create an instance of CreateMerchantRequest given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of CreateMerchantRequest
     * @throws JsonProcessingException if the JSON string is invalid with respect to
     *     CreateMerchantRequest
     */
    public static CreateMerchantRequest fromJson(String jsonString) throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, CreateMerchantRequest.class);
    }
  
    /**
     * Convert an instance of CreateMerchantRequest to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  