
com.wallee.sdk.mdes.model.TransactError Maven / Gradle / Ivy
/*
* MDES for Merchants
* The MDES APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in the API specifies the HTTP Method used to access it. All strings in request and response objects are to be UTF-8 encoded. Each API URI includes the major and minor version of API that it conforms to. This will allow multiple concurrent versions of the API to be deployed simultaneously.
__Authentication__ Mastercard uses OAuth 1.0a with body hash extension for authenticating the API clients. This requires every request that you send to Mastercard to be signed with an RSA private key. A private-public RSA key pair must be generated consisting of:
1 . A private key for the OAuth signature for API requests. It is recommended to keep the private key in a password-protected or hardware keystore.
2. A public key is shared with Mastercard during the project setup process through either a certificate signing request (CSR) or the API Key Generator. Mastercard will use the public key to verify the OAuth signature that is provided on every API call.
An OAUTH1.0a signer library is available on [GitHub](https://github.com/Mastercard/oauth1-signer-java)
__Encryption__
All communications between Issuer web service and the Mastercard gateway is encrypted using TLS.
__Additional Encryption of Sensitive Data__ In addition to the OAuth authentication, when using MDES Digital Enablement Service, any PCI sensitive and all account holder Personally Identifiable Information (PII) data must be encrypted. This requirement applies to the API fields containing encryptedData. Sensitive data is encrypted using a symmetric session (one-time-use) key. The symmetric session key is then wrapped with an RSA Public Key supplied by Mastercard during API setup phase (the Customer Encryption Key).
Java Client Encryption Library available on [GitHub](https://github.com/Mastercard/client-encryption-java)
*
* OpenAPI spec version: 1.2.10
*
*
* 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 com.wallee.sdk.mdes.model;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Only returned in the event of an error condition for the Transact API
*/
@ApiModel(description = "Only returned in the event of an error condition for the Transact API")
public class TransactError {
@SerializedName("source")
private String source = null;
@SerializedName("errorCode")
private String errorCode = null;
@SerializedName("description")
private String description = null;
@SerializedName("reasonCode")
private String reasonCode = null;
@SerializedName("errorDescription")
private String errorDescription = null;
public TransactError source(String source) {
this.source = source;
return this;
}
/**
* An element used to indicate the source of the issue causing this error. Must be one of * 'MDES' * 'INPUT' <br> __Max Length: 32__
* @return source
**/
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public TransactError errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* A reason code or information pertaining to the error that has occurred. This will contain the error reported by the platform (e.g. authentication errors) or service (e.g. invalid TUR)<br> __Max Length: 100__
* @return errorCode
**/
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public TransactError description(String description) {
this.description = description;
return this;
}
/**
* Description of the reason why the operation failed. <br> __Max Length: 256__
* @return description
**/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public TransactError reasonCode(String reasonCode) {
this.reasonCode = reasonCode;
return this;
}
/**
* A reason code or information pertaining to the error that has occurred from the service (e.g. invalid TUR). See API Response Errors<br> __Max Length: 100__
* @return reasonCode
**/
public String getReasonCode() {
return reasonCode;
}
public void setReasonCode(String reasonCode) {
this.reasonCode = reasonCode;
}
public TransactError errorDescription(String errorDescription) {
this.errorDescription = errorDescription;
return this;
}
/**
* __DEPRECATED__<br> Use description instead.<br> __Max Length: 100__
* @return errorDescription
**/
public String getErrorDescription() {
return errorDescription;
}
public void setErrorDescription(String errorDescription) {
this.errorDescription = errorDescription;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransactError transactError = (TransactError) o;
return Objects.equals(this.source, transactError.source) &&
Objects.equals(this.errorCode, transactError.errorCode) &&
Objects.equals(this.description, transactError.description) &&
Objects.equals(this.reasonCode, transactError.reasonCode) &&
Objects.equals(this.errorDescription, transactError.errorDescription);
}
@Override
public int hashCode() {
return Objects.hash(source, errorCode, description, reasonCode, errorDescription);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransactError {\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n");
sb.append(" errorDescription: ").append(toIndentedString(errorDescription)).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 - 2025 Weber Informatics LLC | Privacy Policy