org.openapitools.client.model.WriteOffSuscriptionRequest 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.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* The financial information of the credit memo items generated to write off the invoice balance.
*/
@ApiModel(description = "The financial information of the credit memo items generated to write off the invoice balance.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class WriteOffSuscriptionRequest {
public static final String SERIALIZED_NAME_ON_ACCOUNT_ACCOUNTING_CODE = "on_account_accounting_code";
@SerializedName(SERIALIZED_NAME_ON_ACCOUNT_ACCOUNTING_CODE)
private String onAccountAccountingCode;
public static final String SERIALIZED_NAME_DEFERRED_REVENUE_ACCOUNTING_CODE = "deferred_revenue_accounting_code";
@SerializedName(SERIALIZED_NAME_DEFERRED_REVENUE_ACCOUNTING_CODE)
private String deferredRevenueAccountingCode;
public static final String SERIALIZED_NAME_RECOGNIZED_REVENUE_ACCOUNTING_CODE = "recognized_revenue_accounting_code";
@SerializedName(SERIALIZED_NAME_RECOGNIZED_REVENUE_ACCOUNTING_CODE)
private String recognizedRevenueAccountingCode;
public static final String SERIALIZED_NAME_REVENUE_RECOGNITION_RULE_NAME = "revenue_recognition_rule_name";
@SerializedName(SERIALIZED_NAME_REVENUE_RECOGNITION_RULE_NAME)
private String revenueRecognitionRuleName;
public WriteOffSuscriptionRequest() {
}
public WriteOffSuscriptionRequest onAccountAccountingCode(String onAccountAccountingCode) {
this.onAccountAccountingCode = onAccountAccountingCode;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return onAccountAccountingCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getOnAccountAccountingCode() {
return onAccountAccountingCode;
}
public void setOnAccountAccountingCode(String onAccountAccountingCode) {
this.onAccountAccountingCode = onAccountAccountingCode;
}
public WriteOffSuscriptionRequest deferredRevenueAccountingCode(String deferredRevenueAccountingCode) {
this.deferredRevenueAccountingCode = deferredRevenueAccountingCode;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return deferredRevenueAccountingCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getDeferredRevenueAccountingCode() {
return deferredRevenueAccountingCode;
}
public void setDeferredRevenueAccountingCode(String deferredRevenueAccountingCode) {
this.deferredRevenueAccountingCode = deferredRevenueAccountingCode;
}
public WriteOffSuscriptionRequest recognizedRevenueAccountingCode(String recognizedRevenueAccountingCode) {
this.recognizedRevenueAccountingCode = recognizedRevenueAccountingCode;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return recognizedRevenueAccountingCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getRecognizedRevenueAccountingCode() {
return recognizedRevenueAccountingCode;
}
public void setRecognizedRevenueAccountingCode(String recognizedRevenueAccountingCode) {
this.recognizedRevenueAccountingCode = recognizedRevenueAccountingCode;
}
public WriteOffSuscriptionRequest revenueRecognitionRuleName(String revenueRecognitionRuleName) {
this.revenueRecognitionRuleName = revenueRecognitionRuleName;
return this;
}
/**
* Name of the revenue recognition rule that you want to apply.
* @return revenueRecognitionRuleName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the revenue recognition rule that you want to apply.")
public String getRevenueRecognitionRuleName() {
return revenueRecognitionRuleName;
}
public void setRevenueRecognitionRuleName(String revenueRecognitionRuleName) {
this.revenueRecognitionRuleName = revenueRecognitionRuleName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WriteOffSuscriptionRequest writeOffSuscriptionRequest = (WriteOffSuscriptionRequest) o;
return Objects.equals(this.onAccountAccountingCode, writeOffSuscriptionRequest.onAccountAccountingCode) &&
Objects.equals(this.deferredRevenueAccountingCode, writeOffSuscriptionRequest.deferredRevenueAccountingCode) &&
Objects.equals(this.recognizedRevenueAccountingCode, writeOffSuscriptionRequest.recognizedRevenueAccountingCode) &&
Objects.equals(this.revenueRecognitionRuleName, writeOffSuscriptionRequest.revenueRecognitionRuleName);
}
@Override
public int hashCode() {
return Objects.hash(onAccountAccountingCode, deferredRevenueAccountingCode, recognizedRevenueAccountingCode, revenueRecognitionRuleName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WriteOffSuscriptionRequest {\n");
sb.append(" onAccountAccountingCode: ").append(toIndentedString(onAccountAccountingCode)).append("\n");
sb.append(" deferredRevenueAccountingCode: ").append(toIndentedString(deferredRevenueAccountingCode)).append("\n");
sb.append(" recognizedRevenueAccountingCode: ").append(toIndentedString(recognizedRevenueAccountingCode)).append("\n");
sb.append(" revenueRecognitionRuleName: ").append(toIndentedString(revenueRecognitionRuleName)).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