Richemont.Booster2.PublicApi

<back to all web services

DeleteEquipmentWarrantyPartner

Requires Authentication
The following routes are available for this service:
DELETE/partner/warranty/equipment/{brand}/{posCode}/{cpoSelloutId}Delete the specified equipment warranty from SAP and B2
import 'package:servicestack/servicestack.dart';

class DeleteEquipmentWarrantyPartnerResponse implements IConvertible
{
    DeleteEquipmentWarrantyPartnerResponse();
    DeleteEquipmentWarrantyPartnerResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "DeleteEquipmentWarrantyPartnerResponse";
    TypeContext? context = _ctx;
}

class DeleteEquipmentWarrantyPartner implements IConvertible
{
    /**
    * Brand Trigram, e.g. CAR, IWC
    */
    // @ApiMember(Description="Brand Trigram, e.g. CAR, IWC")
    String? brand;

    /**
    * Richemont POS code
    */
    // @ApiMember(Description="Richemont POS code", IsRequired=true)
    String? posCode;

    /**
    * Cpo sellout Id, e.g a0RbW000000qIyXUAU
    */
    // @ApiMember(Description="Cpo sellout Id, e.g a0RbW000000qIyXUAU", IsRequired=true)
    String? cpoSelloutId;

    DeleteEquipmentWarrantyPartner({this.brand,this.posCode,this.cpoSelloutId});
    DeleteEquipmentWarrantyPartner.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        brand = json['brand'];
        posCode = json['posCode'];
        cpoSelloutId = json['cpoSelloutId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'brand': brand,
        'posCode': posCode,
        'cpoSelloutId': cpoSelloutId
    };

    getTypeName() => "DeleteEquipmentWarrantyPartner";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
    'DeleteEquipmentWarrantyPartnerResponse': TypeInfo(TypeOf.Class, create:() => DeleteEquipmentWarrantyPartnerResponse()),
    'DeleteEquipmentWarrantyPartner': TypeInfo(TypeOf.Class, create:() => DeleteEquipmentWarrantyPartner()),
});

Dart DeleteEquipmentWarrantyPartner DTOs

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

HTTP + XML

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

DELETE /partner/warranty/equipment/{brand}/{posCode}/{cpoSelloutId} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DeleteEquipmentWarrantyPartnerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Sellout.ServiceModel" />