/* Options: Date: 2026-09-23 02:15:46 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: UpdateArticleMappings.* //ExcludeTypes: //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.*; public class dtos { @Route(Path="/articles/mappings", Verbs="PUT") @ValidateRequest(Validator="IsAuthenticated") public static class UpdateArticleMappings implements IReturn>, ICompany { /** * Company to update article mappings for */ @ApiMember(Description="Company to update article mappings for") public UUID CompanyId = null; /** * The article mappings to create or update */ @ApiMember(Description="The article mappings to create or update", IsRequired=true) public ArrayList ArticleMappings = new ArrayList(); public UUID getCompanyId() { return CompanyId; } public UpdateArticleMappings setCompanyId(UUID value) { this.CompanyId = value; return this; } public ArrayList getArticleMappings() { return ArticleMappings; } public UpdateArticleMappings setArticleMappings(ArrayList value) { this.ArticleMappings = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } public static interface ICompany { public UUID CompanyId = null; } public static 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") public UUID Id = null; /** * The BokaMera article id */ @ApiMember(Description="The BokaMera article id") public Integer ArticleId = null; /** * The Reference Type: StripeArticle = 1, EAccountingArticle = 2 */ @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2") public String ReferenceType = null; /** * The external reference; Values for EAccountingArticle, StripeArticle */ @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle") public String ExternalReference = null; public UUID getId() { return Id; } public ArticleMappingToHandle setId(UUID value) { this.Id = value; return this; } public Integer getArticleId() { return ArticleId; } public ArticleMappingToHandle setArticleId(Integer value) { this.ArticleId = value; return this; } public String getReferenceType() { return ReferenceType; } public ArticleMappingToHandle setReferenceType(String value) { this.ReferenceType = value; return this; } public String getExternalReference() { return ExternalReference; } public ArticleMappingToHandle setExternalReference(String value) { this.ExternalReference = value; return this; } } public static class ArticleMappingResponse { /** * The company id */ @ApiMember(Description="The company id") public UUID CompanyId = null; /** * The id */ @ApiMember(Description="The id") public UUID Id = null; /** * The BokaMera article id */ @ApiMember(Description="The BokaMera article id") public Integer ArticleId = null; /** * The external reference */ @ApiMember(Description="The external reference") public String ExternalReference = null; /** * The Reference Type */ @ApiMember(Description="The Reference Type") public String ReferenceType = null; public UUID getCompanyId() { return CompanyId; } public ArticleMappingResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } public UUID getId() { return Id; } public ArticleMappingResponse setId(UUID value) { this.Id = value; return this; } public Integer getArticleId() { return ArticleId; } public ArticleMappingResponse setArticleId(Integer value) { this.ArticleId = value; return this; } public String getExternalReference() { return ExternalReference; } public ArticleMappingResponse setExternalReference(String value) { this.ExternalReference = value; return this; } public String getReferenceType() { return ReferenceType; } public ArticleMappingResponse setReferenceType(String value) { this.ReferenceType = value; return this; } } }