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
- .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
- .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
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.
4498 4499 4500 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4498 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
4496 4497 4498 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4496 def value @value end |
Class Method Details
.ALL ⇒ Object
4518 4519 4520 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4518 def EventType.ALL @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.flow_currency_setting_deleted, EventType.flow_currency_setting_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.spot_rate_deleted, EventType.spot_rate_upserted, EventType.organization_currency_setting_deleted, EventType.organization_currency_setting_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.organization_upserted, EventType.organization_deleted] end |
.apply(value) ⇒ Object
Returns the instance of EventType for this value, creating a new instance for an unknown value
4503 4504 4505 4506 4507 4508 4509 4510 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4503 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
4526 4527 4528 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4526 def EventType.catalog_deleted @@_catalog_deleted ||= EventType.new('catalog_deleted') end |
.catalog_item_deleted ⇒ Object
4542 4543 4544 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4542 def EventType.catalog_item_deleted @@_catalog_item_deleted ||= EventType.new('catalog_item_deleted') end |
.catalog_item_upserted ⇒ Object
4538 4539 4540 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4538 def EventType.catalog_item_upserted @@_catalog_item_upserted ||= EventType.new('catalog_item_upserted') end |
.catalog_upserted ⇒ Object
4522 4523 4524 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4522 def EventType.catalog_upserted @@_catalog_upserted ||= EventType.new('catalog_upserted') end |
.experience_deleted ⇒ Object
4586 4587 4588 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4586 def EventType.experience_deleted @@_experience_deleted ||= EventType.new('experience_deleted') end |
.experience_upserted ⇒ Object
4590 4591 4592 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4590 def EventType.experience_upserted @@_experience_upserted ||= EventType.new('experience_upserted') end |
.flow_currency_setting_deleted ⇒ Object
4554 4555 4556 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4554 def EventType.flow_currency_setting_deleted @@_flow_currency_setting_deleted ||= EventType.new('flow_currency_setting_deleted') end |
.flow_currency_setting_upserted ⇒ Object
4558 4559 4560 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4558 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
4513 4514 4515 4516 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4513 def EventType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) EventType.ALL.find { |v| v.value == value } end |
.hs10_code_deleted ⇒ Object
4606 4607 4608 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4606 def EventType.hs10_code_deleted @@_hs10_code_deleted ||= EventType.new('hs10_code_deleted') end |
.hs10_code_upserted ⇒ Object
4602 4603 4604 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4602 def EventType.hs10_code_upserted @@_hs10_code_upserted ||= EventType.new('hs10_code_upserted') end |
.hs6_code_deleted ⇒ Object
4598 4599 4600 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4598 def EventType.hs6_code_deleted @@_hs6_code_deleted ||= EventType.new('hs6_code_deleted') end |
.hs6_code_upserted ⇒ Object
4594 4595 4596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4594 def EventType.hs6_code_upserted @@_hs6_code_upserted ||= EventType.new('hs6_code_upserted') end |
.localized_item_deleted ⇒ Object
4614 4615 4616 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4614 def EventType.localized_item_deleted @@_localized_item_deleted ||= EventType.new('localized_item_deleted') end |
.localized_item_upserted ⇒ Object
4610 4611 4612 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4610 def EventType.localized_item_upserted @@_localized_item_upserted ||= EventType.new('localized_item_upserted') end |
.organization_currency_setting_deleted ⇒ Object
4578 4579 4580 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4578 def EventType.organization_currency_setting_deleted @@_organization_currency_setting_deleted ||= EventType.new('organization_currency_setting_deleted') end |
.organization_currency_setting_upserted ⇒ Object
4582 4583 4584 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4582 def EventType.organization_currency_setting_upserted @@_organization_currency_setting_upserted ||= EventType.new('organization_currency_setting_upserted') end |
.organization_deleted ⇒ Object
4622 4623 4624 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4622 def EventType.organization_deleted @@_organization_deleted ||= EventType.new('organization_deleted') end |
.organization_upserted ⇒ Object
4618 4619 4620 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4618 def EventType.organization_upserted @@_organization_upserted ||= EventType.new('organization_upserted') end |
.rate_deleted ⇒ Object
4562 4563 4564 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4562 def EventType.rate_deleted @@_rate_deleted ||= EventType.new('rate_deleted') end |
.rate_upserted ⇒ Object
4566 4567 4568 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4566 def EventType.rate_upserted @@_rate_upserted ||= EventType.new('rate_upserted') end |
.spot_rate_deleted ⇒ Object
4570 4571 4572 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4570 def EventType.spot_rate_deleted @@_spot_rate_deleted ||= EventType.new('spot_rate_deleted') end |
.spot_rate_upserted ⇒ Object
4574 4575 4576 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4574 def EventType.spot_rate_upserted @@_spot_rate_upserted ||= EventType.new('spot_rate_upserted') end |
.subcatalog_deleted ⇒ Object
4534 4535 4536 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4534 def EventType.subcatalog_deleted @@_subcatalog_deleted ||= EventType.new('subcatalog_deleted') end |
.subcatalog_item_deleted ⇒ Object
4550 4551 4552 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4550 def EventType.subcatalog_item_deleted @@_subcatalog_item_deleted ||= EventType.new('subcatalog_item_deleted') end |
.subcatalog_item_upserted ⇒ Object
4546 4547 4548 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4546 def EventType.subcatalog_item_upserted @@_subcatalog_item_upserted ||= EventType.new('subcatalog_item_upserted') end |
.subcatalog_upserted ⇒ Object
4530 4531 4532 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4530 def EventType.subcatalog_upserted @@_subcatalog_upserted ||= EventType.new('subcatalog_upserted') end |
Instance Method Details
#to_hash ⇒ Object
4626 4627 4628 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4626 def to_hash value end |