/* Options: Date: 2024-11-23 09:03:29 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: UpdateServicePricesMapping.* //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: StripeArticle = 1, EAccountingArticle = 2 */ // @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2") String? ReferenceType; /** * The external reference; Values for EAccountingArticle, StripeArticle */ // @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle") 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("/services/prices/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class UpdateServicePricesMapping implements IReturn, ICompany, IConvertible, IPut { /** * Company to show services for */ // @ApiMember(Description="Company to show services for") String? CompanyId; List? ServicePriceMappings; UpdateServicePricesMapping({this.CompanyId,this.ServicePriceMappings}); UpdateServicePricesMapping.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ServicePriceMappings = JsonConverters.fromJson(json['ServicePriceMappings'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'ServicePriceMappings': JsonConverters.toJson(ServicePriceMappings,'List',context!) }; createResponse() => ServicePriceMappingResponse(); getResponseTypeName() => "ServicePriceMappingResponse"; getTypeName() => "UpdateServicePricesMapping"; 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()), 'UpdateServicePricesMapping': TypeInfo(TypeOf.Class, create:() => UpdateServicePricesMapping()), 'List': TypeInfo(TypeOf.Class, create:() => []), });