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.



5712
5713
5714
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5712

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



5710
5711
5712
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5710

def value
  @value
end

Class Method Details

.ALLObject



5732
5733
5734
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5732

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.contracted_rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_booking_deleted, EventType.order_booking_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, 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.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



5717
5718
5719
5720
5721
5722
5723
5724
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5717

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

.authorization_deletedObject



5888
5889
5890
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5888

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

.authorization_upsertedObject



5884
5885
5886
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5884

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

.capture_upsertedObject



5892
5893
5894
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5892

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

.card_deletedObject



5900
5901
5902
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5900

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

.card_upsertedObject



5896
5897
5898
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5896

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

.catalog_deletedObject



5740
5741
5742
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5740

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

.catalog_item_deletedObject



5756
5757
5758
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5756

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

.catalog_item_upsertedObject



5752
5753
5754
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5752

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

.catalog_upsertedObject



5736
5737
5738
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5736

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

.contracted_rate_upsertedObject



5800
5801
5802
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5800

def EventType.contracted_rate_upserted
  @@_contracted_rate_upserted ||= EventType.new('contracted_rate_upserted')
end

.experience_deletedObject



5804
5805
5806
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5804

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

.experience_upsertedObject



5808
5809
5810
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5808

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

.flow_currency_setting_deletedObject



5768
5769
5770
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5768

def EventType.flow_currency_setting_deleted
  @@_flow_currency_setting_deleted ||= EventType.new('flow_currency_setting_deleted')
end

.flow_currency_setting_upsertedObject



5772
5773
5774
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5772

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



5727
5728
5729
5730
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5727

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

.hs10_code_deletedObject



5848
5849
5850
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5848

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

.hs10_code_upsertedObject



5844
5845
5846
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5844

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

.hs6_code_deletedObject



5840
5841
5842
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5840

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

.hs6_code_upsertedObject



5836
5837
5838
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5836

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

.item_margin_deletedObject



5812
5813
5814
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5812

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

.item_margin_upsertedObject



5816
5817
5818
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5816

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

.label_upsertedObject



5852
5853
5854
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5852

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

.localized_item_deletedObject



5868
5869
5870
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5868

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

.localized_item_snapshotObject



5872
5873
5874
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5872

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

.localized_item_upsertedObject



5864
5865
5866
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5864

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

.notification_deletedObject



5860
5861
5862
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5860

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

.notification_upsertedObject



5856
5857
5858
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5856

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

.order_booking_deletedObject



5828
5829
5830
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5828

def EventType.order_booking_deleted
  @@_order_booking_deleted ||= EventType.new('order_booking_deleted')
end

.order_booking_upsertedObject



5832
5833
5834
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5832

def EventType.order_booking_upserted
  @@_order_booking_upserted ||= EventType.new('order_booking_upserted')
end

.order_deletedObject



5820
5821
5822
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5820

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

.order_upsertedObject



5824
5825
5826
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5824

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

.organization_currency_setting_deletedObject



5792
5793
5794
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5792

def EventType.organization_currency_setting_deleted
  @@_organization_currency_setting_deleted ||= EventType.new('organization_currency_setting_deleted')
end

.organization_currency_setting_upsertedObject



5796
5797
5798
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5796

def EventType.organization_currency_setting_upserted
  @@_organization_currency_setting_upserted ||= EventType.new('organization_currency_setting_upserted')
end

.organization_deletedObject



5880
5881
5882
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5880

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

.organization_upsertedObject



5876
5877
5878
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5876

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

.rate_deletedObject



5776
5777
5778
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5776

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

.rate_upsertedObject



5780
5781
5782
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5780

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

.refund_upsertedObject



5904
5905
5906
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5904

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

.spot_rate_deletedObject



5784
5785
5786
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5784

def EventType.spot_rate_deleted
  @@_spot_rate_deleted ||= EventType.new('spot_rate_deleted')
end

.spot_rate_upsertedObject



5788
5789
5790
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5788

def EventType.spot_rate_upserted
  @@_spot_rate_upserted ||= EventType.new('spot_rate_upserted')
end

.subcatalog_deletedObject



5748
5749
5750
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5748

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

.subcatalog_item_deletedObject



5764
5765
5766
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5764

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

.subcatalog_item_upsertedObject



5760
5761
5762
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5760

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

.subcatalog_upsertedObject



5744
5745
5746
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5744

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

.targeting_item_deletedObject



5912
5913
5914
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5912

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

.targeting_item_upsertedObject



5908
5909
5910
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5908

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

.tracking_label_event_upsertedObject



5916
5917
5918
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5916

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

Instance Method Details

#to_hashObject



5920
5921
5922
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5920

def to_hash
  value
end