Richemont.Booster2.PublicApi

<back to all web services

DeleteUserAuth

Requires Authentication
The following routes are available for this service:
DELETE/user/{brand}/{posCode}/{userId}/authorizeDelete the authorization for the given external user and for the given POS
import 'package:servicestack/servicestack.dart';

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

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

class DeleteUserAuth implements IConvertible
{
    /**
    * User's UserID (GUID). E.g. '731cd7f3-a781-48bf-b43d-310273895ce2'
    */
    // @ApiMember(Description="User's UserID (GUID). E.g. '731cd7f3-a781-48bf-b43d-310273895ce2'", IsRequired=true)
    String? userId;

    /**
    * Brand Trigram, e.g. CAR, IWC, VAC
    */
    // @ApiMember(Description="Brand Trigram, e.g. CAR, IWC, VAC", IsRequired=true)
    String? brand;

    /**
    * Pos code
    */
    // @ApiMember(Description="Pos code")
    String? posCode;

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

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

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

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

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

Dart DeleteUserAuth 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.

DELETE /user/{brand}/{posCode}/{userId}/authorize HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}