fi.metatavu.dcfb.client.Price Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dcfb-api-client Show documentation
Show all versions of dcfb-api-client Show documentation
Metaform API specifications
/*
* DCFB API
* API spec for DCFB API.
*
* 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 fi.metatavu.dcfb.client;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Price
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-11T15:10:38.040+03:00")
public class Price {
@JsonProperty("price")
private String price = null;
@JsonProperty("currency")
private String currency = null;
public Price price(String price) {
this.price = price;
return this;
}
/**
* price with two decimal places. e.g. 13.00
* @return price
**/
@ApiModelProperty(value = "price with two decimal places. e.g. 13.00")
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public Price currency(String currency) {
this.currency = currency;
return this;
}
/**
* Currency code (ISO 4217)
* @return currency
**/
@ApiModelProperty(value = "Currency code (ISO 4217)")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Price price = (Price) o;
return Objects.equals(this.price, price.price) &&
Objects.equals(this.currency, price.currency);
}
@Override
public int hashCode() {
return Objects.hash(price, currency);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Price {\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).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 ");
}
}