Sha256: ab6e9b13d1c586cf7efd1a090ad383df802d77ee9e597a39c2b59e2e8c781b21

Contents?: true

Size: 646 Bytes

Versions: 17

Compression:

Stored size: 646 Bytes

Contents

module Spree
  module Tax
    # Simple object to pass back tax data from a calculator.
    #
    # Will be used by {Spree::OrderTaxation} to create or update tax
    # adjustments on an order.
    #
    # @attr_reader [Integer] order_id the {Spree::Order} these taxes apply to
    # @attr_reader [Array<Spree::Tax::ItemTax>] line_item_taxes an array of
    #   tax data for order's line items
    # @attr_reader [Array<Spree::Tax::ItemTax>] shipment_taxes an array of
    #   tax data for the order's shipments
    class OrderTax
      include ActiveModel::Model
      attr_accessor :order_id, :line_item_taxes, :shipment_taxes
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
solidus_core-2.5.2 app/models/spree/tax/order_tax.rb
solidus_core-2.5.1 app/models/spree/tax/order_tax.rb
solidus_core-2.5.0 app/models/spree/tax/order_tax.rb
solidus_core-2.5.0.rc1 app/models/spree/tax/order_tax.rb
solidus_core-2.5.0.beta2 app/models/spree/tax/order_tax.rb
solidus_core-2.5.0.beta1 app/models/spree/tax/order_tax.rb
solidus_core-2.4.2 app/models/spree/tax/order_tax.rb
solidus_core-2.3.1 app/models/spree/tax/order_tax.rb
solidus_core-2.4.1 app/models/spree/tax/order_tax.rb
solidus_core-2.4.0 app/models/spree/tax/order_tax.rb
solidus_core-2.4.0.rc1 app/models/spree/tax/order_tax.rb
solidus_core-2.4.0.beta1 app/models/spree/tax/order_tax.rb
solidus_core-2.3.0 app/models/spree/tax/order_tax.rb
solidus_core-2.3.0.rc3 app/models/spree/tax/order_tax.rb
solidus_core-2.3.0.rc2 app/models/spree/tax/order_tax.rb
solidus_core-2.3.0.rc1 app/models/spree/tax/order_tax.rb
solidus_core-2.3.0.beta1 app/models/spree/tax/order_tax.rb