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.



8394
8395
8396
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8394

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8392
8393
8394
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8392

def value
  @value
end

Class Method Details

.ALLObject



8414
8415
8416
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8414

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



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

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

.allocation_upsertedObject



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

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



8399
8400
8401
8402
8403
8404
8405
8406
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8399

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



8422
8423
8424
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8422

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

.attribute_upsertedObject



8418
8419
8420
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8418

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

.authorization_deletedObject



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

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

.authorization_deleted_v2Object



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

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

.authorization_status_changedObject



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

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

.authorization_upsertedObject



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

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

.available_promotions_deletedObject



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

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

.available_promotions_upsertedObject



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

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

.capture_upsertedObject



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

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

.capture_upserted_v2Object



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

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

.card_authorization_upsertedObject



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

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

.card_authorization_upserted_v2Object



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

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

.card_deletedObject



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

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

.card_upsertedObject



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

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

.card_upserted_v2Object



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

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

.catalog_deletedObject



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

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

.catalog_item_deletedObject



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

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

.catalog_item_upsertedObject



8442
8443
8444
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8442

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

.catalog_upsertedObject



8426
8427
8428
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8426

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

.experience_deletedObject



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

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

.experience_upsertedObject



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

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



8409
8410
8411
8412
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8409

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

.harmonized_item_deletedObject



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

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

.harmonized_item_upsertedObject



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

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

.harmonized_landed_cost_upsertedObject



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

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

.hs10_code_deletedObject



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

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

.hs10_code_upsertedObject



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

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

.hs6_code_deletedObject



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

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

.hs6_code_upsertedObject



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

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

.item_margin_deletedObject



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

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

.item_margin_upsertedObject



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

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

.item_origin_deletedObject



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

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

.item_origin_upsertedObject



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

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

.item_sales_margin_deletedObject



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

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

.item_sales_margin_upsertedObject



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

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

.label_format_deletedObject



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

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

.label_format_upsertedObject



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

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

.label_upsertedObject



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

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

.local_item_deletedObject



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

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

.local_item_upsertedObject



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

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

.manifested_label_deletedObject



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

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

.manifested_label_upsertedObject



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

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

.membership_deletedObject



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

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

.membership_upsertedObject



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

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

.notification_deletedObject



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

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

.notification_upsertedObject



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

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

.online_authorization_upsertedObject



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

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

.online_authorization_upserted_v2Object



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

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

.order_deletedObject



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

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

.order_identifier_deletedObject



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

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

.order_identifier_upsertedObject



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

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

.order_upsertedObject



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

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

.organization_countries_publishedObject



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

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

.organization_deletedObject



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

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

.organization_rates_publishedObject



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

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

.organization_upsertedObject



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

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

.payment_deletedObject



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

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

.payment_upsertedObject



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

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

.pricing_deletedObject



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

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

.pricing_upsertedObject



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

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

.rate_deletedObject



8458
8459
8460
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8458

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

.rate_upsertedObject



8462
8463
8464
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8462

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

.refund_upsertedObject



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

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

.refund_upserted_v2Object



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

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

.return_deletedObject



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

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

.return_upsertedObject



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

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

.reversal_upsertedObject



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

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

.rule_deletedObject



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

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

.rule_upsertedObject



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

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

.snapshot_deletedObject



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

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

.snapshot_upsertedObject



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

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

.subcatalog_deletedObject



8438
8439
8440
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8438

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

.subcatalog_item_deletedObject



8454
8455
8456
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8454

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

.subcatalog_item_upsertedObject



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

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

.subcatalog_upsertedObject



8434
8435
8436
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8434

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

.targeting_item_deletedObject



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

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

.targeting_item_upsertedObject



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

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

.tier_deletedObject



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

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

.tier_upsertedObject



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

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

.tracking_label_event_upsertedObject



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

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

Instance Method Details

#to_hashObject



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

def to_hash
  value
end