com.github.GBSEcom.model.CarRental Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of first-data-gateway Show documentation
Show all versions of first-data-gateway Show documentation
Java SDK to be used with a First Data Gateway account. This SDK has been created and packaged to offer the easiest way to integrate your application into the First Data Gateway. This SDK gives you the ability to run transactions such as sales, preauthorizations, postauthorizations, credits, voids, and returns; transaction inquiries; setting up scheduled payments and much more.
/*
* Payment Gateway API Specification
* Payment Gateway API for payment processing.
*
* 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 com.github.GBSEcom.model;
import java.util.Objects;
import com.github.GBSEcom.model.CarRentalExtraCharges;
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;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
/**
* CarRental
*/
public class CarRental {
@SerializedName("agreementNumber")
private String agreementNumber = null;
@SerializedName("renterName")
private String renterName = null;
@SerializedName("returnCity")
private String returnCity = null;
@SerializedName("returnDate")
private LocalDate returnDate = null;
@SerializedName("pickupDate")
private LocalDate pickupDate = null;
@SerializedName("rentalClassId")
private String rentalClassId = null;
@SerializedName("extraCharges")
private List extraCharges = null;
@SerializedName("noShowIndicator")
private Boolean noShowIndicator = null;
public CarRental agreementNumber(String agreementNumber) {
this.agreementNumber = agreementNumber;
return this;
}
/**
* Get agreementNumber
* @return agreementNumber
**/
@ApiModelProperty(value = "")
public String getAgreementNumber() {
return agreementNumber;
}
public void setAgreementNumber(String agreementNumber) {
this.agreementNumber = agreementNumber;
}
public CarRental renterName(String renterName) {
this.renterName = renterName;
return this;
}
/**
* Get renterName
* @return renterName
**/
@ApiModelProperty(value = "")
public String getRenterName() {
return renterName;
}
public void setRenterName(String renterName) {
this.renterName = renterName;
}
public CarRental returnCity(String returnCity) {
this.returnCity = returnCity;
return this;
}
/**
* Get returnCity
* @return returnCity
**/
@ApiModelProperty(value = "")
public String getReturnCity() {
return returnCity;
}
public void setReturnCity(String returnCity) {
this.returnCity = returnCity;
}
public CarRental returnDate(LocalDate returnDate) {
this.returnDate = returnDate;
return this;
}
/**
* Get returnDate
* @return returnDate
**/
@ApiModelProperty(value = "")
public LocalDate getReturnDate() {
return returnDate;
}
public void setReturnDate(LocalDate returnDate) {
this.returnDate = returnDate;
}
public CarRental pickupDate(LocalDate pickupDate) {
this.pickupDate = pickupDate;
return this;
}
/**
* Get pickupDate
* @return pickupDate
**/
@ApiModelProperty(value = "")
public LocalDate getPickupDate() {
return pickupDate;
}
public void setPickupDate(LocalDate pickupDate) {
this.pickupDate = pickupDate;
}
public CarRental rentalClassId(String rentalClassId) {
this.rentalClassId = rentalClassId;
return this;
}
/**
* Get rentalClassId
* @return rentalClassId
**/
@ApiModelProperty(value = "")
public String getRentalClassId() {
return rentalClassId;
}
public void setRentalClassId(String rentalClassId) {
this.rentalClassId = rentalClassId;
}
public CarRental extraCharges(List extraCharges) {
this.extraCharges = extraCharges;
return this;
}
public CarRental addExtraChargesItem(CarRentalExtraCharges extraChargesItem) {
if (this.extraCharges == null) {
this.extraCharges = new ArrayList<>();
}
this.extraCharges.add(extraChargesItem);
return this;
}
/**
* Get extraCharges
* @return extraCharges
**/
@ApiModelProperty(value = "")
public List getExtraCharges() {
return extraCharges;
}
public void setExtraCharges(List extraCharges) {
this.extraCharges = extraCharges;
}
public CarRental noShowIndicator(Boolean noShowIndicator) {
this.noShowIndicator = noShowIndicator;
return this;
}
/**
* Get noShowIndicator
* @return noShowIndicator
**/
@ApiModelProperty(value = "")
public Boolean isNoShowIndicator() {
return noShowIndicator;
}
public void setNoShowIndicator(Boolean noShowIndicator) {
this.noShowIndicator = noShowIndicator;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CarRental carRental = (CarRental) o;
return Objects.equals(this.agreementNumber, carRental.agreementNumber) &&
Objects.equals(this.renterName, carRental.renterName) &&
Objects.equals(this.returnCity, carRental.returnCity) &&
Objects.equals(this.returnDate, carRental.returnDate) &&
Objects.equals(this.pickupDate, carRental.pickupDate) &&
Objects.equals(this.rentalClassId, carRental.rentalClassId) &&
Objects.equals(this.extraCharges, carRental.extraCharges) &&
Objects.equals(this.noShowIndicator, carRental.noShowIndicator);
}
@Override
public int hashCode() {
return Objects.hash(agreementNumber, renterName, returnCity, returnDate, pickupDate, rentalClassId, extraCharges, noShowIndicator);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CarRental {\n");
sb.append(" agreementNumber: ").append(toIndentedString(agreementNumber)).append("\n");
sb.append(" renterName: ").append(toIndentedString(renterName)).append("\n");
sb.append(" returnCity: ").append(toIndentedString(returnCity)).append("\n");
sb.append(" returnDate: ").append(toIndentedString(returnDate)).append("\n");
sb.append(" pickupDate: ").append(toIndentedString(pickupDate)).append("\n");
sb.append(" rentalClassId: ").append(toIndentedString(rentalClassId)).append("\n");
sb.append(" extraCharges: ").append(toIndentedString(extraCharges)).append("\n");
sb.append(" noShowIndicator: ").append(toIndentedString(noShowIndicator)).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