Class: PaypalServerSdk::CaptureType

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

Overview

The type of capture.

Constant Summary collapse

CAPTURE_TYPE =
[
  # The outstanding balance that the subscriber must clear.
  OUTSTANDING_BALANCE = 'OUTSTANDING_BALANCE'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = OUTSTANDING_BALANCE) ⇒ Object



20
21
22
23
24
# File 'lib/paypal_server_sdk/models/capture_type.rb', line 20

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

  default_value
end

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/paypal_server_sdk/models/capture_type.rb', line 14

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

  true
end