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

com.wallee.sdk.mdes.model.ProductConfig 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; /** * ProductConfig */ public class ProductConfig { @SerializedName("brandLogoAssetId") private String brandLogoAssetId = null; @SerializedName("issuerLogoAssetId") private String issuerLogoAssetId = null; @SerializedName("isCoBranded") private String isCoBranded = null; @SerializedName("coBrandName") private String coBrandName = null; @SerializedName("coBrandLogoAssetId") private String coBrandLogoAssetId = null; @SerializedName("cardBackgroundCombinedAssetId") private String cardBackgroundCombinedAssetId = null; @SerializedName("cardBackgroundAssetId") private String cardBackgroundAssetId = null; @SerializedName("iconAssetId") private String iconAssetId = null; @SerializedName("foregroundColor") private String foregroundColor = null; @SerializedName("issuerName") private String issuerName = null; @SerializedName("shortDescription") private String shortDescription = null; @SerializedName("longDescription") private String longDescription = null; @SerializedName("customerServiceUrl") private String customerServiceUrl = null; @SerializedName("customerServiceEmail") private String customerServiceEmail = null; @SerializedName("customerServicePhoneNumber") private String customerServicePhoneNumber = null; @SerializedName("issuerMobileApp") private Object issuerMobileApp = null; @SerializedName("onlineBankingLoginUrl") private String onlineBankingLoginUrl = null; @SerializedName("termsAndConditionsUrl") private String termsAndConditionsUrl = null; @SerializedName("privacyPolicyUrl") private String privacyPolicyUrl = null; @SerializedName("issuerProductConfigCode") private String issuerProductConfigCode = null; public ProductConfig brandLogoAssetId(String brandLogoAssetId) { this.brandLogoAssetId = brandLogoAssetId; return this; } /** * The MasterCard or Maestro brand logo associated with this card. Provided as an Asset ID ? use the Get Asset API to retrieve the actual asset. Always returned in Product Configuration object <br> __Max Length: 64__<br> __Required: Yes__ * @return brandLogoAssetId **/ public String getBrandLogoAssetId() { return brandLogoAssetId; } public void setBrandLogoAssetId(String brandLogoAssetId) { this.brandLogoAssetId = brandLogoAssetId; } public ProductConfig issuerLogoAssetId(String issuerLogoAssetId) { this.issuerLogoAssetId = issuerLogoAssetId; return this; } /** * The logo of the issuing bank. Provided as an Asset ID ? use the Get Asset API to retrieve the actual asset. Always returned in Product Configuration object <br> __Max Length:64__<br> __Required: Yes__ * @return issuerLogoAssetId **/ public String getIssuerLogoAssetId() { return issuerLogoAssetId; } public void setIssuerLogoAssetId(String issuerLogoAssetId) { this.issuerLogoAssetId = issuerLogoAssetId; } public ProductConfig isCoBranded(String isCoBranded) { this.isCoBranded = isCoBranded; return this; } /** * Whether the product is co-branded. Must be either true (this is a co-branded product) or false (this is not a co-branded product). Always returned in Product Configuration object <br> __Max Length:5__<br> __Required: Yes__ * @return isCoBranded **/ public String getIsCoBranded() { return isCoBranded; } public void setIsCoBranded(String isCoBranded) { this.isCoBranded = isCoBranded; } public ProductConfig coBrandName(String coBrandName) { this.coBrandName = coBrandName; return this; } /** * Textual name of the co-brand partner. Required if CoBranded is true, not present otherwise. <br> __Max Length:128__<br> __Required: Conditional ? required if isCoBranded = \"true\". Not present otherwise__ * @return coBrandName **/ public String getCoBrandName() { return coBrandName; } public void setCoBrandName(String coBrandName) { this.coBrandName = coBrandName; } public ProductConfig coBrandLogoAssetId(String coBrandLogoAssetId) { this.coBrandLogoAssetId = coBrandLogoAssetId; return this; } /** * The co-brand logo (if any) for this product. Provided as an Asset ID ? use the Get Asset API to retrieve the actual asset. <br> __Max Length:64__<br> __Required: No__ * @return coBrandLogoAssetId **/ public String getCoBrandLogoAssetId() { return coBrandLogoAssetId; } public void setCoBrandLogoAssetId(String coBrandLogoAssetId) { this.coBrandLogoAssetId = coBrandLogoAssetId; } public ProductConfig cardBackgroundCombinedAssetId(String cardBackgroundCombinedAssetId) { this.cardBackgroundCombinedAssetId = cardBackgroundCombinedAssetId; return this; } /** * The card image used to represent the digital card in the wallet. This ?combined? option contains the MasterCard, bank and any co- brand logos. Provided as an Asset ID ? use the Get Asset API to retrieve the actual asset. __Max Length:64__<br> __Required: Conditional ? either CardBackgroundCombined or CardBackground will be provided__ * @return cardBackgroundCombinedAssetId **/ public String getCardBackgroundCombinedAssetId() { return cardBackgroundCombinedAssetId; } public void setCardBackgroundCombinedAssetId(String cardBackgroundCombinedAssetId) { this.cardBackgroundCombinedAssetId = cardBackgroundCombinedAssetId; } public ProductConfig cardBackgroundAssetId(String cardBackgroundAssetId) { this.cardBackgroundAssetId = cardBackgroundAssetId; return this; } /** * The card image used to represent the digital card in the wallet. This ?non-combined? option does not contain the MasterCard, bank, or co-brand logos. Provided as an Asset ID ? use the Get Asset API to retrieve the actual asset. <br> __Max Length:64__<br> __Required: Conditional ? either CardBackgroundCombined or CardBackground will be provided__ * @return cardBackgroundAssetId **/ public String getCardBackgroundAssetId() { return cardBackgroundAssetId; } public void setCardBackgroundAssetId(String cardBackgroundAssetId) { this.cardBackgroundAssetId = cardBackgroundAssetId; } public ProductConfig iconAssetId(String iconAssetId) { this.iconAssetId = iconAssetId; return this; } /** * The icon representing the primary brand(s) associated with this product. Provided as an Asset ID ? use the Get Asset API to retrieve the actual asset. Always returned in Product Configuration object<br> __Max Length:64__<br> __Required: Yes__ * @return iconAssetId **/ public String getIconAssetId() { return iconAssetId; } public void setIconAssetId(String iconAssetId) { this.iconAssetId = iconAssetId; } public ProductConfig foregroundColor(String foregroundColor) { this.foregroundColor = foregroundColor; return this; } /** * Foreground color, used to overlay text on top of the card image. Always returned in Product Configuration object<br> __Max Length:6__ Hexadecimal RGB color format (case-insensitive).<br> __Required: Yes__ * @return foregroundColor **/ public String getForegroundColor() { return foregroundColor; } public void setForegroundColor(String foregroundColor) { this.foregroundColor = foregroundColor; } public ProductConfig issuerName(String issuerName) { this.issuerName = issuerName; return this; } /** * Name of the issuing bank. Always returned in Product Configuration object <br> __Max Length:64__<br> __Required: Yes__ * @return issuerName **/ public String getIssuerName() { return issuerName; } public void setIssuerName(String issuerName) { this.issuerName = issuerName; } public ProductConfig shortDescription(String shortDescription) { this.shortDescription = shortDescription; return this; } /** * A short description for this product. Always returned in Product Configuration object <br> __Max Length:128__<br> __Required: Yes__ * @return shortDescription **/ public String getShortDescription() { return shortDescription; } public void setShortDescription(String shortDescription) { this.shortDescription = shortDescription; } public ProductConfig longDescription(String longDescription) { this.longDescription = longDescription; return this; } /** * A long description for this product. <br> __Max Length:256__<br> __Required: No__ * @return longDescription **/ public String getLongDescription() { return longDescription; } public void setLongDescription(String longDescription) { this.longDescription = longDescription; } public ProductConfig customerServiceUrl(String customerServiceUrl) { this.customerServiceUrl = customerServiceUrl; return this; } /** * Customer service website of the issuing bank. <br> __Max Length:128__<br> __Required: No__ * @return customerServiceUrl **/ public String getCustomerServiceUrl() { return customerServiceUrl; } public void setCustomerServiceUrl(String customerServiceUrl) { this.customerServiceUrl = customerServiceUrl; } public ProductConfig customerServiceEmail(String customerServiceEmail) { this.customerServiceEmail = customerServiceEmail; return this; } /** * Customer service email address of the issuing bank. <br> __Max Length:64__<br> __Required: No__ * @return customerServiceEmail **/ public String getCustomerServiceEmail() { return customerServiceEmail; } public void setCustomerServiceEmail(String customerServiceEmail) { this.customerServiceEmail = customerServiceEmail; } public ProductConfig customerServicePhoneNumber(String customerServicePhoneNumber) { this.customerServicePhoneNumber = customerServicePhoneNumber; return this; } /** * Customer service phone number of the issuing bank. <br> __Max Length:64__<br> __Required: No__ * @return customerServicePhoneNumber **/ public String getCustomerServicePhoneNumber() { return customerServicePhoneNumber; } public void setCustomerServicePhoneNumber(String customerServicePhoneNumber) { this.customerServicePhoneNumber = customerServicePhoneNumber; } public ProductConfig issuerMobileApp(Object issuerMobileApp) { this.issuerMobileApp = issuerMobileApp; return this; } /** * Contains one or more mobile app details that may be used to deep link from the Mobile Payment App to the issuer mobile app. <br> __Max Length:64__<br> __Required: No__ * @return issuerMobileApp **/ public Object getIssuerMobileApp() { return issuerMobileApp; } public void setIssuerMobileApp(Object issuerMobileApp) { this.issuerMobileApp = issuerMobileApp; } public ProductConfig onlineBankingLoginUrl(String onlineBankingLoginUrl) { this.onlineBankingLoginUrl = onlineBankingLoginUrl; return this; } /** * Logon URL for the issuing bank?s online banking website.<br> __Max Length:128__ * @return onlineBankingLoginUrl **/ public String getOnlineBankingLoginUrl() { return onlineBankingLoginUrl; } public void setOnlineBankingLoginUrl(String onlineBankingLoginUrl) { this.onlineBankingLoginUrl = onlineBankingLoginUrl; } public ProductConfig termsAndConditionsUrl(String termsAndConditionsUrl) { this.termsAndConditionsUrl = termsAndConditionsUrl; return this; } /** * URL linking to the issuing bank?s terms and conditions for this product.<br> __Max Length:128__<br> __Required: No__ * @return termsAndConditionsUrl **/ public String getTermsAndConditionsUrl() { return termsAndConditionsUrl; } public void setTermsAndConditionsUrl(String termsAndConditionsUrl) { this.termsAndConditionsUrl = termsAndConditionsUrl; } public ProductConfig privacyPolicyUrl(String privacyPolicyUrl) { this.privacyPolicyUrl = privacyPolicyUrl; return this; } /** * URL linking to the issuing bank?s privacy policy for this product.<br> __Max Length:128__<br> __Required: No__ * @return privacyPolicyUrl **/ public String getPrivacyPolicyUrl() { return privacyPolicyUrl; } public void setPrivacyPolicyUrl(String privacyPolicyUrl) { this.privacyPolicyUrl = privacyPolicyUrl; } public ProductConfig issuerProductConfigCode(String issuerProductConfigCode) { this.issuerProductConfigCode = issuerProductConfigCode; return this; } /** * Freeform identifier for this product configuration as assigned by the issuer.<br> __Max Length:128__<br> __Required: No__ * @return issuerProductConfigCode **/ public String getIssuerProductConfigCode() { return issuerProductConfigCode; } public void setIssuerProductConfigCode(String issuerProductConfigCode) { this.issuerProductConfigCode = issuerProductConfigCode; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProductConfig productConfig = (ProductConfig) o; return Objects.equals(this.brandLogoAssetId, productConfig.brandLogoAssetId) && Objects.equals(this.issuerLogoAssetId, productConfig.issuerLogoAssetId) && Objects.equals(this.isCoBranded, productConfig.isCoBranded) && Objects.equals(this.coBrandName, productConfig.coBrandName) && Objects.equals(this.coBrandLogoAssetId, productConfig.coBrandLogoAssetId) && Objects.equals(this.cardBackgroundCombinedAssetId, productConfig.cardBackgroundCombinedAssetId) && Objects.equals(this.cardBackgroundAssetId, productConfig.cardBackgroundAssetId) && Objects.equals(this.iconAssetId, productConfig.iconAssetId) && Objects.equals(this.foregroundColor, productConfig.foregroundColor) && Objects.equals(this.issuerName, productConfig.issuerName) && Objects.equals(this.shortDescription, productConfig.shortDescription) && Objects.equals(this.longDescription, productConfig.longDescription) && Objects.equals(this.customerServiceUrl, productConfig.customerServiceUrl) && Objects.equals(this.customerServiceEmail, productConfig.customerServiceEmail) && Objects.equals(this.customerServicePhoneNumber, productConfig.customerServicePhoneNumber) && Objects.equals(this.issuerMobileApp, productConfig.issuerMobileApp) && Objects.equals(this.onlineBankingLoginUrl, productConfig.onlineBankingLoginUrl) && Objects.equals(this.termsAndConditionsUrl, productConfig.termsAndConditionsUrl) && Objects.equals(this.privacyPolicyUrl, productConfig.privacyPolicyUrl) && Objects.equals(this.issuerProductConfigCode, productConfig.issuerProductConfigCode); } @Override public int hashCode() { return Objects.hash(brandLogoAssetId, issuerLogoAssetId, isCoBranded, coBrandName, coBrandLogoAssetId, cardBackgroundCombinedAssetId, cardBackgroundAssetId, iconAssetId, foregroundColor, issuerName, shortDescription, longDescription, customerServiceUrl, customerServiceEmail, customerServicePhoneNumber, issuerMobileApp, onlineBankingLoginUrl, termsAndConditionsUrl, privacyPolicyUrl, issuerProductConfigCode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProductConfig {\n"); sb.append(" brandLogoAssetId: ").append(toIndentedString(brandLogoAssetId)).append("\n"); sb.append(" issuerLogoAssetId: ").append(toIndentedString(issuerLogoAssetId)).append("\n"); sb.append(" isCoBranded: ").append(toIndentedString(isCoBranded)).append("\n"); sb.append(" coBrandName: ").append(toIndentedString(coBrandName)).append("\n"); sb.append(" coBrandLogoAssetId: ").append(toIndentedString(coBrandLogoAssetId)).append("\n"); sb.append(" cardBackgroundCombinedAssetId: ").append(toIndentedString(cardBackgroundCombinedAssetId)).append("\n"); sb.append(" cardBackgroundAssetId: ").append(toIndentedString(cardBackgroundAssetId)).append("\n"); sb.append(" iconAssetId: ").append(toIndentedString(iconAssetId)).append("\n"); sb.append(" foregroundColor: ").append(toIndentedString(foregroundColor)).append("\n"); sb.append(" issuerName: ").append(toIndentedString(issuerName)).append("\n"); sb.append(" shortDescription: ").append(toIndentedString(shortDescription)).append("\n"); sb.append(" longDescription: ").append(toIndentedString(longDescription)).append("\n"); sb.append(" customerServiceUrl: ").append(toIndentedString(customerServiceUrl)).append("\n"); sb.append(" customerServiceEmail: ").append(toIndentedString(customerServiceEmail)).append("\n"); sb.append(" customerServicePhoneNumber: ").append(toIndentedString(customerServicePhoneNumber)).append("\n"); sb.append(" issuerMobileApp: ").append(toIndentedString(issuerMobileApp)).append("\n"); sb.append(" onlineBankingLoginUrl: ").append(toIndentedString(onlineBankingLoginUrl)).append("\n"); sb.append(" termsAndConditionsUrl: ").append(toIndentedString(termsAndConditionsUrl)).append("\n"); sb.append(" privacyPolicyUrl: ").append(toIndentedString(privacyPolicyUrl)).append("\n"); sb.append(" issuerProductConfigCode: ").append(toIndentedString(issuerProductConfigCode)).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