The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Interchange6::Schema::Result::Order

ACCESSORS

orders_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0
  sequence: 'orders_orders_id_seq'
  primary key

order_number

  data_type: 'varchar'
  is_nullable: 0
  size: 24
  unique constraint

order_date

  data_type: 'timestamp'
  is_nullable: 1

users_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

email

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

shipping_addresses_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

billing_addresses_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

weight

  data_type: 'numeric'
  default_value: 0.0
  is_nullable: 0
  size: [11,3]

payment_method

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

payment_number

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

payment_status

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

shipping_method

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

subtotal

  data_type: 'numeric'
  default_value: 0.0
  is_nullable: 0
  size: [11,2]

shipping

  data_type: 'numeric'
  default_value: 0.0
  is_nullable: 0
  size: [11,2]

handling

  data_type: 'numeric'
  default_value: 0.0
  is_nullable: 0
  size: [11,2]

salestax

  data_type: 'numeric'
  default_value: 0.0
  is_nullable: 0
  size: [11,2]

total_cost

  data_type: 'numeric'
  default_value: 0.0
  is_nullable: 0
  size: [11,2]

status

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 24

RELATIONS

shipping_address

Type: belongs_to

Related object: Interchange6::Schema::Result::Address

billing_address

Type: belongs_to

Related object: Interchange6::Schema::Result::Address

orderlines

Type: has_many

Related object: Interchange6::Schema::Result::Orderline

payment_orders

Type: has_many

Related object: Interchange6::Schema::Result::PaymentOrder

user

Type: belongs_to

Related object: Interchange6::Schema::Result::User

order_comments

Type: has_many

Related object: Interchange6::Schema::Result::OrderComment

_comments

Type: many_to_many

This is considered a private method. Please see public "comments" and "add_to_comments" methods.

METHODS

comments

Arguments: none
Return Value: Interchange6::Schema::Result::Message resultset.

add_to_comments

Arguments: \%col_data
Return Value: Interchange6::Schema::Result::Message

See "add_to_$rel" in DBIx::Class::Relationship::Base many_to_many for further details.

set_comments

Arguments: (\@hashrefs_of_col_data | \@result_objs)
Return Value: not defined

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.

delete

Overload delete to force removal of any order comments.