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

filter: Statementstmt 93.5% 29 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 84.2% 32 / 38 CC 1 SCAR 3.4
CC
1
Cov
94%
represents
2.0
parent_variable
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout.pm ↑ Summary blib/lib/WWW/Shopify/Field/Text.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;
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');
12 1 __PACKAGE__->add_columns(
13 "landing_site", { data_type => 'VARCHAR(255)', is_nullable => '1' },
14 "cancelled_at", { is_nullable => '1', data_type => 'DATETIME' },
15 "processing_method", { data_type => 'VARCHAR(255)', is_nullable => '1' },
16 "landing_site_ref", { is_nullable => '1', data_type => 'VARCHAR(255)' },
17 "source_identifier", { is_nullable => '1', data_type => 'VARCHAR(255)' },
18 "total_tax", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
19 "taxes_included", { data_type => 'BOOL', is_nullable => '1' },
20 "total_line_items_price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
21 "cart_token", { is_nullable => '1', data_type => 'VARCHAR(255)' },
22 "gateway", { is_nullable => '1', data_type => 'VARCHAR(255)' },
23 "send_fulfillment_receipt", { data_type => 'BOOL', is_nullable => '1' },
24 "total_weight", { data_type => 'FLOAT', is_nullable => '1' },
25 "send_receipt", { is_nullable => '1', data_type => 'BOOL' },
26 "email", { data_type => 'VARCHAR(255)', is_nullable => '1' },
27 "note", { is_nullable => '1', data_type => 'VARCHAR(255)' },
28 "number", { is_nullable => '1', data_type => 'INT' },
29 "financial_status", { data_type => 'VARCHAR(255)', is_nullable => '1' },
30 "source", { data_type => 'VARCHAR(255)', is_nullable => '1' },
31 "source_name", { data_type => 'VARCHAR(255)', is_nullable => '1' },
32 "token", { data_type => 'VARCHAR(255)', is_nullable => '1' },
33 "created_at", { data_type => 'DATETIME', is_nullable => '1' },
34 "cancel_reason", { is_nullable => '1', data_type => 'VARCHAR(255)' },
35 "inventory_behaviour", { is_nullable => '1', data_type => 'VARCHAR(255)' },
36 "total_price", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
37 "reference", { is_nullable => '1', data_type => 'VARCHAR(255)' },
38 "order_number", { data_type => 'INT', is_nullable => '1' },
39 "updated_at", { is_nullable => '1', data_type => 'DATETIME' },
40 "referring_site", { data_type => 'VARCHAR(255)', is_nullable => '1' },
41 "name", { data_type => 'VARCHAR(255)', is_nullable => '1' },
42 "closed_at", { is_nullable => '1', data_type => 'DATETIME' },
43 "source_url", { is_nullable => '1', data_type => 'VARCHAR(255)' },
44 "total_price_usd", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
45 "tags", { data_type => 'VARCHAR(255)', is_nullable => '1' },
46 "subtotal_price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
47 "currency", { data_type => 'VARCHAR(255)', is_nullable => '1' },
48 "buyer_accepts_marketing", { is_nullable => '1', data_type => 'BOOL' },
49 "total_discounts", { is_nullable => '1', data_type => 'DECIMAL(10,2)' },
50 "send_webhooks", { is_nullable => '1', data_type => 'BOOL' },
51 "fulfillment_status", { data_type => 'VARCHAR(255)', is_nullable => '1' },
52 "browser_ip", { is_nullable => '1', data_type => 'VARCHAR(255)' },
53 "id", { is_nullable => '0', data_type => 'BIGINT' },
54 "billing_address_id", { data_type => 'BIGINT', is_nullable => '1' },
55 "location_id", { is_nullable => '1', data_type => 'BIGINT' },
56 "customer_id", { data_type => 'BIGINT', is_nullable => '1' },
57 "shipping_address_id", { data_type => 'BIGINT', is_nullable => '1' },
58 "shop_id", { data_type => "BIGINT" }
59 );
60 1 __PACKAGE__->set_primary_key('id');
61  
62  
63  
64 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
65  
66 1 __PACKAGE__->belongs_to(billing_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'billing_address_id');
67 1 __PACKAGE__->belongs_to(location => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Location', 'location_id');
68 1 __PACKAGE__->belongs_to(customer => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Customer', 'customer_id');
69 1 __PACKAGE__->belongs_to(shipping_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'shipping_address_id');
70 1 __PACKAGE__->has_many(shipping_lines => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::ShippingLine', 'order_id');
71 1 __PACKAGE__->has_many(fulfillments => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::Fulfillment', 'order_id');
72 1 __PACKAGE__->has_many(line_items => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::LineItem', 'order_id');
73 1 __PACKAGE__->has_many(tax_lines => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::TaxLine', 'order_id');
74 1 __PACKAGE__->has_many(discount_codes => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::DiscountCode', 'order_id');
75 1 __PACKAGE__->has_many(note_attributes => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::NoteAttributes', 'order_id');
76 1 __PACKAGE__->has_one(client_details => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::ClientDetails', 'order_id');
77 1 __PACKAGE__->has_one(payment_details => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::PaymentDetails', 'order_id');
78 1 __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldOrder', 'order_id');
79 1 __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield');
80 0 ▶sub represents { return 'WWW::Shopify::Model::Order'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
81 0 ▶sub parent_variable { return undef; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
82  
83 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout.pm ↑ Summary blib/lib/WWW/Shopify/Field/Text.pm »