Class: Omie::API::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/omie/api/customer.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Omie::API::Base

Instance Method Details

#batch_upsert(data, part: 1) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/omie/api/customer.rb', line 10

def batch_upsert(data, part: 1)
  conn.post(
    "geral/clientes/",
    {
      call: "UpsertClientesPorLote",
      param: [
        clientes_cadastro: data,
        lote: part
      ]
    }
  )
end

#set_integration_id(data) ⇒ Object

rubocop:disable Naming/AccessorMethodName



24
25
26
27
28
29
# File 'lib/omie/api/customer.rb', line 24

def set_integration_id(data)
  conn.post(
    "geral/clientes/",
    { call: "AssociarCodIntCliente", param: [data] }
  )
end

#upsert(data) ⇒ Object



6
7
8
# File 'lib/omie/api/customer.rb', line 6

def upsert(data)
  conn.post("geral/clientes/", { call: "UpsertCliente", param: [data] })
end