wolf_core 1.0.13 → 1.0.14

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: 723efe91409c3f400d4c4cadcd6396f00c91e1754cb99e290774c20d07840bf5
4
- data.tar.gz: e318dd0a2bb09af4b030f0232680b4d6e4e9ab90b933abffefd14c9358bed794
3
+ metadata.gz: 5c689d50339a0343b7e7572afe9f489fc115523e338ec91db56f3d5eed1c7512
4
+ data.tar.gz: c3de85d5ace87482ea82a179cc4287007a34fffe62cb781c954064dd84c12b73
5
5
  SHA512:
6
- metadata.gz: b41bfe240fb131bc9582a3ccdeb01a433c6a6d492efdcca340cf80960fec06812f9103537472d3c94841cadc0c584e13bb1fc7fa745c83854bb3a43203cf6464
7
- data.tar.gz: 62dc949377d0cb40769720aa56f553ce3a9fe63d2ddc03fda496d4fe346cb06430c3347ecd862d9c30756fe8dc675b03e95b0d003845c69bc760216a3ff7b624
6
+ metadata.gz: f1c6b2e7507ce531caf86d59317d0b6894a51258c25db429467c7d2cf412a5965c1b908eda0c6ef55a82465c10dd08e7766bd4deaa829cc1e794a0af920c3e4e
7
+ data.tar.gz: 49aa889c7d8c6a5bb8b0c4b34f4b27de48d2cccc5b5617f63baccfe74a696a3cbbbfe5fbb23049046ceed951a099ba3a6eb7c582d052453ef9a721557901d54b
@@ -6,7 +6,7 @@ module WolfCore
6
6
  def fetch_client!(wolf_token:, client_id:, tenant:, wolf_platform_url:, error_message:)
7
7
  response = safe_http_get(
8
8
  headers: { "Authorization" => "Bearer #{wolf_token}" },
9
- url: "#{wolf_platform_url}/api/v2/clients/#{client_id}",
9
+ url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
10
10
  query: { tenant: tenant },
11
11
  error_message: error_message
12
12
  )
@@ -17,7 +17,7 @@ module WolfCore
17
17
  def fetch_client(wolf_token:, client_id:, tenant:, wolf_platform_url:)
18
18
  response = parsed_http_get(
19
19
  headers: { "Authorization" => "Bearer #{wolf_token}" },
20
- url: "#{wolf_platform_url}/api/v2/clients/#{client_id}",
20
+ url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
21
21
  query: { tenant: tenant }
22
22
  )
23
23
  response_body = response.body
@@ -30,7 +30,7 @@ module WolfCore
30
30
  safe_http_post(
31
31
  headers: { "Authorization" => "Bearer #{wolf_token}" },
32
32
  query: { tenant: tenant },
33
- url: "#{wolf_platform_url}/api/v2/clients",
33
+ url: "#{wolf_platform_url}/api/v2/companies",
34
34
  body: client,
35
35
  error_message: error_message
36
36
  )
@@ -40,7 +40,7 @@ module WolfCore
40
40
  parsed_http_post(
41
41
  headers: { "Authorization" => "Bearer #{wolf_token}" },
42
42
  query: { tenant: tenant },
43
- url: "#{wolf_platform_url}/api/v2/clients",
43
+ url: "#{wolf_platform_url}/api/v2/companies",
44
44
  body: client
45
45
  )
46
46
  end
@@ -49,7 +49,7 @@ module WolfCore
49
49
  safe_http_put(
50
50
  headers: { "Authorization" => "Bearer #{wolf_token}" },
51
51
  query: { tenant: tenant },
52
- url: "#{wolf_platform_url}/api/v2/clients/#{client_id}",
52
+ url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
53
53
  body: client,
54
54
  error_message: error_message
55
55
  )
@@ -59,7 +59,7 @@ module WolfCore
59
59
  parsed_http_put(
60
60
  headers: { "Authorization" => "Bearer #{wolf_token}" },
61
61
  query: { tenant: tenant },
62
- url: "#{wolf_platform_url}/api/v2/clients/#{client_id}",
62
+ url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
63
63
  body: client
64
64
  )
65
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo