com.github.GBSEcom.model.BasketItem Maven / Gradle / Ivy
/*
* 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.Amount;
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;
/**
* BasketItem
*/
public class BasketItem {
@SerializedName("id")
private String id = null;
@SerializedName("description")
private String description = null;
@SerializedName("unitPrice")
private Amount unitPrice = null;
@SerializedName("count")
private Integer count = null;
public BasketItem id(String id) {
this.id = id;
return this;
}
/**
* Item ID
* @return id
**/
@ApiModelProperty(value = "Item ID")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public BasketItem description(String description) {
this.description = description;
return this;
}
/**
* Referenced parent Business Entity ID in master database for the outlets // COPY-PASTE ERROR?
* @return description
**/
@ApiModelProperty(value = "Referenced parent Business Entity ID in master database for the outlets // COPY-PASTE ERROR?")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public BasketItem unitPrice(Amount unitPrice) {
this.unitPrice = unitPrice;
return this;
}
/**
* Get unitPrice
* @return unitPrice
**/
@ApiModelProperty(value = "")
public Amount getUnitPrice() {
return unitPrice;
}
public void setUnitPrice(Amount unitPrice) {
this.unitPrice = unitPrice;
}
public BasketItem count(Integer count) {
this.count = count;
return this;
}
/**
* Total quantity of items
* @return count
**/
@ApiModelProperty(value = "Total quantity of items")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BasketItem basketItem = (BasketItem) o;
return Objects.equals(this.id, basketItem.id) &&
Objects.equals(this.description, basketItem.description) &&
Objects.equals(this.unitPrice, basketItem.unitPrice) &&
Objects.equals(this.count, basketItem.count);
}
@Override
public int hashCode() {
return Objects.hash(id, description, unitPrice, count);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BasketItem {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).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