/* Options: Date: 2024-12-03 18:17:02 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: PaysonCheckoutv2GetCheckout.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum Payson2CheckoutStatus { None, Created, FormsFilled, ReadyToPay, ProcessingPayment, ReadyToShip, Shipped, PaidToAccount, Canceled, Credited, Expired, Denied, } class PaysonCheckoutV2Response implements IConvertible { /** * The checkout id */ // @ApiMember(Description="The checkout id") String? Id; /** * The code snippet to for checkout module */ // @ApiMember(Description="The code snippet to for checkout module") String? Snippet; /** * The checkout status */ // @ApiMember(Description="The checkout status") Payson2CheckoutStatus? Status; PaysonCheckoutV2Response({this.Id,this.Snippet,this.Status}); PaysonCheckoutV2Response.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Snippet = json['Snippet']; Status = JsonConverters.fromJson(json['Status'],'Payson2CheckoutStatus',context!); return this; } Map toJson() => { 'Id': Id, 'Snippet': Snippet, 'Status': JsonConverters.toJson(Status,'Payson2CheckoutStatus',context!) }; getTypeName() => "PaysonCheckoutV2Response"; TypeContext? context = _ctx; } // @Route("/payment/payson/v2/checkout/{Id}", "GET") class PaysonCheckoutv2GetCheckout implements IReturn, ICompany, IConvertible, IGet { /** * 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 checkout id. */ // @ApiMember(Description="The checkout id.", IsRequired=true, ParameterType="path") String? Id; PaysonCheckoutv2GetCheckout({this.CompanyId,this.Id}); PaysonCheckoutv2GetCheckout.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id }; createResponse() => PaysonCheckoutV2Response(); getResponseTypeName() => "PaysonCheckoutV2Response"; getTypeName() => "PaysonCheckoutv2GetCheckout"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'Payson2CheckoutStatus': TypeInfo(TypeOf.Enum, enumValues:Payson2CheckoutStatus.values), 'PaysonCheckoutV2Response': TypeInfo(TypeOf.Class, create:() => PaysonCheckoutV2Response()), 'PaysonCheckoutv2GetCheckout': TypeInfo(TypeOf.Class, create:() => PaysonCheckoutv2GetCheckout()), });