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.



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

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

.ALLObject



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

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



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

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

.allocation_upsertedObject



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

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



7540
7541
7542
7543
7544
7545
7546
7547
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7540

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



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

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

.attribute_upsertedObject



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

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

.authorization_deletedObject



7771
7772
7773
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7771

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

.authorization_deleted_v2Object



7775
7776
7777
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7775

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

.authorization_status_changedObject



7779
7780
7781
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7779

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

.authorization_upsertedObject



7767
7768
7769
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7767

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

.available_promotions_deletedObject



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

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

.available_promotions_upsertedObject



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

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

.capture_upsertedObject



7799
7800
7801
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7799

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

.capture_upserted_v2Object



7803
7804
7805
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7803

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

.card_authorization_upsertedObject



7783
7784
7785
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7783

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

.card_authorization_upserted_v2Object



7787
7788
7789
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7787

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

.card_deletedObject



7815
7816
7817
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7815

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

.card_upsertedObject



7807
7808
7809
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7807

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

.card_upserted_v2Object



7811
7812
7813
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7811

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

.catalog_deletedObject



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

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

.catalog_item_deletedObject



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

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

.catalog_item_upsertedObject



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

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

.catalog_upsertedObject



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

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

.experience_deletedObject



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

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

.experience_upsertedObject



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

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



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

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

.harmonized_item_deletedObject



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

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

.harmonized_item_upsertedObject



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

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

.hs10_code_deletedObject



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

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

.hs10_code_upsertedObject



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

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

.hs6_code_deletedObject



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

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

.hs6_code_upsertedObject



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

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

.item_margin_deletedObject



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

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

.item_margin_upsertedObject



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

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

.item_origin_deletedObject



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

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

.item_origin_upsertedObject



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

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

.item_sales_margin_deletedObject



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

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

.item_sales_margin_upsertedObject



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

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

.label_format_deletedObject



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

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

.label_format_upsertedObject



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

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

.label_upsertedObject



7727
7728
7729
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7727

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

.localized_item_deletedObject



7743
7744
7745
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7743

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

.localized_item_snapshotObject



7747
7748
7749
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7747

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

.localized_item_upsertedObject



7739
7740
7741
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7739

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

.membership_deletedObject



7755
7756
7757
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7755

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

.membership_upsertedObject



7751
7752
7753
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7751

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

.notification_deletedObject



7735
7736
7737
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7735

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

.notification_upsertedObject



7731
7732
7733
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7731

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

.online_authorization_upsertedObject



7791
7792
7793
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7791

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

.online_authorization_upserted_v2Object



7795
7796
7797
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7795

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

.order_deletedObject



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

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

.order_identifier_deletedObject



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

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

.order_identifier_upsertedObject



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

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

.order_upsertedObject



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

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

.organization_deletedObject



7763
7764
7765
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7763

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

.organization_upsertedObject



7759
7760
7761
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7759

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

.payment_deletedObject



7823
7824
7825
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7823

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

.payment_upsertedObject



7819
7820
7821
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7819

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

.pricing_deletedObject



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

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

.pricing_upsertedObject



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

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

.rate_deletedObject



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

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

.rate_upsertedObject



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

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

.refund_upsertedObject



7827
7828
7829
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7827

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

.refund_upserted_v2Object



7831
7832
7833
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7831

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

.return_deletedObject



7839
7840
7841
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7839

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

.return_upsertedObject



7835
7836
7837
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7835

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

.snapshot_deletedObject



7723
7724
7725
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7723

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

.snapshot_upsertedObject



7719
7720
7721
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7719

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

.subcatalog_deletedObject



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

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

.subcatalog_item_deletedObject



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

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

.subcatalog_item_upsertedObject



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

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

.subcatalog_upsertedObject



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

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

.targeting_item_deletedObject



7847
7848
7849
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7847

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

.targeting_item_upsertedObject



7843
7844
7845
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7843

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

.tier_deletedObject



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

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

.tier_upsertedObject



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

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

.tracking_label_event_upsertedObject



7851
7852
7853
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7851

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

Instance Method Details

#to_hashObject



7855
7856
7857
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7855

def to_hash
  value
end