public class ReturnTCDataBean
extends java.lang.Object
implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
Constructor and Description |
---|
ReturnTCDataBean(java.lang.Long newContractId,
java.lang.Integer newLangId)
Constructs an ReturnTCDataBean from an existing contract identifier
Finds the Returns Policy and Refund terms and conditions in the contract
|
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Returns the current command's context
|
java.lang.Long |
getContractId()
Gets the contract identifier for the contract this term and condition are in
|
com.ibm.commerce.security.Protectable |
getDelegate()
Returns the access control delegate of this data bean
|
java.lang.String |
getLanguageId()
Gets the language identifier in which the data was retrieved
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties
|
java.lang.String |
getReturnApprovalPolicy()
Gets the name of the Returns Approval policy
|
java.lang.String |
getReturnApprovalPolicyNumber()
Gets the Return Approval policy reference number
|
java.lang.String |
getReturnChargePolicy()
Gets the name of the Returns Charge policy
|
java.lang.String |
getReturnChargePolicyNumber()
Gets the Returns Charge policy reference number
|
java.lang.String |
getReturnChargeReferenceNumber()
Gets the Returns Charge policy reference number
|
java.lang.String[] |
getReturnPaymentPolicies()
Gets the list of Returns Refund policies in the contract
|
java.lang.String |
getReturnPaymentPolicy(int i)
Gets a Return Refund policy name
|
java.lang.String |
getReturnPaymentPolicyNumber(int i)
Gets a Return Refund policy reference number
|
java.lang.String[] |
getReturnPaymentPolicyNumbers()
Gets a list of the Returns Refund policy reference numbers
|
java.lang.String |
getReturnPaymentReferenceNumber(int i)
Gets a Return Refund policy reference number
|
java.lang.String[] |
getReturnPaymentReferenceNumbers()
Gets a list of the Returns Refund policy reference numbers
|
void |
populate()
This method is used to retrieve the Returns data in the contract.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command context
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.
|
public ReturnTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
newContractId
- Long An existing contract identifiernewLangId
- Integer The language identifier for which language to retrieve the datapublic com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public java.lang.Long getContractId()
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public java.lang.String getLanguageId()
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public java.lang.String getReturnApprovalPolicy()
public java.lang.String getReturnApprovalPolicyNumber()
public java.lang.String getReturnChargePolicy()
public java.lang.String getReturnChargePolicyNumber()
public java.lang.String getReturnChargeReferenceNumber()
public java.lang.String[] getReturnPaymentPolicies()
public java.lang.String getReturnPaymentPolicy(int i)
public java.lang.String getReturnPaymentPolicyNumber(int i)
public java.lang.String[] getReturnPaymentPolicyNumbers()
public java.lang.String getReturnPaymentReferenceNumber(int i)
public java.lang.String[] getReturnPaymentReferenceNumbers()
public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
newICommandContext
- com.ibm.commerce.command.CommandContextpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- com.ibm.commerce.datatype.TypedProperty