Richemont.Booster2.PublicApi

<back to all web services

DeleteEquipmentWarranty

Requires Authentication
The following routes are available for this service:
DELETE/warranty/equipment/{brand}/{posCode}/{equipmentNr}/{warrantyType}Delete the specified equipment warranty from SAP
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 DeleteEquipmentWarrantyResponse:
    success: bool = False
    statuscode: Optional[HttpStatusCode] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DeleteEquipmentWarranty:
    # @ApiMember(Description="Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided")
    brand: Optional[str] = None
    """
    Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided
    """


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


    # @ApiMember(Description="EquipmentNumber", IsRequired=true)
    equipment_nr: Optional[str] = None
    """
    EquipmentNumber
    """


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

Python DeleteEquipmentWarranty DTOs

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

HTTP + CSV

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

DELETE /warranty/equipment/{brand}/{posCode}/{equipmentNr}/{warrantyType} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"success":false,"statuscode":"Continue","message":"String"}