All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openapitools.client.model.AutogiroDebit Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/

package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.client.model.Mandate;

import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
 * If the `type` of the payment method is `autogiro_debit`, this hash contains details about the Autogiro bank account.
 */
@ApiModel(description = "If the `type` of the payment method is `autogiro_debit`, this hash contains details about the Autogiro bank account.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AutogiroDebit {
  public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "account_number";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
  private String accountNumber;

  public static final String SERIALIZED_NAME_IDENTITY_NUMBER = "identity_number";
  @SerializedName(SERIALIZED_NAME_IDENTITY_NUMBER)
  private String identityNumber;

  public static final String SERIALIZED_NAME_BRANCH_CODE = "branch_code";
  @SerializedName(SERIALIZED_NAME_BRANCH_CODE)
  private String branchCode;

  public static final String SERIALIZED_NAME_MANDATE = "mandate";
  @SerializedName(SERIALIZED_NAME_MANDATE)
  private Mandate mandate;

  public AutogiroDebit() { 
  }

  public AutogiroDebit accountNumber(String accountNumber) {
    
    this.accountNumber = accountNumber;
    return this;
  }

   /**
   * The bank account number of the account holder.
   * @return accountNumber
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "The bank account number of the account holder.")

  public String getAccountNumber() {
    return accountNumber;
  }


  public void setAccountNumber(String accountNumber) {
    this.accountNumber = accountNumber;
  }


  public AutogiroDebit identityNumber(String identityNumber) {
    
    this.identityNumber = identityNumber;
    return this;
  }

   /**
   * The identity number used for Autogiro (Direct Debit SE).
   * @return identityNumber
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "The identity number used for Autogiro (Direct Debit SE).")

  public String getIdentityNumber() {
    return identityNumber;
  }


  public void setIdentityNumber(String identityNumber) {
    this.identityNumber = identityNumber;
  }


  public AutogiroDebit branchCode(String branchCode) {
    
    this.branchCode = branchCode;
    return this;
  }

   /**
   * Identifier of the bank branch associated with this bank account.
   * @return branchCode
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "Identifier of the bank branch associated with this bank account.")

  public String getBranchCode() {
    return branchCode;
  }


  public void setBranchCode(String branchCode) {
    this.branchCode = branchCode;
  }


  public AutogiroDebit mandate(Mandate mandate) {
    
    this.mandate = mandate;
    return this;
  }

   /**
   * Get mandate
   * @return mandate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Mandate getMandate() {
    return mandate;
  }


  public void setMandate(Mandate mandate) {
    this.mandate = mandate;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AutogiroDebit autogiroDebit = (AutogiroDebit) o;
    return Objects.equals(this.accountNumber, autogiroDebit.accountNumber) &&
        Objects.equals(this.identityNumber, autogiroDebit.identityNumber) &&
        Objects.equals(this.branchCode, autogiroDebit.branchCode) &&
        Objects.equals(this.mandate, autogiroDebit.mandate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountNumber, identityNumber, branchCode, mandate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AutogiroDebit {\n");
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
    sb.append("    identityNumber: ").append(toIndentedString(identityNumber)).append("\n");
    sb.append("    branchCode: ").append(toIndentedString(branchCode)).append("\n");
    sb.append("    mandate: ").append(toIndentedString(mandate)).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    ");
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy