/* Options: Date: 2024-06-18 03:44:22 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendCheckoutPaymentRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/payment/payson/v2/checkout/{Id}/sendpaymentrequest", Verbs="PUT") @ValidateRequest(Validator="IsAuthenticated") open class SendCheckoutPaymentRequest : IReturn, ICompany { /** * 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.") var CompanyId:UUID? = null /** * 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") var Id:UUID? = null companion object { private val responseType = PaysonCheckoutV2Response::class.java } override fun getResponseType(): Any? = SendCheckoutPaymentRequest.responseType } open class PaysonCheckoutV2Response { /** * The checkout id */ @ApiMember(Description="The checkout id") var Id:UUID? = null /** * The code snippet to for checkout module */ @ApiMember(Description="The code snippet to for checkout module") var Snippet:String? = null /** * The checkout status */ @ApiMember(Description="The checkout status") var Status:Payson2CheckoutStatus? = null } open interface ICompany { var CompanyId:UUID? } enum class Payson2CheckoutStatus { None, Created, FormsFilled, ReadyToPay, ProcessingPayment, ReadyToShip, Shipped, PaidToAccount, Canceled, Credited, Expired, Denied, }