com.retek.component.payment.integration.settlement
Class PaymentSettlementBatch

java.lang.Object
  extended bycom.retek.component.rcombatch.RcomAbstractBatchProgram
      extended bycom.retek.component.payment.integration.settlement.PaymentSettlementBatch

public class PaymentSettlementBatch
extends RcomAbstractBatchProgram

This batch process settles for the amount that was shipped or settles for the amount that was returned. The settlement process determines what has shipped or been returned for a customer order and settles on the appropriate amount related to the transaction. For shipments, the customer is charged once for the value of the merchandise, shipping costs, taxes and value added services. For returns, the customer is refunded merchandise and taxes for the merchandise. The rest of the values are determined whether to be refunded based on the return reason in the system. The batch process consolidates payments, either charged or refunded for a given day, into a single payment.Once the consolidation is complete, the batch process performs one of the following:

No dependencies. Can be run independent of any other batch process.

Batch command line arguments:

userId a user id used for audit purposes
directoryPath where files are created

Retek Inc. Copyright (c) 2003


Field Summary
 
Fields inherited from class com.retek.component.rcombatch.RcomAbstractBatchProgram
DEFAULT_FILE_WORK_UNIT_SIZE, DEFAULT_WORK_UNIT_SIZE, DIRECTORY_PATH_ARGUMENT_KEY, FILE_WORK_UNIT_SIZE_ARGUMENT_KEY, USER_ID_ARGUMENT_KEY, WORK_UNIT_SIZE_ARGUMENT_KEY
 
Constructor Summary
PaymentSettlementBatch()
           
 
Method Summary
 void addObserver(PaymentSettlementBatchObserver rebo)
           
 void doBatchProcess(java.util.Map args)
          Placeholder for the implementation's batch process.
protected  RetekLogger getLogger()
          Placeholder for the implementation's logger initialization.
static void main(java.lang.String[] args)
           
 void runBatch(java.util.Map args, User user, RDate createTime, java.io.File exportDirectory)
           
 
Methods inherited from class com.retek.component.rcombatch.RcomAbstractBatchProgram
addFileWorkUnitArgument, addRequiredDirectoryPathArgument, addRequiredUserArgument, addWorkUnitArgument, getBatchResult, getBatchUser, getExitValue, getFileWorkUnitSize, getWorkUnitSize, promoteToCompleteFailure, promoteToPartialFailure, runBatchProcessCalledFromMain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymentSettlementBatch

public PaymentSettlementBatch()
Method Detail

doBatchProcess

public void doBatchProcess(java.util.Map args)
Description copied from class: RcomAbstractBatchProgram
Placeholder for the implementation's batch process.

Specified by:
doBatchProcess in class RcomAbstractBatchProgram
Parameters:
args - map of (String to String) batch execution arguments

runBatch

public void runBatch(java.util.Map args,
                     User user,
                     RDate createTime,
                     java.io.File exportDirectory)
              throws java.io.IOException,
                     FixedWidthFormatterException,
                     SystemException,
                     BusinessException
Throws:
java.io.IOException
FixedWidthFormatterException
SystemException
BusinessException

main

public static void main(java.lang.String[] args)

addObserver

public void addObserver(PaymentSettlementBatchObserver rebo)

getLogger

protected RetekLogger getLogger()
Description copied from class: RcomAbstractBatchProgram
Placeholder for the implementation's logger initialization.

Specified by:
getLogger in class RcomAbstractBatchProgram


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28