Model.Ptsv2paymentsHostedPaymentInformation 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 Model.Ptsv2paymentsHostedPaymentInformationUserAgent;
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;
/**
* Ptsv2paymentsHostedPaymentInformation
*/
public class Ptsv2paymentsHostedPaymentInformation {
@SerializedName("hostName")
private String hostName = null;
@SerializedName("ipAddress")
private String ipAddress = null;
@SerializedName("userAgent")
private Ptsv2paymentsHostedPaymentInformationUserAgent userAgent = null;
public Ptsv2paymentsHostedPaymentInformation hostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* The title of the hosted payment page, displayed in the browser's tab. If not set, defaults to the title set in the merchant configuration.
* @return hostName
**/
@ApiModelProperty(value = "The title of the hosted payment page, displayed in the browser's tab. If not set, defaults to the title set in the merchant configuration. ")
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public Ptsv2paymentsHostedPaymentInformation ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* URL of the merchant's logo to be displayed in Klarna's hosted payment page. If not set, defaults to the logo set in the merchant configuration.
* @return ipAddress
**/
@ApiModelProperty(value = "URL of the merchant's logo to be displayed in Klarna's hosted payment page. If not set, defaults to the logo set in the merchant configuration. ")
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public Ptsv2paymentsHostedPaymentInformation userAgent(Ptsv2paymentsHostedPaymentInformationUserAgent userAgent) {
this.userAgent = userAgent;
return this;
}
/**
* Get userAgent
* @return userAgent
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsHostedPaymentInformationUserAgent getUserAgent() {
return userAgent;
}
public void setUserAgent(Ptsv2paymentsHostedPaymentInformationUserAgent userAgent) {
this.userAgent = userAgent;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv2paymentsHostedPaymentInformation ptsv2paymentsHostedPaymentInformation = (Ptsv2paymentsHostedPaymentInformation) o;
return Objects.equals(this.hostName, ptsv2paymentsHostedPaymentInformation.hostName) &&
Objects.equals(this.ipAddress, ptsv2paymentsHostedPaymentInformation.ipAddress) &&
Objects.equals(this.userAgent, ptsv2paymentsHostedPaymentInformation.userAgent);
}
@Override
public int hashCode() {
return Objects.hash(hostName, ipAddress, userAgent);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2paymentsHostedPaymentInformation {\n");
sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" userAgent: ").append(toIndentedString(userAgent)).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