
Model.Ptsv2paymentreferencesTravelInformationAutoRental 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.Ptsv2paymentsTravelInformationAutoRentalRentalAddress;
import Model.Ptsv2paymentsTravelInformationAutoRentalReturnAddress;
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;
/**
* Ptsv2paymentreferencesTravelInformationAutoRental
*/
public class Ptsv2paymentreferencesTravelInformationAutoRental {
@SerializedName("companyName")
private String companyName = null;
@SerializedName("affiliateName")
private String affiliateName = null;
@SerializedName("rentalAddress")
private Ptsv2paymentsTravelInformationAutoRentalRentalAddress rentalAddress = null;
@SerializedName("returnAddress")
private Ptsv2paymentsTravelInformationAutoRentalReturnAddress returnAddress = null;
@SerializedName("returnDateTime")
private String returnDateTime = null;
@SerializedName("rentalDateTime")
private String rentalDateTime = null;
@SerializedName("customerName")
private String customerName = null;
public Ptsv2paymentreferencesTravelInformationAutoRental companyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
* Merchant to send their auto rental company name
* @return companyName
**/
@ApiModelProperty(value = "Merchant to send their auto rental company name ")
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public Ptsv2paymentreferencesTravelInformationAutoRental affiliateName(String affiliateName) {
this.affiliateName = affiliateName;
return this;
}
/**
* When merchant wants to send the affiliate name.
* @return affiliateName
**/
@ApiModelProperty(value = "When merchant wants to send the affiliate name. ")
public String getAffiliateName() {
return affiliateName;
}
public void setAffiliateName(String affiliateName) {
this.affiliateName = affiliateName;
}
public Ptsv2paymentreferencesTravelInformationAutoRental rentalAddress(Ptsv2paymentsTravelInformationAutoRentalRentalAddress rentalAddress) {
this.rentalAddress = rentalAddress;
return this;
}
/**
* Get rentalAddress
* @return rentalAddress
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsTravelInformationAutoRentalRentalAddress getRentalAddress() {
return rentalAddress;
}
public void setRentalAddress(Ptsv2paymentsTravelInformationAutoRentalRentalAddress rentalAddress) {
this.rentalAddress = rentalAddress;
}
public Ptsv2paymentreferencesTravelInformationAutoRental returnAddress(Ptsv2paymentsTravelInformationAutoRentalReturnAddress returnAddress) {
this.returnAddress = returnAddress;
return this;
}
/**
* Get returnAddress
* @return returnAddress
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsTravelInformationAutoRentalReturnAddress getReturnAddress() {
return returnAddress;
}
public void setReturnAddress(Ptsv2paymentsTravelInformationAutoRentalReturnAddress returnAddress) {
this.returnAddress = returnAddress;
}
public Ptsv2paymentreferencesTravelInformationAutoRental returnDateTime(String returnDateTime) {
this.returnDateTime = returnDateTime;
return this;
}
/**
* Date/time the auto was returned to the rental agency. Format: ``yyyy-MM-dd HH-mm-ss z`` This field is supported for Visa, MasterCard, and American Express.
* @return returnDateTime
**/
@ApiModelProperty(value = "Date/time the auto was returned to the rental agency. Format: ``yyyy-MM-dd HH-mm-ss z`` This field is supported for Visa, MasterCard, and American Express. ")
public String getReturnDateTime() {
return returnDateTime;
}
public void setReturnDateTime(String returnDateTime) {
this.returnDateTime = returnDateTime;
}
public Ptsv2paymentreferencesTravelInformationAutoRental rentalDateTime(String rentalDateTime) {
this.rentalDateTime = rentalDateTime;
return this;
}
/**
* Date/time the auto was picked up from the rental agency. Format: `yyyy-MM-dd HH-mm-ss z` This field is supported for Visa, MasterCard, and American Express.
* @return rentalDateTime
**/
@ApiModelProperty(value = "Date/time the auto was picked up from the rental agency. Format: `yyyy-MM-dd HH-mm-ss z` This field is supported for Visa, MasterCard, and American Express. ")
public String getRentalDateTime() {
return rentalDateTime;
}
public void setRentalDateTime(String rentalDateTime) {
this.rentalDateTime = rentalDateTime;
}
public Ptsv2paymentreferencesTravelInformationAutoRental customerName(String customerName) {
this.customerName = customerName;
return this;
}
/**
* Name of the individual making the rental agreement. Valid data lengths by card: |Card Specific Validation|VISA|MasterCard|Discover|AMEX| |--- |--- |--- |--- | | Filed Length| 40| 40| 29| 26| | Field Type| AN| ANS| AN| AN| | M/O/C| O| M| M| M|
* @return customerName
**/
@ApiModelProperty(value = "Name of the individual making the rental agreement. Valid data lengths by card: |Card Specific Validation|VISA|MasterCard|Discover|AMEX| |--- |--- |--- |--- | | Filed Length| 40| 40| 29| 26| | Field Type| AN| ANS| AN| AN| | M/O/C| O| M| M| M| ")
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv2paymentreferencesTravelInformationAutoRental ptsv2paymentreferencesTravelInformationAutoRental = (Ptsv2paymentreferencesTravelInformationAutoRental) o;
return Objects.equals(this.companyName, ptsv2paymentreferencesTravelInformationAutoRental.companyName) &&
Objects.equals(this.affiliateName, ptsv2paymentreferencesTravelInformationAutoRental.affiliateName) &&
Objects.equals(this.rentalAddress, ptsv2paymentreferencesTravelInformationAutoRental.rentalAddress) &&
Objects.equals(this.returnAddress, ptsv2paymentreferencesTravelInformationAutoRental.returnAddress) &&
Objects.equals(this.returnDateTime, ptsv2paymentreferencesTravelInformationAutoRental.returnDateTime) &&
Objects.equals(this.rentalDateTime, ptsv2paymentreferencesTravelInformationAutoRental.rentalDateTime) &&
Objects.equals(this.customerName, ptsv2paymentreferencesTravelInformationAutoRental.customerName);
}
@Override
public int hashCode() {
return Objects.hash(companyName, affiliateName, rentalAddress, returnAddress, returnDateTime, rentalDateTime, customerName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2paymentreferencesTravelInformationAutoRental {\n");
if (companyName != null) sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
if (affiliateName != null) sb.append(" affiliateName: ").append(toIndentedString(affiliateName)).append("\n");
if (rentalAddress != null) sb.append(" rentalAddress: ").append(toIndentedString(rentalAddress)).append("\n");
if (returnAddress != null) sb.append(" returnAddress: ").append(toIndentedString(returnAddress)).append("\n");
if (returnDateTime != null) sb.append(" returnDateTime: ").append(toIndentedString(returnDateTime)).append("\n");
if (rentalDateTime != null) sb.append(" rentalDateTime: ").append(toIndentedString(rentalDateTime)).append("\n");
if (customerName != null) sb.append(" customerName: ").append(toIndentedString(customerName)).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