Richemont.Booster2.PublicApi

<back to all web services

RejectBuyIn

Requires Authentication
The following routes are available for this service:
POST/buyin/{buyInOrderId}/rejectReject BuyIn for the given buyinorderid
import 'package:servicestack/servicestack.dart';

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

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

class RejectBuyIn implements IConvertible
{
    /**
    * BuyIn Order code
    */
    // @ApiMember(Description="BuyIn Order code", IsRequired=true)
    int buyInOrderId = 0;

    RejectBuyIn({this.buyInOrderId=0});
    RejectBuyIn.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

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

POST /buyin/{buyInOrderId}/reject HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"buyInOrderId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}