Class: PayPal::SDK::REST::DataTypes::Item

Inherits:
Base show all
Defined in:
lib/paypal-sdk/rest/data_types.rb

Constant Summary

Constants inherited from Core::API::DataTypes::Base

Core::API::DataTypes::Base::ContentKey, Core::API::DataTypes::Base::HashOptions

Instance Attribute Summary

Attributes inherited from Base

#error, #header, #request_id

Class Method Summary collapse

Methods inherited from Base

#http_header, #merge!, #success?

Methods inherited from Core::API::DataTypes::Base

add_attribute, add_member, array_of, #convert_array, #convert_object, define_alias_methods, #hash_key, #initialize, #member_names, members, #members, #merge!, object_of, #set, #skip_value?, snakecase, #to_hash, #value_to_hash

Methods included from Core::Logging

#log_event, #logger, logger, logger=

Constructor Details

This class inherits a constructor from PayPal::SDK::Core::API::DataTypes::Base

Class Method Details

.load_membersObject


535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
# File 'lib/paypal-sdk/rest/data_types.rb', line 535

def self.load_members
  object_of :quantity, String
  object_of :name, String
  object_of :description, String
  object_of :price, String
  object_of :tax, String
  object_of :currency, String
  object_of :sku, String
  object_of :url, String
  object_of :category, String
  object_of :weight, Measurement
  object_of :length, Measurement
  object_of :height, Measurement
  object_of :width, Measurement
  array_of  :supplementary_data, NameValuePair
  array_of  :postback_data, NameValuePair
end