Class: HostConnect::GetBookingPaymentSummaryBuilder

Inherits:
AbstractBuilder show all
Defined in:
lib/hostconnect/builders/get_booking_payment_summary_builder.rb

Instance Method Summary collapse

Methods inherited from AbstractBuilder

#submit, #to_s

Constructor Details

#initialize(options = {}) ⇒ GetBookingPaymentSummaryBuilder

Returns a new instance of GetBookingPaymentSummaryBuilder.



3
4
5
6
# File 'lib/hostconnect/builders/get_booking_payment_summary_builder.rb', line 3

def initialize(options = {})
  @valid_options = [ :agent_id, :password, :booking_id ].freeze
  super(options)
end

Instance Method Details

#to_xmlObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/hostconnect/builders/get_booking_payment_summary_builder.rb', line 8

def to_xml
  x = bare
  x.Request {
    x.GetBookingPaymentSummaryRequest {
      x.AgentID @agent_id
      x.Password @password
      x.BookingId @booking_id
    }
  }
  x
end