NAME

Interchange6::Schema::Result::ShipmentRate

DESCRIPTION

In the context of shipment the rate is the value give for a shipping method based on desination zone_id and weight.

  • Flat rate shipping

    If min_weight and max_weight are set to 0 for a shipping method and zone flate rate will be assumed. If min_weight is set and max_weight is 0 max weight is assumed as infinite.

ACCESSORS

shipment_rates_id

Primary key.

zones_id

FK on "zones_id" in Interchange6::Schema::Result::Zone

shipment_methods_id

FK on "shipment_methods_id" in Interchange6::Schema::Result::ShipmentMethod

value_type

Type of value stored in </min_value> and </max_value>, e.g.: weight, volume

Is nullable.

value_unit

Unit of measurement for "value_type", e.g.: kg, meter, cubic meter, lb, oz

Is nullable.

min_value

Minimum value of "value_type".

max_value

Maximum value of "value_type".

price

Price.

valid_from

Date from which rate is valid. Defaults to time record is created.

valid_to

Final date on which rate is valid.

Is nullable.

created

Date and time when this record was created returned as DateTime object. Value is auto-set on insert.

last_modified

Date and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.

RELATIONS

zone

Type: belongs_to

Related object: Interchange6::Schema::Result::Zone

shipment_method

Type: belongs_to

Related object: Interchange6::Schema::Result::ShipmentMethod