bs2_api 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bd1ef702376f17fa811965d2f0d46551dcbfba7743ed8c35557c81c719d07db
4
- data.tar.gz: deed5c8e1e0df62bade820bafa7adb7603d3a377ffb1b9ba5319e97ffe056bf4
3
+ metadata.gz: 1a7018dd3325d7ac310c8869cf63552485888cc1b5fb3328ce1334980bcbe8d8
4
+ data.tar.gz: ae5ba28ee4e2608ac117556475c64f348dabeae82313eb8e05b157f69ddb87d9
5
5
  SHA512:
6
- metadata.gz: d100b1a6e5336ae4f56cecc5c3bd01b2e91b97238260c4ad9d6138f1335c7ddf3c09f963ad7bb76f9696fc3693ff342e2a6a7b2b6c8759af3add3286569f98b4
7
- data.tar.gz: 7f9d349b5416f0230f1e5cd416f0f18fb0a57c4aeac52e8963f8f504e5feafa1ba81ffc8a6a8cf7e3556018a70bfc7b3adada7aba97c4f53d56b1a254fa7d1de
6
+ metadata.gz: 9468bc0b29d50b61a8610ea4e5f1cc6b12cff84d30b8ff729af6df4c611be7adee1c059828de7e963c3890c4ddc1f9dc5c0476c5c7ca593114602910b17e42ed
7
+ data.tar.gz: 45d57722d47244643b1a38752ab8f84a1d83aa783b03b40486592ba60decab97a0e27111f1af7dc75d1799d207e9e85511195a60c2abbae891c383c926913018
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bs2_api (1.4.1)
4
+ bs2_api (1.4.3)
5
5
  activesupport
6
6
  builder
7
7
  bundler
@@ -4,4 +4,4 @@ module Bs2Api
4
4
  module Errors
5
5
  class BadRequest < Base; end
6
6
  end
7
- end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bs2Api
4
+ module Errors
5
+ class RefundError < Base; end
6
+ end
7
+ end
@@ -45,7 +45,7 @@ module Bs2Api
45
45
  }.to_json
46
46
  )
47
47
 
48
- raise response.body unless response.success?
48
+ raise Bs2Api::Errors::RefundError, response.body.to_s unless response.success?
49
49
 
50
50
  response.body
51
51
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = '1.4.2'
4
+ VERSION = '1.4.3'
5
5
  end
data/lib/bs2_api.rb CHANGED
@@ -16,6 +16,7 @@ require 'bs2_api/errors/invalid_pix_key'
16
16
  require 'bs2_api/errors/invalid_bank'
17
17
  require 'bs2_api/errors/invalid_customer'
18
18
  require 'bs2_api/errors/missing_configuration'
19
+ require 'bs2_api/errors/refund_error'
19
20
  require 'bs2_api/errors/unauthorized'
20
21
  require 'bs2_api/errors/bad_request'
21
22
  require 'bs2_api/errors/server_error'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs2_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro
@@ -216,6 +216,7 @@ files:
216
216
  - lib/bs2_api/errors/invalid_pix_key.rb
217
217
  - lib/bs2_api/errors/missing_bank.rb
218
218
  - lib/bs2_api/errors/missing_configuration.rb
219
+ - lib/bs2_api/errors/refund_error.rb
219
220
  - lib/bs2_api/errors/server_error.rb
220
221
  - lib/bs2_api/errors/unauthorized.rb
221
222
  - lib/bs2_api/payment/async.rb