com.adyen.model.balanceplatform.RegisterSCAResponse Maven / Gradle / Ivy
/*
* Configuration API
*
* The version of the OpenAPI document: 2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.balanceplatform;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* RegisterSCAResponse
*/
@JsonPropertyOrder({
RegisterSCAResponse.JSON_PROPERTY_ID,
RegisterSCAResponse.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID,
RegisterSCAResponse.JSON_PROPERTY_SDK_INPUT,
RegisterSCAResponse.JSON_PROPERTY_SUCCESS
})
public class RegisterSCAResponse {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId";
private String paymentInstrumentId;
public static final String JSON_PROPERTY_SDK_INPUT = "sdkInput";
private String sdkInput;
public static final String JSON_PROPERTY_SUCCESS = "success";
private Boolean success;
public RegisterSCAResponse() {
}
public RegisterSCAResponse id(String id) {
this.id = id;
return this;
}
/**
* The unique identifier of the SCA device you are registering.
* @return id
**/
@ApiModelProperty(value = "The unique identifier of the SCA device you are registering.")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
/**
* The unique identifier of the SCA device you are registering.
*
* @param id
*/
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(String id) {
this.id = id;
}
public RegisterSCAResponse paymentInstrumentId(String paymentInstrumentId) {
this.paymentInstrumentId = paymentInstrumentId;
return this;
}
/**
* The unique identifier of the payment instrument for which you are registering the SCA device.
* @return paymentInstrumentId
**/
@ApiModelProperty(value = "The unique identifier of the payment instrument for which you are registering the SCA device.")
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPaymentInstrumentId() {
return paymentInstrumentId;
}
/**
* The unique identifier of the payment instrument for which you are registering the SCA device.
*
* @param paymentInstrumentId
*/
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentInstrumentId(String paymentInstrumentId) {
this.paymentInstrumentId = paymentInstrumentId;
}
public RegisterSCAResponse sdkInput(String sdkInput) {
this.sdkInput = sdkInput;
return this;
}
/**
* A string that you must pass to the authentication SDK to continue with the registration process.
* @return sdkInput
**/
@ApiModelProperty(value = "A string that you must pass to the authentication SDK to continue with the registration process.")
@JsonProperty(JSON_PROPERTY_SDK_INPUT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSdkInput() {
return sdkInput;
}
/**
* A string that you must pass to the authentication SDK to continue with the registration process.
*
* @param sdkInput
*/
@JsonProperty(JSON_PROPERTY_SDK_INPUT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSdkInput(String sdkInput) {
this.sdkInput = sdkInput;
}
public RegisterSCAResponse success(Boolean success) {
this.success = success;
return this;
}
/**
* Specifies if the registration was initiated successfully.
* @return success
**/
@ApiModelProperty(value = "Specifies if the registration was initiated successfully.")
@JsonProperty(JSON_PROPERTY_SUCCESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSuccess() {
return success;
}
/**
* Specifies if the registration was initiated successfully.
*
* @param success
*/
@JsonProperty(JSON_PROPERTY_SUCCESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuccess(Boolean success) {
this.success = success;
}
/**
* Return true if this RegisterSCAResponse object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RegisterSCAResponse registerSCAResponse = (RegisterSCAResponse) o;
return Objects.equals(this.id, registerSCAResponse.id) &&
Objects.equals(this.paymentInstrumentId, registerSCAResponse.paymentInstrumentId) &&
Objects.equals(this.sdkInput, registerSCAResponse.sdkInput) &&
Objects.equals(this.success, registerSCAResponse.success);
}
@Override
public int hashCode() {
return Objects.hash(id, paymentInstrumentId, sdkInput, success);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RegisterSCAResponse {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n");
sb.append(" sdkInput: ").append(toIndentedString(sdkInput)).append("\n");
sb.append(" success: ").append(toIndentedString(success)).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 ");
}
/**
* Create an instance of RegisterSCAResponse given an JSON string
*
* @param jsonString JSON string
* @return An instance of RegisterSCAResponse
* @throws JsonProcessingException if the JSON string is invalid with respect to RegisterSCAResponse
*/
public static RegisterSCAResponse fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, RegisterSCAResponse.class);
}
/**
* Convert an instance of RegisterSCAResponse to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}