strongmind-platform-sdk 3.26.8 → 3.26.9

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: 306f65cd609b20e89bae206aad8ef3ce71d62a074cf5a89c2c7372024e8b1029
4
- data.tar.gz: eaf8b537d146fb66daa777c830ad81af145bc2ddc01c0d4622ddd5dcf2e0b295
3
+ metadata.gz: 6eda5712735defbfe2be9106cb54045862303db53f26c0372a4b9fbd661617d8
4
+ data.tar.gz: ade026965cf2941f11d113b1528b65b99ed6e41e473089b927c94c1e9c6c9c91
5
5
  SHA512:
6
- metadata.gz: d7d04c865f4d562f2214efa52a0e06e4ca6aeaab863b0cb4b6b096d5f6ba13e037741663aaf4b21c9a487ad3dd4f60fb804daa05d1d3a6dd42104ee3df34b2ba
7
- data.tar.gz: 50dcfbf5ff1752a3186e90153468710a730f750b57ec9cd6567fba77d76cda9474fb77053fe700408e6c7a92d25c01b280f22a9f0c2f2eef328ab02154e524bc
6
+ metadata.gz: cf24d50ece3268b3adcf203ae77ec53c47517b2f33ca0e727932116aff40d586ad1f57140b526b2f46147f1bffc6b75c8a7590c40ac754a3492a1d33003167a5
7
+ data.tar.gz: 8f6ba3baa1401cee21086b76a64ec19e21c668276622d2a469adf8de86a3abae662ee3d0e17477d35f243b30e19fce7f57c7e4674cb20498acbbd7315e290ad9
@@ -53,6 +53,10 @@ module PlatformSdk
53
53
  get_payload("/api/Accounts/?username=#{username}")
54
54
  end
55
55
 
56
+ def update_profile(account_id, profile_params)
57
+ patch_payload("/api/accounts/#{account_id}/profile", profile_params)
58
+ end
59
+
56
60
  def get_payload(path)
57
61
  with_rescue do
58
62
  response = @conn.get(path)
@@ -77,6 +81,13 @@ module PlatformSdk
77
81
  end
78
82
  end
79
83
 
84
+ def patch_payload(path, body)
85
+ with_rescue do
86
+ response = @conn.patch(path, body)
87
+ response.body
88
+ end
89
+ end
90
+
80
91
  def deactivate_account(account_id)
81
92
  with_rescue do
82
93
  response = @conn.patch("/api/Accounts/#{account_id}", { isActive: false })
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 26
6
- PATCH = 8
6
+ PATCH = 9
7
7
 
8
8
  VERSION = "#{PlatformSdk::MAJOR}.#{PlatformSdk::MINOR}.#{PlatformSdk::PATCH}"
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-platform-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.26.8
4
+ version: 3.26.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-29 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday