class Io::Flow::V0::Models::EntityIdentifierType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19226 def EntityIdentifierType.ALL @@all ||= [EntityIdentifierType.ioss, EntityIdentifierType.voec] end
apply(value)
click to toggle source
Returns the instance of EntityIdentifierType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 19211 def EntityIdentifierType.apply(value) if value.instance_of?(EntityIdentifierType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || EntityIdentifierType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of EntityIdentifierType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 19221 def EntityIdentifierType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) EntityIdentifierType.ALL.find { |v| v.value == value } end
ioss()
click to toggle source
The Import
One-Stop Shop
(IOSS) to comply with VAT on imported goods. see: ec.europa.eu/taxation_customs/business/vat/ioss_en
# File lib/flow_commerce/flow_api_v0_client.rb, line 19232 def EntityIdentifierType.ioss @@_ioss ||= EntityIdentifierType.new('ioss') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19206 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
voec()
click to toggle source
The VAT on Electronic Commerce (VOEC) to comply with VAT on imported goods. see: www.skatteetaten.no/globalassets/bedrift-og-organisasjon/voec/voec-guidelines-20200807.pdf
# File lib/flow_commerce/flow_api_v0_client.rb, line 19239 def EntityIdentifierType.voec @@_voec ||= EntityIdentifierType.new('voec') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19243 def to_hash value end