/* Options: Date: 2025-01-18 07:55:16 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: CreateStripeWebhook.* //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; } // @Route("/payment/stripe/v1/webhook", "POST") class CreateStripeWebhook 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.") String? CompanyId; /** * Events (webhooks) that are accepted by stripe. */ // @ApiMember(Description="Events (webhooks) that are accepted by stripe.") List? Events; /** * Url that stripe should send hook to. */ // @ApiMember(Description="Url that stripe should send hook to.") String? Url; CreateStripeWebhook({this.CompanyId,this.Events,this.Url}); CreateStripeWebhook.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Events = JsonConverters.fromJson(json['Events'],'List',context!); Url = json['Url']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Events': JsonConverters.toJson(Events,'List',context!), 'Url': Url }; createResponse() => StripeWebhookResponse(); getResponseTypeName() => "StripeWebhookResponse"; getTypeName() => "CreateStripeWebhook"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'StripeWebhookResponse': TypeInfo(TypeOf.Class, create:() => StripeWebhookResponse()), 'CreateStripeWebhook': TypeInfo(TypeOf.Class, create:() => CreateStripeWebhook()), });