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.



8432
8433
8434
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8432

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8430
8431
8432
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8430

def value
  @value
end

Class Method Details

.ALLObject



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

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.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



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

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

.allocation_upsertedObject



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

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



8437
8438
8439
8440
8441
8442
8443
8444
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8437

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



8460
8461
8462
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8460

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

.attribute_upsertedObject



8456
8457
8458
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8456

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

.authorization_deletedObject



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

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

.authorization_deleted_v2Object



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

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

.authorization_status_changedObject



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

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

.authorization_upsertedObject



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

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

.available_promotions_deletedObject



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

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

.available_promotions_upsertedObject



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

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

.capture_upsertedObject



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

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

.capture_upserted_v2Object



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

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

.card_authorization_upsertedObject



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

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

.card_authorization_upserted_v2Object



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

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

.card_deletedObject



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

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

.card_upsertedObject



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

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

.card_upserted_v2Object



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

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

.catalog_deletedObject



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

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

.catalog_item_deletedObject



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

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

.catalog_item_upsertedObject



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

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

.catalog_upsertedObject



8464
8465
8466
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8464

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

.experience_deletedObject



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

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

.experience_upsertedObject



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

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



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

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

.harmonized_item_deletedObject



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

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

.harmonized_item_upsertedObject



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

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

.harmonized_landed_cost_upsertedObject



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

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

.hs10_code_deletedObject



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

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

.hs10_code_upsertedObject



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

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

.hs6_code_deletedObject



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

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

.hs6_code_upsertedObject



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

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

.item_margin_deletedObject



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

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

.item_margin_upsertedObject



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

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

.item_origin_deletedObject



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

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

.item_origin_upsertedObject



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

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

.item_sales_margin_deletedObject



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

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

.item_sales_margin_upsertedObject



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

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

.label_format_deletedObject



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

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

.label_format_upsertedObject



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

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

.label_upsertedObject



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

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

.local_item_deletedObject



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

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

.local_item_upsertedObject



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

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

.manifested_label_deletedObject



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

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

.manifested_label_upsertedObject



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

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

.membership_deletedObject



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

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

.membership_upsertedObject



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

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

.notification_deletedObject



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

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

.notification_upsertedObject



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

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

.online_authorization_upsertedObject



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

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

.online_authorization_upserted_v2Object



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

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

.order_deletedObject



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

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

.order_identifier_deletedObject



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

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

.order_identifier_upsertedObject



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

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

.order_upsertedObject



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

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

.organization_countries_publishedObject



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

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

.organization_deletedObject



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

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

.organization_rates_publishedObject



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

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

.organization_upsertedObject



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

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

.payment_deletedObject



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

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

.payment_upsertedObject



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

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

.pricing_deletedObject



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

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

.pricing_upsertedObject



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

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

.rate_deletedObject



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

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

.rate_upsertedObject



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

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

.refund_upsertedObject



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

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

.refund_upserted_v2Object



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

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

.return_deletedObject



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

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

.return_upsertedObject



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

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

.reversal_upsertedObject



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

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

.rule_deletedObject



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

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

.rule_upsertedObject



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

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

.snapshot_deletedObject



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

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

.snapshot_upsertedObject



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

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

.subcatalog_deletedObject



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

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

.subcatalog_item_deletedObject



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

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

.subcatalog_item_upsertedObject



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

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

.subcatalog_upsertedObject



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

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

.targeting_item_deletedObject



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

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

.targeting_item_upsertedObject



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

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

.tier_deletedObject



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

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

.tier_upsertedObject



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

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

.tracking_label_event_upsertedObject



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

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

Instance Method Details

#to_hashObject



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

def to_hash
  value
end