Package org.compiere.util
Class GenericPaymentExport
- java.lang.Object
-
- org.compiere.util.GenericPaymentExport
-
- All Implemented Interfaces:
PaymentExport
public class GenericPaymentExport extends Object implements PaymentExport
Generic Payment Export 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
Constructors Constructor Description GenericPaymentExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intexportToFile(MPaySelectionCheck[] checks, boolean depositBatch, String paymentRule, File file, StringBuffer err)Export to FileStringgetContentType()Get the content type from plugin e.g.booleangetDefaultDepositBatch()Default if supportsDepositBatch is true and supportsSeparateBooking is trueStringgetFilenamePrefix()Get the filename prefix from plugin e.g.StringgetFilenameSuffix()Get the filename suffix from plugin e.g. ".xml"booleansupportsDepositBatch()Plugin supports deposit batchbooleansupportsSeparateBooking()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
-
-
-
-
Method Detail
-
exportToFile
public int exportToFile(MPaySelectionCheck[] checks, boolean depositBatch, String paymentRule, File file, StringBuffer err)
Export to File- Specified by:
exportToFilein interfacePaymentExport- Parameters:
checks- array of checksdepositBatch- book the payments as single positionpaymentRule- selected payment rulefile- file to export checks- Returns:
- number of lines
-
getFilenamePrefix
public String getFilenamePrefix()
Description copied from interface:PaymentExportGet the filename prefix from plugin e.g. "SEPA-Credit-Transfer-"- Specified by:
getFilenamePrefixin interfacePaymentExport- Returns:
- prefix for filename
-
getFilenameSuffix
public String getFilenameSuffix()
Description copied from interface:PaymentExportGet the filename suffix from plugin e.g. ".xml"- Specified by:
getFilenameSuffixin interfacePaymentExport- Returns:
- suffix for filename
-
getContentType
public String getContentType()
Description copied from interface:PaymentExportGet the content type from plugin e.g. "text/xml" or "text/csv"- Specified by:
getContentTypein interfacePaymentExport- Returns:
- content type delivered to browser
-
supportsDepositBatch
public boolean supportsDepositBatch()
Description copied from interface:PaymentExportPlugin supports deposit batch- Specified by:
supportsDepositBatchin interfacePaymentExport- Returns:
- true if supported
-
supportsSeparateBooking
public boolean supportsSeparateBooking()
Description copied from interface:PaymentExportPlugin supports booking payments separate on bank statement (no deposit batch)- Specified by:
supportsSeparateBookingin interfacePaymentExport- Returns:
- true if supported
-
getDefaultDepositBatch
public boolean getDefaultDepositBatch()
Description copied from interface:PaymentExportDefault if supportsDepositBatch is true and supportsSeparateBooking is true- Specified by:
getDefaultDepositBatchin interfacePaymentExport- Returns:
- true if deposit batch should be selected on default, false if deposit batch should not be selected
-
-