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.



7240
7241
7242
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7240

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7238
7239
7240
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7238

def value
  @value
end

Class Method Details

.ALLObject



7260
7261
7262
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7260

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



7320
7321
7322
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7320

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

.allocation_upsertedObject



7324
7325
7326
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7324

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



7245
7246
7247
7248
7249
7250
7251
7252
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7245

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



7268
7269
7270
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7268

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

.attribute_upsertedObject



7264
7265
7266
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7264

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

.authorization_deletedObject



7476
7477
7478
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7476

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

.authorization_deleted_v2Object



7480
7481
7482
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7480

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

.authorization_status_changedObject



7484
7485
7486
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7484

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

.authorization_upsertedObject



7472
7473
7474
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7472

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

.available_promotions_deletedObject



7316
7317
7318
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7316

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

.available_promotions_upsertedObject



7312
7313
7314
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7312

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

.capture_upsertedObject



7504
7505
7506
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7504

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

.capture_upserted_v2Object



7508
7509
7510
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7508

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

.card_authorization_upsertedObject



7488
7489
7490
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7488

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

.card_authorization_upserted_v2Object



7492
7493
7494
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7492

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

.card_deletedObject



7520
7521
7522
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7520

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

.card_upsertedObject



7512
7513
7514
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7512

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

.card_upserted_v2Object



7516
7517
7518
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7516

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

.catalog_deletedObject



7276
7277
7278
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7276

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

.catalog_item_deletedObject



7292
7293
7294
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7292

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

.catalog_item_upsertedObject



7288
7289
7290
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7288

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

.catalog_upsertedObject



7272
7273
7274
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7272

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

.experience_deletedObject



7328
7329
7330
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7328

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

.experience_upsertedObject



7332
7333
7334
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7332

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



7255
7256
7257
7258
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7255

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

.harmonized_item_deletedObject



7420
7421
7422
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7420

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

.harmonized_item_upsertedObject



7416
7417
7418
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7416

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

.hs10_code_deletedObject



7404
7405
7406
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7404

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

.hs10_code_upsertedObject



7400
7401
7402
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7400

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

.hs6_code_deletedObject



7396
7397
7398
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7396

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

.hs6_code_upsertedObject



7392
7393
7394
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7392

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

.item_margin_deletedObject



7336
7337
7338
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7336

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

.item_margin_upsertedObject



7340
7341
7342
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7340

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

.item_origin_deletedObject



7412
7413
7414
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7412

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

.item_origin_upsertedObject



7408
7409
7410
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7408

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

.item_sales_margin_deletedObject



7344
7345
7346
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7344

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

.item_sales_margin_upsertedObject



7348
7349
7350
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7348

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

.label_format_deletedObject



7352
7353
7354
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7352

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

.label_format_upsertedObject



7356
7357
7358
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7356

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

.label_upsertedObject



7432
7433
7434
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7432

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

.localized_item_deletedObject



7448
7449
7450
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7448

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

.localized_item_snapshotObject



7452
7453
7454
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7452

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

.localized_item_upsertedObject



7444
7445
7446
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7444

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

.membership_deletedObject



7460
7461
7462
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7460

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

.membership_upsertedObject



7456
7457
7458
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7456

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

.notification_deletedObject



7440
7441
7442
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7440

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

.notification_upsertedObject



7436
7437
7438
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7436

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

.online_authorization_upsertedObject



7496
7497
7498
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7496

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

.online_authorization_upserted_v2Object



7500
7501
7502
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7500

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

.order_deletedObject



7360
7361
7362
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7360

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

.order_identifier_deletedObject



7368
7369
7370
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7368

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

.order_identifier_upsertedObject



7372
7373
7374
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7372

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

.order_upsertedObject



7364
7365
7366
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7364

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

.organization_deletedObject



7468
7469
7470
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7468

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

.organization_upsertedObject



7464
7465
7466
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7464

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

.payment_deletedObject



7528
7529
7530
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7528

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

.payment_upsertedObject



7524
7525
7526
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7524

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

.pricing_deletedObject



7376
7377
7378
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7376

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

.pricing_upsertedObject



7380
7381
7382
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7380

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

.rate_deletedObject



7304
7305
7306
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7304

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

.rate_upsertedObject



7308
7309
7310
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7308

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

.refund_upsertedObject



7532
7533
7534
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7532

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

.refund_upserted_v2Object



7536
7537
7538
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7536

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

.return_deletedObject



7544
7545
7546
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7544

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

.return_upsertedObject



7540
7541
7542
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7540

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

.snapshot_deletedObject



7428
7429
7430
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7428

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

.snapshot_upsertedObject



7424
7425
7426
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7424

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

.subcatalog_deletedObject



7284
7285
7286
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7284

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

.subcatalog_item_deletedObject



7300
7301
7302
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7300

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

.subcatalog_item_upsertedObject



7296
7297
7298
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7296

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

.subcatalog_upsertedObject



7280
7281
7282
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7280

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

.targeting_item_deletedObject



7552
7553
7554
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7552

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

.targeting_item_upsertedObject



7548
7549
7550
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7548

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

.tier_deletedObject



7388
7389
7390
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7388

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

.tier_upsertedObject



7384
7385
7386
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7384

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

.tracking_label_event_upsertedObject



7556
7557
7558
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7556

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

Instance Method Details

#to_hashObject



7560
7561
7562
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7560

def to_hash
  value
end