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.



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

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

.ALLObject



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

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.local_item_upserted, EventType.local_item_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.organization_rates_published, EventType.organization_countries_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
end

.allocation_deletedObject



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

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

.allocation_upsertedObject



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

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



8067
8068
8069
8070
8071
8072
8073
8074
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8067

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



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

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

.attribute_upsertedObject



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

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

.authorization_deletedObject



8314
8315
8316
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8314

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

.authorization_deleted_v2Object



8318
8319
8320
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8318

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

.authorization_status_changedObject



8322
8323
8324
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8322

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

.authorization_upsertedObject



8310
8311
8312
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8310

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

.available_promotions_deletedObject



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

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

.available_promotions_upsertedObject



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

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

.capture_upsertedObject



8342
8343
8344
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8342

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

.capture_upserted_v2Object



8346
8347
8348
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8346

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

.card_authorization_upsertedObject



8326
8327
8328
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8326

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

.card_authorization_upserted_v2Object



8330
8331
8332
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8330

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

.card_deletedObject



8358
8359
8360
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8358

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

.card_upsertedObject



8350
8351
8352
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8350

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

.card_upserted_v2Object



8354
8355
8356
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8354

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

.catalog_deletedObject



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

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

.catalog_item_deletedObject



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

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

.catalog_item_upsertedObject



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

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

.catalog_upsertedObject



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

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

.experience_deletedObject



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

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

.experience_upsertedObject



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

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



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

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

.harmonized_item_deletedObject



8242
8243
8244
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8242

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

.harmonized_item_upsertedObject



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

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

.hs10_code_deletedObject



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

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

.hs10_code_upsertedObject



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

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

.hs6_code_deletedObject



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

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

.hs6_code_upsertedObject



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

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

.item_margin_deletedObject



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

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

.item_margin_upsertedObject



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

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

.item_origin_deletedObject



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

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

.item_origin_upsertedObject



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

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

.item_sales_margin_deletedObject



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

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

.item_sales_margin_upsertedObject



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

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

.label_format_deletedObject



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

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

.label_format_upsertedObject



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

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

.label_upsertedObject



8254
8255
8256
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8254

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

.local_item_deletedObject



8270
8271
8272
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8270

def EventType.local_item_deleted
  @@_local_item_deleted ||= EventType.new('local_item_deleted')
end

.local_item_upsertedObject



8266
8267
8268
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8266

def EventType.local_item_upserted
  @@_local_item_upserted ||= EventType.new('local_item_upserted')
end

.localized_item_deletedObject



8282
8283
8284
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8282

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

.localized_item_deleted_v2Object



8286
8287
8288
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8286

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

.localized_item_snapshotObject



8290
8291
8292
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8290

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

.localized_item_upsertedObject



8274
8275
8276
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8274

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

.localized_item_upserted_v2Object



8278
8279
8280
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8278

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

.membership_deletedObject



8298
8299
8300
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8298

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

.membership_upsertedObject



8294
8295
8296
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8294

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

.notification_deletedObject



8262
8263
8264
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8262

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

.notification_upsertedObject



8258
8259
8260
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8258

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

.online_authorization_upsertedObject



8334
8335
8336
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8334

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

.online_authorization_upserted_v2Object



8338
8339
8340
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8338

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

.order_deletedObject



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

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

.order_identifier_deletedObject



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

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

.order_identifier_upsertedObject



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

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

.order_upsertedObject



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

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

.organization_countries_publishedObject



8382
8383
8384
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8382

def EventType.organization_countries_published
  @@_organization_countries_published ||= EventType.new('organization_countries_published')
end

.organization_deletedObject



8306
8307
8308
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8306

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

.organization_rates_publishedObject



8378
8379
8380
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8378

def EventType.organization_rates_published
  @@_organization_rates_published ||= EventType.new('organization_rates_published')
end

.organization_upsertedObject



8302
8303
8304
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8302

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

.payment_deletedObject



8366
8367
8368
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8366

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

.payment_upsertedObject



8362
8363
8364
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8362

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

.pricing_deletedObject



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

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

.pricing_upsertedObject



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

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

.rate_deletedObject



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

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

.rate_upsertedObject



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

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

.refund_upsertedObject



8370
8371
8372
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8370

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

.refund_upserted_v2Object



8374
8375
8376
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8374

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

.return_deletedObject



8390
8391
8392
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8390

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

.return_upsertedObject



8386
8387
8388
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8386

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

.snapshot_deletedObject



8250
8251
8252
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8250

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

.snapshot_upsertedObject



8246
8247
8248
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8246

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

.subcatalog_deletedObject



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

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

.subcatalog_item_deletedObject



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

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

.subcatalog_item_upsertedObject



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

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

.subcatalog_upsertedObject



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

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

.targeting_item_deletedObject



8398
8399
8400
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8398

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

.targeting_item_upsertedObject



8394
8395
8396
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8394

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

.tier_deletedObject



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

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

.tier_upsertedObject



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

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

.tracking_label_event_upsertedObject



8402
8403
8404
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8402

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

Instance Method Details

#to_hashObject



8406
8407
8408
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8406

def to_hash
  value
end