Class: PayPal::AdaptivePayments::Response::Preapproval

Inherits:
Object
  • Object
show all
Includes:
Common::Response
Defined in:
lib/paypal/adaptive_payments/response/preapproval.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

#address_listObject

Returns the value of attribute address_list.



26
27
28
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 26

def address_list
  @address_list
end

#approvedObject

Returns the value of attribute approved.



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

def approved
  @approved
end

#cancel_urlObject

Returns the value of attribute cancel_url.



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

def cancel_url
  @cancel_url
end

#cur_paymentsObject

Returns the value of attribute cur_payments.



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

def cur_payments
  @cur_payments
end

#cur_payments_amountObject

Returns the value of attribute cur_payments_amount.



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

def cur_payments_amount
  @cur_payments_amount
end

#currency_codeObject

Returns the value of attribute currency_code.



10
11
12
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 10

def currency_code
  @currency_code
end

#date_of_monthObject

Returns the value of attribute date_of_month.



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

def date_of_month
  @date_of_month
end

#day_of_weekObject

Returns the value of attribute day_of_week.



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

def day_of_week
  @day_of_week
end

#ending_dateObject

Returns the value of attribute ending_date.



13
14
15
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 13

def ending_date
  @ending_date
end

#fees_payerObject

Returns the value of attribute fees_payer.



27
28
29
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 27

def fees_payer
  @fees_payer
end

#ipn_notification_urlObject

Returns the value of attribute ipn_notification_url.



22
23
24
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 22

def ipn_notification_url
  @ipn_notification_url
end

#max_amount_per_paymentObject

Returns the value of attribute max_amount_per_payment.



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

def max_amount_per_payment
  @max_amount_per_payment
end

#max_number_of_paymentsObject

Returns the value of attribute max_number_of_payments.



16
17
18
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 16

def max_number_of_payments
  @max_number_of_payments
end

#max_number_of_payments_per_periodObject

Returns the value of attribute max_number_of_payments_per_period.



17
18
19
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 17

def max_number_of_payments_per_period
  @max_number_of_payments_per_period
end

#max_total_amount_of_all_paymentsObject

Returns the value of attribute max_total_amount_of_all_payments.



18
19
20
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 18

def max_total_amount_of_all_payments
  @max_total_amount_of_all_payments
end

#memoObject

Returns the value of attribute memo.



21
22
23
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 21

def memo
  @memo
end

#payment_periodObject

Returns the value of attribute payment_period.



19
20
21
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 19

def payment_period
  @payment_period
end

#pin_typeObject

Returns the value of attribute pin_type.



25
26
27
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 25

def pin_type
  @pin_type
end

#preapproval_keyObject

Returns the value of attribute preapproval_key.



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

def preapproval_key
  @preapproval_key
end

#require_instant_funding_sourceObject

Returns the value of attribute require_instant_funding_source.



28
29
30
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 28

def require_instant_funding_source
  @require_instant_funding_source
end

#return_urlObject

Returns the value of attribute return_url.



20
21
22
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 20

def return_url
  @return_url
end

#sender_emailObject

Returns the value of attribute sender_email.



23
24
25
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 23

def sender_email
  @sender_email
end

#starting_dateObject

Returns the value of attribute starting_date.



24
25
26
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 24

def starting_date
  @starting_date
end

#statusObject

Returns the value of attribute status.



29
30
31
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 29

def status
  @status
end

Instance Method Details

#preapproval_urlObject



43
44
45
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 43

def preapproval_url
  "#{PayPal::Api.site_endpoint}?cmd=_ap-preapproval&preapprovalkey=#{self.preapproval_key}"
end

#set_address_list(value) ⇒ Object



31
32
33
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 31

def set_address_list(value)
  self.address_list = build_value(AddressList, value)
end

#set_ending_date(value) ⇒ Object



35
36
37
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 35

def set_ending_date(value)
  self.ending_date = build_datetime(value)
end

#set_starting_date(value) ⇒ Object



39
40
41
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 39

def set_starting_date(value)
  self.starting_date = build_datetime(value)
end