Sha256: 7b374018002bfcf2012bb546e2747c234800e56713de81e3489778e58085b48d

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

module Economic
  module Invoices
    class DraftsRepo < Economic::Invoices::Repo
      include Economic::SoapMethods

      class << self
        def soap_method_names
          {
            find: {method: :current_invoice_get_data, handle: :entityHandle},
            all: {method: :current_invoice_get_all, handle: :current_invoice_handle},
            send: {method: :current_invoice_create, handle: :debtorHandle},
            find_lines: {
              method: :current_invoice_get_lines,
              handle: :currentInvoiceHandle,
              line_handle: :current_invoice_line_handle,
            },
            create_lines: {
              method: :current_invoice_line_create_from_data_array,
              line_data_handle: :CurrentInvoiceLineData,
              model_handle: :InvoiceHandle,
            },
            find_all_lines: {
              method: :current_invoice_line_get_data_array,
              handle: :entityHandles,
              data: :current_invoice_line_data,
              line_handle: :CurrentInvoiceLineHandle,
            },
            find_all_records: {
              method: :current_invoice_get_data_array,
              handle: :CurrentInvoiceHandle,
              data: :current_invoice_data,
            },
            destroy: {
              method: :current_invoice_delete,
              handle: :currentInvoiceHandle,
            },
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
economic-rest-0.4.3 lib/economic/invoices/drafts_repo.rb
economic-rest-0.4.2 lib/economic/invoices/drafts_repo.rb
economic-rest-0.4.1 lib/economic/invoices/drafts_repo.rb
economic-rest-0.4.0 lib/economic/invoices/drafts_repo.rb