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

filter: Statementstmt 92.0% 23 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 81.2% 26 / 32 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/Customer.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order.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::Checkout;
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_checkouts');
12 1 __PACKAGE__->add_columns(
13 "total_weight", { data_type => 'FLOAT', is_nullable => '1' },
14 "subtotal_price", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
15 "total_line_items_price", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
16 "taxes_included", { is_nullable => '1', data_type => 'BOOL' },
17 "cart_token", { is_nullable => '1', data_type => 'VARCHAR(255)' },
18 "updated_at", { data_type => 'DATETIME', is_nullable => '1' },
19 "total_tax", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
20 "referring_site", { data_type => 'VARCHAR(255)', is_nullable => '1' },
21 "created_at", { is_nullable => '1', data_type => 'DATETIME' },
22 "landing_site", { data_type => 'VARCHAR(255)', is_nullable => '1' },
23 "total_price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
24 "id", { is_nullable => '0', data_type => 'BIGINT' },
25 "source_name", { data_type => 'VARCHAR(255)', is_nullable => '1' },
26 "token", { is_nullable => '1', data_type => 'VARCHAR(255)' },
27 "note", { data_type => 'VARCHAR(255)', is_nullable => '1' },
28 "email", { data_type => 'VARCHAR(255)', is_nullable => '1' },
29 "total_discounts", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
30 "abandoned_checkout_url", { is_nullable => '1', data_type => 'VARCHAR(255)' },
31 "buyer_accepts_marketing", { is_nullable => '1', data_type => 'BOOL' },
32 "shipping_address_id", { is_nullable => '1', data_type => 'BIGINT' },
33 "customer_id", { is_nullable => '1', data_type => 'BIGINT' },
34 "billing_address_id", { is_nullable => '1', data_type => 'BIGINT' },
35 "shop_id", { data_type => "BIGINT" }
36 );
37 1 __PACKAGE__->set_primary_key('id');
38  
39  
40  
41 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
42  
43 1 __PACKAGE__->belongs_to(shipping_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'shipping_address_id');
44 1 __PACKAGE__->belongs_to(customer => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Customer', 'customer_id');
45 1 __PACKAGE__->belongs_to(billing_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'billing_address_id');
46 1 __PACKAGE__->has_many(shipping_lines => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Checkout::ShippingLine', 'checkout_id');
47 1 __PACKAGE__->has_many(discount_codes => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Checkout::DiscountCode', 'checkout_id');
48 1 __PACKAGE__->has_many(tax_lines => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Checkout::TaxLine', 'checkout_id');
49 1 __PACKAGE__->has_many(note_attributes => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Checkout::NoteAttributes', 'checkout_id');
50 1 __PACKAGE__->has_many(line_items => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Checkout::LineItem', 'checkout_id');
51 0 ▶sub represents { return 'WWW::Shopify::Model::Checkout'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
52 0 ▶sub parent_variable { return undef; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
53  
54 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Customer.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order.pm »