strongmind-platform-sdk 3.26.4 → 3.26.5
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 +4 -4
- data/lib/platform_sdk/identity/clients.rb +22 -0
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981fc3aeb31c85b382bbc533ec08f2714cf3c9030debdab1b6ec4b4e04516141
|
4
|
+
data.tar.gz: ea72d8ba79746035c04efd151dc0aeabacceec4dd9bb9f5cee39cd7811063896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1e9642e308fb94841cab96eb1bb41b99f287cd387fcdab643f3345781f1483a4b9214a8e4e84cb1304ad10ea345f4762f82b712276c250d717807fbcd0fdce2
|
7
|
+
data.tar.gz: fdb159ef55312ce4bd3302f6372f4cd41758a8ea7bb1bf6ff3393f85a25b659652844e5ee1857cae5d01e423948bdd9941813d3ab64d1d11ff774af525c2a004
|
@@ -23,12 +23,34 @@ module PlatformSdk
|
|
23
23
|
post_payload('/api/accounts/WithProfile', user_params)
|
24
24
|
end
|
25
25
|
|
26
|
+
def terms_and_conditions
|
27
|
+
get_payload('/api/TermsAndConditions')
|
28
|
+
end
|
29
|
+
|
30
|
+
def accept_terms_and_conditions(terms_and_conditions_id, account_id)
|
31
|
+
put_payload("/api/TermsAndConditions/#{terms_and_conditions_id}/Accounts/#{account_id}", {})
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_payload(path)
|
35
|
+
with_rescue do
|
36
|
+
response = @conn.get(path)
|
37
|
+
response.body
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
26
41
|
def post_payload(path, body)
|
27
42
|
with_rescue do
|
28
43
|
response = @conn.post(path, body)
|
29
44
|
response.body
|
30
45
|
end
|
31
46
|
end
|
47
|
+
|
48
|
+
def put_payload(path, body)
|
49
|
+
with_rescue do
|
50
|
+
response = @conn.put(path, body)
|
51
|
+
response.body
|
52
|
+
end
|
53
|
+
end
|
32
54
|
end
|
33
55
|
|
34
56
|
# Client for getting auth tokens from identity server
|
data/lib/platform_sdk/version.rb
CHANGED
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.
|
4
|
+
version: 3.26.5
|
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-
|
11
|
+
date: 2025-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|