/* Options: Date: 2026-05-19 09:48:42 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreateOrderV2.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/purchase/v2", Verbs="POST") public static class CreateOrderV2 { /** * Purchase order ID, total length-max with x-booster-App header: 99 */ @ApiMember(Description="Purchase order ID, total length-max with x-booster-App header: 99", IsRequired=true) public String orderId = 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; /** * 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; /** * Additional Notes regarding the Order */ @ApiMember(Description="Additional Notes regarding the Order") public String notes = null; /** * Customer Reference */ @ApiMember(Description="Customer Reference") public String customerReference = null; /** * Customer Reference for Consignment Order */ @ApiMember(Description="Customer Reference for Consignment Order") public String customerReferenceConsignment = null; /** * Purchase order date, e.g. '2020-12-31' */ @ApiMember(Description="Purchase order date, e.g. '2020-12-31'") public Date orderDate = null; /** * Details of the end Customer */ @ApiMember(Description="Details of the end Customer") public ArrayList splittedOrders = 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 getOrderId() { return orderId; } public CreateOrderV2 setOrderId(String value) { this.orderId = value; return this; } public String getPosCode() { return posCode; } public CreateOrderV2 setPosCode(String value) { this.posCode = value; return this; } public String getBrand() { return brand; } public CreateOrderV2 setBrand(String value) { this.brand = value; return this; } public String getNotes() { return notes; } public CreateOrderV2 setNotes(String value) { this.notes = value; return this; } public String getCustomerReference() { return customerReference; } public CreateOrderV2 setCustomerReference(String value) { this.customerReference = value; return this; } public String getCustomerReferenceConsignment() { return customerReferenceConsignment; } public CreateOrderV2 setCustomerReferenceConsignment(String value) { this.customerReferenceConsignment = value; return this; } public Date getOrderDate() { return orderDate; } public CreateOrderV2 setOrderDate(Date value) { this.orderDate = value; return this; } public ArrayList getSplittedOrders() { return splittedOrders; } public CreateOrderV2 setSplittedOrders(ArrayList value) { this.splittedOrders = value; return this; } public String getEndCustomerBooster1Id() { return endCustomerBooster1Id; } public CreateOrderV2 setEndCustomerBooster1Id(String value) { this.endCustomerBooster1Id = value; return this; } public EndCustomerDetails getEndCustomerDetails() { return endCustomerDetails; } public CreateOrderV2 setEndCustomerDetails(EndCustomerDetails value) { this.endCustomerDetails = 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 SplittedOrder { /** * Ship To Pos Code */ @ApiMember(Description="Ship To Pos Code", IsRequired=true) public String shipToId = null; /** * Final Ship To Pos Code */ @ApiMember(Description="Final Ship To Pos Code") public String finalShipToId = null; /** * Bill To Pos Code */ @ApiMember(Description="Bill To Pos Code", IsRequired=true) public String billToId = null; /** * Sold To Pos Code */ @ApiMember(Description="Sold To Pos Code", IsRequired=true) public String soldToId = null; /** * Sales Representative Code */ @ApiMember(Description="Sales Representative Code") public String salesRepresentativeId = null; /** * List of Articles to be created */ @ApiMember(Description="List of Articles to be created", IsRequired=true) public ArrayList orderItems = null; public String getShipToId() { return shipToId; } public SplittedOrder setShipToId(String value) { this.shipToId = value; return this; } public String getFinalShipToId() { return finalShipToId; } public SplittedOrder setFinalShipToId(String value) { this.finalShipToId = value; return this; } public String getBillToId() { return billToId; } public SplittedOrder setBillToId(String value) { this.billToId = value; return this; } public String getSoldToId() { return soldToId; } public SplittedOrder setSoldToId(String value) { this.soldToId = value; return this; } public String getSalesRepresentativeId() { return salesRepresentativeId; } public SplittedOrder setSalesRepresentativeId(String value) { this.salesRepresentativeId = value; return this; } public ArrayList getOrderItems() { return orderItems; } public SplittedOrder setOrderItems(ArrayList value) { this.orderItems = 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 CreateOrderItemRequestV2 { /** * 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; /** * Strap definition */ @ApiMember(Description="Strap definition") public StrapItem strap = 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; /** * DeliveryPlantId of item, e.g.: CHD6 */ @ApiMember(Description="DeliveryPlantId of item, e.g.: CHD6") public String deliveryPlantId = null; /** * Reason Code */ @ApiMember(Description="Reason Code", IsRequired=true) public String reasonCode = null; /** * Order Delivery Priority, e.g.: 10, 20, 30, 40, 50 */ @ApiMember(Description="Order Delivery Priority, e.g.: 10, 20, 30, 40, 50") public Integer orderDeliveryPriority = null; /** * Buckle Summary, can be get from order simulation */ @ApiMember(Description="Buckle Summary, can be get from order simulation") public String buckleSummary = null; /** * Material Summary, can be get from order simulation */ @ApiMember(Description="Material Summary, can be get from order simulation") public String materialSummary = null; /** * Content Summary, can be get from order simulation */ @ApiMember(Description="Content Summary, can be get from order simulation") public String contentSummary = null; /** * Strap Summary, can be get from order simulation */ @ApiMember(Description="Strap Summary, can be get from order simulation") public String strapSummary = null; public Integer getLineNumber() { return lineNumber; } public CreateOrderItemRequestV2 setLineNumber(Integer value) { this.lineNumber = value; return this; } public String getArticleCode() { return articleCode; } public CreateOrderItemRequestV2 setArticleCode(String value) { this.articleCode = value; return this; } public Integer getQuantity() { return quantity; } public CreateOrderItemRequestV2 setQuantity(Integer value) { this.quantity = value; return this; } public Date getRequestedDeliveryDate() { return requestedDeliveryDate; } public CreateOrderItemRequestV2 setRequestedDeliveryDate(Date value) { this.requestedDeliveryDate = value; return this; } public StrapItem getStrap() { return strap; } public CreateOrderItemRequestV2 setStrap(StrapItem value) { this.strap = value; return this; } public String getOrderType() { return orderType; } public CreateOrderItemRequestV2 setOrderType(String value) { this.orderType = value; return this; } public String getDeliveryPlantId() { return deliveryPlantId; } public CreateOrderItemRequestV2 setDeliveryPlantId(String value) { this.deliveryPlantId = value; return this; } public String getReasonCode() { return reasonCode; } public CreateOrderItemRequestV2 setReasonCode(String value) { this.reasonCode = value; return this; } public Integer getOrderDeliveryPriority() { return orderDeliveryPriority; } public CreateOrderItemRequestV2 setOrderDeliveryPriority(Integer value) { this.orderDeliveryPriority = value; return this; } public String getBuckleSummary() { return buckleSummary; } public CreateOrderItemRequestV2 setBuckleSummary(String value) { this.buckleSummary = value; return this; } public String getMaterialSummary() { return materialSummary; } public CreateOrderItemRequestV2 setMaterialSummary(String value) { this.materialSummary = value; return this; } public String getContentSummary() { return contentSummary; } public CreateOrderItemRequestV2 setContentSummary(String value) { this.contentSummary = value; return this; } public String getStrapSummary() { return strapSummary; } public CreateOrderItemRequestV2 setStrapSummary(String value) { this.strapSummary = value; return this; } } }