/* Options: Date: 2025-11-23 04:34:06 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestWebhookEndpoint.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class TestWebhookEndpointResponse implements IConvertible { String? MessageId; TestWebhookEndpointResponse({this.MessageId}); TestWebhookEndpointResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MessageId = json['MessageId']; return this; } Map toJson() => { 'MessageId': MessageId }; getTypeName() => "TestWebhookEndpointResponse"; TypeContext? context = _ctx; } // @Route("/webhook/endpoints/{Id}/test", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="Invalid request", StatusCode=400) // @ValidateRequest(Validator="IsAuthenticated") class TestWebhookEndpoint implements IReturn, ICompany, IConvertible, IPost { /** * 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.", IsRequired=true, ParameterType="query") String? CompanyId; /** * The ID of the webhook endpoint to test. */ // @ApiMember(Description="The ID of the webhook endpoint to test.", IsRequired=true, ParameterType="path") String? Id; TestWebhookEndpoint({this.CompanyId,this.Id}); TestWebhookEndpoint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id }; createResponse() => TestWebhookEndpointResponse(); getResponseTypeName() => "TestWebhookEndpointResponse"; getTypeName() => "TestWebhookEndpoint"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'TestWebhookEndpointResponse': TypeInfo(TypeOf.Class, create:() => TestWebhookEndpointResponse()), 'TestWebhookEndpoint': TypeInfo(TypeOf.Class, create:() => TestWebhookEndpoint()), });