BokaMera.API.Host

<back to all web services

CheckPaymentStatus

The following routes are available for this service:
PUT/payment/payson/checkstatusPaymentPayments Check Status
import 'package:servicestack/servicestack.dart';

class CheckPaymentsStatusResponse implements IConvertible
{
    String? ResentCount;
    ResponseStatus? ResponseStatus;

    CheckPaymentsStatusResponse({this.ResentCount,this.ResponseStatus});
    CheckPaymentsStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResentCount = json['ResentCount'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResentCount': ResentCount,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

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

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "CheckPaymentStatus";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
    'CheckPaymentsStatusResponse': TypeInfo(TypeOf.Class, create:() => CheckPaymentsStatusResponse()),
    'CheckPaymentStatus': TypeInfo(TypeOf.Class, create:() => CheckPaymentStatus()),
});

Dart CheckPaymentStatus DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /payment/payson/checkstatus HTTP/1.1 
Host: api.bokamera.se 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ResentCount":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}