/* Options: Date: 2025-09-08 01:52:45 Version: 8.81 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://account.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PurchaseSubscription.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; abstract class ICardInfo { String? cardNumber; int? expMonth; int? expYear; String? cvc; } abstract class IAddress { String? addressLine1; String? addressLine2; String? addressCity; String? addressZip; String? addressState; String? addressCountry; } // @Route("/account/subscription") // @Route("/Subscriptions", "GET") class Subscriptions implements IConvertible, IGet { String? section; bool? success; bool? activated; int? purchasedOrderId; Subscriptions({this.section,this.success,this.activated,this.purchasedOrderId}); Subscriptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { section = json['section']; success = json['success']; activated = json['activated']; purchasedOrderId = json['purchasedOrderId']; return this; } Map toJson() => { 'section': section, 'success': success, 'activated': activated, 'purchasedOrderId': purchasedOrderId }; getTypeName() => "Subscriptions"; TypeContext? context = _ctx; } // @Route("/PurchaseSubscription", "POST") class PurchaseSubscription implements IReturn, ICardInfo, IAddress, IConvertible, IPost { String? code; String? coupon; String? renewalRef; String? upgradeRef; int? quantity; String? userAuthId; int? skuId; bool? isSmallCompany; bool? isNonProfit; bool? agreeTerms; String? firstName; String? lastName; String? email; String? password; String? company; String? phoneNumber; String? addressLine1; String? addressLine2; String? addressCity; String? addressZip; String? addressState; String? addressCountry; String? licenseName; String? licenseEmail; String? licenseAddress; String? cardNumber; String? cvc; int? expMonth; int? expYear; String? notes; PurchaseSubscription({this.code,this.coupon,this.renewalRef,this.upgradeRef,this.quantity,this.userAuthId,this.skuId,this.isSmallCompany,this.isNonProfit,this.agreeTerms,this.firstName,this.lastName,this.email,this.password,this.company,this.phoneNumber,this.addressLine1,this.addressLine2,this.addressCity,this.addressZip,this.addressState,this.addressCountry,this.licenseName,this.licenseEmail,this.licenseAddress,this.cardNumber,this.cvc,this.expMonth,this.expYear,this.notes}); PurchaseSubscription.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; coupon = json['coupon']; renewalRef = json['renewalRef']; upgradeRef = json['upgradeRef']; quantity = json['quantity']; userAuthId = json['userAuthId']; skuId = json['skuId']; isSmallCompany = json['isSmallCompany']; isNonProfit = json['isNonProfit']; agreeTerms = json['agreeTerms']; firstName = json['firstName']; lastName = json['lastName']; email = json['email']; password = json['password']; company = json['company']; phoneNumber = json['phoneNumber']; addressLine1 = json['addressLine1']; addressLine2 = json['addressLine2']; addressCity = json['addressCity']; addressZip = json['addressZip']; addressState = json['addressState']; addressCountry = json['addressCountry']; licenseName = json['licenseName']; licenseEmail = json['licenseEmail']; licenseAddress = json['licenseAddress']; cardNumber = json['cardNumber']; cvc = json['cvc']; expMonth = json['expMonth']; expYear = json['expYear']; notes = json['notes']; return this; } Map toJson() => { 'code': code, 'coupon': coupon, 'renewalRef': renewalRef, 'upgradeRef': upgradeRef, 'quantity': quantity, 'userAuthId': userAuthId, 'skuId': skuId, 'isSmallCompany': isSmallCompany, 'isNonProfit': isNonProfit, 'agreeTerms': agreeTerms, 'firstName': firstName, 'lastName': lastName, 'email': email, 'password': password, 'company': company, 'phoneNumber': phoneNumber, 'addressLine1': addressLine1, 'addressLine2': addressLine2, 'addressCity': addressCity, 'addressZip': addressZip, 'addressState': addressState, 'addressCountry': addressCountry, 'licenseName': licenseName, 'licenseEmail': licenseEmail, 'licenseAddress': licenseAddress, 'cardNumber': cardNumber, 'cvc': cvc, 'expMonth': expMonth, 'expYear': expYear, 'notes': notes }; createResponse() => Subscriptions(); getResponseTypeName() => "Subscriptions"; getTypeName() => "PurchaseSubscription"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: { 'ICardInfo': TypeInfo(TypeOf.Interface), 'IAddress': TypeInfo(TypeOf.Interface), 'Subscriptions': TypeInfo(TypeOf.Class, create:() => Subscriptions()), 'PurchaseSubscription': TypeInfo(TypeOf.Class, create:() => PurchaseSubscription()), });