/* Options: Date: 2024-07-03 13:23:24 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: SendCheckoutPaymentRequest.* //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}/sendpaymentrequest", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class SendCheckoutPaymentRequest implements IReturn, ICompany, IConvertible, IPut { /** * 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. The checkout must have status ReadyToShip - 5 */ // @ApiMember(Description="The checkout id. The checkout must have status ReadyToShip - 5", IsRequired=true, ParameterType="path") String? Id; SendCheckoutPaymentRequest({this.CompanyId,this.Id}); SendCheckoutPaymentRequest.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() => "SendCheckoutPaymentRequest"; 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()), 'SendCheckoutPaymentRequest': TypeInfo(TypeOf.Class, create:() => SendCheckoutPaymentRequest()), });