/* Options: Date: 2024-11-07 07:42:54 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: StripeCheckoutIpnCallBackRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class IpnCallBackResponse implements IConvertible { String? Message; bool? Success; IpnCallBackResponse({this.Message,this.Success}); IpnCallBackResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Message = json['Message']; Success = json['Success']; return this; } Map toJson() => { 'Message': Message, 'Success': Success }; getTypeName() => "IpnCallBackResponse"; TypeContext? context = _ctx; } // @Route("/payment/stripe/v1/webhook", "POST") class StripeCheckoutIpnCallBackRequest implements IReturn, IConvertible, IPost { String? EventType; String? SessionId; StripeCheckoutIpnCallBackRequest({this.EventType,this.SessionId}); StripeCheckoutIpnCallBackRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EventType = json['EventType']; SessionId = json['SessionId']; return this; } Map toJson() => { 'EventType': EventType, 'SessionId': SessionId }; createResponse() => IpnCallBackResponse(); getResponseTypeName() => "IpnCallBackResponse"; getTypeName() => "StripeCheckoutIpnCallBackRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'IpnCallBackResponse': TypeInfo(TypeOf.Class, create:() => IpnCallBackResponse()), 'StripeCheckoutIpnCallBackRequest': TypeInfo(TypeOf.Class, create:() => StripeCheckoutIpnCallBackRequest()), });