
Model.GetSubscriptionResponse1BuyerInformation Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 Model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Customer information used during Follow-On Transaction.
*/
@ApiModel(description = "Customer information used during Follow-On Transaction.")
public class GetSubscriptionResponse1BuyerInformation {
@SerializedName("merchantCustomerID")
private String merchantCustomerID = null;
@SerializedName("email")
private String email = null;
public GetSubscriptionResponse1BuyerInformation merchantCustomerID(String merchantCustomerID) {
this.merchantCustomerID = merchantCustomerID;
return this;
}
/**
* Merchant identifier for the customer.
* @return merchantCustomerID
**/
@ApiModelProperty(value = "Merchant identifier for the customer. ")
public String getMerchantCustomerID() {
return merchantCustomerID;
}
public void setMerchantCustomerID(String merchantCustomerID) {
this.merchantCustomerID = merchantCustomerID;
}
public GetSubscriptionResponse1BuyerInformation email(String email) {
this.email = email;
return this;
}
/**
* Customer's primary email address, including the full domain name.
* @return email
**/
@ApiModelProperty(value = "Customer's primary email address, including the full domain name. ")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetSubscriptionResponse1BuyerInformation getSubscriptionResponse1BuyerInformation = (GetSubscriptionResponse1BuyerInformation) o;
return Objects.equals(this.merchantCustomerID, getSubscriptionResponse1BuyerInformation.merchantCustomerID) &&
Objects.equals(this.email, getSubscriptionResponse1BuyerInformation.email);
}
@Override
public int hashCode() {
return Objects.hash(merchantCustomerID, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetSubscriptionResponse1BuyerInformation {\n");
if (merchantCustomerID != null) sb.append(" merchantCustomerID: ").append(toIndentedString(merchantCustomerID)).append("\n");
if (email != null) sb.append(" email: ").append(toIndentedString(email)).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