| PUT | /posIdentity/{brand} | Update a POS Brand Identity |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UpdatePOSBrandIdentityResponse:
pass
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UpdatePOSBrandIdentity:
# @ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)
pos_code: Optional[str] = None
"""
Point of Sale Code, e.g. ES100:102048
"""
# @ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)
brand: Optional[str] = None
"""
Brand Triagram, e.g. CAR, IWC, VAC
"""
# @ApiMember(Description="Alternative Country ISO code, e.g. az, ca, us. max length 50 characters")
alternative_country: Optional[str] = None
"""
Alternative Country ISO code, e.g. az, ca, us. max length 50 characters
"""
# @ApiMember(Description="Alternative Zip Code of POS, max length 50 characters")
alternative_zip_code: Optional[str] = None
"""
Alternative Zip Code of POS, max length 50 characters
"""
# @ApiMember(Description="Alternative Street Name and Number of the POS")
alternative_street: Optional[str] = None
"""
Alternative Street Name and Number of the POS
"""
# @ApiMember(Description="Alternative City name of the POS, max length 50 characters")
alternative_city: Optional[str] = None
"""
Alternative City name of the POS, max length 50 characters
"""
# @ApiMember(Description="Total Maison Commercial Surface")
brand_watches_commercial_surface: Optional[Decimal] = None
"""
Total Maison Commercial Surface
"""
# @ApiMember(Description="Watches Commercial Area")
pos_watches_commercial_surface: Optional[Decimal] = None
"""
Watches Commercial Area
"""
# @ApiMember(Description="Website URL (Partner Website), max length 200 characters")
website: Optional[str] = None
"""
Website URL (Partner Website), max length 200 characters
"""
# @ApiMember(Description="SWT POS type")
pos_type: Optional[int] = None
"""
SWT POS type
"""
# @ApiMember(Description="Post Contract Status Id")
post_contract_status_id: Optional[int] = None
"""
Post Contract Status Id
"""
# @ApiMember(Description="Opening Date")
opening_date: Optional[datetime.datetime] = None
"""
Opening Date
"""
# @ApiMember(Description="Closing Date")
closing_date: Optional[datetime.datetime] = None
"""
Closing Date
"""
# @ApiMember(Description="Sub Market Country ID")
sub_market_country_id: Optional[int] = None
"""
Sub Market Country ID
"""
# @ApiMember(Description="Facility Type Id")
address_type_id: Optional[int] = None
"""
Facility Type Id
"""
# @ApiMember(Description="Facility Additional Information")
mall_or_dept_store_unit_number: Optional[str] = None
"""
Facility Additional Information
"""
# @ApiMember(Description="Number of Floors")
floor_number: Optional[int] = None
"""
Number of Floors
"""
# @ApiMember(Description="GPS Latitude, value can only be between -90.00 and 90.00")
gps_latitude: Optional[Decimal] = None
"""
GPS Latitude, value can only be between -90.00 and 90.00
"""
# @ApiMember(Description="GPS Longitude, value can only be between -90.00 and 90.00")
gps_longitude: Optional[Decimal] = None
"""
GPS Longitude, value can only be between -90.00 and 90.00
"""
# @ApiMember(Description="Time Vallee", IsRequired=true)
time_vallee: bool = False
"""
Time Vallee
"""
# @ApiMember(Description="Last Visit Date")
last_visit_date: Optional[datetime.datetime] = None
"""
Last Visit Date
"""
# @ApiMember(Description="EPartnerProgram")
e_partner_program: Optional[int] = None
"""
EPartnerProgram
"""
# @ApiMember(Description="ePartner Launch Date")
e_partner_launch_date: Optional[datetime.datetime] = None
"""
ePartner Launch Date
"""
# @ApiMember(Description="ePartner Scoring")
e_partner_scoring: Optional[int] = None
"""
ePartner Scoring
"""
# @ApiMember(Description="Social Media")
social_media: Optional[bool] = None
"""
Social Media
"""
# @ApiMember(Description="SEO")
seo: Optional[bool] = None
"""
SEO
"""
# @ApiMember(Description="Google Business")
google_business: Optional[bool] = None
"""
Google Business
"""
Python 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
{
}