TicketUserServices

<back to all web services

GetPaymentStatusRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ticketOrder/getPaymentStatus
import 'package:servicestack/servicestack.dart';

class GetPaymentStatusRequest implements IConvertible
{
    String? paymentType;
    String? paymentToken;

    GetPaymentStatusRequest({this.paymentType,this.paymentToken});
    GetPaymentStatusRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'GetPaymentStatusRequest': TypeInfo(TypeOf.Class, create:() => GetPaymentStatusRequest()),
});

Dart GetPaymentStatusRequest 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 /ticketOrder/getPaymentStatus HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"paymentType":"String","paymentToken":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

(string)