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.



7880
7881
7882
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7880

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7878
7879
7880
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7878

def value
  @value
end

Class Method Details

.ALLObject



7900
7901
7902
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7900

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.available_promotions_upserted, EventType.available_promotions_deleted, EventType.allocation_deleted, EventType.allocation_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_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.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted, EventType.online_authorization_upserted_v2, EventType.capture_upserted, EventType.capture_upserted_v2, EventType.card_upserted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted, EventType.refund_upserted_v2, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
end

.allocation_deletedObject



7960
7961
7962
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7960

def EventType.allocation_deleted
  @@_allocation_deleted ||= EventType.new('allocation_deleted')
end

.allocation_upsertedObject



7964
7965
7966
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7964

def EventType.allocation_upserted
  @@_allocation_upserted ||= EventType.new('allocation_upserted')
end

.apply(value) ⇒ Object

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



7885
7886
7887
7888
7889
7890
7891
7892
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7885

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



7908
7909
7910
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7908

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

.attribute_upsertedObject



7904
7905
7906
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7904

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

.authorization_deletedObject



8116
8117
8118
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8116

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

.authorization_deleted_v2Object



8120
8121
8122
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8120

def EventType.authorization_deleted_v2
  @@_authorization_deleted_v2 ||= EventType.new('authorization_deleted_v2')
end

.authorization_status_changedObject



8124
8125
8126
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8124

def EventType.authorization_status_changed
  @@_authorization_status_changed ||= EventType.new('authorization_status_changed')
end

.authorization_upsertedObject



8112
8113
8114
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8112

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

.available_promotions_deletedObject



7956
7957
7958
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7956

def EventType.available_promotions_deleted
  @@_available_promotions_deleted ||= EventType.new('available_promotions_deleted')
end

.available_promotions_upsertedObject



7952
7953
7954
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7952

def EventType.available_promotions_upserted
  @@_available_promotions_upserted ||= EventType.new('available_promotions_upserted')
end

.capture_upsertedObject



8144
8145
8146
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8144

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

.capture_upserted_v2Object



8148
8149
8150
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8148

def EventType.capture_upserted_v2
  @@_capture_upserted_v2 ||= EventType.new('capture_upserted_v2')
end

.card_authorization_upsertedObject



8128
8129
8130
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8128

def EventType.card_authorization_upserted
  @@_card_authorization_upserted ||= EventType.new('card_authorization_upserted')
end

.card_authorization_upserted_v2Object



8132
8133
8134
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8132

def EventType.card_authorization_upserted_v2
  @@_card_authorization_upserted_v2 ||= EventType.new('card_authorization_upserted_v2')
end

.card_deletedObject



8160
8161
8162
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8160

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

.card_upsertedObject



8152
8153
8154
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8152

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

.card_upserted_v2Object



8156
8157
8158
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8156

def EventType.card_upserted_v2
  @@_card_upserted_v2 ||= EventType.new('card_upserted_v2')
end

.catalog_deletedObject



7916
7917
7918
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7916

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

.catalog_item_deletedObject



7932
7933
7934
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7932

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

.catalog_item_upsertedObject



7928
7929
7930
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7928

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

.catalog_upsertedObject



7912
7913
7914
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7912

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

.experience_deletedObject



7968
7969
7970
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7968

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

.experience_upsertedObject



7972
7973
7974
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7972

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



7895
7896
7897
7898
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7895

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

.harmonized_item_deletedObject



8060
8061
8062
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8060

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

.harmonized_item_upsertedObject



8056
8057
8058
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8056

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

.hs10_code_deletedObject



8044
8045
8046
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8044

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

.hs10_code_upsertedObject



8040
8041
8042
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8040

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

.hs6_code_deletedObject



8036
8037
8038
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8036

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

.hs6_code_upsertedObject



8032
8033
8034
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8032

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

.item_margin_deletedObject



7976
7977
7978
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7976

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

.item_margin_upsertedObject



7980
7981
7982
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7980

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

.item_origin_deletedObject



8052
8053
8054
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8052

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

.item_origin_upsertedObject



8048
8049
8050
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8048

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

.item_sales_margin_deletedObject



7984
7985
7986
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7984

def EventType.item_sales_margin_deleted
  @@_item_sales_margin_deleted ||= EventType.new('item_sales_margin_deleted')
end

.item_sales_margin_upsertedObject



7988
7989
7990
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7988

def EventType.item_sales_margin_upserted
  @@_item_sales_margin_upserted ||= EventType.new('item_sales_margin_upserted')
end

.label_format_deletedObject



7992
7993
7994
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7992

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

.label_format_upsertedObject



7996
7997
7998
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7996

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

.label_upsertedObject



8072
8073
8074
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8072

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

.localized_item_deletedObject



8088
8089
8090
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8088

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

.localized_item_snapshotObject



8092
8093
8094
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8092

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

.localized_item_upsertedObject



8084
8085
8086
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8084

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

.membership_deletedObject



8100
8101
8102
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8100

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

.membership_upsertedObject



8096
8097
8098
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8096

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

.notification_deletedObject



8080
8081
8082
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8080

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

.notification_upsertedObject



8076
8077
8078
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8076

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

.online_authorization_upsertedObject



8136
8137
8138
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8136

def EventType.online_authorization_upserted
  @@_online_authorization_upserted ||= EventType.new('online_authorization_upserted')
end

.online_authorization_upserted_v2Object



8140
8141
8142
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8140

def EventType.online_authorization_upserted_v2
  @@_online_authorization_upserted_v2 ||= EventType.new('online_authorization_upserted_v2')
end

.order_deletedObject



8000
8001
8002
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8000

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

.order_identifier_deletedObject



8008
8009
8010
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8008

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

.order_identifier_upsertedObject



8012
8013
8014
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8012

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

.order_upsertedObject



8004
8005
8006
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8004

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

.organization_deletedObject



8108
8109
8110
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8108

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

.organization_upsertedObject



8104
8105
8106
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8104

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

.payment_deletedObject



8168
8169
8170
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8168

def EventType.payment_deleted
  @@_payment_deleted ||= EventType.new('payment_deleted')
end

.payment_upsertedObject



8164
8165
8166
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8164

def EventType.payment_upserted
  @@_payment_upserted ||= EventType.new('payment_upserted')
end

.pricing_deletedObject



8016
8017
8018
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8016

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

.pricing_upsertedObject



8020
8021
8022
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8020

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

.rate_deletedObject



7944
7945
7946
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7944

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

.rate_upsertedObject



7948
7949
7950
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7948

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

.refund_upsertedObject



8172
8173
8174
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8172

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

.refund_upserted_v2Object



8176
8177
8178
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8176

def EventType.refund_upserted_v2
  @@_refund_upserted_v2 ||= EventType.new('refund_upserted_v2')
end

.return_deletedObject



8184
8185
8186
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8184

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

.return_upsertedObject



8180
8181
8182
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8180

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

.snapshot_deletedObject



8068
8069
8070
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8068

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

.snapshot_upsertedObject



8064
8065
8066
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8064

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

.subcatalog_deletedObject



7924
7925
7926
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7924

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

.subcatalog_item_deletedObject



7940
7941
7942
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7940

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

.subcatalog_item_upsertedObject



7936
7937
7938
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7936

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

.subcatalog_upsertedObject



7920
7921
7922
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7920

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

.targeting_item_deletedObject



8192
8193
8194
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8192

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

.targeting_item_upsertedObject



8188
8189
8190
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8188

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

.tier_deletedObject



8028
8029
8030
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8028

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

.tier_upsertedObject



8024
8025
8026
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8024

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

.tracking_label_event_upsertedObject



8196
8197
8198
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8196

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

Instance Method Details

#to_hashObject



8200
8201
8202
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8200

def to_hash
  value
end