forked from AuthorizeNet/sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
232 lines (197 loc) · 3.85 KB
/
Customer.java
File metadata and controls
232 lines (197 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
package net.authorize.data;
import java.io.Serializable;
/**
* Customer specific information.
*
*/
public class Customer implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public static final int MAX_FIRST_NAME_LENGTH = 50;
public static final int MAX_LAST_NAME_LENGTH = 50;
public static final int MAX_COMPANY_LENGTH = 50;
public static final int MAX_ADDRES_LENGTH = 60;
public static final int MAX_CITY_LENGTH = 40;
public static final int MAX_STATE_LENGTH = 40;
public static final int MAX_ZIP_LENGTH = 20;
public static final int MAX_COUNTRY_LENGTH = 60;
public static final int MAX_FAX_LENGTH = 25;
public static final int MAX_EMAIL_LENGTH = 255;
public static final int MAX_CUSTOMER_ID_LENGTH = 20;
public static final int MAX_CUSTOMER_IP_LENGTH = 15;
private String firstName;
private String lastName;
private String company;
private String address;
private String city;
private String state;
private String zipPostalCode;
private String country;
private String phone;
private String fax;
private String email;
private String customerId;
private String customerIP;
private Customer() { }
public static Customer createCustomer() {
return new Customer();
}
/**
* @return the firstName
*/
public String getFirstName() {
return firstName;
}
/**
* @param firstName the firstName to set
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* @return the lastName
*/
public String getLastName() {
return lastName;
}
/**
* @param lastName the lastName to set
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
* @return the company
*/
public String getCompany() {
return company;
}
/**
* @param company the company to set
*/
public void setCompany(String company) {
this.company = company;
}
/**
* @return the address
*/
public String getAddress() {
return address;
}
/**
* @param address the address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* @return the city
*/
public String getCity() {
return city;
}
/**
* @param city the city to set
*/
public void setCity(String city) {
this.city = city;
}
/**
* @return the state
*/
public String getState() {
return state;
}
/**
* @param state the state to set
*/
public void setState(String state) {
this.state = state;
}
/**
* @return the zipPostalCode
*/
public String getZipPostalCode() {
return zipPostalCode;
}
/**
* @param zipPostalCode the zipPostalCode to set
*/
public void setZipPostalCode(String zipPostalCode) {
this.zipPostalCode = zipPostalCode;
}
/**
* @return the country
*/
public String getCountry() {
return country;
}
/**
* @param country the country to set
*/
public void setCountry(String country) {
this.country = country;
}
/**
* @return the phone
*/
public String getPhone() {
return phone;
}
/**
* @param phone the phone to set
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
* @return the fax
*/
public String getFax() {
return fax;
}
/**
* @param fax the fax to set
*/
public void setFax(String fax) {
this.fax = fax;
}
/**
* @return the email
*/
public String getEmail() {
return email;
}
/**
* @param email the email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return the customerId
*/
public String getCustomerId() {
return customerId;
}
/**
* @param customerId the customerId to set
*/
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
/**
* @return the customerIP
*/
public String getCustomerIP() {
return customerIP;
}
/**
* @param customerIP the customerIP to set
*/
public void setCustomerIP(String customerIP) {
this.customerIP = customerIP;
}
}