Sha256: 1b8eaea98a8343e1af1ac8bdc8eb13a82fabf90d1416835e7cb5fe2d6ccfa91b

Contents?: true

Size: 794 Bytes

Versions: 47

Compression:

Stored size: 794 Bytes

Contents

# frozen_string_literal: true

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>] order_taxes an array of tax
    #   data for the order
    # @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, :order_taxes, :line_item_taxes, :shipment_taxes
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
solidus_core-4.4.2 app/models/spree/tax/order_tax.rb
solidus_core-4.4.1 app/models/spree/tax/order_tax.rb
solidus_core-4.4.0 app/models/spree/tax/order_tax.rb
solidus_core-4.3.4 app/models/spree/tax/order_tax.rb
solidus_core-4.2.4 app/models/spree/tax/order_tax.rb
solidus_core-4.1.5 app/models/spree/tax/order_tax.rb
solidus_core-4.3.3 app/models/spree/tax/order_tax.rb
solidus_core-4.3.2 app/models/spree/tax/order_tax.rb
solidus_core-4.1.4 app/models/spree/tax/order_tax.rb
solidus_core-4.3.1 app/models/spree/tax/order_tax.rb
solidus_core-4.3.0 app/models/spree/tax/order_tax.rb
solidus_core-4.2.3 app/models/spree/tax/order_tax.rb
solidus_core-4.1.3 app/models/spree/tax/order_tax.rb
solidus_core-4.0.4 app/models/spree/tax/order_tax.rb
solidus_core-3.4.6 app/models/spree/tax/order_tax.rb
solidus_core-4.0.3 app/models/spree/tax/order_tax.rb
solidus_core-4.1.2 app/models/spree/tax/order_tax.rb
solidus_core-4.2.2 app/models/spree/tax/order_tax.rb
solidus_core-3.4.5 app/models/spree/tax/order_tax.rb
solidus_core-4.2.1 app/models/spree/tax/order_tax.rb