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;
/**
* Container for a web form's data
*/
@ApiModel(description = "Container for a web form's data")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class WebForm {
@SerializedName("id")
private Long id = null;
@SerializedName("token")
private String token = null;
/**
* Status of a web form. Possible values are:<br/>• NOT_YET_OPENED - the web form URL was not yet called;<br/>• IN_PROGRESS - the web form has been opened but not yet submitted by the user;<br/>• COMPLETED - the user has opened and submitted the web form;<br/>• ABORTED - the user has opened but then aborted the web form, or the web form was aborted by the finAPI system because it has expired (this is the case when a web form is opened and then not submitted within 20 minutes)
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {
NOT_YET_OPENED("NOT_YET_OPENED"),
IN_PROGRESS("IN_PROGRESS"),
COMPLETED("COMPLETED"),
ABORTED("ABORTED");
private String value;
StatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StatusEnum fromValue(String text) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StatusEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("status")
private StatusEnum status = null;
@SerializedName("serviceResponseCode")
private Integer serviceResponseCode = null;
@SerializedName("serviceResponseBody")
private String serviceResponseBody = null;
public WebForm id(Long id) {
this.id = id;
return this;
}
/**
* Web form identifier, as returned in the 451 response of the REST service call that initiated the web form flow.
* @return id
**/
@ApiModelProperty(example = "1", required = true, value = "Web form identifier, as returned in the 451 response of the REST service call that initiated the web form flow.")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public WebForm token(String token) {
this.token = token;
return this;
}
/**
* Token for the finAPI web form page, as contained in the 451 response of the REST service call that initiated the web form flow (in the 'Location' header).
* @return token
**/
@ApiModelProperty(example = "03FhQiom8CJUL7rkRgBMCOF9KXlGL9p7kPpW4puMKDD5QbeRm9E9Vzr1xBcokaxZt5PGRscn8HI8xuL8voLkirocxgFIF7wU8B240R5ccSjfPru9vXTBHBEycmBs8Rk2", required = true, value = "Token for the finAPI web form page, as contained in the 451 response of the REST service call that initiated the web form flow (in the 'Location' header).")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public WebForm status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Status of a web form. Possible values are:<br/>• NOT_YET_OPENED - the web form URL was not yet called;<br/>• IN_PROGRESS - the web form has been opened but not yet submitted by the user;<br/>• COMPLETED - the user has opened and submitted the web form;<br/>• ABORTED - the user has opened but then aborted the web form, or the web form was aborted by the finAPI system because it has expired (this is the case when a web form is opened and then not submitted within 20 minutes)
* @return status
**/
@ApiModelProperty(example = "COMPLETED", required = true, value = "Status of a web form. Possible values are: • NOT_YET_OPENED - the web form URL was not yet called; • IN_PROGRESS - the web form has been opened but not yet submitted by the user; • COMPLETED - the user has opened and submitted the web form; • ABORTED - the user has opened but then aborted the web form, or the web form was aborted by the finAPI system because it has expired (this is the case when a web form is opened and then not submitted within 20 minutes)")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
public WebForm serviceResponseCode(Integer serviceResponseCode) {
this.serviceResponseCode = serviceResponseCode;
return this;
}
/**
* HTTP response code of the REST service call that initiated the web form flow. This field can be queried as soon as the status becomes COMPLETED or ABORTED. Note that it is still not guaranteed in this case that the field has a value, i.e. it might be null.
* @return serviceResponseCode
**/
@ApiModelProperty(example = "201", value = "HTTP response code of the REST service call that initiated the web form flow. This field can be queried as soon as the status becomes COMPLETED or ABORTED. Note that it is still not guaranteed in this case that the field has a value, i.e. it might be null.")
public Integer getServiceResponseCode() {
return serviceResponseCode;
}
public void setServiceResponseCode(Integer serviceResponseCode) {
this.serviceResponseCode = serviceResponseCode;
}
public WebForm serviceResponseBody(String serviceResponseBody) {
this.serviceResponseBody = serviceResponseBody;
return this;
}
/**
* HTTP response body of the REST service call that initiated the web form flow. This field can be queried as soon as the status becomes COMPLETED or ABORTED. Note that it is still not guaranteed in this case that the field has a value, i.e. it might be null.
* @return serviceResponseBody
**/
@ApiModelProperty(example = "{ \"id\": 1, \"bankId\": 277672, \"bank\": { \"id\": 277672, \"name\": \"FinAPI Test Bank\", \"loginHint\": null, \"bic\": null, \"blz\": \"00000000\", \"blzs\": [ \"00000000\" ], \"loginFieldUserId\": \"Onlinebanking-ID\", \"loginFieldCustomerId\": null, \"loginFieldPin\": \"PIN\", \"isSupported\": true, \"supportedDataSources\": [ \"FINTS_SERVER\" ], \"pinsAreVolatile\": false, \"location\": null, \"city\": null, \"isTestBank\": true, \"popularity\": 7, \"health\": 100, \"lastCommunicationAttempt\": \"2018-01-01 00:00:00.000\", \"lastSuccessfulCommunication\": \"2018-01-00 00:00:00.000\" }, \"name\": null, \"bankingUserId\": \"XXXXX\", \"bankingCustomerId\": null, \"bankingPin\": null, \"type\": \"DEMO\", \"updateStatus\": \"READY\", \"categorizationStatus\": \"READY\", \"lastManualUpdate\": null, \"lastAutoUpdate\": null, \"twoStepProcedures\": [], \"ibanOnlyMoneyTransferSupported\": false, \"ibanOnlyDirectDebitSupported\": false, \"collectiveMoneyTransferSupported\": false, \"defaultTwoStepProcedureId\": null, \"accountIds\": [ 1 ], \"owners\": null }", value = "HTTP response body of the REST service call that initiated the web form flow. This field can be queried as soon as the status becomes COMPLETED or ABORTED. Note that it is still not guaranteed in this case that the field has a value, i.e. it might be null.")
public String getServiceResponseBody() {
return serviceResponseBody;
}
public void setServiceResponseBody(String serviceResponseBody) {
this.serviceResponseBody = serviceResponseBody;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WebForm webForm = (WebForm) o;
return Objects.equals(this.id, webForm.id) &&
Objects.equals(this.token, webForm.token) &&
Objects.equals(this.status, webForm.status) &&
Objects.equals(this.serviceResponseCode, webForm.serviceResponseCode) &&
Objects.equals(this.serviceResponseBody, webForm.serviceResponseBody);
}
@Override
public int hashCode() {
return Objects.hash(id, token, status, serviceResponseCode, serviceResponseBody);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WebForm {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" serviceResponseCode: ").append(toIndentedString(serviceResponseCode)).append("\n");
sb.append(" serviceResponseBody: ").append(toIndentedString(serviceResponseBody)).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 ");
}
}