lockstep_sdk 2022.33.14.0 → 2022.35.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 158f24f63ab345bbe1d63c0f33494b605deb19cc1b1b697fea51b035451a43e8
|
4
|
+
data.tar.gz: 380f399812617bef853f621eddcf2662300bd09a289d3bce33979efcc9ebe86e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a021c80ca8c9d918b613ac077488548228a4595d2366abbefb290532d5872c243abf8487e12b7ac995ef0542396c2e30d781eea322e83ca6da23662094884b5
|
7
|
+
data.tar.gz: 38db337ad9ca648f87a219a5716915862c94afcc3706c2d33228fb3c917f8099395b48a45db0f8dd308d36e41ff5efd97454d746ff0343899ed371cceaa31dc4
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2022 Lockstep, Inc.
|
5
|
+
#
|
6
|
+
# For the full copyright and license information, please view the LICENSE
|
7
|
+
# file that was distributed with this source code.
|
8
|
+
#
|
9
|
+
# @author Lockstep Network <support@lockstep.io>
|
10
|
+
# @copyright 2021-2022 Lockstep, Inc.
|
11
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
|
+
#
|
13
|
+
|
14
|
+
|
15
|
+
require 'awrence'
|
16
|
+
|
17
|
+
class ProfilesClient
|
18
|
+
|
19
|
+
##
|
20
|
+
# Initialize the ProfilesClient class with an API client instance.
|
21
|
+
# @param connection [LockstepApi] The API client object for this connection
|
22
|
+
def initialize(connection)
|
23
|
+
@connection = connection
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
##
|
28
|
+
# Retrieves the Public Company Profile specified by the public url slug.
|
29
|
+
#
|
30
|
+
# A Public Company Profile makes available the following information: <list type="bullet"><item>Company Name</item><item>Company Logo Url</item><item>Description</item><item>Website</item></list>
|
31
|
+
#
|
32
|
+
# @param url_slug [string]
|
33
|
+
def retrieve_public_company_profile(url_slug:)
|
34
|
+
path = "/api/v1/Profiles/companies/#{urlSlug}"
|
35
|
+
@connection.request(:get, path, nil, nil)
|
36
|
+
end
|
37
|
+
|
38
|
+
##
|
39
|
+
# Queries Public Company Profiles <p> More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website. </p><p> A Public Company Profile makes available the following information:
|
40
|
+
#
|
41
|
+
# <list type="bullet"><item>`Company Name` </item><item>`Company Logo Url` </item><item>`Description` </item><item>`Website` </item></list></p>
|
42
|
+
#
|
43
|
+
# @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
|
44
|
+
# @param order [string] The sort order for the results, in the [Searchlight order syntax](https://github.com/tspence/csharp-searchlight).
|
45
|
+
# @param page_size [int32] The page size for results (default 200, maximum of 10,000)
|
46
|
+
# @param page_number [int32] The page number for results (default 0)
|
47
|
+
def query_public_company_profiles(filter:, order:, page_size:, page_number:)
|
48
|
+
path = "/api/v1/Profiles/companies/query"
|
49
|
+
params = {:filter => filter, :order => order, :pageSize => page_size, :pageNumber => page_number}
|
50
|
+
@connection.request(:get, path, nil, params)
|
51
|
+
end
|
52
|
+
end
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
10
|
# Manish Narayan B S <manish.n@lockstep.io>, Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
|
11
11
|
# @copyright 2021-2022 Lockstep, Inc.
|
12
|
-
# @version 2022.
|
12
|
+
# @version 2022.35.5
|
13
13
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
14
14
|
#
|
15
15
|
|
@@ -128,6 +128,10 @@ module lockstep_sdk
|
|
128
128
|
# @return [PaymentsClient] Client object for Payments endpoints
|
129
129
|
attr_accessor :payments
|
130
130
|
|
131
|
+
##
|
132
|
+
# @return [ProfilesClient] Client object for Profiles endpoints
|
133
|
+
attr_accessor :profiles
|
134
|
+
|
131
135
|
##
|
132
136
|
# @return [ProvisioningClient] Client object for Provisioning endpoints
|
133
137
|
attr_accessor :provisioning
|
@@ -166,7 +170,7 @@ module lockstep_sdk
|
|
166
170
|
#
|
167
171
|
# @param env [string] Either "sbx", "prd", or the URI of the server, ending in a slash (/)
|
168
172
|
def initialize(env)
|
169
|
-
@version = "2022.
|
173
|
+
@version = "2022.35.5.0"
|
170
174
|
@env = case env
|
171
175
|
when "sbx"
|
172
176
|
"https://api.sbx.lockstep.io/"
|
@@ -201,6 +205,7 @@ module lockstep_sdk
|
|
201
205
|
@notes = NotesClient.new(self)
|
202
206
|
@payment_applications = PaymentApplicationsClient.new(self)
|
203
207
|
@payments = PaymentsClient.new(self)
|
208
|
+
@profiles = ProfilesClient.new(self)
|
204
209
|
@provisioning = ProvisioningClient.new(self)
|
205
210
|
@reports = ReportsClient.new(self)
|
206
211
|
@status = StatusClient.new(self)
|
@@ -272,7 +277,7 @@ module lockstep_sdk
|
|
272
277
|
request["Accept"] = 'application/json'
|
273
278
|
request["Content-Type"] = 'application/*+json'
|
274
279
|
request["SdkType"] = 'Ruby'
|
275
|
-
request["SdkVersion"] = '2022.
|
280
|
+
request["SdkVersion"] = '2022.35.5.0'
|
276
281
|
request["MachineName"] = Socket.gethostname
|
277
282
|
request.body = body
|
278
283
|
|
@@ -65,6 +65,7 @@ module LockstepSdk
|
|
65
65
|
@website = params.dig(:website)
|
66
66
|
@app_enrollment_id = params.dig(:app_enrollment_id)
|
67
67
|
@email_address = params.dig(:email_address)
|
68
|
+
@public_url_slug = params.dig(:public_url_slug)
|
68
69
|
@notes = params.dig(:notes)
|
69
70
|
@attachments = params.dig(:attachments)
|
70
71
|
@contacts = params.dig(:contacts)
|
@@ -226,6 +227,10 @@ module LockstepSdk
|
|
226
227
|
# @return [Email] Company Email Address
|
227
228
|
attr_accessor :email_address
|
228
229
|
|
230
|
+
##
|
231
|
+
# @return [String] The public url slug for the Company.
|
232
|
+
attr_accessor :public_url_slug
|
233
|
+
|
229
234
|
##
|
230
235
|
# @return [NoteModel] A collection of notes linked to this record. To retrieve this collection, specify `Notes` in the `include` parameter when retrieving data. To create a note, use the [Create Note](https://developer.lockstep.io/reference/post_api-v1-notes) endpoint with the `TableKey` to `Company` and the `ObjectKey` set to the `CompanyId` for this record. For more information on extensibility, see [linking extensible metadata to objects](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
231
236
|
attr_accessor :notes
|
@@ -296,6 +301,7 @@ module LockstepSdk
|
|
296
301
|
'website' => @website,
|
297
302
|
'appEnrollmentId' => @app_enrollment_id,
|
298
303
|
'emailAddress' => @email_address,
|
304
|
+
'publicUrlSlug' => @public_url_slug,
|
299
305
|
'notes' => @notes,
|
300
306
|
'attachments' => @attachments,
|
301
307
|
'contacts' => @contacts,
|
@@ -0,0 +1,77 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2022 Lockstep, Inc.
|
5
|
+
#
|
6
|
+
# For the full copyright and license information, please view the LICENSE
|
7
|
+
# file that was distributed with this source code.
|
8
|
+
#
|
9
|
+
# @author Lockstep Network <support@lockstep.io>
|
10
|
+
# @copyright 2021-2022 Lockstep, Inc.
|
11
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
|
+
#
|
13
|
+
|
14
|
+
|
15
|
+
require 'json'
|
16
|
+
|
17
|
+
module LockstepSdk
|
18
|
+
|
19
|
+
##
|
20
|
+
# Contains Public Company Profile data.
|
21
|
+
class PublicCompanyProfileModel
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the PublicCompanyProfileModel using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@company_id = params.dig(:company_id)
|
27
|
+
@company_name = params.dig(:company_name)
|
28
|
+
@company_logo_url = params.dig(:company_logo_url)
|
29
|
+
@website = params.dig(:website)
|
30
|
+
@description = params.dig(:description)
|
31
|
+
@public_url_slug = params.dig(:public_url_slug)
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# @return [Uuid] The unique ID of the company associated with this profile.
|
36
|
+
attr_accessor :company_id
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [String] The short name of the company associated with this profile.
|
40
|
+
attr_accessor :company_name
|
41
|
+
|
42
|
+
##
|
43
|
+
# @return [String] The URL of this company's logo, if known.
|
44
|
+
attr_accessor :company_logo_url
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [String] Website URL for the company associated with this profile.
|
48
|
+
attr_accessor :website
|
49
|
+
|
50
|
+
##
|
51
|
+
# @return [String] Description of the company associated with this profile.
|
52
|
+
attr_accessor :description
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [String] The public url slug for this Public Company Profile.
|
56
|
+
attr_accessor :public_url_slug
|
57
|
+
|
58
|
+
##
|
59
|
+
# @return [object] This object as a JSON key-value structure
|
60
|
+
def as_json(options={})
|
61
|
+
{
|
62
|
+
'companyId' => @company_id,
|
63
|
+
'companyName' => @company_name,
|
64
|
+
'companyLogoUrl' => @company_logo_url,
|
65
|
+
'website' => @website,
|
66
|
+
'description' => @description,
|
67
|
+
'publicUrlSlug' => @public_url_slug,
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
##
|
72
|
+
# @return [String] This object converted to a JSON string
|
73
|
+
def to_json(*options)
|
74
|
+
"[#{as_json(*options).to_json(*options)}]"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/lib/lockstep_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2022.
|
4
|
+
version: 2022.35.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lockstep
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awrence
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/lockstep_sdk/clients/notes_client.rb
|
57
57
|
- lib/lockstep_sdk/clients/payment_applications_client.rb
|
58
58
|
- lib/lockstep_sdk/clients/payments_client.rb
|
59
|
+
- lib/lockstep_sdk/clients/profiles_client.rb
|
59
60
|
- lib/lockstep_sdk/clients/provisioning_client.rb
|
60
61
|
- lib/lockstep_sdk/clients/reports_client.rb
|
61
62
|
- lib/lockstep_sdk/clients/status_client.rb
|
@@ -149,6 +150,7 @@ files:
|
|
149
150
|
- lib/lockstep_sdk/models/provisioning_finalize_request_model.rb
|
150
151
|
- lib/lockstep_sdk/models/provisioning_model.rb
|
151
152
|
- lib/lockstep_sdk/models/provisioning_response_model.rb
|
153
|
+
- lib/lockstep_sdk/models/public_company_profile_model.rb
|
152
154
|
- lib/lockstep_sdk/models/risk_rate_model.rb
|
153
155
|
- lib/lockstep_sdk/models/state_model.rb
|
154
156
|
- lib/lockstep_sdk/models/status_model.rb
|