/* Options:
Date: 2026-10-06 07:21:57
Version: 10.08
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: True
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: GetBuyInPaginated.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.CPO.ServiceModel;
namespace Richemont.Booster2.PublicApi.CPO.ServiceModel
{
public partial class BuyIn
{
///
///Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided
///
[ApiMember(Description="Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided", IsRequired=true)]
public virtual string brand { get; set; }
///
///Code of BuyIn
///
[ApiMember(Description="Code of BuyIn", IsRequired=true)]
public virtual int buyInOrderId { get; set; }
///
///Richemont POS code
///
[ApiMember(Description="Richemont POS code", IsRequired=true)]
public virtual string posCode { get; set; }
///
///Richemont Reference Code of the item
///
[ApiMember(Description="Richemont Reference Code of the item", IsRequired=true)]
public virtual string articleCode { get; set; }
///
///Serial Number of the item
///
[ApiMember(Description="Serial Number of the item")]
public virtual string serialNumber { get; set; }
///
///Buy-in order status code
///
[ApiMember(Description="Buy-in order status code")]
public virtual string buyInStatusId { get; set; }
///
///Buy-in creation date
///
[ApiMember(Description="Buy-in creation date")]
public virtual DateTime buyInDate { get; set; }
///
///Emails of Sale Representatives
///
[ApiMember(Description="Emails of Sale Representatives")]
public virtual List saleRepresentativeEmails { get; set; } = [];
///
///True is the buy-in’s piece is in stock, False otherwise
///
[ApiMember(Description="True is the buy-in’s piece is in stock, False otherwise")]
public virtual bool isInStock { get; set; }
}
[Route("/buyin/{brand}", "GET")]
public partial class GetBuyInPaginated
: IReturn
{
///
///Richemont Brand ID
///
[ApiMember(Description="Richemont Brand ID")]
public virtual string brand { get; set; }
///
///Richemont POS code
///
[ApiMember(Description="Richemont POS code", IsRequired=true)]
public virtual string posCode { 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; }
///
///Buy-in order status code
///
[ApiMember(Description="Buy-in order status code")]
public virtual string buyInStatusId { get; set; }
///
///True is the buy-in’s piece is in stock, False otherwise
///
[ApiMember(Description="True is the buy-in’s piece is in stock, False otherwise")]
public virtual bool? isInStock { 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; }
///
///Omit precise record count - save on performance
///
[ApiMember(Description="Omit precise record count - save on performance")]
public virtual bool noCount { get; set; }
///
///Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'.
///
[ApiMember(Description="Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'.")]
public virtual string sortBy { get; set; }
}
public partial class GetBuyInPaginatedResponse
{
///
///Index of the result set returnedr
///
[ApiMember(Description="Index of the result set returnedr", 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; }
///
///Total amount of pages / result sets
///
[ApiMember(Description="Total amount of pages / result sets", IsRequired=true)]
public virtual int totalPages { get; set; }
///
///Total amount of results
///
[ApiMember(Description="Total amount of results", IsRequired=true)]
public virtual int totalResults { get; set; }
///
///List of Sale Details
///
[ApiMember(Description="List of Sale Details", IsRequired=true)]
public virtual IEnumerable elements { get; set; }
}
}