org.openapitools.client.model.OrderLineItem 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.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.model.CustomObject;
import org.openapitools.client.model.InvoiceItemListResponse;
import org.openapitools.client.model.ListCustomObjectResponse;
import org.openapitools.client.model.OrderLineItemRevenue;
import org.openapitools.jackson.nullable.JsonNullable;
import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* Data of order line items.
*/
@ApiModel(description = "Data of order line items.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class OrderLineItem {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_UPDATED_BY_ID = "updated_by_id";
@SerializedName(SERIALIZED_NAME_UPDATED_BY_ID)
private String updatedById;
public static final String SERIALIZED_NAME_UPDATED_TIME = "updated_time";
@SerializedName(SERIALIZED_NAME_UPDATED_TIME)
private OffsetDateTime updatedTime;
public static final String SERIALIZED_NAME_CREATED_BY_ID = "created_by_id";
@SerializedName(SERIALIZED_NAME_CREATED_BY_ID)
private String createdById;
public static final String SERIALIZED_NAME_CREATED_TIME = "created_time";
@SerializedName(SERIALIZED_NAME_CREATED_TIME)
private OffsetDateTime createdTime;
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_CUSTOM_OBJECTS = "custom_objects";
@SerializedName(SERIALIZED_NAME_CUSTOM_OBJECTS)
private Map customObjects = null;
public static final String SERIALIZED_NAME_REVENUE = "revenue";
@SerializedName(SERIALIZED_NAME_REVENUE)
private OrderLineItemRevenue revenue;
public static final String SERIALIZED_NAME_UNIT_OF_MEASURE = "unit_of_measure";
@SerializedName(SERIALIZED_NAME_UNIT_OF_MEASURE)
private String unitOfMeasure;
public static final String SERIALIZED_NAME_ACCOUNTING_CODE = "accounting_code";
@SerializedName(SERIALIZED_NAME_ACCOUNTING_CODE)
private String accountingCode;
public static final String SERIALIZED_NAME_ADJUSTMENT_LIABILITY_ACCOUNT = "adjustment_liability_account";
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_LIABILITY_ACCOUNT)
private String adjustmentLiabilityAccount;
public static final String SERIALIZED_NAME_UNIT_AMOUNT = "unit_amount";
@SerializedName(SERIALIZED_NAME_UNIT_AMOUNT)
private BigDecimal unitAmount;
public static final String SERIALIZED_NAME_TARGET_DATE = "target_date";
@SerializedName(SERIALIZED_NAME_TARGET_DATE)
private LocalDate targetDate;
/**
* The billing rule for the order line item.
*/
@JsonAdapter(BillingRuleEnum.Adapter.class)
public enum BillingRuleEnum {
WITHOUT_FULFILLMENT("trigger_without_fulfillment"),
ON_FULFILLMENT("trigger_on_fulfillment"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
BillingRuleEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static BillingRuleEnum fromValue(String value) {
for (BillingRuleEnum b : BillingRuleEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final BillingRuleEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public BillingRuleEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return BillingRuleEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_BILLING_RULE = "billing_rule";
@SerializedName(SERIALIZED_NAME_BILLING_RULE)
private BillingRuleEnum billingRule;
public static final String SERIALIZED_NAME_CONTRACT_ASSET_ACCOUNT = "contract_asset_account";
@SerializedName(SERIALIZED_NAME_CONTRACT_ASSET_ACCOUNT)
private String contractAssetAccount;
public static final String SERIALIZED_NAME_CONTRACT_LIABILITY_ACCOUNT = "contract_liability_account";
@SerializedName(SERIALIZED_NAME_CONTRACT_LIABILITY_ACCOUNT)
private String contractLiabilityAccount;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_DISCOUNT_UNIT_AMOUNT = "discount_unit_amount";
@SerializedName(SERIALIZED_NAME_DISCOUNT_UNIT_AMOUNT)
private BigDecimal discountUnitAmount;
public static final String SERIALIZED_NAME_DISCOUNT_PERCENT = "discount_percent";
@SerializedName(SERIALIZED_NAME_DISCOUNT_PERCENT)
private BigDecimal discountPercent;
/**
* The category for the order line item, to indicate a product sale or return.
*/
@JsonAdapter(CategoryEnum.Adapter.class)
public enum CategoryEnum {
SALE("sale"),
RETURN("return"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
CategoryEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static CategoryEnum fromValue(String value) {
for (CategoryEnum b : CategoryEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final CategoryEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public CategoryEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return CategoryEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_CATEGORY = "category";
@SerializedName(SERIALIZED_NAME_CATEGORY)
private CategoryEnum category;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
/**
* The type of the order line item.
*/
@JsonAdapter(TypeEnum.Adapter.class)
public enum TypeEnum {
PRODUCT("product"),
FEE("fee"),
SERVICES("services"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
TypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TypeEnum fromValue(String value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TypeEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private TypeEnum type;
public static final String SERIALIZED_NAME_LIST_UNIT_PRICE = "list_unit_price";
@SerializedName(SERIALIZED_NAME_LIST_UNIT_PRICE)
private BigDecimal listUnitPrice;
public static final String SERIALIZED_NAME_PRODUCT_CODE = "product_code";
@SerializedName(SERIALIZED_NAME_PRODUCT_CODE)
private String productCode;
public static final String SERIALIZED_NAME_PURCHASE_ORDER_NUMBER = "purchase_order_number";
@SerializedName(SERIALIZED_NAME_PURCHASE_ORDER_NUMBER)
private String purchaseOrderNumber;
public static final String SERIALIZED_NAME_QUANTITY = "quantity";
@SerializedName(SERIALIZED_NAME_QUANTITY)
private BigDecimal quantity;
public static final String SERIALIZED_NAME_RELATED_SUBSCRIPTION_NUMBER = "related_subscription_number";
@SerializedName(SERIALIZED_NAME_RELATED_SUBSCRIPTION_NUMBER)
private String relatedSubscriptionNumber;
public static final String SERIALIZED_NAME_SOLD_TO_ID = "sold_to_id";
@SerializedName(SERIALIZED_NAME_SOLD_TO_ID)
private String soldToId;
public static final String SERIALIZED_NAME_TAX_CODE = "tax_code";
@SerializedName(SERIALIZED_NAME_TAX_CODE)
private String taxCode;
public static final String SERIALIZED_NAME_UNBILLED_RECEIVABLES_ACCOUNT = "unbilled_receivables_account";
@SerializedName(SERIALIZED_NAME_UNBILLED_RECEIVABLES_ACCOUNT)
private String unbilledReceivablesAccount;
/**
* The state of an order line item. If you want to generate billing documents for order line items, you must set this field to `sent_to_billing`. For invoice preview, you do not need to set this field.
*/
@JsonAdapter(StateEnum.Adapter.class)
public enum StateEnum {
PENDING("pending"),
BOOKED("booked"),
SENT_TO_BILLING("sent_to_billing"),
COMPLETE("complete"),
CANCELED("canceled"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
StateEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StateEnum fromValue(String value) {
for (StateEnum b : StateEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StateEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StateEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_STATE = "state";
@SerializedName(SERIALIZED_NAME_STATE)
private StateEnum state;
public static final String SERIALIZED_NAME_ITEM_NUMBER = "item_number";
@SerializedName(SERIALIZED_NAME_ITEM_NUMBER)
private String itemNumber;
public static final String SERIALIZED_NAME_START_DATE = "start_date";
@SerializedName(SERIALIZED_NAME_START_DATE)
private LocalDate startDate;
public static final String SERIALIZED_NAME_END_DATE = "end_date";
@SerializedName(SERIALIZED_NAME_END_DATE)
private LocalDate endDate;
public static final String SERIALIZED_NAME_PRICE_ID = "price_id";
@SerializedName(SERIALIZED_NAME_PRICE_ID)
private String priceId;
public static final String SERIALIZED_NAME_QUANTITY_AVAILABLE_FOR_RETURN = "quantity_available_for_return";
@SerializedName(SERIALIZED_NAME_QUANTITY_AVAILABLE_FOR_RETURN)
private BigDecimal quantityAvailableForReturn;
public static final String SERIALIZED_NAME_TAX_INCLUSIVE = "tax_inclusive";
@SerializedName(SERIALIZED_NAME_TAX_INCLUSIVE)
private Boolean taxInclusive;
public static final String SERIALIZED_NAME_INVOICE_ITEMS = "invoice_items";
@SerializedName(SERIALIZED_NAME_INVOICE_ITEMS)
private InvoiceItemListResponse invoiceItems;
public static final String SERIALIZED_NAME_ORDER_ID = "order_id";
@SerializedName(SERIALIZED_NAME_ORDER_ID)
private String orderId;
public static final String SERIALIZED_NAME_TOTAL = "total";
@SerializedName(SERIALIZED_NAME_TOTAL)
private BigDecimal total;
public static final String SERIALIZED_NAME_SUBTOTAL = "subtotal";
@SerializedName(SERIALIZED_NAME_SUBTOTAL)
private BigDecimal subtotal;
public static final String SERIALIZED_NAME_QUANTITY_FULFILLED = "quantity_fulfilled";
@SerializedName(SERIALIZED_NAME_QUANTITY_FULFILLED)
private BigDecimal quantityFulfilled;
public static final String SERIALIZED_NAME_QUANTITY_PENDING_FULFILLMENT = "quantity_pending_fulfillment";
@SerializedName(SERIALIZED_NAME_QUANTITY_PENDING_FULFILLMENT)
private BigDecimal quantityPendingFulfillment;
public static final String SERIALIZED_NAME_REQUIRES_FULFILLMENT = "requires_fulfillment";
@SerializedName(SERIALIZED_NAME_REQUIRES_FULFILLMENT)
private Boolean requiresFulfillment;
public static final String SERIALIZED_NAME_ORIGINAL_ORDER_DATE = "original_order_date";
@SerializedName(SERIALIZED_NAME_ORIGINAL_ORDER_DATE)
private LocalDate originalOrderDate;
public static final String SERIALIZED_NAME_ORIGINAL_ORDER_ID = "original_order_id";
@SerializedName(SERIALIZED_NAME_ORIGINAL_ORDER_ID)
private String originalOrderId;
public static final String SERIALIZED_NAME_ORIGINAL_ORDER_LINE_ITEM_ID = "original_order_line_item_id";
@SerializedName(SERIALIZED_NAME_ORIGINAL_ORDER_LINE_ITEM_ID)
private String originalOrderLineItemId;
public static final String SERIALIZED_NAME_ORIGINAL_ORDER_LINE_ITEM_NUMBER = "original_order_line_item_number";
@SerializedName(SERIALIZED_NAME_ORIGINAL_ORDER_LINE_ITEM_NUMBER)
private String originalOrderLineItemNumber;
public static final String SERIALIZED_NAME_ORIGINAL_ORDER_NUMBER = "original_order_number";
@SerializedName(SERIALIZED_NAME_ORIGINAL_ORDER_NUMBER)
private String originalOrderNumber;
public static final String SERIALIZED_NAME_DISCOUNT_TOTAL = "discount_total";
@SerializedName(SERIALIZED_NAME_DISCOUNT_TOTAL)
private BigDecimal discountTotal;
public static final String SERIALIZED_NAME_LIST_PRICE = "list_price";
@SerializedName(SERIALIZED_NAME_LIST_PRICE)
private BigDecimal listPrice;
public static final String SERIALIZED_NAME_ORIGINAL_SOLD_TO_ID = "original_sold_to_id";
@SerializedName(SERIALIZED_NAME_ORIGINAL_SOLD_TO_ID)
private String originalSoldToId;
public OrderLineItem() {
}
public OrderLineItem(
String id,
String updatedById,
OffsetDateTime updatedTime,
String createdById,
OffsetDateTime createdTime,
Map customObjects,
InvoiceItemListResponse invoiceItems
) {
this();
this.id = id;
this.updatedById = updatedById;
this.updatedTime = updatedTime;
this.createdById = createdById;
this.createdTime = createdTime;
this.customObjects = customObjects;
this.invoiceItems = invoiceItems;
}
/**
* Unique identifier for the object.
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unique identifier for the object.")
public String getId() {
return id;
}
/**
* Unique identifier of the Zuora user who last updated the object
* @return updatedById
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unique identifier of the Zuora user who last updated the object")
public String getUpdatedById() {
return updatedById;
}
/**
* The date and time when the object was last updated in ISO 8601 UTC format.
* @return updatedTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date and time when the object was last updated in ISO 8601 UTC format.")
public OffsetDateTime getUpdatedTime() {
return updatedTime;
}
/**
* Unique identifier of the Zuora user who created the object
* @return createdById
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unique identifier of the Zuora user who created the object")
public String getCreatedById() {
return createdById;
}
/**
* The date and time when the object was created in ISO 8601 UTC format.
* @return createdTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date and time when the object was created in ISO 8601 UTC format.")
public OffsetDateTime getCreatedTime() {
return createdTime;
}
public OrderLineItem customFields(Map customFields) {
this.customFields = customFields;
return this;
}
public OrderLineItem 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;
}
/**
* The custom objects associated with a Zuora standard object.
* @return customObjects
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The custom objects associated with a Zuora standard object.")
public Map getCustomObjects() {
return customObjects;
}
public OrderLineItem revenue(OrderLineItemRevenue revenue) {
this.revenue = revenue;
return this;
}
/**
* Get revenue
* @return revenue
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OrderLineItemRevenue getRevenue() {
return revenue;
}
public void setRevenue(OrderLineItemRevenue revenue) {
this.revenue = revenue;
}
public OrderLineItem unitOfMeasure(String unitOfMeasure) {
this.unitOfMeasure = unitOfMeasure;
return this;
}
/**
* A configured unit of measure.
* @return unitOfMeasure
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A configured unit of measure.")
public String getUnitOfMeasure() {
return unitOfMeasure;
}
public void setUnitOfMeasure(String unitOfMeasure) {
this.unitOfMeasure = unitOfMeasure;
}
public OrderLineItem accountingCode(String accountingCode) {
this.accountingCode = accountingCode;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return accountingCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getAccountingCode() {
return accountingCode;
}
public void setAccountingCode(String accountingCode) {
this.accountingCode = accountingCode;
}
public OrderLineItem adjustmentLiabilityAccount(String adjustmentLiabilityAccount) {
this.adjustmentLiabilityAccount = adjustmentLiabilityAccount;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return adjustmentLiabilityAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getAdjustmentLiabilityAccount() {
return adjustmentLiabilityAccount;
}
public void setAdjustmentLiabilityAccount(String adjustmentLiabilityAccount) {
this.adjustmentLiabilityAccount = adjustmentLiabilityAccount;
}
public OrderLineItem unitAmount(BigDecimal unitAmount) {
this.unitAmount = unitAmount;
return this;
}
/**
* The unit amount to be charged.
* @return unitAmount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The unit amount to be charged.")
public BigDecimal getUnitAmount() {
return unitAmount;
}
public void setUnitAmount(BigDecimal unitAmount) {
this.unitAmount = unitAmount;
}
public OrderLineItem targetDate(LocalDate targetDate) {
this.targetDate = targetDate;
return this;
}
/**
* All order line items that were unbilled on or before this date are included in future bill runs.
* @return targetDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "All order line items that were unbilled on or before this date are included in future bill runs.")
public LocalDate getTargetDate() {
return targetDate;
}
public void setTargetDate(LocalDate targetDate) {
this.targetDate = targetDate;
}
public OrderLineItem billingRule(BillingRuleEnum billingRule) {
this.billingRule = billingRule;
return this;
}
/**
* The billing rule for the order line item.
* @return billingRule
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The billing rule for the order line item.")
public BillingRuleEnum getBillingRule() {
return billingRule;
}
public void setBillingRule(BillingRuleEnum billingRule) {
this.billingRule = billingRule;
}
public OrderLineItem contractAssetAccount(String contractAssetAccount) {
this.contractAssetAccount = contractAssetAccount;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return contractAssetAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getContractAssetAccount() {
return contractAssetAccount;
}
public void setContractAssetAccount(String contractAssetAccount) {
this.contractAssetAccount = contractAssetAccount;
}
public OrderLineItem contractLiabilityAccount(String contractLiabilityAccount) {
this.contractLiabilityAccount = contractLiabilityAccount;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts.
* @return contractLiabilityAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts.")
public String getContractLiabilityAccount() {
return contractLiabilityAccount;
}
public void setContractLiabilityAccount(String contractLiabilityAccount) {
this.contractLiabilityAccount = contractLiabilityAccount;
}
public OrderLineItem description(String description) {
this.description = description;
return this;
}
/**
* An arbitrary string attached to the object. Often useful for displaying to users.
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An arbitrary string attached to the object. Often useful for displaying to users.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public OrderLineItem discountUnitAmount(BigDecimal discountUnitAmount) {
this.discountUnitAmount = discountUnitAmount;
return this;
}
/**
* Discount amount per unit.
* @return discountUnitAmount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Discount amount per unit.")
public BigDecimal getDiscountUnitAmount() {
return discountUnitAmount;
}
public void setDiscountUnitAmount(BigDecimal discountUnitAmount) {
this.discountUnitAmount = discountUnitAmount;
}
public OrderLineItem discountPercent(BigDecimal discountPercent) {
this.discountPercent = discountPercent;
return this;
}
/**
* Discount percent.
* @return discountPercent
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Discount percent.")
public BigDecimal getDiscountPercent() {
return discountPercent;
}
public void setDiscountPercent(BigDecimal discountPercent) {
this.discountPercent = discountPercent;
}
public OrderLineItem category(CategoryEnum category) {
this.category = category;
return this;
}
/**
* The category for the order line item, to indicate a product sale or return.
* @return category
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The category for the order line item, to indicate a product sale or return.")
public CategoryEnum getCategory() {
return category;
}
public void setCategory(CategoryEnum category) {
this.category = category;
}
public OrderLineItem name(String name) {
this.name = name;
return this;
}
/**
* The name of the order line item.
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The name of the order line item.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public OrderLineItem type(TypeEnum type) {
this.type = type;
return this;
}
/**
* The type of the order line item.
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The type of the order line item.")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public OrderLineItem listUnitPrice(BigDecimal listUnitPrice) {
this.listUnitPrice = listUnitPrice;
return this;
}
/**
* The list price per unit for the order line item.
* @return listUnitPrice
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The list price per unit for the order line item.")
public BigDecimal getListUnitPrice() {
return listUnitPrice;
}
public void setListUnitPrice(BigDecimal listUnitPrice) {
this.listUnitPrice = listUnitPrice;
}
public OrderLineItem productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* The product code for the order line item.
* @return productCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The product code for the order line item.")
public String getProductCode() {
return productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public OrderLineItem purchaseOrderNumber(String purchaseOrderNumber) {
this.purchaseOrderNumber = purchaseOrderNumber;
return this;
}
/**
* Used by customers to specify the Purchase Order Number provided by the buyer.
* @return purchaseOrderNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Used by customers to specify the Purchase Order Number provided by the buyer.")
public String getPurchaseOrderNumber() {
return purchaseOrderNumber;
}
public void setPurchaseOrderNumber(String purchaseOrderNumber) {
this.purchaseOrderNumber = purchaseOrderNumber;
}
public OrderLineItem quantity(BigDecimal quantity) {
this.quantity = quantity;
return this;
}
/**
* The quantity of the product ordered.
* @return quantity
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The quantity of the product ordered.")
public BigDecimal getQuantity() {
return quantity;
}
public void setQuantity(BigDecimal quantity) {
this.quantity = quantity;
}
public OrderLineItem relatedSubscriptionNumber(String relatedSubscriptionNumber) {
this.relatedSubscriptionNumber = relatedSubscriptionNumber;
return this;
}
/**
* Use this field to relate an order line item to an subscription.
* @return relatedSubscriptionNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Use this field to relate an order line item to an subscription.")
public String getRelatedSubscriptionNumber() {
return relatedSubscriptionNumber;
}
public void setRelatedSubscriptionNumber(String relatedSubscriptionNumber) {
this.relatedSubscriptionNumber = relatedSubscriptionNumber;
}
public OrderLineItem soldToId(String soldToId) {
this.soldToId = soldToId;
return this;
}
/**
* The unique identifier of a contact belonging to the billing account of the order line item. Use this field to assign and existing contact as the sold to contact of an order line item.
* @return soldToId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "8ad0823f8040e52d0180433026b156fe", value = "The unique identifier of a contact belonging to the billing account of the order line item. Use this field to assign and existing contact as the sold to contact of an order line item.")
public String getSoldToId() {
return soldToId;
}
public void setSoldToId(String soldToId) {
this.soldToId = soldToId;
}
public OrderLineItem taxCode(String taxCode) {
this.taxCode = taxCode;
return this;
}
/**
* The tax code for the order line item.
* @return taxCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The tax code for the order line item.")
public String getTaxCode() {
return taxCode;
}
public void setTaxCode(String taxCode) {
this.taxCode = taxCode;
}
public OrderLineItem unbilledReceivablesAccount(String unbilledReceivablesAccount) {
this.unbilledReceivablesAccount = unbilledReceivablesAccount;
return this;
}
/**
* An active accounting code in your Zuora chart of accounts..
* @return unbilledReceivablesAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active accounting code in your Zuora chart of accounts..")
public String getUnbilledReceivablesAccount() {
return unbilledReceivablesAccount;
}
public void setUnbilledReceivablesAccount(String unbilledReceivablesAccount) {
this.unbilledReceivablesAccount = unbilledReceivablesAccount;
}
public OrderLineItem state(StateEnum state) {
this.state = state;
return this;
}
/**
* The state of an order line item. If you want to generate billing documents for order line items, you must set this field to `sent_to_billing`. For invoice preview, you do not need to set this field.
* @return state
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The state of an order line item. If you want to generate billing documents for order line items, you must set this field to `sent_to_billing`. For invoice preview, you do not need to set this field.")
public StateEnum getState() {
return state;
}
public void setState(StateEnum state) {
this.state = state;
}
public OrderLineItem itemNumber(String itemNumber) {
this.itemNumber = itemNumber;
return this;
}
/**
* Human-readable identifier of the order item. It can be user-supplied.
* @return itemNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Human-readable identifier of the order item. It can be user-supplied.")
public String getItemNumber() {
return itemNumber;
}
public void setItemNumber(String itemNumber) {
this.itemNumber = itemNumber;
}
public OrderLineItem startDate(LocalDate startDate) {
this.startDate = startDate;
return this;
}
/**
* The date a transaction starts. The default value of this field is the order date.
* @return startDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sat Jan 01 00:00:00 GMT 2022", value = "The date a transaction starts. The default value of this field is the order date.")
public LocalDate getStartDate() {
return startDate;
}
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public OrderLineItem endDate(LocalDate endDate) {
this.endDate = endDate;
return this;
}
/**
* The date the order line item transitions to complete.
* @return endDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sat Jan 01 00:00:00 GMT 2022", value = "The date the order line item transitions to complete.")
public LocalDate getEndDate() {
return endDate;
}
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public OrderLineItem priceId(String priceId) {
this.priceId = priceId;
return this;
}
/**
* Identifier of the price.
* @return priceId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the price.")
public String getPriceId() {
return priceId;
}
public void setPriceId(String priceId) {
this.priceId = priceId;
}
public OrderLineItem quantityAvailableForReturn(BigDecimal quantityAvailableForReturn) {
this.quantityAvailableForReturn = quantityAvailableForReturn;
return this;
}
/**
* The quantity of the product ordered available for return.
* @return quantityAvailableForReturn
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The quantity of the product ordered available for return.")
public BigDecimal getQuantityAvailableForReturn() {
return quantityAvailableForReturn;
}
public void setQuantityAvailableForReturn(BigDecimal quantityAvailableForReturn) {
this.quantityAvailableForReturn = quantityAvailableForReturn;
}
public OrderLineItem taxInclusive(Boolean taxInclusive) {
this.taxInclusive = taxInclusive;
return this;
}
/**
* If this field is set to `true`, it indicates that amounts are inclusive of tax.
* @return taxInclusive
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If this field is set to `true`, it indicates that amounts are inclusive of tax.")
public Boolean getTaxInclusive() {
return taxInclusive;
}
public void setTaxInclusive(Boolean taxInclusive) {
this.taxInclusive = taxInclusive;
}
/**
* List of invoice items. EXPANDABLE
* @return invoiceItems
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "List of invoice items. EXPANDABLE")
public InvoiceItemListResponse getInvoiceItems() {
return invoiceItems;
}
public OrderLineItem orderId(String orderId) {
this.orderId = orderId;
return this;
}
/**
* The unique identifier for the order associated with this order line item.
* @return orderId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The unique identifier for the order associated with this order line item.")
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public OrderLineItem total(BigDecimal total) {
this.total = total;
return this;
}
/**
* Total after discounts and taxes.
* @return total
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Total after discounts and taxes.")
public BigDecimal getTotal() {
return total;
}
public void setTotal(BigDecimal total) {
this.total = total;
}
public OrderLineItem subtotal(BigDecimal subtotal) {
this.subtotal = subtotal;
return this;
}
/**
* Total before discounts and taxes are applied.
* @return subtotal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Total before discounts and taxes are applied.")
public BigDecimal getSubtotal() {
return subtotal;
}
public void setSubtotal(BigDecimal subtotal) {
this.subtotal = subtotal;
}
public OrderLineItem quantityFulfilled(BigDecimal quantityFulfilled) {
this.quantityFulfilled = quantityFulfilled;
return this;
}
/**
* The quantity fulfilled.
* @return quantityFulfilled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The quantity fulfilled.")
public BigDecimal getQuantityFulfilled() {
return quantityFulfilled;
}
public void setQuantityFulfilled(BigDecimal quantityFulfilled) {
this.quantityFulfilled = quantityFulfilled;
}
public OrderLineItem quantityPendingFulfillment(BigDecimal quantityPendingFulfillment) {
this.quantityPendingFulfillment = quantityPendingFulfillment;
return this;
}
/**
* The quantity pending fulfillment.
* @return quantityPendingFulfillment
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The quantity pending fulfillment.")
public BigDecimal getQuantityPendingFulfillment() {
return quantityPendingFulfillment;
}
public void setQuantityPendingFulfillment(BigDecimal quantityPendingFulfillment) {
this.quantityPendingFulfillment = quantityPendingFulfillment;
}
public OrderLineItem requiresFulfillment(Boolean requiresFulfillment) {
this.requiresFulfillment = requiresFulfillment;
return this;
}
/**
* If true, a fulfillment is required to trigger billing.
* @return requiresFulfillment
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If true, a fulfillment is required to trigger billing.")
public Boolean getRequiresFulfillment() {
return requiresFulfillment;
}
public void setRequiresFulfillment(Boolean requiresFulfillment) {
this.requiresFulfillment = requiresFulfillment;
}
public OrderLineItem originalOrderDate(LocalDate originalOrderDate) {
this.originalOrderDate = originalOrderDate;
return this;
}
/**
* The date when the subscription item is created through an order. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sales order line in Zuora Revenue.
* @return originalOrderDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sat Jan 01 00:00:00 GMT 2022", value = "The date when the subscription item is created through an order. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sales order line in Zuora Revenue.")
public LocalDate getOriginalOrderDate() {
return originalOrderDate;
}
public void setOriginalOrderDate(LocalDate originalOrderDate) {
this.originalOrderDate = originalOrderDate;
}
public OrderLineItem originalOrderId(String originalOrderId) {
this.originalOrderId = originalOrderId;
return this;
}
/**
* The unique identifier of the original sales order for a return order line item.
* @return originalOrderId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The unique identifier of the original sales order for a return order line item.")
public String getOriginalOrderId() {
return originalOrderId;
}
public void setOriginalOrderId(String originalOrderId) {
this.originalOrderId = originalOrderId;
}
public OrderLineItem originalOrderLineItemId(String originalOrderLineItemId) {
this.originalOrderLineItemId = originalOrderLineItemId;
return this;
}
/**
* The unique identifier of the original sales order line item for a return order line item.
* @return originalOrderLineItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The unique identifier of the original sales order line item for a return order line item.")
public String getOriginalOrderLineItemId() {
return originalOrderLineItemId;
}
public void setOriginalOrderLineItemId(String originalOrderLineItemId) {
this.originalOrderLineItemId = originalOrderLineItemId;
}
public OrderLineItem originalOrderLineItemNumber(String originalOrderLineItemNumber) {
this.originalOrderLineItemNumber = originalOrderLineItemNumber;
return this;
}
/**
* The number of the original sales order line item for a return order line item.
* @return originalOrderLineItemNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The number of the original sales order line item for a return order line item.")
public String getOriginalOrderLineItemNumber() {
return originalOrderLineItemNumber;
}
public void setOriginalOrderLineItemNumber(String originalOrderLineItemNumber) {
this.originalOrderLineItemNumber = originalOrderLineItemNumber;
}
public OrderLineItem originalOrderNumber(String originalOrderNumber) {
this.originalOrderNumber = originalOrderNumber;
return this;
}
/**
* The number of the original sales order for a return order line item.
* @return originalOrderNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The number of the original sales order for a return order line item.")
public String getOriginalOrderNumber() {
return originalOrderNumber;
}
public void setOriginalOrderNumber(String originalOrderNumber) {
this.originalOrderNumber = originalOrderNumber;
}
public OrderLineItem discountTotal(BigDecimal discountTotal) {
this.discountTotal = discountTotal;
return this;
}
/**
* Total discount amount.
* @return discountTotal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Total discount amount.")
public BigDecimal getDiscountTotal() {
return discountTotal;
}
public void setDiscountTotal(BigDecimal discountTotal) {
this.discountTotal = discountTotal;
}
public OrderLineItem listPrice(BigDecimal listPrice) {
this.listPrice = listPrice;
return this;
}
/**
* The extended list price for an order line item, calculated by the formula: listPrice = listPricePerUnit * quantity
* @return listPrice
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The extended list price for an order line item, calculated by the formula: listPrice = listPricePerUnit * quantity")
public BigDecimal getListPrice() {
return listPrice;
}
public void setListPrice(BigDecimal listPrice) {
this.listPrice = listPrice;
}
public OrderLineItem originalSoldToId(String originalSoldToId) {
this.originalSoldToId = originalSoldToId;
return this;
}
/**
* The unique identifier of a contact belonging to the billing account of the order line item that was the original sold to contact when the order line item was created.
* @return originalSoldToId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The unique identifier of a contact belonging to the billing account of the order line item that was the original sold to contact when the order line item was created. ")
public String getOriginalSoldToId() {
return originalSoldToId;
}
public void setOriginalSoldToId(String originalSoldToId) {
this.originalSoldToId = originalSoldToId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OrderLineItem orderLineItem = (OrderLineItem) o;
return Objects.equals(this.id, orderLineItem.id) &&
Objects.equals(this.updatedById, orderLineItem.updatedById) &&
Objects.equals(this.updatedTime, orderLineItem.updatedTime) &&
Objects.equals(this.createdById, orderLineItem.createdById) &&
Objects.equals(this.createdTime, orderLineItem.createdTime) &&
Objects.equals(this.customFields, orderLineItem.customFields) &&
Objects.equals(this.customObjects, orderLineItem.customObjects) &&
Objects.equals(this.revenue, orderLineItem.revenue) &&
Objects.equals(this.unitOfMeasure, orderLineItem.unitOfMeasure) &&
Objects.equals(this.accountingCode, orderLineItem.accountingCode) &&
Objects.equals(this.adjustmentLiabilityAccount, orderLineItem.adjustmentLiabilityAccount) &&
Objects.equals(this.unitAmount, orderLineItem.unitAmount) &&
Objects.equals(this.targetDate, orderLineItem.targetDate) &&
Objects.equals(this.billingRule, orderLineItem.billingRule) &&
Objects.equals(this.contractAssetAccount, orderLineItem.contractAssetAccount) &&
Objects.equals(this.contractLiabilityAccount, orderLineItem.contractLiabilityAccount) &&
Objects.equals(this.description, orderLineItem.description) &&
Objects.equals(this.discountUnitAmount, orderLineItem.discountUnitAmount) &&
Objects.equals(this.discountPercent, orderLineItem.discountPercent) &&
Objects.equals(this.category, orderLineItem.category) &&
Objects.equals(this.name, orderLineItem.name) &&
Objects.equals(this.type, orderLineItem.type) &&
Objects.equals(this.listUnitPrice, orderLineItem.listUnitPrice) &&
Objects.equals(this.productCode, orderLineItem.productCode) &&
Objects.equals(this.purchaseOrderNumber, orderLineItem.purchaseOrderNumber) &&
Objects.equals(this.quantity, orderLineItem.quantity) &&
Objects.equals(this.relatedSubscriptionNumber, orderLineItem.relatedSubscriptionNumber) &&
Objects.equals(this.soldToId, orderLineItem.soldToId) &&
Objects.equals(this.taxCode, orderLineItem.taxCode) &&
Objects.equals(this.unbilledReceivablesAccount, orderLineItem.unbilledReceivablesAccount) &&
Objects.equals(this.state, orderLineItem.state) &&
Objects.equals(this.itemNumber, orderLineItem.itemNumber) &&
Objects.equals(this.startDate, orderLineItem.startDate) &&
Objects.equals(this.endDate, orderLineItem.endDate) &&
Objects.equals(this.priceId, orderLineItem.priceId) &&
Objects.equals(this.quantityAvailableForReturn, orderLineItem.quantityAvailableForReturn) &&
Objects.equals(this.taxInclusive, orderLineItem.taxInclusive) &&
Objects.equals(this.invoiceItems, orderLineItem.invoiceItems) &&
Objects.equals(this.orderId, orderLineItem.orderId) &&
Objects.equals(this.total, orderLineItem.total) &&
Objects.equals(this.subtotal, orderLineItem.subtotal) &&
Objects.equals(this.quantityFulfilled, orderLineItem.quantityFulfilled) &&
Objects.equals(this.quantityPendingFulfillment, orderLineItem.quantityPendingFulfillment) &&
Objects.equals(this.requiresFulfillment, orderLineItem.requiresFulfillment) &&
Objects.equals(this.originalOrderDate, orderLineItem.originalOrderDate) &&
Objects.equals(this.originalOrderId, orderLineItem.originalOrderId) &&
Objects.equals(this.originalOrderLineItemId, orderLineItem.originalOrderLineItemId) &&
Objects.equals(this.originalOrderLineItemNumber, orderLineItem.originalOrderLineItemNumber) &&
Objects.equals(this.originalOrderNumber, orderLineItem.originalOrderNumber) &&
Objects.equals(this.discountTotal, orderLineItem.discountTotal) &&
Objects.equals(this.listPrice, orderLineItem.listPrice) &&
Objects.equals(this.originalSoldToId, orderLineItem.originalSoldToId);
}
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(id, updatedById, updatedTime, createdById, createdTime, customFields, customObjects, revenue, unitOfMeasure, accountingCode, adjustmentLiabilityAccount, unitAmount, targetDate, billingRule, contractAssetAccount, contractLiabilityAccount, description, discountUnitAmount, discountPercent, category, name, type, listUnitPrice, productCode, purchaseOrderNumber, quantity, relatedSubscriptionNumber, soldToId, taxCode, unbilledReceivablesAccount, state, itemNumber, startDate, endDate, priceId, quantityAvailableForReturn, taxInclusive, invoiceItems, orderId, total, subtotal, quantityFulfilled, quantityPendingFulfillment, requiresFulfillment, originalOrderDate, originalOrderId, originalOrderLineItemId, originalOrderLineItemNumber, originalOrderNumber, discountTotal, listPrice, originalSoldToId);
}
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 OrderLineItem {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" updatedById: ").append(toIndentedString(updatedById)).append("\n");
sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n");
sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n");
sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
sb.append(" customObjects: ").append(toIndentedString(customObjects)).append("\n");
sb.append(" revenue: ").append(toIndentedString(revenue)).append("\n");
sb.append(" unitOfMeasure: ").append(toIndentedString(unitOfMeasure)).append("\n");
sb.append(" accountingCode: ").append(toIndentedString(accountingCode)).append("\n");
sb.append(" adjustmentLiabilityAccount: ").append(toIndentedString(adjustmentLiabilityAccount)).append("\n");
sb.append(" unitAmount: ").append(toIndentedString(unitAmount)).append("\n");
sb.append(" targetDate: ").append(toIndentedString(targetDate)).append("\n");
sb.append(" billingRule: ").append(toIndentedString(billingRule)).append("\n");
sb.append(" contractAssetAccount: ").append(toIndentedString(contractAssetAccount)).append("\n");
sb.append(" contractLiabilityAccount: ").append(toIndentedString(contractLiabilityAccount)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" discountUnitAmount: ").append(toIndentedString(discountUnitAmount)).append("\n");
sb.append(" discountPercent: ").append(toIndentedString(discountPercent)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" listUnitPrice: ").append(toIndentedString(listUnitPrice)).append("\n");
sb.append(" productCode: ").append(toIndentedString(productCode)).append("\n");
sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" relatedSubscriptionNumber: ").append(toIndentedString(relatedSubscriptionNumber)).append("\n");
sb.append(" soldToId: ").append(toIndentedString(soldToId)).append("\n");
sb.append(" taxCode: ").append(toIndentedString(taxCode)).append("\n");
sb.append(" unbilledReceivablesAccount: ").append(toIndentedString(unbilledReceivablesAccount)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" itemNumber: ").append(toIndentedString(itemNumber)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" priceId: ").append(toIndentedString(priceId)).append("\n");
sb.append(" quantityAvailableForReturn: ").append(toIndentedString(quantityAvailableForReturn)).append("\n");
sb.append(" taxInclusive: ").append(toIndentedString(taxInclusive)).append("\n");
sb.append(" invoiceItems: ").append(toIndentedString(invoiceItems)).append("\n");
sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" subtotal: ").append(toIndentedString(subtotal)).append("\n");
sb.append(" quantityFulfilled: ").append(toIndentedString(quantityFulfilled)).append("\n");
sb.append(" quantityPendingFulfillment: ").append(toIndentedString(quantityPendingFulfillment)).append("\n");
sb.append(" requiresFulfillment: ").append(toIndentedString(requiresFulfillment)).append("\n");
sb.append(" originalOrderDate: ").append(toIndentedString(originalOrderDate)).append("\n");
sb.append(" originalOrderId: ").append(toIndentedString(originalOrderId)).append("\n");
sb.append(" originalOrderLineItemId: ").append(toIndentedString(originalOrderLineItemId)).append("\n");
sb.append(" originalOrderLineItemNumber: ").append(toIndentedString(originalOrderLineItemNumber)).append("\n");
sb.append(" originalOrderNumber: ").append(toIndentedString(originalOrderNumber)).append("\n");
sb.append(" discountTotal: ").append(toIndentedString(discountTotal)).append("\n");
sb.append(" listPrice: ").append(toIndentedString(listPrice)).append("\n");
sb.append(" originalSoldToId: ").append(toIndentedString(originalSoldToId)).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