Class: PaypalServerSdk::ShippingPreference

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

Overview

The location from which the shipping address is derived.

Constant Summary collapse

SHIPPING_PREFERENCE =
[
  # TODO: Write general description for GET_FROM_FILE
  GET_FROM_FILE = 'GET_FROM_FILE'.freeze,

  # TODO: Write general description for NO_SHIPPING
  NO_SHIPPING = 'NO_SHIPPING'.freeze,

  # TODO: Write general description for SET_PROVIDED_ADDRESS
  SET_PROVIDED_ADDRESS = 'SET_PROVIDED_ADDRESS'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



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

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

  true
end