TicketUserServices

<back to all web services

StopRecurringPaymentRequest

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
POST/recurringPayments/stop
import 'package:servicestack/servicestack.dart';

class StopRecurringPaymentResult implements IConvertible
{
    bool? ok;
    int? id;
    String? effect;
    String? status;
    int? subscriptionLength;
    int? monthsPaid;
    int? statusCode;
    String? message;

    StopRecurringPaymentResult({this.ok,this.id,this.effect,this.status,this.subscriptionLength,this.monthsPaid,this.statusCode,this.message});
    StopRecurringPaymentResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ok = json['ok'];
        id = json['id'];
        effect = json['effect'];
        status = json['status'];
        subscriptionLength = json['subscriptionLength'];
        monthsPaid = json['monthsPaid'];
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ok': ok,
        'id': id,
        'effect': effect,
        'status': status,
        'subscriptionLength': subscriptionLength,
        'monthsPaid': monthsPaid,
        'statusCode': statusCode,
        'message': message
    };

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

class StopRecurringPaymentRequest implements IConvertible
{
    int? id;
    String? paymentTokenId;
    int? ownerId;
    String? reason;
    String? via;

    StopRecurringPaymentRequest({this.id,this.paymentTokenId,this.ownerId,this.reason,this.via});
    StopRecurringPaymentRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        paymentTokenId = json['paymentTokenId'];
        ownerId = json['ownerId'];
        reason = json['reason'];
        via = json['via'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'paymentTokenId': paymentTokenId,
        'ownerId': ownerId,
        'reason': reason,
        'via': via
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'StopRecurringPaymentResult': TypeInfo(TypeOf.Class, create:() => StopRecurringPaymentResult()),
    'StopRecurringPaymentRequest': TypeInfo(TypeOf.Class, create:() => StopRecurringPaymentRequest()),
});

Dart StopRecurringPaymentRequest DTOs

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

HTTP + JSV

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

POST /recurringPayments/stop HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	paymentTokenId: String,
	ownerId: 0,
	reason: String,
	via: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ok: False,
	id: 0,
	effect: String,
	status: String,
	subscriptionLength: 0,
	monthsPaid: 0,
	statusCode: 0,
	message: String
}