blib/lib/WWW/Shopify/Model/Checkout.pm

filter: Statementstmt 21.7% 20 / 92 Branchbran 1.3% 1 / 76 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 21.0% 8 / 38 Podpod 15.6% 5 / 32 totaltotal 14.2% 34 / 238 CC 38 SCAR 21.6
CC
38
Cov
12%
discount_codes
19.0
line_items
19.0
note_attributes
19.0
CRAP 8.6
« blib/lib/WWW/Shopify/Model/Order.pm ↑ Summary blib/lib/WWW/Shopify/URLHandler/Queued.pm »
1 #!/usr/bin/perl
2  
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  
6 1 ▶use WWW::Shopify;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package WWW::Shopify::Model::Checkout;
9 1 ▶use parent "WWW::Shopify::Model::Item";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 100 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
12 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 "buyer_accepts_marketing" => new WWW::Shopify::Field::Boolean(),
14 "cart_token" => new WWW::Shopify::Field::String::Hash(),
15 "created_at" => new WWW::Shopify::Field::Date(),
16 "email" => new WWW::Shopify::Field::String::Email(),
17 "id" => new WWW::Shopify::Field::Identifier(),
18 "token" => new WWW::Shopify::Field::String::Hash(),
19 "abandoned_checkout_url" => new WWW::Shopify::Field::String::URL(),
20 "landing_site" => new WWW::Shopify::Field::String::URL(),
21 "referring_site" => new WWW::Shopify::Field::String::URL(),
22 "note" => new WWW::Shopify::Field::String(),
23 "updated_at" => new WWW::Shopify::Field::Date(),
24 "source_name" => new WWW::Shopify::Field::String::Enum(["web", "pos"]),
25 "subtotal_price" => new WWW::Shopify::Field::Money(),
26 "taxes_included" => new WWW::Shopify::Field::Boolean(),
27 "total_discounts" => new WWW::Shopify::Field::Money(),
28 "total_line_items_price" => new WWW::Shopify::Field::Money(),
29 "total_price" => new WWW::Shopify::Field::Money(),
30 "total_tax" => new WWW::Shopify::Field::Money(),
31 "total_weight" => new WWW::Shopify::Field::Float(),
32 "note_attributes" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Checkout::NoteAttributes'),
33 "discount_codes" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Checkout::DiscountCode'),
34 "tax_lines" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Checkout::TaxLine'),
35 "shipping_lines" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Checkout::ShippingLine'),
36 "line_items" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Checkout::LineItem'),
37 "billing_address" => new WWW::Shopify::Field::Relation::OwnOne('WWW::Shopify::Model::Address'),
38 "shipping_address" => new WWW::Shopify::Field::Relation::OwnOne('WWW::Shopify::Model::Address'),
39 "customer" => new WWW::Shopify::Field::Relation::OwnOne('WWW::Shopify::Model::Customer')};
40 }
41  
42 7 ▶my $queries; sub queries { return $queries; }
Subroutine queries: called CC=1 SCAR=0.0
Pod documented
43 1 ▶BEGIN { $queries = {
Subroutine BEGIN: called CC=1 SCAR=0.0
44 created_at_min => new WWW::Shopify::Query::LowerBound('created_at'),
45 created_at_max => new WWW::Shopify::Query::UpperBound('created_at'),
46 updated_at_min => new WWW::Shopify::Query::LowerBound('updated_at'),
47 updated_at_max => new WWW::Shopify::Query::UpperBound('updated_at'),
48 status => new WWW::Shopify::Query::Enum('status', ['open', 'closed']),
49 since_id => new WWW::Shopify::Query::LowerBound('id')
50 }; }
51  
52  
53 0 ▶sub creatable { return undef; }
Subroutine creatable: not called CC=1 SCAR=6.9
Pod documented
54 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
55 0 ▶sub deletable { return undef; }
Subroutine deletable: not called CC=1 SCAR=6.9
Pod documented
56  
57 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine abandoned_checkout_url: not called CC=2 SCAR=17.5
Subroutine billing_address: not called CC=2 SCAR=17.5
Subroutine buyer_accepts_marketing: not called CC=2 SCAR=17.5
Subroutine cart_token: not called CC=2 SCAR=17.5
Subroutine created_at: not called CC=2 SCAR=17.5
Subroutine customer: not called CC=2 SCAR=17.5
Subroutine discount_codes: not called CC=4 SCAR=29.5
Subroutine email: not called CC=2 SCAR=17.5
Subroutine id: not called CC=2 SCAR=17.5
Subroutine landing_site: not called CC=2 SCAR=17.5
Subroutine line_items: not called CC=4 SCAR=29.5
Subroutine note: not called CC=2 SCAR=17.5
Subroutine note_attributes: not called CC=4 SCAR=29.5
Subroutine referring_site: not called CC=2 SCAR=17.5
Subroutine shipping_address: not called CC=2 SCAR=17.5
Subroutine shipping_lines: not called CC=4 SCAR=29.5
Subroutine source_name: not called CC=2 SCAR=17.5
Subroutine subtotal_price: not called CC=2 SCAR=17.5
Subroutine tax_lines: not called CC=4 SCAR=29.5
Subroutine taxes_included: not called CC=2 SCAR=17.5
Subroutine token: not called CC=2 SCAR=17.5
Subroutine total_discounts: not called CC=2 SCAR=17.5
Subroutine total_line_items_price: not called CC=2 SCAR=17.5
Subroutine total_price: not called CC=2 SCAR=17.5
Subroutine total_tax: not called CC=2 SCAR=17.5
Subroutine total_weight: not called CC=2 SCAR=17.5
Subroutine updated_at: not called CC=2 SCAR=17.5
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 38 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"discount_codes"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"line_items"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"note_attributes"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"shipping_lines"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"tax_lines"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
58  
59 1 1;
« blib/lib/WWW/Shopify/Model/Order.pm ↑ Summary blib/lib/WWW/Shopify/URLHandler/Queued.pm »