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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25741ecf7cea9c207e525f9f35174651205989829141c97e352e4ad412a3c10e
4
- data.tar.gz: 7b6aef0b376c2fdcc363825dab219ad9c3348523c56147444cb92b9620e62378
3
+ metadata.gz: fe166ad023f93471bc7491e5cec725e3ec0fd493a67bf8d5aab232b8a8889ef2
4
+ data.tar.gz: '09b0bbfea7b442c52d4a72e00f8ee2d165bd7dbfcbffff8b6d3ccee7598ba6eb'
5
5
  SHA512:
6
- metadata.gz: 64fb8b38143510b510b3b39a9e31b57e39af9c34de5a27b6069535d0c3a0b23ed9f44c398bc116dcc576ba2bca32d5c5190c1355908e88b2c834b6354e13ab0e
7
- data.tar.gz: 3d06ebf9831edcb47a64dc3be60c4956eaf3e9ea18fbb575d63699093e22727d7d2ab93cb014d4d79f8029bf893c12ccb2c8f6ec38b30cee7854cc1ae06cfbbc
6
+ metadata.gz: e89804af33c5f2a8867ff2ad1763b337499cbda419feb7a0b7b90cfafff98fb394b920db4f94b321a4759da072a765a0290b34e0e1d3e39540ff14c9f970de6c
7
+ data.tar.gz: c8bb323ba41328a7b52adb4b40a5cdbdc7f40f786e576b28e9d50a18c89904a77b3b946669d105a50131ed9056cc455a6d21a6d57da7e9b7d35d4fc28234b9b8
@@ -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 = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlingApi
4
- VERSION = "2.1.4"
4
+ VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bling_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio