Class: Google4R::Checkout::SubscriptionRequestReceivedResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_numberObject (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_numberObject (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_sObject



445
446
447
# File 'lib/google4r/checkout/commands.rb', line 445

def to_s
  return @new_google_order_number
end