com.hopper.cloud.airlines.model.tokenization.PaymentMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloud-airlines-java Show documentation
Show all versions of cloud-airlines-java Show documentation
Use the Hopper cloud airlines Web Services in Java!
The newest version!
package com.hopper.cloud.airlines.model.tokenization;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
public class PaymentMethod {
@JsonProperty("credit_card")
private CreditCard creditCard;
@JsonProperty("encryption_certificate_token")
private String encryptionCertificateToken;
@JsonProperty("encrypted_fields")
private String encryptedFields;
private String email;
public PaymentMethod() {
}
public CreditCard getCreditCard() {
return creditCard;
}
public void setCreditCard(CreditCard creditCard) {
this.creditCard = creditCard;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getEncryptionCertificateToken() {
return encryptionCertificateToken;
}
public void setEncryptionCertificateToken(String encryptionCertificateToken) {
this.encryptionCertificateToken = encryptionCertificateToken;
}
public String getEncryptedFields() {
return encryptedFields;
}
public void setEncryptedFields(String encryptedFields) {
this.encryptedFields = encryptedFields;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentMethod paymentMethod = (PaymentMethod) o;
return Objects.equals(this.creditCard, paymentMethod.creditCard) &&
Objects.equals(this.email, paymentMethod.email) &&
Objects.equals(this.encryptionCertificateToken, paymentMethod.encryptionCertificateToken) &&
Objects.equals(this.encryptedFields, paymentMethod.encryptedFields);
}
@Override
public int hashCode() {
return Objects.hash(creditCard, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentMethod {\n");
sb.append(" creditCard: ").append(toIndentedString(creditCard)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" encryptionCertificateToken: ").append(toIndentedString(encryptionCertificateToken)).append("\n");
sb.append(" encryptedFields: ").append(toIndentedString(encryptedFields)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy