/* Options: Date: 2024-11-21 13:16: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: DeleteInactiveCustomers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } // @Route("/gdpr/customers/inactive", "DELETE") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class DeleteInactiveCustomers implements ICompany, IConvertible, IDelete { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * Inactive customers since the date. Inactive means they haven't done any bookings since that date. */ // @ApiMember(Description="Inactive customers since the date. Inactive means they haven't done any bookings since that date.", IsRequired=true) DateTime? InactiveSince; DeleteInactiveCustomers({this.CompanyId,this.InactiveSince}); DeleteInactiveCustomers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; InactiveSince = JsonConverters.fromJson(json['InactiveSince'],'DateTime',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'InactiveSince': JsonConverters.toJson(InactiveSince,'DateTime',context!) }; getTypeName() => "DeleteInactiveCustomers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'DeleteInactiveCustomers': TypeInfo(TypeOf.Class, create:() => DeleteInactiveCustomers()), });