
com.wallee.sdk.mdes.model.BillingAddress 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;
/**
* BillingAddress
*/
public class BillingAddress {
@SerializedName("line1")
private String line1 = null;
@SerializedName("line2")
private String line2 = null;
@SerializedName("city")
private String city = null;
@SerializedName("countrySubdivision")
private String countrySubdivision = null;
@SerializedName("postalCode")
private String postalCode = null;
@SerializedName("country")
private String country = null;
public BillingAddress line1(String line1) {
this.line1 = line1;
return this;
}
/**
* __(OPTIONAL)__<br> The first line of the street address for the billing address.<br> __Max Length:64__
* @return line1
**/
public String getLine1() {
return line1;
}
public void setLine1(String line1) {
this.line1 = line1;
}
public BillingAddress line2(String line2) {
this.line2 = line2;
return this;
}
/**
* __(OPTIONAL)__ The second line of the street address for the billing address.<br> __Max Length:64__
* @return line2
**/
public String getLine2() {
return line2;
}
public void setLine2(String line2) {
this.line2 = line2;
}
public BillingAddress city(String city) {
this.city = city;
return this;
}
/**
* __(OPTIONAL)__<br> The city of the billing address.<br> __Max Length:32__
* @return city
**/
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public BillingAddress countrySubdivision(String countrySubdivision) {
this.countrySubdivision = countrySubdivision;
return this;
}
/**
* __(OPTIONAL)__<br> The state or country subdivision of the billing address.<br> __Max Length:12__
* @return countrySubdivision
**/
public String getCountrySubdivision() {
return countrySubdivision;
}
public void setCountrySubdivision(String countrySubdivision) {
this.countrySubdivision = countrySubdivision;
}
public BillingAddress postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* __(OPTIONAL)__<br> The postal of code of the billing address.<br> __Max Length:16__
* @return postalCode
**/
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public BillingAddress country(String country) {
this.country = country;
return this;
}
/**
* __(OPTIONAL)__ The country of the billing address. <br> __Max Length:3__
* @return country
**/
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BillingAddress billingAddress = (BillingAddress) o;
return Objects.equals(this.line1, billingAddress.line1) &&
Objects.equals(this.line2, billingAddress.line2) &&
Objects.equals(this.city, billingAddress.city) &&
Objects.equals(this.countrySubdivision, billingAddress.countrySubdivision) &&
Objects.equals(this.postalCode, billingAddress.postalCode) &&
Objects.equals(this.country, billingAddress.country);
}
@Override
public int hashCode() {
return Objects.hash(line1, line2, city, countrySubdivision, postalCode, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BillingAddress {\n");
sb.append(" line1: ").append(toIndentedString(line1)).append("\n");
sb.append(" line2: ").append(toIndentedString(line2)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" countrySubdivision: ").append(toIndentedString(countrySubdivision)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).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