/* Options: Date: 2024-07-03 14:08:26 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: AddPaymentSettings.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/payment/settings", "POST") // @ValidateRequest(Validator="IsAuthenticated") public class AddPaymentSettings : IReturn, ICompany, Codable { public typealias Return = PaymentSettingsQueryResponse /** * 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 var companyId:String? /** * The payson payment is enabled */ // @ApiMember(Description="The payson payment is enabled") public var enabled:Bool /** * 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") public var invoiceFee:Int /** * If allow credit card payment */ // @ApiMember(Description="If allow credit card payment") public var allowCreditCardPayment:Bool /** * If allow invoice payment */ // @ApiMember(Description="If allow invoice payment") public var allowInvoicePayment:Bool /** * If allow bank payment */ // @ApiMember(Description="If allow bank payment") public var allowBankPayment:Bool /** * Automatically refund customer on canceled booking */ // @ApiMember(Description="Automatically refund customer on canceled booking") public var refundOnCancelBooking:Bool /** * The default option when admin creates a new booking */ // @ApiMember(Description="The default option when admin creates a new booking") public var defaultAdminPaymentOptionsId:Int? /** * What payment provider to use */ // @ApiMember(Description="What payment provider to use") public var paymentProviderId:Int required public init(){} } public class PaymentSettingsQueryResponse : Codable { /** * The company id */ // @ApiMember(Description="The company id") public var companyId:String /** * The payment is enabled */ // @ApiMember(Description="The payment is enabled") public var enabled:Bool /** * 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") public var invoiceFee:Int /** * If allow credit card payment */ // @ApiMember(Description="If allow credit card payment") public var allowCreditCardPayment:Bool /** * If allow invoice payment */ // @ApiMember(Description="If allow invoice payment") public var allowInvoicePayment:Bool /** * If allow bank payment */ // @ApiMember(Description="If allow bank payment") public var allowBankPayment:Bool /** * Automatically refund customer on canceled booking */ // @ApiMember(Description="Automatically refund customer on canceled booking") public var refundOnCancelBooking:Bool /** * The default option when admin creates a new booking */ // @ApiMember(Description="The default option when admin creates a new booking") public var defaultPaymentOptionId:Int? /** * What payment provider to use */ // @ApiMember(Description="What payment provider to use") public var paymentProviderId:Int /** * 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") public var adminPaymentOptions:[AdminPaymentOptionsResponse] = [] /** * 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") public var paymentProviderOptions:[PaymentProviderOptionsResponse] = [] /** * SendPaymentRequestDirectly */ // @ApiMember(Description="SendPaymentRequestDirectly") public var sendPaymentRequestDirectly:Bool required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class AdminPaymentOptionsResponse : Codable { /** * The payment options id */ // @ApiMember(Description="The payment options id") public var id:Int /** * The payment options name */ // @ApiMember(Description="The payment options name") public var name:String /** * The payment options description */ // @ApiMember(Description="The payment options description") public var Description:String required public init(){} } public class PaymentProviderOptionsResponse : Codable { /** * The payment provider id */ // @ApiMember(Description="The payment provider id") public var id:Int /** * The payment provider name */ // @ApiMember(Description="The payment provider name") public var name:String /** * The payment provider description */ // @ApiMember(Description="The payment provider description") public var Description:String required public init(){} }