/* Options: Date: 2024-11-21 11:51:06 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: EAccountingTermsOfPaymentQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/eaccounting/termsofpayments", "GET") public class EAccountingTermsOfPaymentQuery : IReturn, ICompany, Codable { public typealias Return = [EAccountingTermsOfPaymentQueryResponse] public var termsOfPaymentTypeId:TermsOfPaymentTypes? /** * 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? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public enum TermsOfPaymentTypes : String, Codable { case Normal case CurrentMonth case Cash case CardPayment case DigitalWallet case PaymentServiceProvider } public class EAccountingTermsOfPaymentQueryResponse : Codable { public var id:String public var name:String public var nameEnglish:String public var numberOfDays:Int public var termsOfPaymentTypeId:Int public var termsOfPaymentTypeText:String public var availableForSales:Bool public var availableForPurchase:Bool required public init(){} }