com.criteo.marketing.model.Installment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marketing.java-client Show documentation
Show all versions of marketing.java-client Show documentation
Criteo Marketing SDK for Java
/*
* Marketing API v.1.0
* IMPORTANT: This swagger links to Criteo production environment. Any test applied here will thus impact real campaigns.
*
* OpenAPI spec version: v.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.criteo.marketing.model;
import java.util.Objects;
import java.util.Arrays;
import com.criteo.marketing.model.InstallmentAmount;
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;
/**
* Installment
*/
public class Installment {
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private InstallmentAmount amount = null;
public static final String SERIALIZED_NAME_MONTHS = "months";
@SerializedName(SERIALIZED_NAME_MONTHS)
private Long months;
public Installment amount(InstallmentAmount amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
**/
@ApiModelProperty(value = "")
public InstallmentAmount getAmount() {
return amount;
}
public void setAmount(InstallmentAmount amount) {
this.amount = amount;
}
public Installment months(Long months) {
this.months = months;
return this;
}
/**
* Get months
* @return months
**/
@ApiModelProperty(value = "")
public Long getMonths() {
return months;
}
public void setMonths(Long months) {
this.months = months;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Installment installment = (Installment) o;
return Objects.equals(this.amount, installment.amount) &&
Objects.equals(this.months, installment.months);
}
@Override
public int hashCode() {
return Objects.hash(amount, months);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Installment {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" months: ").append(toIndentedString(months)).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 ");
}
}