issuer_response_codes 0.1.0 → 0.1.1
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 +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/issuer_response_codes.gemspec +1 -1
- data/lib/issuer_response_codes/version.rb +1 -1
- metadata +3 -4
- data/.byebug_history +0 -38
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15a220f42db6a4d71bc18b91d3c2109fe4d93c4f7ce33eb9203c3c43e66a6a4a
|
|
4
|
+
data.tar.gz: 6ac2b379e7b892e49639a769acdf8e0df24ce3f970cd3417557bb74d45bb5205
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb60960f4d64a996c571e44780063b1c4e76b6308c055bb063c76fa020fe5f26d98f651fb0e07f805740c4c697e4628f178ccadfc4e77b2a9659852d6e5fc701
|
|
7
|
+
data.tar.gz: 1283cb4e848482d3d926cfbd944ffe22efa53c807ce8ef6bfd2c0fc4b125f9703af586f171df068a8d37672d70f6439f8a9e66e6d55fc996e08cf792b8e77ed8
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -194,12 +194,12 @@ ISSUER_RESPONSE_CODES = ::IssuerResponseCodes::Context.new(
|
|
|
194
194
|
)
|
|
195
195
|
|
|
196
196
|
# now just use this object as a proxy
|
|
197
|
-
code =
|
|
197
|
+
code = ISSUER_RESPONSE_CODES.code(id: '43')
|
|
198
198
|
code.reason #=> "Bank odrzucił autoryzację."
|
|
199
199
|
code.behaviour #=> "Skontaktuj się z Twoim bankiem w celu wyjaśnienia przyczyny problemu. UWAGA: Nie należy powtarzać obciążeń dla tej karty! Może to zostać uznane za próbę oszustwa!"
|
|
200
200
|
|
|
201
201
|
# these can always be overridden
|
|
202
|
-
code =
|
|
202
|
+
code = ISSUER_RESPONSE_CODES.code(id: '43', locale: :en, target: :merchant, fraud_notice: false)
|
|
203
203
|
code.reason #=> "Stolen card."
|
|
204
204
|
code.behaviour #=> "Please contact your card issuer to get more details and try again later."
|
|
205
205
|
```
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = "A simple Ruby gem which provides Issuer Response Code descriptions and suggestions for cardholders and merchants"
|
|
13
13
|
spec.homepage = "https://github.com/espago/issuer_response_codes"
|
|
14
14
|
spec.license = "MIT"
|
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5")
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
18
|
spec.metadata["source_code_uri"] = "https://github.com/espago/issuer_response_codes"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: issuer_response_codes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Espago
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-05-
|
|
12
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -89,7 +89,6 @@ executables: []
|
|
|
89
89
|
extensions: []
|
|
90
90
|
extra_rdoc_files: []
|
|
91
91
|
files:
|
|
92
|
-
- ".byebug_history"
|
|
93
92
|
- ".gitignore"
|
|
94
93
|
- ".rubocop.yml"
|
|
95
94
|
- ".ruby-version"
|
|
@@ -131,7 +130,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
131
130
|
requirements:
|
|
132
131
|
- - ">="
|
|
133
132
|
- !ruby/object:Gem::Version
|
|
134
|
-
version: '2.
|
|
133
|
+
version: '2.5'
|
|
135
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
135
|
requirements:
|
|
137
136
|
- - ">="
|
data/.byebug_history
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
c
|
|
2
|
-
scope.empty?
|
|
3
|
-
scope
|
|
4
|
-
path
|
|
5
|
-
scope
|
|
6
|
-
default_path_array
|
|
7
|
-
default
|
|
8
|
-
exit
|
|
9
|
-
c
|
|
10
|
-
locale_hash.dig(*[:issuer_response_codes, :targeted, :merchant, :"04"])
|
|
11
|
-
locale_hash.dig()
|
|
12
|
-
full_path_array
|
|
13
|
-
result
|
|
14
|
-
c
|
|
15
|
-
IssuerResponseCodes::LOCALE_LIBRARY.locale[:da]
|
|
16
|
-
IssuerResponseCodes::LOCALE_LIBRARY.locale
|
|
17
|
-
IssuerResponseCodes::LOCALE_LIBRARY
|
|
18
|
-
c
|
|
19
|
-
hash
|
|
20
|
-
c
|
|
21
|
-
hash
|
|
22
|
-
c
|
|
23
|
-
exit
|
|
24
|
-
c
|
|
25
|
-
name
|
|
26
|
-
::YAML.load_file("lib/locale/#{name}.yml")
|
|
27
|
-
c
|
|
28
|
-
hash
|
|
29
|
-
exit
|
|
30
|
-
c
|
|
31
|
-
locale_hash.symbolize_keys
|
|
32
|
-
locale_hash
|
|
33
|
-
exit
|
|
34
|
-
IssuerResponseCodes::LOCALE_LIBRARY
|
|
35
|
-
LOCALE_LIBRARY
|
|
36
|
-
c
|
|
37
|
-
YAML.load_file('lib/locale/da.yml')
|
|
38
|
-
YAML.load_file('locale/da.yml')
|