atg.commerce.order
Class CreditCard

java.lang.Object
  extended by atg.commerce.order.CommerceIdentifierImpl
      extended by atg.commerce.order.PaymentGroupImpl
          extended by atg.commerce.order.CreditCard
All Implemented Interfaces:
ChangedProperties, CommerceIdentifier, CommerceItemRelationshipContainer, OrderRelationshipContainer, PaymentAddressContainer, PaymentGroup, ShippingGroupRelationshipContainer, atg.payment.creditcard.BasicCreditCardInfo, CreditCardInfo, java.io.Serializable, java.util.Observer

public class CreditCard
extends PaymentGroupImpl
implements CreditCardInfo, PaymentAddressContainer

This class is an implementation of CreditCard payment information. It represents all the information which designates a credit card payment.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 java.lang.String mCardVerficationNumber
           
 
Constructor Summary
CreditCard()
           
 
Method Summary
 Address getBillingAddress()
          Returns the billingAddress
 java.lang.String getCardVerficationNumber()
          Returns the card verification number for this credit card.
 java.lang.String getCreditCardNumber()
          Returns the creditCardNumber
 java.lang.String getCreditCardType()
          Returns the creditCardType
 java.lang.String getExpirationDayOfMonth()
          Returns the expirationDayOfMonth
 java.lang.String getExpirationMonth()
          Returns the expirationMonth
 java.lang.String getExpirationYear()
          Returns the expirationYear
 Order getOrder()
          Always returns null.
 java.lang.String getPaymentId()
          Returns property paymentId
 void setBillingAddress(Address pBillingAddress)
          Sets the billingAddress
 void setCardVerficationNumber(java.lang.String pCardVerficationNumber)
          Sets the card verification number for this credit card.
 void setCreditCardNumber(java.lang.String pCreditCardNumber)
          Sets the creditCardNumber
 void setCreditCardType(java.lang.String pCreditCardType)
          Sets the creditCardType
 void setExpirationDayOfMonth(java.lang.String pExpirationDayOfMonth)
          Sets the expirationDayOfMonth
 void setExpirationMonth(java.lang.String pExpirationMonth)
          Sets the expirationMonth
 void setExpirationYear(java.lang.String pExpirationYear)
          Sets the expirationYear
 
Methods inherited from class atg.commerce.order.PaymentGroupImpl
addAuthorizationStatus, addChangedProperty, addCommerceItemRelationship, addCommerceItemRelationship, addCreditStatus, addDebitStatus, addOrderRelationship, addShippingGroupRelationship, addShippingGroupRelationship, clearChangedProperties, getAmount, getAmountAuthorized, getAmountCredited, getAmountDebited, getAuthorizationStatus, getChangedProperties, getCommerceItemRelationship, getCommerceItemRelationshipCount, getCommerceItemRelationships, getCreditStatus, getCurrencyCode, getDebitStatus, getOrderRelationship, getOrderRelationshipCount, getPaymentGroupClassType, getPaymentMethod, getPropertyValue, getRepositoryItem, getRequisitionNumber, getSaveAllProperties, getShippingGroupRelationship, getShippingGroupRelationshipCount, getShippingGroupRelationships, getSpecialInstructions, getState, getStateAsString, getStateAsUserResource, getStateDetail, getSubmittedDate, isChanged, removeAllCommerceItemRelationships, removeAllShippingGroupRelationships, removeCommerceItemRelationship, removeOrderRelationship, removeShippingGroupRelationship, setAmount, setAmountAuthorized, setAmountCredited, setAmountDebited, setChanged, setCurrencyCode, setPaymentGroupClassType, setPaymentMethod, setPropertyValue, setRepositoryItem, setRequisitionNumber, setSaveAllProperties, setSpecialInstructions, setState, setStateAsString, setStateDetail, setSubmittedDate, toString, update
 
Methods inherited from class atg.commerce.order.CommerceIdentifierImpl
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface atg.payment.creditcard.BasicCreditCardInfo
getAmount, getCurrencyCode
 
Methods inherited from interface atg.commerce.order.CommerceIdentifier
getId
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mCardVerficationNumber

public transient java.lang.String mCardVerficationNumber
Constructor Detail

CreditCard

public CreditCard()
Method Detail

getCreditCardNumber

public java.lang.String getCreditCardNumber()
Returns the creditCardNumber

Specified by:
getCreditCardNumber in interface atg.payment.creditcard.BasicCreditCardInfo

setCreditCardNumber

public void setCreditCardNumber(java.lang.String pCreditCardNumber)
Sets the creditCardNumber


getCreditCardType

public java.lang.String getCreditCardType()
Returns the creditCardType

Specified by:
getCreditCardType in interface atg.payment.creditcard.BasicCreditCardInfo

setCreditCardType

public void setCreditCardType(java.lang.String pCreditCardType)
Sets the creditCardType


getExpirationMonth

public java.lang.String getExpirationMonth()
Returns the expirationMonth

Specified by:
getExpirationMonth in interface atg.payment.creditcard.BasicCreditCardInfo

setExpirationMonth

public void setExpirationMonth(java.lang.String pExpirationMonth)
Sets the expirationMonth


getExpirationDayOfMonth

public java.lang.String getExpirationDayOfMonth()
Returns the expirationDayOfMonth

Specified by:
getExpirationDayOfMonth in interface atg.payment.creditcard.BasicCreditCardInfo

setExpirationDayOfMonth

public void setExpirationDayOfMonth(java.lang.String pExpirationDayOfMonth)
Sets the expirationDayOfMonth


getExpirationYear

public java.lang.String getExpirationYear()
Returns the expirationYear

Specified by:
getExpirationYear in interface atg.payment.creditcard.BasicCreditCardInfo

setExpirationYear

public void setExpirationYear(java.lang.String pExpirationYear)
Sets the expirationYear


getBillingAddress

public Address getBillingAddress()
Returns the billingAddress

Specified by:
getBillingAddress in interface PaymentAddressContainer
Specified by:
getBillingAddress in interface atg.payment.creditcard.BasicCreditCardInfo

setBillingAddress

public void setBillingAddress(Address pBillingAddress)
Sets the billingAddress

Specified by:
setBillingAddress in interface PaymentAddressContainer

getPaymentId

public java.lang.String getPaymentId()
Returns property paymentId

Specified by:
getPaymentId in interface atg.payment.creditcard.BasicCreditCardInfo
Returns:
returns property paymentId

getOrder

public Order getOrder()
Always returns null. This method is here to because of the CreditCartdInfo interface.

Specified by:
getOrder in interface CreditCardInfo
Returns:
returns null

getCardVerficationNumber

public java.lang.String getCardVerficationNumber()
Returns the card verification number for this credit card. Many credit cards have a card verification number printed, not embossed, on the card. This number is never transferred during card swipes and should be known only by the cardholder. Each card association has its own name for this number. Visa calls it the Card Verification Value (CVV2), and MasterCard calls it the Card Validation Code (CVC2). Visa and MasterCard print the number on the back of the card. American Express and Discover call it the Card Identification Digits (CID). This number is 3-4 digits. Amex uses 4 digit numbers and other credit cards uses 3 digits. This property is marked as transient. This property should not be allowed to serialize.

Returns:
Returns the cardVerficationNumber.

setCardVerficationNumber

public void setCardVerficationNumber(java.lang.String pCardVerficationNumber)
Sets the card verification number for this credit card. Many credit cards have a card verification number printed, not embossed, on the card. This number is never transferred during card swipes and should be known only by the cardholder. Each card association has its own name for this number. Visa calls it the Card Verification Value (CVV2), and MasterCard calls it the Card Validation Code (CVC2). Visa and MasterCard print the number on the back of the card. American Express and Discover call it the Card Identification Digits (CID). This number is 3-4 digits. Amex uses 4 digit numbers and other credit cards uses 3 digits. This property is marked as transient. This property should not be allowed to serialize.

Parameters:
pCardVerficationNumber - The cardVerficationNumber to set.