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.



7910
7911
7912
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7910

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

.ALLObject



7930
7931
7932
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7930

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_upserted_v2, EventType.localized_item_deleted, EventType.localized_item_deleted_v2, 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



7990
7991
7992
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7990

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

.allocation_upsertedObject



7994
7995
7996
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7994

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



7915
7916
7917
7918
7919
7920
7921
7922
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7915

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



7938
7939
7940
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7938

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

.attribute_upsertedObject



7934
7935
7936
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7934

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

.authorization_deletedObject



8154
8155
8156
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8154

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

.authorization_deleted_v2Object



8158
8159
8160
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8158

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

.authorization_status_changedObject



8162
8163
8164
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8162

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

.authorization_upsertedObject



8150
8151
8152
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8150

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

.available_promotions_deletedObject



7986
7987
7988
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7986

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

.available_promotions_upsertedObject



7982
7983
7984
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7982

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

.capture_upsertedObject



8182
8183
8184
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8182

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

.capture_upserted_v2Object



8186
8187
8188
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8186

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

.card_authorization_upsertedObject



8166
8167
8168
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8166

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

.card_authorization_upserted_v2Object



8170
8171
8172
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8170

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

.card_deletedObject



8198
8199
8200
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8198

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

.card_upsertedObject



8190
8191
8192
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8190

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

.card_upserted_v2Object



8194
8195
8196
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8194

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

.catalog_deletedObject



7946
7947
7948
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7946

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

.catalog_item_deletedObject



7962
7963
7964
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7962

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

.catalog_item_upsertedObject



7958
7959
7960
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7958

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

.catalog_upsertedObject



7942
7943
7944
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7942

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

.experience_deletedObject



7998
7999
8000
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7998

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

.experience_upsertedObject



8002
8003
8004
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8002

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



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

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

.harmonized_item_deletedObject



8090
8091
8092
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8090

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

.harmonized_item_upsertedObject



8086
8087
8088
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8086

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

.hs10_code_deletedObject



8074
8075
8076
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8074

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

.hs10_code_upsertedObject



8070
8071
8072
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8070

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

.hs6_code_deletedObject



8066
8067
8068
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8066

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

.hs6_code_upsertedObject



8062
8063
8064
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8062

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

.item_margin_deletedObject



8006
8007
8008
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8006

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

.item_margin_upsertedObject



8010
8011
8012
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8010

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

.item_origin_deletedObject



8082
8083
8084
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8082

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

.item_origin_upsertedObject



8078
8079
8080
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8078

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

.item_sales_margin_deletedObject



8014
8015
8016
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8014

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

.item_sales_margin_upsertedObject



8018
8019
8020
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8018

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

.label_format_deletedObject



8022
8023
8024
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8022

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

.label_format_upsertedObject



8026
8027
8028
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8026

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

.label_upsertedObject



8102
8103
8104
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8102

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

.localized_item_deletedObject



8122
8123
8124
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8122

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

.localized_item_deleted_v2Object



8126
8127
8128
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8126

def EventType.localized_item_deleted_v2
  @@_localized_item_deleted_v2 ||= EventType.new('localized_item_deleted_v2')
end

.localized_item_snapshotObject



8130
8131
8132
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8130

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

.localized_item_upsertedObject



8114
8115
8116
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8114

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

.localized_item_upserted_v2Object



8118
8119
8120
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8118

def EventType.localized_item_upserted_v2
  @@_localized_item_upserted_v2 ||= EventType.new('localized_item_upserted_v2')
end

.membership_deletedObject



8138
8139
8140
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8138

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

.membership_upsertedObject



8134
8135
8136
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8134

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

.notification_deletedObject



8110
8111
8112
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8110

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

.notification_upsertedObject



8106
8107
8108
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8106

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

.online_authorization_upsertedObject



8174
8175
8176
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8174

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

.online_authorization_upserted_v2Object



8178
8179
8180
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8178

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

.order_deletedObject



8030
8031
8032
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8030

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

.order_identifier_deletedObject



8038
8039
8040
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8038

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

.order_identifier_upsertedObject



8042
8043
8044
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8042

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

.order_upsertedObject



8034
8035
8036
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8034

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

.organization_deletedObject



8146
8147
8148
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8146

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

.organization_upsertedObject



8142
8143
8144
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8142

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

.payment_deletedObject



8206
8207
8208
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8206

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

.payment_upsertedObject



8202
8203
8204
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8202

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

.pricing_deletedObject



8046
8047
8048
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8046

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

.pricing_upsertedObject



8050
8051
8052
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8050

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

.rate_deletedObject



7974
7975
7976
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7974

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

.rate_upsertedObject



7978
7979
7980
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7978

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

.refund_upsertedObject



8210
8211
8212
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8210

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

.refund_upserted_v2Object



8214
8215
8216
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8214

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

.return_deletedObject



8222
8223
8224
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8222

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

.return_upsertedObject



8218
8219
8220
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8218

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

.snapshot_deletedObject



8098
8099
8100
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8098

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

.snapshot_upsertedObject



8094
8095
8096
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8094

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

.subcatalog_deletedObject



7954
7955
7956
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7954

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

.subcatalog_item_deletedObject



7970
7971
7972
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7970

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

.subcatalog_item_upsertedObject



7966
7967
7968
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7966

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

.subcatalog_upsertedObject



7950
7951
7952
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7950

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

.targeting_item_deletedObject



8230
8231
8232
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8230

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

.targeting_item_upsertedObject



8226
8227
8228
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8226

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

.tier_deletedObject



8058
8059
8060
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8058

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

.tier_upsertedObject



8054
8055
8056
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8054

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

.tracking_label_event_upsertedObject



8234
8235
8236
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8234

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

Instance Method Details

#to_hashObject



8238
8239
8240
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8238

def to_hash
  value
end