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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MyRecurringPaymentsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Items>
    <RecurringSubscriptionView>
      <CancellationReason>String</CancellationReason>
      <CancelledAt>0001-01-01T00:00:00</CancelledAt>
      <CardId>0</CardId>
      <DeclinedCounter>0</DeclinedCounter>
      <ExpMonth>String</ExpMonth>
      <ExpYear>String</ExpYear>
      <Id>0</Id>
      <InitialPaymentAmount>String</InitialPaymentAmount>
      <InitialPaymentCurrency>String</InitialPaymentCurrency>
      <InitialPaymentDate>String</InitialPaymentDate>
      <InitialPaymentStatus>String</InitialPaymentStatus>
      <LastPayment>0001-01-01T00:00:00</LastPayment>
      <Mode>String</Mode>
      <MonthlyPrice>0</MonthlyPrice>
      <MonthsPaid>0</MonthsPaid>
      <NextPayment>0001-01-01T00:00:00</NextPayment>
      <OwnerCardTypeId>0</OwnerCardTypeId>
      <OwnerId>0</OwnerId>
      <PanLastFour>String</PanLastFour>
      <PaymentTokenId>String</PaymentTokenId>
      <PhoneVerificationNumber>String</PhoneVerificationNumber>
      <PriorSubscriptionLength>0</PriorSubscriptionLength>
      <StartDate>0001-01-01T00:00:00</StartDate>
      <Status>String</Status>
      <SubscriptionLength>0</SubscriptionLength>
      <TermsAcceptedAt>0001-01-01T00:00:00</TermsAcceptedAt>
      <TermsVersion>String</TermsVersion>
      <TransactionFee>0</TransactionFee>
    </RecurringSubscriptionView>
  </Items>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</MyRecurringPaymentsResult>