Class: PayPal::AdaptivePayments::Response::Refund
- Inherits:
-
Object
- Object
- PayPal::AdaptivePayments::Response::Refund
- Includes:
- Common::Response
- Defined in:
- lib/paypal/adaptive_payments/response/refund.rb
Instance Attribute Summary collapse
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#refund_info_list ⇒ Object
Returns the value of attribute refund_info_list.
Attributes included from Common::Response
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_code ⇒ Object
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_list ⇒ Object
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_infos ⇒ Object
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 |