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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"orderCloseData":{"externalOrderId":"String","orderTypeId":"String","createdDateUTC":"0001-01-01T00:00:00.0000000","submittedDateUTC":"0001-01-01T00:00:00.0000000","completedDateUTC":"0001-01-01T00:00:00.0000000","beeNumberCustomer":0,"beeNumberPayee":0,"orderSource":"String","shippingMethod":"String","giftMessage":"String","giftMessageFrom":"String","giftMessageTo":"String","shippingComment":"String","shippingAddress":{"firstName":"String","lastName":"String","addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","addressLine5":"String","city":"String","stateProvinceCode":"String","postalCode":"String","county":"String","countryCode":"String"},"orderSkus":[{"skuCode":"String","orderLineNumber":0,"quantity":0,"isAutoShip":false,"orderSkuComponents":[{"parentOrderLineNumber":0,"orderLineNumber":0,"skuCode":"String","quantity":0,"pricePaidPerUnit":0,"retailPricePerUnit":0,"netPrice":0,"taxAmount":0,"taxPercentage":0,"versionNumber":"String","versionYear":"String","vehicleId":"String","offerId":"String"}],"pricePaidPerUnit":0,"retailPricePerUnit":0,"netPrice":0,"netSales":0,"submittedNetPrice":0,"submittedNetSales":0,"manualDiscountAmount":0,"itemDiscountPercent":0,"taxAmount":0,"taxPercentage":0,"commissionableValueEarned":0,"qualifyingValueEarned":0,"qualifyingValueEarnedSubmitted":0,"overrideCVEarned":0,"overrideCVEarnedSubmitted":0,"overrideQVEarned":0,"groupCVEarned":0,"groupQVEarned":0,"uplineCVEarned":0,"uplineQVEarned":0,"versionNumber":"String","versionYear":"String","couponCode":"String","substituteIndicator":"String","fulfillmentIndicator":"String","substituteSkuCode":"String","vehicleId":"String","offerId":"String","buyingDiscount":0,"originalOrderQty":0,"parentSKUCode":"String","closedQuantity":0}],"orderPayments":[{"paymentType":"String","paymentIdentifier1":"String","paymentIdentifier2":"String","paymentIdentifier3":"String","paymentIdentifier4":"String","paymentIdentifier5":"String","paymentToken":"String","authorizationTime":"0001-01-01T00:00:00.0000000","authorizationCode":"String","transactionId":"String","amountCharged":0,"billingAddress":{"firstName":"String","lastName":"String","addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","addressLine5":"String","city":"String","stateProvinceCode":"String","postalCode":"String","county":"String","countryCode":"String"}}],"orderFees":[{"feeSystemKeyword":"String","feeAmount":0,"taxAmount":0,"feeTotal":0}],"subTotal":0,"orderTotal":0,"shippingCost":0,"tax":0,"shippingTax":0,"externalDiscountReason":"String","pcLevel":0,"agentId":"String","numberOfCustomersServed":0,"versionNumber":"String","versionYear":"String","additionalCode":"String","discountPercent":"String","taxRatePercent":"String","orderWithinTimePeriod":0,"taxAreaCode":"String","geocode":"String","fundraiserId":"String","warehouseCode":"String","originalReshipExternalOrderId":"String","shippedVersionNumber":"String","shippedVersionYear":"String","masterOrderId":"String","couponValue":"String","salesCenterId":"String","premierLevel":"String","pcLevelCurrentCycle":0,"premierLevelCurrentCycle":"String","emailAddress":"String","phoneNumber":"String"},"shipment":[{"shipmentDateUTC":"0001-01-01T00:00:00.0000000","shippingMethod":"String","shippingSpeed":"String","trackingNumber":"String","shipmentStatus":"String","shipmentDetails":"String","shippingCost":0,"charge":0,"tax":0,"actualShippingCost":0,"cartonWeight":0,"orderShipmentSku":[{"orderLineNumber":0,"quantityShipped":0,"substituteSkuCode":"String"}]}]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}