/* Options: Date: 2026-09-23 03:02:06 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateArticleMappings.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/articles/mappings", Verbs="PUT") @ValidateRequest(Validator="IsAuthenticated") open class UpdateArticleMappings : IReturn>, ICompany { /** * Company to update article mappings for */ @ApiMember(Description="Company to update article mappings for") override var CompanyId:UUID? = null /** * The article mappings to create or update */ @ApiMember(Description="The article mappings to create or update", IsRequired=true) open var ArticleMappings:ArrayList = ArrayList() companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = UpdateArticleMappings.responseType } interface ICompany { var CompanyId:UUID? } open class ArticleMappingToHandle { /** * 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") open var Id:UUID? = null /** * The BokaMera article id */ @ApiMember(Description="The BokaMera article id") open var ArticleId:Int? = null /** * The Reference Type: StripeArticle = 1, EAccountingArticle = 2 */ @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2") open var ReferenceType:String? = null /** * The external reference; Values for EAccountingArticle, StripeArticle */ @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle") open var ExternalReference:String? = null } open class ArticleMappingResponse { /** * The company id */ @ApiMember(Description="The company id") open var CompanyId:UUID? = null /** * The id */ @ApiMember(Description="The id") open var Id:UUID? = null /** * The BokaMera article id */ @ApiMember(Description="The BokaMera article id") open var ArticleId:Int? = null /** * The external reference */ @ApiMember(Description="The external reference") open var ExternalReference:String? = null /** * The Reference Type */ @ApiMember(Description="The Reference Type") open var ReferenceType:String? = null }