
com.wallee.sdk.mdes.model.UnSuspendRequestSchema 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;
import java.util.ArrayList;
import java.util.List;
/**
* UnSuspendRequestSchema
*/
public class UnSuspendRequestSchema {
@SerializedName("responseHost")
private String responseHost = null;
@SerializedName("requestId")
private String requestId = null;
@SerializedName("paymentAppInstanceId")
private String paymentAppInstanceId = null;
@SerializedName("tokenUniqueReferences")
private List tokenUniqueReferences = new ArrayList();
@SerializedName("causedBy")
private String causedBy = null;
@SerializedName("reason")
private String reason = null;
@SerializedName("reasonCode")
private String reasonCode = null;
public UnSuspendRequestSchema responseHost(String responseHost) {
this.responseHost = responseHost;
return this;
}
/**
* The host that originated the request. Future calls in the same conversation may be routed to this host.
* @return responseHost
**/
public String getResponseHost() {
return responseHost;
}
public void setResponseHost(String responseHost) {
this.responseHost = responseHost;
}
public UnSuspendRequestSchema requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Unique identifier for the request.
* @return requestId
**/
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public UnSuspendRequestSchema paymentAppInstanceId(String paymentAppInstanceId) {
this.paymentAppInstanceId = paymentAppInstanceId;
return this;
}
/**
* Identifier for the specific Mobile Payment App instance, unique across a given Wallet Identifier. This value cannot be changed after digitization. This field is alphanumeric and additionally web-safe base64 characters per RFC 4648 (minus \"-\", underscore \"_\") up to a maximum length of 48, = should not be URL encoded. Conditional - not applicable for server based tokens but required otherwise. __Max Length:48__
* @return paymentAppInstanceId
**/
public String getPaymentAppInstanceId() {
return paymentAppInstanceId;
}
public void setPaymentAppInstanceId(String paymentAppInstanceId) {
this.paymentAppInstanceId = paymentAppInstanceId;
}
public UnSuspendRequestSchema tokenUniqueReferences(List tokenUniqueReferences) {
this.tokenUniqueReferences = tokenUniqueReferences;
return this;
}
public UnSuspendRequestSchema addTokenUniqueReferencesItem(String tokenUniqueReferencesItem) {
this.tokenUniqueReferences.add(tokenUniqueReferencesItem);
return this;
}
/**
* The specific Token to be unsuspended. Array of more or more valid references as assigned by MDES
* @return tokenUniqueReferences
**/
public List getTokenUniqueReferences() {
return tokenUniqueReferences;
}
public void setTokenUniqueReferences(List tokenUniqueReferences) {
this.tokenUniqueReferences = tokenUniqueReferences;
}
public UnSuspendRequestSchema causedBy(String causedBy) {
this.causedBy = causedBy;
return this;
}
/**
* Who or what caused the Token to be unsuspended. Must be either the 'CARDHOLDER' (operation requested by the Cardholder) or 'TOKEN_REQUESTOR' (operation requested by the token requestor). __Max Length:64__
* @return causedBy
**/
public String getCausedBy() {
return causedBy;
}
public void setCausedBy(String causedBy) {
this.causedBy = causedBy;
}
public UnSuspendRequestSchema reason(String reason) {
this.reason = reason;
return this;
}
/**
* Free form reason why the Tokens are being suspended. __Max Length:256__
* @return reason
**/
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public UnSuspendRequestSchema reasonCode(String reasonCode) {
this.reasonCode = reasonCode;
return this;
}
/**
* The reason for the action to be unsuspended. Must be one of 'SUSPECTED_FRAUD' (suspected fraudulent token transactions), 'OTHER' (Other - default used if value not provided). __Max Length:64__
* @return reasonCode
**/
public String getReasonCode() {
return reasonCode;
}
public void setReasonCode(String reasonCode) {
this.reasonCode = reasonCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UnSuspendRequestSchema unSuspendRequestSchema = (UnSuspendRequestSchema) o;
return Objects.equals(this.responseHost, unSuspendRequestSchema.responseHost) &&
Objects.equals(this.requestId, unSuspendRequestSchema.requestId) &&
Objects.equals(this.paymentAppInstanceId, unSuspendRequestSchema.paymentAppInstanceId) &&
Objects.equals(this.tokenUniqueReferences, unSuspendRequestSchema.tokenUniqueReferences) &&
Objects.equals(this.causedBy, unSuspendRequestSchema.causedBy) &&
Objects.equals(this.reason, unSuspendRequestSchema.reason) &&
Objects.equals(this.reasonCode, unSuspendRequestSchema.reasonCode);
}
@Override
public int hashCode() {
return Objects.hash(responseHost, requestId, paymentAppInstanceId, tokenUniqueReferences, causedBy, reason, reasonCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UnSuspendRequestSchema {\n");
sb.append(" responseHost: ").append(toIndentedString(responseHost)).append("\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" paymentAppInstanceId: ").append(toIndentedString(paymentAppInstanceId)).append("\n");
sb.append(" tokenUniqueReferences: ").append(toIndentedString(tokenUniqueReferences)).append("\n");
sb.append(" causedBy: ").append(toIndentedString(causedBy)).append("\n");
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).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