Class: Google4R::Checkout::SubscriptionRequestReceivedResponse
- Inherits:
-
Object
- Object
- Google4R::Checkout::SubscriptionRequestReceivedResponse
- Defined in:
- lib/google4r/checkout/commands.rb
Overview
SubscriptionRequestReceivedResponse instances are returned when a CreateOrderRecurrenceRequestCommand is successfully processed by Google Checkout.
Instance Attribute Summary collapse
-
#new_google_order_number ⇒ Object
readonly
The new order number that was generated for this request.
-
#serial_number ⇒ Object
readonly
The serial number of the <subscription-request-received> response.
Instance Method Summary collapse
-
#initialize(serial_number, new_google_order_number) ⇒ SubscriptionRequestReceivedResponse
constructor
Create a new SubscriptionRequestReceivedResponse with the given serial number and Google order number.
- #to_s ⇒ Object
Constructor Details
#initialize(serial_number, new_google_order_number) ⇒ SubscriptionRequestReceivedResponse
Create a new SubscriptionRequestReceivedResponse with the given serial number and Google order number. Do not create SubscriptionRequestReceivedResponse instances in your own code. Google4R creates them for you.
440 441 442 443 |
# File 'lib/google4r/checkout/commands.rb', line 440 def initialize(serial_number, new_google_order_number) @serial_number = serial_number @new_google_order_number = new_google_order_number end |
Instance Attribute Details
#new_google_order_number ⇒ Object (readonly)
The new order number that was generated for this request.
435 436 437 |
# File 'lib/google4r/checkout/commands.rb', line 435 def new_google_order_number @new_google_order_number end |
#serial_number ⇒ Object (readonly)
The serial number of the <subscription-request-received> response.
432 433 434 |
# File 'lib/google4r/checkout/commands.rb', line 432 def serial_number @serial_number end |
Instance Method Details
#to_s ⇒ Object
445 446 447 |
# File 'lib/google4r/checkout/commands.rb', line 445 def to_s return @new_google_order_number end |