TicketUserServices

<back to all web services

MyRecurringPaymentsRequest

Requires Authentication
The following routes are available for this service:
GET/recurringPayments/mine
import 'package:servicestack/servicestack.dart';

class RecurringSubscriptionView implements IConvertible
{
    int? id;
    String? status;
    String? phoneVerificationNumber;
    DateTime? startDate;
    DateTime? lastPayment;
    DateTime? nextPayment;
    int? ownerId;
    int? ownerCardTypeId;
    int? declinedCounter;
    int? subscriptionLength;
    int? monthsPaid;
    int? monthlyPrice;
    double? transactionFee;
    String? paymentTokenId;
    String? panLastFour;
    String? expMonth;
    String? expYear;
    String? mode;
    int? cardId;
    String? initialPaymentDate;
    String? initialPaymentAmount;
    String? initialPaymentCurrency;
    String? initialPaymentStatus;
    DateTime? cancelledAt;
    String? cancellationReason;
    int? priorSubscriptionLength;
    String? termsVersion;
    DateTime? termsAcceptedAt;

    RecurringSubscriptionView({this.id,this.status,this.phoneVerificationNumber,this.startDate,this.lastPayment,this.nextPayment,this.ownerId,this.ownerCardTypeId,this.declinedCounter,this.subscriptionLength,this.monthsPaid,this.monthlyPrice,this.transactionFee,this.paymentTokenId,this.panLastFour,this.expMonth,this.expYear,this.mode,this.cardId,this.initialPaymentDate,this.initialPaymentAmount,this.initialPaymentCurrency,this.initialPaymentStatus,this.cancelledAt,this.cancellationReason,this.priorSubscriptionLength,this.termsVersion,this.termsAcceptedAt});
    RecurringSubscriptionView.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        status = json['status'];
        phoneVerificationNumber = json['phoneVerificationNumber'];
        startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!);
        lastPayment = JsonConverters.fromJson(json['lastPayment'],'DateTime',context!);
        nextPayment = JsonConverters.fromJson(json['nextPayment'],'DateTime',context!);
        ownerId = json['ownerId'];
        ownerCardTypeId = json['ownerCardTypeId'];
        declinedCounter = json['declinedCounter'];
        subscriptionLength = json['subscriptionLength'];
        monthsPaid = json['monthsPaid'];
        monthlyPrice = json['monthlyPrice'];
        transactionFee = JsonConverters.toDouble(json['transactionFee']);
        paymentTokenId = json['paymentTokenId'];
        panLastFour = json['panLastFour'];
        expMonth = json['expMonth'];
        expYear = json['expYear'];
        mode = json['mode'];
        cardId = json['cardId'];
        initialPaymentDate = json['initialPaymentDate'];
        initialPaymentAmount = json['initialPaymentAmount'];
        initialPaymentCurrency = json['initialPaymentCurrency'];
        initialPaymentStatus = json['initialPaymentStatus'];
        cancelledAt = JsonConverters.fromJson(json['cancelledAt'],'DateTime',context!);
        cancellationReason = json['cancellationReason'];
        priorSubscriptionLength = json['priorSubscriptionLength'];
        termsVersion = json['termsVersion'];
        termsAcceptedAt = JsonConverters.fromJson(json['termsAcceptedAt'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'status': status,
        'phoneVerificationNumber': phoneVerificationNumber,
        'startDate': JsonConverters.toJson(startDate,'DateTime',context!),
        'lastPayment': JsonConverters.toJson(lastPayment,'DateTime',context!),
        'nextPayment': JsonConverters.toJson(nextPayment,'DateTime',context!),
        'ownerId': ownerId,
        'ownerCardTypeId': ownerCardTypeId,
        'declinedCounter': declinedCounter,
        'subscriptionLength': subscriptionLength,
        'monthsPaid': monthsPaid,
        'monthlyPrice': monthlyPrice,
        'transactionFee': transactionFee,
        'paymentTokenId': paymentTokenId,
        'panLastFour': panLastFour,
        'expMonth': expMonth,
        'expYear': expYear,
        'mode': mode,
        'cardId': cardId,
        'initialPaymentDate': initialPaymentDate,
        'initialPaymentAmount': initialPaymentAmount,
        'initialPaymentCurrency': initialPaymentCurrency,
        'initialPaymentStatus': initialPaymentStatus,
        'cancelledAt': JsonConverters.toJson(cancelledAt,'DateTime',context!),
        'cancellationReason': cancellationReason,
        'priorSubscriptionLength': priorSubscriptionLength,
        'termsVersion': termsVersion,
        'termsAcceptedAt': JsonConverters.toJson(termsAcceptedAt,'DateTime',context!)
    };

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

class MyRecurringPaymentsResult implements IConvertible
{
    List<RecurringSubscriptionView>? items;
    int? statusCode;
    String? message;

    MyRecurringPaymentsResult({this.items,this.statusCode,this.message});
    MyRecurringPaymentsResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        items = JsonConverters.fromJson(json['items'],'List<RecurringSubscriptionView>',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'items': JsonConverters.toJson(items,'List<RecurringSubscriptionView>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class MyRecurringPaymentsRequest implements IConvertible
{
    String? phone;

    MyRecurringPaymentsRequest({this.phone});
    MyRecurringPaymentsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'RecurringSubscriptionView': TypeInfo(TypeOf.Class, create:() => RecurringSubscriptionView()),
    'MyRecurringPaymentsResult': TypeInfo(TypeOf.Class, create:() => MyRecurringPaymentsResult()),
    'List<RecurringSubscriptionView>': TypeInfo(TypeOf.Class, create:() => <RecurringSubscriptionView>[]),
    'MyRecurringPaymentsRequest': TypeInfo(TypeOf.Class, create:() => MyRecurringPaymentsRequest()),
});

Dart MyRecurringPaymentsRequest 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.

GET /recurringPayments/mine HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"items":[{"id":0,"status":"String","phoneVerificationNumber":"String","startDate":"0001-01-01T00:00:00.0000000","lastPayment":"0001-01-01T00:00:00.0000000","nextPayment":"0001-01-01T00:00:00.0000000","ownerId":0,"ownerCardTypeId":0,"declinedCounter":0,"subscriptionLength":0,"monthsPaid":0,"monthlyPrice":0,"transactionFee":0,"paymentTokenId":"String","panLastFour":"String","expMonth":"String","expYear":"String","mode":"String","cardId":0,"initialPaymentDate":"String","initialPaymentAmount":"String","initialPaymentCurrency":"String","initialPaymentStatus":"String","cancelledAt":"0001-01-01T00:00:00.0000000","cancellationReason":"String","priorSubscriptionLength":0,"termsVersion":"String","termsAcceptedAt":"0001-01-01T00:00:00.0000000"}],"statusCode":0,"message":"String"}