Richemont.Booster2.PublicApi

<back to all web services

GetSerialNumberHistory

Requires Authentication
The following routes are available for this service:
GET/serialnumber/{brand}/{serialNumber}/lookupGet a serial number history
import 'package:servicestack/servicestack.dart';

class SerialNumberList implements IConvertible
{
    /**
    * Article Code
    */
    // @ApiMember(Description="Article Code", IsRequired=true)
    String? articleCode;

    /**
    * Serial Number
    */
    // @ApiMember(Description="Serial Number", IsRequired=true)
    String? serialNumber;

    SerialNumberList({this.articleCode,this.serialNumber});
    SerialNumberList.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class GetSerialNumberHistoryResponse extends ListBase<SerialNumberList> implements IConvertible
{
    final List<SerialNumberList> l = [];
    set length(int newLength) { l.length = newLength; }
    int get length => l.length;
    SerialNumberList operator [](int index) => l[index];
    void operator []=(int index, SerialNumberList value) { l[index] = value; }
    GetSerialNumberHistoryResponse();
    GetSerialNumberHistoryResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

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

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

    /**
    * Serial Number
    */
    // @ApiMember(Description="Serial Number", IsRequired=true)
    String? serialNumber;

    GetSerialNumberHistory({this.brand,this.serialNumber});
    GetSerialNumberHistory.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

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

GET /serialnumber/{brand}/{serialNumber}/lookup HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[]