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

filter: Statementstmt 91.6% 22 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 80.6% 25 / 31 CC 1 SCAR 3.4
CC
1
Cov
92%
represents
2.0
parent_variable
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout.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::Customer;
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_customers');
12 1 __PACKAGE__->add_columns(
13 "note", { is_nullable => '1', data_type => 'TEXT' },
14 "last_order_name", { data_type => 'VARCHAR(255)', is_nullable => '1' },
15 "last_name", { data_type => 'VARCHAR(255)', is_nullable => '1' },
16 "password", { data_type => 'VARCHAR(255)', is_nullable => '1' },
17 "password_confirmation", { data_type => 'VARCHAR(255)', is_nullable => '1' },
18 "first_name", { is_nullable => '1', data_type => 'VARCHAR(255)' },
19 "orders_count", { data_type => 'INT', is_nullable => '1' },
20 "id", { is_nullable => '0', data_type => 'BIGINT' },
21 "accepts_marketing", { is_nullable => '1', data_type => 'BOOL' },
22 "state", { is_nullable => '1', data_type => 'VARCHAR(255)' },
23 "tags", { data_type => 'TEXT', is_nullable => '1' },
24 "multipass_identifier", { is_nullable => '1', data_type => 'VARCHAR(255)' },
25 "verified_email", { is_nullable => '1', data_type => 'BOOL' },
26 "image_url", { data_type => 'VARCHAR(255)', is_nullable => '1' },
27 "total_spent", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
28 "updated_at", { is_nullable => '1', data_type => 'DATETIME' },
29 "send_email_invite", { data_type => 'BOOL', is_nullable => '1' },
30 "created_at", { data_type => 'DATETIME', is_nullable => '1' },
31 "email", { is_nullable => '1', data_type => 'VARCHAR(255)' },
32 "default_address_id", { is_nullable => '1', data_type => 'BIGINT' },
33 "last_order_id", { data_type => 'BIGINT', is_nullable => '1' },
34 "shop_id", { data_type => "BIGINT" }
35 );
36 1 __PACKAGE__->set_primary_key('id');
37  
38 1 __PACKAGE__->add_unique_constraint(constraint_name => [ "email" ]);
39  
40 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
41  
42 1 __PACKAGE__->belongs_to(default_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'default_address_id', { join_type => 'left' });
43 1 __PACKAGE__->belongs_to(last_order => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order', 'last_order_id', { join_type => 'left' });
44 1 __PACKAGE__->has_many(addresses_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::AddressCustomer', 'customer_id');
45 1 __PACKAGE__->many_to_many(addresses => 'addresses_hasmany', 'address');
46 1 __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomerMetafield', 'customer_id');
47 1 __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield');
48 0 ▶sub represents { return 'WWW::Shopify::Model::Customer'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
49 0 ▶sub parent_variable { return undef; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
50  
51 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout.pm »