Class: Google4R::Checkout::CreateOrderRecurrenceRequestCommand
- 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
-
#google_order_number ⇒ Object
The ID that uniquely identifies this order.
-
#shopping_cart ⇒ Object
readonly
Returns the value of attribute shopping_cart.
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize(frontend) ⇒ CreateOrderRecurrenceRequestCommand
constructor
Initialize a new CreateOrderRecurrenceRequestCommand with a fresh ShoppingCart.
- #to_xml ⇒ Object
Methods inherited from Command
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_number ⇒ Object
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_cart ⇒ Object (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_xml ⇒ Object
612 613 614 |
# File 'lib/google4r/checkout/commands.rb', line 612 def to_xml CreateOrderRecurrenceRequestCommandXmlGenerator.new(self).generate end |