/* Options: Date: 2026-10-01 12:31:15 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CancelRecurringPaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CancelRecurringPaymentResult implements IConvertible { bool? ok; int? id; String? effect; String? status; int? subscriptionLength; int? priorSubscriptionLength; int? monthsPaid; DateTime? cancelledAt; String? reason; bool? alreadyCancelled; int? remaining; int? statusCode; String? message; CancelRecurringPaymentResult({this.ok,this.id,this.effect,this.status,this.subscriptionLength,this.priorSubscriptionLength,this.monthsPaid,this.cancelledAt,this.reason,this.alreadyCancelled,this.remaining,this.statusCode,this.message}); CancelRecurringPaymentResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ok = json['ok']; id = json['id']; effect = json['effect']; status = json['status']; subscriptionLength = json['subscriptionLength']; priorSubscriptionLength = json['priorSubscriptionLength']; monthsPaid = json['monthsPaid']; cancelledAt = JsonConverters.fromJson(json['cancelledAt'],'DateTime',context!); reason = json['reason']; alreadyCancelled = json['alreadyCancelled']; remaining = json['remaining']; statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'ok': ok, 'id': id, 'effect': effect, 'status': status, 'subscriptionLength': subscriptionLength, 'priorSubscriptionLength': priorSubscriptionLength, 'monthsPaid': monthsPaid, 'cancelledAt': JsonConverters.toJson(cancelledAt,'DateTime',context!), 'reason': reason, 'alreadyCancelled': alreadyCancelled, 'remaining': remaining, 'statusCode': statusCode, 'message': message }; getTypeName() => "CancelRecurringPaymentResult"; TypeContext? context = _ctx; } // @Route("/recurringPayments/{Id}/cancel", "POST") // @Route("/recurringPayments/cancel", "POST") class CancelRecurringPaymentRequest implements IReturn, IConvertible { int? id; String? paymentTokenId; String? phone; String? reason; String? via; CancelRecurringPaymentRequest({this.id,this.paymentTokenId,this.phone,this.reason,this.via}); CancelRecurringPaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; paymentTokenId = json['paymentTokenId']; phone = json['phone']; reason = json['reason']; via = json['via']; return this; } Map toJson() => { 'id': id, 'paymentTokenId': paymentTokenId, 'phone': phone, 'reason': reason, 'via': via }; createResponse() => CancelRecurringPaymentResult(); getResponseTypeName() => "CancelRecurringPaymentResult"; getTypeName() => "CancelRecurringPaymentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'CancelRecurringPaymentResult': TypeInfo(TypeOf.Class, create:() => CancelRecurringPaymentResult()), 'CancelRecurringPaymentRequest': TypeInfo(TypeOf.Class, create:() => CancelRecurringPaymentRequest()), });