bb_payments 0.2.4 → 0.2.6
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/bb_payments-0.2.4.gem +0 -0
- data/bb_payments-0.2.5.gem +0 -0
- data/lib/bb_payments/api/payments.rb +20 -0
- 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: 1138cf02678bdfc8eb085231f0a0e7124e1219ff43896ac8975cb6f790b4d6b3
|
4
|
+
data.tar.gz: 28ae38c1358b521a1ab7aa92cf71f823b3aa135477958ecf3dfbcbebbc5c87a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47e931019687ae2b545d7551d6659934b02cca334879a74509b00d5d5099a40c69bb7c1af9a0b3488eb0a4d23d71c3e2afded2abc870033dee3d5e81b056e478
|
7
|
+
data.tar.gz: 51ceb55a56bd70a2d8bf54e0f187e0966fe29195797161a237af89be2a18b27395b201acbb44ee7aaba579d2b02792657928f09bd858437c1fc9a07ad1bea93d
|
Binary file
|
Binary file
|
@@ -180,4 +180,24 @@ module BancoBrasilPayments::Payments
|
|
180
180
|
data_only: opts.fetch(:data_only, true),
|
181
181
|
client_opts: client_opts)
|
182
182
|
end
|
183
|
+
|
184
|
+
def change_date(id, original_date, new_date, debit_branch_office, debit_current_account, check_digits_debit_current_account, opts = {})
|
185
|
+
body = {
|
186
|
+
dataOriginalPagamento: original_date.strftime('%d%m%Y'),
|
187
|
+
dataNovoPagamento: new_date.strftime('%d%m%Y'),
|
188
|
+
numeroAgenciaDebito: debit_branch_office,
|
189
|
+
numeroContaCorrenteDebito: debit_current_account,
|
190
|
+
digitoVerificadorContaCorrenteDebito: check_digits_debit_current_account
|
191
|
+
}
|
192
|
+
client_opts = build_client_opts(api_client: api_client,
|
193
|
+
gw_app_key: gw_app_key,
|
194
|
+
opts: opts,
|
195
|
+
body: body)
|
196
|
+
|
197
|
+
call_api_client(api_client: api_client,
|
198
|
+
http_method: :PUT,
|
199
|
+
path: "/#{id}/data-pagamentos",
|
200
|
+
data_only: opts.fetch(:data_only, true),
|
201
|
+
client_opts: client_opts)
|
202
|
+
end
|
183
203
|
end
|
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.6
|
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-
|
12
|
+
date: 2025-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|
@@ -103,6 +103,8 @@ files:
|
|
103
103
|
- bb_payments-0.1.7.gem
|
104
104
|
- bb_payments-0.2.0.gem
|
105
105
|
- bb_payments-0.2.3.gem
|
106
|
+
- bb_payments-0.2.4.gem
|
107
|
+
- bb_payments-0.2.5.gem
|
106
108
|
- bb_payments.gemspec
|
107
109
|
- docs/BankSlipsApi.md
|
108
110
|
- docs/BarcodeCollectionFormsIDResponseObject.md
|