Interchange6::Schema::Result::Order
Primary key.
Unique representation of the order.
Timestamp of when the order was placed. Is nullable.
Foreign key constraint on "users_id" in Interchange6::Schema::Result::User via "user" relationship.
Email address used for the order. Default is empty string
Foreign key constraint on "addresses_id" in Interchange6::Schema::Result::Address via "shipping_address" relationship.
Foreign key constraint on "addresses_id" in Interchange6::Schema::Result::Address via "billing_address" relationship.
Total numeric weight of the order. Default is 0
This is the type of payment used for the order.
A validation record for the payment.
The status of the payment for the current order.
What shipping method was used for the order.
The sum of all items in the cart before tax and shipping costs.
Defaults to 0.
The numeric cost associated with shipping the order. Default is 0
The numeric cost associated with handling the order. Default is 0.
The total tax applied to the order. Default is 0
The total cost of all items shipping handling and tax for the order. Default is 0.
Type: belongs_to
Related object: Interchange6::Schema::Result::Address
Type: has_many
Related object: Interchange6::Schema::Result::Orderline
Related object: Interchange6::Schema::Result::PaymentOrder
Related object: Interchange6::Schema::Result::User
Related object: Interchange6::Schema::Result::OrderComment
Type: many_to_many
This is considered a private method. Please see public "comments" and "add_to_comments" methods.
Related object: Interchange6::Schema::Result::OrderStatus
See "add_to_$rel" in DBIx::Class::Relationship::Base many_to_many for further details.
Similar to "set_$rel" in DBIx::Class::Relationship::Base except that this method D OES delete objects in the table on the right side of the relation.
Overload delete to force removal of any order comments.
Override insert so that if no Interchange6::Schema::Result::OrderStatus has been provided via multicreate then create a single status named new.
new
Option argument $status will cause creation of a new related entry in Interchange6::Schema::Result::OrderStatus.
$status
Returns the most recent "status" in Interchange6::Schema::Result::OrderStatus or undef if none are found.
If initial result set was created using "with_status" in Interchange6::Schema::ResultSet::Order then the status added by that method will be returned so that a new query is not required.
To install Interchange6::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Interchange6::Schema
CPAN shell
perl -MCPAN -e shell install Interchange6::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.