Richemont.Booster2.PublicApi

<back to all web services

GetPosChainTransferAvailable

Requires Authentication
The following routes are available for this service:
GET/posChain/{brand}/{posCode}/availableForTransferGet available POS within the same Chain where stock is transferable
import 'package:servicestack/servicestack.dart';

class Pos implements IConvertible
{
    /**
    * POS Code
    */
    // @ApiMember(Description="POS Code", IsRequired=true)
    String? posCode;

    /**
    * Name of the POS
    */
    // @ApiMember(Description="Name of the POS", IsRequired=true)
    String? name;

    /**
    * City of the POS
    */
    // @ApiMember(Description="City of the POS", IsRequired=true)
    String? city;

    /**
    * Address of the POS
    */
    // @ApiMember(Description="Address of the POS", IsRequired=true)
    String? address;

    /**
    * Country of the POS
    */
    // @ApiMember(Description="Country of the POS", IsRequired=true)
    String? country;

    /**
    * Brand of the POS
    */
    // @ApiMember(Description="Brand of the POS", IsRequired=true)
    String? brand;

    Pos({this.posCode,this.name,this.city,this.address,this.country,this.brand});
    Pos.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'posCode': posCode,
        'name': name,
        'city': city,
        'address': address,
        'country': country,
        'brand': brand
    };

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

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

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

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

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

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

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

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

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

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

Dart GetPosChainTransferAvailable DTOs

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

HTTP + JSV

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

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

[
	
]