summaryrefslogtreecommitdiffstats
path: root/src/org/uic/barcode/ticket/api/spec/ICardReference.java
blob: b85acd6361ffbfe8957e981ac3a5dee3305efea9 (plain) (blame)
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
/*
 * 
 */
package org.uic.barcode.ticket.api.spec;

/**
 * The Interface ICardReference.
 * 
 * ICardReference defines the data for a reference to a customer card
 */
public interface ICardReference {
	
	
	/**
	 * Gets the card issuer.
	 *
	 * For rail cards the RICS code has to be used.
	 *
	 * @return the card issuer
	 */
	public String getCardIssuer();
	
	/**
	 * Sets the card issuer.
	 *
	 * For rail cards the RICS code has to be used.
	 *
	 * @param cardIssuer the new card issuer
	 */
	public void setCardIssuer(String cardIssuer);
	
	/**
	 * Gets the card id.
	 *
	 * The id will be trimmed. The maximum size is 20 positions
	 *
	 * @return the card id
	 */
	public String getCardId();
	
	/**
	 * Sets the card id.
	 *
	 * @param cardId the new card id
	 */
	public void setCardId(String cardId);
	
	/**
	 * Gets the card name.
	 *
	 * @return the card name
	 */
	public String getCardName();
	
	/**
	 * Sets the card name.
	 *
	 *
	 * @param cardName the new card name
	 */
	public void setCardName(String cardName);
	
	/**
	 * Gets the card type.
	 *
	 * @return the card type
	 */
	public int getCardType();
	
	/**
	 * Sets the card type.
	 *
	 * Code list defined and published by the issuer of the card
	 *
	 * @param cardType the new card type
	 */
	public void setCardType(int cardType);
	
	/**
	 * Gets the leading card id in case the entire cardId must not be provided.
	 *
	 * @return the leading card id
	 */
	public String getLeadingCardId();
	
	/**
	 * Sets the leading card id in case the entire cardId must not be provided.
	 *
	 * @param leadingCardId the new leading card id
	 */
	public void setLeadingCardId(String leadingCardId);
	
	/**
	 * Gets the trailing card id in case the entire cardId must not be provided.
	 *
	 * @return the trailing card id
	 */
	public String getTrailingCardId();
	
	/**
	 * Sets the trailing card id in case the entire cardId must not be provided.
	 *
	 * @param trailingCardId the new trailing card id
	 */
	public void setTrailingCardId(String trailingCardId);

}