Class: Io::Flow::V0::Models::ConsumerInvoiceCustomerType
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ConsumerInvoiceCustomerType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of ConsumerInvoiceCustomerType for this value, creating a new instance for an unknown value.
-
.business_eu_verified ⇒ Object
A business that have been verified in the European Union.
-
.business_non_verified ⇒ Object
A business, but with no additional verification.
-
.from_string(value) ⇒ Object
Returns the instance of ConsumerInvoiceCustomerType for this value, or nil if not found.
- .individual ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ ConsumerInvoiceCustomerType
constructor
A new instance of ConsumerInvoiceCustomerType.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ ConsumerInvoiceCustomerType
Returns a new instance of ConsumerInvoiceCustomerType.
15936 15937 15938 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15936 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
15934 15935 15936 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15934 def value @value end |
Class Method Details
.ALL ⇒ Object
15956 15957 15958 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15956 def ConsumerInvoiceCustomerType.ALL @@all ||= [ConsumerInvoiceCustomerType.business_eu_verified, ConsumerInvoiceCustomerType.business_non_verified, ConsumerInvoiceCustomerType.individual] end |
.apply(value) ⇒ Object
Returns the instance of ConsumerInvoiceCustomerType for this value, creating a new instance for an unknown value
15941 15942 15943 15944 15945 15946 15947 15948 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15941 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 ⇒ Object
A business that have been verified in the European Union
15961 15962 15963 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15961 def ConsumerInvoiceCustomerType.business_eu_verified @@_business_eu_verified ||= ConsumerInvoiceCustomerType.new('business_eu_verified') end |
.business_non_verified ⇒ Object
A business, but with no additional verification
15966 15967 15968 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15966 def ConsumerInvoiceCustomerType.business_non_verified @@_business_non_verified ||= ConsumerInvoiceCustomerType.new('business_non_verified') end |
.from_string(value) ⇒ Object
Returns the instance of ConsumerInvoiceCustomerType for this value, or nil if not found
15951 15952 15953 15954 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15951 def ConsumerInvoiceCustomerType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ConsumerInvoiceCustomerType.ALL.find { |v| v.value == value } end |
.individual ⇒ Object
15970 15971 15972 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15970 def ConsumerInvoiceCustomerType.individual @@_individual ||= ConsumerInvoiceCustomerType.new('individual') end |
Instance Method Details
#to_hash ⇒ Object
15974 15975 15976 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15974 def to_hash value end |