Class: PaypalServerSdk::PricingModel

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

Overview

The pricing model for the billing cycle.

Constant Summary collapse

PRICING_MODEL =
[
  # A fixed pricing scheme where the customer is charged a fixed amount.
  FIXED = 'FIXED'.freeze,

  # A variable pricing scheme where the customer is charged a variable
  # amount.
  VARIABLE = 'VARIABLE'.freeze,

  # A auto-reload pricing scheme where the customer is charged a fixed
  # amount for reload.
  AUTO_RELOAD = 'AUTO_RELOAD'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



22
23
24
25
26
# File 'lib/paypal_server_sdk/models/pricing_model.rb', line 22

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

  true
end