Koha::Edifact::Transport
my $download = Koha::Edifact::Transport->new( $vendor_edi_account_id ); $downlowd->download_messages('QUOTE');
Module that handles Edifact download and upload transport currently can use sftp or ftp Or FILE to access a local directory (useful for testing)
Creates an object of Edifact::Transport requires to be passed the id identifying the relevant edi vendor account
getter and setter for the working_directory attribute
called with the message type to download will perform the download using the appropriate transport method
passed an array of messages will upload them to the supplier site
called by download_messages to perform the download using SFTP
loads downloaded files into the database
called by download_messages to perform the download using FTP
called by upload_messages to perform the upload using ftp
called by upload_messages to perform the upload using sftp
internal routine to halt operation on error and supply a stacktrace
internal method returning standard suffix for file names according to message type
sets the direct ingest flag so that the object reads files from the local file system useful in debugging
Colin Campbell <colin.campbell@ptfs-europe.com>
Copyright 2014,2015 PTFS-Europe Ltd This program is free software, You may redistribute it under under the terms of the GNU General Public License