<<

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 using the modern Koha::File::Transport system. Supports SFTP, FTP, and local directory operations through a unified interface.

METHODS

new

    Creates an object of Edifact::Transport requires to be passed the id
    identifying the relevant edi vendor account. The account must have a
    file_transport_id configured to use the modern transport system.

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 configured file transport

upload_messages

   passed an array of messages will upload them to the supplier site
   using the configured file transport

ingest

   loads downloaded files into the database

_get_file_ext

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

message_hash

   creates the message hash structure for storing in the database

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

<<