Richemont.Booster2.PublicApi

<back to all web services

GetTransferRequest

Requires Authentication
The following routes are available for this service:
GET/stock/{brand}/transferRequestGet Transfer RequestsGet a list of Transfer Requests related to given POSes
import 'package:servicestack/servicestack.dart';

class TransferRequest implements IConvertible
{
    /**
    * Transfer Request ID, e.g. 1234567
    */
    // @ApiMember(Description="Transfer Request ID, e.g. 1234567", IsRequired=true)
    int? transferRequestId;

    /**
    * Transfer Request Status: 'PEN', 'ACC', 'ERR', 'INP', 'COM', 'REJ', 'CAN'
    */
    // @ApiMember(Description="Transfer Request Status: 'PEN', 'ACC', 'ERR', 'INP', 'COM', 'REJ', 'CAN'", IsRequired=true)
    String? status;

    /**
    * Transfer Request creation date e.g. 2022-01-01
    */
    // @ApiMember(Description="Transfer Request creation date e.g. 2022-01-01", IsRequired=true)
    String? createdDate;

    /**
    * Transfer Request created user
    */
    // @ApiMember(Description="Transfer Request created user", IsRequired=true)
    String? createdBy;

    /**
    * POS Code of the transfer Source POS, e.g. ES100:102048
    */
    // @ApiMember(Description="POS Code of the transfer Source POS, e.g. ES100:102048", IsRequired=true)
    String? posCodeFrom;

    /**
    * POS Code of the transfer Target POS, e.g. ES100:101469
    */
    // @ApiMember(Description="POS Code of the transfer Target POS, e.g. ES100:101469", IsRequired=true)
    String? posCodeTo;

    /**
    * Legacy Article Code of the item to be transferred
    */
    // @ApiMember(Description="Legacy Article Code of the item to be transferred", IsRequired=true)
    String? articleCode;

    /**
    * Serial Number of the Article to be transferred
    */
    // @ApiMember(Description="Serial Number of the Article to be transferred")
    String? serialNumber;

    /**
    * Notes
    */
    // @ApiMember(Description="Notes")
    String? notes;

    /**
    * Return Number of the Authroization form document / PDF if exists
    */
    // @ApiMember(Description="Return Number of the Authroization form document / PDF if exists")
    int? returnNumber;

    /**
    * Context of the Transfer request, can be either PUSH or PULL
    */
    // @ApiMember(Description="Context of the Transfer request, can be either PUSH or PULL")
    String? context;

    TransferRequest({this.transferRequestId,this.status,this.createdDate,this.createdBy,this.posCodeFrom,this.posCodeTo,this.articleCode,this.serialNumber,this.notes,this.returnNumber,this.context});
    TransferRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        transferRequestId = json['transferRequestId'];
        status = json['status'];
        createdDate = json['createdDate'];
        createdBy = json['createdBy'];
        posCodeFrom = json['posCodeFrom'];
        posCodeTo = json['posCodeTo'];
        articleCode = json['articleCode'];
        serialNumber = json['serialNumber'];
        notes = json['notes'];
        returnNumber = json['returnNumber'];
        context = json['context'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'transferRequestId': transferRequestId,
        'status': status,
        'createdDate': createdDate,
        'createdBy': createdBy,
        'posCodeFrom': posCodeFrom,
        'posCodeTo': posCodeTo,
        'articleCode': articleCode,
        'serialNumber': serialNumber,
        'notes': notes,
        'returnNumber': returnNumber,
        'context': context
    };

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

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

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

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

    /**
    * List of POS Codes in interest, e.g. ES100:102048,ES100:101469
    */
    // @ApiMember(Description="List of POS Codes in interest, e.g. ES100:102048,ES100:101469", IsRequired=true)
    List<String>? posCodes;

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

    fromMap(Map<String, dynamic> json) {
        brand = json['brand'];
        posCodes = JsonConverters.fromJson(json['posCodes'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'brand': brand,
        'posCodes': JsonConverters.toJson(posCodes,'List<String>',context!)
    };

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

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

Dart GetTransferRequest DTOs

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

HTTP + OTHER

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

GET /stock/{brand}/transferRequest HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]