Class: FdxV660Api::DepositTransactionType3
- Inherits:
-
Object
- Object
- FdxV660Api::DepositTransactionType3
- Defined in:
- lib/fdx_v660_api/models/deposit_transaction_type3.rb
Overview
The type of the deposit transaction: ADJUSTMENT, ATMDEPOSIT, ATMWITHDRAWAL, BILLPAYMENT, CASHIERSCHECK, CHECK, DEPOSIT, DIRECTDEPOSIT, DIVIDEND, FEE, INTEREST, PERSONTOPERSON, POSCREDIT, POSDEBIT, PREAUTHORIZEDDEPOSIT, PREAUTHORIZEDWITHDRAWAL, TRANSFER, WITHDRAWAL. Canadian accounts will also use these for chequing account transactions to ensure interoperability
Constant Summary collapse
- DEPOSIT_TRANSACTION_TYPE3 =
[ # TODO: Write general description for ADJUSTMENT ADJUSTMENT = 'ADJUSTMENT'.freeze, # TODO: Write general description for ATMDEPOSIT ATMDEPOSIT = 'ATMDEPOSIT'.freeze, # TODO: Write general description for ATMWITHDRAWAL ATMWITHDRAWAL = 'ATMWITHDRAWAL'.freeze, # TODO: Write general description for BILLPAYMENT BILLPAYMENT = 'BILLPAYMENT'.freeze, # TODO: Write general description for CASHIERSCHECK CASHIERSCHECK = 'CASHIERSCHECK'.freeze, # TODO: Write general description for CHECK CHECK = 'CHECK'.freeze, # TODO: Write general description for DEPOSIT DEPOSIT = 'DEPOSIT'.freeze, # TODO: Write general description for DIRECTDEPOSIT DIRECTDEPOSIT = 'DIRECTDEPOSIT'.freeze, # TODO: Write general description for DIVIDEND DIVIDEND = 'DIVIDEND'.freeze, # TODO: Write general description for FEE FEE = 'FEE'.freeze, # TODO: Write general description for INTEREST INTEREST = 'INTEREST'.freeze, # TODO: Write general description for PERSONTOPERSON PERSONTOPERSON = 'PERSONTOPERSON'.freeze, # TODO: Write general description for POSCREDIT POSCREDIT = 'POSCREDIT'.freeze, # TODO: Write general description for POSDEBIT POSDEBIT = 'POSDEBIT'.freeze, # TODO: Write general description for PREAUTHORIZEDDEPOSIT PREAUTHORIZEDDEPOSIT = 'PREAUTHORIZEDDEPOSIT'.freeze, # TODO: Write general description for PREAUTHORIZEDWITHDRAWAL PREAUTHORIZEDWITHDRAWAL = 'PREAUTHORIZEDWITHDRAWAL'.freeze, # TODO: Write general description for TRANSFER TRANSFER = 'TRANSFER'.freeze, # TODO: Write general description for WITHDRAWAL WITHDRAWAL = 'WITHDRAWAL'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ADJUSTMENT) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/fdx_v660_api/models/deposit_transaction_type3.rb', line 75 def self.from_value(value, default_value = ADJUSTMENT) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'adjustment' then ADJUSTMENT when 'atmdeposit' then ATMDEPOSIT when 'atmwithdrawal' then ATMWITHDRAWAL when 'billpayment' then BILLPAYMENT when 'cashierscheck' then CASHIERSCHECK when 'check' then CHECK when 'deposit' then DEPOSIT when 'directdeposit' then DIRECTDEPOSIT when 'dividend' then DIVIDEND when 'fee' then FEE when 'interest' then INTEREST when 'persontoperson' then PERSONTOPERSON when 'poscredit' then POSCREDIT when 'posdebit' then POSDEBIT when 'preauthorizeddeposit' then PREAUTHORIZEDDEPOSIT when 'preauthorizedwithdrawal' then PREAUTHORIZEDWITHDRAWAL when 'transfer' then TRANSFER when 'withdrawal' then WITHDRAWAL else default_value end end |
.validate(value) ⇒ Object
69 70 71 72 73 |
# File 'lib/fdx_v660_api/models/deposit_transaction_type3.rb', line 69 def self.validate(value) return false if value.nil? true end |