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.



7387
7388
7389
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7387

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7385
7386
7387
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7385

def value
  @value
end

Class Method Details

.ALLObject



7407
7408
7409
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7407

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



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

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

.allocation_upsertedObject



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

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



7392
7393
7394
7395
7396
7397
7398
7399
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7392

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



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

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

.attribute_upsertedObject



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

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

.authorization_deletedObject



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

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

.authorization_deleted_v2Object



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

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

.authorization_status_changedObject



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

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

.authorization_upsertedObject



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

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

.available_promotions_deletedObject



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

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

.available_promotions_upsertedObject



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

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

.capture_upsertedObject



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

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

.capture_upserted_v2Object



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

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

.card_authorization_upsertedObject



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

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

.card_authorization_upserted_v2Object



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

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

.card_deletedObject



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

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

.card_upsertedObject



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

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

.card_upserted_v2Object



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

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

.catalog_deletedObject



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

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

.catalog_item_deletedObject



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

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

.catalog_item_upsertedObject



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

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

.catalog_upsertedObject



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

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

.experience_deletedObject



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

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

.experience_upsertedObject



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

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



7402
7403
7404
7405
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7402

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

.harmonized_item_deletedObject



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

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

.harmonized_item_upsertedObject



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

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

.hs10_code_deletedObject



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

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

.hs10_code_upsertedObject



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

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

.hs6_code_deletedObject



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

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

.hs6_code_upsertedObject



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

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

.item_margin_deletedObject



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

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

.item_margin_upsertedObject



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

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

.item_origin_deletedObject



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

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

.item_origin_upsertedObject



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

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

.item_sales_margin_deletedObject



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

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

.item_sales_margin_upsertedObject



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

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

.label_format_deletedObject



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

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

.label_format_upsertedObject



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

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

.label_upsertedObject



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

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

.localized_item_deletedObject



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

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

.localized_item_snapshotObject



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

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

.localized_item_upsertedObject



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

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

.membership_deletedObject



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

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

.membership_upsertedObject



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

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

.notification_deletedObject



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

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

.notification_upsertedObject



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

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

.online_authorization_upsertedObject



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

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

.online_authorization_upserted_v2Object



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

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

.order_deletedObject



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

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

.order_identifier_deletedObject



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

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

.order_identifier_upsertedObject



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

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

.order_upsertedObject



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

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

.organization_deletedObject



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

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

.organization_upsertedObject



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

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

.payment_deletedObject



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

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

.payment_upsertedObject



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

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

.pricing_deletedObject



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

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

.pricing_upsertedObject



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

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

.rate_deletedObject



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

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

.rate_upsertedObject



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

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

.refund_upsertedObject



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

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

.refund_upserted_v2Object



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

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

.return_deletedObject



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

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

.return_upsertedObject



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

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

.snapshot_deletedObject



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

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

.snapshot_upsertedObject



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

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

.subcatalog_deletedObject



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

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

.subcatalog_item_deletedObject



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

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

.subcatalog_item_upsertedObject



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

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

.subcatalog_upsertedObject



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

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

.targeting_item_deletedObject



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

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

.targeting_item_upsertedObject



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

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

.tier_deletedObject



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

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

.tier_upsertedObject



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

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

.tracking_label_event_upsertedObject



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

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

Instance Method Details

#to_hashObject



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

def to_hash
  value
end