infobip.api.model.Price Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
package infobip.api.model;
import java.math.BigDecimal;
/**
* This is a generated class and is not intended for modification!
*/
public class Price {
private BigDecimal pricePerLookup;
private BigDecimal pricePerMessage;
private String currency;
public Price() {
}
public BigDecimal getPricePerLookup() {
return this.pricePerLookup;
}
public Price setPricePerLookup(BigDecimal pricePerLookup) {
this.pricePerLookup = pricePerLookup;
return this;
}
public BigDecimal getPricePerMessage() {
return this.pricePerMessage;
}
public Price setPricePerMessage(BigDecimal pricePerMessage) {
this.pricePerMessage = pricePerMessage;
return this;
}
public String getCurrency() {
return this.currency;
}
public Price setCurrency(String currency) {
this.currency = currency;
return this;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
Price o = (Price)obj;
if (this.pricePerLookup == null) {
if (o.pricePerLookup != null){
return false;
}
} else if (!this.pricePerLookup.equals(o.pricePerLookup)) {
return false;
}
if (this.pricePerMessage == null) {
if (o.pricePerMessage != null){
return false;
}
} else if (!this.pricePerMessage.equals(o.pricePerMessage)) {
return false;
}
if (this.currency == null) {
if (o.currency != null){
return false;
}
} else if (!this.currency.equals(o.currency)) {
return false;
}
return true;
}
@Override
public String toString() {
return "Price{" +
"pricePerLookup='" + pricePerLookup + "'" +
", pricePerMessage='" + pricePerMessage + "'" +
", currency='" + currency + "'" +
'}';
}
}