Class: PayPal::SDK::REST::DataTypes::Refund
- Inherits:
-
Base
- Object
- Core::API::DataTypes::Base
- Base
- PayPal::SDK::REST::DataTypes::Refund
- Includes:
- RequestDataType
- Defined in:
- lib/paypal-sdk/rest/data_types.rb
Direct Known Subclasses
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
Class Method Summary collapse
Methods included from RequestDataType
Methods included from SetAPI
#client_id=, #client_secret=, #set_config, #token=
Methods inherited from Base
#http_header, #merge!, #raise_error!, raise_on_api_error, #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
.find(resource_id) ⇒ Object
1015 1016 1017 1018 1019 |
# File 'lib/paypal-sdk/rest/data_types.rb', line 1015 def find(resource_id) raise ArgumentError.new("id required") if resource_id.to_s.strip.empty? path = "v1/payments/refund/#{resource_id}" self.new(api.get(path)) end |
.load_members ⇒ Object
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 |
# File 'lib/paypal-sdk/rest/data_types.rb', line 996 def self.load_members object_of :id, String object_of :amount, Amount object_of :state, String object_of :reason, String object_of :invoice_number, String object_of :sale_id, String object_of :capture_id, String object_of :parent_payment, String object_of :description, String object_of :create_time, String object_of :update_time, String object_of :reason_code, String array_of :links, Links end |