com.mozu.api.contracts.pricingruntime.TaxableOrder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mozu-api-core Show documentation
Show all versions of mozu-api-core Show documentation
Mozu Java is a SDK that enables you to create robust Java applications that integrate with the Mozu platform
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.pricingruntime;
import java.util.List;
import java.util.HashMap;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.joda.time.DateTime;
import java.io.IOException;
import java.lang.ClassNotFoundException;
import com.mozu.api.contracts.pricingruntime.TaxAttribute;
import com.mozu.api.contracts.pricingruntime.AppliedDiscount;
import com.mozu.api.contracts.pricingruntime.TaxableLineItem;
import com.mozu.api.contracts.pricingruntime.AppliedOrderShippingDiscount;
import com.mozu.api.contracts.pricingruntime.TaxContext;
/**
* Properties of an order to calculate tax against. When a tax capability is enabled for a tenant, sends the `TaxableOrder `properties to the capability as read-only, system-supplied information.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class TaxableOrder implements Serializable
{
// Default Serial Version UID
private static final long serialVersionUID = 1L;
protected String currencyCode;
public String getCurrencyCode() {
return this.currencyCode;
}
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
protected Double handlingFee;
public Double getHandlingFee() {
return this.handlingFee;
}
public void setHandlingFee(Double handlingFee) {
this.handlingFee = handlingFee;
}
protected DateTime orderDate;
public DateTime getOrderDate() {
return this.orderDate;
}
public void setOrderDate(DateTime orderDate) {
this.orderDate = orderDate;
}
/**
* Unique identifier of the order associated with the payment.
*/
protected String orderId;
public String getOrderId() {
return this.orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
/**
* The order number that the customer sees on the storefront when they place the order.
*/
protected Integer orderNumber;
public Integer getOrderNumber() {
return this.orderNumber;
}
public void setOrderNumber(Integer orderNumber) {
this.orderNumber = orderNumber;
}
/**
* The unique identifier of the original order, used to track order changes for tax purposes.
*/
protected String originalDocumentCode;
public String getOriginalDocumentCode() {
return this.originalDocumentCode;
}
public void setOriginalDocumentCode(String originalDocumentCode) {
this.originalDocumentCode = originalDocumentCode;
}
/**
* The date and time the original order was placed. This date is set when the order is submitted with payment.
*/
protected DateTime originalOrderDate;
public DateTime getOriginalOrderDate() {
return this.originalOrderDate;
}
public void setOriginalOrderDate(DateTime originalOrderDate) {
this.originalOrderDate = originalOrderDate;
}
protected Double shippingAmount;
public Double getShippingAmount() {
return this.shippingAmount;
}
public void setShippingAmount(Double shippingAmount) {
this.shippingAmount = shippingAmount;
}
/**
* The code associated with a carrier's shipping method service type, used during fulfillment of packages and shipments. Service type codes include a prefix that indicates the carrier. For example: FEDEX_INTERNATIONAL_STANDARD and UPS_GROUND.If using a custom rate, this property corresponds to the field in when you navigate to > > , and then click on an existing rate or on .
*/
protected String shippingMethodCode;
public String getShippingMethodCode() {
return this.shippingMethodCode;
}
public void setShippingMethodCode(String shippingMethodCode) {
this.shippingMethodCode = shippingMethodCode;
}
/**
* The carrier-supplied name for the shipping service type, such as "UPS Ground" or "2nd Day Air".If using a custom rate, this property corresponds to the field in when you navigate to > > , and then click on an existing rate or on .
*/
protected String shippingMethodName;
public String getShippingMethodName() {
return this.shippingMethodName;
}
public void setShippingMethodName(String shippingMethodName) {
this.shippingMethodName = shippingMethodName;
}
/**
* The type of request for which to tax this entity, which is Order or Return.
*/
protected String taxRequestType;
public String getTaxRequestType() {
return this.taxRequestType;
}
public void setTaxRequestType(String taxRequestType) {
this.taxRequestType = taxRequestType;
}
/**
* Collection of attributes that may be paged list or a list, depending on the usage per object and API type.
*/
protected List attributes;
public List getAttributes() {
return this.attributes;
}
public void setAttributes(List attributes) {
this.attributes = attributes;
}
/**
* Custom data for a given vendor set within the commerce process.
*/
protected transient com.fasterxml.jackson.databind.JsonNode data;
public com.fasterxml.jackson.databind.JsonNode getData() {
return this.data;
}
public void setData(com.fasterxml.jackson.databind.JsonNode data) {
this.data = data;
}
/**
* The discount applied to the order's handling fee.
*/
protected AppliedDiscount handlingDiscount;
public AppliedDiscount getHandlingDiscount() {
return this.handlingDiscount;
}
public void setHandlingDiscount(AppliedDiscount handlingDiscount) {
this.handlingDiscount = handlingDiscount;
}
/**
* The handling discounts applied to the order's handling fee.
*/
protected List handlingDiscounts;
public List getHandlingDiscounts() {
return this.handlingDiscounts;
}
public void setHandlingDiscounts(List handlingDiscounts) {
this.handlingDiscounts = handlingDiscounts;
}
protected List lineItems;
public List getLineItems() {
return this.lineItems;
}
public void setLineItems(List lineItems) {
this.lineItems = lineItems;
}
/**
* The discount applied to the order.
*/
protected AppliedDiscount orderDiscount;
public AppliedDiscount getOrderDiscount() {
return this.orderDiscount;
}
public void setOrderDiscount(AppliedDiscount orderDiscount) {
this.orderDiscount = orderDiscount;
}
/**
* List of order-level discounts projected to apply to the cart at checkout or order.
*/
protected List orderDiscounts;
public List getOrderDiscounts() {
return this.orderDiscounts;
}
public void setOrderDiscounts(List orderDiscounts) {
this.orderDiscounts = orderDiscounts;
}
/**
* The discount applied to the order's shipping cost.
*/
protected AppliedOrderShippingDiscount shippingDiscount;
public AppliedOrderShippingDiscount getShippingDiscount() {
return this.shippingDiscount;
}
public void setShippingDiscount(AppliedOrderShippingDiscount shippingDiscount) {
this.shippingDiscount = shippingDiscount;
}
/**
* List of shipping discounts projected to apply to carts, orders, and wish lists and items at checkout.
*/
protected List shippingDiscounts;
public List getShippingDiscounts() {
return this.shippingDiscounts;
}
public void setShippingDiscounts(List shippingDiscounts) {
this.shippingDiscounts = shippingDiscounts;
}
protected TaxContext taxContext;
public TaxContext getTaxContext() {
return this.taxContext;
}
public void setTaxContext(TaxContext taxContext) {
this.taxContext = taxContext;
}
private void writeObject(java.io.ObjectOutputStream out) throws IOException {
out.defaultWriteObject();
if(data == null){
out.writeBoolean(false);
} else {
out.writeBoolean(true);
new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue(out, data);
}
}
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
if(in.readBoolean()){
this.data = new com.fasterxml.jackson.databind.ObjectMapper().configure(com.fasterxml.jackson.core.JsonParser.Feature.AUTO_CLOSE_SOURCE, false).readValue(in, com.fasterxml.jackson.databind.JsonNode.class);
}
}
}