Richemont.Booster2.PublicApi

<back to all web services

GetSelloutFormConfigurations

Requires Authentication
The following routes are available for this service:
GET/selloutFormConfigurations/{brand}/{posCode}Get all available Sellout Form Configurations
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class GetSelloutFormConfigurationsResponse implements JsonSerializable
{
    public function __construct(
        /** @description Requirement for sales representative field, e.g. M, V, N */
        // @ApiMember(Description="Requirement for sales representative field, e.g. M, V, N", IsRequired=true)
        /** @var string */
        public string $salesRep='',

        /** @description Allow consignment transfer during sellout, e.g. M, V, N */
        // @ApiMember(Description="Allow consignment transfer during sellout, e.g. M, V, N", IsRequired=true)
        /** @var string */
        public string $allowConsignmentTransfer='',

        /** @description Invoice Number will be generated automatically during sellout, e.g. M, V, N */
        // @ApiMember(Description="Invoice Number will be generated automatically during sellout, e.g. M, V, N", IsRequired=true)
        /** @var string */
        public string $automaticInvoiceNumber='',

        /** @description Allow consignment sellout return is stock, e.g. V, N */
        // @ApiMember(Description="Allow consignment sellout return is stock, e.g. V, N", IsRequired=true)
        /** @var string */
        public string $allowConsignmentReturnInStock='',

        /** @description Allow declare sellout and extend the warranty of certified pre-owned items, e.g. V, N */
        // @ApiMember(Description="Allow declare sellout and extend the warranty of certified pre-owned items, e.g. V, N", IsRequired=true)
        /** @var string */
        public string $cpoSaleDeclaration=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['salesRep'])) $this->salesRep = $o['salesRep'];
        if (isset($o['allowConsignmentTransfer'])) $this->allowConsignmentTransfer = $o['allowConsignmentTransfer'];
        if (isset($o['automaticInvoiceNumber'])) $this->automaticInvoiceNumber = $o['automaticInvoiceNumber'];
        if (isset($o['allowConsignmentReturnInStock'])) $this->allowConsignmentReturnInStock = $o['allowConsignmentReturnInStock'];
        if (isset($o['cpoSaleDeclaration'])) $this->cpoSaleDeclaration = $o['cpoSaleDeclaration'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->salesRep)) $o['salesRep'] = $this->salesRep;
        if (isset($this->allowConsignmentTransfer)) $o['allowConsignmentTransfer'] = $this->allowConsignmentTransfer;
        if (isset($this->automaticInvoiceNumber)) $o['automaticInvoiceNumber'] = $this->automaticInvoiceNumber;
        if (isset($this->allowConsignmentReturnInStock)) $o['allowConsignmentReturnInStock'] = $this->allowConsignmentReturnInStock;
        if (isset($this->cpoSaleDeclaration)) $o['cpoSaleDeclaration'] = $this->cpoSaleDeclaration;
        return empty($o) ? new class(){} : $o;
    }
}

class GetSelloutFormConfigurations implements JsonSerializable
{
    public function __construct(
        /** @description Brand Triagram, e.g. CAR, IWC, VAC */
        // @ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)
        /** @var string */
        public string $brand='',

        /** @description Point of Sale Code, e.g. ES100:102048 */
        // @ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)
        /** @var string */
        public string $posCode=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['brand'])) $this->brand = $o['brand'];
        if (isset($o['posCode'])) $this->posCode = $o['posCode'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->brand)) $o['brand'] = $this->brand;
        if (isset($this->posCode)) $o['posCode'] = $this->posCode;
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetSelloutFormConfigurations DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /selloutFormConfigurations/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"salesRep":"String","allowConsignmentTransfer":"String","automaticInvoiceNumber":"String","allowConsignmentReturnInStock":"String","cpoSaleDeclaration":"String"}