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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b15359beb0fd438ede84a6c0d0df2b7331652ac39238e39516f02247842aafb6
4
- data.tar.gz: 33fd9b022505503e418847423eadab94d51dffa4b18a75cc0e6d69c2840d1427
3
+ metadata.gz: 1138cf02678bdfc8eb085231f0a0e7124e1219ff43896ac8975cb6f790b4d6b3
4
+ data.tar.gz: 28ae38c1358b521a1ab7aa92cf71f823b3aa135477958ecf3dfbcbebbc5c87a4
5
5
  SHA512:
6
- metadata.gz: d29efdefeca381f77b1bc2d183185d8c27478c071cf2ba083c266f4194a7a9636b44952338733f0926e081b31c343162b2ca8ecadea01164fac0a45c05979be0
7
- data.tar.gz: d2048c1aef44426ac207d71ebc775ecb8e53bc1dae6e882546f8471d5b89ae37bd8b871545c77fe5add78e387ea015f5bd5037b3c140275cbfeb99978c7a6076
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
@@ -1,3 +1,3 @@
1
1
  module BancoBrasilPayments
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.6'
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.4
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-09 00:00:00.000000000 Z
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