Shopify/Model/RecurringApplicationCharge.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::RecurringApplicationCharge;
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 "trial_days" => new WWW::Shopify::Field::Int(0, 31),
24 "trial_ends_on" => new WWW::Shopify::Field::Date(),
25 "updated_at" => new WWW::Shopify::Field::Date(),
26 "capped_amount" => new WWW::Shopify::Field::Money(),
27 "terms" => new WWW::Shopify::Field::String(),
28 "confirmation_url" => new WWW::Shopify::Field::String::URL()};
29 }
30 sub countable() { return undef; }
31 sub creation_minimal { return qw(name price return_url); }
32 sub creation_filled { return qw(id created_at confirmation_url); }
33 sub update_filled { return qw(updated_at); }
34 sub actions { return qw(activate); }
35  
36 eval(__PACKAGE__->generate_accessors); die $@ if $@;
37  
38 1;