|
| 1 | +/** |
| 2 | + * Copyright 2015-2024 NETCAT (www.netcat.pl) |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + * |
| 16 | + * @author NETCAT <firma@netcat.pl> |
| 17 | + * @copyright 2015-2024 NETCAT (www.netcat.pl) |
| 18 | + * @license http://www.apache.org/licenses/LICENSE-2.0 |
| 19 | + */ |
| 20 | + |
| 21 | +package pl.nip24.client; |
| 22 | + |
| 23 | +/** |
| 24 | + * Element listy wspólników s.c. |
| 25 | + * @author robert |
| 26 | + */ |
| 27 | +public class BusinessPartner { |
| 28 | + |
| 29 | + private String regon; |
| 30 | + private String firmName; |
| 31 | + private String firstName; |
| 32 | + private String secondName; |
| 33 | + private String lastName; |
| 34 | + |
| 35 | + /** |
| 36 | + * Tworzy nowy obiekt |
| 37 | + */ |
| 38 | + public BusinessPartner() |
| 39 | + { |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * Numer REGON |
| 44 | + * @return numer REGON |
| 45 | + */ |
| 46 | + public String getRegon() { |
| 47 | + return regon; |
| 48 | + } |
| 49 | + |
| 50 | + /** |
| 51 | + * Numer REGON |
| 52 | + * @param regon numer REGON |
| 53 | + */ |
| 54 | + public void setRegon(String regon) { |
| 55 | + this.regon = regon; |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Nazwa firmy |
| 60 | + * @return nazwa firmy |
| 61 | + */ |
| 62 | + public String getFirmName() { |
| 63 | + return firmName; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Nazwa firmy |
| 68 | + * @param firmName nazwa firmy |
| 69 | + */ |
| 70 | + public void setFirmName(String firmName) { |
| 71 | + this.firmName = firmName; |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * Imię pierwsze |
| 76 | + * @return imię pierwsze |
| 77 | + */ |
| 78 | + public String getFirstName() { |
| 79 | + return firstName; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Imię pierwsze |
| 84 | + * @param firstName imię pierwsze |
| 85 | + */ |
| 86 | + public void setFirstName(String firstName) { |
| 87 | + this.firstName = firstName; |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * Imię drugie |
| 92 | + * @return imię drugie |
| 93 | + */ |
| 94 | + public String getSecondName() { |
| 95 | + return secondName; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Imię drugie |
| 100 | + * @param secondName imię drugie |
| 101 | + */ |
| 102 | + public void setSecondName(String secondName) { |
| 103 | + this.secondName = secondName; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Nazwisko |
| 108 | + * @return nazwisko |
| 109 | + */ |
| 110 | + public String getLastName() { |
| 111 | + return lastName; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * Nazwisko |
| 116 | + * @param lastName nazwisko |
| 117 | + */ |
| 118 | + public void setLastName(String lastName) { |
| 119 | + this.lastName = lastName; |
| 120 | + } |
| 121 | + |
| 122 | + @Override |
| 123 | + public String toString() { |
| 124 | + return "BusinessPartner: [regon = " + regon |
| 125 | + + ", firmName = " + firmName |
| 126 | + + ", firstName = " + firstName |
| 127 | + + ", secondName = " + secondName |
| 128 | + + ", lastName = " + lastName |
| 129 | + + "]"; |
| 130 | + } |
| 131 | +} |
0 commit comments