/* Options: Date: 2025-09-14 01:05:51 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: EAccountingTermsOfPaymentQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //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(){} }