Class: Google4R::Checkout::NotificationHistoryRequestCommand
- Defined in:
- lib/google4r/checkout/commands.rb
Overview
The <notification-history-request> command allows you to receive a notification type node refered to by the serial number posted by google to the notification callback URL
Constant Summary
Constants inherited from Command
Command::CHECKOUT_API_URL, Command::DONATE_CHECKOUT_API_URL, Command::DONATE_ORDER_PROCESSING_API_URL, Command::DONATE_ORDER_REPORT_API_URL, Command::ORDER_PROCESSING_API_URL, Command::ORDER_REPORT_API_URL, Command::POLLING_API_URL, Command::PRODUCTION_URL_PREFIX, Command::SANDBOX_URL_PREFIX
Instance Attribute Summary collapse
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#next_page_token ⇒ Object
readonly
Returns the value of attribute next_page_token.
-
#notification_types ⇒ Object
readonly
Returns the value of attribute notification_types.
-
#order_numbers ⇒ Object
readonly
Returns the value of attribute order_numbers.
-
#serial_number ⇒ Object
readonly
Returns the value of attribute serial_number.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Attributes inherited from Command
#command_tag_name, #frontend, #google_order_number
Instance Method Summary collapse
-
#initialize(frontend, args) ⇒ NotificationHistoryRequestCommand
constructor
A new instance of NotificationHistoryRequestCommand.
- #to_xml ⇒ Object
Methods inherited from Command
Constructor Details
#initialize(frontend, args) ⇒ NotificationHistoryRequestCommand
Returns a new instance of NotificationHistoryRequestCommand.
755 756 757 758 759 760 761 762 763 764 765 766 767 768 |
# File 'lib/google4r/checkout/commands.rb', line 755 def initialize(frontend, args) super frontend if args.is_a? Hash @serial_number = args[:serial_number] @start_time = args[:start_time] @end_time = args[:end_time] @notification_types = args[:notification_types] @order_numbers = args[:order_numbers] @next_page_token = args[:next_page_token] else @serial_number = args end end |
Instance Attribute Details
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
753 754 755 |
# File 'lib/google4r/checkout/commands.rb', line 753 def end_time @end_time end |
#next_page_token ⇒ Object (readonly)
Returns the value of attribute next_page_token.
753 754 755 |
# File 'lib/google4r/checkout/commands.rb', line 753 def next_page_token @next_page_token end |
#notification_types ⇒ Object (readonly)
Returns the value of attribute notification_types.
753 754 755 |
# File 'lib/google4r/checkout/commands.rb', line 753 def notification_types @notification_types end |
#order_numbers ⇒ Object (readonly)
Returns the value of attribute order_numbers.
753 754 755 |
# File 'lib/google4r/checkout/commands.rb', line 753 def order_numbers @order_numbers end |
#serial_number ⇒ Object (readonly)
Returns the value of attribute serial_number.
753 754 755 |
# File 'lib/google4r/checkout/commands.rb', line 753 def serial_number @serial_number end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
753 754 755 |
# File 'lib/google4r/checkout/commands.rb', line 753 def start_time @start_time end |
Instance Method Details
#to_xml ⇒ Object
770 771 772 |
# File 'lib/google4r/checkout/commands.rb', line 770 def to_xml NotificationHistoryReportCommandXmlGenerator.new(self).generate end |