Shopify/Model/ApplicationCharge.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%
fields
2.0
BEGIN
2.0
countable
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::ApplicationCharge;
9 use parent "WWW::Shopify::Model::Item";
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "name" => new WWW::Shopify::Field::String::Words(1,3),
14 "price" => new WWW::Shopify::Field::Money(),
15 "return_url" => new WWW::Shopify::Field::String::URL(),
16 "activated_on" => new WWW::Shopify::Field::String::Words(1, 3),
17 "billing_on" => new WWW::Shopify::Field::Date(),
18 "cancelled_on" => new WWW::Shopify::Field::Date(),
19 "created_at" => new WWW::Shopify::Field::Date(),
20 "id" => new WWW::Shopify::Field::Identifier(),
21 "status" => new WWW::Shopify::Field::String::Enum(["pending", "accepted", "declined"]),
22 "test" => new WWW::Shopify::Field::Boolean(),
23 "updated_at" => new WWW::Shopify::Field::Date(),
24 "confirmation_url" => new WWW::Shopify::Field::String::URL()
25 }; }
26 sub countable { return undef; }
27 sub actions { return qw(activate); }
28  
29 sub creation_minimal { return qw(name price return_url); }
30 sub creation_filled { return qw(id created_at confirmation_url); }
31 sub update_filled { return qw(updated_at); }
32  
33 eval(__PACKAGE__->generate_accessors); die $@ if $@;
34  
35 1;