public abstract class Return extends TelesalesResponseBuilderImpl implements ITelesalesResponseBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class Name
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field
|
Constructor and Description |
---|
Return() |
Modifier and Type | Method and Description |
---|---|
protected void | createAllowedPaymentElements(org.w3c.dom.Element refundElement, java.lang.String rmaId)
This method creates the AllowedPaymentElements elements under the Refund element.
|
protected void | createAvailableSerialNumberElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean)
This method creates the AvailableSerialNumber element under the Line element.
|
protected void | createContractElement(org.w3c.dom.Element headerElement, RMADataBean rmaDataBean)
Creates the Contract element under the Header element.
|
protected void | createCustomerElement(org.w3c.dom.Element headerElement, RMADataBean rmaDataBean)
This method creates the Customer element under the Header element.
|
protected void | createFFMCenterElement(org.w3c.dom.Element headerElement, java.lang.String tagID, RMADataBean rmaDataBean)
This method creates the FulfillmentCenter element under the Header element.
|
protected org.w3c.dom.Element | createHeaderElement(org.w3c.dom.Element parentElement, RMADataBean rmaDataBean)
This method creates a Header element using the input values.
|
protected org.w3c.dom.Element | createLineElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean)
This method creates a Line element using the input values.
|
protected org.w3c.dom.Element | createOrderIdElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean)
This method creates an OrderId element using the input values.
|
protected org.w3c.dom.Element | createOrderItemIdElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean)
This method creates an OrderItemId element using the input values.
|
protected void | createPhysicalReturnElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean)
This method creates the PhysicalReturn element under the Line element.
|
protected void | createProductInfoElements(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean)
This method creates elements carrying product info.
|
protected org.w3c.dom.Element | createRefundAmountElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean)
Creates a RefundAmount element using the input values.
|
protected void | createRefundElement(org.w3c.dom.Element headerElement, java.lang.String tag, RMADataBean rmaDataBean)
This method creates the Refund element under the Header element.
|
protected org.w3c.dom.Element | createReturnElement(org.w3c.dom.Element parentElement, RMADataBean rmaDataBean, boolean getDetails)
This method creates a Return element using the input values.
|
protected org.w3c.dom.Element | createReturnElement(ReturnSearchResultBean abnSearchResult, org.w3c.dom.Element parentElement)
This method creates a Return element using the input values.
|
protected void | createReturnReasonElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean)
This method creates the ReturnReason element under the Line element.
|
protected void | createSerialNumberElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean)
This method creates the SerialNumber element under the Line element.
|
protected org.w3c.dom.Element | createUserdataInLineElement(RMAItemDataBean rmaItemDataBean, org.w3c.dom.Element lineElement)
This is an empty method to create the UserData element for Line.
|
protected org.w3c.dom.Element | createUserdataInReturnElement(RMADataBean rmaDataBean, org.w3c.dom.Element returnElement)
This is an empty method to create the UserData element for Return.
|
protected boolean | getDetailsFlag()
This method returns the details flag which is used by the createHeaderElement method to populate the details or summary data based on flag.
|
protected ReturnSearchResultBean | populateSearchResult(ReturnSearchResultBean abnSearchResult, RMADataBean rmaDataBean, boolean boolGetDetails)
This method populates the search result for the given return merchandise authorization.
|
protected void | setDetailsFlag(boolean getDetails_)
This method sets the details flag which is used by the createHeaderElement method to populate the details or summary data based on flag.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
protected org.w3c.dom.Element createReturnElement(org.w3c.dom.Element parentElement, RMADataBean rmaDataBean, boolean getDetails) throws ECException
protected org.w3c.dom.Element createUserdataInReturnElement(RMADataBean rmaDataBean, org.w3c.dom.Element returnElement) throws ECException
... Element userDataElement = createWCDocumentElement(returnElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createReturnElement(ReturnSearchResultBean abnSearchResult, org.w3c.dom.Element parentElement) throws ECException
protected org.w3c.dom.Element createHeaderElement(org.w3c.dom.Element parentElement, RMADataBean rmaDataBean) throws ECException
The following sample indicates the structure of the Header element and how it is constructed.
<wc:Header> <wc:RMA_Id>12003</wc:RMA_Id> <!--rmaDataBean.getRmaId() --> <wc:ReturnStatus>PND</wc:ReturnStatus> <!-- rmaDataBean.getStatus() --> <wc:LastModificationDateTime>2006-03-29 16:05:43.76</wc:LastModificationDateTime> <!-- rmaDataBean.getLastUpdate() --> <wc:StoreId>10001</wc:StoreId> <!-- rmaDataBean.getStoreId()--> <wc:CreationDateTime>2004-10-20 13:04:46.108</wc:CreationDateTime> <!-- rmaDataBean.getRmaDate() --> <wc:Customer> . . </wc:Customer> <wc:Contract> . . </wc:Contract> <wc:FulfillmentCenter> . . </wc:FulfillmentCenter> <wc:Refund> . . </wc:Refund> <wc:Comment>Comment for return</wc:Comment> <!-- rmaDataBean.getComments() --> <wc:RMALocked>N</wc:RMALocked> <!-- rmaDataBean.isLocked() --> </wc:Header>
protected org.w3c.dom.Element createLineElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean) throws ECException
protected org.w3c.dom.Element createUserdataInLineElement(RMAItemDataBean rmaItemDataBean, org.w3c.dom.Element lineElement) throws ECException
... Element userDataElement = createWCDocumentElement(lineElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected void createRefundElement(org.w3c.dom.Element headerElement, java.lang.String tag, RMADataBean rmaDataBean) throws ECException
The following sample indicates the structure of the Refund element and how it is constructed.
<wc:Refund> <wc:TotalCredit>105.00000</wc:TotalCredit> <!--rmaDataBean.getTotalCredit() --> <wc:Currency>USD</wc:Currency> <!-- rmaDataBean.getCurrency() --> <wc:Tax>5.00000</wc:Tax> <!-- rmaDataBean.getTotalTaxAmount() --> <wc:PaymentMethodOrderId>10503</wc:PaymentMethodOrderId> <!-- rmaDataBean.getRefundAgainstOrdId()--> <wc:RefundPolicyIdUsed>2000</wc:RefundPolicyIdUsed><!-- rmaDataBean.getPolicyId() --> <wc:RefundPaymentIdUsed>LineOfCredit</wc:RefundPaymentIdUsed> <!-- RefundInstructionData.getRefundMethod() --> <wc:OtherCharges>0</wc:OtherCharges> <!--rmaDataBean.getRmaCharges() --> <wc:AllowedRefundPolicy> . . </wc:AllowedRefundPolicy> </wc:Refund>
protected void createAllowedPaymentElements(org.w3c.dom.Element refundElement, java.lang.String rmaId) throws ECException
The following sample indicates the structure of the AllowedRefundPolicy element and how it is constructed.
<wc:AllowedRefundPolicy> <wc:RefundPolicyId>2001</wc:RefundPolicyId> <!--refundTCInfo[i].getPolicyId() --> <wc:RefundPolicyDescription>Refund using original payment method</wc:RefundPolicyDescription> <!-- refundTCInfo[i].getShortDescription() --> <wc:AllowedRefundPaymentPolicy> <wc:RefundPaymentId>2000</wc:RefundPaymentId> <!-- edpPPaymentInstruction.getPolicyId() --> <wc:RefundPaymentTypeDescription>VISA</wc:RefundPaymentTypeDescription> <!-- curPaymentTCInfo.getPaymentMethodDisplayName() --> </wc:AllowedRefundPaymentPolicy> <wc:CreditLineUsed> <wc:CreditLineID>10005</wc:CreditLineID> <!-- edpPPaymentInstruction.getPolicyId() --> <wc:CreditLineDesc>LineOfCredit</wc:CreditLineDesc> <!-- creditLineName --> </wc:CreditLineUsed> </wc:AllowedRefundPolicy>
protected void createCustomerElement(org.w3c.dom.Element headerElement, RMADataBean rmaDataBean) throws ECSystemException
The following sample indicates the structure of the Customer element and how it is constructed.
<wc:Customer> <wc:MemberId>100</wc:MemberId> <!--rmaDataBean.getMemberId() --> <wc:UserId>buyerBadmin</wc:UserId> <!-- rmaDataBean.getMemberLogonId() --> <wc:Organization>Buyer B Organization</wc:Organization> <!-- rmaDataBean.getOrganizationName()--> </wc:Customer>
protected void createContractElement(org.w3c.dom.Element headerElement, RMADataBean rmaDataBean) throws ECException
The following sample indicates the structure of the Contract element and how it is constructed.
<wc:Contract> <wc:MemberId>10006</wc:MemberId> <!--rmaDataBean.getTradingId() --> <wc:PolicyName>AdvancedB2BDirect Contract number 4567</wc:PolicyName> <!-- rmaDataBean.getContractName() --> </wc:Contract>
protected void createFFMCenterElement(org.w3c.dom.Element headerElement, java.lang.String tagID, RMADataBean rmaDataBean) throws ECException
The following sample indicates the structure of the FulfillmentCenter element and how it is constructed.
<wc:FulfillmentCenter> <wc:FfmCenterId>10006</wc:FfmCenterId> <!--rmaDataBean.getTradingId() --> <wc:FfmCenterName>AdvancedB2BDirect Contract number 4567</wc:FfmCenterName> <!--rmaDataBean.getFfmcenterId() --> <wc:FfmCenterAddress1>12xx Martindale Avenue</wc:FfmCenterAddress1> <!-- rmaDataBean.getFfmcAddress1()--> <wc:FfmCenterAddress2>Suite 9xx</wc:FfmCenterAddress>2 <!-- rmaDataBean.getFfmcAddress2() --> <wc:FfmCenterAddress3>address3</wc:FfmCenterAddress3> <!-- rmaDataBean.getFfmcAddress3()--> <wc:FfmCenterCity>Toolsville</wc:FfmCenterCity> <!-- rmaDataBean.getFfmcCity() --> <wc:FfmCenterState>ON</wc:FfmCenterState> <!-- rmaDataBean.getFfmcState() --> <wc:FfmCenterZip>Lxx 1xx</wc:FfmCenterZip> <!-- rmaDataBean.getFfmcZipCode() --> <wc:FfmCenterCountry>CA</wc:FfmCenterCountry> <!-- rmaDataBean.getFfmcCountry() --> </wc:FulfillmentCenter>
protected void createPhysicalReturnElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean) throws ECSystemException
The following sample indicates the structure of the PhysicalReturn element and how it is constructed.
<wc:PhysicalReturn>100</wc:PhysicalReturn> <!--dbRMAItemCmp.getShouldReceive() -->
protected void createReturnReasonElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean) throws ECException
The following sample indicates the structure of the ReturnReason element and how it is constructed.
<wc:ReturnReason>100</wc:ReturnReason> <!--reason.getCode() -->
protected void createSerialNumberElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean) throws ECSystemException
The following sample indicates the structure of the SerialNumber element and how it is constructed.
<wc:SerialNumber>100</wc:SerialNumber> <!--rmaSerialNumbersDataBean[i].getSerialNumber() -->
protected void createAvailableSerialNumberElement(org.w3c.dom.Element lineElement, RMAItemDataBean rmaItemDataBean) throws ECSystemException
The following sample indicates the structure of the AvailableSerialNumber element and how it is constructed.
<wc:AvailableSerialNumber>100</wc:AvailableSerialNumber> <!--OrderSerialNumbersDataBean[i].getSerialNumber() -->
protected org.w3c.dom.Element createOrderItemIdElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean) throws ECException
The following sample indicates the structure of the OrderItemId element and how it is constructed.
<oa:ItemIds>100</oa:ItemIds> <!- rmaItemDataBean.getOrderItemsId() -->
protected org.w3c.dom.Element createOrderIdElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean) throws ECException
The following sample indicates the structure of the OrderId element and how it is constructed.
<wc:OrderId>100</wc:OrderId> <!-rmaItemDataBean.getOrderItemDataBean().getOrderId() -->
protected void createProductInfoElements(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean) throws ECException
The following sample indicates the structure of the elements and how it is constructed.
<wc:CatEntryId> <wc:ProductSKU>100</wc:ProductSKU> <!-dbCatalogEntry.getPartNumber() --> <wc:ProductName>ProductName</wc:ProductName> <!-dbCatalogEntryDescription.getName() --> </wc:CatEntryId>
protected org.w3c.dom.Element createRefundAmountElement(org.w3c.dom.Element parentElement, RMAItemDataBean rmaItemDataBean) throws ECException
The following sample indicates the structure of the RefundAmount element and how it is constructed.
<wc:RefundAmount> <wc:CreditAmount>100</wc:CreditAmount> <!--rmaItemDataBean.getCreditAmountInEJBType().add(rmaItemDataBean.getAdjustmentCreditInEJBType().toString() --> <wc:CreditAdjustment>100</wc:CreditAdjustment> <!--rmaItemDataBean.getAdjustment() --> </wc:RefundAmount>
protected ReturnSearchResultBean populateSearchResult(ReturnSearchResultBean abnSearchResult, RMADataBean rmaDataBean, boolean boolGetDetails)
protected boolean getDetailsFlag()
protected void setDetailsFlag(boolean getDetails_)