/* Options: Date: 2024-06-17 06:36:40 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EAccountingUpdatePricesMapping.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class ServicePriceMapping implements IConvertible { /** * The id */ // @ApiMember(Description="The id") String? Id; /** * The price id */ // @ApiMember(Description="The price id") int? PriceId; /** * The Reference Type */ // @ApiMember(Description="The Reference Type") String? ReferenceType; /** * The external reference; Values for e-accounting; EAccountingCustomerId, EAccountingArticle, EAccountingInvoice, EAccountingDraftInvoice */ // @ApiMember(Description="The external reference; Values for e-accounting; EAccountingCustomerId, EAccountingArticle, EAccountingInvoice, EAccountingDraftInvoice") String? ExternalReference; ServicePriceMapping({this.Id,this.PriceId,this.ReferenceType,this.ExternalReference}); ServicePriceMapping.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; PriceId = json['PriceId']; ReferenceType = json['ReferenceType']; ExternalReference = json['ExternalReference']; return this; } Map toJson() => { 'Id': Id, 'PriceId': PriceId, 'ReferenceType': ReferenceType, 'ExternalReference': ExternalReference }; getTypeName() => "ServicePriceMapping"; TypeContext? context = _ctx; } class ServicePriceMappingResponse implements IConvertible { /** * The company id */ // @ApiMember(Description="The company id") String? CompanyId; String? Id; /** * The price id */ // @ApiMember(Description="The price id") int? PriceId; /** * The external reference */ // @ApiMember(Description="The external reference") String? ExternalReference; /** * The Reference Type */ // @ApiMember(Description="The Reference Type") String? ReferenceType; ServicePriceMappingResponse({this.CompanyId,this.Id,this.PriceId,this.ExternalReference,this.ReferenceType}); ServicePriceMappingResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; PriceId = json['PriceId']; ExternalReference = json['ExternalReference']; ReferenceType = json['ReferenceType']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'PriceId': PriceId, 'ExternalReference': ExternalReference, 'ReferenceType': ReferenceType }; getTypeName() => "ServicePriceMappingResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/article/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class EAccountingUpdatePricesMapping implements IReturn, ICompany, IConvertible, IPut { List? ServicePriceMappings; /** * Company to show services for */ // @ApiMember(Description="Company to show services for") String? CompanyId; EAccountingUpdatePricesMapping({this.ServicePriceMappings,this.CompanyId}); EAccountingUpdatePricesMapping.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ServicePriceMappings = JsonConverters.fromJson(json['ServicePriceMappings'],'List',context!); CompanyId = json['CompanyId']; return this; } Map toJson() => { 'ServicePriceMappings': JsonConverters.toJson(ServicePriceMappings,'List',context!), 'CompanyId': CompanyId }; createResponse() => ServicePriceMappingResponse(); getResponseTypeName() => "ServicePriceMappingResponse"; getTypeName() => "EAccountingUpdatePricesMapping"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ServicePriceMapping': TypeInfo(TypeOf.Class, create:() => ServicePriceMapping()), 'ServicePriceMappingResponse': TypeInfo(TypeOf.Class, create:() => ServicePriceMappingResponse()), 'EAccountingUpdatePricesMapping': TypeInfo(TypeOf.Class, create:() => EAccountingUpdatePricesMapping()), 'List': TypeInfo(TypeOf.Class, create:() => []), });