org.openapitools.client.model.CustomerAcceptanceMandate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuora-sdk-java Show documentation
Show all versions of zuora-sdk-java Show documentation
The SDK of JAVA language for Zuora pricing system
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/
package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
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 org.threeten.bp.LocalDate;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* Details about the customer’s acceptance of the mandate.
*/
@ApiModel(description = "Details about the customer’s acceptance of the mandate.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomerAcceptanceMandate {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_DATE = "date";
@SerializedName(SERIALIZED_NAME_DATE)
private LocalDate date;
public CustomerAcceptanceMandate() {
}
public CustomerAcceptanceMandate(
String id,
LocalDate date
) {
this();
this.id = id;
this.date = date;
}
/**
* A reference to the consent agreement you have with your customer.
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A reference to the consent agreement you have with your customer.")
public String getId() {
return id;
}
/**
* The date on which the customer accepted the mandate.
* @return date
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date on which the customer accepted the mandate.")
public LocalDate getDate() {
return date;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomerAcceptanceMandate customerAcceptanceMandate = (CustomerAcceptanceMandate) o;
return Objects.equals(this.id, customerAcceptanceMandate.id) &&
Objects.equals(this.date, customerAcceptanceMandate.date);
}
@Override
public int hashCode() {
return Objects.hash(id, date);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CustomerAcceptanceMandate {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy