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.



8117
8118
8119
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8117

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8115
8116
8117
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8115

def value
  @value
end

Class Method Details

.ALLObject



8137
8138
8139
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8137

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.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_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



8197
8198
8199
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8197

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

.allocation_upsertedObject



8201
8202
8203
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8201

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



8122
8123
8124
8125
8126
8127
8128
8129
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8122

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



8145
8146
8147
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8145

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

.attribute_upsertedObject



8141
8142
8143
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8141

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

.authorization_deletedObject



8353
8354
8355
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8353

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

.authorization_deleted_v2Object



8357
8358
8359
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8357

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

.authorization_status_changedObject



8361
8362
8363
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8361

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

.authorization_upsertedObject



8349
8350
8351
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8349

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

.available_promotions_deletedObject



8193
8194
8195
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8193

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

.available_promotions_upsertedObject



8189
8190
8191
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8189

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

.capture_upsertedObject



8381
8382
8383
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8381

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

.capture_upserted_v2Object



8385
8386
8387
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8385

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

.card_authorization_upsertedObject



8365
8366
8367
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8365

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

.card_authorization_upserted_v2Object



8369
8370
8371
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8369

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

.card_deletedObject



8397
8398
8399
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8397

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

.card_upsertedObject



8389
8390
8391
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8389

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

.card_upserted_v2Object



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

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

.catalog_deletedObject



8153
8154
8155
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8153

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

.catalog_item_deletedObject



8169
8170
8171
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8169

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

.catalog_item_upsertedObject



8165
8166
8167
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8165

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

.catalog_upsertedObject



8149
8150
8151
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8149

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

.experience_deletedObject



8205
8206
8207
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8205

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

.experience_upsertedObject



8209
8210
8211
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8209

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



8132
8133
8134
8135
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8132

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

.harmonized_item_deletedObject



8297
8298
8299
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8297

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

.harmonized_item_upsertedObject



8293
8294
8295
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8293

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

.harmonized_landed_cost_upsertedObject



8301
8302
8303
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8301

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

.hs10_code_deletedObject



8281
8282
8283
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8281

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

.hs10_code_upsertedObject



8277
8278
8279
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8277

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

.hs6_code_deletedObject



8273
8274
8275
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8273

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

.hs6_code_upsertedObject



8269
8270
8271
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8269

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

.item_margin_deletedObject



8213
8214
8215
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8213

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

.item_margin_upsertedObject



8217
8218
8219
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8217

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

.item_origin_deletedObject



8289
8290
8291
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8289

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

.item_origin_upsertedObject



8285
8286
8287
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8285

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

.item_sales_margin_deletedObject



8221
8222
8223
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8221

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

.item_sales_margin_upsertedObject



8225
8226
8227
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8225

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

.label_format_deletedObject



8229
8230
8231
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8229

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

.label_format_upsertedObject



8233
8234
8235
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8233

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

.label_upsertedObject



8313
8314
8315
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8313

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

.local_item_deletedObject



8329
8330
8331
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8329

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

.local_item_upsertedObject



8325
8326
8327
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8325

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

.membership_deletedObject



8337
8338
8339
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8337

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

.membership_upsertedObject



8333
8334
8335
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8333

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

.notification_deletedObject



8321
8322
8323
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8321

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

.notification_upsertedObject



8317
8318
8319
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8317

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

.online_authorization_upsertedObject



8373
8374
8375
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8373

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

.online_authorization_upserted_v2Object



8377
8378
8379
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8377

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

.order_deletedObject



8237
8238
8239
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8237

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

.order_identifier_deletedObject



8245
8246
8247
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8245

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

.order_identifier_upsertedObject



8249
8250
8251
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8249

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

.order_upsertedObject



8241
8242
8243
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8241

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

.organization_countries_publishedObject



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

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

.organization_deletedObject



8345
8346
8347
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8345

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

.organization_rates_publishedObject



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

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

.organization_upsertedObject



8341
8342
8343
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8341

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

.payment_deletedObject



8405
8406
8407
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8405

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

.payment_upsertedObject



8401
8402
8403
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8401

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

.pricing_deletedObject



8253
8254
8255
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8253

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

.pricing_upsertedObject



8257
8258
8259
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8257

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

.rate_deletedObject



8181
8182
8183
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8181

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

.rate_upsertedObject



8185
8186
8187
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8185

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

.refund_upsertedObject



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

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

.refund_upserted_v2Object



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

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

.return_deletedObject



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

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

.return_upsertedObject



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

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

.reversal_upsertedObject



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

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

.snapshot_deletedObject



8309
8310
8311
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8309

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

.snapshot_upsertedObject



8305
8306
8307
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8305

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

.subcatalog_deletedObject



8161
8162
8163
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8161

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

.subcatalog_item_deletedObject



8177
8178
8179
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8177

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

.subcatalog_item_upsertedObject



8173
8174
8175
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8173

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

.subcatalog_upsertedObject



8157
8158
8159
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8157

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

.targeting_item_deletedObject



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

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

.targeting_item_upsertedObject



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

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

.tier_deletedObject



8265
8266
8267
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8265

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

.tier_upsertedObject



8261
8262
8263
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8261

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

.tracking_label_event_upsertedObject



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

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

Instance Method Details

#to_hashObject



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

def to_hash
  value
end