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

io.swagger.client.model.ExecuteSepaDirectDebitParams Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
/*
 * finAPI RESTful Services
 * finAPI RESTful Services
 *
 * OpenAPI spec version: v1.64.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.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;

/**
 * Container for parameters for the execution of a submitted SEPA direct debit order
 */
@ApiModel(description = "Container for parameters for the execution of a submitted SEPA direct debit order")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class ExecuteSepaDirectDebitParams {
  @SerializedName("accountId")
  private Long accountId = null;

  @SerializedName("bankingTan")
  private String bankingTan = null;

  public ExecuteSepaDirectDebitParams accountId(Long accountId) {
    this.accountId = accountId;
    return this;
  }

   /**
   * Identifier of the bank account that you want to transfer money to
   * @return accountId
  **/
  @ApiModelProperty(example = "1", required = true, value = "Identifier of the bank account that you want to transfer money to")
  public Long getAccountId() {
    return accountId;
  }

  public void setAccountId(Long accountId) {
    this.accountId = accountId;
  }

  public ExecuteSepaDirectDebitParams bankingTan(String bankingTan) {
    this.bankingTan = bankingTan;
    return this;
  }

   /**
   * Banking TAN that the user received from the bank for executing the direct debit order. The field is required if you are licensed to perform SEPA direct debits yourself. Otherwise, i.e. when finAPI's web form flow is required, the web form will deal with executing the service itself.
   * @return bankingTan
  **/
  @ApiModelProperty(example = "0123", value = "Banking TAN that the user received from the bank for executing the direct debit order. The field is required if you are licensed to perform SEPA direct debits yourself. Otherwise, i.e. when finAPI's web form flow is required, the web form will deal with executing the service itself.")
  public String getBankingTan() {
    return bankingTan;
  }

  public void setBankingTan(String bankingTan) {
    this.bankingTan = bankingTan;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ExecuteSepaDirectDebitParams executeSepaDirectDebitParams = (ExecuteSepaDirectDebitParams) o;
    return Objects.equals(this.accountId, executeSepaDirectDebitParams.accountId) &&
        Objects.equals(this.bankingTan, executeSepaDirectDebitParams.bankingTan);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountId, bankingTan);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ExecuteSepaDirectDebitParams {\n");
    
    sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
    sb.append("    bankingTan: ").append(toIndentedString(bankingTan)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy