Class: PayPal::AdaptivePayments::ReceiverOptions

Inherits:
Object
  • Object
show all
Includes:
Common::Base
Defined in:
lib/paypal/adaptive_payments/receiver_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common::Base

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

Instance Attribute Details

#customer_idObject

Returns the value of attribute customer_id.



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

def customer_id
  @customer_id
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#invoice_dataObject

Returns the value of attribute invoice_data.



7
8
9
# File 'lib/paypal/adaptive_payments/receiver_options.rb', line 7

def invoice_data
  @invoice_data
end

#receiverObject

Returns the value of attribute receiver.



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

def receiver
  @receiver
end

#referred_codeObject

Returns the value of attribute referred_code.



9
10
11
# File 'lib/paypal/adaptive_payments/receiver_options.rb', line 9

def referred_code
  @referred_code
end

Instance Method Details

#set_invoice_data(value) ⇒ Object



11
12
13
# File 'lib/paypal/adaptive_payments/receiver_options.rb', line 11

def set_invoice_data(value)
  self.invoice_data = build_value(InvoiceData, value)
end

#set_receiver(value) ⇒ Object



15
16
17
# File 'lib/paypal/adaptive_payments/receiver_options.rb', line 15

def set_receiver(value)
  self.receiver = build_value(Receiver, value)
end