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 +4 -4
- data/Gemfile.lock +2 -2
- data/bb_payments-0.2.5.gem +0 -0
- data/bb_payments-0.2.6.gem +0 -0
- data/lib/bb_payments/api/payments.rb +8 -4
- data/lib/bb_payments/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59d9e165eec970358d706d9db4d6f7d2b6da655aaaace4710c5f4e882cc8ea4d
|
|
4
|
+
data.tar.gz: 513149c4bc3bb0bbf6361fc3abb21745e49ff27b7c9abd09d076c6941186f375
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddacf79316aa4fc750e86dbf9ba4456f0487aff6a1856943112e7112488198b1dc884dc1efa2b1449a11a74c421ea41729a0883caaf301998c4ed79aa46e4990
|
|
7
|
+
data.tar.gz: 2882d408fcf2ac80b1357c4e08e54663be14194181d37556601172cb709f1f44d2a41f7dd33df88658f784cc708e4f9ec81149ebb7bccc1f6ed51789a7689e04
|
data/Gemfile.lock
CHANGED
|
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}]
|
|
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
|
|
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,
|
data/lib/bb_payments/version.rb
CHANGED
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.
|
|
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:
|
|
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
|