Class: Google4R::Checkout::ChargeAndShipOrderCommand
- Defined in:
- lib/google4r/checkout/commands.rb
Constant Summary
Constants inherited from Command
Google4R::Checkout::Command::CHECKOUT_API_URL, Google4R::Checkout::Command::DONATE_CHECKOUT_API_URL, Google4R::Checkout::Command::DONATE_ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::DONATE_ORDER_REPORT_API_URL, Google4R::Checkout::Command::ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::ORDER_REPORT_API_URL, Google4R::Checkout::Command::POLLING_API_URL, Google4R::Checkout::Command::PRODUCTION_URL_PREFIX, Google4R::Checkout::Command::SANDBOX_URL_PREFIX
Instance Attribute Summary collapse
-
#amount ⇒ Object
The amount to charge, optional, Money.
-
#carrier ⇒ Object
The name of the company responsible for shipping the item.
-
#send_email ⇒ Object
if google checkout should email buyer to ssay order is dispatched.
-
#tracking_number ⇒ Object
The shipper’s tracking number that is associated with an order.
Attributes inherited from Command
#command_tag_name, #frontend, #google_order_number
Instance Method Summary collapse
-
#to_xml ⇒ Object
Generates the XML for this ChargeOrderCommand.
Methods inherited from Command
#initialize, #send_to_google_checkout
Constructor Details
This class inherits a constructor from Google4R::Checkout::Command
Instance Attribute Details
#amount ⇒ Object
The amount to charge, optional, Money
466 467 468 |
# File 'lib/google4r/checkout/commands.rb', line 466 def amount @amount end |
#carrier ⇒ Object
The name of the company responsible for shipping the item. Valid values for this tag are DHL, FedEx, UPS, USPS and Other.
473 474 475 |
# File 'lib/google4r/checkout/commands.rb', line 473 def carrier @carrier end |
#send_email ⇒ Object
if google checkout should email buyer to ssay order is dispatched
469 470 471 |
# File 'lib/google4r/checkout/commands.rb', line 469 def send_email @send_email end |
#tracking_number ⇒ Object
The shipper’s tracking number that is associated with an order
476 477 478 |
# File 'lib/google4r/checkout/commands.rb', line 476 def tracking_number @tracking_number end |
Instance Method Details
#to_xml ⇒ Object
Generates the XML for this ChargeOrderCommand
479 480 481 |
# File 'lib/google4r/checkout/commands.rb', line 479 def to_xml ChargeAndShipOrderCommandXmlGenerator.new(self).generate end |