/* Options: Date: 2024-12-03 18:02:22 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendCheckoutPaymentRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export enum Payson2CheckoutStatus { None = 'None', Created = 'Created', FormsFilled = 'FormsFilled', ReadyToPay = 'ReadyToPay', ProcessingPayment = 'ProcessingPayment', ReadyToShip = 'ReadyToShip', Shipped = 'Shipped', PaidToAccount = 'PaidToAccount', Canceled = 'Canceled', Credited = 'Credited', Expired = 'Expired', Denied = 'Denied', } export class PaysonCheckoutV2Response { /** @description The checkout id */ // @ApiMember(Description="The checkout id") public Id: string; /** @description The code snippet to for checkout module */ // @ApiMember(Description="The code snippet to for checkout module") public Snippet: string; /** @description The checkout status */ // @ApiMember(Description="The checkout status") public Status: Payson2CheckoutStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/payment/payson/v2/checkout/{Id}/sendpaymentrequest", "PUT") // @ValidateRequest(Validator="IsAuthenticated") export class SendCheckoutPaymentRequest implements IReturn, ICompany { /** @description 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.") public CompanyId?: string; /** @description 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") public Id: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendCheckoutPaymentRequest'; } public getMethod() { return 'PUT'; } public createResponse() { return new PaysonCheckoutV2Response(); } }