<<

NAME

Koha::Edifact::Transport

SYNOPSIS

my $download = Koha::Edifact::Transport->new( $vendor_edi_account_id ); $downlowd->download_messages('QUOTE');

DESCRIPTION

Module that handles Edifact download and upload transport currently can use sftp or ftp Or FILE to access a local directory (useful for testing)

METHODS

new

    Creates an object of Edifact::Transport requires to be passed the id
    identifying the relevant edi vendor account

working_directory

    getter and setter for the working_directory attribute

download_messages

    called with the message type to download will perform the download
    using the appropriate transport method

upload_messages

   passed an array of messages will upload them to the supplier site

sftp_download

   called by download_messages to perform the download using SFTP

ingest

   loads downloaded files into the database

ftp_download

   called by download_messages to perform the download using FTP

ftp_upload

  called by upload_messages to perform the upload using ftp

sftp_upload

  called by upload_messages to perform the upload using sftp

_abort_download

   internal routine to halt operation on error and supply a stacktrace

_get_file_ext

   internal method returning standard suffix for file names
   according to message type

set_transport_direct

  sets the direct ingest flag so that the object reads files from
  the local file system useful in debugging

AUTHOR

   Colin Campbell <colin.campbell@ptfs-europe.com>

COPYRIGHT

   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

<<