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.



8051
8052
8053
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8051

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8049
8050
8051
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8049

def value
  @value
end

Class Method Details

.ALLObject



8071
8072
8073
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8071

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.local_item_upserted, EventType.local_item_deleted, EventType.localized_item_upserted, EventType.localized_item_upserted_v2, EventType.localized_item_deleted, EventType.localized_item_deleted_v2, 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.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



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

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

.allocation_upsertedObject



8135
8136
8137
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8135

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



8056
8057
8058
8059
8060
8061
8062
8063
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8056

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



8079
8080
8081
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8079

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

.attribute_upsertedObject



8075
8076
8077
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8075

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

.authorization_deletedObject



8303
8304
8305
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8303

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

.authorization_deleted_v2Object



8307
8308
8309
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8307

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

.authorization_status_changedObject



8311
8312
8313
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8311

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

.authorization_upsertedObject



8299
8300
8301
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8299

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

.available_promotions_deletedObject



8127
8128
8129
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8127

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

.available_promotions_upsertedObject



8123
8124
8125
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8123

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

.capture_upsertedObject



8331
8332
8333
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8331

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

.capture_upserted_v2Object



8335
8336
8337
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8335

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

.card_authorization_upsertedObject



8315
8316
8317
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8315

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

.card_authorization_upserted_v2Object



8319
8320
8321
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8319

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

.card_deletedObject



8347
8348
8349
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8347

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

.card_upsertedObject



8339
8340
8341
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8339

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

.card_upserted_v2Object



8343
8344
8345
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8343

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

.catalog_deletedObject



8087
8088
8089
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8087

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

.catalog_item_deletedObject



8103
8104
8105
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8103

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

.catalog_item_upsertedObject



8099
8100
8101
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8099

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

.catalog_upsertedObject



8083
8084
8085
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8083

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

.experience_deletedObject



8139
8140
8141
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8139

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

.experience_upsertedObject



8143
8144
8145
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8143

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



8066
8067
8068
8069
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8066

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

.harmonized_item_deletedObject



8231
8232
8233
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8231

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

.harmonized_item_upsertedObject



8227
8228
8229
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8227

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

.hs10_code_deletedObject



8215
8216
8217
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8215

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

.hs10_code_upsertedObject



8211
8212
8213
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8211

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

.hs6_code_deletedObject



8207
8208
8209
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8207

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

.hs6_code_upsertedObject



8203
8204
8205
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8203

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

.item_margin_deletedObject



8147
8148
8149
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8147

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

.item_margin_upsertedObject



8151
8152
8153
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8151

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

.item_origin_deletedObject



8223
8224
8225
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8223

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

.item_origin_upsertedObject



8219
8220
8221
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8219

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

.item_sales_margin_deletedObject



8155
8156
8157
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8155

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

.item_sales_margin_upsertedObject



8159
8160
8161
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8159

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

.label_format_deletedObject



8163
8164
8165
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8163

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

.label_format_upsertedObject



8167
8168
8169
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8167

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

.label_upsertedObject



8243
8244
8245
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8243

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

.local_item_deletedObject



8259
8260
8261
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8259

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

.local_item_upsertedObject



8255
8256
8257
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8255

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

.localized_item_deletedObject



8271
8272
8273
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8271

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

.localized_item_deleted_v2Object



8275
8276
8277
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8275

def EventType.localized_item_deleted_v2
  @@_localized_item_deleted_v2 ||= EventType.new('localized_item_deleted_v2')
end

.localized_item_snapshotObject



8279
8280
8281
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8279

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

.localized_item_upsertedObject



8263
8264
8265
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8263

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

.localized_item_upserted_v2Object



8267
8268
8269
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8267

def EventType.localized_item_upserted_v2
  @@_localized_item_upserted_v2 ||= EventType.new('localized_item_upserted_v2')
end

.membership_deletedObject



8287
8288
8289
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8287

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

.membership_upsertedObject



8283
8284
8285
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8283

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

.notification_deletedObject



8251
8252
8253
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8251

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

.notification_upsertedObject



8247
8248
8249
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8247

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

.online_authorization_upsertedObject



8323
8324
8325
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8323

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

.online_authorization_upserted_v2Object



8327
8328
8329
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8327

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

.order_deletedObject



8171
8172
8173
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8171

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

.order_identifier_deletedObject



8179
8180
8181
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8179

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

.order_identifier_upsertedObject



8183
8184
8185
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8183

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

.order_upsertedObject



8175
8176
8177
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8175

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

.organization_countries_publishedObject



8371
8372
8373
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8371

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

.organization_deletedObject



8295
8296
8297
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8295

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

.organization_rates_publishedObject



8367
8368
8369
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8367

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

.organization_upsertedObject



8291
8292
8293
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8291

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

.payment_deletedObject



8355
8356
8357
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8355

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

.payment_upsertedObject



8351
8352
8353
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8351

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

.pricing_deletedObject



8187
8188
8189
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8187

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

.pricing_upsertedObject



8191
8192
8193
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8191

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

.rate_deletedObject



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

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

.rate_upsertedObject



8119
8120
8121
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8119

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

.refund_upsertedObject



8359
8360
8361
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8359

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

.refund_upserted_v2Object



8363
8364
8365
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8363

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

.return_deletedObject



8379
8380
8381
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8379

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

.return_upsertedObject



8375
8376
8377
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8375

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

.snapshot_deletedObject



8239
8240
8241
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8239

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

.snapshot_upsertedObject



8235
8236
8237
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8235

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

.subcatalog_deletedObject



8095
8096
8097
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8095

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

.subcatalog_item_deletedObject



8111
8112
8113
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8111

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

.subcatalog_item_upsertedObject



8107
8108
8109
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8107

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

.subcatalog_upsertedObject



8091
8092
8093
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8091

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

.targeting_item_deletedObject



8387
8388
8389
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8387

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

.targeting_item_upsertedObject



8383
8384
8385
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8383

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

.tier_deletedObject



8199
8200
8201
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8199

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

.tier_upsertedObject



8195
8196
8197
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8195

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

.tracking_label_event_upsertedObject



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

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

Instance Method Details

#to_hashObject



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

def to_hash
  value
end