Class: Google4R::Checkout::NotificationDataTokenRequestCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/google4r/checkout/commands.rb

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

Attributes inherited from Command

#command_tag_name, #frontend, #google_order_number

Instance Method Summary collapse

Methods inherited from Command

#send_to_google_checkout

Constructor Details

#initialize(frontend, options = {}) ⇒ NotificationDataTokenRequestCommand

Returns a new instance of NotificationDataTokenRequestCommand.



797
798
799
800
# File 'lib/google4r/checkout/commands.rb', line 797

def initialize(frontend, options = {})
  super frontend
  @start_time = options[:start_time] if options.has_key?(:start_time)
end

Instance Attribute Details

#start_timeObject (readonly)

The earliest time that an order could have been submitted to be included in the API response (Time)



795
796
797
# File 'lib/google4r/checkout/commands.rb', line 795

def start_time
  @start_time
end

Instance Method Details

#to_xmlObject



802
803
804
# File 'lib/google4r/checkout/commands.rb', line 802

def to_xml
  NotificationDataTokenRequestCommandXmlGenerator.new(self).generate
end