Class: GoogleCheckout::DeliverOrder

Inherits:
OrderCommand show all
Defined in:
lib/google-checkout/command.rb

Overview

Tells Google that the order has shipped.

Constant Summary

Constants inherited from Command

Command::PRODUCTION_REQUEST_URL, Command::SANDBOX_REQUEST_URL

Instance Attribute Summary

Attributes inherited from OrderCommand

#amount, #google_order_number

Attributes inherited from Command

#currency, #merchant_id, #merchant_key

Instance Method Summary collapse

Methods inherited from OrderCommand

#initialize

Methods inherited from Command

#initialize, #post, #url, x509_store

Constructor Details

This class inherits a constructor from GoogleCheckout::OrderCommand

Instance Method Details

#to_xmlObject



140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/google-checkout/command.rb', line 140

def to_xml

  xml = Builder::XmlMarkup.new
  xml.instruct!
  @xml = xml.tag!('deliver-order', {
    :xmlns => "http://checkout.google.com/schema/2",
    "google-order-number" => @google_order_number
  }) do
    xml.tag!("send-email", false)
  end
  @xml
end