All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wallee.sdk.mdes.model.TokenInfo 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; /** * TokenInfo */ public class TokenInfo { @SerializedName("tokenPanSuffix") private String tokenPanSuffix = null; @SerializedName("accountPanSuffix") private String accountPanSuffix = null; @SerializedName("tokenExpiry") private String tokenExpiry = null; @SerializedName("accountPanExpiry") private String accountPanExpiry = null; @SerializedName("dsrpCapable") private String dsrpCapable = null; @SerializedName("tokenAssuranceLevel") private String tokenAssuranceLevel = null; @SerializedName("productCategory") private String productCategory = null; public TokenInfo tokenPanSuffix(String tokenPanSuffix) { this.tokenPanSuffix = tokenPanSuffix; return this; } /** * The last few digits (typically four) of the Token PAN.<br> __Max Length:8__<br> __Required: Yes__ * @return tokenPanSuffix **/ public String getTokenPanSuffix() { return tokenPanSuffix; } public void setTokenPanSuffix(String tokenPanSuffix) { this.tokenPanSuffix = tokenPanSuffix; } public TokenInfo accountPanSuffix(String accountPanSuffix) { this.accountPanSuffix = accountPanSuffix; return this; } /** * The last few digits (typically four) of the Account PAN.<br> __Max Length:8__<br> __Required: Yes__ * @return accountPanSuffix **/ public String getAccountPanSuffix() { return accountPanSuffix; } public void setAccountPanSuffix(String accountPanSuffix) { this.accountPanSuffix = accountPanSuffix; } public TokenInfo tokenExpiry(String tokenExpiry) { this.tokenExpiry = tokenExpiry; return this; } /** * The expiry of the Token PAN, given in MMYY format.<br> __Max Length:4__<br> __Required: Yes__ * @return tokenExpiry **/ public String getTokenExpiry() { return tokenExpiry; } public void setTokenExpiry(String tokenExpiry) { this.tokenExpiry = tokenExpiry; } public TokenInfo accountPanExpiry(String accountPanExpiry) { this.accountPanExpiry = accountPanExpiry; return this; } /** * The expiry of the Account PAN, given in MMYY format. <br> __Max Length: 4__<br> __Required: No__ * @return accountPanExpiry **/ public String getAccountPanExpiry() { return accountPanExpiry; } public void setAccountPanExpiry(String accountPanExpiry) { this.accountPanExpiry = accountPanExpiry; } public TokenInfo dsrpCapable(String dsrpCapable) { this.dsrpCapable = dsrpCapable; return this; } /** * Whether DSRP transactions are supported by this Token. Must be either 'true' (DSRP capable) or 'false' (Not DSRP capable).<br> __Max Length: 5__<br> __Required: Yes__ * @return dsrpCapable **/ public String getDsrpCapable() { return dsrpCapable; } public void setDsrpCapable(String dsrpCapable) { this.dsrpCapable = dsrpCapable; } public TokenInfo tokenAssuranceLevel(String tokenAssuranceLevel) { this.tokenAssuranceLevel = tokenAssuranceLevel; return this; } /** * A value indicating the confidence level of the token to Account PAN binding.<br> __Max Length:2__<br> __Required: No__ * @return tokenAssuranceLevel **/ public String getTokenAssuranceLevel() { return tokenAssuranceLevel; } public void setTokenAssuranceLevel(String tokenAssuranceLevel) { this.tokenAssuranceLevel = tokenAssuranceLevel; } public TokenInfo productCategory(String productCategory) { this.productCategory = productCategory; return this; } /** * The product category of the Account PAN. When supplied will be one of the following values - * CREDIT * DEBIT * PREPAID * UNKNOWN __Max Length: 32__<br> __Required: No__ * @return productCategory **/ public String getProductCategory() { return productCategory; } public void setProductCategory(String productCategory) { this.productCategory = productCategory; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TokenInfo tokenInfo = (TokenInfo) o; return Objects.equals(this.tokenPanSuffix, tokenInfo.tokenPanSuffix) && Objects.equals(this.accountPanSuffix, tokenInfo.accountPanSuffix) && Objects.equals(this.tokenExpiry, tokenInfo.tokenExpiry) && Objects.equals(this.accountPanExpiry, tokenInfo.accountPanExpiry) && Objects.equals(this.dsrpCapable, tokenInfo.dsrpCapable) && Objects.equals(this.tokenAssuranceLevel, tokenInfo.tokenAssuranceLevel) && Objects.equals(this.productCategory, tokenInfo.productCategory); } @Override public int hashCode() { return Objects.hash(tokenPanSuffix, accountPanSuffix, tokenExpiry, accountPanExpiry, dsrpCapable, tokenAssuranceLevel, productCategory); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenInfo {\n"); sb.append(" tokenPanSuffix: ").append(toIndentedString(tokenPanSuffix)).append("\n"); sb.append(" accountPanSuffix: ").append(toIndentedString(accountPanSuffix)).append("\n"); sb.append(" tokenExpiry: ").append(toIndentedString(tokenExpiry)).append("\n"); sb.append(" accountPanExpiry: ").append(toIndentedString(accountPanExpiry)).append("\n"); sb.append(" dsrpCapable: ").append(toIndentedString(dsrpCapable)).append("\n"); sb.append(" tokenAssuranceLevel: ").append(toIndentedString(tokenAssuranceLevel)).append("\n"); sb.append(" productCategory: ").append(toIndentedString(productCategory)).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