/* Options: Date: 2024-07-03 13:17:36 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: PaysonCheckout1IPNCallBack.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } 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/payson/v1/ipncallback", "POST") class PaysonCheckout1IPNCallBack 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; /** * The booking id. */ // @ApiMember(Description="The booking id.") int? BookingId; /** * The payment token. */ // @ApiMember(Description="The payment token.") String? Token; /** * The payment content. */ // @ApiMember(Description="The payment content.") String? Content; PaysonCheckout1IPNCallBack({this.CompanyId,this.BookingId,this.Token,this.Content}); PaysonCheckout1IPNCallBack.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; BookingId = json['BookingId']; Token = json['Token']; Content = json['Content']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'BookingId': BookingId, 'Token': Token, 'Content': Content }; createResponse() => IpnCallBackResponse(); getResponseTypeName() => "IpnCallBackResponse"; getTypeName() => "PaysonCheckout1IPNCallBack"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'IpnCallBackResponse': TypeInfo(TypeOf.Class, create:() => IpnCallBackResponse()), 'PaysonCheckout1IPNCallBack': TypeInfo(TypeOf.Class, create:() => PaysonCheckout1IPNCallBack()), });