class SunatInvoice::Customer

Public Instance Methods

info(xml) click to toggle source
# File lib/sunat_invoice/customer.rb, line 7
def info(xml)
  xml['cac'].AccountingCustomerParty do
    xml['cbc'].CustomerAssignedAccountID @ruc
    xml['cbc'].AdditionalAccountID @document_type
    xml['cac'].Party do
      xml['cac'].PartyLegalEntity do
        xml['cbc'].RegistrationName @name
      end
    end
  end
end