com.ibm.commerce.payment.commands
Interface UpdateTARefundCmd
- All Superinterfaces:
- TaskCommand
- All Known Implementing Classes:
- UpdateTARefundRecordsCmdImpl
- public interface UpdateTARefundCmd
- extends TaskCommand
Update Trading Agreement's refund amount for the given order and Return Merchandise Authorization (RMA).
Parameters:
Parameter Name |
Type |
Descriptions |
tradingId |
Long |
The ID of the Trading Agreement |
RMA |
RMAAccessBean |
The RMAAccessBean of the RMA |
order |
OrderAccessBean |
The OrderAccessBean of the order associated with the RMA |
refundAmount |
BigDecimal |
The Refund Amount in the currency specified in the RMA |
Assumption:
- All return items within an RMA is against the same Trading Agreement.
Behavior:
- The default implementation inserts a row into the TRDREFAMT table for this Trading ID and RMA ID ONLY if this Trading Agreement has a RightToBuy by Amount TC or ObligationToBuy by Amount TC or both.
- Refunds may be made using a currency that is different from the currency specified for the RightToBuy by Amount TC or ObligationToBuy by Amount TC (However, the two Terms and Conditions must have the same currency if both exist within the same Trading Agreement.)
- The default implementation converts the refund amount to the currency specified for the RightToBuy TC or ObligationToBuy TC and stores the converted amount in the TRDREFAMT Table. The command throws an ECApplicationException if the required currency conversion is not available or if the conversion failed.
Error View Name:
ErrorCodes:
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName
The default implementation of this command. |
static java.lang.String |
ERRTASK_NAME
Name of the Error View for this command. |
static java.lang.String |
NAME
The name of this command. |
Method Summary |
void |
setOrder(OrderAccessBean abOrder)
Sets the order associated with the Return Merchandise Authorization (RMA) record. |
void |
setRefundAmount(java.math.BigDecimal refundAmount)
Sets the refundAmount property of the command. |
void |
setRMA(RMAAccessBean ab)
Sets the RMA AccessBean representing the Return Merchandise Authorization record that authorizes the return of the merchandise. |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- The name of this command.
- See Also:
- Constant Field Values
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
- The default implementation of this command.
- See Also:
- Constant Field Values
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
- Name of the Error View for this command. The constant value of this field is "UpdateTARefundErrorView".
- See Also:
- Constant Field Values
setOrder
public void setOrder(OrderAccessBean abOrder)
- Sets the order associated with the Return Merchandise Authorization (RMA) record.
-
- Parameters:
- abOrder - the OrderAccessBean for the order
setRefundAmount
public void setRefundAmount(java.math.BigDecimal refundAmount)
- Sets the refundAmount property of the command.
-
- Parameters:
- refundAmount - the amount to be refunded in the currency specified in the Return Merchandise Authorization (RMA)
setRMA
public void setRMA(RMAAccessBean ab)
- Sets the RMA AccessBean representing the Return Merchandise Authorization record that authorizes the return of the merchandise.
-
- Parameters:
- ab - the RMA AccessBean for the Return Merchandise Authorization record
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.