bling_api 2.1.4 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bling_api/client.rb +43 -0
- data/lib/bling_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe166ad023f93471bc7491e5cec725e3ec0fd493a67bf8d5aab232b8a8889ef2
|
|
4
|
+
data.tar.gz: '09b0bbfea7b442c52d4a72e00f8ee2d165bd7dbfcbffff8b6d3ccee7598ba6eb'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e89804af33c5f2a8867ff2ad1763b337499cbda419feb7a0b7b90cfafff98fb394b920db4f94b321a4759da072a765a0290b34e0e1d3e39540ff14c9f970de6c
|
|
7
|
+
data.tar.gz: c8bb323ba41328a7b52adb4b40a5cdbdc7f40f786e576b28e9d50a18c89904a77b3b946669d105a50131ed9056cc455a6d21a6d57da7e9b7d35d4fc28234b9b8
|
data/lib/bling_api/client.rb
CHANGED
|
@@ -421,6 +421,49 @@ module BlingApi
|
|
|
421
421
|
post("/nfe", body: body, timeout: 30)
|
|
422
422
|
end
|
|
423
423
|
|
|
424
|
+
def create_payments_to_receivable(
|
|
425
|
+
vencimento:,
|
|
426
|
+
valor:,
|
|
427
|
+
contato_id:,
|
|
428
|
+
forma_pagamento_id:,
|
|
429
|
+
data_emissao:,
|
|
430
|
+
numero_documento:,
|
|
431
|
+
competencia:,
|
|
432
|
+
historico:,
|
|
433
|
+
portador_id:,
|
|
434
|
+
categoria_id:,
|
|
435
|
+
vendedor_id:,
|
|
436
|
+
tipo_ocorrencia:
|
|
437
|
+
)
|
|
438
|
+
body = {
|
|
439
|
+
vencimento: vencimento,
|
|
440
|
+
valor: valor,
|
|
441
|
+
contato: {
|
|
442
|
+
id: contato_id
|
|
443
|
+
},
|
|
444
|
+
formaPagamento: {
|
|
445
|
+
id: forma_pagamento_id
|
|
446
|
+
},
|
|
447
|
+
dataEmissao: data_emissao,
|
|
448
|
+
numeroDocumento: numero_documento,
|
|
449
|
+
competencia: competencia,
|
|
450
|
+
historico: historico,
|
|
451
|
+
portador: {
|
|
452
|
+
id: portador_id
|
|
453
|
+
},
|
|
454
|
+
categoria: {
|
|
455
|
+
id: categoria_id
|
|
456
|
+
},
|
|
457
|
+
vendedor: {
|
|
458
|
+
id: vendedor_id
|
|
459
|
+
},
|
|
460
|
+
ocorrencia: {
|
|
461
|
+
tipo: tipo_ocorrencia
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
post("/contas/receber", body: body, timeout: 30) { _1.data }
|
|
465
|
+
end
|
|
466
|
+
|
|
424
467
|
private
|
|
425
468
|
|
|
426
469
|
def build_query(params = {}, array_params = {})
|
data/lib/bling_api/version.rb
CHANGED