| PUT | /posIdentity/{brand} | Update a POS Brand Identity |
|---|
import 'package:servicestack/servicestack.dart';
class UpdatePOSBrandIdentityResponse implements IConvertible
{
UpdatePOSBrandIdentityResponse();
UpdatePOSBrandIdentityResponse.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "UpdatePOSBrandIdentityResponse";
TypeContext? context = _ctx;
}
class UpdatePOSBrandIdentity implements IConvertible
{
/**
* Point of Sale Code, e.g. ES100:102048
*/
// @ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)
String? posCode;
/**
* Brand Triagram, e.g. CAR, IWC, VAC
*/
// @ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)
String? brand;
/**
* Alternative Country ISO code, e.g. az, ca, us. max length 50 characters
*/
// @ApiMember(Description="Alternative Country ISO code, e.g. az, ca, us. max length 50 characters")
String? alternativeCountry;
/**
* Alternative Zip Code of POS, max length 50 characters
*/
// @ApiMember(Description="Alternative Zip Code of POS, max length 50 characters")
String? alternativeZipCode;
/**
* Alternative Street Name and Number of the POS
*/
// @ApiMember(Description="Alternative Street Name and Number of the POS")
String? alternativeStreet;
/**
* Alternative City name of the POS, max length 50 characters
*/
// @ApiMember(Description="Alternative City name of the POS, max length 50 characters")
String? alternativeCity;
/**
* Total Maison Commercial Surface
*/
// @ApiMember(Description="Total Maison Commercial Surface")
double? brandWatchesCommercialSurface;
/**
* Watches Commercial Area
*/
// @ApiMember(Description="Watches Commercial Area")
double? posWatchesCommercialSurface;
/**
* Website URL (Partner Website), max length 200 characters
*/
// @ApiMember(Description="Website URL (Partner Website), max length 200 characters")
String? website;
/**
* SWT POS type
*/
// @ApiMember(Description="SWT POS type")
int? posType;
/**
* Post Contract Status Id
*/
// @ApiMember(Description="Post Contract Status Id")
int? postContractStatusId;
/**
* Opening Date
*/
// @ApiMember(Description="Opening Date")
DateTime? openingDate;
/**
* Closing Date
*/
// @ApiMember(Description="Closing Date")
DateTime? closingDate;
/**
* Sub Market Country ID
*/
// @ApiMember(Description="Sub Market Country ID")
int? subMarketCountryId;
/**
* Facility Type Id
*/
// @ApiMember(Description="Facility Type Id")
int? addressTypeId;
/**
* Facility Additional Information
*/
// @ApiMember(Description="Facility Additional Information")
String? mallOrDeptStoreUnitNumber;
/**
* Number of Floors
*/
// @ApiMember(Description="Number of Floors")
int? floorNumber;
/**
* GPS Latitude, value can only be between -90.00 and 90.00
*/
// @ApiMember(Description="GPS Latitude, value can only be between -90.00 and 90.00")
double? gpsLatitude;
/**
* GPS Longitude, value can only be between -90.00 and 90.00
*/
// @ApiMember(Description="GPS Longitude, value can only be between -90.00 and 90.00")
double? gpsLongitude;
/**
* Time Vallee
*/
// @ApiMember(Description="Time Vallee", IsRequired=true)
bool? timeVallee;
/**
* Last Visit Date
*/
// @ApiMember(Description="Last Visit Date")
DateTime? lastVisitDate;
/**
* EPartnerProgram
*/
// @ApiMember(Description="EPartnerProgram")
int? ePartnerProgram;
/**
* ePartner Launch Date
*/
// @ApiMember(Description="ePartner Launch Date")
DateTime? ePartnerLaunchDate;
/**
* ePartner Scoring
*/
// @ApiMember(Description="ePartner Scoring")
int? ePartnerScoring;
/**
* Social Media
*/
// @ApiMember(Description="Social Media")
bool? socialMedia;
/**
* SEO
*/
// @ApiMember(Description="SEO")
bool? seo;
/**
* Google Business
*/
// @ApiMember(Description="Google Business")
bool? googleBusiness;
UpdatePOSBrandIdentity({this.posCode,this.brand,this.alternativeCountry,this.alternativeZipCode,this.alternativeStreet,this.alternativeCity,this.brandWatchesCommercialSurface,this.posWatchesCommercialSurface,this.website,this.posType,this.postContractStatusId,this.openingDate,this.closingDate,this.subMarketCountryId,this.addressTypeId,this.mallOrDeptStoreUnitNumber,this.floorNumber,this.gpsLatitude,this.gpsLongitude,this.timeVallee,this.lastVisitDate,this.ePartnerProgram,this.ePartnerLaunchDate,this.ePartnerScoring,this.socialMedia,this.seo,this.googleBusiness});
UpdatePOSBrandIdentity.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
posCode = json['posCode'];
brand = json['brand'];
alternativeCountry = json['alternativeCountry'];
alternativeZipCode = json['alternativeZipCode'];
alternativeStreet = json['alternativeStreet'];
alternativeCity = json['alternativeCity'];
brandWatchesCommercialSurface = JsonConverters.toDouble(json['brandWatchesCommercialSurface']);
posWatchesCommercialSurface = JsonConverters.toDouble(json['posWatchesCommercialSurface']);
website = json['website'];
posType = json['posType'];
postContractStatusId = json['postContractStatusId'];
openingDate = JsonConverters.fromJson(json['openingDate'],'DateTime',context!);
closingDate = JsonConverters.fromJson(json['closingDate'],'DateTime',context!);
subMarketCountryId = json['subMarketCountryId'];
addressTypeId = json['addressTypeId'];
mallOrDeptStoreUnitNumber = json['mallOrDeptStoreUnitNumber'];
floorNumber = json['floorNumber'];
gpsLatitude = JsonConverters.toDouble(json['gpsLatitude']);
gpsLongitude = JsonConverters.toDouble(json['gpsLongitude']);
timeVallee = json['timeVallee'];
lastVisitDate = JsonConverters.fromJson(json['lastVisitDate'],'DateTime',context!);
ePartnerProgram = json['ePartnerProgram'];
ePartnerLaunchDate = JsonConverters.fromJson(json['ePartnerLaunchDate'],'DateTime',context!);
ePartnerScoring = json['ePartnerScoring'];
socialMedia = json['socialMedia'];
seo = json['seo'];
googleBusiness = json['googleBusiness'];
return this;
}
Map<String, dynamic> toJson() => {
'posCode': posCode,
'brand': brand,
'alternativeCountry': alternativeCountry,
'alternativeZipCode': alternativeZipCode,
'alternativeStreet': alternativeStreet,
'alternativeCity': alternativeCity,
'brandWatchesCommercialSurface': brandWatchesCommercialSurface,
'posWatchesCommercialSurface': posWatchesCommercialSurface,
'website': website,
'posType': posType,
'postContractStatusId': postContractStatusId,
'openingDate': JsonConverters.toJson(openingDate,'DateTime',context!),
'closingDate': JsonConverters.toJson(closingDate,'DateTime',context!),
'subMarketCountryId': subMarketCountryId,
'addressTypeId': addressTypeId,
'mallOrDeptStoreUnitNumber': mallOrDeptStoreUnitNumber,
'floorNumber': floorNumber,
'gpsLatitude': gpsLatitude,
'gpsLongitude': gpsLongitude,
'timeVallee': timeVallee,
'lastVisitDate': JsonConverters.toJson(lastVisitDate,'DateTime',context!),
'ePartnerProgram': ePartnerProgram,
'ePartnerLaunchDate': JsonConverters.toJson(ePartnerLaunchDate,'DateTime',context!),
'ePartnerScoring': ePartnerScoring,
'socialMedia': socialMedia,
'seo': seo,
'googleBusiness': googleBusiness
};
getTypeName() => "UpdatePOSBrandIdentity";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
'UpdatePOSBrandIdentityResponse': TypeInfo(TypeOf.Class, create:() => UpdatePOSBrandIdentityResponse()),
'UpdatePOSBrandIdentity': TypeInfo(TypeOf.Class, create:() => UpdatePOSBrandIdentity()),
});
Dart UpdatePOSBrandIdentity DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /posIdentity/{brand} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
posCode: String,
brand: String,
alternativeCountry: String,
alternativeZipCode: String,
alternativeStreet: String,
alternativeCity: String,
brandWatchesCommercialSurface: 0,
posWatchesCommercialSurface: 0,
website: String,
posType: 0,
postContractStatusId: 0,
openingDate: 0001-01-01,
closingDate: 0001-01-01,
subMarketCountryId: 0,
addressTypeId: 0,
mallOrDeptStoreUnitNumber: String,
floorNumber: 0,
gpsLatitude: 0,
gpsLongitude: 0,
timeVallee: False,
lastVisitDate: 0001-01-01,
ePartnerProgram: 0,
ePartnerLaunchDate: 0001-01-01,
ePartnerScoring: 0,
socialMedia: False,
seo: False,
googleBusiness: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}