Shopify/Model/Order/Fulfillment/FulfillmentEvent.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
url_plural
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::Fulfillment::FulfillmentEvent;
9 use parent "WWW::Shopify::Model::Item";
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "id" => new WWW::Shopify::Field::Identifier(),
14 "shop_id" => new WWW::Shopify::Field::Identifier(),
15 "fulfillment_id" => new WWW::Shopify::Field::Relation::Parent('WWW::Shopify::Model::Order::Fulfillment'),
16 "created_at" => new WWW::Shopify::Field::Date(),
17 "updated_at" => new WWW::Shopify::Field::Date(),
18 "status" => new WWW::Shopify::Field::String::Enum([qw(in_transit confirmed out_for-delivery delivered failure)]),
19 "happend_at" => new WWW::Shopify::Field::Timestamp(),
20 "message" => new WWW::Shopify::Field::String(),
21 "city" => new WWW::Shopify::Field::String::City(),
22 "province" => new WWW::Shopify::Field::String::ProvinceCode(),
23 "zip" => new WWW::Shopify::Field::String::Zip(),
24 "country_code" => new WWW::Shopify::Field::String::CountryCode(),
25 "address1" => new WWW::Shopify::Field::String::Address(),
26 "latitude" => new WWW::Shopify::Field::Float(-90, 90),
27 "longitude" => new WWW::Shopify::Field::Float(-180, 180),
28 } }
29  
30 sub url_plural { return 'events'; }
31 sub read_scope { return "read_fulfillments"; }
32 sub write_scope { return "write_fulfillments"; }
33 sub parent { return 'WWW::Shopify::Model::Order::Fulfillment'; }
34  
35 sub creation_minimal { return qw(status); }
36  
37 eval(__PACKAGE__->generate_accessors); die $@ if $@;
38  
39 1;