
com.adyen.model.balanceplatform.RevealPinRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* 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.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 java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* RevealPinRequest
*/
@JsonPropertyOrder({
RevealPinRequest.JSON_PROPERTY_ENCRYPTED_KEY,
RevealPinRequest.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
})
public class RevealPinRequest {
public static final String JSON_PROPERTY_ENCRYPTED_KEY = "encryptedKey";
private String encryptedKey;
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId";
private String paymentInstrumentId;
public RevealPinRequest() {
}
/**
* The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
*
* @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
* @return the current {@code RevealPinRequest} instance, allowing for method chaining
*/
public RevealPinRequest encryptedKey(String encryptedKey) {
this.encryptedKey = encryptedKey;
return this;
}
/**
* The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
* @return encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
*/
@JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEncryptedKey() {
return encryptedKey;
}
/**
* The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
*
* @param encryptedKey The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
*/
@JsonProperty(JSON_PROPERTY_ENCRYPTED_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEncryptedKey(String encryptedKey) {
this.encryptedKey = encryptedKey;
}
/**
* The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
*
* @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
* @return the current {@code RevealPinRequest} instance, allowing for method chaining
*/
public RevealPinRequest paymentInstrumentId(String paymentInstrumentId) {
this.paymentInstrumentId = paymentInstrumentId;
return this;
}
/**
* The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
* @return paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
*/
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPaymentInstrumentId() {
return paymentInstrumentId;
}
/**
* The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
*
* @param paymentInstrumentId The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
*/
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentInstrumentId(String paymentInstrumentId) {
this.paymentInstrumentId = paymentInstrumentId;
}
/**
* Return true if this RevealPinRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RevealPinRequest revealPinRequest = (RevealPinRequest) o;
return Objects.equals(this.encryptedKey, revealPinRequest.encryptedKey) &&
Objects.equals(this.paymentInstrumentId, revealPinRequest.paymentInstrumentId);
}
@Override
public int hashCode() {
return Objects.hash(encryptedKey, paymentInstrumentId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RevealPinRequest {\n");
sb.append(" encryptedKey: ").append(toIndentedString(encryptedKey)).append("\n");
sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).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 RevealPinRequest given an JSON string
*
* @param jsonString JSON string
* @return An instance of RevealPinRequest
* @throws JsonProcessingException if the JSON string is invalid with respect to RevealPinRequest
*/
public static RevealPinRequest fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, RevealPinRequest.class);
}
/**
* Convert an instance of RevealPinRequest to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy