lockstep_sdk 2023.5.21.0 → 2023.7.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lockstep_sdk/clients/profiles_accounting_contacts_client.rb +2 -16
- data/lib/lockstep_sdk/clients/sync_client.rb +5 -2
- data/lib/lockstep_sdk/lockstep_api.rb +3 -3
- data/lib/lockstep_sdk/models/batch_sync_model.rb +12 -0
- data/lib/lockstep_sdk/models/company_model.rb +12 -0
- data/lib/lockstep_sdk/models/payment_model.rb +6 -0
- data/lib/lockstep_sdk/models/sync_request_model.rb +2 -2
- data/lib/lockstep_sdk/models/transaction_model_transaction_summary_total_model_summary_fetch_result.rb +6 -6
- data/lib/lockstep_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: e3c12325f8f3062e6b2f3d0e35abb0bd5c944f21e5fb0f2d98f23d2e65622952
|
4
|
+
data.tar.gz: a7aa6c606e4ffeabf18003028860d241ad8a519ce2bfa46bfa5657683e7b28bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef25212f3308858fa81871ec3a82c404c809dc353890420fcdb6fcbe6f57867aa3f14cf5d6caa09b4cacf451cc9b072ea4ff82e1e989a729bd85f9774ce9cd0
|
7
|
+
data.tar.gz: 0b05410aac2c8246eafee1fa7fff4dee557267bdfd2ac8c432ad3621c134aae4d552d119d5b882102e8387cb8fb9d2889e15b101cbd47282b9dca14c25ef7ab5
|
@@ -57,20 +57,6 @@ class ProfilesAccountingContactsClient
|
|
57
57
|
@connection.request(:post, path, body, nil)
|
58
58
|
end
|
59
59
|
|
60
|
-
##
|
61
|
-
# Updates an accounting profile contact that matches the specified id with the requested information.
|
62
|
-
#
|
63
|
-
# The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. If you do not provide the name of a field, that field will remain unchanged. This allows you to ensure that you are only updating the specific fields desired.
|
64
|
-
#
|
65
|
-
# An Accounting Profile Contact has a link to a Contact that is associated with your company's Accounting Profile. A profile has one primary contact and any number of secondary contacts.
|
66
|
-
#
|
67
|
-
# @param id [uuid] The unique Lockstep Platform ID number of the Accounting Profile Contact to update
|
68
|
-
# @param contact_id [uuid] The ID of the contact to link to this Accounting Profile Contact
|
69
|
-
def update_accounting_profile_contact(id:, contact_id:)
|
70
|
-
path = "/api/v1/profiles/accounting/contacts/#{id}/#{contactId}"
|
71
|
-
@connection.request(:patch, path, nil, nil)
|
72
|
-
end
|
73
|
-
|
74
60
|
##
|
75
61
|
# Queries Accounting Profile Contacts for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
|
76
62
|
#
|
@@ -110,11 +96,11 @@ class ProfilesAccountingContactsClient
|
|
110
96
|
end
|
111
97
|
|
112
98
|
##
|
113
|
-
#
|
99
|
+
# Reverses the isPrimary fields on the primary and secondary contact to reflect a swap and returns the new primary accounting profile contact model.
|
114
100
|
#
|
115
101
|
# An Accounting Profile Contact has a link to a Contact that is associated with your company's Accounting Profile. A profile has one primary contact and any number of secondary contacts.
|
116
102
|
#
|
117
|
-
# @param id [uuid] The unique Lockstep Platform ID number of the Accounting Profile Contact to
|
103
|
+
# @param id [uuid] The unique Lockstep Platform ID number of the Accounting Profile Contact to set as primary
|
118
104
|
def set_secondary_contact_as_primary(id:)
|
119
105
|
path = "/api/v1/profiles/accounting/contacts/#{id}/primary"
|
120
106
|
@connection.request(:patch, path, nil, nil)
|
@@ -53,10 +53,13 @@ class SyncClient
|
|
53
53
|
#
|
54
54
|
# A Sync task represents an action performed by an Application for a particular account. An Application can provide many different tasks as part of their capabilities. Sync tasks are executed in the background and will continue running after they are created. Use one of the creation APIs to request execution of a task. To check on the progress of the task, call GetSync or QuerySync.
|
55
55
|
#
|
56
|
+
# @param app_enrollment_id [uuid] The optional existing app enrollment to associate with the data in the zip file.
|
57
|
+
# @param is_full_sync [boolean] True if this is a full sync, false if this is a partial sync. Defaults to false.
|
56
58
|
# @param filename [File] The full path of a file to upload to the API
|
57
|
-
def upload_sync_file(filename:)
|
59
|
+
def upload_sync_file(app_enrollment_id:, is_full_sync:, filename:)
|
58
60
|
path = "/api/v1/Sync/zip"
|
59
|
-
|
61
|
+
params = {:appEnrollmentId => app_enrollment_id, :isFullSync => is_full_sync}
|
62
|
+
@connection.request(:post, path, nil, params)
|
60
63
|
end
|
61
64
|
|
62
65
|
##
|
@@ -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-2023 Lockstep, Inc.
|
12
|
-
# @version 2023.
|
12
|
+
# @version 2023.7.7
|
13
13
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
14
14
|
#
|
15
15
|
|
@@ -198,7 +198,7 @@ module lockstep_sdk
|
|
198
198
|
#
|
199
199
|
# @param env [string] Either "sbx", "prd", or the URI of the server, ending in a slash (/)
|
200
200
|
def initialize(env)
|
201
|
-
@version = "2023.
|
201
|
+
@version = "2023.7.7.0"
|
202
202
|
@env = case env
|
203
203
|
when "sbx"
|
204
204
|
"https://api.sbx.lockstep.io/"
|
@@ -312,7 +312,7 @@ module lockstep_sdk
|
|
312
312
|
request["Accept"] = 'application/json'
|
313
313
|
request["Content-Type"] = 'application/*+json'
|
314
314
|
request["SdkType"] = 'Ruby'
|
315
|
-
request["SdkVersion"] = '2023.
|
315
|
+
request["SdkVersion"] = '2023.7.7.0'
|
316
316
|
request["MachineName"] = Socket.gethostname
|
317
317
|
request.body = body
|
318
318
|
|
@@ -31,6 +31,8 @@ module LockstepSdk
|
|
31
31
|
##
|
32
32
|
# Initialize the BatchSyncModel using the provided prototype
|
33
33
|
def initialize(params = {})
|
34
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
35
|
+
@is_full_sync = params.dig(:is_full_sync)
|
34
36
|
@companies = params.dig(:companies)
|
35
37
|
@contacts = params.dig(:contacts)
|
36
38
|
@credit_memo_applications = params.dig(:credit_memo_applications)
|
@@ -45,6 +47,14 @@ module LockstepSdk
|
|
45
47
|
@base_currencies = params.dig(:base_currencies)
|
46
48
|
end
|
47
49
|
|
50
|
+
##
|
51
|
+
# @return [Uuid] The optional existing app enrollment to associate with the data in this batch.
|
52
|
+
attr_accessor :app_enrollment_id
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [Boolean] True if this is a full sync, false if this is a partial sync. Defaults to false.
|
56
|
+
attr_accessor :is_full_sync
|
57
|
+
|
48
58
|
##
|
49
59
|
# @return [CompanySyncModel] A list of Company records to merge with your Lockstep Platform data
|
50
60
|
attr_accessor :companies
|
@@ -97,6 +107,8 @@ module LockstepSdk
|
|
97
107
|
# @return [object] This object as a JSON key-value structure
|
98
108
|
def as_json(options={})
|
99
109
|
{
|
110
|
+
'appEnrollmentId' => @app_enrollment_id,
|
111
|
+
'isFullSync' => @is_full_sync,
|
100
112
|
'companies' => @companies,
|
101
113
|
'contacts' => @contacts,
|
102
114
|
'creditMemoApplications' => @credit_memo_applications,
|
@@ -71,6 +71,8 @@ module LockstepSdk
|
|
71
71
|
@is_verified = params.dig(:is_verified)
|
72
72
|
@last_verified_date = params.dig(:last_verified_date)
|
73
73
|
@view_box_settings = params.dig(:view_box_settings)
|
74
|
+
@service_fabric_org_id = params.dig(:service_fabric_org_id)
|
75
|
+
@service_fabric_company_id = params.dig(:service_fabric_company_id)
|
74
76
|
@notes = params.dig(:notes)
|
75
77
|
@attachments = params.dig(:attachments)
|
76
78
|
@contacts = params.dig(:contacts)
|
@@ -256,6 +258,14 @@ module LockstepSdk
|
|
256
258
|
# @return [ViewBoxSettingsModel] View box settings for the company logo.
|
257
259
|
attr_accessor :view_box_settings
|
258
260
|
|
261
|
+
##
|
262
|
+
# @return [Uuid] The unique ID of the Service Fabric organisation to which this record belongs.
|
263
|
+
attr_accessor :service_fabric_org_id
|
264
|
+
|
265
|
+
##
|
266
|
+
# @return [Uuid] The unique ID of this record within Service Fabric.
|
267
|
+
attr_accessor :service_fabric_company_id
|
268
|
+
|
259
269
|
##
|
260
270
|
# @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).
|
261
271
|
attr_accessor :notes
|
@@ -332,6 +342,8 @@ module LockstepSdk
|
|
332
342
|
'isVerified' => @is_verified,
|
333
343
|
'lastVerifiedDate' => @last_verified_date,
|
334
344
|
'viewBoxSettings' => @view_box_settings,
|
345
|
+
'serviceFabricOrgId' => @service_fabric_org_id,
|
346
|
+
'serviceFabricCompanyId' => @service_fabric_company_id,
|
335
347
|
'notes' => @notes,
|
336
348
|
'attachments' => @attachments,
|
337
349
|
'contacts' => @contacts,
|
@@ -53,6 +53,7 @@ module LockstepSdk
|
|
53
53
|
@currency_rate = params.dig(:currency_rate)
|
54
54
|
@base_currency_payment_amount = params.dig(:base_currency_payment_amount)
|
55
55
|
@base_currency_unapplied_amount = params.dig(:base_currency_unapplied_amount)
|
56
|
+
@service_fabric_status = params.dig(:service_fabric_status)
|
56
57
|
@applications = params.dig(:applications)
|
57
58
|
@notes = params.dig(:notes)
|
58
59
|
@attachments = params.dig(:attachments)
|
@@ -156,6 +157,10 @@ module LockstepSdk
|
|
156
157
|
# @return [Double] Unapplied balance of this payment in the group's base currency. If this amount is nonzero, the field `IsOpen` will be true.
|
157
158
|
attr_accessor :base_currency_unapplied_amount
|
158
159
|
|
160
|
+
##
|
161
|
+
# @return [String] The status of this payment within Service Fabric. "UNAUTHORISED" "PENDING" "PAID" "PAID_OFFLINE" "FAILED" "CANCELLED" "REJECTED" "REFUNDED" "PARTIALLY" "PARTIALLY_REFUNDED"
|
162
|
+
attr_accessor :service_fabric_status
|
163
|
+
|
159
164
|
##
|
160
165
|
# @return [PaymentAppliedModel] All applications this payment is associated with. To retrieve this collection, specify `Applications` in the "Include" parameter for your query.
|
161
166
|
attr_accessor :applications
|
@@ -204,6 +209,7 @@ module LockstepSdk
|
|
204
209
|
'currencyRate' => @currency_rate,
|
205
210
|
'baseCurrencyPaymentAmount' => @base_currency_payment_amount,
|
206
211
|
'baseCurrencyUnappliedAmount' => @base_currency_unapplied_amount,
|
212
|
+
'serviceFabricStatus' => @service_fabric_status,
|
207
213
|
'applications' => @applications,
|
208
214
|
'notes' => @notes,
|
209
215
|
'attachments' => @attachments,
|
@@ -62,7 +62,7 @@ module LockstepSdk
|
|
62
62
|
attr_accessor :operation_type_name
|
63
63
|
|
64
64
|
##
|
65
|
-
# @return [
|
65
|
+
# @return [SyncOperationType] Possible operation types for a SyncRequest
|
66
66
|
attr_accessor :operation_type
|
67
67
|
|
68
68
|
##
|
@@ -74,7 +74,7 @@ module LockstepSdk
|
|
74
74
|
attr_accessor :failure_count
|
75
75
|
|
76
76
|
##
|
77
|
-
# @return [
|
77
|
+
# @return [Boolean] A boolean indicating whether a sync from an ERP system should process all the data from the ERP as opposed to just the delta of changes since the previous sync run
|
78
78
|
attr_accessor :run_full_sync
|
79
79
|
|
80
80
|
##
|
@@ -21,18 +21,14 @@ module LockstepSdk
|
|
21
21
|
##
|
22
22
|
# Initialize the TransactionModelTransactionSummaryTotalModelSummaryFetchResult using the provided prototype
|
23
23
|
def initialize(params = {})
|
24
|
-
@records = params.dig(:records)
|
25
24
|
@total_count = params.dig(:total_count)
|
26
25
|
@page_size = params.dig(:page_size)
|
27
26
|
@page_number = params.dig(:page_number)
|
27
|
+
@records = params.dig(:records)
|
28
28
|
@summary = params.dig(:summary)
|
29
29
|
@aging_summary = params.dig(:aging_summary)
|
30
30
|
end
|
31
31
|
|
32
|
-
##
|
33
|
-
# @return [TransactionModel]
|
34
|
-
attr_accessor :records
|
35
|
-
|
36
32
|
##
|
37
33
|
# @return [Int32]
|
38
34
|
attr_accessor :total_count
|
@@ -45,6 +41,10 @@ module LockstepSdk
|
|
45
41
|
# @return [Int32]
|
46
42
|
attr_accessor :page_number
|
47
43
|
|
44
|
+
##
|
45
|
+
# @return [TransactionModel]
|
46
|
+
attr_accessor :records
|
47
|
+
|
48
48
|
##
|
49
49
|
# @return [TransactionSummaryTotalModel] Represents transaction summary information based on the query request within the group account.
|
50
50
|
attr_accessor :summary
|
@@ -57,10 +57,10 @@ module LockstepSdk
|
|
57
57
|
# @return [object] This object as a JSON key-value structure
|
58
58
|
def as_json(options={})
|
59
59
|
{
|
60
|
-
'records' => @records,
|
61
60
|
'totalCount' => @total_count,
|
62
61
|
'pageSize' => @page_size,
|
63
62
|
'pageNumber' => @page_number,
|
63
|
+
'records' => @records,
|
64
64
|
'summary' => @summary,
|
65
65
|
'agingSummary' => @aging_summary,
|
66
66
|
}
|
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: 2023.
|
4
|
+
version: 2023.7.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lockstep
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awrence
|