| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<UpdatePOSBrandIdentity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.POS.ServiceModel">
<addressTypeId>0</addressTypeId>
<alternativeCity>String</alternativeCity>
<alternativeCountry>String</alternativeCountry>
<alternativeStreet>String</alternativeStreet>
<alternativeZipCode>String</alternativeZipCode>
<brand>String</brand>
<brandWatchesCommercialSurface>0</brandWatchesCommercialSurface>
<closingDate>0001-01-01T00:00:00</closingDate>
<ePartnerLaunchDate>0001-01-01T00:00:00</ePartnerLaunchDate>
<ePartnerProgram>0</ePartnerProgram>
<ePartnerScoring>0</ePartnerScoring>
<floorNumber>0</floorNumber>
<googleBusiness>false</googleBusiness>
<gpsLatitude>0</gpsLatitude>
<gpsLongitude>0</gpsLongitude>
<lastVisitDate>0001-01-01T00:00:00</lastVisitDate>
<mallOrDeptStoreUnitNumber>String</mallOrDeptStoreUnitNumber>
<openingDate>0001-01-01T00:00:00</openingDate>
<posCode>String</posCode>
<posType>0</posType>
<posWatchesCommercialSurface>0</posWatchesCommercialSurface>
<postContractStatusId>0</postContractStatusId>
<seo>false</seo>
<socialMedia>false</socialMedia>
<subMarketCountryId>0</subMarketCountryId>
<timeVallee>false</timeVallee>
<website>String</website>
</UpdatePOSBrandIdentity>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdatePOSBrandIdentityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.POS.ServiceModel" />