class Io::Flow::V0::Models::TaxabilityType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27419 def TaxabilityType.ALL @@all ||= [TaxabilityType.tax_rule] end
apply(value)
click to toggle source
Returns the instance of TaxabilityType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 27404 def TaxabilityType.apply(value) if value.instance_of?(TaxabilityType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || TaxabilityType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of TaxabilityType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 27414 def TaxabilityType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) TaxabilityType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27399 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
tax_rule()
click to toggle source
Rule indicating how taxes should be applied. Acceptable values are defined by the ‘taxability_value’ enum.
# File lib/flow_commerce/flow_api_v0_client.rb, line 27425 def TaxabilityType.tax_rule @@_tax_rule ||= TaxabilityType.new('tax_rule') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27429 def to_hash value end