11/**
2- * Copyright 2015-2019 NETCAT (www.netcat.pl)
2+ * Copyright 2015-2020 NETCAT (www.netcat.pl)
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1414 * limitations under the License.
1515 *
1616 * @author NETCAT <firma@netcat.pl>
17- * @copyright 2015-2019 NETCAT (www.netcat.pl)
17+ * @copyright 2015-2020 NETCAT (www.netcat.pl)
1818 * @license http://www.apache.org/licenses/LICENSE-2.0
1919 */
2020
2121package pl .nip24 .client ;
2222
23+ import java .util .Date ;
24+
2325/**
2426 * Dane konta użytkownika
2527 * @author robert
@@ -28,6 +30,8 @@ public class AccountStatus {
2830
2931 protected String uid ;
3032
33+ protected String type ;
34+ protected Date validTo ;
3135 protected String billingPlanName ;
3236
3337 protected float subscriptionPrice ;
@@ -37,6 +41,7 @@ public class AccountStatus {
3741 protected float itemPriceAll ;
3842 protected float itemPriceIBAN ;
3943 protected float itemPriceWhitelist ;
44+ protected float itemPriceSearchVAT ;
4045
4146 protected int limit ;
4247 protected int requestDelay ;
@@ -60,6 +65,7 @@ public class AccountStatus {
6065 protected boolean funcGetVATStatus ;
6166 protected boolean funcGetIBANStatus ;
6267 protected boolean funcGetWhitelistStatus ;
68+ protected boolean funcSearchVAT ;
6369
6470 protected int invoiceDataCount ;
6571 protected int allDataCount ;
@@ -68,6 +74,7 @@ public class AccountStatus {
6874 protected int viesStatusCount ;
6975 protected int ibanStatusCount ;
7076 protected int whitelistStatusCount ;
77+ protected int searchVATCount ;
7178 protected int totalCount ;
7279
7380 /**
@@ -95,6 +102,42 @@ public void setUID(String uid)
95102 this .uid = uid ;
96103 }
97104
105+ /**
106+ * Typ konta
107+ * @return typ konta
108+ */
109+ public String getType ()
110+ {
111+ return type ;
112+ }
113+
114+ /**
115+ * Typ konta
116+ * @param type typ konta
117+ */
118+ public void setType (String type )
119+ {
120+ this .type = type ;
121+ }
122+
123+ /**
124+ * Data ważności konta pre-paid
125+ * @return data ważności
126+ */
127+ public Date getValidTo ()
128+ {
129+ return validTo ;
130+ }
131+
132+ /**
133+ * Data ważności konta pre-paid
134+ * @param validTo data ważności
135+ */
136+ public void setValidTo (Date validTo )
137+ {
138+ this .validTo = validTo ;
139+ }
140+
98141 /**
99142 * Nazwa bieżącego planu taryfowego
100143 * @return nazwa planu
@@ -239,6 +282,24 @@ public void setItemPriceWhitelist(float itemPriceWhitelist)
239282 this .itemPriceWhitelist = itemPriceWhitelist ;
240283 }
241284
285+ /**
286+ * Koszt netto pojedynczego zapytania - wyszukiwanie danych w rejestrze VAT
287+ * @return cena netto
288+ */
289+ public float getItemPriceSearchVAT ()
290+ {
291+ return itemPriceSearchVAT ;
292+ }
293+
294+ /**
295+ * Koszt netto pojedynczego zapytania - wyszukiwanie danych w rejestrze VAT
296+ * @param itemPriceSearchVAT cena netto
297+ */
298+ public void setItemPriceSearchVAT (float itemPriceSearchVAT )
299+ {
300+ this .itemPriceSearchVAT = itemPriceSearchVAT ;
301+ }
302+
242303 /**
243304 * Maksymalna liczba zapytań w planie
244305 * @return liczba zapytań
@@ -581,6 +642,24 @@ public void setFuncGetWhitelistStatus(boolean funcGetWhitelistStatus)
581642 this .funcGetWhitelistStatus = funcGetWhitelistStatus ;
582643 }
583644
645+ /**
646+ * Dostęp do funkcji wyszukującej dane w rejestrze VAT
647+ * @return true jeżeli funkcja jest dostępna
648+ */
649+ public boolean isFuncSearchVAT ()
650+ {
651+ return funcSearchVAT ;
652+ }
653+
654+ /**
655+ * Dostęp do funkcji wyszukującej dane w rejestrze VAT
656+ * @param funcSearchVAT true jeżeli funkcja jest dostępna
657+ */
658+ public void setFuncSearchVAT (boolean funcSearchVAT )
659+ {
660+ this .funcSearchVAT = funcSearchVAT ;
661+ }
662+
584663 /**
585664 * Ilość wykonanych zapytań o dane podmiotu do faktury
586665 * @return ilość zapytań
@@ -707,6 +786,24 @@ public void setWhitelistStatusCount(int whitelistStatusCount)
707786 this .whitelistStatusCount = whitelistStatusCount ;
708787 }
709788
789+ /**
790+ * Ilość wykonanych zapytań wyszukiwania danych w rejestrze VAT
791+ * @return ilość zapytań
792+ */
793+ public int getSearchVATCount ()
794+ {
795+ return searchVATCount ;
796+ }
797+
798+ /**
799+ * Ilość wykonanych zapytań wyszukiwania danych w rejestrze VAT
800+ * @param searchVATCount ilość zapytań
801+ */
802+ public void setSearchVATCount (int searchVATCount )
803+ {
804+ this .searchVATCount = searchVATCount ;
805+ }
806+
710807 /**
711808 * Całkowita ilość wykonanych zapytań w bieżącym miesiącu
712809 * @return ilość zapytań
@@ -729,6 +826,8 @@ public void setTotalCount(int totalCount)
729826 public String toString ()
730827 {
731828 return "AccountStatus: [uid = " + uid
829+ + ", type = " + type
830+ + ", validTo = " + (validTo != null ? validTo .toString () : "" )
732831 + ", billingPlanName = " + billingPlanName
733832
734833 + ", subscriptionPrice = " + subscriptionPrice
@@ -738,6 +837,7 @@ public String toString()
738837 + ", itemPriceAll = " + itemPriceAll
739838 + ", itemPriceIBAN = " + itemPriceIBAN
740839 + ", itemPriceWhitelist = " + itemPriceWhitelist
840+ + ", itemPriceSearchVAT = " + itemPriceSearchVAT
741841
742842 + ", limit = " + limit
743843 + ", requestDelay = " + requestDelay
@@ -761,6 +861,7 @@ public String toString()
761861 + ", funcGetVATStatus = " + funcGetVATStatus
762862 + ", funcGetIBANStatus = " + funcGetIBANStatus
763863 + ", funcGetWhitelistStatus = " + funcGetWhitelistStatus
864+ + ", funcSearchVAT = " + funcSearchVAT
764865
765866 + ", invoiceDataCount = " + invoiceDataCount
766867 + ", allDataCount = " + allDataCount
@@ -769,6 +870,7 @@ public String toString()
769870 + ", VIESStatusCount = " + viesStatusCount
770871 + ", IBANStatusCount = " + ibanStatusCount
771872 + ", whitelistStatusCount = " + whitelistStatusCount
873+ + ", searchVATCount = " + searchVATCount
772874 + ", totalCount = " + totalCount
773875 + "]" ;
774876 }
0 commit comments