Class: PaypalServerSdk::AvsCode

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

Overview

The address verification code for Visa, Discover, Mastercard, or American Express transactions.

Constant Summary collapse

AVS_CODE =
[
  # TODO: Write general description for A
  A = 'A'.freeze,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  # TODO: Write general description for NULL
  NULL = 'Null'.freeze,

  # TODO: Write general description for ENUM_0
  ENUM_0 = '0'.freeze,

  # TODO: Write general description for ENUM_1
  ENUM_1 = '1'.freeze,

  # TODO: Write general description for ENUM_2
  ENUM_2 = '2'.freeze,

  # TODO: Write general description for ENUM_3
  ENUM_3 = '3'.freeze,

  # TODO: Write general description for ENUM_4
  ENUM_4 = '4'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



84
85
86
87
88
# File 'lib/paypal_server_sdk/models/avs_code.rb', line 84

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

  true
end