Richemont.Booster2.PublicApi

<back to all web services

PatchSellout

Requires Authentication
The following routes are available for this service:
PATCH/warranty/{saleId}Patch SelloutPatch Sellout with Updated info
import 'package:servicestack/servicestack.dart';

class PatchSelloutResponse implements IConvertible
{
    PatchSelloutResponse();
    PatchSelloutResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "PatchSelloutResponse";
    TypeContext? context = _ctx;
}

class PatchSellout implements IConvertible
{
    /**
    * Unique Identifier of the Sell-out item created in Booster
    */
    // @ApiMember(Description="Unique Identifier of the Sell-out item created in Booster", IsRequired=true)
    int? saleId;

    /**
    * Emails of Sale Representatives
    */
    // @ApiMember(Description="Emails of Sale Representatives")
    List<String>? saleRepresentativeEmails;

    /**
    * Promoter Type ID
    */
    // @ApiMember(Description="Promoter Type ID")
    String? promoterTypeId;

    PatchSellout({this.saleId,this.saleRepresentativeEmails,this.promoterTypeId});
    PatchSellout.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        saleId = json['saleId'];
        saleRepresentativeEmails = JsonConverters.fromJson(json['saleRepresentativeEmails'],'List<String>',context!);
        promoterTypeId = json['promoterTypeId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'saleId': saleId,
        'saleRepresentativeEmails': JsonConverters.toJson(saleRepresentativeEmails,'List<String>',context!),
        'promoterTypeId': promoterTypeId
    };

    getTypeName() => "PatchSellout";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
    'PatchSelloutResponse': TypeInfo(TypeOf.Class, create:() => PatchSelloutResponse()),
    'PatchSellout': TypeInfo(TypeOf.Class, create:() => PatchSellout()),
});

Dart PatchSellout 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.

PATCH /warranty/{saleId} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"saleId":0,"saleRepresentativeEmails":["String"],"promoterTypeId":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}