Richemont.Booster2.PublicApi

<back to all web services

UpdateEquipmentWarranty

Requires Authentication
The following routes are available for this service:
PATCH/warranty/equipmentUpdate Equipment WarrantyUpdate Equipment Warranty API
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 UpdateEquipmentWarrantyResponse:
    # @ApiMember(Description="Equipment number", IsRequired=true)
    equipment: Optional[str] = None
    """
    Equipment number
    """


    # @ApiMember(Description="Warranty type", IsRequired=true)
    warranty_type: Optional[str] = None
    """
    Warranty type
    """


    # @ApiMember(Description="Master warranty", IsRequired=true)
    master_warranty: Optional[str] = None
    """
    Master warranty
    """


    # @ApiMember(Description="Warranty start date", IsRequired=true)
    warranty_start_date: Optional[str] = None
    """
    Warranty start date
    """


    # @ApiMember(Description="Warranty end date")
    warranty_end_date: Optional[str] = None
    """
    Warranty end date
    """


    # @ApiMember(Description="Warranty creation date", IsRequired=true)
    warranty_creation_date: Optional[str] = None
    """
    Warranty creation date
    """


    # @ApiMember(Description="Warranty creation time", IsRequired=true)
    warranty_creation_time: Optional[str] = None
    """
    Warranty creation time
    """


    # @ApiMember(Description="Object number (ERP)", IsRequired=true)
    object_number: Optional[str] = None
    """
    Object number (ERP)
    """


    # @ApiMember(Description="Sales Force Sellout ID", IsRequired=true)
    sf_sellout_id: Optional[str] = None
    """
    Sales Force Sellout ID
    """


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UpdateEquipmentWarranty:
    # @ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)
    brand: Optional[str] = None
    """
    Brand Trigram, e.g. CAR, IWC
    """


    # @ApiMember(Description="POS code, e.g. 102048", IsRequired=true)
    pos_code: Optional[str] = None
    """
    POS code, e.g. 102048
    """


    # @ApiMember(Description="Equipment number, e.g. 1234567890", IsRequired=true)
    equipment_number: Optional[str] = None
    """
    Equipment number, e.g. 1234567890
    """


    # @ApiMember(Description="Warranty type, e.g. 3", IsRequired=true)
    warranty_type: Optional[str] = None
    """
    Warranty type, e.g. 3
    """


    # @ApiMember(Description="Date of the warranty start date e.g. 2025-06-01", IsRequired=true)
    warranty_start_date: datetime.datetime = datetime.datetime(1, 1, 1)
    """
    Date of the warranty start date e.g. 2025-06-01
    """

Python UpdateEquipmentWarranty DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PATCH /warranty/equipment HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"brand":"String","posCode":"String","equipmentNumber":"String","warrantyType":"String","warrantyStartDate":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"equipment":"String","warrantyType":"String","masterWarranty":"String","warrantyStartDate":"String","warrantyEndDate":"String","warrantyCreationDate":"String","warrantyCreationTime":"String","objectNumber":"String","sfSelloutId":"String"}