projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0139c7a
)
ShopConnector::Base POD Doku was die Schnittstelle erwartet
author
Jan Büren
<jan@kivitendo.de>
Tue, 26 Oct 2021 12:28:11 +0000
(14:28 +0200)
committer
Jan Büren
<jan@kivitendo.de>
Fri, 11 Feb 2022 14:19:56 +0000
(15:19 +0100)
SL/ShopConnector/Base.pm
patch
|
blob
|
history
diff --git
a/SL/ShopConnector/Base.pm
b/SL/ShopConnector/Base.pm
index
56127e4
..
68c39d1
100644
(file)
--- a/
SL/ShopConnector/Base.pm
+++ b/
SL/ShopConnector/Base.pm
@@
-17,7
+17,16
@@
sub get_article { die 'get_article needs to be implemented' }
sub get_categories { die 'get_categories needs to be implemented' }
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' }
sub set_orderstatus { die 'set_orderstatus needs to be implemented' }
@@
-52,6
+61,16
@@
__END__
=item C<get_version>
=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
=item C<set_orderstatus>
=back