| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<SelfServicePendingTransferRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BuyerPhone>String</BuyerPhone>
<TicketTokenId>String</TicketTokenId>
</SelfServicePendingTransferRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SelfServicePendingTransferResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Code>String</Code>
<Message>String</Message>
<Ok>false</Ok>
<StatusCode>0</StatusCode>
<HasPending>false</HasPending>
<Pending>
<AssignedSeatId>0</AssignedSeatId>
<AssignedSeatLabel>String</AssignedSeatLabel>
<ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
<PaymentLinkUrl>String</PaymentLinkUrl>
<SessionToken>String</SessionToken>
<ToEventId>0</ToEventId>
<ToEventName>String</ToEventName>
<ToEventTimeOfEvent>0001-01-01T00:00:00</ToEventTimeOfEvent>
<ToTicketTypeName>String</ToTicketTypeName>
<TopupAmountIsk>0</TopupAmountIsk>
<TransferLogId>0</TransferLogId>
</Pending>
</SelfServicePendingTransferResult>