Class: PayPal::Invoice::PaymentDetails

Inherits:
Base
  • Object
show all
Defined in:
lib/paypal/invoice/payment_details.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#request_envelope

Instance Method Summary collapse

Methods inherited from Base

#request

Methods included from Common::Base

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

Instance Attribute Details

#other_paymentObject

Returns the value of attribute other_payment.



6
7
8
# File 'lib/paypal/invoice/payment_details.rb', line 6

def other_payment
  @other_payment
end

#paypal_paymentObject

Returns the value of attribute paypal_payment.



5
6
7
# File 'lib/paypal/invoice/payment_details.rb', line 5

def paypal_payment
  @paypal_payment
end

#via_paypalObject

Returns the value of attribute via_paypal.



4
5
6
# File 'lib/paypal/invoice/payment_details.rb', line 4

def via_paypal
  @via_paypal
end

Instance Method Details

#set_other_payment(value) ⇒ Object



12
13
14
# File 'lib/paypal/invoice/payment_details.rb', line 12

def set_other_payment(value)
  self.other_payment = build_value(OtherPaymentDetails, value)
end

#set_paypal_payment(value) ⇒ Object



8
9
10
# File 'lib/paypal/invoice/payment_details.rb', line 8

def set_paypal_payment(value)
  self.paypal_payment = build_value(PaypalPaymentDetails, value)
end