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.*;
  
  /** SepaDirectDebitInfo */
  @JsonPropertyOrder({
    SepaDirectDebitInfo.JSON_PROPERTY_CREDITOR_ID,
    SepaDirectDebitInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION
  })
  public class SepaDirectDebitInfo {
    public static final String JSON_PROPERTY_CREDITOR_ID = "creditorId";
    private String creditorId;
  
    public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription";
    private TransactionDescriptionInfo transactionDescription;
  
    public SepaDirectDebitInfo() {}
  
    /**
     * Creditor id
     *
     * @param creditorId Creditor id
     * @return the current {@code SepaDirectDebitInfo} instance, allowing for method chaining
     */
    public SepaDirectDebitInfo creditorId(String creditorId) {
      this.creditorId = creditorId;
      return this;
    }
  
    /**
     * Creditor id
     *
     * @return creditorId Creditor id
     */
    @JsonProperty(JSON_PROPERTY_CREDITOR_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getCreditorId() {
      return creditorId;
    }
  
    /**
     * Creditor id
     *
     * @param creditorId Creditor id
     */
    @JsonProperty(JSON_PROPERTY_CREDITOR_ID)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setCreditorId(String creditorId) {
      this.creditorId = creditorId;
    }
  
    /**
     * transactionDescription
     *
     * @param transactionDescription
     * @return the current {@code SepaDirectDebitInfo} instance, allowing for method chaining
     */
    public SepaDirectDebitInfo transactionDescription(
        TransactionDescriptionInfo transactionDescription) {
      this.transactionDescription = transactionDescription;
      return this;
    }
  
    /**
     * Get transactionDescription
     *
     * @return transactionDescription
     */
    @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public TransactionDescriptionInfo getTransactionDescription() {
      return transactionDescription;
    }
  
    /**
     * transactionDescription
     *
     * @param transactionDescription
     */
    @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) {
      this.transactionDescription = transactionDescription;
    }
  
    /** Return true if this SepaDirectDebitInfo object is equal to o. */
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      SepaDirectDebitInfo sepaDirectDebitInfo = (SepaDirectDebitInfo) o;
      return Objects.equals(this.creditorId, sepaDirectDebitInfo.creditorId)
          && Objects.equals(this.transactionDescription, sepaDirectDebitInfo.transactionDescription);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(creditorId, transactionDescription);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class SepaDirectDebitInfo {\n");
      sb.append("    creditorId: ").append(toIndentedString(creditorId)).append("\n");
      sb.append("    transactionDescription: ")
          .append(toIndentedString(transactionDescription))
          .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 SepaDirectDebitInfo given an JSON string
     *
     * @param jsonString JSON string
     * @return An instance of SepaDirectDebitInfo
     * @throws JsonProcessingException if the JSON string is invalid with respect to
     *     SepaDirectDebitInfo
     */
    public static SepaDirectDebitInfo fromJson(String jsonString) throws JsonProcessingException {
      return JSON.getMapper().readValue(jsonString, SepaDirectDebitInfo.class);
    }
  
    /**
     * Convert an instance of SepaDirectDebitInfo to an JSON string
     *
     * @return JSON string
     */
    public String toJson() throws JsonProcessingException {
      return JSON.getMapper().writeValueAsString(this);
    }
  }
  