Module: Epp::Eis::CreditCommands

Defined in:
lib/epp-eis/credit.rb

Instance Method Summary collapse

Instance Method Details

#credit_infoObject



27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/epp-eis/credit.rb', line 27

def credit_info
  builder = build_epp_request do |xml|
    xml.extension {
      xml.extcommand('xmlns:fred' => 'http://www.nic.cz/xml/epp/fred-1.4', 'xsi:schemaLocation' => 'http://www.nic.cz/xml/epp/fred-1.4 fred-1.4.xsd') {
        xml.parent.namespace = xml.parent.namespace_definitions.first
        xml['fred'].creditInfo
        xml['fred'].clTRID UUIDTools::UUID.timestamp_create.to_s
      }
    }
  end
  
  CreditInfoResponse.new(send_request(builder.to_xml))
end