wolf_core 0.1.89 → 0.1.90

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: 690f4bc94dfdee6a9f42a74af9ed0432bd5e155f77d4b803c7b5c56f55c7e3a1
4
- data.tar.gz: b5199946dbc987fe9bceb6df744eba393fff351181ac076b539a3b5c57650945
3
+ metadata.gz: 61e3c5707016f1b5f086aa24537b30983085f3ddda874cdeff5f5f4bd1822f33
4
+ data.tar.gz: 4c06d5966f9ea21f03150d1dd7f344ed5e5ef2664708e03c434bac01a52261dc
5
5
  SHA512:
6
- metadata.gz: ab25e0389cae18a747e0146c46797d61ab2f2a73a7d770409dfcc42f4c08e1f3df5b58ff58d5ddf72dc007625c1a4e5d8d1cb41e9e7bca48a2a89e71fafb987e
7
- data.tar.gz: ab6b4a53790070d05181feab31489ba9571811ed7ec0a2db4ce3f1a975f1a53b347ed87f95ecf81e3d03f70747ae8821d0cb0bfa6ce46aa6638e2e5c237f6792
6
+ metadata.gz: 95919530e5744fdc57bb295bcb31446a9028e4597397100a9168c2078e72bdc198016f4ccf1cc6e9798e85b854470d85ae24c239976e2bc71d464fe9debb04c4
7
+ data.tar.gz: b4dbe236597e8f8ed35541b7176e1a94caf12cab76a30d3e3949ff6298c266fcbf9d8c272fb90af6db910fd3344d9077c2520d8d920800a9a5eb73e25dc2ff96
@@ -40,6 +40,59 @@ module WolfCore
40
40
  'Reject' => 'rejected',
41
41
  }
42
42
 
43
+ STATE_ABBREVIATIONS_MAP = {
44
+ "Alabama"=>"AL",
45
+ "Alaska"=>"AK",
46
+ "Arizona"=>"AZ",
47
+ "Arkansas"=>"AR",
48
+ "California"=>"CA",
49
+ "Colorado"=>"CO",
50
+ "Connecticut"=>"CT",
51
+ "Delaware"=>"DE",
52
+ "Florida"=>"FL",
53
+ "Georgia"=>"GA",
54
+ "Hawaii"=>"HI",
55
+ "Idaho"=>"ID",
56
+ "Illinois"=>"IL",
57
+ "Indiana"=>"IN",
58
+ "Iowa"=>"IA",
59
+ "Kansas"=>"KS",
60
+ "Kentucky"=>"KY",
61
+ "Louisiana"=>"LA",
62
+ "Maine"=>"ME",
63
+ "Maryland"=>"MD",
64
+ "Massachusetts"=>"MA",
65
+ "Michigan"=>"MI",
66
+ "Minnesota"=>"MN",
67
+ "Mississippi"=>"MS",
68
+ "Missouri"=>"MO",
69
+ "Montana"=>"MT",
70
+ "Nebraska"=>"NE",
71
+ "Nevada"=>"NV",
72
+ "New Hampshire"=>"NH",
73
+ "New Jersey"=>"NJ",
74
+ "New Mexico"=>"NM",
75
+ "New York"=>"NY",
76
+ "North Carolina"=>"NC",
77
+ "North Dakota"=>"ND",
78
+ "Ohio"=>"OH",
79
+ "Oklahoma"=>"OK",
80
+ "Oregon"=>"OR",
81
+ "Pennsylvania"=>"PA",
82
+ "Rhode Island"=>"RI",
83
+ "South Carolina"=>"SC",
84
+ "South Dakota"=>"SD",
85
+ "Tennessee"=>"TN",
86
+ "Texas"=>"TX",
87
+ "Utah"=>"UT",
88
+ "Vermont"=>"VT",
89
+ "Virginia"=>"VA",
90
+ "Washington"=>"WA",
91
+ "West Virginia"=>"WV",
92
+ "Wisconsin"=>"WI",
93
+ "Wyoming"=>"WY",
94
+ }
95
+
43
96
  def map_provider_type_to_pricing_id(provider_type)
44
97
  pricing_id = PROVIDER_TYPE_MAPPING[provider_type]
45
98
  pricing_id || provider_type
@@ -75,6 +128,14 @@ module WolfCore
75
128
  def revert_map_submittal_stage_to_order_application_status(value)
76
129
  SUBMITTAL_STAGE_MAP.invert[value] || value
77
130
  end
131
+
132
+ def map_state_to_abbreviation(value)
133
+ STATE_ABBREVIATIONS_MAP[value] || value
134
+ end
135
+
136
+ def revert_map_state_to_abbreviation(value)
137
+ STATE_ABBREVIATIONS_MAP.invert[value] || value
138
+ end
78
139
  end
79
140
  end
80
141
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.89"
4
+ VERSION = "0.1.90"
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.89
4
+ version: 0.1.90
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-09-19 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty