Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 93f48765

Von Jan Büren vor etwa 3 Jahren hinzugefügt

  • ID 93f4876585007a50a0821ebe499a4153930ddc7d
  • Vorgänger 0139c7af
  • Nachfolger e33fddca

ShopConnector::Base POD Doku was die Schnittstelle erwartet

Unterschiede anzeigen:

SL/ShopConnector/Base.pm
sub get_categories { die 'get_categories needs to be implemented' }
sub get_version { die 'get_version needs to be implemented' }
sub get_version {
die 'get_version needs to be implemented';
# has to return a hashref with this structure:
# version has to return the connection error message
my $connect = {};
$connect->{success} = 0 || 1;
$connect->{data}->{version} = '1234';
return $connect;
}
sub set_orderstatus { die 'set_orderstatus needs to be implemented' }
......
=item C<get_version>
IMPORTANT: This call is used to test the connection and if succesful
it returns the version number of the shop. If not succesful the
returning function has to make sure a error string is returned in
the same data structure. Details of the returning hashref:
my $connect = {};
$connect->{success} = 0 || 1;
$connect->{data}->{version} = '1234';
return $connect;
=item C<set_orderstatus>
=back

Auch abrufbar als: Unified diff