/* Options: Date: 2024-06-26 08:59:03 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: UpdateServicePricesMapping.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/services/prices/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") public class UpdateServicePricesMapping : IReturn, ICompany, Codable { public typealias Return = ServicePriceMappingResponse /** * Company to show services for */ // @ApiMember(Description="Company to show services for") public var companyId:String? public var servicePriceMappings:[ServicePriceMapping] = [] 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(){} }