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.



316
317
318
319
# File 'lib/google4r/checkout/commands.rb', line 316

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.



311
312
313
# File 'lib/google4r/checkout/commands.rb', line 311

def new_google_order_number
  @new_google_order_number
end

#serial_numberObject (readonly)

The serial number of the <subscription-request-received> response.



308
309
310
# File 'lib/google4r/checkout/commands.rb', line 308

def serial_number
  @serial_number
end

Instance Method Details

#to_sObject



321
322
323
# File 'lib/google4r/checkout/commands.rb', line 321

def to_s
  return @new_google_order_number
end