/* Options: Date: 2026-11-08 11:43:59 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: IntegrationPartnerGetRq.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IApiRequest { } abstract class IApiResponse { } class OAuthAppRedirects implements IConvertible { String? Scope; String? RedirectTemplate; bool? AllowAnonymous; OAuthAppRedirects({this.Scope,this.RedirectTemplate,this.AllowAnonymous}); OAuthAppRedirects.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Scope = json['Scope']; RedirectTemplate = json['RedirectTemplate']; AllowAnonymous = json['AllowAnonymous']; return this; } Map toJson() => { 'Scope': Scope, 'RedirectTemplate': RedirectTemplate, 'AllowAnonymous': AllowAnonymous }; getTypeName() => "OAuthAppRedirects"; TypeContext? context = _ctx; } class IntegrationPartnerOAuthSettings implements IConvertible { int? NatId; int? ChapId; String? AuthorizeUrl; String? AuthorizeRedirectUri; String? TokenUrl; String? UserInfoUrl; String? ConsumerKey; String? ConsumerSecret; String? Username; String? Password; String? SecurityToken; List? AppRedirects; IntegrationPartnerOAuthSettings({this.NatId,this.ChapId,this.AuthorizeUrl,this.AuthorizeRedirectUri,this.TokenUrl,this.UserInfoUrl,this.ConsumerKey,this.ConsumerSecret,this.Username,this.Password,this.SecurityToken,this.AppRedirects}); IntegrationPartnerOAuthSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NatId = json['NatId']; ChapId = json['ChapId']; AuthorizeUrl = json['AuthorizeUrl']; AuthorizeRedirectUri = json['AuthorizeRedirectUri']; TokenUrl = json['TokenUrl']; UserInfoUrl = json['UserInfoUrl']; ConsumerKey = json['ConsumerKey']; ConsumerSecret = json['ConsumerSecret']; Username = json['Username']; Password = json['Password']; SecurityToken = json['SecurityToken']; AppRedirects = JsonConverters.fromJson(json['AppRedirects'],'List',context!); return this; } Map toJson() => { 'NatId': NatId, 'ChapId': ChapId, 'AuthorizeUrl': AuthorizeUrl, 'AuthorizeRedirectUri': AuthorizeRedirectUri, 'TokenUrl': TokenUrl, 'UserInfoUrl': UserInfoUrl, 'ConsumerKey': ConsumerKey, 'ConsumerSecret': ConsumerSecret, 'Username': Username, 'Password': Password, 'SecurityToken': SecurityToken, 'AppRedirects': JsonConverters.toJson(AppRedirects,'List',context!) }; getTypeName() => "IntegrationPartnerOAuthSettings"; TypeContext? context = _ctx; } class DestinationUriType { static const DestinationUriType None = const DestinationUriType._(0); static const DestinationUriType Absolute = const DestinationUriType._(1); static const DestinationUriType Relative = const DestinationUriType._(2); final int _value; const DestinationUriType._(this._value); int get value => _value; static List get values => const [None,Absolute,Relative]; } class IntegrationDestinationConfig implements IConvertible { String? Type; DestinationUriType? UriType; String? Uri; String? AuthenticationKey; IntegrationDestinationConfig({this.Type,this.UriType,this.Uri,this.AuthenticationKey}); IntegrationDestinationConfig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = json['Type']; UriType = JsonConverters.fromJson(json['UriType'],'DestinationUriType',context!); Uri = json['Uri']; AuthenticationKey = json['AuthenticationKey']; return this; } Map toJson() => { 'Type': Type, 'UriType': JsonConverters.toJson(UriType,'DestinationUriType',context!), 'Uri': Uri, 'AuthenticationKey': AuthenticationKey }; getTypeName() => "IntegrationDestinationConfig"; TypeContext? context = _ctx; } class IntegrationPartner implements IConvertible { int? IntegrationPartnerId; String? Name; String? Description; String? Uri; String? Username; String? Password; String? ApiKey; IntegrationPartnerOAuthSettings? OAuthSettings; List? DetinationConfigurations; String? Scope; IntegrationPartner({this.IntegrationPartnerId,this.Name,this.Description,this.Uri,this.Username,this.Password,this.ApiKey,this.OAuthSettings,this.DetinationConfigurations,this.Scope}); IntegrationPartner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IntegrationPartnerId = json['IntegrationPartnerId']; Name = json['Name']; Description = json['Description']; Uri = json['Uri']; Username = json['Username']; Password = json['Password']; ApiKey = json['ApiKey']; OAuthSettings = JsonConverters.fromJson(json['OAuthSettings'],'IntegrationPartnerOAuthSettings',context!); DetinationConfigurations = JsonConverters.fromJson(json['DetinationConfigurations'],'List',context!); Scope = json['Scope']; return this; } Map toJson() => { 'IntegrationPartnerId': IntegrationPartnerId, 'Name': Name, 'Description': Description, 'Uri': Uri, 'Username': Username, 'Password': Password, 'ApiKey': ApiKey, 'OAuthSettings': JsonConverters.toJson(OAuthSettings,'IntegrationPartnerOAuthSettings',context!), 'DetinationConfigurations': JsonConverters.toJson(DetinationConfigurations,'List',context!), 'Scope': Scope }; getTypeName() => "IntegrationPartner"; TypeContext? context = _ctx; } class IntegrationPartnerRs implements IApiResponse, IConvertible { IntegrationPartner? Partner; IntegrationPartnerRs({this.Partner}); IntegrationPartnerRs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Partner = JsonConverters.fromJson(json['Partner'],'IntegrationPartner',context!); return this; } Map toJson() => { 'Partner': JsonConverters.toJson(Partner,'IntegrationPartner',context!) }; getTypeName() => "IntegrationPartnerRs"; TypeContext? context = _ctx; } // @Route("/signup/api/integration/partner/{name}", "GET") class IntegrationPartnerGetRq implements IReturn, IApiRequest, IConvertible { String? Name; IntegrationPartnerGetRq({this.Name}); IntegrationPartnerGetRq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; return this; } Map toJson() => { 'Name': Name }; createResponse() => IntegrationPartnerRs(); getResponseTypeName() => "IntegrationPartnerRs"; getTypeName() => "IntegrationPartnerGetRq"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'IApiRequest': TypeInfo(TypeOf.Interface), 'IApiResponse': TypeInfo(TypeOf.Interface), 'OAuthAppRedirects': TypeInfo(TypeOf.Class, create:() => OAuthAppRedirects()), 'IntegrationPartnerOAuthSettings': TypeInfo(TypeOf.Class, create:() => IntegrationPartnerOAuthSettings()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DestinationUriType': TypeInfo(TypeOf.Enum, enumValues:DestinationUriType.values), 'IntegrationDestinationConfig': TypeInfo(TypeOf.Class, create:() => IntegrationDestinationConfig()), 'IntegrationPartner': TypeInfo(TypeOf.Class, create:() => IntegrationPartner()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'IntegrationPartnerRs': TypeInfo(TypeOf.Class, create:() => IntegrationPartnerRs()), 'IntegrationPartnerGetRq': TypeInfo(TypeOf.Class, create:() => IntegrationPartnerGetRq()), });