Class: Io::Flow::V0::Models::EventType

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ EventType

Returns a new instance of EventType.



6597
6598
6599
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6597

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



6595
6596
6597
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6595

def value
  @value
end

Class Method Details

.ALLObject



6617
6618
6619
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6617

def EventType.ALL
  @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, 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.rate_deleted, EventType.rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.pricing_deleted, EventType.pricing_upserted, EventType.tier_upserted, EventType.tier_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.membership_upserted, EventType.membership_deleted, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
end

.apply(value) ⇒ Object

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



6602
6603
6604
6605
6606
6607
6608
6609
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6602

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

.attribute_deletedObject



6625
6626
6627
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6625

def EventType.attribute_deleted
  @@_attribute_deleted ||= EventType.new('attribute_deleted')
end

.attribute_upsertedObject



6621
6622
6623
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6621

def EventType.attribute_upserted
  @@_attribute_upserted ||= EventType.new('attribute_upserted')
end

.authorization_deletedObject



6809
6810
6811
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6809

def EventType.authorization_deleted
  @@_authorization_deleted ||= EventType.new('authorization_deleted')
end

.authorization_upsertedObject



6805
6806
6807
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6805

def EventType.authorization_upserted
  @@_authorization_upserted ||= EventType.new('authorization_upserted')
end

.capture_upsertedObject



6813
6814
6815
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6813

def EventType.capture_upserted
  @@_capture_upserted ||= EventType.new('capture_upserted')
end

.card_deletedObject



6821
6822
6823
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6821

def EventType.card_deleted
  @@_card_deleted ||= EventType.new('card_deleted')
end

.card_upsertedObject



6817
6818
6819
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6817

def EventType.card_upserted
  @@_card_upserted ||= EventType.new('card_upserted')
end

.catalog_deletedObject



6633
6634
6635
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6633

def EventType.catalog_deleted
  @@_catalog_deleted ||= EventType.new('catalog_deleted')
end

.catalog_item_deletedObject



6649
6650
6651
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6649

def EventType.catalog_item_deleted
  @@_catalog_item_deleted ||= EventType.new('catalog_item_deleted')
end

.catalog_item_upsertedObject



6645
6646
6647
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6645

def EventType.catalog_item_upserted
  @@_catalog_item_upserted ||= EventType.new('catalog_item_upserted')
end

.catalog_upsertedObject



6629
6630
6631
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6629

def EventType.catalog_upserted
  @@_catalog_upserted ||= EventType.new('catalog_upserted')
end

.experience_deletedObject



6669
6670
6671
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6669

def EventType.experience_deleted
  @@_experience_deleted ||= EventType.new('experience_deleted')
end

.experience_upsertedObject



6673
6674
6675
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6673

def EventType.experience_upserted
  @@_experience_upserted ||= EventType.new('experience_upserted')
end

.from_string(value) ⇒ Object

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



6612
6613
6614
6615
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6612

def EventType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  EventType.ALL.find { |v| v.value == value }
end

.harmonized_item_deletedObject



6753
6754
6755
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6753

def EventType.harmonized_item_deleted
  @@_harmonized_item_deleted ||= EventType.new('harmonized_item_deleted')
end

.harmonized_item_upsertedObject



6749
6750
6751
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6749

def EventType.harmonized_item_upserted
  @@_harmonized_item_upserted ||= EventType.new('harmonized_item_upserted')
end

.hs10_code_deletedObject



6737
6738
6739
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6737

def EventType.hs10_code_deleted
  @@_hs10_code_deleted ||= EventType.new('hs10_code_deleted')
end

.hs10_code_upsertedObject



6733
6734
6735
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6733

def EventType.hs10_code_upserted
  @@_hs10_code_upserted ||= EventType.new('hs10_code_upserted')
end

.hs6_code_deletedObject



6729
6730
6731
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6729

def EventType.hs6_code_deleted
  @@_hs6_code_deleted ||= EventType.new('hs6_code_deleted')
end

.hs6_code_upsertedObject



6725
6726
6727
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6725

def EventType.hs6_code_upserted
  @@_hs6_code_upserted ||= EventType.new('hs6_code_upserted')
end

.item_margin_deletedObject



6677
6678
6679
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6677

def EventType.item_margin_deleted
  @@_item_margin_deleted ||= EventType.new('item_margin_deleted')
end

.item_margin_upsertedObject



6681
6682
6683
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6681

def EventType.item_margin_upserted
  @@_item_margin_upserted ||= EventType.new('item_margin_upserted')
end

.item_origin_deletedObject



6745
6746
6747
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6745

def EventType.item_origin_deleted
  @@_item_origin_deleted ||= EventType.new('item_origin_deleted')
end

.item_origin_upsertedObject



6741
6742
6743
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6741

def EventType.item_origin_upserted
  @@_item_origin_upserted ||= EventType.new('item_origin_upserted')
end

.label_format_deletedObject



6685
6686
6687
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6685

def EventType.label_format_deleted
  @@_label_format_deleted ||= EventType.new('label_format_deleted')
end

.label_format_upsertedObject



6689
6690
6691
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6689

def EventType.label_format_upserted
  @@_label_format_upserted ||= EventType.new('label_format_upserted')
end

.label_upsertedObject



6765
6766
6767
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6765

def EventType.label_upserted
  @@_label_upserted ||= EventType.new('label_upserted')
end

.localized_item_deletedObject



6781
6782
6783
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6781

def EventType.localized_item_deleted
  @@_localized_item_deleted ||= EventType.new('localized_item_deleted')
end

.localized_item_snapshotObject



6785
6786
6787
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6785

def EventType.localized_item_snapshot
  @@_localized_item_snapshot ||= EventType.new('localized_item_snapshot')
end

.localized_item_upsertedObject



6777
6778
6779
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6777

def EventType.localized_item_upserted
  @@_localized_item_upserted ||= EventType.new('localized_item_upserted')
end

.membership_deletedObject



6793
6794
6795
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6793

def EventType.membership_deleted
  @@_membership_deleted ||= EventType.new('membership_deleted')
end

.membership_upsertedObject



6789
6790
6791
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6789

def EventType.membership_upserted
  @@_membership_upserted ||= EventType.new('membership_upserted')
end

.notification_deletedObject



6773
6774
6775
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6773

def EventType.notification_deleted
  @@_notification_deleted ||= EventType.new('notification_deleted')
end

.notification_upsertedObject



6769
6770
6771
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6769

def EventType.notification_upserted
  @@_notification_upserted ||= EventType.new('notification_upserted')
end

.order_deletedObject



6693
6694
6695
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6693

def EventType.order_deleted
  @@_order_deleted ||= EventType.new('order_deleted')
end

.order_identifier_deletedObject



6701
6702
6703
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6701

def EventType.order_identifier_deleted
  @@_order_identifier_deleted ||= EventType.new('order_identifier_deleted')
end

.order_identifier_upsertedObject



6705
6706
6707
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6705

def EventType.order_identifier_upserted
  @@_order_identifier_upserted ||= EventType.new('order_identifier_upserted')
end

.order_upsertedObject



6697
6698
6699
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6697

def EventType.order_upserted
  @@_order_upserted ||= EventType.new('order_upserted')
end

.organization_deletedObject



6801
6802
6803
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6801

def EventType.organization_deleted
  @@_organization_deleted ||= EventType.new('organization_deleted')
end

.organization_upsertedObject



6797
6798
6799
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6797

def EventType.organization_upserted
  @@_organization_upserted ||= EventType.new('organization_upserted')
end

.pricing_deletedObject



6709
6710
6711
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6709

def EventType.pricing_deleted
  @@_pricing_deleted ||= EventType.new('pricing_deleted')
end

.pricing_upsertedObject



6713
6714
6715
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6713

def EventType.pricing_upserted
  @@_pricing_upserted ||= EventType.new('pricing_upserted')
end

.rate_deletedObject



6661
6662
6663
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6661

def EventType.rate_deleted
  @@_rate_deleted ||= EventType.new('rate_deleted')
end

.rate_upsertedObject



6665
6666
6667
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6665

def EventType.rate_upserted
  @@_rate_upserted ||= EventType.new('rate_upserted')
end

.refund_upsertedObject



6825
6826
6827
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6825

def EventType.refund_upserted
  @@_refund_upserted ||= EventType.new('refund_upserted')
end

.return_deletedObject



6833
6834
6835
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6833

def EventType.return_deleted
  @@_return_deleted ||= EventType.new('return_deleted')
end

.return_upsertedObject



6829
6830
6831
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6829

def EventType.return_upserted
  @@_return_upserted ||= EventType.new('return_upserted')
end

.snapshot_deletedObject



6761
6762
6763
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6761

def EventType.snapshot_deleted
  @@_snapshot_deleted ||= EventType.new('snapshot_deleted')
end

.snapshot_upsertedObject



6757
6758
6759
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6757

def EventType.snapshot_upserted
  @@_snapshot_upserted ||= EventType.new('snapshot_upserted')
end

.subcatalog_deletedObject



6641
6642
6643
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6641

def EventType.subcatalog_deleted
  @@_subcatalog_deleted ||= EventType.new('subcatalog_deleted')
end

.subcatalog_item_deletedObject



6657
6658
6659
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6657

def EventType.subcatalog_item_deleted
  @@_subcatalog_item_deleted ||= EventType.new('subcatalog_item_deleted')
end

.subcatalog_item_upsertedObject



6653
6654
6655
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6653

def EventType.subcatalog_item_upserted
  @@_subcatalog_item_upserted ||= EventType.new('subcatalog_item_upserted')
end

.subcatalog_upsertedObject



6637
6638
6639
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6637

def EventType.subcatalog_upserted
  @@_subcatalog_upserted ||= EventType.new('subcatalog_upserted')
end

.targeting_item_deletedObject



6841
6842
6843
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6841

def EventType.targeting_item_deleted
  @@_targeting_item_deleted ||= EventType.new('targeting_item_deleted')
end

.targeting_item_upsertedObject



6837
6838
6839
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6837

def EventType.targeting_item_upserted
  @@_targeting_item_upserted ||= EventType.new('targeting_item_upserted')
end

.tier_deletedObject



6721
6722
6723
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6721

def EventType.tier_deleted
  @@_tier_deleted ||= EventType.new('tier_deleted')
end

.tier_upsertedObject



6717
6718
6719
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6717

def EventType.tier_upserted
  @@_tier_upserted ||= EventType.new('tier_upserted')
end

.tracking_label_event_upsertedObject



6845
6846
6847
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6845

def EventType.tracking_label_event_upserted
  @@_tracking_label_event_upserted ||= EventType.new('tracking_label_event_upserted')
end

Instance Method Details

#to_hashObject



6849
6850
6851
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6849

def to_hash
  value
end