/* Options: Date: 2025-12-06 07:02:53 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddOrUpdateBillingEntityRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasBusinessId { int? businessId; } class BillingEntity implements IConvertible { String? name; String? organizationNumber; String? postalAddress; String? postalCode; String? city; String? countryCode; BillingEntity({this.name,this.organizationNumber,this.postalAddress,this.postalCode,this.city,this.countryCode}); BillingEntity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; organizationNumber = json['organizationNumber']; postalAddress = json['postalAddress']; postalCode = json['postalCode']; city = json['city']; countryCode = json['countryCode']; return this; } Map toJson() => { 'name': name, 'organizationNumber': organizationNumber, 'postalAddress': postalAddress, 'postalCode': postalCode, 'city': city, 'countryCode': countryCode }; getTypeName() => "BillingEntity"; TypeContext? context = _ctx; } class AddOrUpdateBillingEntityResponse implements IConvertible { BillingEntity? entity; AddOrUpdateBillingEntityResponse({this.entity}); AddOrUpdateBillingEntityResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { entity = JsonConverters.fromJson(json['entity'],'BillingEntity',context!); return this; } Map toJson() => { 'entity': JsonConverters.toJson(entity,'BillingEntity',context!) }; getTypeName() => "AddOrUpdateBillingEntityResponse"; TypeContext? context = _ctx; } // @Route("/business/add_or_update_billing_company", "PUT") class AddOrUpdateBillingEntityRequest implements IReturn, IPut, IHasBusinessId, IConvertible { int? businessId; BillingEntity? entity; AddOrUpdateBillingEntityRequest({this.businessId,this.entity}); AddOrUpdateBillingEntityRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessId = json['businessId']; entity = JsonConverters.fromJson(json['entity'],'BillingEntity',context!); return this; } Map toJson() => { 'businessId': businessId, 'entity': JsonConverters.toJson(entity,'BillingEntity',context!) }; createResponse() => AddOrUpdateBillingEntityResponse(); getResponseTypeName() => "AddOrUpdateBillingEntityResponse"; getTypeName() => "AddOrUpdateBillingEntityRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasBusinessId': TypeInfo(TypeOf.Interface), 'BillingEntity': TypeInfo(TypeOf.Class, create:() => BillingEntity()), 'AddOrUpdateBillingEntityResponse': TypeInfo(TypeOf.Class, create:() => AddOrUpdateBillingEntityResponse()), 'AddOrUpdateBillingEntityRequest': TypeInfo(TypeOf.Class, create:() => AddOrUpdateBillingEntityRequest()), });