Class: AdvancedBilling::PayPalVault

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

Overview

The vault that stores the payment profile with the provided vault_token.

Constant Summary collapse

PAY_PAL_VAULT =
[
  # TODO: Write general description for BRAINTREE_BLUE
  BRAINTREE_BLUE = 'braintree_blue'.freeze,

  # TODO: Write general description for PAYPAL
  PAYPAL = 'paypal'.freeze,

  # TODO: Write general description for MODUSLINK
  MODUSLINK = 'moduslink'.freeze,

  # TODO: Write general description for PAYPAL_COMPLETE
  PAYPAL_COMPLETE = 'paypal_complete'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



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

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

  PAY_PAL_VAULT.include?(value)
end