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

org.openapitools.client.model.SepaDebit 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 `sepa_debit`, this hash contains details about the SEPA bank account.
 */
@ApiModel(description = "If the `type` of the payment method is `sepa_debit`, this hash contains details about the SEPA bank account.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SepaDebit {
  public static final String SERIALIZED_NAME_I_B_A_N = "IBAN";
  @SerializedName(SERIALIZED_NAME_I_B_A_N)
  private String IBAN;

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

  public static final String SERIALIZED_NAME_BUSINESS_IDENTIFICATION_CODE = "business_identification_code";
  @SerializedName(SERIALIZED_NAME_BUSINESS_IDENTIFICATION_CODE)
  private String businessIdentificationCode;

  public SepaDebit() { 
  }

  public SepaDebit IBAN(String IBAN) {
    
    this.IBAN = IBAN;
    return this;
  }

   /**
   * International Bank Account Number used to create the SEPA Debit payment method.
   * @return IBAN
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "International Bank Account Number used to create the SEPA Debit payment method.")

  public String getIBAN() {
    return IBAN;
  }


  public void setIBAN(String IBAN) {
    this.IBAN = IBAN;
  }


  public SepaDebit 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;
  }


  public SepaDebit businessIdentificationCode(String businessIdentificationCode) {
    
    this.businessIdentificationCode = businessIdentificationCode;
    return this;
  }

   /**
   * The BIC code used with the Sepa Debit payment method.
   * @return businessIdentificationCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The BIC code used with the Sepa Debit payment method.")

  public String getBusinessIdentificationCode() {
    return businessIdentificationCode;
  }


  public void setBusinessIdentificationCode(String businessIdentificationCode) {
    this.businessIdentificationCode = businessIdentificationCode;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SepaDebit sepaDebit = (SepaDebit) o;
    return Objects.equals(this.IBAN, sepaDebit.IBAN) &&
        Objects.equals(this.mandate, sepaDebit.mandate) &&
        Objects.equals(this.businessIdentificationCode, sepaDebit.businessIdentificationCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(IBAN, mandate, businessIdentificationCode);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SepaDebit {\n");
    sb.append("    IBAN: ").append(toIndentedString(IBAN)).append("\n");
    sb.append("    mandate: ").append(toIndentedString(mandate)).append("\n");
    sb.append("    businessIdentificationCode: ").append(toIndentedString(businessIdentificationCode)).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