/* Options: Date: 2026-09-23 03:46:37 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UpdateArticleMappings.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/articles/mappings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") public class UpdateArticleMappings : IReturn, ICompany, Codable { public typealias Return = [ArticleMappingResponse] /** * Company to update article mappings for */ // @ApiMember(Description="Company to update article mappings for") public var companyId:String? /** * The article mappings to create or update */ // @ApiMember(Description="The article mappings to create or update", IsRequired=true) public var articleMappings:[ArticleMappingToHandle] = [] required public init(){} } public protocol ICompany { var companyId:String? { get set } } public class ArticleMappingToHandle : Codable { /** * The id of an existing mapping to update; leave empty to create a new one */ // @ApiMember(Description="The id of an existing mapping to update; leave empty to create a new one") public var id:String? /** * The BokaMera article id */ // @ApiMember(Description="The BokaMera article id") public var articleId:Int? /** * The Reference Type: StripeArticle = 1, EAccountingArticle = 2 */ // @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2") public var referenceType:String? /** * The external reference; Values for EAccountingArticle, StripeArticle */ // @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle") public var externalReference:String? required public init(){} } public class ArticleMappingResponse : Codable { /** * The company id */ // @ApiMember(Description="The company id") public var companyId:String? /** * The id */ // @ApiMember(Description="The id") public var id:String? /** * The BokaMera article id */ // @ApiMember(Description="The BokaMera article id") public var articleId: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(){} }