/* Options: Date: 2026-08-27 08:00:34 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateBasket.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/purchase/basket", Verbs="POST") open class CreateBasket : IReturn { /** * Brand Trigram of the intended order */ @ApiMember(Description="Brand Trigram of the intended order", IsRequired=true) open var brand:String? = null /** * Pos Code for the intended order e.g. ES03-10415-01 */ @ApiMember(Description="Pos Code for the intended order e.g. ES03-10415-01", IsRequired=true) open var posCode:String? = null /** * Customer Reference */ @ApiMember(Description="Customer Reference", IsRequired=true) open var customerReference:String? = null /** * Additional Notes regarding the order */ @ApiMember(Description="Additional Notes regarding the order", IsRequired=true) open var notes:String? = null /** * List of Articles to be added in the basket */ @ApiMember(Description="List of Articles to be added in the basket") open var orderItems:ArrayList? = null /** * Brand Context ID */ @ApiMember(Description="Brand Context ID") open var boosterContextId:String? = null companion object { private val responseType = CreateBasketResponse::class.java } override fun getResponseType(): Any? = CreateBasket.responseType } open class CreateBasketResponse { /** * ID of the newly created Purchase Order / Basket */ @ApiMember(Description="ID of the newly created Purchase Order / Basket", IsRequired=true) open var purchaseOrderId:Int? = null /** * Validation results of each basket item */ @ApiMember(Description="Validation results of each basket item") open var validationResults:ArrayList? = null } open class BasketItem { /** * Reference ID of the article/product */ @ApiMember(Description="Reference ID of the article/product", IsRequired=true) open var articleCode:String? = null /** * Desired quantity of the article */ @ApiMember(Description="Desired quantity of the article") open var quantity:Int? = null /** * Strap definition */ @ApiMember(Description="Strap definition") open var strap:BasketStrapItem? = null } open class BasketItemResponse { /** * Line number of the article */ @ApiMember(Description="Line number of the article") open var line:Int? = null /** * Reference ID of the article/product */ @ApiMember(Description="Reference ID of the article/product") open var articleCode:String? = null /** * Old reference ID of the article/product */ @ApiMember(Description="Old reference ID of the article/product") open var oldArticleCode:String? = null /** * Quantity of the article */ @ApiMember(Description="Quantity of the article") open var quantity:Int? = null /** * Delivery date of the article */ @ApiMember(Description="Delivery date of the article") open var deliveryDate:Date? = null /** * Strap definition */ @ApiMember(Description="Strap definition") open var strap:BasketStrapItem? = null /** * Errors for the article */ @ApiMember(Description="Errors for the article") open var errors:ArrayList? = null /** * Warnings for the article */ @ApiMember(Description="Warnings for the article") open var warnings:ArrayList? = null } open class BasketStrapItem { /** * Article reference */ @ApiMember(Description="Article reference") open var speakingArticleCode:String? = null /** * Buckle type Description */ @ApiMember(Description="Buckle type Description") open var buckleTypeDescription:String? = null /** * Buckle type */ @ApiMember(Description="Buckle type") open var buckleTypeCode:String? = null /** * watch 6 Length */ @ApiMember(Description="watch 6 Length") open var watch6Length:Int? = null /** * watch 12 Length */ @ApiMember(Description="watch 12 Length") open var watch12Length:Int? = null /** * Article Material Code */ @ApiMember(Description="Article Material Code") open var materialCode:String? = null /** * Article Material Description */ @ApiMember(Description="Article Material Description") open var materialDescription:String? = null /** * Article Color Code */ @ApiMember(Description="Article Color Code") open var colorCode:String? = null /** * Article Color Description */ @ApiMember(Description="Article Color Description") open var colorDescription:String? = null /** * Buckle Witdh */ @ApiMember(Description="Buckle Witdh") open var buckleWidth:String? = null /** * Article Lining Code */ @ApiMember(Description="Article Lining Code") open var liningCode:String? = null /** * Article Lining Description */ @ApiMember(Description="Article Lining Description") open var liningDescription:String? = null /** * Article Stitching Code */ @ApiMember(Description="Article Stitching Code") open var stitchingCode:String? = null /** * Article Stitching Description */ @ApiMember(Description="Article Stitching Description") open var stitchingDescription:String? = null /** * Article Edge Code */ @ApiMember(Description="Article Edge Code") open var edgeCode:String? = null /** * Article Edge Description */ @ApiMember(Description="Article Edge Description") open var edgeDescription:String? = null /** * Article Padding Code */ @ApiMember(Description="Article Padding Code") open var paddingCode:String? = null /** * Article Padding Description */ @ApiMember(Description="Article Padding Description") open var paddingDescription:String? = null /** * Article Speciality Code */ @ApiMember(Description="Article Speciality Code") open var specialtyCode:String? = null /** * Article Speciality Description */ @ApiMember(Description="Article Speciality Description") open var specialtyDescription:String? = null /** * Nuancier Code */ @ApiMember(Description="Nuancier Code") open var nuancierCode:String? = null /** * Strap Vip Order */ @ApiMember(Description="Strap Vip Order") open var isStrapVipOrder:Boolean? = null }