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



7149
7150
7151
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7149

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7147
7148
7149
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7147

def value
  @value
end

Class Method Details

.ALLObject



7169
7170
7171
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7169

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.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
end

.allocation_deletedObject



7229
7230
7231
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7229

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

.allocation_upsertedObject



7233
7234
7235
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7233

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



7154
7155
7156
7157
7158
7159
7160
7161
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7154

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



7177
7178
7179
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7177

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

.attribute_upsertedObject



7173
7174
7175
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7173

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

.authorization_deletedObject



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

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

.authorization_upsertedObject



7381
7382
7383
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7381

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

.available_promotions_deletedObject



7225
7226
7227
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7225

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

.available_promotions_upsertedObject



7221
7222
7223
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7221

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

.capture_upsertedObject



7389
7390
7391
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7389

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

.card_deletedObject



7397
7398
7399
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7397

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

.card_upsertedObject



7393
7394
7395
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7393

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

.catalog_deletedObject



7185
7186
7187
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7185

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

.catalog_item_deletedObject



7201
7202
7203
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7201

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

.catalog_item_upsertedObject



7197
7198
7199
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7197

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

.catalog_upsertedObject



7181
7182
7183
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7181

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

.experience_deletedObject



7237
7238
7239
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7237

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

.experience_upsertedObject



7241
7242
7243
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7241

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



7164
7165
7166
7167
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7164

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

.harmonized_item_deletedObject



7329
7330
7331
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7329

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

.harmonized_item_upsertedObject



7325
7326
7327
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7325

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

.hs10_code_deletedObject



7313
7314
7315
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7313

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

.hs10_code_upsertedObject



7309
7310
7311
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7309

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

.hs6_code_deletedObject



7305
7306
7307
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7305

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

.hs6_code_upsertedObject



7301
7302
7303
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7301

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

.item_margin_deletedObject



7245
7246
7247
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7245

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

.item_margin_upsertedObject



7249
7250
7251
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7249

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

.item_origin_deletedObject



7321
7322
7323
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7321

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

.item_origin_upsertedObject



7317
7318
7319
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7317

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

.item_sales_margin_deletedObject



7253
7254
7255
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7253

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

.item_sales_margin_upsertedObject



7257
7258
7259
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7257

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

.label_format_deletedObject



7261
7262
7263
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7261

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

.label_format_upsertedObject



7265
7266
7267
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7265

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

.label_upsertedObject



7341
7342
7343
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7341

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

.localized_item_deletedObject



7357
7358
7359
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7357

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

.localized_item_snapshotObject



7361
7362
7363
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7361

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

.localized_item_upsertedObject



7353
7354
7355
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7353

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

.membership_deletedObject



7369
7370
7371
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7369

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

.membership_upsertedObject



7365
7366
7367
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7365

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

.notification_deletedObject



7349
7350
7351
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7349

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

.notification_upsertedObject



7345
7346
7347
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7345

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

.order_deletedObject



7269
7270
7271
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7269

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

.order_identifier_deletedObject



7277
7278
7279
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7277

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

.order_identifier_upsertedObject



7281
7282
7283
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7281

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

.order_upsertedObject



7273
7274
7275
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7273

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

.organization_deletedObject



7377
7378
7379
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7377

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

.organization_upsertedObject



7373
7374
7375
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7373

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

.pricing_deletedObject



7285
7286
7287
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7285

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

.pricing_upsertedObject



7289
7290
7291
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7289

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

.rate_deletedObject



7213
7214
7215
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7213

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

.rate_upsertedObject



7217
7218
7219
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7217

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

.refund_upsertedObject



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

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

.return_deletedObject



7409
7410
7411
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7409

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

.return_upsertedObject



7405
7406
7407
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7405

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

.snapshot_deletedObject



7337
7338
7339
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7337

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

.snapshot_upsertedObject



7333
7334
7335
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7333

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

.subcatalog_deletedObject



7193
7194
7195
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7193

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

.subcatalog_item_deletedObject



7209
7210
7211
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7209

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

.subcatalog_item_upsertedObject



7205
7206
7207
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7205

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

.subcatalog_upsertedObject



7189
7190
7191
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7189

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

.targeting_item_deletedObject



7417
7418
7419
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7417

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

.targeting_item_upsertedObject



7413
7414
7415
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7413

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

.tier_deletedObject



7297
7298
7299
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7297

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

.tier_upsertedObject



7293
7294
7295
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7293

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

.tracking_label_event_upsertedObject



7421
7422
7423
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7421

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

Instance Method Details

#to_hashObject



7425
7426
7427
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7425

def to_hash
  value
end