wolf_core 0.1.26 → 0.1.27

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: 10da871d6396424534f146ef620b3afbee91b32257638060db7d13420b08167e
4
- data.tar.gz: 3ae48ce58db541bbc4a033beddef21565fc9fe524c8fa02e0a0f2a5b1f73af20
3
+ metadata.gz: 3d51ec182318cf97c54c92a3800d854adee6d727559b753279adedb925bdd49c
4
+ data.tar.gz: 9ffe2f1c4a402d454ba3c9b547bf731d6e66ebf19ac4ece66e43c1f46856148e
5
5
  SHA512:
6
- metadata.gz: 5e9b5ef3cb81ca540285378a3cfa5b27de7420cf9331d119af5c7890f176ed10a672da239cae69b8bcf9732001ef11e7dab502d5cc4b298557f71d7206ba2ca5
7
- data.tar.gz: '0696dd524c9718911ab4e4bf2722347c0a3d61c4791a4186b02c2bf4e3451bda085390ab34a65cebb9ddd3c243f419c715e231992bdca5231269bd3f546bb82f'
6
+ metadata.gz: b7bac9f5e39e034f7313f648541898c2c3bd4f5e04dd9a11a46ba3c8ffdc5e4ed3a4bdce58ccc0e08a96b39118648f62f90d76e19148cfb57b4e699beed01fa0
7
+ data.tar.gz: 95ef614f875da89ec82f3cc21f3c73266f504f6734762c1d96162d6885b2c1c036264e84860e5abe56db1c98466d9f287c75330d11c879a3181d66c074a325f5
@@ -17,6 +17,14 @@ module WolfCore
17
17
  "Perm Only" => "Permanent",
18
18
  }
19
19
 
20
+ ORDER_STATUS_MAP = {
21
+ "Pending" => "pending",
22
+ "On Hold" => "pending",
23
+ "Filled" => "pending",
24
+ "Open" => "live",
25
+ "Closed" => "closed",
26
+ }
27
+
20
28
  def map_provider_type_to_pricing_id(provider_type)
21
29
  pricing_id = PROVIDER_TYPE_MAPPING[provider_type]
22
30
  pricing_id || provider_type
@@ -36,6 +44,14 @@ module WolfCore
36
44
  def reverse_map_locum_availability(value)
37
45
  LOCUM_AVAILABILITY_MAP.invert[value] || value
38
46
  end
47
+
48
+ def map_order_status(value)
49
+ ORDER_STATUS_MAP[value] || value
50
+ end
51
+
52
+ def reverse_map_order_status(value)
53
+ ORDER_STATUS_MAP.invert[value] || value
54
+ end
39
55
  end
40
56
  end
41
57
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.26"
4
+ VERSION = "0.1.27"
5
5
  end
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.26
4
+ version: 0.1.27
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-18 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty