blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order/Fulfillment/LineItem.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 77.7% 21 / 27 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/Order/Fulfillment.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order/LineItem.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::Order::Fulfillment::LineItem;
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_fulfillments_line_items');
12 1 __PACKAGE__->add_columns(
13 "fulfillment_id", { data_type => 'bigint' },
14 "sku", { is_nullable => '1', data_type => 'VARCHAR(255)' },
15 "variant_title", { is_nullable => '1', data_type => 'VARCHAR(255)' },
16 "taxable", { data_type => 'BOOL', is_nullable => '1' },
17 "name", { data_type => 'VARCHAR(255)', is_nullable => '1' },
18 "vendor", { data_type => 'VARCHAR(255)', is_nullable => '1' },
19 "variant_inventory_management", { is_nullable => '1', data_type => 'VARCHAR(255)' },
20 "grams", { data_type => 'INT', is_nullable => '1' },
21 "fulfillment_service", { is_nullable => '1', data_type => 'VARCHAR(255)' },
22 "price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
23 "gift_card", { data_type => 'BOOL', is_nullable => '1' },
24 "title", { is_nullable => '1', data_type => 'VARCHAR(255)' },
25 "product_exists", { data_type => 'BOOL', is_nullable => '1' },
26 "fulfillment_status", { data_type => 'VARCHAR(255)', is_nullable => '1' },
27 "requires_shipping", { is_nullable => '1', data_type => 'BOOL' },
28 "id", { data_type => 'BIGINT', is_nullable => '0' },
29 "quantity", { is_nullable => '1', data_type => 'INT' },
30 "variant_id", { is_nullable => '1', data_type => 'BIGINT' },
31 "product_id", { data_type => 'BIGINT', is_nullable => '1' }
32 );
33 1 __PACKAGE__->set_primary_key('id');
34  
35  
36  
37  
38  
39 1 __PACKAGE__->belongs_to(variant => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Variant', 'variant_id');
40 1 __PACKAGE__->belongs_to(product => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product', 'product_id');
41 1 __PACKAGE__->has_many(tax_lines => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::Fulfillment::LineItem::TaxLine', 'line_item_id');
42 1 __PACKAGE__->has_many(properties => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::Fulfillment::LineItem::Property', 'line_item_id');
43 0 ▶sub represents { return 'WWW::Shopify::Model::Order::Fulfillment::LineItem'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
44 0 ▶sub parent_variable { return 'fulfillment_id'; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
45  
46 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order/Fulfillment.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order/LineItem.pm »