wolf_core 0.1.9 → 0.1.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c517a3ae1e9a7976aacd1c55c2b5a4afc63a2d6477e3a7981b95daf258ffa356
4
- data.tar.gz: c1864554bc9678a831dd7afd07034bcc3a8a4c35581cdb32796f7194f7ee1acd
3
+ metadata.gz: 1331aab64ba1c3b2b264faba8f1fc7f3d468ea08221b161069ef942727f40488
4
+ data.tar.gz: db6db3c47015f0e79aecc77429511020b0d2d0013cd58026530945da81f8b296
5
5
  SHA512:
6
- metadata.gz: d03d683ff36488bba061d8b1edfde209b6f2b856d863d01aa1b365cd24a404cb5eeebf162f03016c6319fd96780cc2fa6d1a3f6ee5f92ab389424a7a3f277b6b
7
- data.tar.gz: 1949e3b711310c8ad506af966f226532d12bd2d103bf79420c443e303847b8d9dc23ccf0afd829a91c2356a06855c73166f65fad80f692183e9e76d8282ebbc0
6
+ metadata.gz: 8492c140e1800af35f4bcd669a975748af01cd25d240ae2ad62673f1ca2701414c69ca0c2ac3c8b622795a9ecfabd46d3cbc11e684c552e30b8a0dee7f294ece
7
+ data.tar.gz: d4c0cbc2d3e7ec658d040192b67e786ae6d0a9ff67cc11362a71c274b399d0e3d6aaec4432df66ecbfe0c67138a4c6e60561035e680208f41cca7436ab3a938a
@@ -59,8 +59,8 @@ module WolfCore
59
59
  foreign_object = salesforce_http_get(
60
60
  query: { calltype: 'getRecord', RecordId: record_id }
61
61
  )
62
- # puts "foreign object is"
63
- # pp foreign_object
62
+ puts "foreign object is"
63
+ pp foreign_object
64
64
  foreign_object
65
65
  end
66
66
 
@@ -0,0 +1,24 @@
1
+ module WolfCore
2
+ module Barton
3
+ module Operations
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
@@ -12,8 +12,8 @@ module WolfCore
12
12
  response = http_get(
13
13
  url: "#{ENV['FKM_URL']}/Prod/lookup?tenant=#{tenant}&source=#{source}&source_id=#{source_id}"
14
14
  )
15
- # puts 'foreign keys response is'
16
- # pp response
15
+ puts 'foreign keys response is'
16
+ pp response
17
17
  validate_http_response(response: response, message: 'Error getting foreign keys')
18
18
  parse_http_response(response).body
19
19
  end
@@ -29,8 +29,8 @@ module WolfCore
29
29
  destination_id: destination_id
30
30
  }
31
31
  )
32
- # puts 'create foreign key response is'
33
- # pp response
32
+ puts 'create foreign key response is'
33
+ pp response
34
34
  validate_http_response(response: response, message: 'Error creating foreign key')
35
35
  parse_http_response(response).body
36
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.11"
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.9
4
+ version: 0.1.11
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 00:00:00.000000000 Z
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/operations.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