class OpenapiClient::WebhookEvent

Constants

BATCH
CARRIER_CONNECTED
ORDER_SOURCE_REFRESH_COMPLETE
RATE
REPORT_COMPLETE
SALES_ORDERS_IMPORTED
TRACK

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/openapi_client/models/webhook_event.rb, line 28
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/openapi_client/models/webhook_event.rb, line 35
def build_from_hash(value)
  constantValues = WebhookEvent.constants.select { |c| WebhookEvent::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #WebhookEvent" if constantValues.empty?
  value
end