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.



8451
8452
8453
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8451

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8449
8450
8451
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8449

def value
  @value
end

Class Method Details

.ALLObject



8471
8472
8473
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8471

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.harmonized_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.rule_upserted, EventType.rule_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, 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.reversal_upserted, 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



8531
8532
8533
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8531

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

.allocation_upsertedObject



8535
8536
8537
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8535

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



8456
8457
8458
8459
8460
8461
8462
8463
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8456

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



8479
8480
8481
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8479

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

.attribute_upsertedObject



8475
8476
8477
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8475

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

.authorization_deletedObject



8707
8708
8709
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8707

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

.authorization_deleted_v2Object



8711
8712
8713
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8711

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

.authorization_status_changedObject



8715
8716
8717
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8715

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

.authorization_upsertedObject



8703
8704
8705
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8703

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

.available_promotions_deletedObject



8527
8528
8529
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8527

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

.available_promotions_upsertedObject



8523
8524
8525
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8523

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

.capture_upsertedObject



8735
8736
8737
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8735

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

.capture_upserted_v2Object



8739
8740
8741
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8739

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

.card_authorization_upsertedObject



8719
8720
8721
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8719

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

.card_authorization_upserted_v2Object



8723
8724
8725
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8723

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

.card_deletedObject



8751
8752
8753
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8751

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

.card_upsertedObject



8743
8744
8745
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8743

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

.card_upserted_v2Object



8747
8748
8749
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8747

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

.catalog_deletedObject



8487
8488
8489
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8487

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

.catalog_item_deletedObject



8503
8504
8505
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8503

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

.catalog_item_upsertedObject



8499
8500
8501
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8499

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

.catalog_upsertedObject



8483
8484
8485
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8483

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

.experience_deletedObject



8539
8540
8541
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8539

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

.experience_upsertedObject



8543
8544
8545
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8543

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



8466
8467
8468
8469
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8466

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

.fully_harmonized_item_upsertedObject



8639
8640
8641
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8639

def EventType.fully_harmonized_item_upserted
  @@_fully_harmonized_item_upserted ||= EventType.new('fully_harmonized_item_upserted')
end

.harmonized_item_deletedObject



8631
8632
8633
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8631

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

.harmonized_item_upsertedObject



8627
8628
8629
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8627

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

.harmonized_landed_cost_upsertedObject



8635
8636
8637
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8635

def EventType.harmonized_landed_cost_upserted
  @@_harmonized_landed_cost_upserted ||= EventType.new('harmonized_landed_cost_upserted')
end

.hs10_code_deletedObject



8615
8616
8617
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8615

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

.hs10_code_upsertedObject



8611
8612
8613
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8611

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

.hs6_code_deletedObject



8607
8608
8609
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8607

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

.hs6_code_upsertedObject



8603
8604
8605
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8603

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

.item_margin_deletedObject



8547
8548
8549
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8547

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

.item_margin_upsertedObject



8551
8552
8553
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8551

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

.item_origin_deletedObject



8623
8624
8625
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8623

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

.item_origin_upsertedObject



8619
8620
8621
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8619

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

.item_sales_margin_deletedObject



8555
8556
8557
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8555

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

.item_sales_margin_upsertedObject



8559
8560
8561
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8559

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

.label_format_deletedObject



8563
8564
8565
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8563

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

.label_format_upsertedObject



8567
8568
8569
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8567

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

.label_upsertedObject



8659
8660
8661
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8659

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

.local_item_deletedObject



8683
8684
8685
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8683

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

.local_item_upsertedObject



8679
8680
8681
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8679

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

.manifested_label_deletedObject



8675
8676
8677
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8675

def EventType.manifested_label_deleted
  @@_manifested_label_deleted ||= EventType.new('manifested_label_deleted')
end

.manifested_label_upsertedObject



8671
8672
8673
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8671

def EventType.manifested_label_upserted
  @@_manifested_label_upserted ||= EventType.new('manifested_label_upserted')
end

.membership_deletedObject



8691
8692
8693
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8691

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

.membership_upsertedObject



8687
8688
8689
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8687

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

.notification_deletedObject



8667
8668
8669
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8667

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

.notification_upsertedObject



8663
8664
8665
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8663

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

.online_authorization_upsertedObject



8727
8728
8729
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8727

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

.online_authorization_upserted_v2Object



8731
8732
8733
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8731

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

.order_deletedObject



8571
8572
8573
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8571

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

.order_identifier_deletedObject



8579
8580
8581
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8579

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

.order_identifier_upsertedObject



8583
8584
8585
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8583

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

.order_upsertedObject



8575
8576
8577
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8575

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

.organization_countries_publishedObject



8779
8780
8781
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8779

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

.organization_deletedObject



8699
8700
8701
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8699

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

.organization_rates_publishedObject



8775
8776
8777
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8775

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

.organization_upsertedObject



8695
8696
8697
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8695

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

.payment_deletedObject



8759
8760
8761
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8759

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

.payment_upsertedObject



8755
8756
8757
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8755

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

.pricing_deletedObject



8587
8588
8589
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8587

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

.pricing_upsertedObject



8591
8592
8593
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8591

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

.rate_deletedObject



8515
8516
8517
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8515

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

.rate_upsertedObject



8519
8520
8521
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8519

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

.refund_upsertedObject



8763
8764
8765
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8763

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

.refund_upserted_v2Object



8767
8768
8769
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8767

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

.return_deletedObject



8787
8788
8789
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8787

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

.return_upsertedObject



8783
8784
8785
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8783

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

.reversal_upsertedObject



8771
8772
8773
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8771

def EventType.reversal_upserted
  @@_reversal_upserted ||= EventType.new('reversal_upserted')
end

.rule_deletedObject



8647
8648
8649
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8647

def EventType.rule_deleted
  @@_rule_deleted ||= EventType.new('rule_deleted')
end

.rule_upsertedObject



8643
8644
8645
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8643

def EventType.rule_upserted
  @@_rule_upserted ||= EventType.new('rule_upserted')
end

.snapshot_deletedObject



8655
8656
8657
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8655

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

.snapshot_upsertedObject



8651
8652
8653
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8651

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

.subcatalog_deletedObject



8495
8496
8497
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8495

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

.subcatalog_item_deletedObject



8511
8512
8513
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8511

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

.subcatalog_item_upsertedObject



8507
8508
8509
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8507

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

.subcatalog_upsertedObject



8491
8492
8493
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8491

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

.targeting_item_deletedObject



8795
8796
8797
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8795

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

.targeting_item_upsertedObject



8791
8792
8793
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8791

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

.tier_deletedObject



8599
8600
8601
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8599

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

.tier_upsertedObject



8595
8596
8597
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8595

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

.tracking_label_event_upsertedObject



8799
8800
8801
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8799

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

Instance Method Details

#to_hashObject



8803
8804
8805
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8803

def to_hash
  value
end