| PATCH | /warranty/{saleId} | Patch Sellout | Patch 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"saleId":0,"saleRepresentativeEmails":["String"],"promoterTypeId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{}