wolf_core 0.1.15 → 0.1.16
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/lib/wolf_core/application/barton/mappings.rb +27 -29
- data/lib/wolf_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7a65bdc79f3a3c023d9488e10ebdb6ca8207a53d44af59217b56449d930e026
|
4
|
+
data.tar.gz: 580acd4c9c3f77ed552ce8f3a6656b24ab37f296de40bb09ff719c02e2f41927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 441712c8ede3e1900eb7868da5f36742cf4453ad44c6a7a2e081e0af5fd91ac2d2b4206cc3091798c01e7738cf956608b01c8df7df0b4f43f893c7196c7eb4f4
|
7
|
+
data.tar.gz: 795fb269305da0d0bea89313c815c3adf37e7c44a47be628f4ce2a27005d801796e8b3a3eb7c0e6a4f454080ed42a5594982ea8187addc733f6d788e6b1af43a
|
@@ -1,40 +1,38 @@
|
|
1
1
|
module WolfCore
|
2
2
|
module Barton
|
3
3
|
module Mappings
|
4
|
-
|
4
|
+
PROVIDER_TYPE_MAPPING = {
|
5
|
+
'MD' => ENV['MD_PRICING_ID'],
|
6
|
+
'DO' => ENV['DO_PRICING_ID'],
|
7
|
+
'PA' => ENV['PA_PRICING_ID'],
|
8
|
+
'DMD' => ENV['DMD_PRICING_ID'],
|
9
|
+
'NP' => ENV['NP_PRICING_ID'],
|
10
|
+
}
|
11
|
+
|
12
|
+
LOCUM_AVAILABILITY_MAP = {
|
13
|
+
"PT" => "Part Time",
|
14
|
+
"FT" => "Full Time",
|
15
|
+
"PFI" => "Not Sure Yet",
|
16
|
+
"Interim Locum" => "Between Permanent Positions",
|
17
|
+
"Perm Only" => "Permanent",
|
18
|
+
}
|
5
19
|
|
6
20
|
def map_provider_type_to_pricing_id(provider_type)
|
7
|
-
|
8
|
-
|
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
|
+
pricing_id = PROVIDER_TYPE_MAPPING[provider_type]
|
22
|
+
pricing_id || provider_type
|
21
23
|
end
|
22
24
|
|
23
25
|
def map_pricing_id_to_provider_type(pricing_id)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
'NP'
|
35
|
-
else
|
36
|
-
raise_service_error({ message: "Unknown provider type #{provider_type}" })
|
37
|
-
end
|
26
|
+
provider_type = PROVIDER_TYPE_MAPPING.invert[pricing_id]
|
27
|
+
provider_type || pricing_id
|
28
|
+
end
|
29
|
+
|
30
|
+
def map_locum_availability(value)
|
31
|
+
LOCUM_AVAILABILITY_MAP[value] || value
|
32
|
+
end
|
33
|
+
|
34
|
+
def reverse_map_locum_availability(value)
|
35
|
+
LOCUM_AVAILABILITY_MAP.invert[value] || value
|
38
36
|
end
|
39
37
|
end
|
40
38
|
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.16
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|