Class: Google4R::Checkout::CancelItemsCommand

Inherits:
ItemsCommand show all
Defined in:
lib/google4r/checkout/commands.rb

Overview

The <cancel-items> command lets you specify that one or more specific items in an order have been cancelled, meaning they will not be delivered to the customer.

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

Attributes inherited from ItemsCommand

#item_info_arr, #send_email

Attributes inherited from Command

#command_tag_name, #frontend, #google_order_number

Instance Method Summary collapse

Methods inherited from ItemsCommand

#initialize

Methods inherited from Command

#initialize, #send_to_google_checkout

Constructor Details

This class inherits a constructor from Google4R::Checkout::ItemsCommand

Instance Attribute Details

#commentObject

An optional comment related to one or more canceled line items



661
662
663
# File 'lib/google4r/checkout/commands.rb', line 661

def comment
  @comment
end

#reasonObject

The reason that you are canceling one or more line items



658
659
660
# File 'lib/google4r/checkout/commands.rb', line 658

def reason
  @reason
end

Instance Method Details

#to_xmlObject



663
664
665
# File 'lib/google4r/checkout/commands.rb', line 663

def to_xml
  CancelItemsCommandXmlGenerator.new(self).generate
end