/* Options: Date: 2024-05-17 08:04:43 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: CheckForPaymentProfile.* //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 CheckForPaymentProfileDto extends ApiDtoBase implements IConvertible { int? MemberId; CheckForPaymentProfileDto({this.MemberId}); CheckForPaymentProfileDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); MemberId = json['MemberId']; return this; } Map toJson() => super.toJson()..addAll({ 'MemberId': MemberId }); getTypeName() => "CheckForPaymentProfileDto"; TypeContext? context = _ctx; } // @Route("/sales/member/{MemberId}/profile/check", "GET") class CheckForPaymentProfile extends CheckForPaymentProfileDto implements 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; /** * ID # of store member belongs to */ // @ApiMember(DataType="integer", Description="ID # of store member belongs to", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * ID # of user to check */ // @ApiMember(DataType="integer", Description="ID # of user to check", IsRequired=true, Name="MemberId", ParameterType="path") int? MemberId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; CheckForPaymentProfile({this.ApiKey,this.StoreId,this.MemberId,this.RestrictedId,this.RestrictedResourceType}); CheckForPaymentProfile.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!) }); getTypeName() => "CheckForPaymentProfile"; 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()), 'CheckForPaymentProfileDto': TypeInfo(TypeOf.Class, create:() => CheckForPaymentProfileDto()), 'CheckForPaymentProfile': TypeInfo(TypeOf.Class, create:() => CheckForPaymentProfile()), });