/* Options: Date: 2024-11-21 12:17:34 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: PaysonCheckout2IPNCallBack.* //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/v2/ipncallback", "POST") class PaysonCheckout2IPNCallBack 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; /** * The checkout id. */ // @ApiMember(Description="The checkout id.") String? checkout; /** * Article type (Could be Service, rebate code types, etc.. */ // @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true) int? ArticleTypeId; PaysonCheckout2IPNCallBack({this.CompanyId,this.BookingId,this.checkout,this.ArticleTypeId}); PaysonCheckout2IPNCallBack.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; BookingId = json['BookingId']; checkout = json['checkout']; ArticleTypeId = json['ArticleTypeId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'BookingId': BookingId, 'checkout': checkout, 'ArticleTypeId': ArticleTypeId }; createResponse() => IpnCallBackResponse(); getResponseTypeName() => "IpnCallBackResponse"; getTypeName() => "PaysonCheckout2IPNCallBack"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'IpnCallBackResponse': TypeInfo(TypeOf.Class, create:() => IpnCallBackResponse()), 'PaysonCheckout2IPNCallBack': TypeInfo(TypeOf.Class, create:() => PaysonCheckout2IPNCallBack()), });