class Io::Flow::V0::Models::ConsumerInvoiceCustomerType

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17953
def ConsumerInvoiceCustomerType.ALL
  @@all ||= [ConsumerInvoiceCustomerType.business_eu_verified, ConsumerInvoiceCustomerType.business_non_verified, ConsumerInvoiceCustomerType.individual]
end
apply(value) click to toggle source

Returns the instance of ConsumerInvoiceCustomerType for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 17938
def ConsumerInvoiceCustomerType.apply(value)
  if value.instance_of?(ConsumerInvoiceCustomerType)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || ConsumerInvoiceCustomerType.new(value))
  end
end
business_eu_verified() click to toggle source

A business that have been verified in the European Union

# File lib/flow_commerce/flow_api_v0_client.rb, line 17958
def ConsumerInvoiceCustomerType.business_eu_verified
  @@_business_eu_verified ||= ConsumerInvoiceCustomerType.new('business_eu_verified')
end
business_non_verified() click to toggle source

A business, but with no additional verification

# File lib/flow_commerce/flow_api_v0_client.rb, line 17963
def ConsumerInvoiceCustomerType.business_non_verified
  @@_business_non_verified ||= ConsumerInvoiceCustomerType.new('business_non_verified')
end
from_string(value) click to toggle source

Returns the instance of ConsumerInvoiceCustomerType for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 17948
def ConsumerInvoiceCustomerType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  ConsumerInvoiceCustomerType.ALL.find { |v| v.value == value }
end
individual() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17967
def ConsumerInvoiceCustomerType.individual
  @@_individual ||= ConsumerInvoiceCustomerType.new('individual')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17933
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 17971
def to_hash
  value
end