Class: PayPal::AdaptivePayments::Response::Refund

Inherits:
Object
  • Object
show all
Includes:
Common::Response
Defined in:
lib/paypal/adaptive_payments/response/refund.rb

Instance Attribute Summary collapse

Attributes included from Common::Response

#error, #response_envelope

Instance Method Summary collapse

Methods included from Common::Response

#errors, #set_error, #set_response_envelope, #success?, #valid?

Methods included from Common::Base

#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore

Instance Attribute Details

#currency_codeObject

Returns the value of attribute currency_code.



5
6
7
# File 'lib/paypal/adaptive_payments/response/refund.rb', line 5

def currency_code
  @currency_code
end

#refund_info_listObject

Returns the value of attribute refund_info_list.



6
7
8
# File 'lib/paypal/adaptive_payments/response/refund.rb', line 6

def refund_info_list
  @refund_info_list
end

Instance Method Details

#refund_infosObject



12
13
14
# File 'lib/paypal/adaptive_payments/response/refund.rb', line 12

def refund_infos
  (self.refund_info_list && self.refund_info_list.refund_info) || []
end

#set_refund_info_list(value) ⇒ Object



8
9
10
# File 'lib/paypal/adaptive_payments/response/refund.rb', line 8

def set_refund_info_list(value)
  self.refund_info_list = build_value(RefundInfoList, value)
end