Class: Google4R::Checkout::CreateOrderRecurrenceRequestCommand

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

Overview

The <create-order-recurrence-request> tag contains a request to charge a customer for one or more items in a subscription.

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 Command

#command_tag_name, #frontend

Instance Method Summary collapse

Methods inherited from Command

#send_to_google_checkout

Constructor Details

#initialize(frontend) ⇒ CreateOrderRecurrenceRequestCommand

Initialize a new CreateOrderRecurrenceRequestCommand with a fresh ShoppingCart.



607
608
609
610
# File 'lib/google4r/checkout/commands.rb', line 607

def initialize(frontend)
  super(frontend)
  @shopping_cart = ShoppingCart.new(self)
end

Instance Attribute Details

#google_order_numberObject

The ID that uniquely identifies this order



602
603
604
# File 'lib/google4r/checkout/commands.rb', line 602

def google_order_number
  @google_order_number
end

#shopping_cartObject (readonly)

Returns the value of attribute shopping_cart.



604
605
606
# File 'lib/google4r/checkout/commands.rb', line 604

def shopping_cart
  @shopping_cart
end

Instance Method Details

#to_xmlObject



612
613
614
# File 'lib/google4r/checkout/commands.rb', line 612

def to_xml
  CreateOrderRecurrenceRequestCommandXmlGenerator.new(self).generate
end