org.openapitools.client.model.SubscriptionPreviewResponse 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 java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.SubscriptionPreviewActionsResponse;
import org.openapitools.client.model.SubscriptionPreviewBillingDocumentsResponse;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* SubscriptionPreviewResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SubscriptionPreviewResponse {
public static final String SERIALIZED_NAME_ACTIONS = "actions";
@SerializedName(SERIALIZED_NAME_ACTIONS)
private List actions = null;
public static final String SERIALIZED_NAME_BILLING_DOCUMENTS = "billing_documents";
@SerializedName(SERIALIZED_NAME_BILLING_DOCUMENTS)
private List billingDocuments = null;
public SubscriptionPreviewResponse() {
}
public SubscriptionPreviewResponse actions(List actions) {
this.actions = actions;
return this;
}
public SubscriptionPreviewResponse addActionsItem(SubscriptionPreviewActionsResponse actionsItem) {
if (this.actions == null) {
this.actions = new ArrayList();
}
this.actions.add(actionsItem);
return this;
}
/**
* Get actions
* @return actions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getActions() {
return actions;
}
public void setActions(List actions) {
this.actions = actions;
}
public SubscriptionPreviewResponse billingDocuments(List billingDocuments) {
this.billingDocuments = billingDocuments;
return this;
}
public SubscriptionPreviewResponse addBillingDocumentsItem(SubscriptionPreviewBillingDocumentsResponse billingDocumentsItem) {
if (this.billingDocuments == null) {
this.billingDocuments = new ArrayList();
}
this.billingDocuments.add(billingDocumentsItem);
return this;
}
/**
* Get billingDocuments
* @return billingDocuments
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getBillingDocuments() {
return billingDocuments;
}
public void setBillingDocuments(List billingDocuments) {
this.billingDocuments = billingDocuments;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubscriptionPreviewResponse subscriptionPreviewResponse = (SubscriptionPreviewResponse) o;
return Objects.equals(this.actions, subscriptionPreviewResponse.actions) &&
Objects.equals(this.billingDocuments, subscriptionPreviewResponse.billingDocuments);
}
@Override
public int hashCode() {
return Objects.hash(actions, billingDocuments);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubscriptionPreviewResponse {\n");
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
sb.append(" billingDocuments: ").append(toIndentedString(billingDocuments)).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