Class: SyncteraRubySdk::CardStatusReasonCode

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/card_status_reason_code.rb

Constant Summary collapse

NEW =
"NEW".freeze
REQ =
"REQ".freeze
INA =
"INA".freeze
UNK =
"UNK".freeze
NEG =
"NEG".freeze
REV =
"REV".freeze
SUS =
"SUS".freeze
OUT =
"OUT".freeze
FRD =
"FRD".freeze
MAT =
"MAT".freeze
LOS =
"LOS".freeze
CLO =
"CLO".freeze
COM =
"COM".freeze
TMP =
"TMP".freeze
PRC =
"PRC".freeze
ISS =
"ISS".freeze
EXP =
"EXP".freeze
KYC =
"KYC".freeze
INF =
"INF".freeze
ACT =
"ACT".freeze
AUX =
"AUX".freeze
PIN =
"PIN".freeze
STO =
"STO".freeze
ADD =
"ADD".freeze
NAM =
"NAM".freeze
SSN =
"SSN".freeze
DOB =
"DOB".freeze
EML =
"EML".freeze
PHO =
"PHO".freeze
FUL =
"FUL".freeze
OTH =
"OTH".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



50
51
52
# File 'lib/synctera_ruby_sdk/models/card_status_reason_code.rb', line 50

def self.all_vars
  @all_vars ||= [NEW, REQ, INA, UNK, NEG, REV, SUS, OUT, FRD, MAT, LOS, CLO, COM, TMP, PRC, ISS, EXP, KYC, INF, ACT, AUX, PIN, STO, ADD, NAM, SSN, DOB, EML, PHO, FUL, OTH].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



57
58
59
# File 'lib/synctera_ruby_sdk/models/card_status_reason_code.rb', line 57

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



64
65
66
67
# File 'lib/synctera_ruby_sdk/models/card_status_reason_code.rb', line 64

def build_from_hash(value)
  return value if CardStatusReasonCode.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #CardStatusReasonCode"
end