Richemont.Booster2.PublicApi

<back to all web services

GetPosAuth

Requires Authentication
The following routes are available for this service:
GET/security/{brand}/{posCode}/{mnemonicCode}Get information if a Pos/User is authorized on a specific function
import 'package:servicestack/servicestack.dart';

class GetPosAuthResponse implements IConvertible
{
    /**
    * Is Authorized
    */
    // @ApiMember(Description="Is Authorized", IsRequired=true)
    bool? isAuthorized;

    GetPosAuthResponse({this.isAuthorized});
    GetPosAuthResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'isAuthorized': isAuthorized
    };

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

class GetPosAuth implements IConvertible
{
    /**
    * Brand Trigram
    */
    // @ApiMember(Description="Brand Trigram", IsRequired=true)
    String brand = "";

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

    /**
    * Mnemonic Petal Code
    */
    // @ApiMember(Description="Mnemonic Petal Code", IsRequired=true)
    String mnemonicCode = "";

    GetPosAuth({this.brand="",this.posCode="",this.mnemonicCode=""});
    GetPosAuth.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

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

GET /security/{brand}/{posCode}/{mnemonicCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"isAuthorized":false}