bs2_api 1.0.0 → 1.0.1

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: 78c5e50ba3341bf79dd9fa5fbdc83c5e78aca818921951c72e2e6481f3b7b3f9
4
- data.tar.gz: 63bbcb0806109efb4d714f80324e00594c31273eda6b6e60d600fb0dd673d3b9
3
+ metadata.gz: 0e4c949521f5aa35e0d70b1f60ecf2b2f564506624ed734119f60da621405ed0
4
+ data.tar.gz: dcb26cdbc5609f26278c71da41c76506a6c3c3e4c8cffd1ecab462762a428a07
5
5
  SHA512:
6
- metadata.gz: 1e70eb0d7ff1bedab7e1437076020da0c30c79cd895ff0657b291087ecc83b8f1e4c4fc39f5616ff82e5e8462ff75affbb290b3177315e3421ece8aef973b23f
7
- data.tar.gz: fad7eaf73f6cb8af230af50c66cb43dab416fcf11149036ed215bd9170beae4a223e920a9c2488a409ef08258453c7a2f6d02c5df5a34ddbd55c106e4edbead1
6
+ metadata.gz: b8a5e2c6eff25d932b8ca1bd8645b41b1b3d5791e89d554c1d57494fa25d445f10f52fd056ef989a040fb9646e1d3aec0e8e83bc2674256423db0e4dac670d59
7
+ data.tar.gz: 7e08dbc26de1e902aa9ead89c69669bb0b2d4b27bef863966abad162a64d01b0f1e621191e47797c34f9f7545fdde5131325a769ad2f3f6a3bf42562ad181557
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [1.0.1] - 2021-06-25
2
+ - Adjust HTTP response code when create payments into BS2
3
+
1
4
  ## [1.0.0] - 2021-06-18
2
5
  - Changed payment.id to payment.payment_id
3
6
  - Changed payment.merchant_id to payment.end_to_end_id
@@ -9,8 +9,8 @@ module Bs2Api
9
9
 
10
10
  def call
11
11
  response = post_request
12
- raise Bs2Api::Errors::BadRequest, ::Util::Response.parse_error(response) unless response.created?
13
-
12
+ raise Bs2Api::Errors::BadRequest, ::Util::Response.parse_error(response) unless response.ok?
13
+
14
14
  @payment = Bs2Api::Entities::Payment.from_response(response)
15
15
  self
16
16
  end
@@ -35,10 +35,10 @@ module Bs2Api
35
35
  def payload
36
36
  raise NoMethodError, "Missing #{__method__} to #{self.class}"
37
37
  end
38
-
38
+
39
39
  def url
40
40
  raise NoMethodError, "Missing #{__method__} to #{self.class}"
41
41
  end
42
42
  end
43
43
  end
44
- end
44
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs2_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder