lockstep_sdk 2022.6.49.0 → 2022.9.6.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 +4 -4
- data/lib/lockstep_sdk/clients/api_keys_client.rb +17 -5
- data/lib/lockstep_sdk/clients/applications_client.rb +9 -3
- data/lib/lockstep_sdk/clients/companies_client.rb +22 -6
- data/lib/lockstep_sdk/clients/contacts_client.rb +9 -3
- data/lib/lockstep_sdk/clients/credit_memo_applied_client.rb +6 -2
- data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +17 -5
- data/lib/lockstep_sdk/clients/custom_field_values_client.rb +17 -5
- data/lib/lockstep_sdk/clients/definitions_client.rb +9 -3
- data/lib/lockstep_sdk/clients/financial_account_balance_history_client.rb +92 -0
- data/lib/lockstep_sdk/clients/financial_account_client.rb +79 -0
- data/lib/lockstep_sdk/clients/financial_year_settings_client.rb +92 -0
- data/lib/lockstep_sdk/clients/invoices_client.rb +6 -2
- data/lib/lockstep_sdk/clients/notes_client.rb +9 -3
- data/lib/lockstep_sdk/clients/payment_applications_client.rb +6 -2
- data/lib/lockstep_sdk/clients/provisioning_client.rb +3 -0
- data/lib/lockstep_sdk/clients/webhooks_client.rb +14 -0
- data/lib/lockstep_sdk/lockstep_api.rb +18 -3
- data/lib/lockstep_sdk/models/activity_model.rb +5 -5
- data/lib/lockstep_sdk/models/activity_xref_model.rb +2 -0
- data/lib/lockstep_sdk/models/app_enrollment_model.rb +2 -2
- data/lib/lockstep_sdk/models/application_model.rb +4 -4
- data/lib/lockstep_sdk/models/attachment_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_model.rb +5 -5
- data/lib/lockstep_sdk/models/company_sync_model.rb +6 -6
- data/lib/lockstep_sdk/models/contact_model.rb +6 -6
- data/lib/lockstep_sdk/models/contact_sync_model.rb +3 -3
- data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +5 -5
- data/lib/lockstep_sdk/models/custom_field_definition_model.rb +1 -1
- data/lib/lockstep_sdk/models/custom_field_sync_model.rb +6 -0
- data/lib/lockstep_sdk/models/custom_field_value_model.rb +7 -1
- data/lib/lockstep_sdk/models/email_model.rb +5 -5
- data/lib/lockstep_sdk/models/financial_account_balance_history_model.rb +127 -0
- data/lib/lockstep_sdk/models/financial_account_model.rb +139 -0
- data/lib/lockstep_sdk/models/financial_year_setting_model.rb +111 -0
- data/lib/lockstep_sdk/models/invoice_address_model.rb +6 -0
- data/lib/lockstep_sdk/models/invoice_history_model.rb +6 -0
- data/lib/lockstep_sdk/models/invoice_line_model.rb +3 -3
- data/lib/lockstep_sdk/models/invoice_model.rb +9 -9
- data/lib/lockstep_sdk/models/invoice_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/note_model.rb +1 -1
- data/lib/lockstep_sdk/models/payment_applied_model.rb +1 -1
- data/lib/lockstep_sdk/models/payment_model.rb +5 -5
- data/lib/lockstep_sdk/models/sync_request_model.rb +1 -1
- data/lib/lockstep_sdk/models/user_account_model.rb +3 -3
- data/lib/lockstep_sdk/models/webhook_history_table_storage_model.rb +103 -0
- data/lib/lockstep_sdk/models/webhook_model.rb +6 -0
- data/lib/lockstep_sdk/version.rb +1 -1
- metadata +9 -2
@@ -60,7 +60,7 @@ module LockstepSdk
|
|
60
60
|
attr_accessor :process_result_message
|
61
61
|
|
62
62
|
##
|
63
|
-
# @return [Uuid]
|
63
|
+
# @return [Uuid] The AppEnrollmentId of the AppEnrollment object that executed this sync request
|
64
64
|
attr_accessor :app_enrollment_id
|
65
65
|
|
66
66
|
##
|
@@ -176,15 +176,15 @@ module LockstepSdk
|
|
176
176
|
attr_accessor :default_currency_code
|
177
177
|
|
178
178
|
##
|
179
|
-
# @return [NoteModel]
|
179
|
+
# @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 `UserAccount` and the `ObjectKey` set to the `UserId` 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).
|
180
180
|
attr_accessor :notes
|
181
181
|
|
182
182
|
##
|
183
|
-
# @return [AttachmentModel]
|
183
|
+
# @return [AttachmentModel] A collection of attachments linked to this record. To retrieve this collection, specify `Attachments` in the `include` parameter when retrieving data. To create an attachment, use the [Upload Attachment](https://developer.lockstep.io/reference/post_api-v1-attachments) endpoint with the `TableKey` to `UserAccount` and the `ObjectKey` set to the `UserId` 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).
|
184
184
|
attr_accessor :attachments
|
185
185
|
|
186
186
|
##
|
187
|
-
# @return [CustomFieldValueModel]
|
187
|
+
# @return [CustomFieldValueModel] A collection of custom fields linked to this record. To retrieve this collection, specify `CustomFieldValues` in the `include` parameter when retrieving data. To create a custom field, use the [Create Custom Field](https://developer.lockstep.io/reference/post_api-v1-customfieldvalues) endpoint with the `TableKey` to `UserAccount` and the `ObjectKey` set to the `UserId` 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).
|
188
188
|
attr_accessor :custom_field_values
|
189
189
|
|
190
190
|
##
|
@@ -0,0 +1,103 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Software Development Kit 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 Ted Spence <tspence@lockstep.io>
|
10
|
+
# @author Manish Narayan B S <manish.n@lockstep.io>
|
11
|
+
# @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
|
12
|
+
# @copyright 2021-2022 Lockstep, Inc.
|
13
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
14
|
+
#
|
15
|
+
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module LockstepSdk
|
20
|
+
|
21
|
+
##
|
22
|
+
# Represents the Webhook Trigger History
|
23
|
+
class WebhookHistoryTableStorageModel
|
24
|
+
|
25
|
+
##
|
26
|
+
# Initialize the WebhookHistoryTableStorageModel using the provided prototype
|
27
|
+
def initialize(params = {})
|
28
|
+
@group_key = params.dig(:group_key)
|
29
|
+
@webhook_id = params.dig(:webhook_id)
|
30
|
+
@webhook_history_id = params.dig(:webhook_history_id)
|
31
|
+
@event_type = params.dig(:event_type)
|
32
|
+
@request_sent = params.dig(:request_sent)
|
33
|
+
@is_successful = params.dig(:is_successful)
|
34
|
+
@response_status_code = params.dig(:response_status_code)
|
35
|
+
@process_result_message = params.dig(:process_result_message)
|
36
|
+
@failure_count = params.dig(:failure_count)
|
37
|
+
@timestamp = params.dig(:timestamp)
|
38
|
+
end
|
39
|
+
|
40
|
+
##
|
41
|
+
# @return [Uuid] The GroupKey uniquely identifies a single Lockstep Platform account. All records for this account will share the same GroupKey value. GroupKey values cannot be changed once created. For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
42
|
+
attr_accessor :group_key
|
43
|
+
|
44
|
+
##
|
45
|
+
# @return [Uuid] The WebhookId uniquely identifies the webhook used to send notification that an event action has taken place.
|
46
|
+
attr_accessor :webhook_id
|
47
|
+
|
48
|
+
##
|
49
|
+
# @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
|
50
|
+
attr_accessor :webhook_history_id
|
51
|
+
|
52
|
+
##
|
53
|
+
# @return [String] Event type which fired webhook [entity].[action]
|
54
|
+
attr_accessor :event_type
|
55
|
+
|
56
|
+
##
|
57
|
+
# @return [Boolean] Flag whether request was sent to callback url successfully or blocked by failing or because it was disabled.
|
58
|
+
attr_accessor :request_sent
|
59
|
+
|
60
|
+
##
|
61
|
+
# @return [Boolean] Flag whether webhook notification was successful overall (if webhook disabled should always return true otherwise depends on the response from the callback url)
|
62
|
+
attr_accessor :is_successful
|
63
|
+
|
64
|
+
##
|
65
|
+
# @return [String] Response status code that is returned when calling a callback url.
|
66
|
+
attr_accessor :response_status_code
|
67
|
+
|
68
|
+
##
|
69
|
+
# @return [String] Message containing information about the webhook callback results
|
70
|
+
attr_accessor :process_result_message
|
71
|
+
|
72
|
+
##
|
73
|
+
# @return [Int32] Number of times message failed to be sent over to callback url before succeeding or failing out. The maximum value should is based on webhook.
|
74
|
+
attr_accessor :failure_count
|
75
|
+
|
76
|
+
##
|
77
|
+
# @return [Date-time] Timestamp of when a request is sent to a webhook callback. Contains the last time message is sent if failures occur.
|
78
|
+
attr_accessor :timestamp
|
79
|
+
|
80
|
+
##
|
81
|
+
# @return [object] This object as a JSON key-value structure
|
82
|
+
def as_json(options={})
|
83
|
+
{
|
84
|
+
'groupKey' => @group_key,
|
85
|
+
'webhookId' => @webhook_id,
|
86
|
+
'webhookHistoryId' => @webhook_history_id,
|
87
|
+
'eventType' => @event_type,
|
88
|
+
'requestSent' => @request_sent,
|
89
|
+
'isSuccessful' => @is_successful,
|
90
|
+
'responseStatusCode' => @response_status_code,
|
91
|
+
'processResultMessage' => @process_result_message,
|
92
|
+
'failureCount' => @failure_count,
|
93
|
+
'timestamp' => @timestamp,
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
##
|
98
|
+
# @return [String] This object converted to a JSON string
|
99
|
+
def to_json(*options)
|
100
|
+
"[#{as_json(*options).to_json(*options)}]"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -44,6 +44,7 @@ module LockstepSdk
|
|
44
44
|
@created_user_id = params.dig(:created_user_id)
|
45
45
|
@modified = params.dig(:modified)
|
46
46
|
@modified_user_id = params.dig(:modified_user_id)
|
47
|
+
@partition_key = params.dig(:partition_key)
|
47
48
|
end
|
48
49
|
|
49
50
|
##
|
@@ -106,6 +107,10 @@ module LockstepSdk
|
|
106
107
|
# @return [Uuid] The ID of the user who last modified this webhook
|
107
108
|
attr_accessor :modified_user_id
|
108
109
|
|
110
|
+
##
|
111
|
+
# @return [String] The partition key used for the webhook callback history
|
112
|
+
attr_accessor :partition_key
|
113
|
+
|
109
114
|
##
|
110
115
|
# @return [object] This object as a JSON key-value structure
|
111
116
|
def as_json(options={})
|
@@ -125,6 +130,7 @@ module LockstepSdk
|
|
125
130
|
'createdUserId' => @created_user_id,
|
126
131
|
'modified' => @modified,
|
127
132
|
'modifiedUserId' => @modified_user_id,
|
133
|
+
'partitionKey' => @partition_key,
|
128
134
|
}
|
129
135
|
end
|
130
136
|
|
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.6.
|
4
|
+
version: 2022.9.6.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-02
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awrence
|
@@ -46,6 +46,9 @@ files:
|
|
46
46
|
- lib/lockstep_sdk/clients/custom_field_values_client.rb
|
47
47
|
- lib/lockstep_sdk/clients/definitions_client.rb
|
48
48
|
- lib/lockstep_sdk/clients/emails_client.rb
|
49
|
+
- lib/lockstep_sdk/clients/financial_account_balance_history_client.rb
|
50
|
+
- lib/lockstep_sdk/clients/financial_account_client.rb
|
51
|
+
- lib/lockstep_sdk/clients/financial_year_settings_client.rb
|
49
52
|
- lib/lockstep_sdk/clients/invoice_history_client.rb
|
50
53
|
- lib/lockstep_sdk/clients/invoices_client.rb
|
51
54
|
- lib/lockstep_sdk/clients/leads_client.rb
|
@@ -100,6 +103,9 @@ files:
|
|
100
103
|
- lib/lockstep_sdk/models/erp_info_data_model.rb
|
101
104
|
- lib/lockstep_sdk/models/erp_info_model.rb
|
102
105
|
- lib/lockstep_sdk/models/erp_model.rb
|
106
|
+
- lib/lockstep_sdk/models/financial_account_balance_history_model.rb
|
107
|
+
- lib/lockstep_sdk/models/financial_account_model.rb
|
108
|
+
- lib/lockstep_sdk/models/financial_year_setting_model.rb
|
103
109
|
- lib/lockstep_sdk/models/invite_data_model.rb
|
104
110
|
- lib/lockstep_sdk/models/invite_model.rb
|
105
111
|
- lib/lockstep_sdk/models/invite_submit_model.rb
|
@@ -134,6 +140,7 @@ files:
|
|
134
140
|
- lib/lockstep_sdk/models/uri_model.rb
|
135
141
|
- lib/lockstep_sdk/models/user_account_model.rb
|
136
142
|
- lib/lockstep_sdk/models/user_role_model.rb
|
143
|
+
- lib/lockstep_sdk/models/webhook_history_table_storage_model.rb
|
137
144
|
- lib/lockstep_sdk/models/webhook_model.rb
|
138
145
|
- lib/lockstep_sdk/version.rb
|
139
146
|
homepage: https://developer.lockstep.io
|