bb_payments 0.2.3 → 0.2.5

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: c29a443f8904fc082c1d0cd9d9b421af7f1bba71a2026f05b5b234ffea1ac0c0
4
- data.tar.gz: e71e891173b722276e11e75aa9db53bafe9c2c8e572d59488abf5d71531f5f89
3
+ metadata.gz: f63fd53ba72f6c2773c7154b509cc2523b030b8da4b43b43ff4f47747515b251
4
+ data.tar.gz: a16c3940f589e800cfd7e770297fe132403b661bd5d0e2964b2508ba2b749dd6
5
5
  SHA512:
6
- metadata.gz: 0dc3283070196d4326f39c408f6851e0d95ef79d2b49e969ff770c21a22981486320b81180115315cfe25c8f92612b05eed7836a08a09a0ca5261af7be949254
7
- data.tar.gz: 3883ee313529a813cd34dc0f7f9020f2867ef73efd01a3ae2acd8c367838548948ca3c9d0bb2b9d4ac5c8b167f1066f916301f1837a505343ef967cc2c8ae331
6
+ metadata.gz: d14c84b62281e68db1580cf4612feef151bee6651395eb91d514e832ed0e97b74630117b61f490db60dca45854482d3efe12f6928ebcd43f47434daea8c45569
7
+ data.tar.gz: 81a892b3cc9b35efadaf08d8209354e86bf0c23a421dd79aeb9ca70f21d596b784816f8f49c892fd5f4d1365c850992a253de834fa7a457db32d1b5e1b7ed064
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bb_payments (0.2.3)
4
+ bb_payments (0.2.4)
5
5
  bb_oauth (~> 1.0.3)
6
6
  json (~> 2.6, >= 2.1.0)
7
7
  typhoeus (~> 1.4, >= 1.0.1)
Binary file
Binary file
@@ -50,7 +50,7 @@ module BancoBrasilPayments::Payments
50
50
  # POST /cancelar-pagamentos Cancelar Lote de Pagamentos
51
51
  # Efetua o Cancelamento de um Lote de Pagamentos
52
52
  def cancel_payments(body, opts = {})
53
- validations(api_client: api_client, body: body, validate_body: true)
53
+ # validations(api_client: api_client, body: body, validate_body: true)
54
54
 
55
55
  client_opts = build_client_opts(api_client: api_client,
56
56
  gw_app_key: gw_app_key,
@@ -180,4 +180,21 @@ 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, opts = {})
185
+ body = {
186
+ dataOriginalPagamento: original_date.strftime('%d%m%Y'),
187
+ dataNovoPagamento: new_date.strftime('%d%m%Y'),
188
+ }
189
+ client_opts = build_client_opts(api_client: api_client,
190
+ gw_app_key: gw_app_key,
191
+ opts: opts,
192
+ body: body)
193
+
194
+ call_api_client(api_client: api_client,
195
+ http_method: :PUT,
196
+ path: "/#{id}/data-pagamentos",
197
+ data_only: opts.fetch(:data_only, true),
198
+ client_opts: client_opts)
199
+ end
183
200
  end
@@ -1,3 +1,3 @@
1
1
  module BancoBrasilPayments
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.5'
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.3
4
+ version: 0.2.5
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: 2024-02-22 00:00:00.000000000 Z
12
+ date: 2025-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -102,6 +102,8 @@ files:
102
102
  - bb_payments-0.1.5.gem
103
103
  - bb_payments-0.1.7.gem
104
104
  - bb_payments-0.2.0.gem
105
+ - bb_payments-0.2.3.gem
106
+ - bb_payments-0.2.4.gem
105
107
  - bb_payments.gemspec
106
108
  - docs/BankSlipsApi.md
107
109
  - docs/BarcodeCollectionFormsIDResponseObject.md