lockstep_sdk 2022.15.31.1 → 2022.26.12.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/app_enrollments_client.rb +10 -0
- data/lib/lockstep_sdk/clients/companies_client.rb +25 -5
- data/lib/lockstep_sdk/clients/financial_account_client.rb +1 -1
- data/lib/lockstep_sdk/clients/group_accounts_client.rb +46 -0
- data/lib/lockstep_sdk/clients/payment_applications_client.rb +1 -1
- data/lib/lockstep_sdk/clients/provisioning_client.rb +0 -18
- data/lib/lockstep_sdk/clients/reports_client.rb +132 -8
- data/lib/lockstep_sdk/clients/user_accounts_client.rb +12 -0
- data/lib/lockstep_sdk/clients/webhook_rules_client.rb +81 -0
- data/lib/lockstep_sdk/clients/webhooks_client.rb +13 -2
- data/lib/lockstep_sdk/lockstep_api.rb +14 -4
- data/lib/lockstep_sdk/models/action_result_model.rb +52 -0
- data/lib/lockstep_sdk/models/ap_aging_header_info_model.rb +101 -0
- data/lib/lockstep_sdk/models/ap_header_info_model.rb +197 -0
- data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +18 -0
- data/lib/lockstep_sdk/models/ar_header_info_model.rb +46 -10
- data/lib/lockstep_sdk/models/{customer_details_model.rb → company_details_model.rb} +22 -22
- data/lib/lockstep_sdk/models/{customer_details_payment_model.rb → company_details_payment_model.rb} +3 -3
- data/lib/lockstep_sdk/models/company_model.rb +6 -0
- data/lib/lockstep_sdk/models/company_sync_model.rb +13 -1
- data/lib/lockstep_sdk/models/connector_info_model.rb +18 -0
- data/lib/lockstep_sdk/models/contact_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/customer_summary_model.rb +36 -0
- data/lib/lockstep_sdk/models/daily_payable_outstanding_report_model.rb +59 -0
- data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +0 -6
- data/lib/lockstep_sdk/models/dpo_summary_group_total_model.rb +71 -0
- data/lib/lockstep_sdk/models/dpo_summary_model.rb +83 -0
- data/lib/lockstep_sdk/models/error_result.rb +77 -0
- data/lib/lockstep_sdk/models/group_account_model.rb +101 -0
- data/lib/lockstep_sdk/models/invoice_line_sync_model.rb +3 -3
- data/lib/lockstep_sdk/models/invoice_model.rb +7 -1
- data/lib/lockstep_sdk/models/invoice_summary_model.rb +6 -0
- data/lib/lockstep_sdk/models/invoice_sync_model.rb +10 -4
- data/lib/lockstep_sdk/models/payables_coming_due_header_model.rb +77 -0
- data/lib/lockstep_sdk/models/payables_coming_due_model.rb +89 -0
- data/lib/lockstep_sdk/models/payables_coming_due_widget_model.rb +59 -0
- data/lib/lockstep_sdk/models/payables_summary_report_model.rb +77 -0
- data/lib/lockstep_sdk/models/payment_applied_model.rb +6 -0
- data/lib/lockstep_sdk/models/payment_detail_model.rb +7 -1
- data/lib/lockstep_sdk/models/payment_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_summary_model.rb +45 -9
- data/lib/lockstep_sdk/models/payment_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/status_model.rb +12 -0
- data/lib/lockstep_sdk/models/sync_entity_result_model.rb +6 -0
- data/lib/lockstep_sdk/models/user_group_model.rb +66 -0
- data/lib/lockstep_sdk/models/vendor_summary_model.rb +143 -0
- data/lib/lockstep_sdk/models/webhook_model.rb +7 -1
- data/lib/lockstep_sdk/models/webhook_rule_model.rb +116 -0
- data/lib/lockstep_sdk/version.rb +1 -1
- metadata +21 -8
- data/lib/lockstep_sdk/models/erp_info_data_model.rb +0 -62
- data/lib/lockstep_sdk/models/trial_balance_report_cell_model.rb +0 -49
- data/lib/lockstep_sdk/models/trial_balance_report_model.rb +0 -79
- data/lib/lockstep_sdk/models/trial_balance_report_row_model.rb +0 -67
@@ -0,0 +1,143 @@
|
|
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 summarized data for a vendor
|
21
|
+
class VendorSummaryModel
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the VendorSummaryModel using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@group_key = params.dig(:group_key)
|
27
|
+
@vendor_id = params.dig(:vendor_id)
|
28
|
+
@vendor_name = params.dig(:vendor_name)
|
29
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
30
|
+
@primary_contact_name = params.dig(:primary_contact_name)
|
31
|
+
@primary_contact_id = params.dig(:primary_contact_id)
|
32
|
+
@amount_paid_last30 = params.dig(:amount_paid_last30)
|
33
|
+
@advance_pay_last30 = params.dig(:advance_pay_last30)
|
34
|
+
@advance_pay_outstanding = params.dig(:advance_pay_outstanding)
|
35
|
+
@amount_billed_last30 = params.dig(:amount_billed_last30)
|
36
|
+
@amount_billed_outstanding_last30 = params.dig(:amount_billed_outstanding_last30)
|
37
|
+
@amount_billed_outstanding = params.dig(:amount_billed_outstanding)
|
38
|
+
@bill_count_last30 = params.dig(:bill_count_last30)
|
39
|
+
@paid_bill_count_last30 = params.dig(:paid_bill_count_last30)
|
40
|
+
@open_bill_count = params.dig(:open_bill_count)
|
41
|
+
@paid_bill_count = params.dig(:paid_bill_count)
|
42
|
+
@total_bill_count = params.dig(:total_bill_count)
|
43
|
+
end
|
44
|
+
|
45
|
+
##
|
46
|
+
# @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).
|
47
|
+
attr_accessor :group_key
|
48
|
+
|
49
|
+
##
|
50
|
+
# @return [Uuid] The unique ID of this Vendor
|
51
|
+
attr_accessor :vendor_id
|
52
|
+
|
53
|
+
##
|
54
|
+
# @return [String] The name of this Vendor
|
55
|
+
attr_accessor :vendor_name
|
56
|
+
|
57
|
+
##
|
58
|
+
# @return [Uuid] The app enrollment ID this Vendor is associated with
|
59
|
+
attr_accessor :app_enrollment_id
|
60
|
+
|
61
|
+
##
|
62
|
+
# @return [String] The name of this Vendor's primary contact
|
63
|
+
attr_accessor :primary_contact_name
|
64
|
+
|
65
|
+
##
|
66
|
+
# @return [Uuid] This Vendor's primary contact id
|
67
|
+
attr_accessor :primary_contact_id
|
68
|
+
|
69
|
+
##
|
70
|
+
# @return [Double] The amount paid to this Vendor in the last 30 days
|
71
|
+
attr_accessor :amount_paid_last30
|
72
|
+
|
73
|
+
##
|
74
|
+
# @return [Double] The outstanding advance pay balance on payments in the last 30 days
|
75
|
+
attr_accessor :advance_pay_last30
|
76
|
+
|
77
|
+
##
|
78
|
+
# @return [Double] The outstanding advance pay balance with this Vendor
|
79
|
+
attr_accessor :advance_pay_outstanding
|
80
|
+
|
81
|
+
##
|
82
|
+
# @return [Double] The amount billed from this Vendor in the last 30 days
|
83
|
+
attr_accessor :amount_billed_last30
|
84
|
+
|
85
|
+
##
|
86
|
+
# @return [Double] The outstanding balance with this Vendor for bills in the last 30 days
|
87
|
+
attr_accessor :amount_billed_outstanding_last30
|
88
|
+
|
89
|
+
##
|
90
|
+
# @return [Double] The outstanding balance with this Vendor
|
91
|
+
attr_accessor :amount_billed_outstanding
|
92
|
+
|
93
|
+
##
|
94
|
+
# @return [Int32] The number of bills received from this Vendor in the last 30 days
|
95
|
+
attr_accessor :bill_count_last30
|
96
|
+
|
97
|
+
##
|
98
|
+
# @return [Int32] The number of bills from this Vendor that were paid in full in the last 30 days
|
99
|
+
attr_accessor :paid_bill_count_last30
|
100
|
+
|
101
|
+
##
|
102
|
+
# @return [Int32] The number of open bills with this Vendor
|
103
|
+
attr_accessor :open_bill_count
|
104
|
+
|
105
|
+
##
|
106
|
+
# @return [Int32] The number of bills paid to this Vendor
|
107
|
+
attr_accessor :paid_bill_count
|
108
|
+
|
109
|
+
##
|
110
|
+
# @return [Int32] The total count of open and closed bills.
|
111
|
+
attr_accessor :total_bill_count
|
112
|
+
|
113
|
+
##
|
114
|
+
# @return [object] This object as a JSON key-value structure
|
115
|
+
def as_json(options={})
|
116
|
+
{
|
117
|
+
'groupKey' => @group_key,
|
118
|
+
'vendorId' => @vendor_id,
|
119
|
+
'vendorName' => @vendor_name,
|
120
|
+
'appEnrollmentId' => @app_enrollment_id,
|
121
|
+
'primaryContactName' => @primary_contact_name,
|
122
|
+
'primaryContactId' => @primary_contact_id,
|
123
|
+
'amountPaidLast30' => @amount_paid_last30,
|
124
|
+
'advancePayLast30' => @advance_pay_last30,
|
125
|
+
'advancePayOutstanding' => @advance_pay_outstanding,
|
126
|
+
'amountBilledLast30' => @amount_billed_last30,
|
127
|
+
'amountBilledOutstandingLast30' => @amount_billed_outstanding_last30,
|
128
|
+
'amountBilledOutstanding' => @amount_billed_outstanding,
|
129
|
+
'billCountLast30' => @bill_count_last30,
|
130
|
+
'paidBillCountLast30' => @paid_bill_count_last30,
|
131
|
+
'openBillCount' => @open_bill_count,
|
132
|
+
'paidBillCount' => @paid_bill_count,
|
133
|
+
'totalBillCount' => @total_bill_count,
|
134
|
+
}
|
135
|
+
end
|
136
|
+
|
137
|
+
##
|
138
|
+
# @return [String] This object converted to a JSON string
|
139
|
+
def to_json(*options)
|
140
|
+
"[#{as_json(*options).to_json(*options)}]"
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -42,6 +42,7 @@ module LockstepSdk
|
|
42
42
|
@created_user_id = params.dig(:created_user_id)
|
43
43
|
@modified = params.dig(:modified)
|
44
44
|
@modified_user_id = params.dig(:modified_user_id)
|
45
|
+
@webhook_rules = params.dig(:webhook_rules)
|
45
46
|
@partition_key = params.dig(:partition_key)
|
46
47
|
end
|
47
48
|
|
@@ -70,7 +71,7 @@ module LockstepSdk
|
|
70
71
|
attr_accessor :client_secret
|
71
72
|
|
72
73
|
##
|
73
|
-
# @return [String] The format of the content to be returned in the webhook notifications.
|
74
|
+
# @return [String] The format of the content to be returned in the webhook notifications. Current options are 'Full' or 'Id'.
|
74
75
|
attr_accessor :request_content_type
|
75
76
|
|
76
77
|
##
|
@@ -105,6 +106,10 @@ module LockstepSdk
|
|
105
106
|
# @return [Uuid] The ID of the user who last modified this webhook
|
106
107
|
attr_accessor :modified_user_id
|
107
108
|
|
109
|
+
##
|
110
|
+
# @return [WebhookRuleModel] A list of Webhook Rules associated with this Webhook.
|
111
|
+
attr_accessor :webhook_rules
|
112
|
+
|
108
113
|
##
|
109
114
|
# @return [String] The partition key used for the webhook callback history
|
110
115
|
attr_accessor :partition_key
|
@@ -128,6 +133,7 @@ module LockstepSdk
|
|
128
133
|
'createdUserId' => @created_user_id,
|
129
134
|
'modified' => @modified,
|
130
135
|
'modifiedUserId' => @modified_user_id,
|
136
|
+
'webhookRules' => @webhook_rules,
|
131
137
|
'partitionKey' => @partition_key,
|
132
138
|
}
|
133
139
|
end
|
@@ -0,0 +1,116 @@
|
|
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
|
+
# A Webhook Rule is a subscription to receive notifications automatically for
|
21
|
+
#
|
22
|
+
# Currently supported objects:
|
23
|
+
# * `SyncRequest` - Receive a notification when a new sync request has completed for the group key.
|
24
|
+
class WebhookRuleModel
|
25
|
+
|
26
|
+
##
|
27
|
+
# Initialize the WebhookRuleModel using the provided prototype
|
28
|
+
def initialize(params = {})
|
29
|
+
@webhook_rule_id = params.dig(:webhook_rule_id)
|
30
|
+
@webhook_id = params.dig(:webhook_id)
|
31
|
+
@group_key = params.dig(:group_key)
|
32
|
+
@table_key = params.dig(:table_key)
|
33
|
+
@event_type = params.dig(:event_type)
|
34
|
+
@expiration_date = params.dig(:expiration_date)
|
35
|
+
@filter = params.dig(:filter)
|
36
|
+
@request_content_type = params.dig(:request_content_type)
|
37
|
+
@created = params.dig(:created)
|
38
|
+
@created_user_id = params.dig(:created_user_id)
|
39
|
+
@modified = params.dig(:modified)
|
40
|
+
@modified_user_id = params.dig(:modified_user_id)
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
|
45
|
+
attr_accessor :webhook_rule_id
|
46
|
+
|
47
|
+
##
|
48
|
+
# @return [Uuid] The unique Webhook ID that will be used to fire the webhook for this rule.
|
49
|
+
attr_accessor :webhook_id
|
50
|
+
|
51
|
+
##
|
52
|
+
# @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).
|
53
|
+
attr_accessor :group_key
|
54
|
+
|
55
|
+
##
|
56
|
+
# @return [String] A Webhook rule is setup to be fired based on `TableKey` and `EventType`. For example, a Webhook setup for when an Invoice is Created would have a `TableKey` value of `Invoice` and an `EventType` value of `I` (Insert). The `TableKey` value contains the name of the table within the Lockstep Platform to which this metadata is connected. For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
57
|
+
attr_accessor :table_key
|
58
|
+
|
59
|
+
##
|
60
|
+
# @return [String] A Webhook rule is setup to be fired based on `TableKey` and `EventType`. For example, a Webhook setup for when an Invoice is Created would have a `TableKey` value of `Invoice` and an `EventType` value of `I` (Insert). The `EventType` value is one of the following: - I (Insert) - D (Delete) - U (Update) For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
61
|
+
attr_accessor :event_type
|
62
|
+
|
63
|
+
##
|
64
|
+
# @return [Date-time] The expiration date for the given webhook subscription. Once the expiration date passes, notifications will no longer be sent to the callback url.
|
65
|
+
attr_accessor :expiration_date
|
66
|
+
|
67
|
+
##
|
68
|
+
# @return [String] The filter for this webhook rule (if necessary) . See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
|
69
|
+
attr_accessor :filter
|
70
|
+
|
71
|
+
##
|
72
|
+
# @return [String] The format of the content to be returned in the webhook notifications. Current options are 'Full' or 'Id'.
|
73
|
+
attr_accessor :request_content_type
|
74
|
+
|
75
|
+
##
|
76
|
+
# @return [Date-time] The date this webhook rule was created
|
77
|
+
attr_accessor :created
|
78
|
+
|
79
|
+
##
|
80
|
+
# @return [Uuid] The ID of the user who created this webhook rule
|
81
|
+
attr_accessor :created_user_id
|
82
|
+
|
83
|
+
##
|
84
|
+
# @return [Date-time] The date this webhook rule was last modified
|
85
|
+
attr_accessor :modified
|
86
|
+
|
87
|
+
##
|
88
|
+
# @return [Uuid] The ID of the user who last modified this webhook rule
|
89
|
+
attr_accessor :modified_user_id
|
90
|
+
|
91
|
+
##
|
92
|
+
# @return [object] This object as a JSON key-value structure
|
93
|
+
def as_json(options={})
|
94
|
+
{
|
95
|
+
'webhookRuleId' => @webhook_rule_id,
|
96
|
+
'webhookId' => @webhook_id,
|
97
|
+
'groupKey' => @group_key,
|
98
|
+
'tableKey' => @table_key,
|
99
|
+
'eventType' => @event_type,
|
100
|
+
'expirationDate' => @expiration_date,
|
101
|
+
'filter' => @filter,
|
102
|
+
'requestContentType' => @request_content_type,
|
103
|
+
'created' => @created,
|
104
|
+
'createdUserId' => @created_user_id,
|
105
|
+
'modified' => @modified,
|
106
|
+
'modifiedUserId' => @modified_user_id,
|
107
|
+
}
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# @return [String] This object converted to a JSON string
|
112
|
+
def to_json(*options)
|
113
|
+
"[#{as_json(*options).to_json(*options)}]"
|
114
|
+
end
|
115
|
+
end
|
116
|
+
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.26.12.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-05
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awrence
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- lib/lockstep_sdk/clients/financial_account_balance_history_client.rb
|
50
50
|
- lib/lockstep_sdk/clients/financial_account_client.rb
|
51
51
|
- lib/lockstep_sdk/clients/financial_year_settings_client.rb
|
52
|
+
- lib/lockstep_sdk/clients/group_accounts_client.rb
|
52
53
|
- lib/lockstep_sdk/clients/invoice_history_client.rb
|
53
54
|
- lib/lockstep_sdk/clients/invoices_client.rb
|
54
55
|
- lib/lockstep_sdk/clients/leads_client.rb
|
@@ -61,12 +62,16 @@ files:
|
|
61
62
|
- lib/lockstep_sdk/clients/sync_client.rb
|
62
63
|
- lib/lockstep_sdk/clients/user_accounts_client.rb
|
63
64
|
- lib/lockstep_sdk/clients/user_roles_client.rb
|
65
|
+
- lib/lockstep_sdk/clients/webhook_rules_client.rb
|
64
66
|
- lib/lockstep_sdk/clients/webhooks_client.rb
|
65
67
|
- lib/lockstep_sdk/lockstep_api.rb
|
68
|
+
- lib/lockstep_sdk/models/action_result_model.rb
|
66
69
|
- lib/lockstep_sdk/models/activity_model.rb
|
67
70
|
- lib/lockstep_sdk/models/activity_stream_item_model.rb
|
68
71
|
- lib/lockstep_sdk/models/activity_xref_model.rb
|
69
72
|
- lib/lockstep_sdk/models/aging_model.rb
|
73
|
+
- lib/lockstep_sdk/models/ap_aging_header_info_model.rb
|
74
|
+
- lib/lockstep_sdk/models/ap_header_info_model.rb
|
70
75
|
- lib/lockstep_sdk/models/api_key_model.rb
|
71
76
|
- lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb
|
72
77
|
- lib/lockstep_sdk/models/app_enrollment_model.rb
|
@@ -80,6 +85,8 @@ files:
|
|
80
85
|
- lib/lockstep_sdk/models/bulk_currency_conversion_model.rb
|
81
86
|
- lib/lockstep_sdk/models/cashflow_report_model.rb
|
82
87
|
- lib/lockstep_sdk/models/code_definition_model.rb
|
88
|
+
- lib/lockstep_sdk/models/company_details_model.rb
|
89
|
+
- lib/lockstep_sdk/models/company_details_payment_model.rb
|
83
90
|
- lib/lockstep_sdk/models/company_model.rb
|
84
91
|
- lib/lockstep_sdk/models/company_sync_model.rb
|
85
92
|
- lib/lockstep_sdk/models/connector_info_model.rb
|
@@ -94,21 +101,23 @@ files:
|
|
94
101
|
- lib/lockstep_sdk/models/custom_field_definition_model.rb
|
95
102
|
- lib/lockstep_sdk/models/custom_field_sync_model.rb
|
96
103
|
- lib/lockstep_sdk/models/custom_field_value_model.rb
|
97
|
-
- lib/lockstep_sdk/models/customer_details_model.rb
|
98
|
-
- lib/lockstep_sdk/models/customer_details_payment_model.rb
|
99
104
|
- lib/lockstep_sdk/models/customer_summary_model.rb
|
105
|
+
- lib/lockstep_sdk/models/daily_payable_outstanding_report_model.rb
|
100
106
|
- lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb
|
101
107
|
- lib/lockstep_sdk/models/developer_account_submit_model.rb
|
108
|
+
- lib/lockstep_sdk/models/dpo_summary_group_total_model.rb
|
109
|
+
- lib/lockstep_sdk/models/dpo_summary_model.rb
|
102
110
|
- lib/lockstep_sdk/models/email_model.rb
|
103
|
-
- lib/lockstep_sdk/models/erp_info_data_model.rb
|
104
111
|
- lib/lockstep_sdk/models/erp_info_model.rb
|
105
112
|
- lib/lockstep_sdk/models/erp_model.rb
|
113
|
+
- lib/lockstep_sdk/models/error_result.rb
|
106
114
|
- lib/lockstep_sdk/models/financial_account_balance_history_model.rb
|
107
115
|
- lib/lockstep_sdk/models/financial_account_model.rb
|
108
116
|
- lib/lockstep_sdk/models/financial_report_cell_model.rb
|
109
117
|
- lib/lockstep_sdk/models/financial_report_model.rb
|
110
118
|
- lib/lockstep_sdk/models/financial_report_row_model.rb
|
111
119
|
- lib/lockstep_sdk/models/financial_year_setting_model.rb
|
120
|
+
- lib/lockstep_sdk/models/group_account_model.rb
|
112
121
|
- lib/lockstep_sdk/models/invite_data_model.rb
|
113
122
|
- lib/lockstep_sdk/models/invite_model.rb
|
114
123
|
- lib/lockstep_sdk/models/invite_submit_model.rb
|
@@ -122,6 +131,10 @@ files:
|
|
122
131
|
- lib/lockstep_sdk/models/invoice_sync_model.rb
|
123
132
|
- lib/lockstep_sdk/models/lead_model.rb
|
124
133
|
- lib/lockstep_sdk/models/note_model.rb
|
134
|
+
- lib/lockstep_sdk/models/payables_coming_due_header_model.rb
|
135
|
+
- lib/lockstep_sdk/models/payables_coming_due_model.rb
|
136
|
+
- lib/lockstep_sdk/models/payables_coming_due_widget_model.rb
|
137
|
+
- lib/lockstep_sdk/models/payables_summary_report_model.rb
|
125
138
|
- lib/lockstep_sdk/models/payment_applied_model.rb
|
126
139
|
- lib/lockstep_sdk/models/payment_applied_sync_model.rb
|
127
140
|
- lib/lockstep_sdk/models/payment_detail_header_model.rb
|
@@ -140,14 +153,14 @@ files:
|
|
140
153
|
- lib/lockstep_sdk/models/sync_submit_model.rb
|
141
154
|
- lib/lockstep_sdk/models/transfer_owner_model.rb
|
142
155
|
- lib/lockstep_sdk/models/transfer_owner_submit_model.rb
|
143
|
-
- lib/lockstep_sdk/models/trial_balance_report_cell_model.rb
|
144
|
-
- lib/lockstep_sdk/models/trial_balance_report_model.rb
|
145
|
-
- lib/lockstep_sdk/models/trial_balance_report_row_model.rb
|
146
156
|
- lib/lockstep_sdk/models/uri_model.rb
|
147
157
|
- lib/lockstep_sdk/models/user_account_model.rb
|
158
|
+
- lib/lockstep_sdk/models/user_group_model.rb
|
148
159
|
- lib/lockstep_sdk/models/user_role_model.rb
|
160
|
+
- lib/lockstep_sdk/models/vendor_summary_model.rb
|
149
161
|
- lib/lockstep_sdk/models/webhook_history_table_storage_model.rb
|
150
162
|
- lib/lockstep_sdk/models/webhook_model.rb
|
163
|
+
- lib/lockstep_sdk/models/webhook_rule_model.rb
|
151
164
|
- lib/lockstep_sdk/version.rb
|
152
165
|
homepage: https://developer.lockstep.io
|
153
166
|
licenses:
|
@@ -1,62 +0,0 @@
|
|
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 all the possible data sent as a part of the provisioning post.
|
23
|
-
# Only send required fields for the given connector.
|
24
|
-
class ErpInfoDataModel
|
25
|
-
|
26
|
-
##
|
27
|
-
# Initialize the ErpInfoDataModel using the provided prototype
|
28
|
-
def initialize(params = {})
|
29
|
-
@auth_code = params.dig(:auth_code)
|
30
|
-
@realm_id = params.dig(:realm_id)
|
31
|
-
@redirect_uri = params.dig(:redirect_uri)
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# @return [String] The authorization code returned from the first step of the OAuth2 flow https://oauth.net/2/grant-types/authorization-code/
|
36
|
-
attr_accessor :auth_code
|
37
|
-
|
38
|
-
##
|
39
|
-
# @return [String] The realm id of the account being granted permissions to access
|
40
|
-
attr_accessor :realm_id
|
41
|
-
|
42
|
-
##
|
43
|
-
# @return [String] The redirect uri used for step one of the OAuth2.0 flow.
|
44
|
-
attr_accessor :redirect_uri
|
45
|
-
|
46
|
-
##
|
47
|
-
# @return [object] This object as a JSON key-value structure
|
48
|
-
def as_json(options={})
|
49
|
-
{
|
50
|
-
'authCode' => @auth_code,
|
51
|
-
'realmId' => @realm_id,
|
52
|
-
'redirectUri' => @redirect_uri,
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
##
|
57
|
-
# @return [String] This object converted to a JSON string
|
58
|
-
def to_json(*options)
|
59
|
-
"[#{as_json(*options).to_json(*options)}]"
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,49 +0,0 @@
|
|
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 a cell of a trial balance report
|
23
|
-
class TrialBalanceReportCellModel
|
24
|
-
|
25
|
-
##
|
26
|
-
# Initialize the TrialBalanceReportCellModel using the provided prototype
|
27
|
-
def initialize(params = {})
|
28
|
-
@value = params.dig(:value)
|
29
|
-
end
|
30
|
-
|
31
|
-
##
|
32
|
-
# @return [String] The value of the trial balance report cell
|
33
|
-
attr_accessor :value
|
34
|
-
|
35
|
-
##
|
36
|
-
# @return [object] This object as a JSON key-value structure
|
37
|
-
def as_json(options={})
|
38
|
-
{
|
39
|
-
'value' => @value,
|
40
|
-
}
|
41
|
-
end
|
42
|
-
|
43
|
-
##
|
44
|
-
# @return [String] This object converted to a JSON string
|
45
|
-
def to_json(*options)
|
46
|
-
"[#{as_json(*options).to_json(*options)}]"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,79 +0,0 @@
|
|
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 a Trial Balance Report
|
23
|
-
class TrialBalanceReportModel
|
24
|
-
|
25
|
-
##
|
26
|
-
# Initialize the TrialBalanceReportModel using the provided prototype
|
27
|
-
def initialize(params = {})
|
28
|
-
@report_name = params.dig(:report_name)
|
29
|
-
@group_key = params.dig(:group_key)
|
30
|
-
@report_start_date = params.dig(:report_start_date)
|
31
|
-
@report_end_date = params.dig(:report_end_date)
|
32
|
-
@report_created_date = params.dig(:report_created_date)
|
33
|
-
@rows = params.dig(:rows)
|
34
|
-
end
|
35
|
-
|
36
|
-
##
|
37
|
-
# @return [String] The name of the report ("Trial Balance for *Company*")
|
38
|
-
attr_accessor :report_name
|
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 [Date-time] The start date of the trial balance report
|
46
|
-
attr_accessor :report_start_date
|
47
|
-
|
48
|
-
##
|
49
|
-
# @return [Date-time] The end date of the trial balance report
|
50
|
-
attr_accessor :report_end_date
|
51
|
-
|
52
|
-
##
|
53
|
-
# @return [Date-time] The created date of the trial balance report
|
54
|
-
attr_accessor :report_created_date
|
55
|
-
|
56
|
-
##
|
57
|
-
# @return [TrialBalanceReportRowModel] The rows of the trial balance report
|
58
|
-
attr_accessor :rows
|
59
|
-
|
60
|
-
##
|
61
|
-
# @return [object] This object as a JSON key-value structure
|
62
|
-
def as_json(options={})
|
63
|
-
{
|
64
|
-
'reportName' => @report_name,
|
65
|
-
'groupKey' => @group_key,
|
66
|
-
'reportStartDate' => @report_start_date,
|
67
|
-
'reportEndDate' => @report_end_date,
|
68
|
-
'reportCreatedDate' => @report_created_date,
|
69
|
-
'rows' => @rows,
|
70
|
-
}
|
71
|
-
end
|
72
|
-
|
73
|
-
##
|
74
|
-
# @return [String] This object converted to a JSON string
|
75
|
-
def to_json(*options)
|
76
|
-
"[#{as_json(*options).to_json(*options)}]"
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,67 +0,0 @@
|
|
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 a row of a trial balance report
|
23
|
-
class TrialBalanceReportRowModel
|
24
|
-
|
25
|
-
##
|
26
|
-
# Initialize the TrialBalanceReportRowModel using the provided prototype
|
27
|
-
def initialize(params = {})
|
28
|
-
@row_type = params.dig(:row_type)
|
29
|
-
@label = params.dig(:label)
|
30
|
-
@rows = params.dig(:rows)
|
31
|
-
@cells = params.dig(:cells)
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# @return [String] Describes what type of row this row is (Header, Summary, Classification, Category, Subcategory, Data)
|
36
|
-
attr_accessor :row_type
|
37
|
-
|
38
|
-
##
|
39
|
-
# @return [String] The label for the row if it is a Classification, Category, or Subcategory.
|
40
|
-
attr_accessor :label
|
41
|
-
|
42
|
-
##
|
43
|
-
# @return [TrialBalanceReportRowModel] The sub rows of this row if it is a Classification, Category, or Subcategory.
|
44
|
-
attr_accessor :rows
|
45
|
-
|
46
|
-
##
|
47
|
-
# @return [TrialBalanceReportCellModel] The cells of the row
|
48
|
-
attr_accessor :cells
|
49
|
-
|
50
|
-
##
|
51
|
-
# @return [object] This object as a JSON key-value structure
|
52
|
-
def as_json(options={})
|
53
|
-
{
|
54
|
-
'rowType' => @row_type,
|
55
|
-
'label' => @label,
|
56
|
-
'rows' => @rows,
|
57
|
-
'cells' => @cells,
|
58
|
-
}
|
59
|
-
end
|
60
|
-
|
61
|
-
##
|
62
|
-
# @return [String] This object converted to a JSON string
|
63
|
-
def to_json(*options)
|
64
|
-
"[#{as_json(*options).to_json(*options)}]"
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|