The applyRefunds actor-chain is used to apply refund type and value to the order. The server-side sortedRefundMethodList is updated by the UI with the values of the amounts passed in, in the order in which they are passed in. As such, the inputs for the applyRefund actor-chain should match the sortedRefundMethodList.

Parameter

Description

returnMethodListSize

The array size to retrieve from the JSP. The array size corresponds to the number of refund methods available.

Applying Refund Values Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" –d
"{\"items\":{\"atg-rest-class-type\":\"java.util.ArrayList\",
\"atg-rest-values\":[{\"atg-rest-class-type\":
\"atg.commerce.csr.returns.RefundMethod\",\"amount\":\"46.31\"},
{\"atg-rest-class-type\":
\"atg.commerce.csr.returns.RefundMethod\",\"amount\":\"5.00\"}]},
\"returnMethodListSize\" : \"2\"}" "http://localhost:8180/rest/model/atg/
commerce/custsvc/returns/CSRReturnsActor/applyRefunds"

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices