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

filter: Statementstmt 90.4% 19 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 78.5% 22 / 28 CC 1 SCAR 3.4
CC
1
Cov
90%
represents
2.0
parent_variable
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product/Variant.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/CustomCollection.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::Refund;
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_orders_refunds');
12 1 __PACKAGE__->add_columns(
13 "order_id", { data_type => 'bigint' },
14 "note", { data_type => 'VARCHAR(255)', is_nullable => '1' },
15 "restock", { is_nullable => '1', data_type => 'BOOL' },
16 "created_at", { data_type => 'DATETIME', is_nullable => '1' },
17 "id", { data_type => 'BIGINT', is_nullable => '0' },
18 "user_id", { data_type => 'BIGINT', is_nullable => '1' },
19 "shop_id", { data_type => "BIGINT" }
20 );
21 1 __PACKAGE__->set_primary_key('id');
22  
23  
24  
25 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
26  
27 1 __PACKAGE__->belongs_to(user => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::User', 'user_id', { join_type => 'left' });
28 1 __PACKAGE__->has_many(refund_line_items => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Refund::LineItem', 'refund_id');
29 1 __PACKAGE__->has_many(transactions_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::RefundTransaction', 'refund_id');
30 1 __PACKAGE__->many_to_many(transactions => 'transactions_hasmany', 'transaction');
31 0 ▶sub represents { return 'WWW::Shopify::Model::Refund'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
32 0 ▶sub parent_variable { return 'order_id'; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product/Variant.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/CustomCollection.pm »