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.



5179
5180
5181
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5179

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



5177
5178
5179
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5177

def value
  @value
end

Class Method Details

.ALLObject



5199
5200
5201
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5199

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.targeting_item_upserted, EventType.targeting_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.tracking_label_event_upserted]
end

.apply(value) ⇒ Object

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



5184
5185
5186
5187
5188
5189
5190
5191
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5184

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



5363
5364
5365
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5363

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

.authorization_upsertedObject



5359
5360
5361
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5359

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

.capture_upsertedObject



5367
5368
5369
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5367

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

.card_deletedObject



5375
5376
5377
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5375

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

.card_upsertedObject



5371
5372
5373
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5371

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

.catalog_deletedObject



5207
5208
5209
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5207

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

.catalog_item_deletedObject



5223
5224
5225
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5223

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

.catalog_item_upsertedObject



5219
5220
5221
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5219

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

.catalog_upsertedObject



5203
5204
5205
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5203

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

.contracted_rate_upsertedObject



5275
5276
5277
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5275

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

.experience_deletedObject



5279
5280
5281
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5279

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

.experience_upsertedObject



5283
5284
5285
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5283

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

.flow_currency_setting_deletedObject



5243
5244
5245
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5243

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

.flow_currency_setting_upsertedObject



5247
5248
5249
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5247

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



5194
5195
5196
5197
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5194

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

.hs10_code_deletedObject



5323
5324
5325
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5323

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

.hs10_code_upsertedObject



5319
5320
5321
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5319

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

.hs6_code_deletedObject



5315
5316
5317
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5315

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

.hs6_code_upsertedObject



5311
5312
5313
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5311

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

.item_margin_deletedObject



5287
5288
5289
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5287

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

.item_margin_upsertedObject



5291
5292
5293
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5291

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

.label_upsertedObject



5327
5328
5329
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5327

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

.localized_item_deletedObject



5343
5344
5345
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5343

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

.localized_item_snapshotObject



5347
5348
5349
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5347

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

.localized_item_upsertedObject



5339
5340
5341
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5339

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

.notification_deletedObject



5335
5336
5337
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5335

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

.notification_upsertedObject



5331
5332
5333
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5331

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

.order_booking_deletedObject



5303
5304
5305
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5303

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

.order_booking_upsertedObject



5307
5308
5309
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5307

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

.order_deletedObject



5295
5296
5297
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5295

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

.order_upsertedObject



5299
5300
5301
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5299

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

.organization_currency_setting_deletedObject



5267
5268
5269
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5267

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

.organization_currency_setting_upsertedObject



5271
5272
5273
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5271

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

.organization_deletedObject



5355
5356
5357
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5355

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

.organization_upsertedObject



5351
5352
5353
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5351

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

.rate_deletedObject



5251
5252
5253
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5251

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

.rate_upsertedObject



5255
5256
5257
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5255

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

.refund_upsertedObject



5379
5380
5381
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5379

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

.spot_rate_deletedObject



5259
5260
5261
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5259

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

.spot_rate_upsertedObject



5263
5264
5265
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5263

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

.subcatalog_deletedObject



5215
5216
5217
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5215

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

.subcatalog_item_deletedObject



5231
5232
5233
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5231

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

.subcatalog_item_upsertedObject



5227
5228
5229
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5227

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

.subcatalog_upsertedObject



5211
5212
5213
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5211

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

.targeting_item_deletedObject



5239
5240
5241
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5239

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

.targeting_item_upsertedObject



5235
5236
5237
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5235

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

.tracking_label_event_upsertedObject



5383
5384
5385
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5383

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

Instance Method Details

#to_hashObject



5387
5388
5389
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5387

def to_hash
  value
end