Class: Io::Flow::V0::Models::EventType
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::EventType
- 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 EventType for this value, creating a new instance for an unknown value.
- .catalog_deleted ⇒ Object
- .catalog_item_deleted ⇒ Object
- .catalog_item_upserted ⇒ Object
- .catalog_upserted ⇒ Object
- .contracted_rate_upserted ⇒ Object
- .experience_deleted ⇒ Object
- .experience_upserted ⇒ Object
- .flow_currency_setting_deleted ⇒ Object
- .flow_currency_setting_upserted ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of EventType for this value, or nil if not found.
- .hs10_code_deleted ⇒ Object
- .hs10_code_upserted ⇒ Object
- .hs6_code_deleted ⇒ Object
- .hs6_code_upserted ⇒ Object
- .item_margin_deleted ⇒ Object
- .item_margin_upserted ⇒ Object
- .localized_item_deleted ⇒ Object
- .localized_item_upserted ⇒ Object
- .organization_currency_setting_deleted ⇒ Object
- .organization_currency_setting_upserted ⇒ Object
- .organization_deleted ⇒ Object
- .organization_upserted ⇒ Object
- .rate_deleted ⇒ Object
- .rate_upserted ⇒ Object
- .spot_rate_deleted ⇒ Object
- .spot_rate_upserted ⇒ Object
- .subcatalog_deleted ⇒ Object
- .subcatalog_item_deleted ⇒ Object
- .subcatalog_item_upserted ⇒ Object
- .subcatalog_upserted ⇒ Object
- .tracking_label_event_upserted ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ EventType
constructor
A new instance of EventType.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ EventType
Returns a new instance of EventType.
4615 4616 4617 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4615 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
4613 4614 4615 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4613 def value @value end |
Class Method Details
.ALL ⇒ Object
.apply(value) ⇒ Object
Returns the instance of EventType for this value, creating a new instance for an unknown value
4620 4621 4622 4623 4624 4625 4626 4627 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4620 def EventType.apply(value) if value.instance_of?(EventType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || EventType.new(value)) end end |
.catalog_deleted ⇒ Object
4643 4644 4645 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4643 def EventType.catalog_deleted @@_catalog_deleted ||= EventType.new('catalog_deleted') end |
.catalog_item_deleted ⇒ Object
4659 4660 4661 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4659 def EventType.catalog_item_deleted @@_catalog_item_deleted ||= EventType.new('catalog_item_deleted') end |
.catalog_item_upserted ⇒ Object
4655 4656 4657 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4655 def EventType.catalog_item_upserted @@_catalog_item_upserted ||= EventType.new('catalog_item_upserted') end |
.catalog_upserted ⇒ Object
4639 4640 4641 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4639 def EventType.catalog_upserted @@_catalog_upserted ||= EventType.new('catalog_upserted') end |
.contracted_rate_upserted ⇒ Object
4703 4704 4705 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4703 def EventType.contracted_rate_upserted @@_contracted_rate_upserted ||= EventType.new('contracted_rate_upserted') end |
.experience_deleted ⇒ Object
4707 4708 4709 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4707 def EventType.experience_deleted @@_experience_deleted ||= EventType.new('experience_deleted') end |
.experience_upserted ⇒ Object
4711 4712 4713 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4711 def EventType.experience_upserted @@_experience_upserted ||= EventType.new('experience_upserted') end |
.flow_currency_setting_deleted ⇒ Object
4671 4672 4673 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4671 def EventType.flow_currency_setting_deleted @@_flow_currency_setting_deleted ||= EventType.new('flow_currency_setting_deleted') end |
.flow_currency_setting_upserted ⇒ Object
4675 4676 4677 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4675 def EventType.flow_currency_setting_upserted @@_flow_currency_setting_upserted ||= EventType.new('flow_currency_setting_upserted') end |
.from_string(value) ⇒ Object
Returns the instance of EventType for this value, or nil if not found
4630 4631 4632 4633 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4630 def EventType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) EventType.ALL.find { |v| v.value == value } end |
.hs10_code_deleted ⇒ Object
4735 4736 4737 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4735 def EventType.hs10_code_deleted @@_hs10_code_deleted ||= EventType.new('hs10_code_deleted') end |
.hs10_code_upserted ⇒ Object
4731 4732 4733 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4731 def EventType.hs10_code_upserted @@_hs10_code_upserted ||= EventType.new('hs10_code_upserted') end |
.hs6_code_deleted ⇒ Object
4727 4728 4729 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4727 def EventType.hs6_code_deleted @@_hs6_code_deleted ||= EventType.new('hs6_code_deleted') end |
.hs6_code_upserted ⇒ Object
4723 4724 4725 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4723 def EventType.hs6_code_upserted @@_hs6_code_upserted ||= EventType.new('hs6_code_upserted') end |
.item_margin_deleted ⇒ Object
4715 4716 4717 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4715 def EventType.item_margin_deleted @@_item_margin_deleted ||= EventType.new('item_margin_deleted') end |
.item_margin_upserted ⇒ Object
4719 4720 4721 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4719 def EventType.item_margin_upserted @@_item_margin_upserted ||= EventType.new('item_margin_upserted') end |
.localized_item_deleted ⇒ Object
4743 4744 4745 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4743 def EventType.localized_item_deleted @@_localized_item_deleted ||= EventType.new('localized_item_deleted') end |
.localized_item_upserted ⇒ Object
4739 4740 4741 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4739 def EventType.localized_item_upserted @@_localized_item_upserted ||= EventType.new('localized_item_upserted') end |
.organization_currency_setting_deleted ⇒ Object
4695 4696 4697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4695 def EventType.organization_currency_setting_deleted @@_organization_currency_setting_deleted ||= EventType.new('organization_currency_setting_deleted') end |
.organization_currency_setting_upserted ⇒ Object
4699 4700 4701 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4699 def EventType.organization_currency_setting_upserted @@_organization_currency_setting_upserted ||= EventType.new('organization_currency_setting_upserted') end |
.organization_deleted ⇒ Object
4751 4752 4753 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4751 def EventType.organization_deleted @@_organization_deleted ||= EventType.new('organization_deleted') end |
.organization_upserted ⇒ Object
4747 4748 4749 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4747 def EventType.organization_upserted @@_organization_upserted ||= EventType.new('organization_upserted') end |
.rate_deleted ⇒ Object
4679 4680 4681 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4679 def EventType.rate_deleted @@_rate_deleted ||= EventType.new('rate_deleted') end |
.rate_upserted ⇒ Object
4683 4684 4685 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4683 def EventType.rate_upserted @@_rate_upserted ||= EventType.new('rate_upserted') end |
.spot_rate_deleted ⇒ Object
4687 4688 4689 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4687 def EventType.spot_rate_deleted @@_spot_rate_deleted ||= EventType.new('spot_rate_deleted') end |
.spot_rate_upserted ⇒ Object
4691 4692 4693 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4691 def EventType.spot_rate_upserted @@_spot_rate_upserted ||= EventType.new('spot_rate_upserted') end |
.subcatalog_deleted ⇒ Object
4651 4652 4653 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4651 def EventType.subcatalog_deleted @@_subcatalog_deleted ||= EventType.new('subcatalog_deleted') end |
.subcatalog_item_deleted ⇒ Object
4667 4668 4669 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4667 def EventType.subcatalog_item_deleted @@_subcatalog_item_deleted ||= EventType.new('subcatalog_item_deleted') end |
.subcatalog_item_upserted ⇒ Object
4663 4664 4665 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4663 def EventType.subcatalog_item_upserted @@_subcatalog_item_upserted ||= EventType.new('subcatalog_item_upserted') end |
Instance Method Details
#to_hash ⇒ Object
4759 4760 4761 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4759 def to_hash value end |