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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e87b6ac67659e67c301f8d0213c3c3db8266a806281a6dfe8cce35d694279b8
4
- data.tar.gz: f8e3b33d2edb94d32132dbb57dae3e7400ed9d9cab3f9f8b9cd94de837d29239
3
+ metadata.gz: 981fc3aeb31c85b382bbc533ec08f2714cf3c9030debdab1b6ec4b4e04516141
4
+ data.tar.gz: ea72d8ba79746035c04efd151dc0aeabacceec4dd9bb9f5cee39cd7811063896
5
5
  SHA512:
6
- metadata.gz: fef1903f5596d85508a9be1ce1fd46a1bda8a1770d564f960271e1f4541adcb45e1d28ffbf25c8c91ff6ed3e14d7f547c195dd1808bb3dede21ec076276e848b
7
- data.tar.gz: f086a619c94446c3bc58832b4d2cbfb95c594682aadffde02cece4a41edb06b53f976a88cff53f57604d4084a76818567a20fe835721a22c2956d3302dd967c1
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
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 26
6
- PATCH = 4
6
+ PATCH = 5
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.4
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-15 00:00:00.000000000 Z
11
+ date: 2025-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday