gmo-pg 1.0.7 → 1.0.8

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
  SHA1:
3
- metadata.gz: d91b59a19a4341870dc51d01b1610607e446ae43
4
- data.tar.gz: 9cdc55972ec78d1d649d43be94a3098dff8e05e9
3
+ metadata.gz: 8d863133210819770763a12065e0cd5eb6943e4c
4
+ data.tar.gz: 475607d486067762c357c2195b2fe7ebd701e39d
5
5
  SHA512:
6
- metadata.gz: b0de96893450d31ab8055ce3f60cc2923d2fcf60503128d039d561e46819b51ef4d63276345fd82d9b9d3b1caf4d503d3ffeab6b9286876cbe51b0d942875200
7
- data.tar.gz: 36c857352756680438023f28da6515baa3b7a1e64f8205988d93da7c160db97283c2a3b18a8e7f3af72c98aa1dd2b5568503592808f8e374eaa39c944eab55b9
6
+ metadata.gz: 39e847b6dc807878c3c89678e9c47ae1534fd3559e0dc7096d7e81cdea1455e8b4e209c313e8eebae67c7d9eb4f6d7e8775c9c24cd7a1c9732dd4f4f0c4b5dba
7
+ data.tar.gz: bbdfee4b442e6878505c7c09272cc009669c098cebc8d164eebd926d8d29572bc10c3121961465a09faafae6a0ccee224dc37b8d3972bc08b0ce011b7db3ea14
data/lib/gmo-pg/error.rb CHANGED
@@ -27,7 +27,7 @@ module GMO
27
27
  # E0120: Invalid SitePass
28
28
  # E0121: Invalid SiteID and/or SitePass
29
29
  GMO::PG::AuthorizationError.new("Authorization error (#{err_code}|#{err_info})")
30
- when /\AE01(17|18|25|26|27|46|48)/, /\AE41/
30
+ when /\AE01(17|18|25|26|27|46|48)/, /\A(E41|42G)/
31
31
  # E0117: Invalid CardNo
32
32
  # E0118: Invalid Expire
33
33
  # E0125: Invalid CardPass
@@ -36,11 +36,13 @@ module GMO
36
36
  # E0146: Invalid SecurityCode
37
37
  # E0148: Invalid HolderName
38
38
  # E41 : Incorrect card
39
+ # 42G : Error on Card brand
39
40
  GMO::PG::CardError.new("Card error (#{err_code}|#{err_info})")
40
- when /\A(E61|E91|E92)/
41
+ when /\A(E61|E91|E92|42C)/
41
42
  # E61: Shop configuration error
42
43
  # E91: System error
43
44
  # E92: Temporary unavailable
45
+ # 42C: Error on CAFIS or Card brand
44
46
  GMO::PG::APIServerError.new("Temporary unavailable (#{err_code}|#{err_info})")
45
47
  else
46
48
  GMO::PG::APIError.new("API error (#{err_code}|#{err_info})")
@@ -1,5 +1,5 @@
1
1
  module GMO
2
2
  module PG
3
- VERSION = '1.0.7'
3
+ VERSION = '1.0.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmo-pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - kissy2go
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-26 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: GMO-PG is No.1 Payment Gateway in Japan. See https://www.gmo-pg.com for
14
14
  details.