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