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.



7394
7395
7396
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7394

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

.ALLObject



7414
7415
7416
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7414

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



7474
7475
7476
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7474

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

.allocation_upsertedObject



7478
7479
7480
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7478

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



7399
7400
7401
7402
7403
7404
7405
7406
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7399

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



7422
7423
7424
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7422

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

.attribute_upsertedObject



7418
7419
7420
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7418

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

.authorization_deletedObject



7630
7631
7632
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7630

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

.authorization_deleted_v2Object



7634
7635
7636
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7634

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

.authorization_status_changedObject



7638
7639
7640
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7638

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

.authorization_upsertedObject



7626
7627
7628
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7626

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

.available_promotions_deletedObject



7470
7471
7472
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7470

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

.available_promotions_upsertedObject



7466
7467
7468
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7466

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

.capture_upsertedObject



7658
7659
7660
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7658

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

.capture_upserted_v2Object



7662
7663
7664
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7662

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

.card_authorization_upsertedObject



7642
7643
7644
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7642

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

.card_authorization_upserted_v2Object



7646
7647
7648
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7646

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

.card_deletedObject



7674
7675
7676
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7674

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

.card_upsertedObject



7666
7667
7668
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7666

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

.card_upserted_v2Object



7670
7671
7672
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7670

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

.catalog_deletedObject



7430
7431
7432
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7430

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

.catalog_item_deletedObject



7446
7447
7448
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7446

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

.catalog_item_upsertedObject



7442
7443
7444
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7442

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

.catalog_upsertedObject



7426
7427
7428
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7426

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

.experience_deletedObject



7482
7483
7484
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7482

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

.experience_upsertedObject



7486
7487
7488
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7486

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



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

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

.harmonized_item_deletedObject



7574
7575
7576
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7574

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

.harmonized_item_upsertedObject



7570
7571
7572
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7570

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

.hs10_code_deletedObject



7558
7559
7560
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7558

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

.hs10_code_upsertedObject



7554
7555
7556
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7554

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

.hs6_code_deletedObject



7550
7551
7552
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7550

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

.hs6_code_upsertedObject



7546
7547
7548
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7546

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

.item_margin_deletedObject



7490
7491
7492
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7490

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

.item_margin_upsertedObject



7494
7495
7496
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7494

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

.item_origin_deletedObject



7566
7567
7568
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7566

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

.item_origin_upsertedObject



7562
7563
7564
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7562

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

.item_sales_margin_deletedObject



7498
7499
7500
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7498

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

.item_sales_margin_upsertedObject



7502
7503
7504
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7502

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

.label_format_deletedObject



7506
7507
7508
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7506

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

.label_format_upsertedObject



7510
7511
7512
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7510

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

.label_upsertedObject



7586
7587
7588
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7586

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

.localized_item_deletedObject



7602
7603
7604
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7602

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

.localized_item_snapshotObject



7606
7607
7608
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7606

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

.localized_item_upsertedObject



7598
7599
7600
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7598

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

.membership_deletedObject



7614
7615
7616
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7614

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

.membership_upsertedObject



7610
7611
7612
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7610

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

.notification_deletedObject



7594
7595
7596
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7594

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

.notification_upsertedObject



7590
7591
7592
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7590

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

.online_authorization_upsertedObject



7650
7651
7652
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7650

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

.online_authorization_upserted_v2Object



7654
7655
7656
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7654

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

.order_deletedObject



7514
7515
7516
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7514

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

.order_identifier_deletedObject



7522
7523
7524
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7522

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

.order_identifier_upsertedObject



7526
7527
7528
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7526

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

.order_upsertedObject



7518
7519
7520
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7518

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

.organization_deletedObject



7622
7623
7624
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7622

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

.organization_upsertedObject



7618
7619
7620
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7618

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

.payment_deletedObject



7682
7683
7684
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7682

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

.payment_upsertedObject



7678
7679
7680
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7678

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

.pricing_deletedObject



7530
7531
7532
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7530

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

.pricing_upsertedObject



7534
7535
7536
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7534

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

.rate_deletedObject



7458
7459
7460
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7458

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

.rate_upsertedObject



7462
7463
7464
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7462

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

.refund_upsertedObject



7686
7687
7688
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7686

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

.refund_upserted_v2Object



7690
7691
7692
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7690

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

.return_deletedObject



7698
7699
7700
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7698

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

.return_upsertedObject



7694
7695
7696
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7694

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

.snapshot_deletedObject



7582
7583
7584
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7582

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

.snapshot_upsertedObject



7578
7579
7580
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7578

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

.subcatalog_deletedObject



7438
7439
7440
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7438

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

.subcatalog_item_deletedObject



7454
7455
7456
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7454

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

.subcatalog_item_upsertedObject



7450
7451
7452
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7450

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

.subcatalog_upsertedObject



7434
7435
7436
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7434

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

.targeting_item_deletedObject



7706
7707
7708
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7706

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

.targeting_item_upsertedObject



7702
7703
7704
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7702

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

.tier_deletedObject



7542
7543
7544
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7542

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

.tier_upsertedObject



7538
7539
7540
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7538

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

.tracking_label_event_upsertedObject



7710
7711
7712
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7710

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

Instance Method Details

#to_hashObject



7714
7715
7716
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7714

def to_hash
  value
end