org.openapitools.client.model.PostSubscriptionOrderRequest 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.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.model.AccountCreateRequest;
import org.openapitools.client.model.CancelSubscriptionRequest;
import org.openapitools.client.model.FlexibleBillingDocumentSettings;
import org.openapitools.client.model.PauseSubscriptionRequest;
import org.openapitools.client.model.ProcessingOptions;
import org.openapitools.client.model.ResumeSubscriptionRequest;
import org.openapitools.client.model.StartOn;
import org.openapitools.client.model.SubscriptionAddPlanPatchRequest;
import org.openapitools.client.model.SubscriptionPlanCreateRequest;
import org.openapitools.client.model.SubscriptionRemovePlanPatchRequest;
import org.openapitools.client.model.SubscriptionRenewPatchRequest;
import org.openapitools.client.model.SubscriptionReplacePlanPatchRequest;
import org.openapitools.client.model.SubscriptionTermPatchRequest;
import org.openapitools.client.model.SubscriptionUpdatePlanPatchRequest;
import org.openapitools.client.model.Term;
import org.openapitools.jackson.nullable.JsonNullable;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* PostSubscriptionOrderRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PostSubscriptionOrderRequest {
public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "account_number";
@SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
private String accountNumber;
public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
private String accountId;
public static final String SERIALIZED_NAME_ACCOUNT_DATA = "account_data";
@SerializedName(SERIALIZED_NAME_ACCOUNT_DATA)
private AccountCreateRequest accountData;
public static final String SERIALIZED_NAME_INVOICE_OWNER_ACCOUNT_NUMBER = "invoice_owner_account_number";
@SerializedName(SERIALIZED_NAME_INVOICE_OWNER_ACCOUNT_NUMBER)
private String invoiceOwnerAccountNumber;
public static final String SERIALIZED_NAME_AUTO_RENEW = "auto_renew";
@SerializedName(SERIALIZED_NAME_AUTO_RENEW)
private Boolean autoRenew;
public static final String SERIALIZED_NAME_SUBSCRIPTION_NUMBER = "subscription_number";
@SerializedName(SERIALIZED_NAME_SUBSCRIPTION_NUMBER)
private String subscriptionNumber;
public static final String SERIALIZED_NAME_INITIAL_TERM = "initial_term";
@SerializedName(SERIALIZED_NAME_INITIAL_TERM)
private Term initialTerm;
public static final String SERIALIZED_NAME_RENEWAL_TERM = "renewal_term";
@SerializedName(SERIALIZED_NAME_RENEWAL_TERM)
private Term renewalTerm;
public static final String SERIALIZED_NAME_START_ON = "start_on";
@SerializedName(SERIALIZED_NAME_START_ON)
private StartOn startOn;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_INVOICE_SEPARATELY = "invoice_separately";
@SerializedName(SERIALIZED_NAME_INVOICE_SEPARATELY)
private Boolean invoiceSeparately;
public static final String SERIALIZED_NAME_PROCESSING_OPTIONS = "processing_options";
@SerializedName(SERIALIZED_NAME_PROCESSING_OPTIONS)
private ProcessingOptions processingOptions;
public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "custom_fields";
@SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
@JsonAdapter(CustomFieldAdapter.class)
private Map customFields = null;
public static final String SERIALIZED_NAME_SUBSCRIPTION_PLANS = "subscription_plans";
@SerializedName(SERIALIZED_NAME_SUBSCRIPTION_PLANS)
private List subscriptionPlans = null;
public static final String SERIALIZED_NAME_ADD_SUBSCRIPTION_PLANS = "add_subscription_plans";
@SerializedName(SERIALIZED_NAME_ADD_SUBSCRIPTION_PLANS)
private List addSubscriptionPlans = null;
public static final String SERIALIZED_NAME_REMOVE_SUBSCRIPTION_PLANS = "remove_subscription_plans";
@SerializedName(SERIALIZED_NAME_REMOVE_SUBSCRIPTION_PLANS)
private List removeSubscriptionPlans = null;
public static final String SERIALIZED_NAME_UPDATE_SUBSCRIPTION_PLANS = "update_subscription_plans";
@SerializedName(SERIALIZED_NAME_UPDATE_SUBSCRIPTION_PLANS)
private List updateSubscriptionPlans = null;
public static final String SERIALIZED_NAME_RENEW = "renew";
@SerializedName(SERIALIZED_NAME_RENEW)
private SubscriptionRenewPatchRequest renew;
public static final String SERIALIZED_NAME_RENEWALS = "renewals";
@SerializedName(SERIALIZED_NAME_RENEWALS)
private List renewals = null;
public static final String SERIALIZED_NAME_CANCEL = "cancel";
@SerializedName(SERIALIZED_NAME_CANCEL)
private CancelSubscriptionRequest cancel;
public static final String SERIALIZED_NAME_PAUSE = "pause";
@SerializedName(SERIALIZED_NAME_PAUSE)
private PauseSubscriptionRequest pause;
public static final String SERIALIZED_NAME_RESUME = "resume";
@SerializedName(SERIALIZED_NAME_RESUME)
private ResumeSubscriptionRequest resume;
public static final String SERIALIZED_NAME_REPLACE_SUBSCRIPTION_PLANS = "replace_subscription_plans";
@SerializedName(SERIALIZED_NAME_REPLACE_SUBSCRIPTION_PLANS)
private List replaceSubscriptionPlans = null;
public static final String SERIALIZED_NAME_TERMS = "terms";
@SerializedName(SERIALIZED_NAME_TERMS)
private SubscriptionTermPatchRequest terms;
public static final String SERIALIZED_NAME_BILL_TO_ID = "bill_to_id";
@SerializedName(SERIALIZED_NAME_BILL_TO_ID)
@JsonAdapter(NullableFieldAdapter.class)
private String billToId;
public static final String SERIALIZED_NAME_SOLD_TO_ID = "sold_to_id";
@SerializedName(SERIALIZED_NAME_SOLD_TO_ID)
@JsonAdapter(NullableFieldAdapter.class)
private String soldToId;
public static final String SERIALIZED_NAME_PAYMENT_TERMS = "payment_terms";
@SerializedName(SERIALIZED_NAME_PAYMENT_TERMS)
@JsonAdapter(NullableFieldAdapter.class)
private String paymentTerms;
public static final String SERIALIZED_NAME_BILLING_DOCUMENT_SETTINGS = "billing_document_settings";
@SerializedName(SERIALIZED_NAME_BILLING_DOCUMENT_SETTINGS)
private FlexibleBillingDocumentSettings billingDocumentSettings;
public static final String SERIALIZED_NAME_CURRENCY = "currency";
@SerializedName(SERIALIZED_NAME_CURRENCY)
private String currency;
public static final String SERIALIZED_NAME_CHANGE_REASON = "change_reason";
@SerializedName(SERIALIZED_NAME_CHANGE_REASON)
private String changeReason;
public PostSubscriptionOrderRequest() {
}
public PostSubscriptionOrderRequest accountNumber(String accountNumber) {
this.accountNumber = accountNumber;
return this;
}
/**
* Identifier of the account that owns the subscription. Subscription owner account can be different from the invoice owner account. If you specify this field, do not specify `account_data`.
* @return accountNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the account that owns the subscription. Subscription owner account can be different from the invoice owner account. If you specify this field, do not specify `account_data`.")
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
public PostSubscriptionOrderRequest accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Identifier of the account that owns the subscription. Subscription owner account can be different from the invoice owner account. If you specify this field, do not specify `account_data`.
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the account that owns the subscription. Subscription owner account can be different from the invoice owner account. If you specify this field, do not specify `account_data`.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public PostSubscriptionOrderRequest accountData(AccountCreateRequest accountData) {
this.accountData = accountData;
return this;
}
/**
* The information of the new account that owns the subscription. The subscription owner account can be different from the invoice owner account. If you specify this field, do not specify `account_id`.
* @return accountData
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The information of the new account that owns the subscription. The subscription owner account can be different from the invoice owner account. If you specify this field, do not specify `account_id`.")
public AccountCreateRequest getAccountData() {
return accountData;
}
public void setAccountData(AccountCreateRequest accountData) {
this.accountData = accountData;
}
public PostSubscriptionOrderRequest invoiceOwnerAccountNumber(String invoiceOwnerAccountNumber) {
this.invoiceOwnerAccountNumber = invoiceOwnerAccountNumber;
return this;
}
/**
* Identifier of the account that owns the invoice associated with this subscription. If you specify this field, do not specify `invoice_owner_account_data`.
* @return invoiceOwnerAccountNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the account that owns the invoice associated with this subscription. If you specify this field, do not specify `invoice_owner_account_data`.")
public String getInvoiceOwnerAccountNumber() {
return invoiceOwnerAccountNumber;
}
public void setInvoiceOwnerAccountNumber(String invoiceOwnerAccountNumber) {
this.invoiceOwnerAccountNumber = invoiceOwnerAccountNumber;
}
public PostSubscriptionOrderRequest autoRenew(Boolean autoRenew) {
this.autoRenew = autoRenew;
return this;
}
/**
* If true, the subscription automatically renews at the end of the current term.
* @return autoRenew
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If true, the subscription automatically renews at the end of the current term.")
public Boolean getAutoRenew() {
return autoRenew;
}
public void setAutoRenew(Boolean autoRenew) {
this.autoRenew = autoRenew;
}
public PostSubscriptionOrderRequest subscriptionNumber(String subscriptionNumber) {
this.subscriptionNumber = subscriptionNumber;
return this;
}
/**
* Human-readable identifier of the subscription. If an existing `subscription_number` is supplied, the order will update that subscription. Meanwhile, if the specified `subscription_number` does not exist in the tenant, it will instead create a new one
* @return subscriptionNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Human-readable identifier of the subscription. If an existing `subscription_number` is supplied, the order will update that subscription. Meanwhile, if the specified `subscription_number` does not exist in the tenant, it will instead create a new one")
public String getSubscriptionNumber() {
return subscriptionNumber;
}
public void setSubscriptionNumber(String subscriptionNumber) {
this.subscriptionNumber = subscriptionNumber;
}
public PostSubscriptionOrderRequest initialTerm(Term initialTerm) {
this.initialTerm = initialTerm;
return this;
}
/**
* Initial term information for the subscription.
* @return initialTerm
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Initial term information for the subscription.")
public Term getInitialTerm() {
return initialTerm;
}
public void setInitialTerm(Term initialTerm) {
this.initialTerm = initialTerm;
}
public PostSubscriptionOrderRequest renewalTerm(Term renewalTerm) {
this.renewalTerm = renewalTerm;
return this;
}
/**
* Renewal term information for the subscription
* @return renewalTerm
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Renewal term information for the subscription")
public Term getRenewalTerm() {
return renewalTerm;
}
public void setRenewalTerm(Term renewalTerm) {
this.renewalTerm = renewalTerm;
}
public PostSubscriptionOrderRequest startOn(StartOn startOn) {
this.startOn = startOn;
return this;
}
/**
* Get startOn
* @return startOn
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public StartOn getStartOn() {
return startOn;
}
public void setStartOn(StartOn startOn) {
this.startOn = startOn;
}
public PostSubscriptionOrderRequest description(String description) {
this.description = description;
return this;
}
/**
* Description of the subscription. Often useful for displaying to users.
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Description of the subscription. Often useful for displaying to users.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public PostSubscriptionOrderRequest invoiceSeparately(Boolean invoiceSeparately) {
this.invoiceSeparately = invoiceSeparately;
return this;
}
/**
* Separates a single subscription from other subscriptions and creates an invoice for this subscription. If the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.
* @return invoiceSeparately
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Separates a single subscription from other subscriptions and creates an invoice for this subscription. If the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.")
public Boolean getInvoiceSeparately() {
return invoiceSeparately;
}
public void setInvoiceSeparately(Boolean invoiceSeparately) {
this.invoiceSeparately = invoiceSeparately;
}
public PostSubscriptionOrderRequest processingOptions(ProcessingOptions processingOptions) {
this.processingOptions = processingOptions;
return this;
}
/**
* Get processingOptions
* @return processingOptions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ProcessingOptions getProcessingOptions() {
return processingOptions;
}
public void setProcessingOptions(ProcessingOptions processingOptions) {
this.processingOptions = processingOptions;
}
public PostSubscriptionOrderRequest customFields(Map customFields) {
this.customFields = customFields;
return this;
}
public PostSubscriptionOrderRequest putCustomFieldsItem(String key, String customFieldsItem) {
if (this.customFields == null) {
this.customFields = new HashMap();
}
this.customFields.put(key, customFieldsItem);
return this;
}
/**
* Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format.
* @return customFields
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format.")
public Map getCustomFields() {
return customFields;
}
public void setCustomFields(Map customFields) {
this.customFields = customFields;
}
public PostSubscriptionOrderRequest subscriptionPlans(List subscriptionPlans) {
this.subscriptionPlans = subscriptionPlans;
return this;
}
public PostSubscriptionOrderRequest addSubscriptionPlansItem(SubscriptionPlanCreateRequest subscriptionPlansItem) {
if (this.subscriptionPlans == null) {
this.subscriptionPlans = new ArrayList();
}
this.subscriptionPlans.add(subscriptionPlansItem);
return this;
}
/**
* The plans associated with the new subscription.
* @return subscriptionPlans
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The plans associated with the new subscription.")
public List getSubscriptionPlans() {
return subscriptionPlans;
}
public void setSubscriptionPlans(List subscriptionPlans) {
this.subscriptionPlans = subscriptionPlans;
}
public PostSubscriptionOrderRequest addSubscriptionPlans(List addSubscriptionPlans) {
this.addSubscriptionPlans = addSubscriptionPlans;
return this;
}
public PostSubscriptionOrderRequest addAddSubscriptionPlansItem(SubscriptionAddPlanPatchRequest addSubscriptionPlansItem) {
if (this.addSubscriptionPlans == null) {
this.addSubscriptionPlans = new ArrayList();
}
this.addSubscriptionPlans.add(addSubscriptionPlansItem);
return this;
}
/**
* Specify this field if you want to add one or multiple subscription plans to this subscription.
* @return addSubscriptionPlans
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify this field if you want to add one or multiple subscription plans to this subscription.")
public List getAddSubscriptionPlans() {
return addSubscriptionPlans;
}
public void setAddSubscriptionPlans(List addSubscriptionPlans) {
this.addSubscriptionPlans = addSubscriptionPlans;
}
public PostSubscriptionOrderRequest removeSubscriptionPlans(List removeSubscriptionPlans) {
this.removeSubscriptionPlans = removeSubscriptionPlans;
return this;
}
public PostSubscriptionOrderRequest addRemoveSubscriptionPlansItem(SubscriptionRemovePlanPatchRequest removeSubscriptionPlansItem) {
if (this.removeSubscriptionPlans == null) {
this.removeSubscriptionPlans = new ArrayList();
}
this.removeSubscriptionPlans.add(removeSubscriptionPlansItem);
return this;
}
/**
* Specify this field if you want to remove one or multiple subscription plans from this subscription.
* @return removeSubscriptionPlans
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify this field if you want to remove one or multiple subscription plans from this subscription.")
public List getRemoveSubscriptionPlans() {
return removeSubscriptionPlans;
}
public void setRemoveSubscriptionPlans(List removeSubscriptionPlans) {
this.removeSubscriptionPlans = removeSubscriptionPlans;
}
public PostSubscriptionOrderRequest updateSubscriptionPlans(List updateSubscriptionPlans) {
this.updateSubscriptionPlans = updateSubscriptionPlans;
return this;
}
public PostSubscriptionOrderRequest addUpdateSubscriptionPlansItem(SubscriptionUpdatePlanPatchRequest updateSubscriptionPlansItem) {
if (this.updateSubscriptionPlans == null) {
this.updateSubscriptionPlans = new ArrayList();
}
this.updateSubscriptionPlans.add(updateSubscriptionPlansItem);
return this;
}
/**
* Get updateSubscriptionPlans
* @return updateSubscriptionPlans
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getUpdateSubscriptionPlans() {
return updateSubscriptionPlans;
}
public void setUpdateSubscriptionPlans(List updateSubscriptionPlans) {
this.updateSubscriptionPlans = updateSubscriptionPlans;
}
public PostSubscriptionOrderRequest renew(SubscriptionRenewPatchRequest renew) {
this.renew = renew;
return this;
}
/**
* Get renew
* @return renew
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public SubscriptionRenewPatchRequest getRenew() {
return renew;
}
public void setRenew(SubscriptionRenewPatchRequest renew) {
this.renew = renew;
}
public PostSubscriptionOrderRequest renewals(List renewals) {
this.renewals = renewals;
return this;
}
public PostSubscriptionOrderRequest addRenewalsItem(SubscriptionRenewPatchRequest renewalsItem) {
if (this.renewals == null) {
this.renewals = new ArrayList();
}
this.renewals.add(renewalsItem);
return this;
}
/**
* Specify this field when renewing a subscription.
* @return renewals
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify this field when renewing a subscription.")
public List getRenewals() {
return renewals;
}
public void setRenewals(List renewals) {
this.renewals = renewals;
}
public PostSubscriptionOrderRequest cancel(CancelSubscriptionRequest cancel) {
this.cancel = cancel;
return this;
}
/**
* Get cancel
* @return cancel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public CancelSubscriptionRequest getCancel() {
return cancel;
}
public void setCancel(CancelSubscriptionRequest cancel) {
this.cancel = cancel;
}
public PostSubscriptionOrderRequest pause(PauseSubscriptionRequest pause) {
this.pause = pause;
return this;
}
/**
* Get pause
* @return pause
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PauseSubscriptionRequest getPause() {
return pause;
}
public void setPause(PauseSubscriptionRequest pause) {
this.pause = pause;
}
public PostSubscriptionOrderRequest resume(ResumeSubscriptionRequest resume) {
this.resume = resume;
return this;
}
/**
* Get resume
* @return resume
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ResumeSubscriptionRequest getResume() {
return resume;
}
public void setResume(ResumeSubscriptionRequest resume) {
this.resume = resume;
}
public PostSubscriptionOrderRequest replaceSubscriptionPlans(List replaceSubscriptionPlans) {
this.replaceSubscriptionPlans = replaceSubscriptionPlans;
return this;
}
public PostSubscriptionOrderRequest addReplaceSubscriptionPlansItem(SubscriptionReplacePlanPatchRequest replaceSubscriptionPlansItem) {
if (this.replaceSubscriptionPlans == null) {
this.replaceSubscriptionPlans = new ArrayList();
}
this.replaceSubscriptionPlans.add(replaceSubscriptionPlansItem);
return this;
}
/**
* Specify this field if you want to replace one or multiple subscription plans to this subscription. <br /> **Note**: This field is currently not supported if you have Billing - Revenue Integration enabled. When Billing - Revenue Integration is enabled, the replace subscription plan type of order action will no longer be applicable in Zuora Billing.
* @return replaceSubscriptionPlans
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify this field if you want to replace one or multiple subscription plans to this subscription.
**Note**: This field is currently not supported if you have Billing - Revenue Integration enabled. When Billing - Revenue Integration is enabled, the replace subscription plan type of order action will no longer be applicable in Zuora Billing. ")
public List getReplaceSubscriptionPlans() {
return replaceSubscriptionPlans;
}
public void setReplaceSubscriptionPlans(List replaceSubscriptionPlans) {
this.replaceSubscriptionPlans = replaceSubscriptionPlans;
}
public PostSubscriptionOrderRequest terms(SubscriptionTermPatchRequest terms) {
this.terms = terms;
return this;
}
/**
* Get terms
* @return terms
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public SubscriptionTermPatchRequest getTerms() {
return terms;
}
public void setTerms(SubscriptionTermPatchRequest terms) {
this.terms = terms;
}
public PostSubscriptionOrderRequest billToId(String billToId) {
this.billToId = billToId;
return this;
}
/**
* ID of the bill-to contact.
* @return billToId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2c92c0f86a8dd422016a9e7a70116b0d", value = "ID of the bill-to contact.")
public String getBillToId() {
return billToId;
}
public void setBillToId(String billToId) {
this.billToId = billToId;
}
public PostSubscriptionOrderRequest soldToId(String soldToId) {
this.soldToId = soldToId;
return this;
}
/**
* ID of the sold-to contact.
* @return soldToId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2c92c0f86a8dd422016a9e7a70116b0d", value = "ID of the sold-to contact.")
public String getSoldToId() {
return soldToId;
}
public void setSoldToId(String soldToId) {
this.soldToId = soldToId;
}
public PostSubscriptionOrderRequest paymentTerms(String paymentTerms) {
this.paymentTerms = paymentTerms;
return this;
}
/**
* The name of payment term associated with the invoice.
* @return paymentTerms
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The name of payment term associated with the invoice.")
public String getPaymentTerms() {
return paymentTerms;
}
public void setPaymentTerms(String paymentTerms) {
this.paymentTerms = paymentTerms;
}
public PostSubscriptionOrderRequest billingDocumentSettings(FlexibleBillingDocumentSettings billingDocumentSettings) {
this.billingDocumentSettings = billingDocumentSettings;
return this;
}
/**
* The billing document settings for the customer.
* @return billingDocumentSettings
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The billing document settings for the customer.")
public FlexibleBillingDocumentSettings getBillingDocumentSettings() {
return billingDocumentSettings;
}
public void setBillingDocumentSettings(FlexibleBillingDocumentSettings billingDocumentSettings) {
this.billingDocumentSettings = billingDocumentSettings;
}
public PostSubscriptionOrderRequest currency(String currency) {
this.currency = currency;
return this;
}
/**
* 3-letter ISO 4217 currency code. This field is available only if you have the [Multiple Currencies](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies) feature enabled.
* @return currency
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "3-letter ISO 4217 currency code. This field is available only if you have the [Multiple Currencies](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies) feature enabled.")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public PostSubscriptionOrderRequest changeReason(String changeReason) {
this.changeReason = changeReason;
return this;
}
/**
* A brief description of the reason for this change.
* @return changeReason
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A brief description of the reason for this change.")
public String getChangeReason() {
return changeReason;
}
public void setChangeReason(String changeReason) {
this.changeReason = changeReason;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PostSubscriptionOrderRequest postSubscriptionOrderRequest = (PostSubscriptionOrderRequest) o;
return Objects.equals(this.accountNumber, postSubscriptionOrderRequest.accountNumber) &&
Objects.equals(this.accountId, postSubscriptionOrderRequest.accountId) &&
Objects.equals(this.accountData, postSubscriptionOrderRequest.accountData) &&
Objects.equals(this.invoiceOwnerAccountNumber, postSubscriptionOrderRequest.invoiceOwnerAccountNumber) &&
Objects.equals(this.autoRenew, postSubscriptionOrderRequest.autoRenew) &&
Objects.equals(this.subscriptionNumber, postSubscriptionOrderRequest.subscriptionNumber) &&
Objects.equals(this.initialTerm, postSubscriptionOrderRequest.initialTerm) &&
Objects.equals(this.renewalTerm, postSubscriptionOrderRequest.renewalTerm) &&
Objects.equals(this.startOn, postSubscriptionOrderRequest.startOn) &&
Objects.equals(this.description, postSubscriptionOrderRequest.description) &&
Objects.equals(this.invoiceSeparately, postSubscriptionOrderRequest.invoiceSeparately) &&
Objects.equals(this.processingOptions, postSubscriptionOrderRequest.processingOptions) &&
Objects.equals(this.customFields, postSubscriptionOrderRequest.customFields) &&
Objects.equals(this.subscriptionPlans, postSubscriptionOrderRequest.subscriptionPlans) &&
Objects.equals(this.addSubscriptionPlans, postSubscriptionOrderRequest.addSubscriptionPlans) &&
Objects.equals(this.removeSubscriptionPlans, postSubscriptionOrderRequest.removeSubscriptionPlans) &&
Objects.equals(this.updateSubscriptionPlans, postSubscriptionOrderRequest.updateSubscriptionPlans) &&
Objects.equals(this.renew, postSubscriptionOrderRequest.renew) &&
Objects.equals(this.renewals, postSubscriptionOrderRequest.renewals) &&
Objects.equals(this.cancel, postSubscriptionOrderRequest.cancel) &&
Objects.equals(this.pause, postSubscriptionOrderRequest.pause) &&
Objects.equals(this.resume, postSubscriptionOrderRequest.resume) &&
Objects.equals(this.replaceSubscriptionPlans, postSubscriptionOrderRequest.replaceSubscriptionPlans) &&
Objects.equals(this.terms, postSubscriptionOrderRequest.terms) &&
Objects.equals(this.billToId, postSubscriptionOrderRequest.billToId) &&
Objects.equals(this.soldToId, postSubscriptionOrderRequest.soldToId) &&
Objects.equals(this.paymentTerms, postSubscriptionOrderRequest.paymentTerms) &&
Objects.equals(this.billingDocumentSettings, postSubscriptionOrderRequest.billingDocumentSettings) &&
Objects.equals(this.currency, postSubscriptionOrderRequest.currency) &&
Objects.equals(this.changeReason, postSubscriptionOrderRequest.changeReason);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(accountNumber, accountId, accountData, invoiceOwnerAccountNumber, autoRenew, subscriptionNumber, initialTerm, renewalTerm, startOn, description, invoiceSeparately, processingOptions, customFields, subscriptionPlans, addSubscriptionPlans, removeSubscriptionPlans, updateSubscriptionPlans, renew, renewals, cancel, pause, resume, replaceSubscriptionPlans, terms, billToId, soldToId, paymentTerms, billingDocumentSettings, currency, changeReason);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PostSubscriptionOrderRequest {\n");
sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" accountData: ").append(toIndentedString(accountData)).append("\n");
sb.append(" invoiceOwnerAccountNumber: ").append(toIndentedString(invoiceOwnerAccountNumber)).append("\n");
sb.append(" autoRenew: ").append(toIndentedString(autoRenew)).append("\n");
sb.append(" subscriptionNumber: ").append(toIndentedString(subscriptionNumber)).append("\n");
sb.append(" initialTerm: ").append(toIndentedString(initialTerm)).append("\n");
sb.append(" renewalTerm: ").append(toIndentedString(renewalTerm)).append("\n");
sb.append(" startOn: ").append(toIndentedString(startOn)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" invoiceSeparately: ").append(toIndentedString(invoiceSeparately)).append("\n");
sb.append(" processingOptions: ").append(toIndentedString(processingOptions)).append("\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
sb.append(" subscriptionPlans: ").append(toIndentedString(subscriptionPlans)).append("\n");
sb.append(" addSubscriptionPlans: ").append(toIndentedString(addSubscriptionPlans)).append("\n");
sb.append(" removeSubscriptionPlans: ").append(toIndentedString(removeSubscriptionPlans)).append("\n");
sb.append(" updateSubscriptionPlans: ").append(toIndentedString(updateSubscriptionPlans)).append("\n");
sb.append(" renew: ").append(toIndentedString(renew)).append("\n");
sb.append(" renewals: ").append(toIndentedString(renewals)).append("\n");
sb.append(" cancel: ").append(toIndentedString(cancel)).append("\n");
sb.append(" pause: ").append(toIndentedString(pause)).append("\n");
sb.append(" resume: ").append(toIndentedString(resume)).append("\n");
sb.append(" replaceSubscriptionPlans: ").append(toIndentedString(replaceSubscriptionPlans)).append("\n");
sb.append(" terms: ").append(toIndentedString(terms)).append("\n");
sb.append(" billToId: ").append(toIndentedString(billToId)).append("\n");
sb.append(" soldToId: ").append(toIndentedString(soldToId)).append("\n");
sb.append(" paymentTerms: ").append(toIndentedString(paymentTerms)).append("\n");
sb.append(" billingDocumentSettings: ").append(toIndentedString(billingDocumentSettings)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" changeReason: ").append(toIndentedString(changeReason)).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