« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout.pm
↑ Summary
blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Shop.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 | "financial_status", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 14 | "subtotal_price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 15 | "total_weight", { data_type => 'FLOAT', is_nullable => '1' }, | ||
| 16 | "total_tax", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 17 | "id", { is_nullable => '0', data_type => 'BIGINT' }, | ||
| 18 | "browser_ip", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 19 | "landing_site", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 20 | "gateway", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 21 | "order_number", { is_nullable => '1', data_type => 'INT' }, | ||
| 22 | "processing_method", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 23 | "taxes_included", { is_nullable => '1', data_type => 'BOOL' }, | ||
| 24 | "total_price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 25 | "source_name", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 26 | "created_at", { is_nullable => '1', data_type => 'DATETIME' }, | ||
| 27 | "source_url", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 28 | "email", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 29 | "referring_site", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 30 | "currency", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 31 | "cancelled_at", { data_type => 'DATETIME', is_nullable => '1' }, | ||
| 32 | "send_receipt", { data_type => 'BOOL', is_nullable => '1' }, | ||
| 33 | "number", { data_type => 'INT', is_nullable => '1' }, | ||
| 34 | "send_fulfillment_receipt", { data_type => 'BOOL', is_nullable => '1' }, | ||
| 35 | "fulfillment_status", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 36 | "note", { is_nullable => '1', data_type => 'TEXT' }, | ||
| 37 | "cart_token", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 38 | "send_webhooks", { data_type => 'BOOL', is_nullable => '1' }, | ||
| 39 | "total_discounts", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 40 | "name", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 41 | "inventory_behaviour", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 42 | "total_price_usd", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 43 | "total_line_items_price", { data_type => 'DECIMAL(10,2)', is_nullable => '1' }, | ||
| 44 | "landing_site_ref", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 45 | "source_identifier", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 46 | "cancel_reason", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 47 | "tags", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 48 | "reference", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 49 | "token", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 50 | "updated_at", { data_type => 'DATETIME', is_nullable => '1' }, | ||
| 51 | "buyer_accepts_marketing", { data_type => 'BOOL', is_nullable => '1' }, | ||
| 52 | "closed_at", { data_type => 'DATETIME', is_nullable => '1' }, | ||
| 53 | "source", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 54 | "location_id", { is_nullable => '1', data_type => 'BIGINT' }, | ||
| 55 | "shipping_address_id", { data_type => 'BIGINT', is_nullable => '1' }, | ||
| 56 | "customer_id", { data_type => 'BIGINT', is_nullable => '1' }, | ||
| 57 | "billing_address_id", { is_nullable => '1', data_type => 'BIGINT' }, | ||
| 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(location => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Location', 'location_id', { join_type => 'left' }); | |
| 67 | 1 | __PACKAGE__->belongs_to(shipping_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'shipping_address_id', { join_type => 'left' }); | |
| 68 | 1 | __PACKAGE__->belongs_to(customer => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Customer', 'customer_id', { join_type => 'left' }); | |
| 69 | 1 | __PACKAGE__->belongs_to(billing_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'billing_address_id', { join_type => 'left' }); | |
| 70 | 1 | __PACKAGE__->has_many(discount_codes => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::DiscountCode', '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(shipping_lines => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::ShippingLine', 'order_id'); | |
| 75 | 1 | __PACKAGE__->has_many(refund => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Refund', 'order_id'); | |
| 76 | 1 | __PACKAGE__->has_many(note_attributes => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::NoteAttributes', 'order_id'); | |
| 77 | 1 | __PACKAGE__->has_many(transactions => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Transaction', 'order_id'); | |
| 78 | 1 | __PACKAGE__->has_one(payment_details => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::PaymentDetails', 'order_id'); | |
| 79 | 1 | __PACKAGE__->has_one(client_details => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::ClientDetails', 'order_id'); | |
| 80 | 1 | __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldOrder', 'order_id'); | |
| 81 | 1 | __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield'); | |
| 82 | 0 | ▶ | sub represents { return 'WWW::Shopify::Model::Order'; } |
|
Subroutine
represents: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 83 | 0 | ▶ | sub parent_variable { return undef; } |
|
Subroutine
parent_variable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 84 | |||
| 85 | 1 | 1; | |