01: package net.ar.webonswing.petstore.model;
02:
03: import java.io.*;
04:
05: public class CreditCard implements Serializable {
06: public static final String AMEX = "American Express";
07: public static final String MASTERCARD = "MasterCard";
08: public static final String VISA = "Visa";
09:
10: public static Object[] getTypes() {
11: return new String[] { "", VISA, MASTERCARD, AMEX };
12: }
13:
14: private String expiryDate;
15:
16: private String number;
17: private String type;
18:
19: public CreditCard() {
20: }
21:
22: public String getExpiryDate() {
23: return expiryDate;
24: }
25:
26: public String getNumber() {
27: return number;
28: }
29:
30: public String getType() {
31: return type;
32: }
33:
34: public void setExpiryDate(String expiryDate) {
35: this .expiryDate = expiryDate;
36: }
37:
38: public void setNumber(String number) {
39: this .number = number;
40: }
41:
42: public void setType(String type) {
43: this.type = type;
44: }
45: }
|