/* Options: Date: 2025-12-06 07:04:21 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: AddOrUpdateBillingRequest.* //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 BillingContact implements IConvertible { String? person; String? phone; String? email; BillingContact({this.person,this.phone,this.email}); BillingContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { person = json['person']; phone = json['phone']; email = json['email']; return this; } Map toJson() => { 'person': person, 'phone': phone, 'email': email }; getTypeName() => "BillingContact"; TypeContext? context = _ctx; } class AddOrUpdateBillingResponse implements IConvertible { BillingEntity? entity; BillingContact? contactPerson; String? emailForBillingNotifications; String? customReference; AddOrUpdateBillingResponse({this.entity,this.contactPerson,this.emailForBillingNotifications,this.customReference}); AddOrUpdateBillingResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { entity = JsonConverters.fromJson(json['entity'],'BillingEntity',context!); contactPerson = JsonConverters.fromJson(json['contactPerson'],'BillingContact',context!); emailForBillingNotifications = json['emailForBillingNotifications']; customReference = json['customReference']; return this; } Map toJson() => { 'entity': JsonConverters.toJson(entity,'BillingEntity',context!), 'contactPerson': JsonConverters.toJson(contactPerson,'BillingContact',context!), 'emailForBillingNotifications': emailForBillingNotifications, 'customReference': customReference }; getTypeName() => "AddOrUpdateBillingResponse"; TypeContext? context = _ctx; } // @Route("/business/add_or_update_billing", "PUT") class AddOrUpdateBillingRequest implements IReturn, IPut, IHasBusinessId, IConvertible { int? businessId; String? emailForBillingNotification; String? customReference; AddOrUpdateBillingRequest({this.businessId,this.emailForBillingNotification,this.customReference}); AddOrUpdateBillingRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { businessId = json['businessId']; emailForBillingNotification = json['emailForBillingNotification']; customReference = json['customReference']; return this; } Map toJson() => { 'businessId': businessId, 'emailForBillingNotification': emailForBillingNotification, 'customReference': customReference }; createResponse() => AddOrUpdateBillingResponse(); getResponseTypeName() => "AddOrUpdateBillingResponse"; getTypeName() => "AddOrUpdateBillingRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasBusinessId': TypeInfo(TypeOf.Interface), 'BillingEntity': TypeInfo(TypeOf.Class, create:() => BillingEntity()), 'BillingContact': TypeInfo(TypeOf.Class, create:() => BillingContact()), 'AddOrUpdateBillingResponse': TypeInfo(TypeOf.Class, create:() => AddOrUpdateBillingResponse()), 'AddOrUpdateBillingRequest': TypeInfo(TypeOf.Class, create:() => AddOrUpdateBillingRequest()), });