Class: PaypalServerSdk::PaypalWalletAccountVerificationStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal_server_sdk/models/paypal_wallet_account_verification_status.rb

Overview

The account status indicates whether the buyer has verified the financial details associated with their PayPal account.

Constant Summary collapse

PAYPAL_WALLET_ACCOUNT_VERIFICATION_STATUS =
[
  # The buyer has completed the verification of the financial details

  # associated with this PayPal account. For example: confirming their bank

  # account.

  VERIFIED = 'VERIFIED'.freeze,

  # The buyer has not completed the verification of the financial details

  # associated with this PayPal account. For example: confirming their bank

  # account.

  UNVERIFIED = 'UNVERIFIED'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = VERIFIED) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/paypal_server_sdk/models/paypal_wallet_account_verification_status.rb', line 28

def self.from_value(value, default_value = VERIFIED)
  return default_value if value.nil?

  str = value.to_s.strip

  case str.downcase
  when 'verified' then VERIFIED
  when 'unverified' then UNVERIFIED
  else
    default_value
  end
end

.validate(value) ⇒ Object



22
23
24
25
26
# File 'lib/paypal_server_sdk/models/paypal_wallet_account_verification_status.rb', line 22

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

  true
end