NAV

<back to all web services

OrderClose

The following routes are available for this service:
POST/orders/close
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class OrderClose implements IPost
    {
        public NAVOrderClose orderCloseData = null;
        public ArrayList<NAVOrderCloseShipment> shipment = null;
        
        public NAVOrderClose getOrderCloseData() { return orderCloseData; }
        public OrderClose setOrderCloseData(NAVOrderClose value) { this.orderCloseData = value; return this; }
        public ArrayList<NAVOrderCloseShipment> getShipment() { return shipment; }
        public OrderClose setShipment(ArrayList<NAVOrderCloseShipment> value) { this.shipment = value; return this; }
    }

    public static class NAVOrderClose
    {
        public String externalOrderId = null;
        public String orderTypeId = null;
        public Date createdDateUTC = null;
        public Date submittedDateUTC = null;
        public Date completedDateUTC = null;
        public BigDecimal beeNumberCustomer = null;
        public BigDecimal beeNumberPayee = null;
        public String orderSource = null;
        public String shippingMethod = null;
        public String giftMessage = null;
        public String giftMessageFrom = null;
        public String giftMessageTo = null;
        public String shippingComment = null;
        public NAVOrderCloseAddress shippingAddress = null;
        public ArrayList<NAVOrderCloseSku> orderSkus = null;
        public ArrayList<NAVOrderClosePayment> orderPayments = null;
        public ArrayList<NAVOrderCloseFee> orderFees = null;
        public BigDecimal subTotal = null;
        public BigDecimal orderTotal = null;
        public BigDecimal shippingCost = null;
        public BigDecimal tax = null;
        public BigDecimal shippingTax = null;
        public String externalDiscountReason = null;
        public BigDecimal pcLevel = null;
        public String agentId = null;
        public BigDecimal numberOfCustomersServed = null;
        public String versionNumber = null;
        public String versionYear = null;
        public String additionalCode = null;
        public String discountPercent = null;
        public String taxRatePercent = null;
        public BigDecimal orderWithinTimePeriod = null;
        public String taxAreaCode = null;
        public String geocode = null;
        public String fundraiserId = null;
        public String warehouseCode = null;
        public String originalReshipExternalOrderId = null;
        public String shippedVersionNumber = null;
        public String shippedVersionYear = null;
        public String masterOrderId = null;
        public String couponValue = null;
        public String salesCenterId = null;
        public String premierLevel = null;
        public BigDecimal pcLevelCurrentCycle = null;
        public String premierLevelCurrentCycle = null;
        public String emailAddress = null;
        public String phoneNumber = null;
        
        public String getExternalOrderId() { return externalOrderId; }
        public NAVOrderClose setExternalOrderId(String value) { this.externalOrderId = value; return this; }
        public String getOrderTypeId() { return orderTypeId; }
        public NAVOrderClose setOrderTypeId(String value) { this.orderTypeId = value; return this; }
        public Date getCreatedDateUTC() { return createdDateUTC; }
        public NAVOrderClose setCreatedDateUTC(Date value) { this.createdDateUTC = value; return this; }
        public Date getSubmittedDateUTC() { return submittedDateUTC; }
        public NAVOrderClose setSubmittedDateUTC(Date value) { this.submittedDateUTC = value; return this; }
        public Date getCompletedDateUTC() { return completedDateUTC; }
        public NAVOrderClose setCompletedDateUTC(Date value) { this.completedDateUTC = value; return this; }
        public BigDecimal getBeeNumberCustomer() { return beeNumberCustomer; }
        public NAVOrderClose setBeeNumberCustomer(BigDecimal value) { this.beeNumberCustomer = value; return this; }
        public BigDecimal getBeeNumberPayee() { return beeNumberPayee; }
        public NAVOrderClose setBeeNumberPayee(BigDecimal value) { this.beeNumberPayee = value; return this; }
        public String getOrderSource() { return orderSource; }
        public NAVOrderClose setOrderSource(String value) { this.orderSource = value; return this; }
        public String getShippingMethod() { return shippingMethod; }
        public NAVOrderClose setShippingMethod(String value) { this.shippingMethod = value; return this; }
        public String getGiftMessage() { return giftMessage; }
        public NAVOrderClose setGiftMessage(String value) { this.giftMessage = value; return this; }
        public String getGiftMessageFrom() { return giftMessageFrom; }
        public NAVOrderClose setGiftMessageFrom(String value) { this.giftMessageFrom = value; return this; }
        public String getGiftMessageTo() { return giftMessageTo; }
        public NAVOrderClose setGiftMessageTo(String value) { this.giftMessageTo = value; return this; }
        public String getShippingComment() { return shippingComment; }
        public NAVOrderClose setShippingComment(String value) { this.shippingComment = value; return this; }
        public NAVOrderCloseAddress getShippingAddress() { return shippingAddress; }
        public NAVOrderClose setShippingAddress(NAVOrderCloseAddress value) { this.shippingAddress = value; return this; }
        public ArrayList<NAVOrderCloseSku> getOrderSkus() { return orderSkus; }
        public NAVOrderClose setOrderSkus(ArrayList<NAVOrderCloseSku> value) { this.orderSkus = value; return this; }
        public ArrayList<NAVOrderClosePayment> getOrderPayments() { return orderPayments; }
        public NAVOrderClose setOrderPayments(ArrayList<NAVOrderClosePayment> value) { this.orderPayments = value; return this; }
        public ArrayList<NAVOrderCloseFee> getOrderFees() { return orderFees; }
        public NAVOrderClose setOrderFees(ArrayList<NAVOrderCloseFee> value) { this.orderFees = value; return this; }
        public BigDecimal getSubTotal() { return subTotal; }
        public NAVOrderClose setSubTotal(BigDecimal value) { this.subTotal = value; return this; }
        public BigDecimal getOrderTotal() { return orderTotal; }
        public NAVOrderClose setOrderTotal(BigDecimal value) { this.orderTotal = value; return this; }
        public BigDecimal getShippingCost() { return shippingCost; }
        public NAVOrderClose setShippingCost(BigDecimal value) { this.shippingCost = value; return this; }
        public BigDecimal getTax() { return tax; }
        public NAVOrderClose setTax(BigDecimal value) { this.tax = value; return this; }
        public BigDecimal getShippingTax() { return shippingTax; }
        public NAVOrderClose setShippingTax(BigDecimal value) { this.shippingTax = value; return this; }
        public String getExternalDiscountReason() { return externalDiscountReason; }
        public NAVOrderClose setExternalDiscountReason(String value) { this.externalDiscountReason = value; return this; }
        public BigDecimal getPcLevel() { return pcLevel; }
        public NAVOrderClose setPcLevel(BigDecimal value) { this.pcLevel = value; return this; }
        public String getAgentId() { return agentId; }
        public NAVOrderClose setAgentId(String value) { this.agentId = value; return this; }
        public BigDecimal getNumberOfCustomersServed() { return numberOfCustomersServed; }
        public NAVOrderClose setNumberOfCustomersServed(BigDecimal value) { this.numberOfCustomersServed = value; return this; }
        public String getVersionNumber() { return versionNumber; }
        public NAVOrderClose setVersionNumber(String value) { this.versionNumber = value; return this; }
        public String getVersionYear() { return versionYear; }
        public NAVOrderClose setVersionYear(String value) { this.versionYear = value; return this; }
        public String getAdditionalCode() { return additionalCode; }
        public NAVOrderClose setAdditionalCode(String value) { this.additionalCode = value; return this; }
        public String getDiscountPercent() { return discountPercent; }
        public NAVOrderClose setDiscountPercent(String value) { this.discountPercent = value; return this; }
        public String getTaxRatePercent() { return taxRatePercent; }
        public NAVOrderClose setTaxRatePercent(String value) { this.taxRatePercent = value; return this; }
        public BigDecimal getOrderWithinTimePeriod() { return orderWithinTimePeriod; }
        public NAVOrderClose setOrderWithinTimePeriod(BigDecimal value) { this.orderWithinTimePeriod = value; return this; }
        public String getTaxAreaCode() { return taxAreaCode; }
        public NAVOrderClose setTaxAreaCode(String value) { this.taxAreaCode = value; return this; }
        public String getGeocode() { return geocode; }
        public NAVOrderClose setGeocode(String value) { this.geocode = value; return this; }
        public String getFundraiserId() { return fundraiserId; }
        public NAVOrderClose setFundraiserId(String value) { this.fundraiserId = value; return this; }
        public String getWarehouseCode() { return warehouseCode; }
        public NAVOrderClose setWarehouseCode(String value) { this.warehouseCode = value; return this; }
        public String getOriginalReshipExternalOrderId() { return originalReshipExternalOrderId; }
        public NAVOrderClose setOriginalReshipExternalOrderId(String value) { this.originalReshipExternalOrderId = value; return this; }
        public String getShippedVersionNumber() { return shippedVersionNumber; }
        public NAVOrderClose setShippedVersionNumber(String value) { this.shippedVersionNumber = value; return this; }
        public String getShippedVersionYear() { return shippedVersionYear; }
        public NAVOrderClose setShippedVersionYear(String value) { this.shippedVersionYear = value; return this; }
        public String getMasterOrderId() { return masterOrderId; }
        public NAVOrderClose setMasterOrderId(String value) { this.masterOrderId = value; return this; }
        public String getCouponValue() { return couponValue; }
        public NAVOrderClose setCouponValue(String value) { this.couponValue = value; return this; }
        public String getSalesCenterId() { return salesCenterId; }
        public NAVOrderClose setSalesCenterId(String value) { this.salesCenterId = value; return this; }
        public String getPremierLevel() { return premierLevel; }
        public NAVOrderClose setPremierLevel(String value) { this.premierLevel = value; return this; }
        public BigDecimal getPcLevelCurrentCycle() { return pcLevelCurrentCycle; }
        public NAVOrderClose setPcLevelCurrentCycle(BigDecimal value) { this.pcLevelCurrentCycle = value; return this; }
        public String getPremierLevelCurrentCycle() { return premierLevelCurrentCycle; }
        public NAVOrderClose setPremierLevelCurrentCycle(String value) { this.premierLevelCurrentCycle = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public NAVOrderClose setEmailAddress(String value) { this.emailAddress = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public NAVOrderClose setPhoneNumber(String value) { this.phoneNumber = value; return this; }
    }

    public static class NAVOrderCloseAddress
    {
        public String firstName = null;
        public String lastName = null;
        public String addressLine1 = null;
        public String addressLine2 = null;
        public String addressLine3 = null;
        public String addressLine4 = null;
        public String addressLine5 = null;
        public String city = null;
        public String stateProvinceCode = null;
        public String postalCode = null;
        public String county = null;
        public String countryCode = null;
        
        public String getFirstName() { return firstName; }
        public NAVOrderCloseAddress setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public NAVOrderCloseAddress setLastName(String value) { this.lastName = value; return this; }
        public String getAddressLine1() { return addressLine1; }
        public NAVOrderCloseAddress setAddressLine1(String value) { this.addressLine1 = value; return this; }
        public String getAddressLine2() { return addressLine2; }
        public NAVOrderCloseAddress setAddressLine2(String value) { this.addressLine2 = value; return this; }
        public String getAddressLine3() { return addressLine3; }
        public NAVOrderCloseAddress setAddressLine3(String value) { this.addressLine3 = value; return this; }
        public String getAddressLine4() { return addressLine4; }
        public NAVOrderCloseAddress setAddressLine4(String value) { this.addressLine4 = value; return this; }
        public String getAddressLine5() { return addressLine5; }
        public NAVOrderCloseAddress setAddressLine5(String value) { this.addressLine5 = value; return this; }
        public String getCity() { return city; }
        public NAVOrderCloseAddress setCity(String value) { this.city = value; return this; }
        public String getStateProvinceCode() { return stateProvinceCode; }
        public NAVOrderCloseAddress setStateProvinceCode(String value) { this.stateProvinceCode = value; return this; }
        public String getPostalCode() { return postalCode; }
        public NAVOrderCloseAddress setPostalCode(String value) { this.postalCode = value; return this; }
        public String getCounty() { return county; }
        public NAVOrderCloseAddress setCounty(String value) { this.county = value; return this; }
        public String getCountryCode() { return countryCode; }
        public NAVOrderCloseAddress setCountryCode(String value) { this.countryCode = value; return this; }
    }

    public static class NAVOrderCloseSku
    {
        public String skuCode = null;
        public Integer orderLineNumber = null;
        public Integer quantity = null;
        public Boolean isAutoShip = null;
        public ArrayList<NAVOrderCloseSkuComponent> orderSkuComponents = null;
        public BigDecimal pricePaidPerUnit = null;
        public BigDecimal retailPricePerUnit = null;
        public BigDecimal netPrice = null;
        public BigDecimal netSales = null;
        public BigDecimal submittedNetPrice = null;
        public BigDecimal submittedNetSales = null;
        public BigDecimal manualDiscountAmount = null;
        public BigDecimal itemDiscountPercent = null;
        public BigDecimal taxAmount = null;
        public BigDecimal taxPercentage = null;
        public BigDecimal commissionableValueEarned = null;
        public BigDecimal qualifyingValueEarned = null;
        public BigDecimal qualifyingValueEarnedSubmitted = null;
        public BigDecimal overrideCVEarned = null;
        public BigDecimal overrideCVEarnedSubmitted = null;
        public BigDecimal overrideQVEarned = null;
        public BigDecimal groupCVEarned = null;
        public BigDecimal groupQVEarned = null;
        public BigDecimal uplineCVEarned = null;
        public BigDecimal uplineQVEarned = null;
        public String versionNumber = null;
        public String versionYear = null;
        public String couponCode = null;
        public String substituteIndicator = null;
        public String fulfillmentIndicator = null;
        public String substituteSkuCode = null;
        public String vehicleId = null;
        public String offerId = null;
        public BigDecimal buyingDiscount = null;
        public BigDecimal originalOrderQty = null;
        public String parentSKUCode = null;
        public BigDecimal closedQuantity = null;
        
        public String getSkuCode() { return skuCode; }
        public NAVOrderCloseSku setSkuCode(String value) { this.skuCode = value; return this; }
        public Integer getOrderLineNumber() { return orderLineNumber; }
        public NAVOrderCloseSku setOrderLineNumber(Integer value) { this.orderLineNumber = value; return this; }
        public Integer getQuantity() { return quantity; }
        public NAVOrderCloseSku setQuantity(Integer value) { this.quantity = value; return this; }
        public Boolean getIsAutoShip() { return isAutoShip; }
        public NAVOrderCloseSku setIsAutoShip(Boolean value) { this.isAutoShip = value; return this; }
        public ArrayList<NAVOrderCloseSkuComponent> getOrderSkuComponents() { return orderSkuComponents; }
        public NAVOrderCloseSku setOrderSkuComponents(ArrayList<NAVOrderCloseSkuComponent> value) { this.orderSkuComponents = value; return this; }
        public BigDecimal getPricePaidPerUnit() { return pricePaidPerUnit; }
        public NAVOrderCloseSku setPricePaidPerUnit(BigDecimal value) { this.pricePaidPerUnit = value; return this; }
        public BigDecimal getRetailPricePerUnit() { return retailPricePerUnit; }
        public NAVOrderCloseSku setRetailPricePerUnit(BigDecimal value) { this.retailPricePerUnit = value; return this; }
        public BigDecimal getNetPrice() { return netPrice; }
        public NAVOrderCloseSku setNetPrice(BigDecimal value) { this.netPrice = value; return this; }
        public BigDecimal getNetSales() { return netSales; }
        public NAVOrderCloseSku setNetSales(BigDecimal value) { this.netSales = value; return this; }
        public BigDecimal getSubmittedNetPrice() { return submittedNetPrice; }
        public NAVOrderCloseSku setSubmittedNetPrice(BigDecimal value) { this.submittedNetPrice = value; return this; }
        public BigDecimal getSubmittedNetSales() { return submittedNetSales; }
        public NAVOrderCloseSku setSubmittedNetSales(BigDecimal value) { this.submittedNetSales = value; return this; }
        public BigDecimal getManualDiscountAmount() { return manualDiscountAmount; }
        public NAVOrderCloseSku setManualDiscountAmount(BigDecimal value) { this.manualDiscountAmount = value; return this; }
        public BigDecimal getItemDiscountPercent() { return itemDiscountPercent; }
        public NAVOrderCloseSku setItemDiscountPercent(BigDecimal value) { this.itemDiscountPercent = value; return this; }
        public BigDecimal getTaxAmount() { return taxAmount; }
        public NAVOrderCloseSku setTaxAmount(BigDecimal value) { this.taxAmount = value; return this; }
        public BigDecimal getTaxPercentage() { return taxPercentage; }
        public NAVOrderCloseSku setTaxPercentage(BigDecimal value) { this.taxPercentage = value; return this; }
        public BigDecimal getCommissionableValueEarned() { return commissionableValueEarned; }
        public NAVOrderCloseSku setCommissionableValueEarned(BigDecimal value) { this.commissionableValueEarned = value; return this; }
        public BigDecimal getQualifyingValueEarned() { return qualifyingValueEarned; }
        public NAVOrderCloseSku setQualifyingValueEarned(BigDecimal value) { this.qualifyingValueEarned = value; return this; }
        public BigDecimal getQualifyingValueEarnedSubmitted() { return qualifyingValueEarnedSubmitted; }
        public NAVOrderCloseSku setQualifyingValueEarnedSubmitted(BigDecimal value) { this.qualifyingValueEarnedSubmitted = value; return this; }
        public BigDecimal getOverrideCVEarned() { return overrideCVEarned; }
        public NAVOrderCloseSku setOverrideCVEarned(BigDecimal value) { this.overrideCVEarned = value; return this; }
        public BigDecimal getOverrideCVEarnedSubmitted() { return overrideCVEarnedSubmitted; }
        public NAVOrderCloseSku setOverrideCVEarnedSubmitted(BigDecimal value) { this.overrideCVEarnedSubmitted = value; return this; }
        public BigDecimal getOverrideQVEarned() { return overrideQVEarned; }
        public NAVOrderCloseSku setOverrideQVEarned(BigDecimal value) { this.overrideQVEarned = value; return this; }
        public BigDecimal getGroupCVEarned() { return groupCVEarned; }
        public NAVOrderCloseSku setGroupCVEarned(BigDecimal value) { this.groupCVEarned = value; return this; }
        public BigDecimal getGroupQVEarned() { return groupQVEarned; }
        public NAVOrderCloseSku setGroupQVEarned(BigDecimal value) { this.groupQVEarned = value; return this; }
        public BigDecimal getUplineCVEarned() { return uplineCVEarned; }
        public NAVOrderCloseSku setUplineCVEarned(BigDecimal value) { this.uplineCVEarned = value; return this; }
        public BigDecimal getUplineQVEarned() { return uplineQVEarned; }
        public NAVOrderCloseSku setUplineQVEarned(BigDecimal value) { this.uplineQVEarned = value; return this; }
        public String getVersionNumber() { return versionNumber; }
        public NAVOrderCloseSku setVersionNumber(String value) { this.versionNumber = value; return this; }
        public String getVersionYear() { return versionYear; }
        public NAVOrderCloseSku setVersionYear(String value) { this.versionYear = value; return this; }
        public String getCouponCode() { return couponCode; }
        public NAVOrderCloseSku setCouponCode(String value) { this.couponCode = value; return this; }
        public String getSubstituteIndicator() { return substituteIndicator; }
        public NAVOrderCloseSku setSubstituteIndicator(String value) { this.substituteIndicator = value; return this; }
        public String getFulfillmentIndicator() { return fulfillmentIndicator; }
        public NAVOrderCloseSku setFulfillmentIndicator(String value) { this.fulfillmentIndicator = value; return this; }
        public String getSubstituteSkuCode() { return substituteSkuCode; }
        public NAVOrderCloseSku setSubstituteSkuCode(String value) { this.substituteSkuCode = value; return this; }
        public String getVehicleId() { return vehicleId; }
        public NAVOrderCloseSku setVehicleId(String value) { this.vehicleId = value; return this; }
        public String getOfferId() { return offerId; }
        public NAVOrderCloseSku setOfferId(String value) { this.offerId = value; return this; }
        public BigDecimal getBuyingDiscount() { return buyingDiscount; }
        public NAVOrderCloseSku setBuyingDiscount(BigDecimal value) { this.buyingDiscount = value; return this; }
        public BigDecimal getOriginalOrderQty() { return originalOrderQty; }
        public NAVOrderCloseSku setOriginalOrderQty(BigDecimal value) { this.originalOrderQty = value; return this; }
        public String getParentSKUCode() { return parentSKUCode; }
        public NAVOrderCloseSku setParentSKUCode(String value) { this.parentSKUCode = value; return this; }
        public BigDecimal getClosedQuantity() { return closedQuantity; }
        public NAVOrderCloseSku setClosedQuantity(BigDecimal value) { this.closedQuantity = value; return this; }
    }

    public static class NAVOrderCloseSkuComponent
    {
        public Integer parentOrderLineNumber = null;
        public Integer orderLineNumber = null;
        public String skuCode = null;
        public Integer quantity = null;
        public BigDecimal pricePaidPerUnit = null;
        public BigDecimal retailPricePerUnit = null;
        public BigDecimal netPrice = null;
        public BigDecimal taxAmount = null;
        public BigDecimal taxPercentage = null;
        public String versionNumber = null;
        public String versionYear = null;
        public String vehicleId = null;
        public String offerId = null;
        
        public Integer getParentOrderLineNumber() { return parentOrderLineNumber; }
        public NAVOrderCloseSkuComponent setParentOrderLineNumber(Integer value) { this.parentOrderLineNumber = value; return this; }
        public Integer getOrderLineNumber() { return orderLineNumber; }
        public NAVOrderCloseSkuComponent setOrderLineNumber(Integer value) { this.orderLineNumber = value; return this; }
        public String getSkuCode() { return skuCode; }
        public NAVOrderCloseSkuComponent setSkuCode(String value) { this.skuCode = value; return this; }
        public Integer getQuantity() { return quantity; }
        public NAVOrderCloseSkuComponent setQuantity(Integer value) { this.quantity = value; return this; }
        public BigDecimal getPricePaidPerUnit() { return pricePaidPerUnit; }
        public NAVOrderCloseSkuComponent setPricePaidPerUnit(BigDecimal value) { this.pricePaidPerUnit = value; return this; }
        public BigDecimal getRetailPricePerUnit() { return retailPricePerUnit; }
        public NAVOrderCloseSkuComponent setRetailPricePerUnit(BigDecimal value) { this.retailPricePerUnit = value; return this; }
        public BigDecimal getNetPrice() { return netPrice; }
        public NAVOrderCloseSkuComponent setNetPrice(BigDecimal value) { this.netPrice = value; return this; }
        public BigDecimal getTaxAmount() { return taxAmount; }
        public NAVOrderCloseSkuComponent setTaxAmount(BigDecimal value) { this.taxAmount = value; return this; }
        public BigDecimal getTaxPercentage() { return taxPercentage; }
        public NAVOrderCloseSkuComponent setTaxPercentage(BigDecimal value) { this.taxPercentage = value; return this; }
        public String getVersionNumber() { return versionNumber; }
        public NAVOrderCloseSkuComponent setVersionNumber(String value) { this.versionNumber = value; return this; }
        public String getVersionYear() { return versionYear; }
        public NAVOrderCloseSkuComponent setVersionYear(String value) { this.versionYear = value; return this; }
        public String getVehicleId() { return vehicleId; }
        public NAVOrderCloseSkuComponent setVehicleId(String value) { this.vehicleId = value; return this; }
        public String getOfferId() { return offerId; }
        public NAVOrderCloseSkuComponent setOfferId(String value) { this.offerId = value; return this; }
    }

    public static class NAVOrderClosePayment
    {
        public String paymentType = null;
        public String paymentIdentifier1 = null;
        public String paymentIdentifier2 = null;
        public String paymentIdentifier3 = null;
        public String paymentIdentifier4 = null;
        public String paymentIdentifier5 = null;
        public String paymentToken = null;
        public Date authorizationTime = null;
        public String authorizationCode = null;
        public String transactionId = null;
        public BigDecimal amountCharged = null;
        public NAVOrderCloseAddress billingAddress = null;
        
        public String getPaymentType() { return paymentType; }
        public NAVOrderClosePayment setPaymentType(String value) { this.paymentType = value; return this; }
        public String getPaymentIdentifier1() { return paymentIdentifier1; }
        public NAVOrderClosePayment setPaymentIdentifier1(String value) { this.paymentIdentifier1 = value; return this; }
        public String getPaymentIdentifier2() { return paymentIdentifier2; }
        public NAVOrderClosePayment setPaymentIdentifier2(String value) { this.paymentIdentifier2 = value; return this; }
        public String getPaymentIdentifier3() { return paymentIdentifier3; }
        public NAVOrderClosePayment setPaymentIdentifier3(String value) { this.paymentIdentifier3 = value; return this; }
        public String getPaymentIdentifier4() { return paymentIdentifier4; }
        public NAVOrderClosePayment setPaymentIdentifier4(String value) { this.paymentIdentifier4 = value; return this; }
        public String getPaymentIdentifier5() { return paymentIdentifier5; }
        public NAVOrderClosePayment setPaymentIdentifier5(String value) { this.paymentIdentifier5 = value; return this; }
        public String getPaymentToken() { return paymentToken; }
        public NAVOrderClosePayment setPaymentToken(String value) { this.paymentToken = value; return this; }
        public Date getAuthorizationTime() { return authorizationTime; }
        public NAVOrderClosePayment setAuthorizationTime(Date value) { this.authorizationTime = value; return this; }
        public String getAuthorizationCode() { return authorizationCode; }
        public NAVOrderClosePayment setAuthorizationCode(String value) { this.authorizationCode = value; return this; }
        public String getTransactionId() { return transactionId; }
        public NAVOrderClosePayment setTransactionId(String value) { this.transactionId = value; return this; }
        public BigDecimal getAmountCharged() { return amountCharged; }
        public NAVOrderClosePayment setAmountCharged(BigDecimal value) { this.amountCharged = value; return this; }
        public NAVOrderCloseAddress getBillingAddress() { return billingAddress; }
        public NAVOrderClosePayment setBillingAddress(NAVOrderCloseAddress value) { this.billingAddress = value; return this; }
    }

    public static class NAVOrderCloseFee
    {
        public String feeSystemKeyword = null;
        public BigDecimal feeAmount = null;
        public BigDecimal taxAmount = null;
        public BigDecimal feeTotal = null;
        
        public String getFeeSystemKeyword() { return feeSystemKeyword; }
        public NAVOrderCloseFee setFeeSystemKeyword(String value) { this.feeSystemKeyword = value; return this; }
        public BigDecimal getFeeAmount() { return feeAmount; }
        public NAVOrderCloseFee setFeeAmount(BigDecimal value) { this.feeAmount = value; return this; }
        public BigDecimal getTaxAmount() { return taxAmount; }
        public NAVOrderCloseFee setTaxAmount(BigDecimal value) { this.taxAmount = value; return this; }
        public BigDecimal getFeeTotal() { return feeTotal; }
        public NAVOrderCloseFee setFeeTotal(BigDecimal value) { this.feeTotal = value; return this; }
    }

    public static class NAVOrderCloseShipment
    {
        public Date shipmentDateUTC = null;
        public String shippingMethod = null;
        public String shippingSpeed = null;
        public String trackingNumber = null;
        public String shipmentStatus = null;
        public String shipmentDetails = null;
        public BigDecimal shippingCost = null;
        public BigDecimal charge = null;
        public BigDecimal tax = null;
        public BigDecimal actualShippingCost = null;
        public BigDecimal cartonWeight = null;
        public ArrayList<NAVOrderCloseShipmentSku> orderShipmentSku = null;
        
        public Date getShipmentDateUTC() { return shipmentDateUTC; }
        public NAVOrderCloseShipment setShipmentDateUTC(Date value) { this.shipmentDateUTC = value; return this; }
        public String getShippingMethod() { return shippingMethod; }
        public NAVOrderCloseShipment setShippingMethod(String value) { this.shippingMethod = value; return this; }
        public String getShippingSpeed() { return shippingSpeed; }
        public NAVOrderCloseShipment setShippingSpeed(String value) { this.shippingSpeed = value; return this; }
        public String getTrackingNumber() { return trackingNumber; }
        public NAVOrderCloseShipment setTrackingNumber(String value) { this.trackingNumber = value; return this; }
        public String getShipmentStatus() { return shipmentStatus; }
        public NAVOrderCloseShipment setShipmentStatus(String value) { this.shipmentStatus = value; return this; }
        public String getShipmentDetails() { return shipmentDetails; }
        public NAVOrderCloseShipment setShipmentDetails(String value) { this.shipmentDetails = value; return this; }
        public BigDecimal getShippingCost() { return shippingCost; }
        public NAVOrderCloseShipment setShippingCost(BigDecimal value) { this.shippingCost = value; return this; }
        public BigDecimal getCharge() { return charge; }
        public NAVOrderCloseShipment setCharge(BigDecimal value) { this.charge = value; return this; }
        public BigDecimal getTax() { return tax; }
        public NAVOrderCloseShipment setTax(BigDecimal value) { this.tax = value; return this; }
        public BigDecimal getActualShippingCost() { return actualShippingCost; }
        public NAVOrderCloseShipment setActualShippingCost(BigDecimal value) { this.actualShippingCost = value; return this; }
        public BigDecimal getCartonWeight() { return cartonWeight; }
        public NAVOrderCloseShipment setCartonWeight(BigDecimal value) { this.cartonWeight = value; return this; }
        public ArrayList<NAVOrderCloseShipmentSku> getOrderShipmentSku() { return orderShipmentSku; }
        public NAVOrderCloseShipment setOrderShipmentSku(ArrayList<NAVOrderCloseShipmentSku> value) { this.orderShipmentSku = value; return this; }
    }

    public static class NAVOrderCloseShipmentSku
    {
        public Integer orderLineNumber = null;
        public Integer quantityShipped = null;
        public String substituteSkuCode = null;
        
        public Integer getOrderLineNumber() { return orderLineNumber; }
        public NAVOrderCloseShipmentSku setOrderLineNumber(Integer value) { this.orderLineNumber = value; return this; }
        public Integer getQuantityShipped() { return quantityShipped; }
        public NAVOrderCloseShipmentSku setQuantityShipped(Integer value) { this.quantityShipped = value; return this; }
        public String getSubstituteSkuCode() { return substituteSkuCode; }
        public NAVOrderCloseShipmentSku setSubstituteSkuCode(String value) { this.substituteSkuCode = value; return this; }
    }

    public static class OrderCloseResponse
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public OrderCloseResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java OrderClose DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /orders/close HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OrderClose xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <OrderCloseData>
    <AdditionalCode>String</AdditionalCode>
    <AgentId>String</AgentId>
    <BeeNumberCustomer>0</BeeNumberCustomer>
    <BeeNumberPayee>0</BeeNumberPayee>
    <CompletedDateUTC>0001-01-01T00:00:00</CompletedDateUTC>
    <CouponValue>String</CouponValue>
    <CreatedDateUTC>0001-01-01T00:00:00</CreatedDateUTC>
    <DiscountPercent>String</DiscountPercent>
    <EmailAddress>String</EmailAddress>
    <ExternalDiscountReason>String</ExternalDiscountReason>
    <ExternalOrderId>String</ExternalOrderId>
    <FundraiserId>String</FundraiserId>
    <Geocode>String</Geocode>
    <GiftMessage>String</GiftMessage>
    <GiftMessageFrom>String</GiftMessageFrom>
    <GiftMessageTo>String</GiftMessageTo>
    <MasterOrderId>String</MasterOrderId>
    <NumberOfCustomersServed>0</NumberOfCustomersServed>
    <OrderFees>
      <NAVOrderCloseFee>
        <FeeAmount>0</FeeAmount>
        <FeeSystemKeyword>String</FeeSystemKeyword>
        <FeeTotal>0</FeeTotal>
        <TaxAmount>0</TaxAmount>
      </NAVOrderCloseFee>
    </OrderFees>
    <OrderPayments>
      <NAVOrderClosePayment>
        <AmountCharged>0</AmountCharged>
        <AuthorizationCode>String</AuthorizationCode>
        <AuthorizationTime>0001-01-01T00:00:00</AuthorizationTime>
        <BillingAddress>
          <AddressLine1>String</AddressLine1>
          <AddressLine2>String</AddressLine2>
          <AddressLine3>String</AddressLine3>
          <AddressLine4>String</AddressLine4>
          <AddressLine5>String</AddressLine5>
          <City>String</City>
          <CountryCode>String</CountryCode>
          <County>String</County>
          <FirstName>String</FirstName>
          <LastName>String</LastName>
          <PostalCode>String</PostalCode>
          <StateProvinceCode>String</StateProvinceCode>
        </BillingAddress>
        <PaymentIdentifier1>String</PaymentIdentifier1>
        <PaymentIdentifier2>String</PaymentIdentifier2>
        <PaymentIdentifier3>String</PaymentIdentifier3>
        <PaymentIdentifier4>String</PaymentIdentifier4>
        <PaymentIdentifier5>String</PaymentIdentifier5>
        <PaymentToken>String</PaymentToken>
        <PaymentType>String</PaymentType>
        <TransactionId>String</TransactionId>
      </NAVOrderClosePayment>
    </OrderPayments>
    <OrderSkus>
      <NAVOrderCloseSku>
        <BuyingDiscount>0</BuyingDiscount>
        <ClosedQuantity>0</ClosedQuantity>
        <CommissionableValueEarned>0</CommissionableValueEarned>
        <CouponCode>String</CouponCode>
        <FulfillmentIndicator>String</FulfillmentIndicator>
        <GroupCVEarned>0</GroupCVEarned>
        <GroupQVEarned>0</GroupQVEarned>
        <IsAutoShip>false</IsAutoShip>
        <ItemDiscountPercent>0</ItemDiscountPercent>
        <ManualDiscountAmount>0</ManualDiscountAmount>
        <NetPrice>0</NetPrice>
        <NetSales>0</NetSales>
        <OfferId>String</OfferId>
        <OrderLineNumber>0</OrderLineNumber>
        <OrderSkuComponents>
          <NAVOrderCloseSkuComponent>
            <NetPrice>0</NetPrice>
            <OfferId>String</OfferId>
            <OrderLineNumber>0</OrderLineNumber>
            <ParentOrderLineNumber>0</ParentOrderLineNumber>
            <PricePaidPerUnit>0</PricePaidPerUnit>
            <Quantity>0</Quantity>
            <RetailPricePerUnit>0</RetailPricePerUnit>
            <SkuCode>String</SkuCode>
            <TaxAmount>0</TaxAmount>
            <TaxPercentage>0</TaxPercentage>
            <VehicleId>String</VehicleId>
            <VersionNumber>String</VersionNumber>
            <VersionYear>String</VersionYear>
          </NAVOrderCloseSkuComponent>
        </OrderSkuComponents>
        <OriginalOrderQty>0</OriginalOrderQty>
        <OverrideCVEarned>0</OverrideCVEarned>
        <OverrideCVEarnedSubmitted>0</OverrideCVEarnedSubmitted>
        <OverrideQVEarned>0</OverrideQVEarned>
        <ParentSKUCode>String</ParentSKUCode>
        <PricePaidPerUnit>0</PricePaidPerUnit>
        <QualifyingValueEarned>0</QualifyingValueEarned>
        <QualifyingValueEarnedSubmitted>0</QualifyingValueEarnedSubmitted>
        <Quantity>0</Quantity>
        <RetailPricePerUnit>0</RetailPricePerUnit>
        <SkuCode>String</SkuCode>
        <SubmittedNetPrice>0</SubmittedNetPrice>
        <SubmittedNetSales>0</SubmittedNetSales>
        <SubstituteIndicator>String</SubstituteIndicator>
        <SubstituteSkuCode>String</SubstituteSkuCode>
        <TaxAmount>0</TaxAmount>
        <TaxPercentage>0</TaxPercentage>
        <UplineCVEarned>0</UplineCVEarned>
        <UplineQVEarned>0</UplineQVEarned>
        <VehicleId>String</VehicleId>
        <VersionNumber>String</VersionNumber>
        <VersionYear>String</VersionYear>
      </NAVOrderCloseSku>
    </OrderSkus>
    <OrderSource>String</OrderSource>
    <OrderTotal>0</OrderTotal>
    <OrderTypeId>String</OrderTypeId>
    <OrderWithinTimePeriod>0</OrderWithinTimePeriod>
    <OriginalReshipExternalOrderId>String</OriginalReshipExternalOrderId>
    <PCLevel>0</PCLevel>
    <PCLevelCurrentCycle>0</PCLevelCurrentCycle>
    <PhoneNumber>String</PhoneNumber>
    <PremierLevel>String</PremierLevel>
    <PremierLevelCurrentCycle>String</PremierLevelCurrentCycle>
    <SalesCenterId>String</SalesCenterId>
    <ShippedVersionNumber>String</ShippedVersionNumber>
    <ShippedVersionYear>String</ShippedVersionYear>
    <ShippingAddress>
      <AddressLine1>String</AddressLine1>
      <AddressLine2>String</AddressLine2>
      <AddressLine3>String</AddressLine3>
      <AddressLine4>String</AddressLine4>
      <AddressLine5>String</AddressLine5>
      <City>String</City>
      <CountryCode>String</CountryCode>
      <County>String</County>
      <FirstName>String</FirstName>
      <LastName>String</LastName>
      <PostalCode>String</PostalCode>
      <StateProvinceCode>String</StateProvinceCode>
    </ShippingAddress>
    <ShippingComment>String</ShippingComment>
    <ShippingCost>0</ShippingCost>
    <ShippingMethod>String</ShippingMethod>
    <ShippingTax>0</ShippingTax>
    <SubTotal>0</SubTotal>
    <SubmittedDateUTC>0001-01-01T00:00:00</SubmittedDateUTC>
    <Tax>0</Tax>
    <TaxAreaCode>String</TaxAreaCode>
    <TaxRatePercent>String</TaxRatePercent>
    <VersionNumber>String</VersionNumber>
    <VersionYear>String</VersionYear>
    <WarehouseCode>String</WarehouseCode>
  </OrderCloseData>
  <Shipment>
    <NAVOrderCloseShipment>
      <ActualShippingCost>0</ActualShippingCost>
      <CartonWeight>0</CartonWeight>
      <Charge>0</Charge>
      <OrderShipmentSku>
        <NAVOrderCloseShipmentSku>
          <OrderLineNumber>0</OrderLineNumber>
          <QuantityShipped>0</QuantityShipped>
          <SubstituteSkuCode>String</SubstituteSkuCode>
        </NAVOrderCloseShipmentSku>
      </OrderShipmentSku>
      <ShipmentDateUTC>0001-01-01T00:00:00</ShipmentDateUTC>
      <ShipmentDetails>String</ShipmentDetails>
      <ShipmentStatus>String</ShipmentStatus>
      <ShippingCost>0</ShippingCost>
      <ShippingMethod>String</ShippingMethod>
      <ShippingSpeed>String</ShippingSpeed>
      <Tax>0</Tax>
      <TrackingNumber>String</TrackingNumber>
    </NAVOrderCloseShipment>
  </Shipment>
</OrderClose>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OrderCloseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</OrderCloseResponse>