| POST | /selfService/transferTicket/pending | The buyer's unpaid exchange for this ticket, if one is in flight |
|---|
import 'package:servicestack/servicestack.dart';
class SelfServiceTransferResultBase implements IConvertible
{
bool? ok;
int? statusCode;
String? code;
String? message;
SelfServiceTransferResultBase({this.ok,this.statusCode,this.code,this.message});
SelfServiceTransferResultBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ok = json['ok'];
statusCode = json['statusCode'];
code = json['code'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'ok': ok,
'statusCode': statusCode,
'code': code,
'message': message
};
getTypeName() => "SelfServiceTransferResultBase";
TypeContext? context = _ctx;
}
class SelfServicePendingTransfer implements IConvertible
{
int? transferLogId;
int? toEventId;
String? toEventName;
DateTime? toEventTimeOfEvent;
String? toTicketTypeName;
double? topupAmountIsk;
String? sessionToken;
String? paymentLinkUrl;
DateTime? expiresAt;
int? assignedSeatId;
String? assignedSeatLabel;
SelfServicePendingTransfer({this.transferLogId,this.toEventId,this.toEventName,this.toEventTimeOfEvent,this.toTicketTypeName,this.topupAmountIsk,this.sessionToken,this.paymentLinkUrl,this.expiresAt,this.assignedSeatId,this.assignedSeatLabel});
SelfServicePendingTransfer.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
transferLogId = json['transferLogId'];
toEventId = json['toEventId'];
toEventName = json['toEventName'];
toEventTimeOfEvent = JsonConverters.fromJson(json['toEventTimeOfEvent'],'DateTime',context!);
toTicketTypeName = json['toTicketTypeName'];
topupAmountIsk = JsonConverters.toDouble(json['topupAmountIsk']);
sessionToken = json['sessionToken'];
paymentLinkUrl = json['paymentLinkUrl'];
expiresAt = JsonConverters.fromJson(json['expiresAt'],'DateTime',context!);
assignedSeatId = json['assignedSeatId'];
assignedSeatLabel = json['assignedSeatLabel'];
return this;
}
Map<String, dynamic> toJson() => {
'transferLogId': transferLogId,
'toEventId': toEventId,
'toEventName': toEventName,
'toEventTimeOfEvent': JsonConverters.toJson(toEventTimeOfEvent,'DateTime',context!),
'toTicketTypeName': toTicketTypeName,
'topupAmountIsk': topupAmountIsk,
'sessionToken': sessionToken,
'paymentLinkUrl': paymentLinkUrl,
'expiresAt': JsonConverters.toJson(expiresAt,'DateTime',context!),
'assignedSeatId': assignedSeatId,
'assignedSeatLabel': assignedSeatLabel
};
getTypeName() => "SelfServicePendingTransfer";
TypeContext? context = _ctx;
}
class SelfServicePendingTransferResult extends SelfServiceTransferResultBase implements IConvertible
{
bool? hasPending;
SelfServicePendingTransfer? pending;
SelfServicePendingTransferResult({this.hasPending,this.pending});
SelfServicePendingTransferResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
hasPending = json['hasPending'];
pending = JsonConverters.fromJson(json['pending'],'SelfServicePendingTransfer',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'hasPending': hasPending,
'pending': JsonConverters.toJson(pending,'SelfServicePendingTransfer',context!)
});
getTypeName() => "SelfServicePendingTransferResult";
TypeContext? context = _ctx;
}
class SelfServicePendingTransferRequest implements IConvertible
{
String? ticketTokenId;
String? buyerPhone;
SelfServicePendingTransferRequest({this.ticketTokenId,this.buyerPhone});
SelfServicePendingTransferRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ticketTokenId = json['ticketTokenId'];
buyerPhone = json['buyerPhone'];
return this;
}
Map<String, dynamic> toJson() => {
'ticketTokenId': ticketTokenId,
'buyerPhone': buyerPhone
};
getTypeName() => "SelfServicePendingTransferRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'SelfServiceTransferResultBase': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferResultBase()),
'SelfServicePendingTransfer': TypeInfo(TypeOf.Class, create:() => SelfServicePendingTransfer()),
'SelfServicePendingTransferResult': TypeInfo(TypeOf.Class, create:() => SelfServicePendingTransferResult()),
'SelfServicePendingTransferRequest': TypeInfo(TypeOf.Class, create:() => SelfServicePendingTransferRequest()),
});
Dart SelfServicePendingTransferRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /selfService/transferTicket/pending HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ticketTokenId":"String","buyerPhone":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"hasPending":false,"pending":{"transferLogId":0,"toEventId":0,"toEventName":"String","toEventTimeOfEvent":"0001-01-01T00:00:00.0000000","toTicketTypeName":"String","topupAmountIsk":0,"sessionToken":"String","paymentLinkUrl":"String","expiresAt":"0001-01-01T00:00:00.0000000","assignedSeatId":0,"assignedSeatLabel":"String"},"ok":false,"statusCode":0,"code":"String","message":"String"}