Class: ThePlaidApi::PaymentInitiationPaymentCreateStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/the_plaid_api/models/payment_initiation_payment_create_status.rb

Overview

For a payment returned by this endpoint, there is only one possible value: ‘PAYMENT_STATUS_INPUT_NEEDED`: The initial phase of the payment

Constant Summary collapse

PAYMENT_INITIATION_PAYMENT_CREATE_STATUS =
[
  # TODO: Write general description for PAYMENT_STATUS_INPUT_NEEDED
  PAYMENT_STATUS_INPUT_NEEDED = 'PAYMENT_STATUS_INPUT_NEEDED'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = PAYMENT_STATUS_INPUT_NEEDED) ⇒ Object



21
22
23
24
25
# File 'lib/the_plaid_api/models/payment_initiation_payment_create_status.rb', line 21

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

  default_value
end

.validate(value) ⇒ Object



15
16
17
18
19
# File 'lib/the_plaid_api/models/payment_initiation_payment_create_status.rb', line 15

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

  PAYMENT_INITIATION_PAYMENT_CREATE_STATUS.include?(value)
end