class Yardi::Request::ImportYardiGuest

Post a GuestCard to Yardi's system

Required initializer parameters:

@param agent [Parameter::Agent] The agent to associate with the guestcard. @param credential [Parameter::Credential] PMC-specific information needed

to post to Yardi

@param lead_source [String] The originating source of the lead @param property [Parameter::Property] The property that the renter is

expressing interest in

@param reason [String] The reason the renter contacted the property, e.g.

'tour', 'price inquiry', etc.

@param user [Parameter::User] The renter

Attributes

agent[R]
lead_source[R]
property[R]
reason[R]
user[R]

Private Instance Methods

after_initialize(params) click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 26
def after_initialize(params)
  @agent = params[:agent]
  @lead_source = params[:lead_source]
  @property = params[:property]
  @reason = params[:reason]
  @user = params[:user]

  check_required_params
end
check_required_params() click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 36
def check_required_params
  unless agent && lead_source && property && reason && user
    message =
      ':agent, :lead_source, :property, :reason, :user are all required'
    raise ArgumentError, message
  end
end
interface() click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 68
def interface
  'ItfILSGuestCard'
end
parser() click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 44
def parser
  DocumentParser::GuestCardImportResponseObject.new
end
soap_action() click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 64
def soap_action
  'ImportYardiGuest_Login'
end
soap_body_sections() click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 48
def soap_body_sections
  [RequestSection::Authentication.new(credential)]
end
xml_doc_sections() click to toggle source
# File lib/yardi/request/import_yardi_guest.rb, line 52
def xml_doc_sections
  [
    RequestSection::LeadManagement.new(
      agent: agent,
      lead_source: lead_source,
      property: property,
      reason: reason,
      user: user
    )
  ]
end