/* Options: Date: 2026-10-07 08:36:55 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetBuyInPaginated.* //ExcludeTypes: //DefaultImports: */ // @ts-nocheck export interface IReturn { createResponse(): T; } export class BuyIn { /** @description 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 brand: string; /** @description Code of BuyIn */ // @ApiMember(Description="Code of BuyIn", IsRequired=true) public buyInOrderId: number; /** @description Richemont POS code */ // @ApiMember(Description="Richemont POS code", IsRequired=true) public posCode: string; /** @description Richemont Reference Code of the item */ // @ApiMember(Description="Richemont Reference Code of the item", IsRequired=true) public articleCode: string; /** @description Serial Number of the item */ // @ApiMember(Description="Serial Number of the item") public serialNumber: string; /** @description Buy-in order status code */ // @ApiMember(Description="Buy-in order status code") public buyInStatusId: string; /** @description Buy-in creation date */ // @ApiMember(Description="Buy-in creation date") public buyInDate: string; /** @description Emails of Sale Representatives */ // @ApiMember(Description="Emails of Sale Representatives") public saleRepresentativeEmails: string[] = []; /** @description 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 isInStock: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GetBuyInPaginatedResponse { /** @description Index of the result set returnedr */ // @ApiMember(Description="Index of the result set returnedr", IsRequired=true) public page: number; /** @description Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) public items: number; /** @description Total amount of pages / result sets */ // @ApiMember(Description="Total amount of pages / result sets", IsRequired=true) public totalPages: number; /** @description Total amount of results */ // @ApiMember(Description="Total amount of results", IsRequired=true) public totalResults: number; /** @description List of Sale Details */ // @ApiMember(Description="List of Sale Details", IsRequired=true) public elements: BuyIn[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/buyin/{brand}", "GET") export class GetBuyInPaginated implements IReturn { /** @description Richemont Brand ID */ // @ApiMember(Description="Richemont Brand ID") public brand: string; /** @description Richemont POS code */ // @ApiMember(Description="Richemont POS code", IsRequired=true) public posCode: string; /** @description Richemont Reference Code of the item */ // @ApiMember(Description="Richemont Reference Code of the item") public articleCode: string; /** @description Serial Number of the item */ // @ApiMember(Description="Serial Number of the item") public serialNumber: string; /** @description Buy-in order status code */ // @ApiMember(Description="Buy-in order status code") public buyInStatusId: string; /** @description 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 isInStock?: boolean; /** @description Index of the result set returned */ // @ApiMember(Description="Index of the result set returned", IsRequired=true) public page: number; /** @description Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) public items: number; /** @description Omit precise record count - save on performance */ // @ApiMember(Description="Omit precise record count - save on performance") public noCount: boolean; /** @description Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'. */ // @ApiMember(Description="Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'.") public sortBy: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetBuyInPaginated'; } public getMethod() { return 'GET'; } public createResponse() { return new GetBuyInPaginatedResponse(); } }