strongmind-platform-sdk 3.26.5 → 3.26.6

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: 981fc3aeb31c85b382bbc533ec08f2714cf3c9030debdab1b6ec4b4e04516141
4
- data.tar.gz: ea72d8ba79746035c04efd151dc0aeabacceec4dd9bb9f5cee39cd7811063896
3
+ metadata.gz: f48486c5b5425d16fcfdfa05e23f6ad72733f27bce78203e70784cc991043d07
4
+ data.tar.gz: 76cbe1c8e4e278c45b6464eea4a94f9b4a3446dacdd82988424cf77b6e08adf4
5
5
  SHA512:
6
- metadata.gz: c1e9642e308fb94841cab96eb1bb41b99f287cd387fcdab643f3345781f1483a4b9214a8e4e84cb1304ad10ea345f4762f82b712276c250d717807fbcd0fdce2
7
- data.tar.gz: fdb159ef55312ce4bd3302f6372f4cd41758a8ea7bb1bf6ff3393f85a25b659652844e5ee1857cae5d01e423948bdd9941813d3ab64d1d11ff774af525c2a004
6
+ metadata.gz: bbb8ec06e31a1b552824a5e036050d03e324d17e072f2749d268db985abce36d3f06c698e924c899906edeb3d2ec8afb7df85848ea15b855271bfb8ec069abbc
7
+ data.tar.gz: 3d610c4b5501e1b4f0d09af91debe314e2e9a9bf5353d3cabc32219f88a5cd9e216943bbaf96d61e435d75791e754a669ab066dc800dd8dec24030a286b2d613
@@ -31,6 +31,24 @@ module PlatformSdk
31
31
  put_payload("/api/TermsAndConditions/#{terms_and_conditions_id}/Accounts/#{account_id}", {})
32
32
  end
33
33
 
34
+ def password_status(account_id)
35
+ get_payload("/api/Accounts/#{account_id}/PasswordStatus")
36
+ end
37
+
38
+ def password_reset(account_id, return_url = nil, send_email: true, include_username: true)
39
+ query_params = {
40
+ sendEmail: send_email,
41
+ includeUsername: include_username
42
+ }
43
+ query_params[:returnUrl] = return_url if return_url
44
+
45
+ post_payload("/api/Accounts/#{account_id}/PasswordReset", {}, query_params)
46
+ end
47
+
48
+ def send_reminder_email(account_id)
49
+ post_payload('/api/Accounts/SendReminderEmail', JSON.dump(account_id))
50
+ end
51
+
34
52
  def get_payload(path)
35
53
  with_rescue do
36
54
  response = @conn.get(path)
@@ -38,9 +56,12 @@ module PlatformSdk
38
56
  end
39
57
  end
40
58
 
41
- def post_payload(path, body)
59
+ def post_payload(path, body, query_params = {})
42
60
  with_rescue do
43
- response = @conn.post(path, body)
61
+ response = @conn.post(path) do |req|
62
+ req.params = query_params unless query_params.empty?
63
+ req.body = body
64
+ end
44
65
  response.body
45
66
  end
46
67
  end
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 26
6
- PATCH = 5
6
+ PATCH = 6
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.5
4
+ version: 3.26.6
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-04-21 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday