Shopify/Model/Order/Risk.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 45 CC 1 SCAR 6.9
CC
1
Cov
0%
parent
2.0
fields
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use WWW::Shopify;
7  
8 package WWW::Shopify::Model::Order::Risk;
9 use parent "WWW::Shopify::Model::Item";
10  
11 sub parent { return 'WWW::Shopify::Model::Order'; }
12 my $fields; sub fields { return $fields; }
13 BEGIN { $fields = {
14 "order_id" => new WWW::Shopify::Field::Relation::Parent('WWW::Shopify::Model::Order'),
15 "message" => new WWW::Shopify::Field::String(),
16 "recommendation" => new WWW::Shopify::Field::String::Enum([qw(cancel investigate accept)]),
17 "score" => new WWW::Shopify::Field::Float(),
18 "id" => new WWW::Shopify::Field::Identifier(),
19 "cause_cancel" => new WWW::Shopify::Field::Boolean(),
20 "source" => new WWW::Shopify::Field::String(),
21 "score" => new WWW::Shopify::Field::Float(),
22 "display" => new WWW::Shopify::Field::Boolean()
23 }; }
24  
25 sub countable { return undef; }
26 sub read_scope { return "read_orders"; }
27 sub write_scope { return "write_orders"; }
28  
29 sub included_in_parent { return 0; }
30  
31 eval(__PACKAGE__->generate_accessors); die $@ if $@;
32  
33 1;