Class: XmlPayload::RequestCredit

Inherits:
Object
  • Object
show all
Defined in:
lib/valuefirst/xml_payload/request_credit.rb

Class Method Summary collapse

Class Method Details

.requestcredit(vfirst_config) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/valuefirst/xml_payload/request_credit.rb', line 8

def self.requestcredit vfirst_config
  doc = XmlPayload::XmlGenerator.new_doc
  #doc_type  = XmlGenerator.create_node("!DOCTYPE", )
  requestcredit_tag = XmlPayload::XmlGenerator.create_node("REQUESTCREDIT", attributes: {"USERNAME" => vfirst_config.username.to_s, "PASSWORD" => vfirst_config.password.to_s})
  doc.root = requestcredit_tag
  doc
end