/* Options: Date: 2024-05-14 22:02:20 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetBillingStatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum RestrictedResourceType { Store, Chain, User, Undefined, } abstract class IRestrictedApiRequest extends IApiKeyEndpoint { int? RestrictedId; RestrictedResourceType? RestrictedResourceType; } abstract class IApiKeyEndpoint { String? ApiKey; } class ApiDtoBase implements IConvertible { String? ApiKey; int? StoreId; int? ChainId; ApiDtoBase({this.ApiKey,this.StoreId,this.ChainId}); ApiDtoBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId }; getTypeName() => "ApiDtoBase"; TypeContext? context = _ctx; } class GetBillingStatusRequestDto extends ApiDtoBase implements IConvertible { int? MemberId; GetBillingStatusRequestDto({this.MemberId}); GetBillingStatusRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); MemberId = json['MemberId']; return this; } Map toJson() => super.toJson()..addAll({ 'MemberId': MemberId }); getTypeName() => "GetBillingStatusRequestDto"; TypeContext? context = _ctx; } class MemberBillingStatusInvoice implements IConvertible { int? InvoiceId; String? Status; int? StatusId; double? AmountDue; double? SalesTaxDue; DateTime? PaymentDue; DateTime? PaymentMade; String? PackageName; MemberBillingStatusInvoice({this.InvoiceId,this.Status,this.StatusId,this.AmountDue,this.SalesTaxDue,this.PaymentDue,this.PaymentMade,this.PackageName}); MemberBillingStatusInvoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceId = json['InvoiceId']; Status = json['Status']; StatusId = json['StatusId']; AmountDue = JsonConverters.toDouble(json['AmountDue']); SalesTaxDue = JsonConverters.toDouble(json['SalesTaxDue']); PaymentDue = JsonConverters.fromJson(json['PaymentDue'],'DateTime',context!); PaymentMade = JsonConverters.fromJson(json['PaymentMade'],'DateTime',context!); PackageName = json['PackageName']; return this; } Map toJson() => { 'InvoiceId': InvoiceId, 'Status': Status, 'StatusId': StatusId, 'AmountDue': AmountDue, 'SalesTaxDue': SalesTaxDue, 'PaymentDue': JsonConverters.toJson(PaymentDue,'DateTime',context!), 'PaymentMade': JsonConverters.toJson(PaymentMade,'DateTime',context!), 'PackageName': PackageName }; getTypeName() => "MemberBillingStatusInvoice"; TypeContext? context = _ctx; } // @DataContract class GetMemberBillingStatus_Result implements IConvertible { // @DataMember String? FullName; // @DataMember String? MemberStatus; // @DataMember String? HomeClub; // @DataMember double? BalanceDue; // @DataMember int? StoreID; GetMemberBillingStatus_Result({this.FullName,this.MemberStatus,this.HomeClub,this.BalanceDue,this.StoreID}); GetMemberBillingStatus_Result.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FullName = json['FullName']; MemberStatus = json['MemberStatus']; HomeClub = json['HomeClub']; BalanceDue = JsonConverters.toDouble(json['BalanceDue']); StoreID = json['StoreID']; return this; } Map toJson() => { 'FullName': FullName, 'MemberStatus': MemberStatus, 'HomeClub': HomeClub, 'BalanceDue': BalanceDue, 'StoreID': StoreID }; getTypeName() => "GetMemberBillingStatus_Result"; TypeContext? context = _ctx; } class MemberBillingStatus extends GetMemberBillingStatus_Result implements IConvertible { List? Invoices; int? UserTypeId; String? UserTypeName; int? NewUserId; MemberBillingStatus({this.Invoices,this.UserTypeId,this.UserTypeName,this.NewUserId}); MemberBillingStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Invoices = JsonConverters.fromJson(json['Invoices'],'List',context!); UserTypeId = json['UserTypeId']; UserTypeName = json['UserTypeName']; NewUserId = json['NewUserId']; return this; } Map toJson() => super.toJson()..addAll({ 'Invoices': JsonConverters.toJson(Invoices,'List',context!), 'UserTypeId': UserTypeId, 'UserTypeName': UserTypeName, 'NewUserId': NewUserId }); getTypeName() => "MemberBillingStatus"; TypeContext? context = _ctx; } // @Route("/sales/members/{MemberId}/status", "GET") class GetBillingStatusRequest extends GetBillingStatusRequestDto implements IReturn, IRestrictedApiRequest, IConvertible { /** * Api Key - grants access to resources */ // @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") String? ApiKey; /** * Store ID # member belongs to */ // @ApiMember(DataType="integer", Description="Store ID # member belongs to", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * ID of the member to lookup */ // @ApiMember(DataType="integer", Description="ID of the member to lookup", IsRequired=true, Name="MemberId", ParameterType="path") int? MemberId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; GetBillingStatusRequest({this.ApiKey,this.StoreId,this.MemberId,this.RestrictedId,this.RestrictedResourceType}); GetBillingStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; StoreId = json['StoreId']; MemberId = json['MemberId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'StoreId': StoreId, 'MemberId': MemberId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => MemberBillingStatus(); getResponseTypeName() => "MemberBillingStatus"; getTypeName() => "GetBillingStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'GetBillingStatusRequestDto': TypeInfo(TypeOf.Class, create:() => GetBillingStatusRequestDto()), 'MemberBillingStatusInvoice': TypeInfo(TypeOf.Class, create:() => MemberBillingStatusInvoice()), 'GetMemberBillingStatus_Result': TypeInfo(TypeOf.Class, create:() => GetMemberBillingStatus_Result()), 'MemberBillingStatus': TypeInfo(TypeOf.Class, create:() => MemberBillingStatus()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetBillingStatusRequest': TypeInfo(TypeOf.Class, create:() => GetBillingStatusRequest()), });