wolf_core 0.1.88 → 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: cbe3c863a91ae93dcd63e3fa7418782556064e696600aa48d5298dfc8a9b35ba
4
- data.tar.gz: 5d796c39dd28131902b4f4669648cae3d19e4c4dcff71beaaf48be741c19d89b
3
+ metadata.gz: 61e3c5707016f1b5f086aa24537b30983085f3ddda874cdeff5f5f4bd1822f33
4
+ data.tar.gz: 4c06d5966f9ea21f03150d1dd7f344ed5e5ef2664708e03c434bac01a52261dc
5
5
  SHA512:
6
- metadata.gz: a2f8391ca9983d676f29b329383f37aca723c934f230a1e6358727fc48e9bba72677b4cf4d015eec936a1b338952eccdbff6063e47a3fc4b0a43fc3c97059811
7
- data.tar.gz: 759966a7c6696865bcaf2d2dfb6fcfca683ec4503e1d12804e152a6e25419e68636982443342e3442f666b653e5103db4be699fafcb19291e6ad78122c41939d
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
@@ -0,0 +1,19 @@
1
+ module WolfCore
2
+ module Integrations
3
+ module ChangeDetection
4
+ def get_changed_custom_requirement_ids(payload)
5
+ changed_custom_requirement_ids = []
6
+ if payload['changes'].any?
7
+ changed_custom_values = payload.dig('changes', 'custom_values')
8
+ changed_custom_requirement_ids = if changed_custom_values.present?
9
+ changed_custom_values.map do |changed_custom_value|
10
+ changed_custom_value['custom_requirement_id'].to_s
11
+ end
12
+ else
13
+ [payload.dig('attributes', 'custom_requirement_id').to_s]
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.88"
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.88
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-18 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
@@ -93,6 +93,7 @@ files:
93
93
  - lib/wolf_core/application/barton/parsing.rb
94
94
  - lib/wolf_core/application/barton/routing.rb
95
95
  - lib/wolf_core/application/exception_operations.rb
96
+ - lib/wolf_core/application/integrations/change_detection.rb
96
97
  - lib/wolf_core/application/salesforce_oauth_service.rb
97
98
  - lib/wolf_core/application/service_exception.rb
98
99
  - lib/wolf_core/infrastructure/fkm_operations.rb