|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.order.CommerceIdentifierImpl
atg.commerce.order.PaymentGroupImpl
public class PaymentGroupImpl
This class is an implementation of a PaymentGroup. It represents all the information which designates a payment. Examples would be credit card, check, COD, etc. This class should not be used directly because it does not provide any specific properties for any specific types of payment. Rather, subclasses such as CreditCard and GiftCertificate should be used.
CreditCard,
GiftCertificate,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Constructor Summary | |
|---|---|
PaymentGroupImpl()
|
|
| Method Summary | |
|---|---|
void |
addAuthorizationStatus(PaymentStatus pAuthorizationStatus)
Adds an authorizationStatus to the CreditCard |
void |
addChangedProperty(java.lang.String pPropertyName)
Adds a changedProperty |
void |
addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)
Add the CommerceItemRelationship to the container. |
void |
addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
int pIndex)
Add the CommerceItemRelationship to the container at the given index. |
void |
addCreditStatus(PaymentStatus pCreditStatus)
Adds a creditStatus to the CreditCard |
void |
addDebitStatus(PaymentStatus pDebitStatus)
Adds a debitStatus to the CreditCard |
void |
addOrderRelationship(OrderRelationship pOrderRelationship)
Add the OrderRelationship to the container. |
void |
addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
Add the ShippingGroupRelationship to the container. |
void |
addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
int pIndex)
Add the ShippingGroupRelationship to the container at the given index. |
void |
clearChangedProperties()
Clears the changedProperties List |
double |
getAmount()
returns the amount associated with this PaymentGroup. |
double |
getAmountAuthorized()
Returns property amountAuthorized. |
double |
getAmountCredited()
Returns property amountCredited. |
double |
getAmountDebited()
Returns property amountDebited. |
java.util.List |
getAuthorizationStatus()
Returns the authorizationStatus |
java.util.Set |
getChangedProperties()
Returns the changedProperties |
CommerceItemRelationship |
getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
Returns the CommerceItemRelationship whose id is pCommerceItemRelationshipId. |
int |
getCommerceItemRelationshipCount()
Returns the number of CommerceItemRelationships in the container. |
java.util.List |
getCommerceItemRelationships()
Returns a List of CommerceItemRelationships |
java.util.List |
getCreditStatus()
Returns the creditStatus |
java.lang.String |
getCurrencyCode()
Returns the currencyCode |
java.util.List |
getDebitStatus()
Returns the debitStatus |
OrderRelationship |
getOrderRelationship()
Returns the OrderRelationship. |
int |
getOrderRelationshipCount()
Returns the number of OrderRelationships in the container. |
java.lang.String |
getPaymentGroupClassType()
Returns the paymentGroupClassType |
java.lang.String |
getPaymentMethod()
Returns the paymentMethod |
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns a property value |
MutableRepositoryItem |
getRepositoryItem()
Returns the repositoryItem |
java.lang.String |
getRequisitionNumber()
Return the requisition info associated with this payment group |
boolean |
getSaveAllProperties()
Returns the saveAllProperties |
ShippingGroupRelationship |
getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Returns the ShippingGroupRelationship whose id is pShippingGroupRelationshipId. |
int |
getShippingGroupRelationshipCount()
Returns the number of ShippingGroupRelationships in the container. |
java.util.List |
getShippingGroupRelationships()
Returns a List of ShippingGroupRelationships |
java.util.Map |
getSpecialInstructions()
Returns the specialInstructions |
int |
getState()
returns the PaymentGroup state. |
java.lang.String |
getStateAsString()
returns the PaymentGroup state as a String. |
java.lang.String |
getStateAsUserResource()
returns the PaymentGroup state as a user resource |
java.lang.String |
getStateDetail()
returns the PaymentGroup state details. |
java.util.Date |
getSubmittedDate()
Returns the submittedDate |
boolean |
isChanged()
Returns the isChanged flag |
void |
removeAllCommerceItemRelationships()
Removes all the CommerceItemRelationships. |
void |
removeAllShippingGroupRelationships()
Removes all the ShippingGroupRelationships. |
CommerceItemRelationship |
removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
Removes a CommerceItemRelationship whose id is passed in. |
OrderRelationship |
removeOrderRelationship()
Removes a OrderRelationship. |
ShippingGroupRelationship |
removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
Removes a ShippingGroupRelationship whose id is passed in. |
void |
setAmount(double pAmount)
sets the amount associated with this PaymentGroup. |
void |
setAmountAuthorized(double pAmountAuthorized)
Sets property amountAuthorized |
void |
setAmountCredited(double pAmountCredited)
Sets property amountCredited |
void |
setAmountDebited(double pAmountDebited)
Sets property amountDebited |
void |
setChanged(boolean pChanged)
Marks this object as changed |
void |
setCurrencyCode(java.lang.String pCurrencyCode)
Sets the currencyCode |
void |
setPaymentGroupClassType(java.lang.String pPaymentGroupClassType)
Sets the paymentGroupClassType |
void |
setPaymentMethod(java.lang.String pPaymentMethod)
Sets the paymentMethod |
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets a property value |
void |
setRepositoryItem(MutableRepositoryItem pRepositoryItem)
Sets the repositoryItem |
void |
setRequisitionNumber(java.lang.String pRequisitionNumber)
Set the requisition info associated with this payment group |
void |
setSaveAllProperties(boolean pSaveAllProperties)
Sets the saveAllProperties |
void |
setSpecialInstructions(java.util.Map pSpecialInstructions)
Sets the specialInstructions |
void |
setState(int pState)
sets the PaymentGroup state. |
void |
setStateAsString(java.lang.String pState)
sets the PaymentGroup state as a String. |
void |
setStateDetail(java.lang.String pStateDetail)
sets the PaymentGroup state details. |
void |
setSubmittedDate(java.util.Date pSubmittedDate)
Sets the submittedDate |
java.lang.String |
toString()
Method that renders the general information in a readable string format |
void |
update(java.util.Observable o,
java.lang.Object arg)
This method is called whenever a property in a contained object changes and the containing object needs to be notified. |
| 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.commerce.order.CommerceIdentifier |
|---|
getId |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public PaymentGroupImpl()
| Method Detail |
|---|
public java.lang.String getPaymentGroupClassType()
getPaymentGroupClassType in interface PaymentGrouppublic void setPaymentGroupClassType(java.lang.String pPaymentGroupClassType)
setPaymentGroupClassType in interface PaymentGrouppublic java.lang.String getPaymentMethod()
getPaymentMethod in interface PaymentGrouppublic void setPaymentMethod(java.lang.String pPaymentMethod)
setPaymentMethod in interface PaymentGrouppublic double getAmount()
getAmount in interface PaymentGrouppublic void setAmount(double pAmount)
setAmount in interface PaymentGrouppAmount - the amount to set for this paymentpublic double getAmountAuthorized()
getAmountAuthorized in interface PaymentGrouppublic void setAmountAuthorized(double pAmountAuthorized)
setAmountAuthorized in interface PaymentGrouppAmountAuthorized - the value to set for property amountAuthorizedpublic double getAmountDebited()
getAmountDebited in interface PaymentGrouppublic void setAmountDebited(double pAmountDebited)
setAmountDebited in interface PaymentGrouppAmountDebited - the value to set for property amountDebitedpublic double getAmountCredited()
getAmountCredited in interface PaymentGrouppublic void setAmountCredited(double pAmountCredited)
setAmountCredited in interface PaymentGrouppAmountCredited - the value to set for property amountCreditedpublic java.lang.String getCurrencyCode()
getCurrencyCode in interface PaymentGrouppublic void setCurrencyCode(java.lang.String pCurrencyCode)
setCurrencyCode in interface PaymentGrouppublic int getState()
getState in interface PaymentGrouppublic void setState(int pState)
setState in interface PaymentGrouppState - the state to setpublic java.lang.String getStateAsString()
public void setStateAsString(java.lang.String pState)
pState - the state to setpublic java.lang.String getStateAsUserResource()
public java.lang.String getStateDetail()
getStateDetail in interface PaymentGrouppublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface PaymentGrouppStateDetail - the stateDetail to setpublic java.util.List getAuthorizationStatus()
getAuthorizationStatus in interface PaymentGrouppublic void addAuthorizationStatus(PaymentStatus pAuthorizationStatus)
addAuthorizationStatus in interface PaymentGrouppublic java.util.List getDebitStatus()
getDebitStatus in interface PaymentGrouppublic void addDebitStatus(PaymentStatus pDebitStatus)
addDebitStatus in interface PaymentGrouppublic java.util.List getCreditStatus()
getCreditStatus in interface PaymentGrouppublic void addCreditStatus(PaymentStatus pCreditStatus)
addCreditStatus in interface PaymentGrouppublic java.util.Date getSubmittedDate()
getSubmittedDate in interface PaymentGrouppublic void setSubmittedDate(java.util.Date pSubmittedDate)
setSubmittedDate in interface PaymentGrouppublic java.util.Map getSpecialInstructions()
getSpecialInstructions in interface PaymentGrouppublic void setSpecialInstructions(java.util.Map pSpecialInstructions)
public void setRequisitionNumber(java.lang.String pRequisitionNumber)
setRequisitionNumber in interface PaymentGrouppublic java.lang.String getRequisitionNumber()
getRequisitionNumber in interface PaymentGrouppublic java.util.List getCommerceItemRelationships()
getCommerceItemRelationships in interface CommerceItemRelationshipContainer
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship)
throws DuplicateRelationshipException,
InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship,
int pIndex)
throws DuplicateRelationshipException,
InvalidParameterException
addCommerceItemRelationship in interface CommerceItemRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
removeCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships in interface CommerceItemRelationshipContainer
public CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
getCommerceItemRelationship in interface CommerceItemRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount in interface CommerceItemRelationshipContainerpublic java.util.List getShippingGroupRelationships()
getShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
throws DuplicateRelationshipException,
InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
int pIndex)
throws DuplicateRelationshipException,
InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
removeShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
throws RelationshipNotFoundException,
InvalidParameterException
getShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface ShippingGroupRelationshipContainer
public void addOrderRelationship(OrderRelationship pOrderRelationship)
throws DuplicateRelationshipException,
InvalidParameterException
addOrderRelationship in interface OrderRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public OrderRelationship removeOrderRelationship()
throws RelationshipNotFoundException,
InvalidParameterException
removeOrderRelationship in interface OrderRelationshipContainerRelationshipNotFoundException
InvalidParameterException
public OrderRelationship getOrderRelationship()
throws RelationshipNotFoundException,
InvalidParameterException
getOrderRelationship in interface OrderRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getOrderRelationshipCount()
getOrderRelationshipCount in interface OrderRelationshipContainer
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observero - the object which changedarg - the name of the property which changedpublic boolean getSaveAllProperties()
getSaveAllProperties in interface ChangedPropertiespublic void setSaveAllProperties(boolean pSaveAllProperties)
setSaveAllProperties in interface ChangedPropertiespublic boolean isChanged()
isChanged in interface ChangedPropertiespublic void setChanged(boolean pChanged)
setChanged in interface ChangedPropertiespublic java.util.Set getChangedProperties()
getChangedProperties in interface ChangedPropertiespublic void addChangedProperty(java.lang.String pPropertyName)
addChangedProperty in interface ChangedPropertiespublic void clearChangedProperties()
clearChangedProperties in interface ChangedPropertiespublic MutableRepositoryItem getRepositoryItem()
getRepositoryItem in interface ChangedPropertiespublic void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem in interface ChangedPropertiespublic java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue in interface ChangedProperties
public void setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
setPropertyValue in interface ChangedPropertiespPropertyValue - the value to set for the given property valuepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||