Shopify/Model/GiftCard/Adjustment.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
creation_minimal
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::GiftCard::Adjustment;
9 use parent "WWW::Shopify::Model::Item";
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "api_client_id" => new WWW::Shopify::Field::String(),
14 "id" => new WWW::Shopify::Field::Identifier(),
15 "number" => new WWW::Shopify::Field::Int(),
16 "amount" => new WWW::Shopify::Field::Money(),
17 "note" => new WWW::Shopify::Field::String(),
18 "remote_transaction_ref" => new WWW::Shopify::Field::String(),
19 "remote_transaction_url" => new WWW::Shopify::Field::String(),
20 "user_id" => new WWW::Shopify::Field::Int(),
21 "order_transaction_id" => new WWW::Shopify::Field::Relation::ReferenceOne("WWW::Shopify::Model::Transaction"),
22 "created_at" => new WWW::Shopify::Field::Date(),
23 "updated_at" => new WWW::Shopify::Field::Date(),
24 "processed_at" => new WWW::Shopify::Field::Date(),
25 }; }
26 sub creation_minimal { return qw(amount); }
27 sub creation_filled { return qw(created_at updated_at processed_at); }
28  
29 sub needs_plus { return 1; }
30 sub parent { return 'WWW::Shopify::Model::GiftCard'; }
31  
32 # For now, Shopify DOES NOT require these scopes.
33 # sub write_scope { 'write_giftcards' }
34 # sub read_scope { 'read_giftcards' }
35  
36 eval(__PACKAGE__->generate_accessors); die $@ if $@;
37  
38 1;