Class: AdvancedBilling::ChargebackStatus

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

Overview

The current chargeback status.

Constant Summary collapse

CHARGEBACK_STATUS =
[
  # TODO: Write general description for OPEN
  OPEN = 'open'.freeze,

  # TODO: Write general description for LOST
  LOST = 'lost'.freeze,

  # TODO: Write general description for WON
  WON = 'won'.freeze,

  # TODO: Write general description for CLOSED
  CLOSED = 'closed'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



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

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

  CHARGEBACK_STATUS.include?(value)
end