/* Options: Date: 2024-11-23 10:39:45 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: EAccountingTermsOfPaymentQuery.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/eaccounting/termsofpayments", Verbs="GET") public static class EAccountingTermsOfPaymentQuery implements IReturn>, ICompany { public TermsOfPaymentTypes TermsOfPaymentTypeId = null; /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public UUID CompanyId = null; public TermsOfPaymentTypes getTermsOfPaymentTypeId() { return TermsOfPaymentTypeId; } public EAccountingTermsOfPaymentQuery setTermsOfPaymentTypeId(TermsOfPaymentTypes value) { this.TermsOfPaymentTypeId = value; return this; } public UUID getCompanyId() { return CompanyId; } public EAccountingTermsOfPaymentQuery setCompanyId(UUID value) { this.CompanyId = 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 enum TermsOfPaymentTypes { Normal, CurrentMonth, Cash, CardPayment, DigitalWallet, PaymentServiceProvider; } public static class EAccountingTermsOfPaymentQueryResponse { public String Id = null; public String Name = null; public String NameEnglish = null; public Integer NumberOfDays = null; public Integer TermsOfPaymentTypeId = null; public String TermsOfPaymentTypeText = null; public Boolean AvailableForSales = null; public Boolean AvailableForPurchase = null; public String getId() { return Id; } public EAccountingTermsOfPaymentQueryResponse setId(String value) { this.Id = value; return this; } public String getName() { return Name; } public EAccountingTermsOfPaymentQueryResponse setName(String value) { this.Name = value; return this; } public String getNameEnglish() { return NameEnglish; } public EAccountingTermsOfPaymentQueryResponse setNameEnglish(String value) { this.NameEnglish = value; return this; } public Integer getNumberOfDays() { return NumberOfDays; } public EAccountingTermsOfPaymentQueryResponse setNumberOfDays(Integer value) { this.NumberOfDays = value; return this; } public Integer getTermsOfPaymentTypeId() { return TermsOfPaymentTypeId; } public EAccountingTermsOfPaymentQueryResponse setTermsOfPaymentTypeId(Integer value) { this.TermsOfPaymentTypeId = value; return this; } public String getTermsOfPaymentTypeText() { return TermsOfPaymentTypeText; } public EAccountingTermsOfPaymentQueryResponse setTermsOfPaymentTypeText(String value) { this.TermsOfPaymentTypeText = value; return this; } public Boolean isAvailableForSales() { return AvailableForSales; } public EAccountingTermsOfPaymentQueryResponse setAvailableForSales(Boolean value) { this.AvailableForSales = value; return this; } public Boolean isAvailableForPurchase() { return AvailableForPurchase; } public EAccountingTermsOfPaymentQueryResponse setAvailableForPurchase(Boolean value) { this.AvailableForPurchase = value; return this; } } }