Richemont.Booster2.PublicApi

<back to all web services

SimulateOrderV2

Requires Authentication
The following routes are available for this service:
POST/purchase/simulate/v2Simulate 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; }
    }

}

Java SimulateOrderV2 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 /purchase/simulate/v2 HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SimulateOrderV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel">
  <brand>String</brand>
  <customerReference>String</customerReference>
  <endCustomerBooster1Id>String</endCustomerBooster1Id>
  <endCustomerDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel.SharedModels">
    <d2p1:additionalInfo>String</d2p1:additionalInfo>
    <d2p1:building>String</d2p1:building>
    <d2p1:city>String</d2p1:city>
    <d2p1:country>String</d2p1:country>
    <d2p1:district>String</d2p1:district>
    <d2p1:email>String</d2p1:email>
    <d2p1:firstName>String</d2p1:firstName>
    <d2p1:houseNumber>String</d2p1:houseNumber>
    <d2p1:lastName>String</d2p1:lastName>
    <d2p1:phone>String</d2p1:phone>
    <d2p1:postalCode>String</d2p1:postalCode>
    <d2p1:region>String</d2p1:region>
    <d2p1:street>String</d2p1:street>
    <d2p1:title>String</d2p1:title>
  </endCustomerDetails>
  <notes>String</notes>
  <orderDate>0001-01-01T00:00:00</orderDate>
  <orderItems>
    <SimulateOrderItemRequestV2>
      <articleCode>String</articleCode>
      <finalShipToId>String</finalShipToId>
      <lineNumber>0</lineNumber>
      <orderType>String</orderType>
      <quantity>0</quantity>
      <requestedDeliveryDate>0001-01-01T00:00:00</requestedDeliveryDate>
      <strap xmlns:d4p1="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel.SharedModels">
        <d4p1:buckleTypeCode>String</d4p1:buckleTypeCode>
        <d4p1:buckleTypeDescription>String</d4p1:buckleTypeDescription>
        <d4p1:buckleWidth>String</d4p1:buckleWidth>
        <d4p1:colorCode>String</d4p1:colorCode>
        <d4p1:colorDescription>String</d4p1:colorDescription>
        <d4p1:edgeCode>String</d4p1:edgeCode>
        <d4p1:edgeDescription>String</d4p1:edgeDescription>
        <d4p1:isStrapVipOrder>false</d4p1:isStrapVipOrder>
        <d4p1:liningCode>String</d4p1:liningCode>
        <d4p1:liningDescription>String</d4p1:liningDescription>
        <d4p1:materialCode>String</d4p1:materialCode>
        <d4p1:materialDescription>String</d4p1:materialDescription>
        <d4p1:nuancierCode>String</d4p1:nuancierCode>
        <d4p1:paddingCode>String</d4p1:paddingCode>
        <d4p1:paddingDescription>String</d4p1:paddingDescription>
        <d4p1:speakingArticleCode>String</d4p1:speakingArticleCode>
        <d4p1:specialtyCode>String</d4p1:specialtyCode>
        <d4p1:specialtyDescription>String</d4p1:specialtyDescription>
        <d4p1:stitchingCode>String</d4p1:stitchingCode>
        <d4p1:stitchingDescription>String</d4p1:stitchingDescription>
        <d4p1:watch12Length>0</d4p1:watch12Length>
        <d4p1:watch6Length>0</d4p1:watch6Length>
      </strap>
    </SimulateOrderItemRequestV2>
  </orderItems>
  <posCode>String</posCode>
</SimulateOrderV2>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SimulateOrderResponseV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel">
  <billTo>
    <Party>
      <address>
        <city>String</city>
        <countryId>String</countryId>
        <stateId>String</stateId>
        <street>String</street>
        <zipCode>String</zipCode>
      </address>
      <id>String</id>
      <name>String</name>
    </Party>
  </billTo>
  <finalShipTo>
    <Party>
      <address>
        <city>String</city>
        <countryId>String</countryId>
        <stateId>String</stateId>
        <street>String</street>
        <zipCode>String</zipCode>
      </address>
      <id>String</id>
      <name>String</name>
    </Party>
  </finalShipTo>
  <results xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringSplittedSimulateOrderResponsewCvGvoJB>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <billTo>
          <Party>
            <address>
              <city>String</city>
              <countryId>String</countryId>
              <stateId>String</stateId>
              <street>String</street>
              <zipCode>String</zipCode>
            </address>
            <id>String</id>
            <name>String</name>
          </Party>
        </billTo>
        <finalShipTo>
          <Party>
            <address>
              <city>String</city>
              <countryId>String</countryId>
              <stateId>String</stateId>
              <street>String</street>
              <zipCode>String</zipCode>
            </address>
            <id>String</id>
            <name>String</name>
          </Party>
        </finalShipTo>
        <orderItems>
          <SimulateOrderItemResponseV2>
            <articleCode>String</articleCode>
            <buckleSummary>String</buckleSummary>
            <contentSummary>String</contentSummary>
            <deliveryPlantId>String</deliveryPlantId>
            <expectedDeliveryDate>String</expectedDeliveryDate>
            <lineNumber>0</lineNumber>
            <materialSummary>String</materialSummary>
            <parentLineNumber>0</parentLineNumber>
            <requestLineNumber>0</requestLineNumber>
            <strapSummary>String</strapSummary>
            <substitutedArticleCode>String</substitutedArticleCode>
            <totalValues>
              <availableQuantity>
                <unit>String</unit>
                <value>0</value>
              </availableQuantity>
              <confirmedQuantity>
                <unit>String</unit>
                <value>0</value>
              </confirmedQuantity>
              <grossWeightMeasure>
                <unit>String</unit>
                <value>0</value>
              </grossWeightMeasure>
              <netAmount>
                <currency>String</currency>
                <value>0</value>
              </netAmount>
              <netPrice>
                <amount>
                  <currency>String</currency>
                  <value>0</value>
                </amount>
                <baseQuantity>
                  <unit>String</unit>
                  <value>0</value>
                </baseQuantity>
              </netPrice>
              <netWeightMeasure>
                <unit>String</unit>
                <value>0</value>
              </netWeightMeasure>
              <requestedQuantity>
                <unit>String</unit>
                <value>0</value>
              </requestedQuantity>
              <retailSalesPriceAmount>
                <currency>String</currency>
                <value>0</value>
              </retailSalesPriceAmount>
              <taxAmount>
                <currency>String</currency>
                <value>0</value>
              </taxAmount>
              <volumeMeasure>
                <unit>String</unit>
                <value>0</value>
              </volumeMeasure>
            </totalValues>
            <warnings>
              <Warning>
                <id>String</id>
                <message>String</message>
                <severityCode>0</severityCode>
              </Warning>
            </warnings>
          </SimulateOrderItemResponseV2>
        </orderItems>
        <orderType>String</orderType>
        <productType>String</productType>
        <salesRepresentative>
          <address>
            <city>String</city>
            <countryId>String</countryId>
            <stateId>String</stateId>
            <street>String</street>
            <zipCode>String</zipCode>
          </address>
          <id>String</id>
          <name>String</name>
        </salesRepresentative>
        <shipTo>
          <Party>
            <address>
              <city>String</city>
              <countryId>String</countryId>
              <stateId>String</stateId>
              <street>String</street>
              <zipCode>String</zipCode>
            </address>
            <id>String</id>
            <name>String</name>
          </Party>
        </shipTo>
        <soldTo>
          <address>
            <city>String</city>
            <countryId>String</countryId>
            <stateId>String</stateId>
            <street>String</street>
            <zipCode>String</zipCode>
          </address>
          <id>String</id>
          <name>String</name>
        </soldTo>
        <totalValues>
          <grossAmount>
            <currency>String</currency>
            <value>0</value>
          </grossAmount>
          <grossVolumeMeasure>
            <unit>String</unit>
            <value>0</value>
          </grossVolumeMeasure>
          <grossWeightMeasure>
            <unit>String</unit>
            <value>0</value>
          </grossWeightMeasure>
          <netAmount>
            <currency>String</currency>
            <value>0</value>
          </netAmount>
          <netWeightMeasure>
            <unit>String</unit>
            <value>0</value>
          </netWeightMeasure>
          <taxAmount>
            <currency>String</currency>
            <value>0</value>
          </taxAmount>
        </totalValues>
        <warnings>
          <Warning>
            <id>String</id>
            <message>String</message>
            <severityCode>0</severityCode>
          </Warning>
        </warnings>
      </d2p1:Value>
    </d2p1:KeyValueOfstringSplittedSimulateOrderResponsewCvGvoJB>
  </results>
  <salesRepresentative>
    <address>
      <city>String</city>
      <countryId>String</countryId>
      <stateId>String</stateId>
      <street>String</street>
      <zipCode>String</zipCode>
    </address>
    <id>String</id>
    <name>String</name>
  </salesRepresentative>
  <shipTo>
    <Party>
      <address>
        <city>String</city>
        <countryId>String</countryId>
        <stateId>String</stateId>
        <street>String</street>
        <zipCode>String</zipCode>
      </address>
      <id>String</id>
      <name>String</name>
    </Party>
  </shipTo>
  <soldTo>
    <address>
      <city>String</city>
      <countryId>String</countryId>
      <stateId>String</stateId>
      <street>String</street>
      <zipCode>String</zipCode>
    </address>
    <id>String</id>
    <name>String</name>
  </soldTo>
</SimulateOrderResponseV2>