bb_payments 0.2.5 → 0.2.7

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: f63fd53ba72f6c2773c7154b509cc2523b030b8da4b43b43ff4f47747515b251
4
- data.tar.gz: a16c3940f589e800cfd7e770297fe132403b661bd5d0e2964b2508ba2b749dd6
3
+ metadata.gz: 59d9e165eec970358d706d9db4d6f7d2b6da655aaaace4710c5f4e882cc8ea4d
4
+ data.tar.gz: 513149c4bc3bb0bbf6361fc3abb21745e49ff27b7c9abd09d076c6941186f375
5
5
  SHA512:
6
- metadata.gz: d14c84b62281e68db1580cf4612feef151bee6651395eb91d514e832ed0e97b74630117b61f490db60dca45854482d3efe12f6928ebcd43f47434daea8c45569
7
- data.tar.gz: 81a892b3cc9b35efadaf08d8209354e86bf0c23a421dd79aeb9ca70f21d596b784816f8f49c892fd5f4d1365c850992a253de834fa7a457db32d1b5e1b7ed064
6
+ metadata.gz: ddacf79316aa4fc750e86dbf9ba4456f0487aff6a1856943112e7112488198b1dc884dc1efa2b1449a11a74c421ea41729a0883caaf301998c4ed79aa46e4990
7
+ data.tar.gz: 2882d408fcf2ac80b1357c4e08e54663be14194181d37556601172cb709f1f44d2a41f7dd33df88658f784cc708e4f9ec81149ebb7bccc1f6ed51789a7689e04
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bb_payments (0.2.4)
4
+ bb_payments (0.2.7)
5
5
  bb_oauth (~> 1.0.3)
6
6
  json (~> 2.6, >= 2.1.0)
7
7
  typhoeus (~> 1.4, >= 1.0.1)
@@ -65,4 +65,4 @@ DEPENDENCIES
65
65
  rubocop (~> 0.66.0)
66
66
 
67
67
  BUNDLED WITH
68
- 2.4.22
68
+ 2.4.17
Binary file
Binary file
@@ -8,7 +8,7 @@
8
8
  [Y] - [POST /cancelar-pagamentos] => Cancelar Lote de Pagamentos
9
9
  [Y] - [GET /pagamentos] => Consultar Pagamentos
10
10
  [N] - [GET /transferencias/{id}] => Consultar um Pagamento Específico de um Lote de Transferências
11
- [Y] - [GET /{id}] => Consultar um Lote de Pagamentos
11
+ [Y] - [GET /requisicoes/{id}] => Consultar um Lote de Pagamentos
12
12
  [N] - [GET /{id}/solicitacao] => Consultar sobre a Solicitação de um Lote de Pagamentos
13
13
 
14
14
  =end
@@ -131,8 +131,9 @@ module BancoBrasilPayments::Payments
131
131
  client_opts: client_opts)
132
132
  end
133
133
 
134
- # GET /{id}
134
+ # GET /requisicoes/{id}
135
135
  # Consulta um lote de pagamentos.
136
+ # Substitui o antigo GET /{id}, descontinuado pelo BB (HTTP 410).
136
137
  def find_batch_payments(id, opts = {})
137
138
  validations(api_client: api_client, required_params: { id: id })
138
139
 
@@ -143,7 +144,7 @@ module BancoBrasilPayments::Payments
143
144
 
144
145
  call_api_client(api_client: api_client,
145
146
  http_method: :GET,
146
- path: id.to_s,
147
+ path: "/requisicoes/#{id}",
147
148
  data_only: opts.fetch(:data_only, true),
148
149
  client_opts: client_opts)
149
150
  end
@@ -181,10 +182,13 @@ module BancoBrasilPayments::Payments
181
182
  client_opts: client_opts)
182
183
  end
183
184
 
184
- def change_date(id, original_date, new_date, opts = {})
185
+ def change_date(id, original_date, new_date, debit_branch_office, debit_current_account, check_digits_debit_current_account, opts = {})
185
186
  body = {
186
187
  dataOriginalPagamento: original_date.strftime('%d%m%Y'),
187
188
  dataNovoPagamento: new_date.strftime('%d%m%Y'),
189
+ numeroAgenciaDebito: debit_branch_office,
190
+ numeroContaCorrenteDebito: debit_current_account,
191
+ digitoVerificadorContaCorrenteDebito: check_digits_debit_current_account
188
192
  }
189
193
  client_opts = build_client_opts(api_client: api_client,
190
194
  gw_app_key: gw_app_key,
@@ -1,3 +1,3 @@
1
1
  module BancoBrasilPayments
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bb_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roque
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-09-16 00:00:00.000000000 Z
12
+ date: 2026-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -104,6 +104,8 @@ files:
104
104
  - bb_payments-0.2.0.gem
105
105
  - bb_payments-0.2.3.gem
106
106
  - bb_payments-0.2.4.gem
107
+ - bb_payments-0.2.5.gem
108
+ - bb_payments-0.2.6.gem
107
109
  - bb_payments.gemspec
108
110
  - docs/BankSlipsApi.md
109
111
  - docs/BarcodeCollectionFormsIDResponseObject.md