summaryrefslogtreecommitdiffstats
path: root/src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-02-25 11:02:26 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-02-25 11:02:26 +0100
commit425bd35c736b7e1c0dbe5b3f9162e195b3be6018 (patch)
treebc4668aa125fb0a15518d464a1738c6b05e56d07 /src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java
parentissuerOnLine changed from int to Integer as it is optional (diff)
downloadUIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.gz
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.bz2
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.lz
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.xz
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.tar.zst
UIC-barcode-425bd35c736b7e1c0dbe5b3f9162e195b3be6018.zip
Diffstat (limited to 'src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java')
-rw-r--r--src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java209
1 files changed, 209 insertions, 0 deletions
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java b/src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java
new file mode 100644
index 0000000..cfbba4c
--- /dev/null
+++ b/src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java
@@ -0,0 +1,209 @@
+/*
+ *
+ */
+package org.uic.barcode.ticket.api.impl;
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.LinkedHashSet;
+
+import org.uic.barcode.ticket.api.spec.ICustomerCard;
+import org.uic.barcode.ticket.api.spec.IExtension;
+import org.uic.barcode.ticket.api.spec.ITravelClassType;
+import org.uic.barcode.ticket.api.spec.ITraveler;
+
+// TODO: Auto-generated Javadoc
+/**
+ * The Class SimpleCustomerCard.
+ */
+public class SimpleCustomerCard extends SimpleDocumentData implements ICustomerCard {
+
+ /** The customer type. */
+ protected ITraveler customer;
+
+ /** The card id. */
+ protected String cardId;
+
+ /** The valid from. */
+ protected Date validFrom;
+
+ /** The valid until. */
+ protected Date validUntil;
+
+ /** The class code. */
+ protected ITravelClassType classCode;
+
+ /** The extension. */
+ protected IExtension extension;
+
+
+ /** The card type. */
+ protected int cardType;
+
+ /** The card type descr. */
+ protected String cardTypeDescr;
+
+ /** The customer status. */
+ protected int customerStatus;
+
+ /** The customer status descr. */
+ protected String customerStatusDescr;
+
+ /** The included services. */
+ protected Collection<Integer> includedServices = new LinkedHashSet<Integer>();
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getCustomer()
+ */
+ public ITraveler getCustomer() {
+ return customer;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setCustomer(org.uic.ticket.api.spec.ITraveler)
+ */
+ public void setCustomer(ITraveler customer) {
+ this.customer = customer;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getCardId()
+ */
+ public String getCardId() {
+ return cardId;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setCardId(java.lang.String)
+ */
+ public void setCardId(String cardId) {
+ this.cardId = cardId;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getValidFrom()
+ */
+ public Date getValidFrom() {
+ return validFrom;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setValidFrom(java.util.Date)
+ */
+ public void setValidFrom(Date validFrom) {
+ this.validFrom = validFrom;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getValidUntil()
+ */
+ public Date getValidUntil() {
+ return validUntil;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setValidUntil(java.util.Date)
+ */
+ public void setValidUntil(Date validUntil) {
+ this.validUntil = validUntil;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getClassCode()
+ */
+ public ITravelClassType getClassCode() {
+ return classCode;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setClassCode(org.uic.ticket.api.asn.om.TravelClassType)
+ */
+ public void setClassCode(ITravelClassType classCode) {
+ this.classCode = classCode;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getCardType()
+ */
+ public int getCardType() {
+ return cardType;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setCardType(int)
+ */
+ public void setCardType(int cardType) {
+ this.cardType = cardType;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getCardTypeDescr()
+ */
+ public String getCardTypeDescr() {
+ return cardTypeDescr;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setCardTypeDescr(java.lang.String)
+ */
+ public void setCardTypeDescr(String cardTypeDescr) {
+ this.cardTypeDescr = cardTypeDescr;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getCustomerStatus()
+ */
+ public int getCustomerStatus() {
+ return customerStatus;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setCustomerStatus(int)
+ */
+ public void setCustomerStatus(int customerStatus) {
+ this.customerStatus = customerStatus;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getCustomerStatusDescr()
+ */
+ public String getCustomerStatusDescr() {
+ return customerStatusDescr;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setCustomerStatusDescr(java.lang.String)
+ */
+ public void setCustomerStatusDescr(String customerStatusDescr) {
+ this.customerStatusDescr = customerStatusDescr;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getIncludedServices()
+ */
+ public Collection<Integer> getIncludedServices() {
+ return includedServices;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#addIncludedService(java.lang.Integer)
+ */
+ public void addIncludedService(Integer includedService) {
+ this.includedServices.add(includedService);
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#getExtension()
+ */
+ public IExtension getExtension() {
+ return extension;
+ }
+
+ /* (nicht-Javadoc)
+ * @see org.uic.ticket.api.spec.ICustomerCard#setExtension(org.uic.ticket.api.spec.IExtension)
+ */
+ public void setExtension(IExtension extension) {
+ this.extension = extension;
+ }
+
+}