Class: AdvancedBilling::WebhookStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_billing/models/webhook_status.rb

Overview

Webhook Status.

Constant Summary collapse

WEBHOOK_STATUS =
[
  # TODO: Write general description for SUCCESSFUL
  SUCCESSFUL = 'successful'.freeze,

  # TODO: Write general description for FAILED
  FAILED = 'failed'.freeze,

  # TODO: Write general description for PENDING
  PENDING = 'pending'.freeze,

  # TODO: Write general description for PAUSED
  PAUSED = 'paused'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/advanced_billing/models/webhook_status.rb', line 23

def self.validate(value)
  return false if value.nil?

  WEBHOOK_STATUS.include?(value)
end