public class PaymentGroupImpl extends CommerceIdentifierImpl implements PaymentGroup, ChangedProperties
CreditCard
,
GiftCertificate
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
PaymentGroupImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
getId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
public java.lang.String getPaymentGroupClassType()
getPaymentGroupClassType
in interface PaymentGroup
public void setPaymentGroupClassType(java.lang.String pPaymentGroupClassType)
setPaymentGroupClassType
in interface PaymentGroup
public java.lang.String getPaymentMethod()
getPaymentMethod
in interface PaymentGroup
public void setPaymentMethod(java.lang.String pPaymentMethod)
setPaymentMethod
in interface PaymentGroup
public double getAmount()
getAmount
in interface PaymentGroup
public void setAmount(double pAmount)
setAmount
in interface PaymentGroup
pAmount
- the amount to set for this paymentpublic double getAmountAuthorized()
getAmountAuthorized
in interface PaymentGroup
public void setAmountAuthorized(double pAmountAuthorized)
setAmountAuthorized
in interface PaymentGroup
pAmountAuthorized
- the value to set for property amountAuthorizedpublic double getAmountDebited()
getAmountDebited
in interface PaymentGroup
public void setAmountDebited(double pAmountDebited)
setAmountDebited
in interface PaymentGroup
pAmountDebited
- the value to set for property amountDebitedpublic double getAmountCredited()
getAmountCredited
in interface PaymentGroup
public void setAmountCredited(double pAmountCredited)
setAmountCredited
in interface PaymentGroup
pAmountCredited
- the value to set for property amountCreditedpublic java.lang.String getCurrencyCode()
getCurrencyCode
in interface PaymentGroup
public void setCurrencyCode(java.lang.String pCurrencyCode)
setCurrencyCode
in interface PaymentGroup
public int getState()
getState
in interface PaymentGroup
public void setState(int pState)
setState
in interface PaymentGroup
pState
- 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 PaymentGroup
public void setStateDetail(java.lang.String pStateDetail)
setStateDetail
in interface PaymentGroup
pStateDetail
- the stateDetail to setpublic java.util.List getAuthorizationStatus()
getAuthorizationStatus
in interface PaymentGroup
public void addAuthorizationStatus(PaymentStatus pAuthorizationStatus)
addAuthorizationStatus
in interface PaymentGroup
public java.util.List getDebitStatus()
getDebitStatus
in interface PaymentGroup
public void addDebitStatus(PaymentStatus pDebitStatus)
addDebitStatus
in interface PaymentGroup
public java.util.List getCreditStatus()
getCreditStatus
in interface PaymentGroup
public void addCreditStatus(PaymentStatus pCreditStatus)
addCreditStatus
in interface PaymentGroup
public java.util.Date getSubmittedDate()
getSubmittedDate
in interface PaymentGroup
public void setSubmittedDate(java.util.Date pSubmittedDate)
setSubmittedDate
in interface PaymentGroup
public java.util.Map getSpecialInstructions()
getSpecialInstructions
in interface PaymentGroup
public void setSpecialInstructions(java.util.Map pSpecialInstructions)
public void setRequisitionNumber(java.lang.String pRequisitionNumber)
setRequisitionNumber
in interface PaymentGroup
public java.lang.String getRequisitionNumber()
getRequisitionNumber
in interface PaymentGroup
public java.util.List getCommerceItemRelationships()
getCommerceItemRelationships
in interface CommerceItemRelationshipContainer
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship
in interface CommerceItemRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addCommerceItemRelationship(CommerceItemRelationship pCommerceItemRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCommerceItemRelationship
in interface CommerceItemRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public CommerceItemRelationship removeCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCommerceItemRelationship
in interface CommerceItemRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllCommerceItemRelationships()
removeAllCommerceItemRelationships
in interface CommerceItemRelationshipContainer
public CommerceItemRelationship getCommerceItemRelationship(java.lang.String pCommerceItemRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCommerceItemRelationship
in interface CommerceItemRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getCommerceItemRelationshipCount()
getCommerceItemRelationshipCount
in interface CommerceItemRelationshipContainer
public java.util.List getShippingGroupRelationships()
getShippingGroupRelationships
in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships
in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getShippingGroupRelationship
in interface ShippingGroupRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount
in interface ShippingGroupRelationshipContainer
public void addOrderRelationship(OrderRelationship pOrderRelationship) throws DuplicateRelationshipException, InvalidParameterException
addOrderRelationship
in interface OrderRelationshipContainer
DuplicateRelationshipException
InvalidParameterException
public OrderRelationship removeOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
removeOrderRelationship
in interface OrderRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public OrderRelationship getOrderRelationship() throws RelationshipNotFoundException, InvalidParameterException
getOrderRelationship
in interface OrderRelationshipContainer
RelationshipNotFoundException
InvalidParameterException
public int getOrderRelationshipCount()
getOrderRelationshipCount
in interface OrderRelationshipContainer
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- the object which changedarg
- the name of the property which changedpublic boolean getSaveAllProperties()
getSaveAllProperties
in interface ChangedProperties
public void setSaveAllProperties(boolean pSaveAllProperties)
setSaveAllProperties
in interface ChangedProperties
public boolean isChanged()
isChanged
in interface ChangedProperties
public void setChanged(boolean pChanged)
setChanged
in interface ChangedProperties
public java.util.Set getChangedProperties()
getChangedProperties
in interface ChangedProperties
public void addChangedProperty(java.lang.String pPropertyName)
addChangedProperty
in interface ChangedProperties
public void clearChangedProperties()
clearChangedProperties
in interface ChangedProperties
public MutableRepositoryItem getRepositoryItem()
getRepositoryItem
in interface ChangedProperties
public void setRepositoryItem(MutableRepositoryItem pRepositoryItem)
setRepositoryItem
in interface ChangedProperties
public 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 ChangedProperties
pPropertyValue
- the value to set for the given property valuepublic java.lang.String toString()
toString
in class java.lang.Object