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
@@ -40,6 +40,7 @@ module LockstepSdk
|
|
40
40
|
@modified = params.dig(:modified)
|
41
41
|
@modified_user_id = params.dig(:modified_user_id)
|
42
42
|
@app_enrollment_id = params.dig(:app_enrollment_id)
|
43
|
+
@value = params.dig(:value)
|
43
44
|
@custom_field_definition = params.dig(:custom_field_definition)
|
44
45
|
end
|
45
46
|
|
@@ -80,9 +81,13 @@ module LockstepSdk
|
|
80
81
|
attr_accessor :modified_user_id
|
81
82
|
|
82
83
|
##
|
83
|
-
# @return [Uuid] AppEnrollmentId
|
84
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this attachment record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
84
85
|
attr_accessor :app_enrollment_id
|
85
86
|
|
87
|
+
##
|
88
|
+
# @return [String] The value of this custom field.
|
89
|
+
attr_accessor :value
|
90
|
+
|
86
91
|
##
|
87
92
|
# @return [CustomFieldDefinitionModel] Definition of the value
|
88
93
|
attr_accessor :custom_field_definition
|
@@ -101,6 +106,7 @@ module LockstepSdk
|
|
101
106
|
'modified' => @modified,
|
102
107
|
'modifiedUserId' => @modified_user_id,
|
103
108
|
'appEnrollmentId' => @app_enrollment_id,
|
109
|
+
'value' => @value,
|
104
110
|
'customFieldDefinition' => @custom_field_definition,
|
105
111
|
}
|
106
112
|
end
|
@@ -144,7 +144,7 @@ module LockstepSdk
|
|
144
144
|
attr_accessor :view_count
|
145
145
|
|
146
146
|
##
|
147
|
-
# @return [Uuid] AppEnrollmentId
|
147
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
148
148
|
attr_accessor :app_enrollment_id
|
149
149
|
|
150
150
|
##
|
@@ -180,19 +180,19 @@ module LockstepSdk
|
|
180
180
|
attr_accessor :response_origin
|
181
181
|
|
182
182
|
##
|
183
|
-
# @return [NoteModel]
|
183
|
+
# @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 `Email` and the `ObjectKey` set to the `EmailId` 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 :notes
|
185
185
|
|
186
186
|
##
|
187
|
-
# @return [AttachmentModel]
|
187
|
+
# @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 `Email` and the `ObjectKey` set to the `EmailId` 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 :attachments
|
189
189
|
|
190
190
|
##
|
191
|
-
# @return [CustomFieldDefinitionModel]
|
191
|
+
# @return [CustomFieldDefinitionModel] A collection of custom fields linked to this record. To retrieve this collection, specify `CustomFieldDefinitions` 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 `Email` and the `ObjectKey` set to the `EmailId` 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).
|
192
192
|
attr_accessor :custom_field_definitions
|
193
193
|
|
194
194
|
##
|
195
|
-
# @return [CustomFieldValueModel]
|
195
|
+
# @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 `Email` and the `ObjectKey` set to the `EmailId` 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).
|
196
196
|
attr_accessor :custom_field_values
|
197
197
|
|
198
198
|
##
|
@@ -0,0 +1,127 @@
|
|
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 balance for a financial account for a given period of time.
|
23
|
+
class FinancialAccountBalanceHistoryModel
|
24
|
+
|
25
|
+
##
|
26
|
+
# Initialize the FinancialAccountBalanceHistoryModel using the provided prototype
|
27
|
+
def initialize(params = {})
|
28
|
+
@financial_account_balance_history_id = params.dig(:financial_account_balance_history_id)
|
29
|
+
@group_key = params.dig(:group_key)
|
30
|
+
@financial_account_id = params.dig(:financial_account_id)
|
31
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
32
|
+
@financial_year = params.dig(:financial_year)
|
33
|
+
@period_number = params.dig(:period_number)
|
34
|
+
@period_start_date = params.dig(:period_start_date)
|
35
|
+
@period_end_date = params.dig(:period_end_date)
|
36
|
+
@status = params.dig(:status)
|
37
|
+
@balance = params.dig(:balance)
|
38
|
+
@created = params.dig(:created)
|
39
|
+
@created_user_id = params.dig(:created_user_id)
|
40
|
+
@modified = params.dig(:modified)
|
41
|
+
@modified_user_id = params.dig(:modified_user_id)
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
|
46
|
+
attr_accessor :financial_account_balance_history_id
|
47
|
+
|
48
|
+
##
|
49
|
+
# @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).
|
50
|
+
attr_accessor :group_key
|
51
|
+
|
52
|
+
##
|
53
|
+
# @return [Uuid] The id of the Financial Account that this balance history is for.
|
54
|
+
attr_accessor :financial_account_id
|
55
|
+
|
56
|
+
##
|
57
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
58
|
+
attr_accessor :app_enrollment_id
|
59
|
+
|
60
|
+
##
|
61
|
+
# @return [Int32] The financial year that this period falls under
|
62
|
+
attr_accessor :financial_year
|
63
|
+
|
64
|
+
##
|
65
|
+
# @return [Int32] The period number (1-12 or 1-13) that this balance history is for
|
66
|
+
attr_accessor :period_number
|
67
|
+
|
68
|
+
##
|
69
|
+
# @return [Date-time] The start date of this period.
|
70
|
+
attr_accessor :period_start_date
|
71
|
+
|
72
|
+
##
|
73
|
+
# @return [Date-time] The end date of this period.
|
74
|
+
attr_accessor :period_end_date
|
75
|
+
|
76
|
+
##
|
77
|
+
# @return [String] The status of this period. The status should be Closed if the books for this period have been closed, if not the status should be Open. The status can also be Deleted if there was a recalculation that needed to occur, for example due to a change in financial year settings.
|
78
|
+
attr_accessor :status
|
79
|
+
|
80
|
+
##
|
81
|
+
# @return [Double] The current or end balance of this period.
|
82
|
+
attr_accessor :balance
|
83
|
+
|
84
|
+
##
|
85
|
+
# @return [Date-time] The date on which this financial account balance history record was created.
|
86
|
+
attr_accessor :created
|
87
|
+
|
88
|
+
##
|
89
|
+
# @return [Uuid] The ID number of the user who created this financial account balance history.
|
90
|
+
attr_accessor :created_user_id
|
91
|
+
|
92
|
+
##
|
93
|
+
# @return [Date-time] The date on which this financial account balance history record was modified.
|
94
|
+
attr_accessor :modified
|
95
|
+
|
96
|
+
##
|
97
|
+
# @return [Uuid] The ID number of the user who most recently modified this financial account balance history.
|
98
|
+
attr_accessor :modified_user_id
|
99
|
+
|
100
|
+
##
|
101
|
+
# @return [object] This object as a JSON key-value structure
|
102
|
+
def as_json(options={})
|
103
|
+
{
|
104
|
+
'financialAccountBalanceHistoryId' => @financial_account_balance_history_id,
|
105
|
+
'groupKey' => @group_key,
|
106
|
+
'financialAccountId' => @financial_account_id,
|
107
|
+
'appEnrollmentId' => @app_enrollment_id,
|
108
|
+
'financialYear' => @financial_year,
|
109
|
+
'periodNumber' => @period_number,
|
110
|
+
'periodStartDate' => @period_start_date,
|
111
|
+
'periodEndDate' => @period_end_date,
|
112
|
+
'status' => @status,
|
113
|
+
'balance' => @balance,
|
114
|
+
'created' => @created,
|
115
|
+
'createdUserId' => @created_user_id,
|
116
|
+
'modified' => @modified,
|
117
|
+
'modifiedUserId' => @modified_user_id,
|
118
|
+
}
|
119
|
+
end
|
120
|
+
|
121
|
+
##
|
122
|
+
# @return [String] This object converted to a JSON string
|
123
|
+
def to_json(*options)
|
124
|
+
"[#{as_json(*options).to_json(*options)}]"
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,139 @@
|
|
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
|
+
# An Financial account refers to records of assets, liabilities, income, expenses, and equity.
|
23
|
+
class FinancialAccountModel
|
24
|
+
|
25
|
+
##
|
26
|
+
# Initialize the FinancialAccountModel using the provided prototype
|
27
|
+
def initialize(params = {})
|
28
|
+
@financial_account_id = params.dig(:financial_account_id)
|
29
|
+
@group_key = params.dig(:group_key)
|
30
|
+
@code = params.dig(:code)
|
31
|
+
@erp_key = params.dig(:erp_key)
|
32
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
33
|
+
@name = params.dig(:name)
|
34
|
+
@status = params.dig(:status)
|
35
|
+
@cashflow_type = params.dig(:cashflow_type)
|
36
|
+
@description = params.dig(:description)
|
37
|
+
@classification = params.dig(:classification)
|
38
|
+
@category = params.dig(:category)
|
39
|
+
@subcategory = params.dig(:subcategory)
|
40
|
+
@created = params.dig(:created)
|
41
|
+
@created_user_id = params.dig(:created_user_id)
|
42
|
+
@modified = params.dig(:modified)
|
43
|
+
@modified_user_id = params.dig(:modified_user_id)
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [Uuid] The unique identifier for the Financial Account.
|
48
|
+
attr_accessor :financial_account_id
|
49
|
+
|
50
|
+
##
|
51
|
+
# @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).
|
52
|
+
attr_accessor :group_key
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [String] The code for the Financial Account. Can either be a general ledger or an account code.
|
56
|
+
attr_accessor :code
|
57
|
+
|
58
|
+
##
|
59
|
+
# @return [String] The External Id for the Financial Account.
|
60
|
+
attr_accessor :erp_key
|
61
|
+
|
62
|
+
##
|
63
|
+
# @return [Uuid] The App Enrollment Id for the Financial Account.
|
64
|
+
attr_accessor :app_enrollment_id
|
65
|
+
|
66
|
+
##
|
67
|
+
# @return [String] The name of the Financial Account.
|
68
|
+
attr_accessor :name
|
69
|
+
|
70
|
+
##
|
71
|
+
# @return [String] The status of the Financial Account. Possible values are active, inactive, deleted or archived.
|
72
|
+
attr_accessor :status
|
73
|
+
|
74
|
+
##
|
75
|
+
# @return [String] The cashflow type for the Financial Account. Examples include cash, financing, investment or operation.
|
76
|
+
attr_accessor :cashflow_type
|
77
|
+
|
78
|
+
##
|
79
|
+
# @return [String] The description for the Financial Account.
|
80
|
+
attr_accessor :description
|
81
|
+
|
82
|
+
##
|
83
|
+
# @return [String] The classification for the Financial Account. Possible values are Asset, Equity, Expense, Liability or Revenue.
|
84
|
+
attr_accessor :classification
|
85
|
+
|
86
|
+
##
|
87
|
+
# @return [String] The category for the Financial Account. Examples include Current Asset, Current Liability, Common Stock
|
88
|
+
attr_accessor :category
|
89
|
+
|
90
|
+
##
|
91
|
+
# @return [String] The subcategory for the Financial Account. Examples include Cash, Property, Bank Loan, etc.
|
92
|
+
attr_accessor :subcategory
|
93
|
+
|
94
|
+
##
|
95
|
+
# @return [Date-time] The date the FinancialAccount was created.
|
96
|
+
attr_accessor :created
|
97
|
+
|
98
|
+
##
|
99
|
+
# @return [Uuid] The user that has created the Financial Account.
|
100
|
+
attr_accessor :created_user_id
|
101
|
+
|
102
|
+
##
|
103
|
+
# @return [Date-time] The date the Financial Account was modified.
|
104
|
+
attr_accessor :modified
|
105
|
+
|
106
|
+
##
|
107
|
+
# @return [Uuid] The user that has modified the Financial Account.
|
108
|
+
attr_accessor :modified_user_id
|
109
|
+
|
110
|
+
##
|
111
|
+
# @return [object] This object as a JSON key-value structure
|
112
|
+
def as_json(options={})
|
113
|
+
{
|
114
|
+
'financialAccountId' => @financial_account_id,
|
115
|
+
'groupKey' => @group_key,
|
116
|
+
'code' => @code,
|
117
|
+
'erpKey' => @erp_key,
|
118
|
+
'appEnrollmentId' => @app_enrollment_id,
|
119
|
+
'name' => @name,
|
120
|
+
'status' => @status,
|
121
|
+
'cashflowType' => @cashflow_type,
|
122
|
+
'description' => @description,
|
123
|
+
'classification' => @classification,
|
124
|
+
'category' => @category,
|
125
|
+
'subcategory' => @subcategory,
|
126
|
+
'created' => @created,
|
127
|
+
'createdUserId' => @created_user_id,
|
128
|
+
'modified' => @modified,
|
129
|
+
'modifiedUserId' => @modified_user_id,
|
130
|
+
}
|
131
|
+
end
|
132
|
+
|
133
|
+
##
|
134
|
+
# @return [String] This object converted to a JSON string
|
135
|
+
def to_json(*options)
|
136
|
+
"[#{as_json(*options).to_json(*options)}]"
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,111 @@
|
|
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
|
+
# A Financial Year Setting is used to to set the type, beginning, end, and number of periods of a year used to
|
23
|
+
# calculate accounting reports. The financial setting can either be for a specific app enrollment id via a sync
|
24
|
+
# or, when the financial year setting is manually created, will cover all account data without an app enrollment id.
|
25
|
+
class FinancialYearSettingModel
|
26
|
+
|
27
|
+
##
|
28
|
+
# Initialize the FinancialYearSettingModel using the provided prototype
|
29
|
+
def initialize(params = {})
|
30
|
+
@financial_year_setting_id = params.dig(:financial_year_setting_id)
|
31
|
+
@group_key = params.dig(:group_key)
|
32
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
33
|
+
@year_type = params.dig(:year_type)
|
34
|
+
@total_periods = params.dig(:total_periods)
|
35
|
+
@start_date = params.dig(:start_date)
|
36
|
+
@end_date = params.dig(:end_date)
|
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 :financial_year_setting_id
|
46
|
+
|
47
|
+
##
|
48
|
+
# @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).
|
49
|
+
attr_accessor :group_key
|
50
|
+
|
51
|
+
##
|
52
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
53
|
+
attr_accessor :app_enrollment_id
|
54
|
+
|
55
|
+
##
|
56
|
+
# @return [String] The type of financial year, either Calendar or Fiscal.
|
57
|
+
attr_accessor :year_type
|
58
|
+
|
59
|
+
##
|
60
|
+
# @return [Int32] Total number of periods in the year. For Calendar year types this should always be 12. For Fiscal year types this can either be 12 or 13 for a 4 week 13 period year.
|
61
|
+
attr_accessor :total_periods
|
62
|
+
|
63
|
+
##
|
64
|
+
# @return [Date] The start date of the financial year. Should be entered in MM-DD format.
|
65
|
+
attr_accessor :start_date
|
66
|
+
|
67
|
+
##
|
68
|
+
# @return [Date] The end date of the financial year. Should be entered in MM-DD format.
|
69
|
+
attr_accessor :end_date
|
70
|
+
|
71
|
+
##
|
72
|
+
# @return [Date-time] The date on which this financial year setting record was created.
|
73
|
+
attr_accessor :created
|
74
|
+
|
75
|
+
##
|
76
|
+
# @return [Uuid] The ID number of the user who created this financial year setting.
|
77
|
+
attr_accessor :created_user_id
|
78
|
+
|
79
|
+
##
|
80
|
+
# @return [Date-time] The date on which this financial year setting record was last modified.
|
81
|
+
attr_accessor :modified
|
82
|
+
|
83
|
+
##
|
84
|
+
# @return [Uuid] The ID number of the user who most recently modified this financial year setting.
|
85
|
+
attr_accessor :modified_user_id
|
86
|
+
|
87
|
+
##
|
88
|
+
# @return [object] This object as a JSON key-value structure
|
89
|
+
def as_json(options={})
|
90
|
+
{
|
91
|
+
'financialYearSettingId' => @financial_year_setting_id,
|
92
|
+
'groupKey' => @group_key,
|
93
|
+
'appEnrollmentId' => @app_enrollment_id,
|
94
|
+
'yearType' => @year_type,
|
95
|
+
'totalPeriods' => @total_periods,
|
96
|
+
'startDate' => @start_date,
|
97
|
+
'endDate' => @end_date,
|
98
|
+
'created' => @created,
|
99
|
+
'createdUserId' => @created_user_id,
|
100
|
+
'modified' => @modified,
|
101
|
+
'modifiedUserId' => @modified_user_id,
|
102
|
+
}
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# @return [String] This object converted to a JSON string
|
107
|
+
def to_json(*options)
|
108
|
+
"[#{as_json(*options).to_json(*options)}]"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -41,6 +41,7 @@ module LockstepSdk
|
|
41
41
|
@created_user_id = params.dig(:created_user_id)
|
42
42
|
@modified = params.dig(:modified)
|
43
43
|
@modified_user_id = params.dig(:modified_user_id)
|
44
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
44
45
|
end
|
45
46
|
|
46
47
|
##
|
@@ -107,6 +108,10 @@ module LockstepSdk
|
|
107
108
|
# @return [Uuid] The ID number of the user who most recently modified this address.
|
108
109
|
attr_accessor :modified_user_id
|
109
110
|
|
111
|
+
##
|
112
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
113
|
+
attr_accessor :app_enrollment_id
|
114
|
+
|
110
115
|
##
|
111
116
|
# @return [object] This object as a JSON key-value structure
|
112
117
|
def as_json(options={})
|
@@ -127,6 +132,7 @@ module LockstepSdk
|
|
127
132
|
'createdUserId' => @created_user_id,
|
128
133
|
'modified' => @modified,
|
129
134
|
'modifiedUserId' => @modified_user_id,
|
135
|
+
'appEnrollmentId' => @app_enrollment_id,
|
130
136
|
}
|
131
137
|
end
|
132
138
|
|
@@ -59,6 +59,7 @@ module LockstepSdk
|
|
59
59
|
@created_user_id = params.dig(:created_user_id)
|
60
60
|
@modified = params.dig(:modified)
|
61
61
|
@modified_user_id = params.dig(:modified_user_id)
|
62
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
62
63
|
end
|
63
64
|
|
64
65
|
##
|
@@ -189,6 +190,10 @@ module LockstepSdk
|
|
189
190
|
# @return [Uuid] The ID number of the user who most recently modified this invoice.
|
190
191
|
attr_accessor :modified_user_id
|
191
192
|
|
193
|
+
##
|
194
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
195
|
+
attr_accessor :app_enrollment_id
|
196
|
+
|
192
197
|
##
|
193
198
|
# @return [object] This object as a JSON key-value structure
|
194
199
|
def as_json(options={})
|
@@ -225,6 +230,7 @@ module LockstepSdk
|
|
225
230
|
'createdUserId' => @created_user_id,
|
226
231
|
'modified' => @modified,
|
227
232
|
'modifiedUserId' => @modified_user_id,
|
233
|
+
'appEnrollmentId' => @app_enrollment_id,
|
228
234
|
}
|
229
235
|
end
|
230
236
|
|
@@ -141,15 +141,15 @@ module LockstepSdk
|
|
141
141
|
attr_accessor :modified_user_id
|
142
142
|
|
143
143
|
##
|
144
|
-
# @return [Uuid] AppEnrollmentId
|
144
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
145
145
|
attr_accessor :app_enrollment_id
|
146
146
|
|
147
147
|
##
|
148
|
-
# @return [NoteModel]
|
148
|
+
# @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 `InvoiceLine` and the `ObjectKey` set to the `InvoiceLineId` 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).
|
149
149
|
attr_accessor :notes
|
150
150
|
|
151
151
|
##
|
152
|
-
# @return [AttachmentModel]
|
152
|
+
# @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 `InvoiceLine` and the `ObjectKey` set to the `InvoiceLineId` 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).
|
153
153
|
attr_accessor :attachments
|
154
154
|
|
155
155
|
##
|
@@ -187,23 +187,23 @@ module LockstepSdk
|
|
187
187
|
attr_accessor :primary_ship_to_address_id
|
188
188
|
|
189
189
|
##
|
190
|
-
# @return [Date-time] The date on which this
|
190
|
+
# @return [Date-time] The date on which this invoice record was created.
|
191
191
|
attr_accessor :created
|
192
192
|
|
193
193
|
##
|
194
|
-
# @return [Uuid] The ID number of the user who created this
|
194
|
+
# @return [Uuid] The ID number of the user who created this invoice.
|
195
195
|
attr_accessor :created_user_id
|
196
196
|
|
197
197
|
##
|
198
|
-
# @return [Date-time] The date on which this
|
198
|
+
# @return [Date-time] The date on which this invoice record was last modified.
|
199
199
|
attr_accessor :modified
|
200
200
|
|
201
201
|
##
|
202
|
-
# @return [Uuid] The ID number of the user who most recently modified this
|
202
|
+
# @return [Uuid] The ID number of the user who most recently modified this invoice.
|
203
203
|
attr_accessor :modified_user_id
|
204
204
|
|
205
205
|
##
|
206
|
-
# @return [Uuid] AppEnrollmentId
|
206
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
207
207
|
attr_accessor :app_enrollment_id
|
208
208
|
|
209
209
|
##
|
@@ -231,11 +231,11 @@ module LockstepSdk
|
|
231
231
|
attr_accessor :payments
|
232
232
|
|
233
233
|
##
|
234
|
-
# @return [NoteModel]
|
234
|
+
# @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 `Invoice` and the `ObjectKey` set to the `InvoiceId` 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).
|
235
235
|
attr_accessor :notes
|
236
236
|
|
237
237
|
##
|
238
|
-
# @return [AttachmentModel]
|
238
|
+
# @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 `Invoice` and the `ObjectKey` set to the `InvoiceId` 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).
|
239
239
|
attr_accessor :attachments
|
240
240
|
|
241
241
|
##
|
@@ -255,11 +255,11 @@ module LockstepSdk
|
|
255
255
|
attr_accessor :credit_memos
|
256
256
|
|
257
257
|
##
|
258
|
-
# @return [CustomFieldValueModel]
|
258
|
+
# @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 `Invoice` and the `ObjectKey` set to the `InvoiceId` 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).
|
259
259
|
attr_accessor :custom_field_values
|
260
260
|
|
261
261
|
##
|
262
|
-
# @return [CustomFieldDefinitionModel]
|
262
|
+
# @return [CustomFieldDefinitionModel] A collection of custom fields linked to this record. To retrieve this collection, specify `CustomFieldDefinitions` 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 `Invoice` and the `ObjectKey` set to the `InvoiceId` 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).
|
263
263
|
attr_accessor :custom_field_definitions
|
264
264
|
|
265
265
|
##
|
@@ -293,11 +293,11 @@ module LockstepSdk
|
|
293
293
|
attr_accessor :modified
|
294
294
|
|
295
295
|
##
|
296
|
-
# @return [Boolean] Is the invoice voided?
|
296
|
+
# @return [Boolean] Is the invoice voided? If not specified, we assume the invoice is not voided.
|
297
297
|
attr_accessor :is_voided
|
298
298
|
|
299
299
|
##
|
300
|
-
# @return [Boolean] Is the invoice in dispute?
|
300
|
+
# @return [Boolean] Is the invoice in dispute? If not specified, we assume the invoice is not in dispute.
|
301
301
|
attr_accessor :in_dispute
|
302
302
|
|
303
303
|
##
|
@@ -85,7 +85,7 @@ module LockstepSdk
|
|
85
85
|
attr_accessor :created_user_name
|
86
86
|
|
87
87
|
##
|
88
|
-
# @return [Uuid] AppEnrollmentId
|
88
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
89
89
|
attr_accessor :app_enrollment_id
|
90
90
|
|
91
91
|
##
|
@@ -93,7 +93,7 @@ module LockstepSdk
|
|
93
93
|
attr_accessor :modified_user_id
|
94
94
|
|
95
95
|
##
|
96
|
-
# @return [Uuid] AppEnrollmentId
|
96
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
97
97
|
attr_accessor :app_enrollment_id
|
98
98
|
|
99
99
|
##
|
@@ -132,7 +132,7 @@ module LockstepSdk
|
|
132
132
|
attr_accessor :modified_user_id
|
133
133
|
|
134
134
|
##
|
135
|
-
# @return [Uuid] AppEnrollmentId
|
135
|
+
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
136
136
|
attr_accessor :app_enrollment_id
|
137
137
|
|
138
138
|
##
|
@@ -148,19 +148,19 @@ module LockstepSdk
|
|
148
148
|
attr_accessor :applications
|
149
149
|
|
150
150
|
##
|
151
|
-
# @return [NoteModel]
|
151
|
+
# @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 `Payment` and the `ObjectKey` set to the `PaymentId` 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).
|
152
152
|
attr_accessor :notes
|
153
153
|
|
154
154
|
##
|
155
|
-
# @return [AttachmentModel]
|
155
|
+
# @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 `Payment` and the `ObjectKey` set to the `PaymentId` 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).
|
156
156
|
attr_accessor :attachments
|
157
157
|
|
158
158
|
##
|
159
|
-
# @return [CustomFieldDefinitionModel]
|
159
|
+
# @return [CustomFieldDefinitionModel] A collection of custom fields linked to this record. To retrieve this collection, specify `CustomFieldDefinitions` 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 `Payment` and the `ObjectKey` set to the `PaymentId` 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).
|
160
160
|
attr_accessor :custom_field_definitions
|
161
161
|
|
162
162
|
##
|
163
|
-
# @return [CustomFieldValueModel]
|
163
|
+
# @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 `Payment` and the `ObjectKey` set to the `PaymentId` 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).
|
164
164
|
attr_accessor :custom_field_values
|
165
165
|
|
166
166
|
##
|