| POST | /buyin/{buyInOrderId}/accept | Reject BuyIn for the given buyinorderid |
|---|
import 'package:servicestack/servicestack.dart';
class AcceptBuyInResponse implements IConvertible
{
AcceptBuyInResponse();
AcceptBuyInResponse.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "AcceptBuyInResponse";
TypeContext? context = _ctx;
}
class AcceptBuyIn implements IConvertible
{
/**
* BuyIn Order code
*/
// @ApiMember(Description="BuyIn Order code", IsRequired=true)
int buyInOrderId = 0;
AcceptBuyIn({this.buyInOrderId=0});
AcceptBuyIn.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() => "AcceptBuyIn";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
'AcceptBuyInResponse': TypeInfo(TypeOf.Class, create:() => AcceptBuyInResponse()),
'AcceptBuyIn': TypeInfo(TypeOf.Class, create:() => AcceptBuyIn()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /buyin/{buyInOrderId}/accept HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
buyInOrderId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}