Class UpdateTARefundRecordsCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, UpdateTARefundCmd,,,,,,

    public class UpdateTARefundRecordsCmdImpl
    extends TaskCommandImpl
    implements UpdateTARefundCmd
    The default implementation of the UpdateTARefundCmd task command.


    • 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.

    This command uses the following AccessBeans:

    Task commands called:

    See Also:
    Serialized Form
    • Constructor Detail

      • UpdateTARefundRecordsCmdImpl

        public UpdateTARefundRecordsCmdImpl()
    • Method Detail

      • reset

        public void reset()
        This method resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters. Then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setOrder

        public void setOrder(OrderAccessBean ab)
        This method sets the order associated with the Return Merchandise Authorization (RMA) record.
        Specified by:
        setOrder in interface UpdateTARefundCmd
        ab - The OrderAccessBean for the order.
      • setRefundAmount

        public void setRefundAmount(java.math.BigDecimal refundAmount)
        This method sets the refundAmount property of the command.
        Specified by:
        setRefundAmount in interface UpdateTARefundCmd
        refundAmount - A BigDecimal that specifies the amount to be refunded in the currency specified in the Return Merchandise Authorization (RMA).
      • setRMA

        public void setRMA(RMAAccessBean ab)
        This method sets the RMA AccessBean representing the Return Merchandise Authorization record that authorizes . the return of the merchandise.
        Specified by:
        setRMA in interface UpdateTARefundCmd
        ab - The RMA AccessBean for the Return Merchandise Authorization record.