blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/GiftCard.pm

filter: Statementstmt 91.3% 21 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 80.0% 24 / 30 CC 1 SCAR 3.4
CC
1
Cov
91%
represents
2.0
parent_variable
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/CustomCollection.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product.pm »
1  
2 #!/usr/bin/perl
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 # This class is generated from DBIx.pm. Do not modify.
6 package WWW::Shopify::Model::DBIx::Schema::Result::Model::GiftCard;
7 1 ▶use base qw/DBIx::Class::Core/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 __PACKAGE__->load_components(qw/InflateColumn::DateTime/);
10  
11 1 __PACKAGE__->table('shopify_gift_cards');
12 1 __PACKAGE__->add_columns(
13 "disabled_at", { data_type => 'DATETIME', is_nullable => '1' },
14 "id", { data_type => 'BIGINT', is_nullable => '0' },
15 "initial_value", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
16 "note", { data_type => 'VARCHAR(255)', is_nullable => '1' },
17 "user_id", { is_nullable => '1', data_type => 'INT' },
18 "api_client_id", { data_type => 'VARCHAR(255)', is_nullable => '1' },
19 "updated_at", { data_type => 'DATETIME', is_nullable => '1' },
20 "code", { is_nullable => '1', data_type => 'VARCHAR(255)' },
21 "created_at", { data_type => 'DATETIME', is_nullable => '1' },
22 "masked_code", { is_nullable => '1', data_type => 'VARCHAR(255)' },
23 "currency", { data_type => 'VARCHAR(255)', is_nullable => '1' },
24 "balance", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
25 "last_characters", { is_nullable => '1', data_type => 'VARCHAR(255)' },
26 "template_suffix", { is_nullable => '1', data_type => 'VARCHAR(255)' },
27 "expires_on", { data_type => 'DATETIME', is_nullable => '1' },
28 "customer_id", { data_type => 'BIGINT', is_nullable => '1' },
29 "line_item_id", { is_nullable => '1', data_type => 'BIGINT' },
30 "shop_id", { data_type => "BIGINT" }
31 );
32 1 __PACKAGE__->set_primary_key('id');
33  
34  
35  
36 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
37  
38 1 __PACKAGE__->belongs_to(customer => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Customer', 'customer_id', { join_type => 'left' });
39 1 __PACKAGE__->belongs_to(line_item => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::LineItem', 'line_item_id', { join_type => 'left' });
40 1 __PACKAGE__->has_many(shares_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::EventGiftCard', 'gift_card_id');
41 1 __PACKAGE__->many_to_many(shares => 'shares_hasmany', 'event');
42 1 __PACKAGE__->has_many(events_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::EventGiftCard', 'gift_card_id');
43 1 __PACKAGE__->many_to_many(events => 'events_hasmany', 'event');
44 0 ▶sub represents { return 'WWW::Shopify::Model::GiftCard'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
45 0 ▶sub parent_variable { return undef; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
46  
47 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/CustomCollection.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product.pm »