Class: PaypalServerSdk::PaypalWalletContextShippingPreference

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

Overview

The location from which the shipping address is derived.

Constant Summary collapse

PAYPAL_WALLET_CONTEXT_SHIPPING_PREFERENCE =
[
  # Get the customer-provided shipping address on the PayPal site.
  GET_FROM_FILE = 'GET_FROM_FILE'.freeze,

  # Removes the shipping address information from the API response and the
  # Paypal site. However, the shipping.phone_number and
  # shipping.email_address fields will still be returned to allow for
  # digital goods delivery.
  NO_SHIPPING = 'NO_SHIPPING'.freeze,

  # Get the merchant-provided address. The customer cannot change this
  # address on the PayPal site. If merchant does not pass an address,
  # customer can choose the address on PayPal pages.
  SET_PROVIDED_ADDRESS = 'SET_PROVIDED_ADDRESS'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



25
26
27
28
29
# File 'lib/paypal_server_sdk/models/paypal_wallet_context_shipping_preference.rb', line 25

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

  true
end