/* Options: Date: 2025-01-18 07:52:07 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: UpdateStripeWebhookEvents.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class StripeWebhookResponse implements IConvertible { String? Id; List? Events; String? Url; StripeWebhookResponse({this.Id,this.Events,this.Url}); StripeWebhookResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Events = JsonConverters.fromJson(json['Events'],'List',context!); Url = json['Url']; return this; } Map toJson() => { 'Id': Id, 'Events': JsonConverters.toJson(Events,'List',context!), 'Url': Url }; getTypeName() => "StripeWebhookResponse"; TypeContext? context = _ctx; } class StripeWebhooksResponse implements IConvertible { List? StripeWebhooks; StripeWebhooksResponse({this.StripeWebhooks}); StripeWebhooksResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StripeWebhooks = JsonConverters.fromJson(json['StripeWebhooks'],'List',context!); return this; } Map toJson() => { 'StripeWebhooks': JsonConverters.toJson(StripeWebhooks,'List',context!) }; getTypeName() => "StripeWebhooksResponse"; TypeContext? context = _ctx; } // @Route("/payment/stripe/v1/webhookevent", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class UpdateStripeWebhookEvents implements IReturn, ICompany, IConvertible, IPut { /** * 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; /** * Events (webhooks) that are accepted by stripe. */ // @ApiMember(Description="Events (webhooks) that are accepted by stripe.") List? Events; /** * Webhook Id to update events */ // @ApiMember(Description="Webhook Id to update events") String? WebhookId; UpdateStripeWebhookEvents({this.CompanyId,this.Events,this.WebhookId}); UpdateStripeWebhookEvents.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Events = JsonConverters.fromJson(json['Events'],'List',context!); WebhookId = json['WebhookId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Events': JsonConverters.toJson(Events,'List',context!), 'WebhookId': WebhookId }; createResponse() => StripeWebhooksResponse(); getResponseTypeName() => "StripeWebhooksResponse"; getTypeName() => "UpdateStripeWebhookEvents"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'StripeWebhookResponse': TypeInfo(TypeOf.Class, create:() => StripeWebhookResponse()), 'StripeWebhooksResponse': TypeInfo(TypeOf.Class, create:() => StripeWebhooksResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UpdateStripeWebhookEvents': TypeInfo(TypeOf.Class, create:() => UpdateStripeWebhookEvents()), });