/* Options: Date: 2024-11-21 11:45:40 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; /** * Internal reference id (Could be booking, could be Article..) */ // @ApiMember(Description="Internal reference id (Could be booking, could be Article..)") String? BookingId; /** * Internal reference id (Could be booking, could be Article..) */ // @ApiMember(Description="Internal reference id (Could be booking, could be Article..)") String? InternalReferenceId; /** * The payment token. */ // @ApiMember(Description="The payment token.") String? Token; /** * The payment content. */ // @ApiMember(Description="The payment content.") String? Content; /** * Article type (Could be Service, rebate code types, etc.. */ // @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true) int? ArticleTypeId; PaysonCheckout1IPNCallBack({this.CompanyId,this.BookingId,this.InternalReferenceId,this.Token,this.Content,this.ArticleTypeId}); PaysonCheckout1IPNCallBack.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; BookingId = json['BookingId']; InternalReferenceId = json['InternalReferenceId']; Token = json['Token']; Content = json['Content']; ArticleTypeId = json['ArticleTypeId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'BookingId': BookingId, 'InternalReferenceId': InternalReferenceId, 'Token': Token, 'Content': Content, 'ArticleTypeId': ArticleTypeId }; 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()), });