wolf_core 0.1.10 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/application/barton/mappings.rb +24 -0
- data/lib/wolf_core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 914e75f9733c9a9903c60262da705977f3f51cefcca450f3f238b5d852318067
|
4
|
+
data.tar.gz: 131c093c63143bcfa4a1302d748cc348af28fcf9e14e956beb8b3729ffe2d89f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a012ff46e2f82ed42ec569fbb80bb3aefee712646c94b63f9353dfeb91d84ea05bb950724ba8586fbade8861a9198cae089d400e57b0144c07295388c9e019dd
|
7
|
+
data.tar.gz: 35f0fcc4c0431b3e15265da28c885289ff41f7070cf992cb797cf1c6d107c634c2a5c4a4eee9ac038cb31eecbac2571778f9ba23eeeafc5f1d6e3739fae72045
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module WolfCore
|
2
|
+
module Barton
|
3
|
+
module Mappings
|
4
|
+
include WolfCore::ExceptionOperations
|
5
|
+
|
6
|
+
def map_pricing_id(provider_type)
|
7
|
+
case provider_type
|
8
|
+
when 'MD'
|
9
|
+
ENV['MD_PRICING_ID']
|
10
|
+
when 'DO'
|
11
|
+
ENV['DO_PRICING_ID']
|
12
|
+
when 'PA'
|
13
|
+
ENV['PA_PRICING_ID']
|
14
|
+
when 'DMD'
|
15
|
+
ENV['DMD_PRICING_ID']
|
16
|
+
when 'NP'
|
17
|
+
ENV['NP_PRICING_ID']
|
18
|
+
else
|
19
|
+
raise_service_error({ message: "Unknown provider type #{provider_type}" })
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/wolf_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolf_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -47,6 +47,7 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- lib/wolf_core.rb
|
49
49
|
- lib/wolf_core/application/application_service.rb
|
50
|
+
- lib/wolf_core/application/barton/mappings.rb
|
50
51
|
- lib/wolf_core/application/exception_operations.rb
|
51
52
|
- lib/wolf_core/application/fkm_operations.rb
|
52
53
|
- lib/wolf_core/application/http_operations.rb
|