/* Options: Date: 2026-05-19 09:52:09 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: GetDeliveryNotePaginated.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Richemont.Booster2.PublicApi.Common.ServiceModel; using Richemont.Booster2.PublicApi.Purchase.ServiceModel; namespace Richemont.Booster2.PublicApi.Common.ServiceModel { public partial interface IPagedRequest { int page { get; set; } int items { get; set; } bool noCount { get; set; } string sortBy { get; set; } } } namespace Richemont.Booster2.PublicApi.Purchase.ServiceModel { public partial class Amount2 { /// ///Currency ISO Code e.g. EUR, USD /// [ApiMember(Description="Currency ISO Code e.g. EUR, USD", IsRequired=true)] public virtual string currencyIsoCode { get; set; } /// ///Cost /// [ApiMember(Description="Cost", IsRequired=true)] public virtual double value { get; set; } } public partial class DeliveryNote { public DeliveryNote() { deliveryNoteItems = new List{}; } /// ///ID of ERP system e.g. ES100 /// [ApiMember(Description="ID of ERP system e.g. ES100", IsRequired=true)] public virtual string erpSystemId { get; set; } /// ///POS Legacy e.g. ES100:102048 /// [ApiMember(Description="POS Legacy e.g. ES100:102048", IsRequired=true)] public virtual string posCode { get; set; } /// ///ShipTo POS Legacy e.g. ES100:102048 /// [ApiMember(Description="ShipTo POS Legacy e.g. ES100:102048", IsRequired=true)] public virtual string shipToPosCode { get; set; } /// ///ID of Delivery note document e.g. 7032150324 /// [ApiMember(Description="ID of Delivery note document e.g. 7032150324", IsRequired=true)] public virtual long deliveryNotesNumber { get; set; } /// ///Date of Delivery note document e.g. '2023-01-01' /// [ApiMember(Description="Date of Delivery note document e.g. '2023-01-01'", IsRequired=true)] public virtual DateTime deliveryNotesDate { get; set; } /// ///Delivery note items /// [ApiMember(Description="Delivery note items", IsRequired=true)] public virtual List deliveryNoteItems { get; set; } /// ///ID of IC Delivery note document e.g. 7032150324 /// [ApiMember(Description="ID of IC Delivery note document e.g. 7032150324", IsRequired=true)] public virtual long? icDeliveryNotesNumber { get; set; } /// ///Date of IC Delivery note document e.g. '2023-01-01' /// [ApiMember(Description="Date of IC Delivery note document e.g. '2023-01-01'", IsRequired=true)] public virtual DateTime? icDeliveryNotesDate { get; set; } } public partial class DeliveryNoteItem { public DeliveryNoteItem() { serialNumbers = new List{}; } /// ///Line number of Delivery note document e.g. 10, 90, 10000 /// [ApiMember(Description="Line number of Delivery note document e.g. 10, 90, 10000", IsRequired=true)] public virtual long deliveryNotesLineNumber { get; set; } /// ///Status e.g. I, P /// [ApiMember(Description="Status e.g. I, P", IsRequired=true)] public virtual string status { get; set; } /// ///Article code of product e.g. CRWGSA0032 /// [ApiMember(Description="Article code of product e.g. CRWGSA0032", IsRequired=true)] public virtual string articleCode { get; set; } /// ///Article description of product /// [ApiMember(Description="Article description of product")] public virtual string articleDescription { get; set; } /// ///Article code of product for straps e.g. CRKD12346879 /// [ApiMember(Description="Article code of product for straps e.g. CRKD12346879")] public virtual string speakingArticleCode { get; set; } /// ///Serial numbers of products /// [ApiMember(Description="Serial numbers of products")] public virtual List serialNumbers { get; set; } /// ///ERP ID of purchase order which delivery note attached to e.g. 200232323 /// [ApiMember(Description="ERP ID of purchase order which delivery note attached to e.g. 200232323", IsRequired=true)] public virtual int erpOrderNumber { get; set; } /// ///Date of purchase order which delivery note attached to e.g. '2023-01-01' /// [ApiMember(Description="Date of purchase order which delivery note attached to e.g. '2023-01-01'", IsRequired=true)] public virtual DateTime erpOrderDate { get; set; } /// ///Line number of purchase order which delivery note attached to e.g. '2023-01-01' /// [ApiMember(Description="Line number of purchase order which delivery note attached to e.g. '2023-01-01'", IsRequired=true)] public virtual int erpOrderLineNumber { get; set; } /// ///Customer reference of order /// [ApiMember(Description="Customer reference of order")] public virtual string customerReference { get; set; } /// ///Carrier name /// [ApiMember(Description="Carrier name")] public virtual string carrier { get; set; } /// ///Tracking number /// [ApiMember(Description="Tracking number")] public virtual string trackingNumber { get; set; } /// ///Tracking URL /// [ApiMember(Description="Tracking URL")] public virtual string trackingUrl { get; set; } /// ///Flag that shows the order is sellable or not /// [ApiMember(Description="Flag that shows the order is sellable or not", IsRequired=true)] public virtual bool isSellable { get; set; } /// ///Flag that shows the order is consignment or not /// [ApiMember(Description="Flag that shows the order is consignment or not", IsRequired=true)] public virtual bool isConsignment { get; set; } /// ///Flag that shows the order is Automatic Replenishment or not /// [ApiMember(Description="Flag that shows the order is Automatic Replenishment or not", IsRequired=true)] public virtual bool? isAutomaticReplenishment { get; set; } /// ///Order reason code /// [ApiMember(Description="Order reason code", IsRequired=true)] public virtual string orderReasonCode { get; set; } /// ///Original quantity of item /// [ApiMember(Description="Original quantity of item")] public virtual DateTime? consignmentDueDate { get; set; } /// ///Quantity of item /// [ApiMember(Description="Quantity of item", IsRequired=true)] public virtual int quantity { get; set; } /// ///Price of item /// [ApiMember(Description="Price of item", IsRequired=true)] public virtual Amount2 unitAmount { get; set; } } [Route("/deliveryNote/{brand}", "GET")] public partial class GetDeliveryNotePaginated : IReturn, IPagedRequest { public GetDeliveryNotePaginated() { posCodes = new List{}; status = new List{}; } /// ///Brand Trigram, e.g. CAR, IWC /// [ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)] public virtual string brand { get; set; } /// ///POS Legacy Codes, e.g. ES100:102048 /// [ApiMember(Description="POS Legacy Codes, e.g. ES100:102048", IsRequired=true)] public virtual List posCodes { get; set; } /// ///Delivery notes date to /// [ApiMember(Description="Delivery notes date to")] public virtual DateTime? dateTo { get; set; } /// ///Delivery notes date from /// [ApiMember(Description="Delivery notes date from")] public virtual DateTime? dateFrom { get; set; } /// ///Status possible values: 'I' for pending delivery notes, 'P' for accepted ones /// [ApiMember(Description="Status possible values: 'I' for pending delivery notes, 'P' for accepted ones")] public virtual List status { get; set; } /// ///Provide value 'true' for getting only consignment delivery notes /// [ApiMember(Description="Provide value 'true' for getting only consignment delivery notes")] public virtual bool? onlyConsignment { get; set; } /// ///Order type filter: “autorep“ for getting only delivery notes linked to an automatic replenishment trigger. It means the reason codes Auto Repl Standard (Z22) and Auto Repl Consignment (Z89) ; “manual“ for getting only delivery notes linked to a manual replenishment trigger. It means all the other reason codes. /// [ApiMember(Description="Order type filter: “autorep“ for getting only delivery notes linked to an automatic replenishment trigger. It means the reason codes Auto Repl Standard (Z22) and Auto Repl Consignment (Z89) ; “manual“ for getting only delivery notes linked to a manual replenishment trigger. It means all the other reason codes.")] public virtual string orderType { get; set; } /// ///Stock type filter: “consigned“ for consigned products only ; “asset“ for standard products only ; empty for both consignment & asset /// [ApiMember(Description="Stock type filter: “consigned“ for consigned products only ; “asset“ for standard products only ; empty for both consignment & asset")] public virtual string stockType { get; set; } /// ///Richemont Reference Code of the item /// [ApiMember(Description="Richemont Reference Code of the item")] public virtual string articleCode { get; set; } /// ///Serial Number of the item /// [ApiMember(Description="Serial Number of the item")] public virtual string serialNumber { get; set; } /// ///Delivery notes number for getting specific delivery, e.g. 7032150324 /// [ApiMember(Description="Delivery notes number for getting specific delivery, e.g. 7032150324")] public virtual long? deliveryNotesNumber { get; set; } /// ///IC Delivery notes number for getting specific delivery, e.g. 7032150324 /// [ApiMember(Description="IC Delivery notes number for getting specific delivery, e.g. 7032150324")] public virtual long? icDeliveryNotesNumber { get; set; } /// ///Purchase order number for getting specific deliveries by order number, e.g 207285022 /// [ApiMember(Description="Purchase order number for getting specific deliveries by order number, e.g 207285022")] public virtual int? erpOrderNumber { get; set; } /// ///Index of the result set returned /// [ApiMember(Description="Index of the result set returned")] public virtual int page { get; set; } /// ///Size of the result set returned /// [ApiMember(Description="Size of the result set returned")] public virtual int items { get; set; } /// ///Omit precise record count - save on performance /// [ApiMember(Description="Omit precise record count - save on performance")] public virtual bool noCount { get; set; } /// ///Values can be 'DateDESC', 'DateASC', 'PosASC', 'PosDESC' /// [ApiMember(Description="Values can be 'DateDESC', 'DateASC', 'PosASC', 'PosDESC'")] public virtual string sortBy { get; set; } } public partial class GetDeliveryNotePaginatedResponse { /// ///Total Pages /// [ApiMember(Description="Total Pages", IsRequired=true)] public virtual int totalPages { get; set; } /// ///Total Results /// [ApiMember(Description="Total Results", IsRequired=true)] public virtual int totalResults { get; set; } /// ///Index of the result set returned /// [ApiMember(Description="Index of the result set returned", IsRequired=true)] public virtual int page { get; set; } /// ///Size of the result set returned /// [ApiMember(Description="Size of the result set returned", IsRequired=true)] public virtual int items { get; set; } /// ///List of delivery notes /// [ApiMember(Description="List of delivery notes", IsRequired=true)] public virtual IEnumerable elements { get; set; } } }