Class: Io::Flow::V0::Models::OrderQuoteErrorCode
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrderQuoteErrorCode
- 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 OrderQuoteErrorCode for this value, creating a new instance for an unknown value.
- .contact_email_invalid ⇒ Object
- .contact_email_required ⇒ Object
- .contact_phone_invalid ⇒ Object
- .contact_phone_required ⇒ Object
- .country_not_supported ⇒ Object
- .currency_invalid ⇒ Object
- .first_name_invalid ⇒ Object
- .first_name_required ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of OrderQuoteErrorCode for this value, or nil if not found.
- .geo_required_when_no_session ⇒ Object
- .language_invalid ⇒ Object
- .last_name_invalid ⇒ Object
- .last_name_required ⇒ Object
- .line_item_number_invalid ⇒ Object
- .line_item_number_not_available ⇒ Object
- .line_not_found ⇒ Object
- .line_quantity_invalid ⇒ Object
- .line_value_threshold_exceeded ⇒ Object
- .name_missing_first_or_last ⇒ Object
- .name_required ⇒ Object
- .order_quote_requires_at_least_one_line ⇒ Object
- .session_not_found ⇒ Object
- .session_organization_mismatch ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ OrderQuoteErrorCode
constructor
A new instance of OrderQuoteErrorCode.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ OrderQuoteErrorCode
Returns a new instance of OrderQuoteErrorCode.
20692 20693 20694 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20692 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
20690 20691 20692 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20690 def value @value end |
Class Method Details
.ALL ⇒ Object
.apply(value) ⇒ Object
Returns the instance of OrderQuoteErrorCode for this value, creating a new instance for an unknown value
20697 20698 20699 20700 20701 20702 20703 20704 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20697 def OrderQuoteErrorCode.apply(value) if value.instance_of?(OrderQuoteErrorCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrderQuoteErrorCode.new(value)) end end |
.contact_email_invalid ⇒ Object
20716 20717 20718 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20716 def OrderQuoteErrorCode.contact_email_invalid @@_contact_email_invalid ||= OrderQuoteErrorCode.new('contact_email_invalid') end |
.contact_email_required ⇒ Object
20720 20721 20722 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20720 def OrderQuoteErrorCode.contact_email_required @@_contact_email_required ||= OrderQuoteErrorCode.new('contact_email_required') end |
.contact_phone_invalid ⇒ Object
20724 20725 20726 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20724 def OrderQuoteErrorCode.contact_phone_invalid @@_contact_phone_invalid ||= OrderQuoteErrorCode.new('contact_phone_invalid') end |
.contact_phone_required ⇒ Object
20728 20729 20730 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20728 def OrderQuoteErrorCode.contact_phone_required @@_contact_phone_required ||= OrderQuoteErrorCode.new('contact_phone_required') end |
.country_not_supported ⇒ Object
20732 20733 20734 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20732 def OrderQuoteErrorCode.country_not_supported @@_country_not_supported ||= OrderQuoteErrorCode.new('country_not_supported') end |
.currency_invalid ⇒ Object
20736 20737 20738 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20736 def OrderQuoteErrorCode.currency_invalid @@_currency_invalid ||= OrderQuoteErrorCode.new('currency_invalid') end |
.first_name_invalid ⇒ Object
20740 20741 20742 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20740 def OrderQuoteErrorCode.first_name_invalid @@_first_name_invalid ||= OrderQuoteErrorCode.new('first_name_invalid') end |
.first_name_required ⇒ Object
20744 20745 20746 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20744 def OrderQuoteErrorCode.first_name_required @@_first_name_required ||= OrderQuoteErrorCode.new('first_name_required') end |
.from_string(value) ⇒ Object
Returns the instance of OrderQuoteErrorCode for this value, or nil if not found
20707 20708 20709 20710 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20707 def OrderQuoteErrorCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrderQuoteErrorCode.ALL.find { |v| v.value == value } end |
.geo_required_when_no_session ⇒ Object
20748 20749 20750 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20748 def OrderQuoteErrorCode.geo_required_when_no_session @@_geo_required_when_no_session ||= OrderQuoteErrorCode.new('geo_required_when_no_session') end |
.language_invalid ⇒ Object
20752 20753 20754 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20752 def OrderQuoteErrorCode.language_invalid @@_language_invalid ||= OrderQuoteErrorCode.new('language_invalid') end |
.last_name_invalid ⇒ Object
20756 20757 20758 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20756 def OrderQuoteErrorCode.last_name_invalid @@_last_name_invalid ||= OrderQuoteErrorCode.new('last_name_invalid') end |
.last_name_required ⇒ Object
20760 20761 20762 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20760 def OrderQuoteErrorCode.last_name_required @@_last_name_required ||= OrderQuoteErrorCode.new('last_name_required') end |
.line_item_number_invalid ⇒ Object
20764 20765 20766 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20764 def OrderQuoteErrorCode.line_item_number_invalid @@_line_item_number_invalid ||= OrderQuoteErrorCode.new('line_item_number_invalid') end |
.line_item_number_not_available ⇒ Object
20768 20769 20770 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20768 def OrderQuoteErrorCode.line_item_number_not_available @@_line_item_number_not_available ||= OrderQuoteErrorCode.new('line_item_number_not_available') end |
.line_not_found ⇒ Object
20772 20773 20774 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20772 def OrderQuoteErrorCode.line_not_found @@_line_not_found ||= OrderQuoteErrorCode.new('line_not_found') end |
.line_quantity_invalid ⇒ Object
20776 20777 20778 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20776 def OrderQuoteErrorCode.line_quantity_invalid @@_line_quantity_invalid ||= OrderQuoteErrorCode.new('line_quantity_invalid') end |
.line_value_threshold_exceeded ⇒ Object
20780 20781 20782 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20780 def OrderQuoteErrorCode.line_value_threshold_exceeded @@_line_value_threshold_exceeded ||= OrderQuoteErrorCode.new('line_value_threshold_exceeded') end |
.name_missing_first_or_last ⇒ Object
20784 20785 20786 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20784 def OrderQuoteErrorCode.name_missing_first_or_last @@_name_missing_first_or_last ||= OrderQuoteErrorCode.new('name_missing_first_or_last') end |
.name_required ⇒ Object
20788 20789 20790 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20788 def OrderQuoteErrorCode.name_required @@_name_required ||= OrderQuoteErrorCode.new('name_required') end |
.order_quote_requires_at_least_one_line ⇒ Object
20792 20793 20794 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20792 def OrderQuoteErrorCode.order_quote_requires_at_least_one_line @@_order_quote_requires_at_least_one_line ||= OrderQuoteErrorCode.new('order_quote_requires_at_least_one_line') end |
.session_not_found ⇒ Object
20796 20797 20798 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20796 def OrderQuoteErrorCode.session_not_found @@_session_not_found ||= OrderQuoteErrorCode.new('session_not_found') end |
.session_organization_mismatch ⇒ Object
20800 20801 20802 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20800 def OrderQuoteErrorCode.session_organization_mismatch @@_session_organization_mismatch ||= OrderQuoteErrorCode.new('session_organization_mismatch') end |
Instance Method Details
#to_hash ⇒ Object
20804 20805 20806 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20804 def to_hash value end |