Rakuten.pm

filter: Statementstmt 46.2% 62 / 134 Branchbran 27.7% 5 / 18 Conditioncond 23.0% 3 / 13 MC/DCmcdc 16.6% 1 / 6 Subroutinesub 37.2% 16 / 43 Podpod 100% 31 / 31 totaltotal 48.1% 118 / 245 CC 16 SCAR 19.7
CC
16
Cov
42%
get_parsed_orders
30.8
_parse_orders
20.0
api_call
7.8
CRAP 7.2
« Rakuten/Order.pm ↑ Summary Rakuten/Utils.pm »
1 package Marketplace::Rakuten;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use MooX::Types::MooseLike::Base qw(Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use HTTP::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Marketplace::Rakuten::Response;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Marketplace::Rakuten::Order;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use Marketplace::Rakuten::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 =head1 NAME
15  
16 Marketplace::Rakuten - Interface to http://webservice.rakuten.de/documentation
17  
18 =head1 VERSION
19  
20 Version 0.03
21  
22 =head1 CATEGORIES
23  
24 The list of categories for the German marketplace can be downloaded from
25 the L<http://api.rakuten.de/categories/csv/download>.
26  
27 When adding or editing a product, you can pass the
28 C<rakuten_category_id> to C<add_product> or C<edit_product>
29  
30 =cut
31  
32 3 our $VERSION = '0.03';
33  
34  
35 =head1 SYNOPSIS
36  
37 use Marketplace::Rakuten;
38 my $rakuten = Marketplace::Rakuten->new(key => 'xxxxxxx',
39 endpoint => 'http://webservice.rakuten.de/merchants/'
40 );
41 my $res = $rakuten->get_key_info;
42  
43 =head1 ACCESSORS
44  
45 =head2 key
46  
47 The API key (required).
48  
49 =head2 endpoint
50  
51 The URL of the endpoint. Default to http://webservice.rakuten.de/merchants/
52  
53 If you need a specific api version, it could be something like http://webservice.rakuten.de/v2.05/merchants
54  
55 =head2 ua
56  
57 The user-agent. Built lazily.
58  
59 =cut
60  
61 3 has key => (is => 'ro',
62 required => 1,
63 isa => Str);
64  
65 has endpoint => (is => 'ro',
66 2 ▶ default => sub { 'http://webservice.rakuten.de/merchants/' });
Subroutine __ANON__: called CC=1 SCAR=0.0
67  
68 3 has ua => (is => 'lazy');
69  
70 sub _build_ua {
71 2 ▶ return HTTP::Tiny->new;
Subroutine _build_ua: called CC=1 SCAR=0.0
72 }
73  
74  
75 =head1 METHODS
76  
77 =head2 api_call($method, $call, $data);
78  
79 Generic method to do any call. The first argument is the HTTP request
80 method (get or post). The second argument is the path of the api, e.g.
81 (C<misc/getKeyInfo>). The third is the structure to send (an hashref).
82  
83 Return a Marketplace::Rakuten::Response object.
84  
85 The key is injected into the data hashref in any case.
86  
87 =head2 API CALLS
88  
89 =head3 Miscellaneous
90  
91 =over 4
92  
93 =item get_key_info
94  
95 =back
96  
97 =head3 Product creation
98  
99 =over 4
100  
101 =item add_product(\%data)
102  
103 L<http://webservice.rakuten.de/documentation/method/add_product>
104  
105 Mandatory params: C<name>, C<price>, C<description>
106  
107 Recommended: C<product_art_no> (the sku)
108  
109 Return hashref: C<product_id>
110  
111 =item add_product_image(\%data)
112  
113 L<http://webservice.rakuten.de/documentation/method/add_product_image>
114  
115 Mandatory params: C<product_art_no> (the sku) or C<product_id>
116 (rakuten id).
117  
118 Return hashref: C<image_id>
119  
120 =item add_product_variant(\%data)
121  
122 L<http://webservice.rakuten.de/documentation/method/add_product_variant>
123  
124 Mandatory params: C<product_art_no> (the sku) or C<product_id>,
125 C<price>, C<color>, C<label>
126  
127 Return hashref: C<variant_id>
128  
129 =item add_product_variant_definition
130  
131 L<http://webservice.rakuten.de/documentation/method/add_product_variant>
132  
133 Mandatory params: C<product_art_no> (the sku) or C<product_id>
134  
135 Recommended: C<variant_1> Size C<variant_2> Color
136  
137 You need to call this method before trying to upload variants. The
138 data returned are however just a boolean (kind of) success.
139  
140 =item add_product_multi_variant
141  
142 L<http://webservice.rakuten.de/documentation/method/add_product_multi_variant>
143  
144 Mandatory params: C<product_art_no> (the sku) or C<product_id>, C<variation1_type>, C<variation1_value>, C<price>
145  
146 Recommended: C<variant_art_no>
147  
148 Return hashref: C<variant_id>
149  
150 =item add_product_link
151  
152 L<http://webservice.rakuten.de/documentation/method/add_product_link>
153  
154 Mandatory params: C<product_art_no> (the sku) or C<product_id>,
155 C<name> (100 chars), C<url> (255 chars)
156  
157 Return hashref: C<link_id>
158  
159 =item add_product_attribute
160  
161 L<http://webservice.rakuten.de/documentation/method/add_product_attribute>
162  
163 Mandatory params: C<product_art_no> (the sku) or C<product_id>,
164 C<title> (50 chars), C<value>
165  
166 Return hashref: C<attribute_id>
167  
168 =back
169  
170 =cut
171  
172 sub api_call {
173 2 ▶ my ($self, $method, $call, $data) = @_;
Subroutine api_call: called CC=7 SCAR=20.5
Pod documented
174 2 ▶ die "Missing method argument" unless $method;
Branch: 1 branch
BranchTrueFalseTotal
unless $method 0 2 2
175 2 ▶ die "Missing call name" unless $call;
Branch: 1 branch
BranchTrueFalseTotal
unless $call 0 2 2
176  
177 # populate the data and inject the key
178 2 ▶ $data ||= {};
Condition100%2/2
$data ||= {}
l!l
11
MC/DC100%1/1
$data ||= {}
$data
Truth table100%2/2
A
A= $data
Aresult
11
00
179 2 $data->{key} = $self->key;
180  
181  
182 2 my $ua = $self->ua;
183 2 my $url = $self->endpoint;
184 2 $url =~ s/\/$//;
185 2 $call =~ s/^\///;
186 2 $url .= '/' . $call;
187  
188 2 my $response;
189 2 $method = lc($method);
190  
191 2 ▶ if ($method eq 'get') {
Branch: 2 branches
BranchTrueFalseTotal
if ($method eq 'get') { } 2 0 2
elsif ($method eq 'post') { } 0 0 0
192 2 my $params = $ua->www_form_urlencode($data);
193 2 $url .= '?' . $params;
194 2 $response = $ua->get($url);
195 }
196 elsif ($method eq 'post') {
197 0 $response = $ua->post_form($url, $data);
198 }
199 else {
200 0 die "Unsupported method $method";
201 }
202 2 ▶ die "HTTP::Tiny failed to provide a response!" unless $response;
Branch: 1 branch
BranchTrueFalseTotal
unless $response 0 2 2
203 2 return Marketplace::Rakuten::Response->new(%$response);
204 }
205  
206 sub get_key_info {
207 1 ▶ my ($self, $data) = @_;
Subroutine get_key_info: called CC=1 SCAR=0.0
Pod documented
208 1 $self->api_call(get => 'misc/getKeyInfo')
209 }
210  
211 sub add_product {
212 0 ▶ my ($self, $data) = @_;
Subroutine add_product: not called CC=1 SCAR=6.9
Pod documented
213 0 $self->api_call(post => 'products/addProduct', $data);
214 }
215  
216 sub add_product_image {
217 0 ▶ my ($self, $data) = @_;
Subroutine add_product_image: not called CC=1 SCAR=6.9
Pod documented
218 0 $self->api_call(post => 'products/addProductImage', $data);
219 }
220  
221 sub add_product_variant {
222 0 ▶ my ($self, $data) = @_;
Subroutine add_product_variant: not called CC=1 SCAR=6.9
Pod documented
223 0 $self->api_call(post => 'products/addProductVariant', $data);
224 }
225  
226 sub add_product_variant_definition {
227 0 ▶ my ($self, $data) = @_;
Subroutine add_product_variant_definition: not called CC=1 SCAR=6.9
Pod documented
228 0 $self->api_call(post => 'products/addProductVariantDefinition', $data);
229 }
230  
231 sub add_product_multi_variant {
232 0 ▶ my ($self, $data) = @_;
Subroutine add_product_multi_variant: not called CC=1 SCAR=6.9
Pod documented
233 0 $self->api_call(post => 'products/addProductMultiVariant', $data);
234 }
235  
236 sub add_product_link {
237 0 ▶ my ($self, $data) = @_;
Subroutine add_product_link: not called CC=1 SCAR=6.9
Pod documented
238 0 $self->api_call(post => 'products/addProductLink', $data);
239 }
240  
241 sub add_product_attribute {
242 0 ▶ my ($self, $data) = @_;
Subroutine add_product_attribute: not called CC=1 SCAR=6.9
Pod documented
243 0 $self->api_call(post => 'products/addProductAttribute', $data);
244 }
245  
246 # unclear what cross-selling is, so leaving it out.
247  
248 # addProductToShopCategory is referring to an unknown
249 # shop_category_id, leaving it out for now.
250  
251  
252 =head3 Product editing
253  
254 The following methods require and id passed (sku or id) and work the
255 same as for product adding, but no argument is mandatory.
256  
257 They all return just a structure with a boolean success (-1 is
258 failure, 1 is success).
259  
260 =over 4
261  
262 =item edit_product(\%data)
263  
264 Requires C<product_id> or C<product_art_no>
265  
266 =item edit_product_variant(\%data);
267  
268 Requires C<variant_id> or C<variant_art_no>
269  
270 =item edit_product_variant_definition(\%data)
271  
272 Requires C<product_id> or C<product_art_no>
273  
274 =item edit_product_multi_variant(\%data);
275  
276 Requires C<variant_id> or C<variant_art_no>
277  
278 =item edit_product_attribute
279  
280 Requires C<attribute_id>, C<title>, C<value>
281  
282 =back
283  
284 =cut
285  
286 sub edit_product {
287 0 ▶ my ($self, $data) = @_;
Subroutine edit_product: not called CC=1 SCAR=6.9
Pod documented
288 0 $self->api_call(post => 'products/editProduct', $data);
289 }
290  
291 sub edit_product_variant {
292 0 ▶ my ($self, $data) = @_;
Subroutine edit_product_variant: not called CC=1 SCAR=6.9
Pod documented
293 0 $self->api_call(post => 'products/editProductVariant', $data);
294 }
295  
296 sub edit_product_variant_definition {
297 0 ▶ my ($self, $data) = @_;
Subroutine edit_product_variant_definition: not called CC=1 SCAR=6.9
Pod documented
298 0 $self->api_call(post => 'products/editProductVariantDefinition', $data);
299 }
300  
301 sub edit_product_multi_variant {
302 0 ▶ my ($self, $data) = @_;
Subroutine edit_product_multi_variant: not called CC=1 SCAR=6.9
Pod documented
303 0 $self->api_call(post => 'products/editProductMultiVariant', $data);
304 }
305  
306 sub edit_product_attribute {
307 0 ▶ my ($self, $data) = @_;
Subroutine edit_product_attribute: not called CC=1 SCAR=6.9
Pod documented
308 0 $self->api_call(post => 'products/editProductAttribute', $data);
309 }
310  
311 =head3 Product deletion
312  
313 The following methods require just an id or sku. Return a boolean success.
314  
315 =over 4
316  
317 =item delete_product(\%data)
318  
319 Requires C<product_id> or C<product_art_no>
320  
321 =item delete_product_variant(\%data);
322  
323 Requires C<variant_id> or C<variant_art_no>
324  
325 =item delete_product_image(\%data)
326  
327 Requires C<image_id> (returned by add_product_image).
328  
329 =item delete_product_link(\%data);
330  
331 Requires C<link_id> (returned by add_product_link).
332  
333 =item delete_product_attribute
334  
335 Requires C<attribute_id> (returned by add_product_attribute).
336  
337 =back
338  
339 =cut
340  
341 sub delete_product {
342 0 ▶ my ($self, $data) = @_;
Subroutine delete_product: not called CC=1 SCAR=6.9
Pod documented
343 0 $self->api_call(post => 'products/deleteProduct', $data);
344 }
345  
346 sub delete_product_variant {
347 0 ▶ my ($self, $data) = @_;
Subroutine delete_product_variant: not called CC=1 SCAR=6.9
Pod documented
348 0 $self->api_call(post => 'products/deleteProductVariant', $data);
349 }
350  
351 sub delete_product_image {
352 0 ▶ my ($self, $data) = @_;
Subroutine delete_product_image: not called CC=1 SCAR=6.9
Pod documented
353 0 $self->api_call(post => 'products/deleteProductImage', $data);
354 }
355  
356 sub delete_product_link {
357 0 ▶ my ($self, $data) = @_;
Subroutine delete_product_link: not called CC=1 SCAR=6.9
Pod documented
358 0 $self->api_call(post => 'products/deleteProductLink', $data);
359 }
360  
361 sub delete_product_attribute {
362 0 ▶ my ($self, $data) = @_;
Subroutine delete_product_attribute: not called CC=1 SCAR=6.9
Pod documented
363 0 $self->api_call(post => 'products/deleteProductAttribute', $data);
364 }
365  
366 =head3 Orders
367  
368 =over 4
369  
370 =item get_orders(\%params)
371  
372 No argument is required, but you probably want to pass something like
373  
374 { status => pending }
375  
376 See L<http://webservice.rakuten.de/documentation/method/get_orders>
377 for the full list of options.
378  
379 List of statuses:
380  
381 =over 4
382  
383 =item pending
384  
385 =item editable
386  
387 This is what you want to get for importing.
388  
389 =item shipped
390  
391 =item payout
392  
393 Order is paid. Unclear when the status switches to this one.
394  
395 =item cancelled
396  
397 =back
398  
399 The response is paginated and from here you get only the raw data.
400  
401 Use get_parsed_orders to get the full list of objects.
402  
403 =item get_parsed_orders(\%params)
404  
405 The hashref with the parameters is the same of C<get_orders> (which
406 get called). This method takes care of the pagination and return a
407 list of L<Marketplace::Rakuten::Order> objects. You can access the raw
408 structures with $object->order.
409  
410 =item get_pending_orders
411  
412 Shortcut for $self->get_parsed_orders({ status => 'pending' });
413  
414 =item get_editable_orders
415  
416 Shortcut for $self->get_parsed_orders({ status => 'editable' });
417  
418 =cut
419  
420  
421 sub get_orders {
422 1 ▶ my ($self, $data) = @_;
Subroutine get_orders: called CC=1 SCAR=0.0
Pod documented
423 1 $self->api_call(get => 'orders/getOrders', $data);
424 }
425  
426 sub get_pending_orders {
427 1 ▶ my ($self) = @_;
Subroutine get_pending_orders: called CC=1 SCAR=0.0
Pod documented
428 1 return $self->get_parsed_orders({ status => 'pending' });
429 }
430  
431 sub get_editable_orders {
432 0 ▶ my ($self) = @_;
Subroutine get_editable_orders: not called CC=1 SCAR=6.9
Pod documented
433 0 return $self->get_parsed_orders({ status => 'editable' });
434 }
435  
436  
437 sub get_parsed_orders {
438 1 ▶ my ($self, $params) = @_;
Subroutine get_parsed_orders: called CC=7 SCAR=34.3
Pod documented
439 1 ▶ $params ||= {};
Condition50%1/2
$params ||= {}
l!l
10
MC/DC0%0/1
$params ||= {}
$params
Truth table50%1/2
A
A= $params
Aresult
11
00
440 1 my $res = $self->get_orders($params);
441 1 ▶ die "Couldn't retrieve orders: " . Dumper($res->errors)
Branch: 1 branch
BranchTrueFalseTotal
unless $res->is_success 1 0 1
442 unless $res->is_success;
443 0 my $data = $res->data;
444 0 my @orders = $self->_parse_orders($data);
445 0 ▶ while ($data->{orders}->{paging}->{pages} and
Branch: 1 branch
BranchTrueFalseTotal
if ($data->{"orders"}{"paging"}{"pages"} and $data->{"orders"}{"paging"}{"page"} and $data->{"orders"}{"paging"}{"per_page"} and $data->{"orders"}{"paging"}{"pages"} > $data->{"orders"}{"paging"}{"page"}) 0 0 0
Condition0%0/9
$data->{"orders"}{"paging"}{"pages"} and $data->{"orders"}{"paging"}{"page"} and $data->{"orders"}{"paging"}{"per_page"} and $data->{"orders"}{"paging"}{"pages"} > $data->{"orders"}{"paging"}{"page"}
!ll&&!rl&&r
000
$data->{"orders"}{"paging"}{"pages"} and $data->{"orders"}{"paging"}{"page"} and $data->{"orders"}{"paging"}{"per_page"}
!ll&&!rl&&r
000
$data->{"orders"}{"paging"}{"pages"} and $data->{"orders"}{"paging"}{"page"}
!ll&&!rl&&r
000
MC/DC0%0/4
$data->{"orders"}{"paging"}{"pages"} and $data->{"orders"}{"paging"}{"page"} and $data->{"orders"}{"paging"}{"per_page"} and $data->{"orders"}{"paging"}{"pages"} > $data->{"orders"}{"paging"}{"page"}
$data->{"orders"}{"paging"}{"pages"} $data->{"orders"}{"paging"}{"page"} $data->{"orders"}{"paging"}{"per_page"} $data->{"orders"}{"paging"}{"pages"} > $data->{"orders"}{"paging"}{"page"}
Truth table0%0/5
A and B and C and D
A= $data->{"orders"}{"paging"}{"pages"}B= $data->{"orders"}{"paging"}{"page"}C= $data->{"orders"}{"paging"}{"per_page"}D= $data->{"orders"}{"paging"}{"pages"} > $data->{"orders"}{"paging"}{"page"}
ABCDresult
0XXX0
10XX0
110X0
11100
11111
446 $data->{orders}->{paging}->{page} and
447 $data->{orders}->{paging}->{per_page} and
448 $data->{orders}->{paging}->{pages} > $data->{orders}->{paging}->{page}) {
449 0 my $next_page = $data->{orders}->{paging}->{page} + 1;
450 0 my $per_page = $data->{orders}->{paging}->{per_page};
451 0 $res = $self->get_orders({
452 %$params,
453 page => $next_page,
454 per_page => $per_page
455 });
456 0 $data = $res->data;
457 0 push @orders, $self->_parse_orders($data);
458 }
459 0 return @orders;
460 }
461  
462 sub _parse_orders {
463 0 ▶ my ($self, $struct) = @_;
Subroutine _parse_orders: not called CC=4 SCAR=30.0
464 0 my @out;
465 0 ▶ if ($struct->{orders}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($struct->{"orders"}) 0 0 0
466 0 ▶ if (my $orders = $struct->{orders}->{order}) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $orders = $struct->{"orders"}{"order"}) 0 0 0
467 0 foreach my $order (@$orders) {
468 0 my $struct = { %$order };
469 0 Marketplace::Rakuten::Utils::turn_empty_hashrefs_into_empty_strings($struct);
470 0 push @out, Marketplace::Rakuten::Order->new(order => $struct);
471 }
472 }
473 }
474 0 return @out;
475 }
476  
477  
478 =item set_order_shipped(\%params)
479  
480 Required parameter: order_no (the rakuten's order number).
481  
482 Accepted parameters:
483  
484 =over 4
485  
486 =item dhl (boolean, true if Rakuten-DHL-Rahmenvertrag is used)
487  
488 =item carrier
489  
490 =item tracking_number
491  
492 =item tracking_url
493  
494 =back
495  
496 =cut
497  
498 sub set_order_shipped {
499 0 ▶ my ($self, $data) = @_;
Subroutine set_order_shipped: not called CC=1 SCAR=6.9
Pod documented
500 0 $self->api_call(post => 'orders/setOrderShipped', $data);
501 }
502  
503 =item set_order_cancelled(\%params)
504  
505 Required paramater: C<order_no> (rakuten's order number)
506  
507 Optional: C<comment>
508  
509 =cut
510  
511 sub set_order_cancelled {
512 0 ▶ my ($self, $data) = @_;
Subroutine set_order_cancelled: not called CC=1 SCAR=6.9
Pod documented
513 0 $self->api_call(post => 'orders/setOrderCancelled', $data);
514 }
515  
516 =item set_order_returned(\%params)
517  
518 Required paramater: C<order_no> (rakuten's order number) and C<type>
519 (C<fully> or C<partly>):
520  
521 L<http://webservice.rakuten.de/documentation/method/set_order_returned>
522  
523 =back
524  
525 =cut
526  
527  
528 sub set_order_returned {
529 0 ▶ my ($self, $data) = @_;
Subroutine set_order_returned: not called CC=1 SCAR=6.9
Pod documented
530 0 $self->api_call(post => 'orders/setOrderReturned', $data);
531 }
532  
533 =head3 Category management
534  
535 =over 4
536  
537 =item add_shop_category(\%params)
538  
539 Required parameter: C<name>
540  
541 L<http://webservice.rakuten.de/documentation/method/add_shop_category>
542  
543 Returned: C<shop_category_id>
544  
545 =item edit_shop_category(\%params)
546  
547 Required parameter C<shop_category_id> or C<external_shop_category_id>
548  
549 L<http://webservice.rakuten.de/documentation/method/edit_shop_category>
550  
551 =item get_shop_categories
552  
553 No mandatory parameter.
554  
555 L<http://webservice.rakuten.de/documentation/method/get_shop_categories>
556  
557 =item delete_shop_category
558  
559 Required parameter C<shop_category_id> or C<external_shop_category_id>
560  
561 L<http://webservice.rakuten.de/documentation/method/delete_shop_category>
562  
563 =item add_product_to_shop_category
564  
565 Required parameters: C<shop_category_id> or C<external_shop_category_id>,
566 C<product_id> or C<product_art_no> (Rakuten's id or our sku).
567  
568 L<http://webservice.rakuten.de/documentation/method/add_product_to_shop_category>
569  
570 =back
571  
572 =cut
573  
574 sub add_shop_category {
575 0 ▶ my ($self, $data) = @_;
Subroutine add_shop_category: not called CC=1 SCAR=6.9
Pod documented
576 0 $self->api_call(post => 'categories/addShopCategory', $data);
577 }
578  
579 sub edit_shop_category {
580 0 ▶ my ($self, $data) = @_;
Subroutine edit_shop_category: not called CC=1 SCAR=6.9
Pod documented
581 0 $self->api_call(post => 'categories/editShopCategory', $data);
582 }
583  
584 sub get_shop_categories {
585 0 ▶ my ($self, $data) = @_;
Subroutine get_shop_categories: not called CC=1 SCAR=6.9
Pod documented
586 0 $self->api_call(get => 'categories/getShopCategories', $data);
587 }
588  
589 sub delete_shop_category {
590 0 ▶ my ($self, $data) = @_;
Subroutine delete_shop_category: not called CC=1 SCAR=6.9
Pod documented
591 0 $self->api_call(post => 'categories/deleteShopCategory', $data);
592 }
593  
594 sub add_product_to_shop_category {
595 0 ▶ my ($self, $data) = @_;
Subroutine add_product_to_shop_category: not called CC=1 SCAR=6.9
Pod documented
596 0 $self->api_call(post => 'products/addProductToShopCategory', $data);
597 }
598  
599 =head1 AUTHOR
600  
601 Marco Pessotto, C<< <melmothx at gmail.com> >>
602  
603 =head1 BUGS
604  
605 Please report any bugs or feature requests to C<bug-marketplace-rakuten at rt.cpan.org>, or through
606 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Marketplace-Rakuten>. I will be notified, and then you'll
607 automatically be notified of progress on your bug as I make changes.
608  
609  
610  
611  
612 =head1 SUPPORT
613  
614 You can find documentation for this module with the perldoc command.
615  
616 perldoc Marketplace::Rakuten
617  
618  
619 You can also look for information at:
620  
621 =over 4
622  
623 =item * RT: CPAN's request tracker (report bugs here)
624  
625 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marketplace-Rakuten>
626  
627 =item * AnnoCPAN: Annotated CPAN documentation
628  
629 L<http://annocpan.org/dist/Marketplace-Rakuten>
630  
631 =item * CPAN Ratings
632  
633 L<http://cpanratings.perl.org/d/Marketplace-Rakuten>
634  
635 =item * Search CPAN
636  
637 L<http://search.cpan.org/dist/Marketplace-Rakuten/>
638  
639 =back
640  
641  
642 =head1 ACKNOWLEDGEMENTS
643  
644  
645 =head1 LICENSE AND COPYRIGHT
646  
647 Copyright 2015 Marco Pessotto.
648  
649 This program is free software; you can redistribute it and/or modify it
650 under the terms of the the Artistic License (2.0). You may obtain a
651 copy of the full license at:
652  
653 L<http://www.perlfoundation.org/artistic_license_2_0>
654  
655 Any use, modification, and distribution of the Standard or Modified
656 Versions is governed by this Artistic License. By using, modifying or
657 distributing the Package, you accept this license. Do not use, modify,
658 or distribute the Package, if you do not accept this license.
659  
660 If your Modified Version has been derived from a Modified Version made
661 by someone other than you, you are nevertheless required to ensure that
662 your Modified Version complies with the requirements of this license.
663  
664 This license does not grant you the right to use any trademark, service
665 mark, tradename, or logo of the Copyright Holder.
666  
667 This license includes the non-exclusive, worldwide, free-of-charge
668 patent license to make, have made, use, offer to sell, sell, import and
669 otherwise transfer the Package with respect to any patent claims
670 licensable by the Copyright Holder that are necessarily infringed by the
671 Package. If you institute patent litigation (including a cross-claim or
672 counterclaim) against any party alleging that the Package constitutes
673 direct or contributory patent infringement, then this Artistic License
674 to you shall terminate on the date that such litigation is filed.
675  
676 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
677 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
678 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
679 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
680 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
681 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
682 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
683 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
684  
685  
686 =cut
687  
688 3 1; # End of Marketplace::Rakuten
« Rakuten/Order.pm ↑ Summary Rakuten/Utils.pm »