Class: Spree::Tax::OrderTax
- Inherits:
-
Object
- Object
- Spree::Tax::OrderTax
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/spree/tax/order_tax.rb
Overview
Simple object to pass back tax data from a calculator.
Will be used by OrderTaxation to create or update tax adjustments on an order.
Instance Attribute Summary collapse
-
#line_item_taxes ⇒ Array<Spree::Tax::ItemTax>
an array of tax data for order’s line items.
-
#order_id ⇒ Integer
the Order these taxes apply to.
-
#order_taxes ⇒ Array<Spree::Tax::ItemTax>
an array of tax data for the order.
-
#shipment_taxes ⇒ Array<Spree::Tax::ItemTax>
an array of tax data for the order’s shipments.
Instance Attribute Details
#line_item_taxes ⇒ Array<Spree::Tax::ItemTax>
an array of tax data for order’s line items
17 18 19 |
# File 'app/models/spree/tax/order_tax.rb', line 17 def line_item_taxes @line_item_taxes end |
#order_id ⇒ Integer
the Order these taxes apply to
17 18 19 |
# File 'app/models/spree/tax/order_tax.rb', line 17 def order_id @order_id end |
#order_taxes ⇒ Array<Spree::Tax::ItemTax>
an array of tax data for the order
17 18 19 |
# File 'app/models/spree/tax/order_tax.rb', line 17 def order_taxes @order_taxes end |
#shipment_taxes ⇒ Array<Spree::Tax::ItemTax>
an array of tax data for the order’s shipments
17 18 19 |
# File 'app/models/spree/tax/order_tax.rb', line 17 def shipment_taxes @shipment_taxes end |