1 package SL::ShopConnector::Base;
5 use parent qw(SL::DB::Object);
6 use Rose::Object::MakeMethods::Generic (
7 scalar => [ qw(config) ],
10 sub get_one_order { die 'get_one_order needs to be implemented' }
12 sub get_new_orders { die 'get_order needs to be implemented' }
14 sub update_part { die 'update_part needs to be implemented' }
16 sub get_article { die 'get_article needs to be implemented' }
18 sub get_categories { die 'get_categories needs to be implemented' }
22 die 'get_version needs to be implemented';
23 # has to return a hashref with this structure:
24 # version has to return the connection error message
26 $connect->{success} = 0 || 1;
27 $connect->{data}->{version} = '1234';
31 sub set_orderstatus { die 'set_orderstatus needs to be implemented' }
41 SL::ShopConnectorBase - this is the base class for shop connectors
48 =head1 AVAILABLE METHODS
52 =item C<get_one_order>
54 =item C<get_new_orders>
60 =item C<get_categories>
64 IMPORTANT: This call is used to test the connection and if succesful
65 it returns the version number of the shop. If not succesful the
66 returning function has to make sure a error string is returned in
67 the same data structure. Details of the returning hashref:
70 $connect->{success} = 0 || 1;
71 $connect->{data}->{version} = '1234';
74 =item C<set_orderstatus>
80 L<SL::ShopConnector::ALL>
88 G. Richardson <lt>information@kivitendo-premium.deE<gt>
89 W. Hahn E<lt>wh@futureworldsearch.netE<gt>