/* Options: Date: 2024-11-24 13:25:30 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: WalletTokenCreateEndpoint.* //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; } // @DataContract enum OwnerType { Unknown, User, ConvUser, TempCart, TempAgmt, Store, Chain, Division, District, AdminType, TempStUser, VaultApi, Company, BackOfficeStore, OrgUser, CartItem, Testing, System, Error, } enum WalletPage { Uninitialized, Manage, Add, AddCard, AddBank, AddMini, AddCardMini, AddBankMini, } class WalletTokenCreateRequestDto extends ApiDtoBase implements IConvertible { int? OwnerId; OwnerType? OwnerType; int? CreatorId; WalletPage? Page; String? Theme; bool? AllowDeleteProfile; bool? AllowDisableProfile; WalletTokenCreateRequestDto({this.OwnerId,this.OwnerType,this.CreatorId,this.Page,this.Theme,this.AllowDeleteProfile,this.AllowDisableProfile}); WalletTokenCreateRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); OwnerId = json['OwnerId']; OwnerType = JsonConverters.fromJson(json['OwnerType'],'OwnerType',context!); CreatorId = json['CreatorId']; Page = JsonConverters.fromJson(json['Page'],'WalletPage',context!); Theme = json['Theme']; AllowDeleteProfile = json['AllowDeleteProfile']; AllowDisableProfile = json['AllowDisableProfile']; return this; } Map toJson() => super.toJson()..addAll({ 'OwnerId': OwnerId, 'OwnerType': JsonConverters.toJson(OwnerType,'OwnerType',context!), 'CreatorId': CreatorId, 'Page': JsonConverters.toJson(Page,'WalletPage',context!), 'Theme': Theme, 'AllowDeleteProfile': AllowDeleteProfile, 'AllowDisableProfile': AllowDisableProfile }); getTypeName() => "WalletTokenCreateRequestDto"; TypeContext? context = _ctx; } class ApiResponseBase implements IConvertible { bool? Success; String? Message; ApiResponseBase({this.Success,this.Message}); ApiResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "ApiResponseBase"; TypeContext? context = _ctx; } class WalletTokenCreateResponseDto extends ApiResponseBase implements IConvertible { String? WalletToken; String? WalletOrigin; String? WalletUrl; WalletTokenCreateResponseDto({this.WalletToken,this.WalletOrigin,this.WalletUrl}); WalletTokenCreateResponseDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); WalletToken = json['WalletToken']; WalletOrigin = json['WalletOrigin']; WalletUrl = json['WalletUrl']; return this; } Map toJson() => super.toJson()..addAll({ 'WalletToken': WalletToken, 'WalletOrigin': WalletOrigin, 'WalletUrl': WalletUrl }); getTypeName() => "WalletTokenCreateResponseDto"; TypeContext? context = _ctx; } class WalletTokenCreateResponse extends WalletTokenCreateResponseDto implements IConvertible { bool? Success; String? Message; String? WalletToken; String? WalletOrigin; String? WalletUrl; WalletTokenCreateResponse({this.Success,this.Message,this.WalletToken,this.WalletOrigin,this.WalletUrl}); WalletTokenCreateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Success = json['Success']; Message = json['Message']; WalletToken = json['WalletToken']; WalletOrigin = json['WalletOrigin']; WalletUrl = json['WalletUrl']; return this; } Map toJson() => super.toJson()..addAll({ 'Success': Success, 'Message': Message, 'WalletToken': WalletToken, 'WalletOrigin': WalletOrigin, 'WalletUrl': WalletUrl }); getTypeName() => "WalletTokenCreateResponse"; TypeContext? context = _ctx; } // @Route("/sales/wallet/wallettokencreate", "GET") class WalletTokenCreateEndpoint extends WalletTokenCreateRequestDto 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; /** * ID # of the owner to create the URL for */ // @ApiMember(DataType="integer", Description="ID # of the owner to create the URL for", IsRequired=true, Name="OwnerId", ParameterType="query") int? OwnerId; /** * Type of owner to create the URL for */ // @ApiMember(Description="Type of owner to create the URL for", IsRequired=true, Name="OwnerType", ParameterType="query") OwnerType? OwnerType; /** * Person creating the profile. Can be same as OwnerId. */ // @ApiMember(Description="Person creating the profile. Can be same as OwnerId.", IsRequired=true, Name="CreatorId", ParameterType="query") int? CreatorId; /** * Page to display when calling the Payment Profile iFrame */ // @ApiMember(Description="Page to display when calling the Payment Profile iFrame", IsRequired=true, Name="Page", ParameterType="query") WalletPage? Page; /** * CSS Theme */ // @ApiMember(Description="CSS Theme", ParameterType="query") String? Theme; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; /** * Allows for a payment profile to be deleted */ // @ApiMember(Description="Allows for a payment profile to be deleted", Name="AllowDeleteProfile", ParameterType="query") bool? AllowDeleteProfile; /** * Allows for a payment profile to be disabled */ // @ApiMember(Description="Allows for a payment profile to be disabled", Name="AllowDisableProfile", ParameterType="query") bool? AllowDisableProfile; WalletTokenCreateEndpoint({this.ApiKey,this.OwnerId,this.OwnerType,this.CreatorId,this.Page,this.Theme,this.RestrictedId,this.RestrictedResourceType,this.AllowDeleteProfile,this.AllowDisableProfile}); WalletTokenCreateEndpoint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; OwnerId = json['OwnerId']; OwnerType = JsonConverters.fromJson(json['OwnerType'],'OwnerType',context!); CreatorId = json['CreatorId']; Page = JsonConverters.fromJson(json['Page'],'WalletPage',context!); Theme = json['Theme']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); AllowDeleteProfile = json['AllowDeleteProfile']; AllowDisableProfile = json['AllowDisableProfile']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'OwnerId': OwnerId, 'OwnerType': JsonConverters.toJson(OwnerType,'OwnerType',context!), 'CreatorId': CreatorId, 'Page': JsonConverters.toJson(Page,'WalletPage',context!), 'Theme': Theme, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!), 'AllowDeleteProfile': AllowDeleteProfile, 'AllowDisableProfile': AllowDisableProfile }); createResponse() => WalletTokenCreateResponse(); getResponseTypeName() => "WalletTokenCreateResponse"; getTypeName() => "WalletTokenCreateEndpoint"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'OwnerType': TypeInfo(TypeOf.Enum, enumValues:OwnerType.values), 'WalletPage': TypeInfo(TypeOf.Enum, enumValues:WalletPage.values), 'WalletTokenCreateRequestDto': TypeInfo(TypeOf.Class, create:() => WalletTokenCreateRequestDto()), 'ApiResponseBase': TypeInfo(TypeOf.Class, create:() => ApiResponseBase()), 'WalletTokenCreateResponseDto': TypeInfo(TypeOf.Class, create:() => WalletTokenCreateResponseDto()), 'WalletTokenCreateResponse': TypeInfo(TypeOf.Class, create:() => WalletTokenCreateResponse()), 'WalletTokenCreateEndpoint': TypeInfo(TypeOf.Class, create:() => WalletTokenCreateEndpoint()), });