/* Options: Date: 2024-11-21 11:59:12 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: EAccountingUpdatePricesMapping.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/eaccounting/article/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") public class EAccountingUpdatePricesMapping : IReturn, ICompany, Codable { public typealias Return = ServicePriceMappingResponse public var servicePriceMappings:[ServicePriceMapping] = [] /** * Company to show services for */ // @ApiMember(Description="Company to show services for") public var companyId:String? required public init(){} } public class ServicePriceMappingResponse : Codable { /** * The company id */ // @ApiMember(Description="The company id") public var companyId:String public var id:String /** * The price id */ // @ApiMember(Description="The price id") public var priceId:Int /** * The external reference */ // @ApiMember(Description="The external reference") public var externalReference:String /** * The Reference Type */ // @ApiMember(Description="The Reference Type") public var referenceType:String required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class ServicePriceMapping : Codable { /** * The id */ // @ApiMember(Description="The id") public var id:String? /** * The price id */ // @ApiMember(Description="The price id") public var priceId:Int /** * The Reference Type */ // @ApiMember(Description="The Reference Type") public var referenceType:String /** * The external reference; Values for e-accounting; EAccountingCustomerId, EAccountingArticle, EAccountingInvoice, EAccountingDraftInvoice */ // @ApiMember(Description="The external reference; Values for e-accounting; EAccountingCustomerId, EAccountingArticle, EAccountingInvoice, EAccountingDraftInvoice") public var externalReference:String required public init(){} }