/* Options: Date: 2024-11-21 16:47:52 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteServicePricesMapping.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } 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/{Id}", "DELETE") // @ValidateRequest(Validator="IsAuthenticated") class DeleteServicePricesMapping implements IReturn, ICompany, IConvertible, IDelete { /** * Company to delete price for */ // @ApiMember(Description="Company to delete price for") String? CompanyId; /** * Id of the service */ // @ApiMember(Description="Id of the service", IsRequired=true, ParameterType="path") String? Id; DeleteServicePricesMapping({this.CompanyId,this.Id}); DeleteServicePricesMapping.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id }; createResponse() => ServicePriceMappingResponse(); getResponseTypeName() => "ServicePriceMappingResponse"; getTypeName() => "DeleteServicePricesMapping"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ServicePriceMappingResponse': TypeInfo(TypeOf.Class, create:() => ServicePriceMappingResponse()), 'DeleteServicePricesMapping': TypeInfo(TypeOf.Class, create:() => DeleteServicePricesMapping()), });