| GET | /selloutFormConfigurations/{brand}/{posCode} | Get all available Sellout Form Configurations |
|---|
import 'package:servicestack/servicestack.dart';
class GetSelloutFormConfigurationsResponse implements IConvertible
{
/**
* Requirement for sales representative field, e.g. M, V, N
*/
// @ApiMember(Description="Requirement for sales representative field, e.g. M, V, N", IsRequired=true)
String salesRep = "";
/**
* Allow consignment transfer during sellout, e.g. M, V, N
*/
// @ApiMember(Description="Allow consignment transfer during sellout, e.g. M, V, N", IsRequired=true)
String allowConsignmentTransfer = "";
/**
* 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)
String automaticInvoiceNumber = "";
/**
* Allow consignment sellout return is stock, e.g. V, N
*/
// @ApiMember(Description="Allow consignment sellout return is stock, e.g. V, N", IsRequired=true)
String allowConsignmentReturnInStock = "";
/**
* 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)
String cpoSaleDeclaration = "";
/**
* Determine if a POS is able to have CPO sellouts and buy-ins with stock, e.g. V, N
*/
// @ApiMember(Description="Determine if a POS is able to have CPO sellouts and buy-ins with stock, e.g. V, N", IsRequired=true)
String cpoPOSManageStock = "";
/**
* Determine if a POS is authorized to service the piece themselves, e.g. V, N
*/
// @ApiMember(Description="Determine if a POS is authorized to service the piece themselves, e.g. V, N", IsRequired=true)
String isCpoExtraAuthorizedPartner = "";
/**
* Determine if a POS and current user are allowed to manage CPO stock, e.g. V, N
*/
// @ApiMember(Description="Determine if a POS and current user are allowed to manage CPO stock, e.g. V, N", IsRequired=true)
String allowCPOManageStock = "";
GetSelloutFormConfigurationsResponse({this.salesRep="",this.allowConsignmentTransfer="",this.automaticInvoiceNumber="",this.allowConsignmentReturnInStock="",this.cpoSaleDeclaration="",this.cpoPOSManageStock="",this.isCpoExtraAuthorizedPartner="",this.allowCPOManageStock=""});
GetSelloutFormConfigurationsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
salesRep = json['salesRep'] ?? "";
allowConsignmentTransfer = json['allowConsignmentTransfer'] ?? "";
automaticInvoiceNumber = json['automaticInvoiceNumber'] ?? "";
allowConsignmentReturnInStock = json['allowConsignmentReturnInStock'] ?? "";
cpoSaleDeclaration = json['cpoSaleDeclaration'] ?? "";
cpoPOSManageStock = json['cpoPOSManageStock'] ?? "";
isCpoExtraAuthorizedPartner = json['isCpoExtraAuthorizedPartner'] ?? "";
allowCPOManageStock = json['allowCPOManageStock'] ?? "";
return this;
}
Map<String, dynamic> toJson() => {
'salesRep': salesRep,
'allowConsignmentTransfer': allowConsignmentTransfer,
'automaticInvoiceNumber': automaticInvoiceNumber,
'allowConsignmentReturnInStock': allowConsignmentReturnInStock,
'cpoSaleDeclaration': cpoSaleDeclaration,
'cpoPOSManageStock': cpoPOSManageStock,
'isCpoExtraAuthorizedPartner': isCpoExtraAuthorizedPartner,
'allowCPOManageStock': allowCPOManageStock
};
getTypeName() => "GetSelloutFormConfigurationsResponse";
TypeContext? context = _ctx;
}
class GetSelloutFormConfigurations implements IConvertible
{
/**
* Brand Triagram, e.g. CAR, IWC, VAC
*/
// @ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)
String brand = "";
/**
* Point of Sale Code, e.g. ES100:102048
*/
// @ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)
String posCode = "";
GetSelloutFormConfigurations({this.brand="",this.posCode=""});
GetSelloutFormConfigurations.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
brand = json['brand'] ?? "";
posCode = json['posCode'] ?? "";
return this;
}
Map<String, dynamic> toJson() => {
'brand': brand,
'posCode': posCode
};
getTypeName() => "GetSelloutFormConfigurations";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
'GetSelloutFormConfigurationsResponse': TypeInfo(TypeOf.Class, create:() => GetSelloutFormConfigurationsResponse()),
'GetSelloutFormConfigurations': TypeInfo(TypeOf.Class, create:() => GetSelloutFormConfigurations()),
});
Dart GetSelloutFormConfigurations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetSelloutFormConfigurationsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Sellout.ServiceModel"> <allowCPOManageStock>String</allowCPOManageStock> <allowConsignmentReturnInStock>String</allowConsignmentReturnInStock> <allowConsignmentTransfer>String</allowConsignmentTransfer> <automaticInvoiceNumber>String</automaticInvoiceNumber> <cpoPOSManageStock>String</cpoPOSManageStock> <cpoSaleDeclaration>String</cpoSaleDeclaration> <isCpoExtraAuthorizedPartner>String</isCpoExtraAuthorizedPartner> <salesRep>String</salesRep> </GetSelloutFormConfigurationsResponse>