lockstep_rails 0.3.78 → 0.3.80

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14486c21419a49912f1077b56941908125a5d7fee51a32c696eb6050c2247ffe
4
- data.tar.gz: d93da0bc1de0bff829a1e61e7d71c2120295754139c90c7a650b3bda6a3272ec
3
+ metadata.gz: c740a1a110fddf1f482502e7c081d422c3991234df99037799ac2912428de815
4
+ data.tar.gz: dbba28340fff480f5a8a518cf377021121f755a1956c3fa8ba66bbdea4ae2866
5
5
  SHA512:
6
- metadata.gz: 18e7493b2530aba59359f35577bc21a3c5bedd52b1be87d50fc1b99457dacc2b35a8acfd430a5ede4e9a1d67f36f6569425cf90d2c9a78d0d159a678e1ac178d
7
- data.tar.gz: 22e7181e9f1477676c7e6eae5cc8b1152cd4dd0f2cf9ea7a4769a161b5774ee31c671e88ea4179095c93dd509452d06b3a9bbd5c2d2341b66fcfff1af243d5af
6
+ metadata.gz: 164f1f2f60bb0461b483d810eaaf955a22373c8217ed7fb59e62cf35620a56f2735cc3800d6c88aac651cf53ec4c0323ea2b8733a27f8c5fcdf0970841d9c77c
7
+ data.tar.gz: 5444e3005e27b38fa29a1e445b813df473b875e57ef0a649108dc2ff3bb57f5d7af8c3591331e347c423f556aa4a4f2a95dac1c1744b9d14bbf949fa94b8f295
data/README.md CHANGED
@@ -78,6 +78,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
78
78
  - Lockstep::ReportRiskRate
79
79
  - Lockstep::ServiceFabricPayment
80
80
  - Lockstep::Status
81
+ - Lockstep::SyncRequest
81
82
  - Lockstep::Transaction
82
83
  - Lockstep::TranscriptionValidationRequest
83
84
  - Lockstep::User
@@ -37,6 +37,20 @@ module Lockstep
37
37
  RequestStore.store[:internal_service_key]
38
38
  end
39
39
 
40
+ def self.set_x_group_key(x_group_key)
41
+ RequestStore.store[:lockstep_x_group_key] = x_group_key
42
+ true
43
+ end
44
+
45
+ def self.x_group_key
46
+ RequestStore.store[:lockstep_x_group_key]
47
+ end
48
+
49
+ def self.set_m2m_token(token)
50
+ # this method can be ommitted and we can use directly `set_bearer_token`
51
+ set_bearer_token(token)
52
+ end
53
+
40
54
  ##
41
55
  # Construct a new Lockstep API client targeting the specified server.
42
56
  #
@@ -81,6 +95,10 @@ module Lockstep
81
95
  self.class.api_key
82
96
  end
83
97
 
98
+ def x_group_key
99
+ self.class.x_group_key
100
+ end
101
+
84
102
  ##
85
103
  # Configure this API to use an application name
86
104
  #
@@ -139,6 +157,10 @@ module Lockstep
139
157
  request["Authorization"] = 'Bearer ' + bearer_token
140
158
  end
141
159
 
160
+ if x_group_key != nil
161
+ request["X-Group-Key"] = x_group_key
162
+ end
163
+
142
164
  # Send the request
143
165
  http.request(request)
144
166
  end
@@ -0,0 +1,6 @@
1
+ class Lockstep::SyncRequest < Lockstep::ApiRecord
2
+ self.model_name_uri = 'v1/Sync'
3
+ self.id_ref = 'sync_request_id'
4
+
5
+ load_schema(Schema::SyncRequest)
6
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LockstepRails
4
- VERSION = '0.3.78'
4
+ VERSION = '0.3.80'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.78
4
+ version: 0.3.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-27 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -78,6 +78,7 @@ files:
78
78
  - app/models/lockstep/report_risk_rate.rb
79
79
  - app/models/lockstep/service_fabric_payment.rb
80
80
  - app/models/lockstep/status.rb
81
+ - app/models/lockstep/sync_request.rb
81
82
  - app/models/lockstep/transaction.rb
82
83
  - app/models/lockstep/transcription_validation_request.rb
83
84
  - app/models/lockstep/user.rb