bb_payments 0.1.8 → 0.2.2

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: e9a42c1ae5a4812c5796a9765957d7b4ff666388bdb31597a658112dbc39347e
4
- data.tar.gz: 572f7c341865d227eae9d1d9becf838ffb316e0f3d6c3116a87f25c90ee70a29
3
+ metadata.gz: eb2311c2ec2d2af9ada395d41fb24b539118a8dd31ff0115785f0a4f8c23ac56
4
+ data.tar.gz: cc52db4126dcf466311369eb7e4d10ef0a2e8c44de83c2f08f917c6c6b894b8a
5
5
  SHA512:
6
- metadata.gz: 8f7415d0ad4172bf21676e1b5667adeaf5f0df5a66ce42442984461fd78ab259a5f1dce5eec15fef0f277e1230505619771066d37551e9d8e049c3ee7ba521b7
7
- data.tar.gz: 7c97008bdcd24aebc31d2e18b5eb1c1d82f8415acba733b7255cf1a18b07e04cd2be05f646d9c0f535f8c0629f9844be4afcfa227d348ce409492f32b5b1dfeb
6
+ metadata.gz: fa2751bd23058803eb326989fcf0a0f896b16f98c0a946b58b278897f89ea8e71661d7d25071b7daea28b2c0bbcbce9b224c088777d0b189e9b69388b22c7b58
7
+ data.tar.gz: 3633729d01d16da8992a1518f75d8b5ae5a5c2a52bf6f06f4f0971dbf68cc64f701295113bd70e2821dfa498f23cf7927b3c9be15342afc9cc420aa6e2836035
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bb_payments (0.1.7)
4
+ bb_payments (0.2.0)
5
5
  bb_oauth (~> 1.0)
6
6
  json (~> 2.6, >= 2.1.0)
7
- typhoeus (~> 1.0, >= 1.0.1)
7
+ typhoeus (~> 1.4, >= 1.0.1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
Binary file
@@ -52,7 +52,7 @@ module BancoBrasilPayments::TransfersPix
52
52
  # GET /pix/{id}
53
53
  # # Detalha todos os dados de um pagamento efetuado na modalidade PIX.
54
54
  def find_payment_pix(id, opts = {})
55
- validations(api_client: api_client, body: body, validate_body: true, required_params: { id: id })
55
+ validations(api_client: api_client, required_params: { id: id })
56
56
 
57
57
  client_opts = build_client_opts(api_client: api_client,
58
58
  gw_app_key: gw_app_key,
@@ -307,7 +307,7 @@ module BancoBrasilPayments
307
307
 
308
308
  def valid_token?
309
309
  access_token_requested_at &&
310
- (Time.zone.now - access_token_requested_at) > TOKEN_EXPIRE_TIME
310
+ (Time.zone.now - access_token_requested_at) < TOKEN_EXPIRE_TIME
311
311
  end
312
312
 
313
313
  def renew_token
@@ -160,9 +160,12 @@ module BancoBrasilPayments
160
160
  @force_ending_format = false
161
161
  @logger = defined?(Jets) ? Jets.logger : Logger.new(STDOUT)
162
162
  @access_token_scopes = 'payments.transfers-info payments.transfer-batch-request '\
163
- 'pagamentos-lote.lotes-requisicao pagamentos-lote.lotes-info pagamentos-lote.pagamentos-info '\
163
+ 'pagamentos-lote.lotes-requisicao pagamentos-lote.lotes-info '\
164
+ 'pagamentos-lote.transferencias-info pagamentos-lote.transferencias-requisicao '\
165
+ 'pagamentos-lote.pagamentos-info '\
164
166
  'pagamentos-lote.transferencias-pix-info pagamentos-lote.transferencias-pix-requisicao '\
165
- 'pagamentos-lote.cancelar-requisicao pagamentos-lote.transferencias-requisicao'
167
+ 'pagamentos-lote.pix-info '\
168
+ 'pagamentos-lote.cancelar-requisicao'
166
169
 
167
170
  yield(self) if block_given?
168
171
  end
@@ -1,3 +1,3 @@
1
1
  module BancoBrasilPayments
2
- VERSION = '0.1.8'
2
+ VERSION = '0.2.2'
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.1.8
4
+ version: 0.2.2
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: 2023-09-14 00:00:00.000000000 Z
12
+ date: 2023-12-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -98,6 +98,7 @@ files:
98
98
  - MIT-LICENSE.txt
99
99
  - README.md
100
100
  - Rakefile
101
+ - bb_payments-0.1.8.gem
101
102
  - bb_payments.gemspec
102
103
  - docs/BankSlipsApi.md
103
104
  - docs/BarcodeCollectionFormsIDResponseObject.md
@@ -257,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
258
  - !ruby/object:Gem::Version
258
259
  version: '0'
259
260
  requirements: []
260
- rubygems_version: 3.1.6
261
+ rubygems_version: 3.5.3
261
262
  signing_key:
262
263
  specification_version: 4
263
264
  summary: A ruby wrapper for Banco do Brasil VPN Payments