Package org.compiere.util
Class GenericPaymentExport
java.lang.Object
org.compiere.util.GenericPaymentExport
- All Implemented Interfaces:
PaymentExport
Generic Payment Export.
Sample implementation of Payment Export Interface - brought here from MPaySelectionCheck
Sample implementation of Payment Export Interface - brought here from MPaySelectionCheck
- Author:
- Jorg Janke Contributors: Carlos Ruiz - GlobalQSS - FR 3132033 - Make payment export class configurable per bank
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
exportToFile
(MPaySelectionCheck[] checks, boolean depositBatch, String paymentRule, File file, StringBuffer err) Export to FileGet the content type from plugin e.g.boolean
Default if supportsDepositBatch is true and supportsSeparateBooking is trueGet the filename prefix from plugin e.g.Get the filename suffix from plugin e.g. ".xml"boolean
Plugin supports deposit batchboolean
Plugin supports booking payments separate on bank statement (no deposit batch)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.compiere.util.PaymentExport
exportToFile
-
Constructor Details
-
GenericPaymentExport
public GenericPaymentExport()
-
-
Method Details
-
exportToFile
public int exportToFile(MPaySelectionCheck[] checks, boolean depositBatch, String paymentRule, File file, StringBuffer err) Export to File- Specified by:
exportToFile
in interfacePaymentExport
- Parameters:
checks
- array of checksdepositBatch
- book the payments as single positionpaymentRule
- selected payment rulefile
- file to export checks- Returns:
- number of lines
-
getFilenamePrefix
Description copied from interface:PaymentExport
Get the filename prefix from plugin e.g. "SEPA-Credit-Transfer-"- Specified by:
getFilenamePrefix
in interfacePaymentExport
- Returns:
- prefix for filename
-
getFilenameSuffix
Description copied from interface:PaymentExport
Get the filename suffix from plugin e.g. ".xml"- Specified by:
getFilenameSuffix
in interfacePaymentExport
- Returns:
- suffix for filename
-
getContentType
Description copied from interface:PaymentExport
Get the content type from plugin e.g. "text/xml" or "text/csv"- Specified by:
getContentType
in interfacePaymentExport
- Returns:
- content type delivered to browser
-
supportsDepositBatch
public boolean supportsDepositBatch()Description copied from interface:PaymentExport
Plugin supports deposit batch- Specified by:
supportsDepositBatch
in interfacePaymentExport
- Returns:
- true if supported
-
supportsSeparateBooking
public boolean supportsSeparateBooking()Description copied from interface:PaymentExport
Plugin supports booking payments separate on bank statement (no deposit batch)- Specified by:
supportsSeparateBooking
in interfacePaymentExport
- Returns:
- true if supported
-
getDefaultDepositBatch
public boolean getDefaultDepositBatch()Description copied from interface:PaymentExport
Default if supportsDepositBatch is true and supportsSeparateBooking is true- Specified by:
getDefaultDepositBatch
in interfacePaymentExport
- Returns:
- true if deposit batch should be selected on default, false if deposit batch should not be selected
-