Class: PayPal::AdaptivePayments::Response::Preapproval
- Inherits:
-
Object
- Object
- PayPal::AdaptivePayments::Response::Preapproval
- Includes:
- Common::Response
- Defined in:
- lib/paypal/adaptive_payments/response/preapproval.rb
Instance Attribute Summary collapse
-
#address_list ⇒ Object
Returns the value of attribute address_list.
-
#approved ⇒ Object
Returns the value of attribute approved.
-
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
-
#cur_payments ⇒ Object
Returns the value of attribute cur_payments.
-
#cur_payments_amount ⇒ Object
Returns the value of attribute cur_payments_amount.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#date_of_month ⇒ Object
Returns the value of attribute date_of_month.
-
#day_of_week ⇒ Object
Returns the value of attribute day_of_week.
-
#ending_date ⇒ Object
Returns the value of attribute ending_date.
-
#fees_payer ⇒ Object
Returns the value of attribute fees_payer.
-
#ipn_notification_url ⇒ Object
Returns the value of attribute ipn_notification_url.
-
#max_amount_per_payment ⇒ Object
Returns the value of attribute max_amount_per_payment.
-
#max_number_of_payments ⇒ Object
Returns the value of attribute max_number_of_payments.
-
#max_number_of_payments_per_period ⇒ Object
Returns the value of attribute max_number_of_payments_per_period.
-
#max_total_amount_of_all_payments ⇒ Object
Returns the value of attribute max_total_amount_of_all_payments.
-
#memo ⇒ Object
Returns the value of attribute memo.
-
#payment_period ⇒ Object
Returns the value of attribute payment_period.
-
#pin_type ⇒ Object
Returns the value of attribute pin_type.
-
#preapproval_key ⇒ Object
Returns the value of attribute preapproval_key.
-
#require_instant_funding_source ⇒ Object
Returns the value of attribute require_instant_funding_source.
-
#return_url ⇒ Object
Returns the value of attribute return_url.
-
#sender_email ⇒ Object
Returns the value of attribute sender_email.
-
#starting_date ⇒ Object
Returns the value of attribute starting_date.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes included from Common::Response
Instance Method Summary collapse
- #preapproval_url ⇒ Object
- #set_address_list(value) ⇒ Object
- #set_ending_date(value) ⇒ Object
- #set_starting_date(value) ⇒ Object
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_list ⇒ Object
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 |
#approved ⇒ Object
Returns the value of attribute approved.
6 7 8 |
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 6 def approved @approved end |
#cancel_url ⇒ Object
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_payments ⇒ Object
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_amount ⇒ Object
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_code ⇒ Object
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_month ⇒ Object
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_week ⇒ Object
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_date ⇒ Object
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_payer ⇒ Object
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_url ⇒ Object
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_payment ⇒ Object
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_payments ⇒ Object
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_period ⇒ Object
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_payments ⇒ Object
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 |
#memo ⇒ Object
Returns the value of attribute memo.
21 22 23 |
# File 'lib/paypal/adaptive_payments/response/preapproval.rb', line 21 def memo @memo end |
#payment_period ⇒ Object
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_type ⇒ Object
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_key ⇒ Object
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_source ⇒ Object
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_url ⇒ Object
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_email ⇒ Object
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_date ⇒ Object
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 |
#status ⇒ Object
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_url ⇒ Object
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 |