| POST | /purchase/simulate/v2 | Simulate Order |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SimulateOrderV2
{
/**
* Brand Trigram of the intended Order, e.g. 'IWC', 'CAR', etc.
*/
@ApiMember(Description="Brand Trigram of the intended Order, e.g. 'IWC', 'CAR', etc.", IsRequired=true)
public String brand = null;
/**
* Global Pos Code for the intended Order e.g. ES100:102048
*/
@ApiMember(Description="Global Pos Code for the intended Order e.g. ES100:102048", IsRequired=true)
public String posCode = null;
/**
* Customer Reference
*/
@ApiMember(Description="Customer Reference")
public String customerReference = null;
/**
* Additional Notes regarding the Order
*/
@ApiMember(Description="Additional Notes regarding the Order")
public String notes = null;
/**
* Purchase order date, e.g. '2020-12-31'
*/
@ApiMember(Description="Purchase order date, e.g. '2020-12-31'")
public Date orderDate = null;
/**
* List of Articles to be simulated
*/
@ApiMember(Description="List of Articles to be simulated", IsRequired=true)
public ArrayList<SimulateOrderItemRequestV2> orderItems = null;
/**
* Booster1 ID of the end Customer
*/
@ApiMember(Description="Booster1 ID of the end Customer")
public String endCustomerBooster1Id = null;
/**
* Details of the end Customer
*/
@ApiMember(Description="Details of the end Customer")
public EndCustomerDetails endCustomerDetails = null;
public String getBrand() { return brand; }
public SimulateOrderV2 setBrand(String value) { this.brand = value; return this; }
public String getPosCode() { return posCode; }
public SimulateOrderV2 setPosCode(String value) { this.posCode = value; return this; }
public String getCustomerReference() { return customerReference; }
public SimulateOrderV2 setCustomerReference(String value) { this.customerReference = value; return this; }
public String getNotes() { return notes; }
public SimulateOrderV2 setNotes(String value) { this.notes = value; return this; }
public Date getOrderDate() { return orderDate; }
public SimulateOrderV2 setOrderDate(Date value) { this.orderDate = value; return this; }
public ArrayList<SimulateOrderItemRequestV2> getOrderItems() { return orderItems; }
public SimulateOrderV2 setOrderItems(ArrayList<SimulateOrderItemRequestV2> value) { this.orderItems = value; return this; }
public String getEndCustomerBooster1Id() { return endCustomerBooster1Id; }
public SimulateOrderV2 setEndCustomerBooster1Id(String value) { this.endCustomerBooster1Id = value; return this; }
public EndCustomerDetails getEndCustomerDetails() { return endCustomerDetails; }
public SimulateOrderV2 setEndCustomerDetails(EndCustomerDetails value) { this.endCustomerDetails = value; return this; }
}
public static class SimulateOrderItemRequestV2
{
/**
* Line Number
*/
@ApiMember(Description="Line Number", IsRequired=true)
public Integer lineNumber = null;
/**
* Reference ID of the article/product, e.g. 'CRWB520003'
*/
@ApiMember(Description="Reference ID of the article/product, e.g. 'CRWB520003'", IsRequired=true)
public String articleCode = null;
/**
* Desired quantity of the article
*/
@ApiMember(Description="Desired quantity of the article", IsRequired=true)
public Integer quantity = null;
/**
* Requested Delivery Date of the Item, e.g. '2020-12-30'
*/
@ApiMember(Description="Requested Delivery Date of the Item, e.g. '2020-12-30'")
public Date requestedDeliveryDate = null;
/**
* Purchase order type, e.g. 'WCFS', null. Null for ordinary order
*/
@ApiMember(Description="Purchase order type, e.g. 'WCFS', null. Null for ordinary order")
public String orderType = null;
/**
* Final Ship To Pos Code
*/
@ApiMember(Description="Final Ship To Pos Code")
public String finalShipToId = null;
/**
* Strap definition
*/
@ApiMember(Description="Strap definition")
public StrapItem strap = null;
public Integer getLineNumber() { return lineNumber; }
public SimulateOrderItemRequestV2 setLineNumber(Integer value) { this.lineNumber = value; return this; }
public String getArticleCode() { return articleCode; }
public SimulateOrderItemRequestV2 setArticleCode(String value) { this.articleCode = value; return this; }
public Integer getQuantity() { return quantity; }
public SimulateOrderItemRequestV2 setQuantity(Integer value) { this.quantity = value; return this; }
public Date getRequestedDeliveryDate() { return requestedDeliveryDate; }
public SimulateOrderItemRequestV2 setRequestedDeliveryDate(Date value) { this.requestedDeliveryDate = value; return this; }
public String getOrderType() { return orderType; }
public SimulateOrderItemRequestV2 setOrderType(String value) { this.orderType = value; return this; }
public String getFinalShipToId() { return finalShipToId; }
public SimulateOrderItemRequestV2 setFinalShipToId(String value) { this.finalShipToId = value; return this; }
public StrapItem getStrap() { return strap; }
public SimulateOrderItemRequestV2 setStrap(StrapItem value) { this.strap = value; return this; }
}
public static class StrapItem
{
/**
* Article reference
*/
@ApiMember(Description="Article reference")
public String speakingArticleCode = null;
/**
* Buckle type Description
*/
@ApiMember(Description="Buckle type Description")
public String buckleTypeDescription = null;
/**
* Buckle type
*/
@ApiMember(Description="Buckle type")
public String buckleTypeCode = null;
/**
* watch 6 Length
*/
@ApiMember(Description="watch 6 Length")
public Integer watch6Length = null;
/**
* watch 12 Length
*/
@ApiMember(Description="watch 12 Length")
public Integer watch12Length = null;
/**
* Article Material Code
*/
@ApiMember(Description="Article Material Code")
public String materialCode = null;
/**
* Article Material Description
*/
@ApiMember(Description="Article Material Description")
public String materialDescription = null;
/**
* Article Color Code
*/
@ApiMember(Description="Article Color Code")
public String colorCode = null;
/**
* Article Color Description
*/
@ApiMember(Description="Article Color Description")
public String colorDescription = null;
/**
* Buckle Witdh
*/
@ApiMember(Description="Buckle Witdh")
public String buckleWidth = null;
/**
* Article Lining Code
*/
@ApiMember(Description="Article Lining Code")
public String liningCode = null;
/**
* Article Lining Description
*/
@ApiMember(Description="Article Lining Description")
public String liningDescription = null;
/**
* Article Stitching Code
*/
@ApiMember(Description="Article Stitching Code")
public String stitchingCode = null;
/**
* Article Stitching Description
*/
@ApiMember(Description="Article Stitching Description")
public String stitchingDescription = null;
/**
* Article Edge Code
*/
@ApiMember(Description="Article Edge Code")
public String edgeCode = null;
/**
* Article Edge Description
*/
@ApiMember(Description="Article Edge Description")
public String edgeDescription = null;
/**
* Article Padding Code
*/
@ApiMember(Description="Article Padding Code")
public String paddingCode = null;
/**
* Article Padding Description
*/
@ApiMember(Description="Article Padding Description")
public String paddingDescription = null;
/**
* Article Speciality Code
*/
@ApiMember(Description="Article Speciality Code")
public String specialtyCode = null;
/**
* Article Speciality Description
*/
@ApiMember(Description="Article Speciality Description")
public String specialtyDescription = null;
/**
* Nuancier Code
*/
@ApiMember(Description="Nuancier Code")
public String nuancierCode = null;
/**
* Strap Vip Order
*/
@ApiMember(Description="Strap Vip Order")
public Boolean isStrapVipOrder = null;
public String getSpeakingArticleCode() { return speakingArticleCode; }
public StrapItem setSpeakingArticleCode(String value) { this.speakingArticleCode = value; return this; }
public String getBuckleTypeDescription() { return buckleTypeDescription; }
public StrapItem setBuckleTypeDescription(String value) { this.buckleTypeDescription = value; return this; }
public String getBuckleTypeCode() { return buckleTypeCode; }
public StrapItem setBuckleTypeCode(String value) { this.buckleTypeCode = value; return this; }
public Integer getWatch6Length() { return watch6Length; }
public StrapItem setWatch6Length(Integer value) { this.watch6Length = value; return this; }
public Integer getWatch12Length() { return watch12Length; }
public StrapItem setWatch12Length(Integer value) { this.watch12Length = value; return this; }
public String getMaterialCode() { return materialCode; }
public StrapItem setMaterialCode(String value) { this.materialCode = value; return this; }
public String getMaterialDescription() { return materialDescription; }
public StrapItem setMaterialDescription(String value) { this.materialDescription = value; return this; }
public String getColorCode() { return colorCode; }
public StrapItem setColorCode(String value) { this.colorCode = value; return this; }
public String getColorDescription() { return colorDescription; }
public StrapItem setColorDescription(String value) { this.colorDescription = value; return this; }
public String getBuckleWidth() { return buckleWidth; }
public StrapItem setBuckleWidth(String value) { this.buckleWidth = value; return this; }
public String getLiningCode() { return liningCode; }
public StrapItem setLiningCode(String value) { this.liningCode = value; return this; }
public String getLiningDescription() { return liningDescription; }
public StrapItem setLiningDescription(String value) { this.liningDescription = value; return this; }
public String getStitchingCode() { return stitchingCode; }
public StrapItem setStitchingCode(String value) { this.stitchingCode = value; return this; }
public String getStitchingDescription() { return stitchingDescription; }
public StrapItem setStitchingDescription(String value) { this.stitchingDescription = value; return this; }
public String getEdgeCode() { return edgeCode; }
public StrapItem setEdgeCode(String value) { this.edgeCode = value; return this; }
public String getEdgeDescription() { return edgeDescription; }
public StrapItem setEdgeDescription(String value) { this.edgeDescription = value; return this; }
public String getPaddingCode() { return paddingCode; }
public StrapItem setPaddingCode(String value) { this.paddingCode = value; return this; }
public String getPaddingDescription() { return paddingDescription; }
public StrapItem setPaddingDescription(String value) { this.paddingDescription = value; return this; }
public String getSpecialtyCode() { return specialtyCode; }
public StrapItem setSpecialtyCode(String value) { this.specialtyCode = value; return this; }
public String getSpecialtyDescription() { return specialtyDescription; }
public StrapItem setSpecialtyDescription(String value) { this.specialtyDescription = value; return this; }
public String getNuancierCode() { return nuancierCode; }
public StrapItem setNuancierCode(String value) { this.nuancierCode = value; return this; }
public Boolean getIsStrapVipOrder() { return isStrapVipOrder; }
public StrapItem setIsStrapVipOrder(Boolean value) { this.isStrapVipOrder = value; return this; }
}
public static class EndCustomerDetails
{
/**
* Title of the end Customer, e.g. 'MR', 'MRS'.
*/
@ApiMember(Description="Title of the end Customer, e.g. 'MR', 'MRS'.")
public String title = null;
/**
* First Name of the end Customer
*/
@ApiMember(Description="First Name of the end Customer", IsRequired=true)
public String firstName = null;
/**
* Last Name of the end Customer
*/
@ApiMember(Description="Last Name of the end Customer", IsRequired=true)
public String lastName = null;
/**
* Email of the end Customer
*/
@ApiMember(Description="Email of the end Customer")
public String email = null;
/**
* Phone number of the end Customer, e.g. '0032477123456'.
*/
@ApiMember(Description="Phone number of the end Customer, e.g. '0032477123456'. ")
public String phone = null;
/**
* Countr code in the shipping address, e.g. 'BE' (ISO Code)
*/
@ApiMember(Description="Countr code in the shipping address, e.g. 'BE' (ISO Code)", IsRequired=true)
public String country = null;
/**
* City name in the shipping address
*/
@ApiMember(Description="City name in the shipping address", IsRequired=true)
public String city = null;
/**
* Street name in the shipping address
*/
@ApiMember(Description="Street name in the shipping address", IsRequired=true)
public String street = null;
/**
* House number in the shipping address
*/
@ApiMember(Description="House number in the shipping address")
public String houseNumber = null;
/**
* Building number in the shipping address
*/
@ApiMember(Description="Building number in the shipping address")
public String building = null;
/**
* Postal code in the shipping address
*/
@ApiMember(Description="Postal code in the shipping address")
public String postalCode = null;
/**
* Region code in the shipping address, e.g. 'VL' (ISO Code)
*/
@ApiMember(Description="Region code in the shipping address, e.g. 'VL' (ISO Code)")
public String region = null;
/**
* District name in the shipping address
*/
@ApiMember(Description="District name in the shipping address")
public String district = null;
/**
* Additional Info number to the shipping address
*/
@ApiMember(Description="Additional Info number to the shipping address")
public String additionalInfo = null;
public String getTitle() { return title; }
public EndCustomerDetails setTitle(String value) { this.title = value; return this; }
public String getFirstName() { return firstName; }
public EndCustomerDetails setFirstName(String value) { this.firstName = value; return this; }
public String getLastName() { return lastName; }
public EndCustomerDetails setLastName(String value) { this.lastName = value; return this; }
public String getEmail() { return email; }
public EndCustomerDetails setEmail(String value) { this.email = value; return this; }
public String getPhone() { return phone; }
public EndCustomerDetails setPhone(String value) { this.phone = value; return this; }
public String getCountry() { return country; }
public EndCustomerDetails setCountry(String value) { this.country = value; return this; }
public String getCity() { return city; }
public EndCustomerDetails setCity(String value) { this.city = value; return this; }
public String getStreet() { return street; }
public EndCustomerDetails setStreet(String value) { this.street = value; return this; }
public String getHouseNumber() { return houseNumber; }
public EndCustomerDetails setHouseNumber(String value) { this.houseNumber = value; return this; }
public String getBuilding() { return building; }
public EndCustomerDetails setBuilding(String value) { this.building = value; return this; }
public String getPostalCode() { return postalCode; }
public EndCustomerDetails setPostalCode(String value) { this.postalCode = value; return this; }
public String getRegion() { return region; }
public EndCustomerDetails setRegion(String value) { this.region = value; return this; }
public String getDistrict() { return district; }
public EndCustomerDetails setDistrict(String value) { this.district = value; return this; }
public String getAdditionalInfo() { return additionalInfo; }
public EndCustomerDetails setAdditionalInfo(String value) { this.additionalInfo = value; return this; }
}
public static class SimulateOrderResponseV2
{
/**
* List of splitted order simulation results
*/
@ApiMember(Description="List of splitted order simulation results", IsRequired=true)
public HashMap<String,SplittedSimulateOrderResponse> results = null;
/**
* Addresses which order can be shipped to (common list for all splitted orders)
*/
@ApiMember(Description="Addresses which order can be shipped to (common list for all splitted orders)")
public ArrayList<Party> shipTo = null;
/**
* Addresses which order can be final shipped to (common list for all splitted orders)
*/
@ApiMember(Description="Addresses which order can be final shipped to (common list for all splitted orders)")
public ArrayList<Party> finalShipTo = null;
/**
* Addresses which order can be billed to (common list for all splitted orders)
*/
@ApiMember(Description="Addresses which order can be billed to (common list for all splitted orders)")
public ArrayList<Party> billTo = null;
/**
* Address which order is made to (common list for all splitted orders)
*/
@ApiMember(Description="Address which order is made to (common list for all splitted orders)")
public Party soldTo = null;
/**
* Sales representatives (common list for all splitted orders)
*/
@ApiMember(Description="Sales representatives (common list for all splitted orders)")
public Party salesRepresentative = null;
public HashMap<String,SplittedSimulateOrderResponse> getResults() { return results; }
public SimulateOrderResponseV2 setResults(HashMap<String,SplittedSimulateOrderResponse> value) { this.results = value; return this; }
public ArrayList<Party> getShipTo() { return shipTo; }
public SimulateOrderResponseV2 setShipTo(ArrayList<Party> value) { this.shipTo = value; return this; }
public ArrayList<Party> getFinalShipTo() { return finalShipTo; }
public SimulateOrderResponseV2 setFinalShipTo(ArrayList<Party> value) { this.finalShipTo = value; return this; }
public ArrayList<Party> getBillTo() { return billTo; }
public SimulateOrderResponseV2 setBillTo(ArrayList<Party> value) { this.billTo = value; return this; }
public Party getSoldTo() { return soldTo; }
public SimulateOrderResponseV2 setSoldTo(Party value) { this.soldTo = value; return this; }
public Party getSalesRepresentative() { return salesRepresentative; }
public SimulateOrderResponseV2 setSalesRepresentative(Party value) { this.salesRepresentative = value; return this; }
}
public static class SplittedSimulateOrderResponse
{
/**
* Order Type
*/
@ApiMember(Description="Order Type", IsRequired=true)
public String orderType = null;
/**
* Product Type
*/
@ApiMember(Description="Product Type", IsRequired=true)
public String productType = null;
/**
* List of Articles simulated
*/
@ApiMember(Description="List of Articles simulated", IsRequired=true)
public ArrayList<SimulateOrderItemResponseV2> orderItems = null;
/**
* Total Values
*/
@ApiMember(Description="Total Values", IsRequired=true)
public TotalValues totalValues = null;
/**
* Addresses which order can be shipped to
*/
@ApiMember(Description="Addresses which order can be shipped to", IsRequired=true)
public ArrayList<Party> shipTo = null;
/**
* Addresses which order can be final shipped to
*/
@ApiMember(Description="Addresses which order can be final shipped to")
public ArrayList<Party> finalShipTo = null;
/**
* Addresses which order can be billed to
*/
@ApiMember(Description="Addresses which order can be billed to", IsRequired=true)
public ArrayList<Party> billTo = null;
/**
* Address which order is made to
*/
@ApiMember(Description="Address which order is made to", IsRequired=true)
public Party soldTo = null;
/**
* Sales Representative
*/
@ApiMember(Description="Sales Representative")
public Party salesRepresentative = null;
/**
* Warning list
*/
@ApiMember(Description="Warning list", IsRequired=true)
public ArrayList<Warning> warnings = null;
public String getOrderType() { return orderType; }
public SplittedSimulateOrderResponse setOrderType(String value) { this.orderType = value; return this; }
public String getProductType() { return productType; }
public SplittedSimulateOrderResponse setProductType(String value) { this.productType = value; return this; }
public ArrayList<SimulateOrderItemResponseV2> getOrderItems() { return orderItems; }
public SplittedSimulateOrderResponse setOrderItems(ArrayList<SimulateOrderItemResponseV2> value) { this.orderItems = value; return this; }
public TotalValues getTotalValues() { return totalValues; }
public SplittedSimulateOrderResponse setTotalValues(TotalValues value) { this.totalValues = value; return this; }
public ArrayList<Party> getShipTo() { return shipTo; }
public SplittedSimulateOrderResponse setShipTo(ArrayList<Party> value) { this.shipTo = value; return this; }
public ArrayList<Party> getFinalShipTo() { return finalShipTo; }
public SplittedSimulateOrderResponse setFinalShipTo(ArrayList<Party> value) { this.finalShipTo = value; return this; }
public ArrayList<Party> getBillTo() { return billTo; }
public SplittedSimulateOrderResponse setBillTo(ArrayList<Party> value) { this.billTo = value; return this; }
public Party getSoldTo() { return soldTo; }
public SplittedSimulateOrderResponse setSoldTo(Party value) { this.soldTo = value; return this; }
public Party getSalesRepresentative() { return salesRepresentative; }
public SplittedSimulateOrderResponse setSalesRepresentative(Party value) { this.salesRepresentative = value; return this; }
public ArrayList<Warning> getWarnings() { return warnings; }
public SplittedSimulateOrderResponse setWarnings(ArrayList<Warning> value) { this.warnings = value; return this; }
}
public static class SimulateOrderItemResponseV2
{
/**
* Line Number, e.g 20, 40, 21, 41
*/
@ApiMember(Description="Line Number, e.g 20, 40, 21, 41", IsRequired=true)
public Integer lineNumber = null;
/**
* Parent Line Number, e.g 20, 40
*/
@ApiMember(Description="Parent Line Number, e.g 20, 40", IsRequired=true)
public Integer parentLineNumber = null;
/**
* Original line number in the request. Line numbers are remapped after the split
*/
@ApiMember(Description="Original line number in the request. Line numbers are remapped after the split", IsRequired=true)
public Integer requestLineNumber = null;
/**
* Reference No of item, e.g.: CRWB521234
*/
@ApiMember(Description="Reference No of item, e.g.: CRWB521234", IsRequired=true)
public String articleCode = null;
/**
* Substituted reference No of item, e.g.: CRWB520003
*/
@ApiMember(Description="Substituted reference No of item, e.g.: CRWB520003")
public String substitutedArticleCode = null;
/**
* DeliveryPlantId of item, e.g.: CHD6
*/
@ApiMember(Description="DeliveryPlantId of item, e.g.: CHD6", IsRequired=true)
public String deliveryPlantId = null;
/**
* Expected Delivery Date, e.g. '2020-12-30'
*/
@ApiMember(Description="Expected Delivery Date, e.g. '2020-12-30'")
public String expectedDeliveryDate = null;
/**
* Buckle Summary, need to be forwarded to order creation
*/
@ApiMember(Description="Buckle Summary, need to be forwarded to order creation")
public String buckleSummary = null;
/**
* Material Summary, need to be forwarded to order creation
*/
@ApiMember(Description="Material Summary, need to be forwarded to order creation")
public String materialSummary = null;
/**
* Content Summary, need to be forwarded to order creation
*/
@ApiMember(Description="Content Summary, need to be forwarded to order creation")
public String contentSummary = null;
/**
* Strap Summary, need to be forwarded to order creation
*/
@ApiMember(Description="Strap Summary, need to be forwarded to order creation")
public String strapSummary = null;
/**
* Item Total Values
*/
@ApiMember(Description="Item Total Values", IsRequired=true)
public ItemTotalValues totalValues = null;
/**
* Warning list
*/
@ApiMember(Description="Warning list", IsRequired=true)
public ArrayList<Warning> warnings = null;
public Integer getLineNumber() { return lineNumber; }
public SimulateOrderItemResponseV2 setLineNumber(Integer value) { this.lineNumber = value; return this; }
public Integer getParentLineNumber() { return parentLineNumber; }
public SimulateOrderItemResponseV2 setParentLineNumber(Integer value) { this.parentLineNumber = value; return this; }
public Integer getRequestLineNumber() { return requestLineNumber; }
public SimulateOrderItemResponseV2 setRequestLineNumber(Integer value) { this.requestLineNumber = value; return this; }
public String getArticleCode() { return articleCode; }
public SimulateOrderItemResponseV2 setArticleCode(String value) { this.articleCode = value; return this; }
public String getSubstitutedArticleCode() { return substitutedArticleCode; }
public SimulateOrderItemResponseV2 setSubstitutedArticleCode(String value) { this.substitutedArticleCode = value; return this; }
public String getDeliveryPlantId() { return deliveryPlantId; }
public SimulateOrderItemResponseV2 setDeliveryPlantId(String value) { this.deliveryPlantId = value; return this; }
public String getExpectedDeliveryDate() { return expectedDeliveryDate; }
public SimulateOrderItemResponseV2 setExpectedDeliveryDate(String value) { this.expectedDeliveryDate = value; return this; }
public String getBuckleSummary() { return buckleSummary; }
public SimulateOrderItemResponseV2 setBuckleSummary(String value) { this.buckleSummary = value; return this; }
public String getMaterialSummary() { return materialSummary; }
public SimulateOrderItemResponseV2 setMaterialSummary(String value) { this.materialSummary = value; return this; }
public String getContentSummary() { return contentSummary; }
public SimulateOrderItemResponseV2 setContentSummary(String value) { this.contentSummary = value; return this; }
public String getStrapSummary() { return strapSummary; }
public SimulateOrderItemResponseV2 setStrapSummary(String value) { this.strapSummary = value; return this; }
public ItemTotalValues getTotalValues() { return totalValues; }
public SimulateOrderItemResponseV2 setTotalValues(ItemTotalValues value) { this.totalValues = value; return this; }
public ArrayList<Warning> getWarnings() { return warnings; }
public SimulateOrderItemResponseV2 setWarnings(ArrayList<Warning> value) { this.warnings = value; return this; }
}
public static class ItemTotalValues
{
/**
* Requested Quantity
*/
@ApiMember(Description="Requested Quantity")
public Quantity requestedQuantity = null;
/**
* Confirmed Quantity
*/
@ApiMember(Description="Confirmed Quantity")
public Quantity confirmedQuantity = null;
/**
* Available Quantity
*/
@ApiMember(Description="Available Quantity")
public Quantity availableQuantity = null;
/**
* Gross Weight
*/
@ApiMember(Description="Gross Weight")
public Quantity grossWeightMeasure = null;
/**
* Net Weight
*/
@ApiMember(Description="Net Weight")
public Quantity netWeightMeasure = null;
/**
* Volume
*/
@ApiMember(Description="Volume")
public Quantity volumeMeasure = null;
/**
* Net Amount Line Total
*/
@ApiMember(Description="Net Amount Line Total")
public Amount netAmount = null;
/**
* Net Price Line Total
*/
@ApiMember(Description="Net Price Line Total")
public AmountAndQuantity netPrice = null;
/**
* Tax Amount Line Total
*/
@ApiMember(Description="Tax Amount Line Total")
public Amount taxAmount = null;
/**
* Retail Sales Price Line Total
*/
@ApiMember(Description="Retail Sales Price Line Total")
public Amount retailSalesPriceAmount = null;
public Quantity getRequestedQuantity() { return requestedQuantity; }
public ItemTotalValues setRequestedQuantity(Quantity value) { this.requestedQuantity = value; return this; }
public Quantity getConfirmedQuantity() { return confirmedQuantity; }
public ItemTotalValues setConfirmedQuantity(Quantity value) { this.confirmedQuantity = value; return this; }
public Quantity getAvailableQuantity() { return availableQuantity; }
public ItemTotalValues setAvailableQuantity(Quantity value) { this.availableQuantity = value; return this; }
public Quantity getGrossWeightMeasure() { return grossWeightMeasure; }
public ItemTotalValues setGrossWeightMeasure(Quantity value) { this.grossWeightMeasure = value; return this; }
public Quantity getNetWeightMeasure() { return netWeightMeasure; }
public ItemTotalValues setNetWeightMeasure(Quantity value) { this.netWeightMeasure = value; return this; }
public Quantity getVolumeMeasure() { return volumeMeasure; }
public ItemTotalValues setVolumeMeasure(Quantity value) { this.volumeMeasure = value; return this; }
public Amount getNetAmount() { return netAmount; }
public ItemTotalValues setNetAmount(Amount value) { this.netAmount = value; return this; }
public AmountAndQuantity getNetPrice() { return netPrice; }
public ItemTotalValues setNetPrice(AmountAndQuantity value) { this.netPrice = value; return this; }
public Amount getTaxAmount() { return taxAmount; }
public ItemTotalValues setTaxAmount(Amount value) { this.taxAmount = value; return this; }
public Amount getRetailSalesPriceAmount() { return retailSalesPriceAmount; }
public ItemTotalValues setRetailSalesPriceAmount(Amount value) { this.retailSalesPriceAmount = value; return this; }
}
public static class Quantity
{
/**
* Unit
*/
@ApiMember(Description="Unit", IsRequired=true)
public String unit = null;
/**
* Value
*/
@ApiMember(Description="Value", IsRequired=true)
public BigDecimal value = null;
public String getUnit() { return unit; }
public Quantity setUnit(String value) { this.unit = value; return this; }
public BigDecimal getValue() { return value; }
public Quantity setValue(BigDecimal value) { this.value = value; return this; }
}
public static class Amount
{
/**
* Value
*/
@ApiMember(Description="Value", IsRequired=true)
public BigDecimal value = null;
/**
* Currency
*/
@ApiMember(Description="Currency", IsRequired=true)
public String currency = null;
public BigDecimal getValue() { return value; }
public Amount setValue(BigDecimal value) { this.value = value; return this; }
public String getCurrency() { return currency; }
public Amount setCurrency(String value) { this.currency = value; return this; }
}
public static class AmountAndQuantity
{
/**
* Amount
*/
@ApiMember(Description="Amount", IsRequired=true)
public Amount amount = null;
/**
* Base Quantity
*/
@ApiMember(Description="Base Quantity", IsRequired=true)
public Quantity baseQuantity = null;
public Amount getAmount() { return amount; }
public AmountAndQuantity setAmount(Amount value) { this.amount = value; return this; }
public Quantity getBaseQuantity() { return baseQuantity; }
public AmountAndQuantity setBaseQuantity(Quantity value) { this.baseQuantity = value; return this; }
}
public static class Warning
{
/**
* Id
*/
@ApiMember(Description="Id", IsRequired=true)
public String id = null;
/**
* Message
*/
@ApiMember(Description="Message", IsRequired=true)
public String message = null;
/**
* Severity code, possible values: 1, 2, 3, 4
*/
@ApiMember(Description="Severity code, possible values: 1, 2, 3, 4", IsRequired=true)
public Integer severityCode = null;
public String getId() { return id; }
public Warning setId(String value) { this.id = value; return this; }
public String getMessage() { return message; }
public Warning setMessage(String value) { this.message = value; return this; }
public Integer getSeverityCode() { return severityCode; }
public Warning setSeverityCode(Integer value) { this.severityCode = value; return this; }
}
public static class TotalValues
{
/**
* Gross Weight
*/
@ApiMember(Description="Gross Weight", IsRequired=true)
public Quantity grossWeightMeasure = null;
/**
* Net Weight
*/
@ApiMember(Description="Net Weight", IsRequired=true)
public Quantity netWeightMeasure = null;
/**
* Gross Volume
*/
@ApiMember(Description="Gross Volume", IsRequired=true)
public Quantity grossVolumeMeasure = null;
/**
* Gross Amount
*/
@ApiMember(Description="Gross Amount", IsRequired=true)
public Amount grossAmount = null;
/**
* Net Amount
*/
@ApiMember(Description="Net Amount", IsRequired=true)
public Amount netAmount = null;
/**
* Tax Amount
*/
@ApiMember(Description="Tax Amount", IsRequired=true)
public Amount taxAmount = null;
public Quantity getGrossWeightMeasure() { return grossWeightMeasure; }
public TotalValues setGrossWeightMeasure(Quantity value) { this.grossWeightMeasure = value; return this; }
public Quantity getNetWeightMeasure() { return netWeightMeasure; }
public TotalValues setNetWeightMeasure(Quantity value) { this.netWeightMeasure = value; return this; }
public Quantity getGrossVolumeMeasure() { return grossVolumeMeasure; }
public TotalValues setGrossVolumeMeasure(Quantity value) { this.grossVolumeMeasure = value; return this; }
public Amount getGrossAmount() { return grossAmount; }
public TotalValues setGrossAmount(Amount value) { this.grossAmount = value; return this; }
public Amount getNetAmount() { return netAmount; }
public TotalValues setNetAmount(Amount value) { this.netAmount = value; return this; }
public Amount getTaxAmount() { return taxAmount; }
public TotalValues setTaxAmount(Amount value) { this.taxAmount = value; return this; }
}
public static class Party
{
/**
* Internal ID of the Element
*/
@ApiMember(Description="Internal ID of the Element", IsRequired=true)
public String id = null;
/**
* Formatted Name of the Element
*/
@ApiMember(Description="Formatted Name of the Element", IsRequired=true)
public String name = null;
/**
* Geographic Address of the Element
*/
@ApiMember(Description="Geographic Address of the Element")
public Address address = null;
public String getId() { return id; }
public Party setId(String value) { this.id = value; return this; }
public String getName() { return name; }
public Party setName(String value) { this.name = value; return this; }
public Address getAddress() { return address; }
public Party setAddress(Address value) { this.address = value; return this; }
}
public static class Address
{
/**
* Country ID
*/
@ApiMember(Description="Country ID")
public String countryId = null;
/**
* State ID
*/
@ApiMember(Description="State ID")
public String stateId = null;
/**
* City Name
*/
@ApiMember(Description="City Name")
public String city = null;
/**
* Street Name and Number
*/
@ApiMember(Description="Street Name and Number")
public String street = null;
/**
* Postal Code
*/
@ApiMember(Description="Postal Code")
public String zipCode = null;
public String getCountryId() { return countryId; }
public Address setCountryId(String value) { this.countryId = value; return this; }
public String getStateId() { return stateId; }
public Address setStateId(String value) { this.stateId = value; return this; }
public String getCity() { return city; }
public Address setCity(String value) { this.city = value; return this; }
public String getStreet() { return street; }
public Address setStreet(String value) { this.street = value; return this; }
public String getZipCode() { return zipCode; }
public Address setZipCode(String value) { this.zipCode = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /purchase/simulate/v2 HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"brand":"String","posCode":"String","customerReference":"String","notes":"String","orderDate":"\/Date(-62135596800000-0000)\/","orderItems":[{"lineNumber":0,"articleCode":"String","quantity":0,"requestedDeliveryDate":"\/Date(-62135596800000-0000)\/","orderType":"String","finalShipToId":"String","strap":{"speakingArticleCode":"String","buckleTypeDescription":"String","buckleTypeCode":"String","watch6Length":0,"watch12Length":0,"materialCode":"String","materialDescription":"String","colorCode":"String","colorDescription":"String","buckleWidth":"String","liningCode":"String","liningDescription":"String","stitchingCode":"String","stitchingDescription":"String","edgeCode":"String","edgeDescription":"String","paddingCode":"String","paddingDescription":"String","specialtyCode":"String","specialtyDescription":"String","nuancierCode":"String","isStrapVipOrder":false}}],"endCustomerBooster1Id":"String","endCustomerDetails":{"title":"String","firstName":"String","lastName":"String","email":"String","phone":"String","country":"String","city":"String","street":"String","houseNumber":"String","building":"String","postalCode":"String","region":"String","district":"String","additionalInfo":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"results":{"String":{"orderType":"String","productType":"String","orderItems":[{"lineNumber":0,"parentLineNumber":0,"requestLineNumber":0,"articleCode":"String","substitutedArticleCode":"String","deliveryPlantId":"String","expectedDeliveryDate":"String","buckleSummary":"String","materialSummary":"String","contentSummary":"String","strapSummary":"String","totalValues":{"requestedQuantity":{"unit":"String","value":0},"confirmedQuantity":{"unit":"String","value":0},"availableQuantity":{"unit":"String","value":0},"grossWeightMeasure":{"unit":"String","value":0},"netWeightMeasure":{"unit":"String","value":0},"volumeMeasure":{"unit":"String","value":0},"netAmount":{"value":0,"currency":"String"},"netPrice":{"amount":{"value":0,"currency":"String"},"baseQuantity":{"unit":"String","value":0}},"taxAmount":{"value":0,"currency":"String"},"retailSalesPriceAmount":{"value":0,"currency":"String"}},"warnings":[{"id":"String","message":"String","severityCode":0}]}],"totalValues":{"grossWeightMeasure":{"unit":"String","value":0},"netWeightMeasure":{"unit":"String","value":0},"grossVolumeMeasure":{"unit":"String","value":0},"grossAmount":{"value":0,"currency":"String"},"netAmount":{"value":0,"currency":"String"},"taxAmount":{"value":0,"currency":"String"}},"shipTo":[{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}],"finalShipTo":[{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}],"billTo":[{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}],"soldTo":{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}},"salesRepresentative":{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}},"warnings":[{"id":"String","message":"String","severityCode":0}]}},"shipTo":[{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}],"finalShipTo":[{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}],"billTo":[{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}],"soldTo":{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}},"salesRepresentative":{"id":"String","name":"String","address":{"countryId":"String","stateId":"String","city":"String","street":"String","zipCode":"String"}}}