Sha256: 94aaa3bae110becf877ea830eb58e4b724e04d0278496f598ab2ed4bb25dc1d9

Contents?: true

Size: 1.79 KB

Versions: 23

Compression:

Stored size: 1.79 KB

Contents

# This file is automatically created by Recurly's OpenAPI generation process
# and thus any edits you make by hand will be lost. If you wish to make a
# change to this file, please create a Github issue explaining the changes you
# need and we will usher them to the appropriate places.
module Recurly
  module Resources
    class TaxInfo < Resource

      # @!attribute rate
      #   @return [Float] The combined tax rate. Not present when Avalara for Communications is enabled.
      define_attribute :rate, Float

      # @!attribute region
      #   @return [String] Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST. Not present when Avalara for Communications is enabled.
      define_attribute :region, String

      # @!attribute tax_details
      #   @return [Array[TaxDetail]] Provides additional tax details for Communications taxes when Avalara for Communications is enabled or Canadian Sales Tax when there is tax applied at both the country and province levels. This will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItemList. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
      define_attribute :tax_details, Array, { :item_type => :TaxDetail }

      # @!attribute type
      #   @return [String] Provides the tax type as "vat" for EU VAT, "usst" for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries. Not present when Avalara for Communications is enabled.
      define_attribute :type, String
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
recurly-4.56.0 lib/recurly/resources/tax_info.rb
recurly-4.55.0 lib/recurly/resources/tax_info.rb
recurly-4.54.0 lib/recurly/resources/tax_info.rb
recurly-4.53.0 lib/recurly/resources/tax_info.rb
recurly-4.52.0 lib/recurly/resources/tax_info.rb
recurly-4.49.0 lib/recurly/resources/tax_info.rb
recurly-4.48.1 lib/recurly/resources/tax_info.rb
recurly-4.48.0 lib/recurly/resources/tax_info.rb
recurly-4.47.0 lib/recurly/resources/tax_info.rb
recurly-4.46.0 lib/recurly/resources/tax_info.rb
recurly-4.45.0 lib/recurly/resources/tax_info.rb
recurly-4.44.0 lib/recurly/resources/tax_info.rb
recurly-4.43.0 lib/recurly/resources/tax_info.rb
recurly-4.42.0 lib/recurly/resources/tax_info.rb
recurly-4.41.0 lib/recurly/resources/tax_info.rb
recurly-4.40.0 lib/recurly/resources/tax_info.rb
recurly-4.39.0 lib/recurly/resources/tax_info.rb
recurly-4.38.0 lib/recurly/resources/tax_info.rb
recurly-4.37.0 lib/recurly/resources/tax_info.rb
recurly-3.28.0 lib/recurly/resources/tax_info.rb