class Io::Flow::V0::Models::TaxReportType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27331 def TaxReportType.ALL @@all ||= [TaxReportType.consumer, TaxReportType.b2b] end
apply(value)
click to toggle source
Returns the instance of TaxReportType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 27316 def TaxReportType.apply(value) if value.instance_of?(TaxReportType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || TaxReportType.new(value)) end end
b2b()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27339 def TaxReportType.b2b @@_b2b ||= TaxReportType.new('b2b') end
consumer()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27335 def TaxReportType.consumer @@_consumer ||= TaxReportType.new('consumer') end
from_string(value)
click to toggle source
Returns the instance of TaxReportType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 27326 def TaxReportType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) TaxReportType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27311 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27343 def to_hash value end