Class: ThePlaidApi::WalletPaymentScheme
- Inherits:
-
Object
- Object
- ThePlaidApi::WalletPaymentScheme
- Defined in:
- lib/the_plaid_api/models/wallet_payment_scheme.rb
Overview
The payment scheme used to execute this transaction. This is present only for transaction types ‘PAYOUT` and `REFUND`. `FASTER_PAYMENTS`: The standard payment scheme within the UK. `SEPA_CREDIT_TRANSFER`: The standard payment to a beneficiary within the SEPA area. `SEPA_CREDIT_TRANSFER_INSTANT`: Instant payment to a beneficiary within the SEPA area.
Constant Summary collapse
- WALLET_PAYMENT_SCHEME =
[ # TODO: Write general description for FASTER_PAYMENTS FASTER_PAYMENTS = 'FASTER_PAYMENTS'.freeze, # TODO: Write general description for SEPA_CREDIT_TRANSFER SEPA_CREDIT_TRANSFER = 'SEPA_CREDIT_TRANSFER'.freeze, # TODO: Write general description for SEPA_CREDIT_TRANSFER_INSTANT SEPA_CREDIT_TRANSFER_INSTANT = 'SEPA_CREDIT_TRANSFER_INSTANT'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = FASTER_PAYMENTS) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/the_plaid_api/models/wallet_payment_scheme.rb', line 30 def self.from_value(value, default_value = FASTER_PAYMENTS) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'faster_payments' then FASTER_PAYMENTS when 'sepa_credit_transfer' then SEPA_CREDIT_TRANSFER when 'sepa_credit_transfer_instant' then SEPA_CREDIT_TRANSFER_INSTANT else default_value end end |
.validate(value) ⇒ Object
24 25 26 27 28 |
# File 'lib/the_plaid_api/models/wallet_payment_scheme.rb', line 24 def self.validate(value) return false if value.nil? WALLET_PAYMENT_SCHEME.include?(value) end |