class Io::Flow::V0::Models::ZeroLevyReasonCode
Attributes
Public Class Methods
# File lib/flow_commerce/flow_api_v0_client.rb, line 28620 def ZeroLevyReasonCode.ALL @@all ||= [ZeroLevyReasonCode.zero_basis, ZeroLevyReasonCode.zero_rate_on_goods, ZeroLevyReasonCode.value_rounds_to_zero, ZeroLevyReasonCode.order_below_de_minimis_threshold, ZeroLevyReasonCode.amount_below_de_minimis_threshold, ZeroLevyReasonCode.delivered_unpaid, ZeroLevyReasonCode.duty_free_domestic, ZeroLevyReasonCode.duty_free_intra_community, ZeroLevyReasonCode.duty_free_reimport, ZeroLevyReasonCode.duty_free_by_trade_agreement] end
The amount owed is below the de minimis threshold
# File lib/flow_commerce/flow_api_v0_client.rb, line 28647 def ZeroLevyReasonCode.amount_below_de_minimis_threshold @@_amount_below_de_minimis_threshold ||= ZeroLevyReasonCode.new('amount_below_de_minimis_threshold') end
Returns the instance of ZeroLevyReasonCode
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 28605 def ZeroLevyReasonCode.apply(value) if value.instance_of?(ZeroLevyReasonCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ZeroLevyReasonCode.new(value)) end end
The consumer has selected not to prepay tax, and thus we have not computed the tax they will owe
# File lib/flow_commerce/flow_api_v0_client.rb, line 28653 def ZeroLevyReasonCode.delivered_unpaid @@_delivered_unpaid ||= ZeroLevyReasonCode.new('delivered_unpaid') end
This cross-border tax or duty is not owed due to a certified trade agreement
# File lib/flow_commerce/flow_api_v0_client.rb, line 28675 def ZeroLevyReasonCode.duty_free_by_trade_agreement @@_duty_free_by_trade_agreement ||= ZeroLevyReasonCode.new('duty_free_by_trade_agreement') end
This cross-border tax or duty is not owed because the sale is domestic
# File lib/flow_commerce/flow_api_v0_client.rb, line 28658 def ZeroLevyReasonCode.duty_free_domestic @@_duty_free_domestic ||= ZeroLevyReasonCode.new('duty_free_domestic') end
This cross-border tax or duty is not owed because the sale is within the borders of a customs union
# File lib/flow_commerce/flow_api_v0_client.rb, line 28664 def ZeroLevyReasonCode.duty_free_intra_community @@_duty_free_intra_community ||= ZeroLevyReasonCode.new('duty_free_intra_community') end
When previously exported goods are re-imported back to the country of manufacture, they might be able to enter duty free.
# File lib/flow_commerce/flow_api_v0_client.rb, line 28670 def ZeroLevyReasonCode.duty_free_reimport @@_duty_free_reimport ||= ZeroLevyReasonCode.new('duty_free_reimport') end
Returns the instance of ZeroLevyReasonCode
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 28615 def ZeroLevyReasonCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ZeroLevyReasonCode.ALL.find { |v| v.value == value } end
# File lib/flow_commerce/flow_api_v0_client.rb, line 28600 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
The order is below the de minimis threshold
# File lib/flow_commerce/flow_api_v0_client.rb, line 28642 def ZeroLevyReasonCode.order_below_de_minimis_threshold @@_order_below_de_minimis_threshold ||= ZeroLevyReasonCode.new('order_below_de_minimis_threshold') end
A tax rate was applied, but the result rounded to zero.
# File lib/flow_commerce/flow_api_v0_client.rb, line 28637 def ZeroLevyReasonCode.value_rounds_to_zero @@_value_rounds_to_zero ||= ZeroLevyReasonCode.new('value_rounds_to_zero') end
When all the applicable components of an item price were added up, the result was a $0 basis
# File lib/flow_commerce/flow_api_v0_client.rb, line 28626 def ZeroLevyReasonCode.zero_basis @@_zero_basis ||= ZeroLevyReasonCode.new('zero_basis') end
A general 0% rate is defined for items of this type (such as medical devices or children’s clothing)
# File lib/flow_commerce/flow_api_v0_client.rb, line 28632 def ZeroLevyReasonCode.zero_rate_on_goods @@_zero_rate_on_goods ||= ZeroLevyReasonCode.new('zero_rate_on_goods') end
Public Instance Methods
# File lib/flow_commerce/flow_api_v0_client.rb, line 28679 def to_hash value end