Schema/Result/ShipmentCarrier.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/Shipment.pm ↑ Summary Schema/Result/ShipmentDestination.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::ShipmentCarrier;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::ShipmentCarrier
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 ACCESSORS
14  
15 =head2 shipment_carriers_id
16  
17 Primary key.
18  
19 =cut
20  
21 2 primary_column shipment_carriers_id =>
22 { data_type => "integer", is_auto_increment => 1 };
23  
24 =head2 name
25  
26 Short name of carrier, e.g.: USPS.
27  
28 =cut
29  
30 2 column name => {
31 data_type => "varchar",
32 size => 255
33 };
34  
35 =head2 title
36  
37 Full title of carrier.
38  
39 Defaults to empty string.
40  
41 =cut
42  
43 2 column title => {
44 data_type => "varchar",
45 default_value => "",
46 size => 255
47 };
48  
49 =head2 account_number
50  
51 Account number with carrier.
52  
53 Defaults to empty string.
54  
55 =cut
56  
57 2 column account_number => {
58 data_type => "varchar",
59 default_value => "",
60 size => 255
61 };
62  
63 =head2 active
64  
65 Whether carrier is active. Defaults to 1 (true).
66  
67 =cut
68  
69 2 column active =>
70 { data_type => "boolean", default_value => 1 };
71  
72 =head1 RELATIONS
73  
74 =head2 shipment_methods
75  
76 Type: has_many
77  
78 Related object: L<Interchange6::Schema::Result::ShipmentMethod>
79  
80 =cut
81  
82 2 has_many
83 shipment_methods => "Interchange6::Schema::Result::ShipmentMethod",
84 "shipment_carriers_id",
85 { cascade_copy => 0, cascade_delete => 0 };
86  
87 2 1;
« Schema/Result/Shipment.pm ↑ Summary Schema/Result/ShipmentDestination.pm »