/* Options: Date: 2025-09-14 09:43:56 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddPaymentSettings.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/payment/settings", Verbs="POST") @ValidateRequest(Validator="IsAuthenticated") open class AddPaymentSettings : 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.") override var CompanyId:UUID? = null /** * The payson payment is enabled */ @ApiMember(Description="The payson payment is enabled") open var Enabled:Boolean? = null /** * If there should be any fee added when customer selected invoice payment method */ @ApiMember(Description="If there should be any fee added when customer selected invoice payment method") open var InvoiceFee:Int? = null /** * If allow credit card payment */ @ApiMember(Description="If allow credit card payment") open var AllowCreditCardPayment:Boolean? = null /** * If allow invoice payment */ @ApiMember(Description="If allow invoice payment") open var AllowInvoicePayment:Boolean? = null /** * If allow bank payment */ @ApiMember(Description="If allow bank payment") open var AllowBankPayment:Boolean? = null /** * Automatically refund customer on canceled booking */ @ApiMember(Description="Automatically refund customer on canceled booking") open var RefundOnCancelBooking:Boolean? = null /** * The default option when admin creates a new booking */ @ApiMember(Description="The default option when admin creates a new booking") open var DefaultAdminPaymentOptionsId:Int? = null /** * What payment provider to use */ @ApiMember(Description="What payment provider to use") open var PaymentProviderId:Int? = null companion object { private val responseType = PaymentSettingsQueryResponse::class.java } override fun getResponseType(): Any? = AddPaymentSettings.responseType } open class PaymentSettingsQueryResponse { /** * The company id */ @ApiMember(Description="The company id") open var CompanyId:UUID? = null /** * The payment is enabled */ @ApiMember(Description="The payment is enabled") open var Enabled:Boolean? = null /** * If there should be any fee added when customer selected invoice payment method */ @ApiMember(Description="If there should be any fee added when customer selected invoice payment method") open var InvoiceFee:Int? = null /** * If allow credit card payment */ @ApiMember(Description="If allow credit card payment") open var AllowCreditCardPayment:Boolean? = null /** * If allow invoice payment */ @ApiMember(Description="If allow invoice payment") open var AllowInvoicePayment:Boolean? = null /** * If allow bank payment */ @ApiMember(Description="If allow bank payment") open var AllowBankPayment:Boolean? = null /** * Automatically refund customer on canceled booking */ @ApiMember(Description="Automatically refund customer on canceled booking") open var RefundOnCancelBooking:Boolean? = null /** * The default option when admin creates a new booking */ @ApiMember(Description="The default option when admin creates a new booking") open var DefaultPaymentOptionId:Int? = null /** * What payment provider to use */ @ApiMember(Description="What payment provider to use") open var PaymentProviderId:Int? = null /** * If you want to include the admin payment options to select from */ @ApiMember(DataType="boolean", Description="If you want to include the admin payment options to select from", ParameterType="query") open var AdminPaymentOptions:ArrayList? = null /** * If you want to include the payment provider options to select from */ @ApiMember(DataType="boolean", Description="If you want to include the payment provider options to select from", ParameterType="query") open var PaymentProviderOptions:ArrayList? = null /** * SendPaymentRequestDirectly */ @ApiMember(Description="SendPaymentRequestDirectly") open var SendPaymentRequestDirectly:Boolean? = null } interface ICompany { var CompanyId:UUID? } open class AdminPaymentOptionsResponse { /** * The payment options id */ @ApiMember(Description="The payment options id") open var Id:Int? = null /** * The payment options name */ @ApiMember(Description="The payment options name") open var Name:String? = null /** * The payment options description */ @ApiMember(Description="The payment options description") open var Description:String? = null } open class PaymentProviderOptionsResponse { /** * The payment provider id */ @ApiMember(Description="The payment provider id") open var Id:Int? = null /** * The payment provider name */ @ApiMember(Description="The payment provider name") open var Name:String? = null /** * The payment provider description */ @ApiMember(Description="The payment provider description") open var Description:String? = null }