bb_payments 0.2.4 → 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: b15359beb0fd438ede84a6c0d0df2b7331652ac39238e39516f02247842aafb6
4
- data.tar.gz: 33fd9b022505503e418847423eadab94d51dffa4b18a75cc0e6d69c2840d1427
3
+ metadata.gz: f63fd53ba72f6c2773c7154b509cc2523b030b8da4b43b43ff4f47747515b251
4
+ data.tar.gz: a16c3940f589e800cfd7e770297fe132403b661bd5d0e2964b2508ba2b749dd6
5
5
  SHA512:
6
- metadata.gz: d29efdefeca381f77b1bc2d183185d8c27478c071cf2ba083c266f4194a7a9636b44952338733f0926e081b31c343162b2ca8ecadea01164fac0a45c05979be0
7
- data.tar.gz: d2048c1aef44426ac207d71ebc775ecb8e53bc1dae6e882546f8471d5b89ae37bd8b871545c77fe5add78e387ea015f5bd5037b3c140275cbfeb99978c7a6076
6
+ metadata.gz: d14c84b62281e68db1580cf4612feef151bee6651395eb91d514e832ed0e97b74630117b61f490db60dca45854482d3efe12f6928ebcd43f47434daea8c45569
7
+ data.tar.gz: 81a892b3cc9b35efadaf08d8209354e86bf0c23a421dd79aeb9ca70f21d596b784816f8f49c892fd5f4d1365c850992a253de834fa7a457db32d1b5e1b7ed064
Binary file
@@ -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.4'
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.4
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: 2025-09-09 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
@@ -103,6 +103,7 @@ 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
106
107
  - bb_payments.gemspec
107
108
  - docs/BankSlipsApi.md
108
109
  - docs/BarcodeCollectionFormsIDResponseObject.md