Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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;
/**
* User details
*/
@ApiModel(description = "User details")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class UserCreateParams {
@SerializedName("id")
private String id = null;
@SerializedName("password")
private String password = null;
@SerializedName("email")
private String email = null;
@SerializedName("phone")
private String phone = null;
@SerializedName("isAutoUpdateEnabled")
private Boolean isAutoUpdateEnabled = false;
public UserCreateParams id(String id) {
this.id = id;
return this;
}
/**
* User's identifier. Max length is 36 symbols. Only the following symbols are allowed: 0-9, A-Z, a-z, -, _, ., +, @. If not specified, then a unique random value will be generated.
* @return id
**/
@ApiModelProperty(example = "username", value = "User's identifier. Max length is 36 symbols. Only the following symbols are allowed: 0-9, A-Z, a-z, -, _, ., +, @. If not specified, then a unique random value will be generated.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public UserCreateParams password(String password) {
this.password = password;
return this;
}
/**
* User's password. Minimum length is 6, and maximum length is 36. If not specified, then a unique random value will be generated.
* @return password
**/
@ApiModelProperty(example = "password", value = "User's password. Minimum length is 6, and maximum length is 36. If not specified, then a unique random value will be generated.")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public UserCreateParams email(String email) {
this.email = email;
return this;
}
/**
* User's email address. Maximum length is 320.
* @return email
**/
@ApiModelProperty(example = "[email protected]", value = "User's email address. Maximum length is 320.")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public UserCreateParams phone(String phone) {
this.phone = phone;
return this;
}
/**
* User's phone number. Maximum length is 50.
* @return phone
**/
@ApiModelProperty(example = "+49 99 999999-999", value = "User's phone number. Maximum length is 50.")
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public UserCreateParams isAutoUpdateEnabled(Boolean isAutoUpdateEnabled) {
this.isAutoUpdateEnabled = isAutoUpdateEnabled;
return this;
}
/**
* Whether the user's bank connections will get updated in the course of finAPI's automatic batch update. Note that the automatic batch update will only update bank connections where all of the following applies:<br><br> - the PIN is stored in finAPI for the bank connection<br> - the user has accepted the latest Terms and Conditions (this only applies to users whose mandator has PISP license or doesn't have a license at all)<br> - the user has allowed finAPI to use his old stored credentials (this only applies to users which had stored credentials before introducing a web form feature and whose mandator has PISP license or doesn't have a license at all)<br> - the previous update using the stored credentials did not fail due to the credentials being incorrect (or there was no previous update with the stored credentials)<br> - the bank that the bank connection relates to is included in the automatic batch update (please contact your Sys-Admin for details about the batch update configuration)<br><br>Also note that the automatic batch update must generally be enabled for your client in order for this field to have any effect.<br/><br/>WARNING: The automatic update will always download transactions and security positions for any account that it updates! This means that the user will no longer be able to download just the balances for his accounts once the automatic update has run (The 'skipPositionsDownload' flag in the bankConnections/update service can no longer be set to true).<br/><br/>If not specified, then the automatic update will be disabled by default (false).
* @return isAutoUpdateEnabled
**/
@ApiModelProperty(example = "true", value = "Whether the user's bank connections will get updated in the course of finAPI's automatic batch update. Note that the automatic batch update will only update bank connections where all of the following applies:
- the PIN is stored in finAPI for the bank connection - the user has accepted the latest Terms and Conditions (this only applies to users whose mandator has PISP license or doesn't have a license at all) - the user has allowed finAPI to use his old stored credentials (this only applies to users which had stored credentials before introducing a web form feature and whose mandator has PISP license or doesn't have a license at all) - the previous update using the stored credentials did not fail due to the credentials being incorrect (or there was no previous update with the stored credentials) - the bank that the bank connection relates to is included in the automatic batch update (please contact your Sys-Admin for details about the batch update configuration)
Also note that the automatic batch update must generally be enabled for your client in order for this field to have any effect.
WARNING: The automatic update will always download transactions and security positions for any account that it updates! This means that the user will no longer be able to download just the balances for his accounts once the automatic update has run (The 'skipPositionsDownload' flag in the bankConnections/update service can no longer be set to true).
If not specified, then the automatic update will be disabled by default (false).")
public Boolean isIsAutoUpdateEnabled() {
return isAutoUpdateEnabled;
}
public void setIsAutoUpdateEnabled(Boolean isAutoUpdateEnabled) {
this.isAutoUpdateEnabled = isAutoUpdateEnabled;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserCreateParams userCreateParams = (UserCreateParams) o;
return Objects.equals(this.id, userCreateParams.id) &&
Objects.equals(this.password, userCreateParams.password) &&
Objects.equals(this.email, userCreateParams.email) &&
Objects.equals(this.phone, userCreateParams.phone) &&
Objects.equals(this.isAutoUpdateEnabled, userCreateParams.isAutoUpdateEnabled);
}
@Override
public int hashCode() {
return Objects.hash(id, password, email, phone, isAutoUpdateEnabled);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserCreateParams {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" isAutoUpdateEnabled: ").append(toIndentedString(isAutoUpdateEnabled)).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 ");
}
}