lockstep_sdk 2022.4.32.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 +7 -0
- data/lib/lockstep_sdk/clients/activities_client.rb +119 -0
- data/lib/lockstep_sdk/clients/api_keys_client.rb +78 -0
- data/lib/lockstep_sdk/clients/app_enrollments_client.rb +121 -0
- data/lib/lockstep_sdk/clients/applications_client.rb +100 -0
- data/lib/lockstep_sdk/clients/attachments_client.rb +121 -0
- data/lib/lockstep_sdk/clients/code_definitions_client.rb +60 -0
- data/lib/lockstep_sdk/clients/companies_client.rb +123 -0
- data/lib/lockstep_sdk/clients/contacts_client.rb +90 -0
- data/lib/lockstep_sdk/clients/credit_memo_applied_client.rb +92 -0
- data/lib/lockstep_sdk/clients/currencies_client.rb +55 -0
- data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +94 -0
- data/lib/lockstep_sdk/clients/custom_field_values_client.rb +97 -0
- data/lib/lockstep_sdk/clients/definitions_client.rb +95 -0
- data/lib/lockstep_sdk/clients/emails_client.rb +108 -0
- data/lib/lockstep_sdk/clients/invoice_history_client.rb +56 -0
- data/lib/lockstep_sdk/clients/invoices_client.rb +126 -0
- data/lib/lockstep_sdk/clients/leads_client.rb +40 -0
- data/lib/lockstep_sdk/clients/notes_client.rb +84 -0
- data/lib/lockstep_sdk/clients/payment_applications_client.rb +92 -0
- data/lib/lockstep_sdk/clients/payments_client.rb +138 -0
- data/lib/lockstep_sdk/clients/provisioning_client.rb +56 -0
- data/lib/lockstep_sdk/clients/reports_client.rb +114 -0
- data/lib/lockstep_sdk/clients/status_client.rb +53 -0
- data/lib/lockstep_sdk/clients/sync_client.rb +97 -0
- data/lib/lockstep_sdk/clients/user_accounts_client.rb +127 -0
- data/lib/lockstep_sdk/clients/user_roles_client.rb +54 -0
- data/lib/lockstep_sdk/lockstep_api.rb +264 -0
- data/lib/lockstep_sdk/models/activity_model.rb +221 -0
- data/lib/lockstep_sdk/models/activity_stream_item_model.rb +104 -0
- data/lib/lockstep_sdk/models/activity_xref_model.rb +72 -0
- data/lib/lockstep_sdk/models/aging_model.rb +62 -0
- data/lib/lockstep_sdk/models/api_key_model.rb +116 -0
- data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +110 -0
- data/lib/lockstep_sdk/models/app_enrollment_model.rb +151 -0
- data/lib/lockstep_sdk/models/application_model.rb +166 -0
- data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +86 -0
- data/lib/lockstep_sdk/models/ar_header_info_model.rb +170 -0
- data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +140 -0
- data/lib/lockstep_sdk/models/attachment_header_info_model.rb +74 -0
- data/lib/lockstep_sdk/models/attachment_model.rb +122 -0
- data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +56 -0
- data/lib/lockstep_sdk/models/cashflow_report_model.rb +74 -0
- data/lib/lockstep_sdk/models/code_definition_model.rb +99 -0
- data/lib/lockstep_sdk/models/company_model.rb +336 -0
- data/lib/lockstep_sdk/models/connector_info_model.rb +69 -0
- data/lib/lockstep_sdk/models/contact_model.rb +227 -0
- data/lib/lockstep_sdk/models/country_model.rb +116 -0
- data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +150 -0
- data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +116 -0
- data/lib/lockstep_sdk/models/currency_model.rb +74 -0
- data/lib/lockstep_sdk/models/currency_rate_model.rb +68 -0
- data/lib/lockstep_sdk/models/custom_field_definition_model.rb +121 -0
- data/lib/lockstep_sdk/models/custom_field_value_model.rb +115 -0
- data/lib/lockstep_sdk/models/customer_details_model.rb +164 -0
- data/lib/lockstep_sdk/models/customer_details_payment_model.rb +104 -0
- data/lib/lockstep_sdk/models/customer_summary_model.rb +134 -0
- data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +62 -0
- data/lib/lockstep_sdk/models/developer_account_submit_model.rb +62 -0
- data/lib/lockstep_sdk/models/email_model.rb +245 -0
- data/lib/lockstep_sdk/models/erp_info_data_model.rb +63 -0
- data/lib/lockstep_sdk/models/erp_info_model.rb +56 -0
- data/lib/lockstep_sdk/models/erp_model.rb +62 -0
- data/lib/lockstep_sdk/models/invite_data_model.rb +56 -0
- data/lib/lockstep_sdk/models/invite_model.rb +68 -0
- data/lib/lockstep_sdk/models/invite_submit_model.rb +50 -0
- data/lib/lockstep_sdk/models/invoice_address_model.rb +140 -0
- data/lib/lockstep_sdk/models/invoice_history_model.rb +238 -0
- data/lib/lockstep_sdk/models/invoice_line_model.rb +194 -0
- data/lib/lockstep_sdk/models/invoice_model.rb +325 -0
- data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +104 -0
- data/lib/lockstep_sdk/models/invoice_summary_model.rb +134 -0
- data/lib/lockstep_sdk/models/lead_model.rb +74 -0
- data/lib/lockstep_sdk/models/note_model.rb +121 -0
- data/lib/lockstep_sdk/models/payment_applied_model.rb +131 -0
- data/lib/lockstep_sdk/models/payment_detail_header_model.rb +80 -0
- data/lib/lockstep_sdk/models/payment_detail_model.rb +176 -0
- data/lib/lockstep_sdk/models/payment_model.rb +206 -0
- data/lib/lockstep_sdk/models/payment_summary_model.rb +128 -0
- data/lib/lockstep_sdk/models/provisioning_finalize_request_model.rb +74 -0
- data/lib/lockstep_sdk/models/provisioning_model.rb +74 -0
- data/lib/lockstep_sdk/models/provisioning_response_model.rb +86 -0
- data/lib/lockstep_sdk/models/risk_rate_model.rb +98 -0
- data/lib/lockstep_sdk/models/state_model.rb +62 -0
- data/lib/lockstep_sdk/models/status_model.rb +128 -0
- data/lib/lockstep_sdk/models/sync_entity_result_model.rb +74 -0
- data/lib/lockstep_sdk/models/sync_request_model.rb +98 -0
- data/lib/lockstep_sdk/models/sync_submit_model.rb +50 -0
- data/lib/lockstep_sdk/models/transfer_owner_model.rb +56 -0
- data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +50 -0
- data/lib/lockstep_sdk/models/user_account_model.rb +240 -0
- data/lib/lockstep_sdk/models/user_role_model.rb +86 -0
- data/lib/lockstep_sdk/version.rb +3 -0
- metadata +150 -0
@@ -0,0 +1,62 @@
|
|
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
|
+
# @version 2022.4
|
14
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
|
+
#
|
16
|
+
|
17
|
+
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
module LockstepSdk
|
21
|
+
|
22
|
+
##
|
23
|
+
# Represents an aging record
|
24
|
+
class AgingModel
|
25
|
+
|
26
|
+
##
|
27
|
+
# Initialize the AgingModel using the provided prototype
|
28
|
+
def initialize(params = {})
|
29
|
+
@bucket = params.dig(:bucket)
|
30
|
+
@currency_code = params.dig(:currency_code)
|
31
|
+
@outstanding_balance = params.dig(:outstanding_balance)
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# @return [Int32] Aging bucket of outstanding balance data (days past due date of invoice)
|
36
|
+
attr_accessor :bucket
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [String] Currency code of aging bucket
|
40
|
+
attr_accessor :currency_code
|
41
|
+
|
42
|
+
##
|
43
|
+
# @return [Double] Outstanding balance for the given aging bucket
|
44
|
+
attr_accessor :outstanding_balance
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [object] This object as a JSON key-value structure
|
48
|
+
def as_json(options={})
|
49
|
+
{
|
50
|
+
'bucket' => @bucket,
|
51
|
+
'currencyCode' => @currency_code,
|
52
|
+
'outstandingBalance' => @outstanding_balance,
|
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
|
@@ -0,0 +1,116 @@
|
|
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
|
+
# @version 2022.4
|
14
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
|
+
#
|
16
|
+
|
17
|
+
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
module LockstepSdk
|
21
|
+
|
22
|
+
##
|
23
|
+
# An API Key is an authentication token that you may use with the Lockstep API. Because API Keys
|
24
|
+
# do not have an expiration date, they are well suited for unattended processes. Each API Key
|
25
|
+
# is associated with a user, and may be revoked to prevent it from accessing the Lockstep API.
|
26
|
+
# When you create an API Key, make sure to save the value in a secure location. Lockstep cannot
|
27
|
+
# retrieve an API Key once it is created.
|
28
|
+
#
|
29
|
+
# For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
|
30
|
+
class ApiKeyModel
|
31
|
+
|
32
|
+
##
|
33
|
+
# Initialize the ApiKeyModel using the provided prototype
|
34
|
+
def initialize(params = {})
|
35
|
+
@api_key_id = params.dig(:api_key_id)
|
36
|
+
@group_key = params.dig(:group_key)
|
37
|
+
@name = params.dig(:name)
|
38
|
+
@environment = params.dig(:environment)
|
39
|
+
@api_key = params.dig(:api_key)
|
40
|
+
@key_prefix = params.dig(:key_prefix)
|
41
|
+
@created = params.dig(:created)
|
42
|
+
@created_user_id = params.dig(:created_user_id)
|
43
|
+
@revoked = params.dig(:revoked)
|
44
|
+
@revoked_user_id = params.dig(:revoked_user_id)
|
45
|
+
@expires = params.dig(:expires)
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# @return [Uuid] The unique identifier for the API key.
|
50
|
+
attr_accessor :api_key_id
|
51
|
+
|
52
|
+
##
|
53
|
+
# @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).
|
54
|
+
attr_accessor :group_key
|
55
|
+
|
56
|
+
##
|
57
|
+
# @return [String] The name of the API key.
|
58
|
+
attr_accessor :name
|
59
|
+
|
60
|
+
##
|
61
|
+
# @return [String] For convenience, a call to createApiKey will contain the name of the environment for this API key, typically SBX or PRD. This can help you distinguish between keys created on the Sandbox environment from those created on Production.
|
62
|
+
attr_accessor :environment
|
63
|
+
|
64
|
+
##
|
65
|
+
# @return [String] The API key to use for authentication. This will only be returned upon creation of the API key. All other times, this value will be `null`. For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
|
66
|
+
attr_accessor :api_key
|
67
|
+
|
68
|
+
##
|
69
|
+
# @return [String] The first 10 characters of the API key. This information can be used to ensure that you are looking at the correct API Key, but cannot be used for authentication.
|
70
|
+
attr_accessor :key_prefix
|
71
|
+
|
72
|
+
##
|
73
|
+
# @return [Date-time] The date the API key was created.
|
74
|
+
attr_accessor :created
|
75
|
+
|
76
|
+
##
|
77
|
+
# @return [Uuid] The user that created the API key.
|
78
|
+
attr_accessor :created_user_id
|
79
|
+
|
80
|
+
##
|
81
|
+
# @return [Date-time] The date the API key was revoked.
|
82
|
+
attr_accessor :revoked
|
83
|
+
|
84
|
+
##
|
85
|
+
# @return [Uuid] The user who revoked the API key.
|
86
|
+
attr_accessor :revoked_user_id
|
87
|
+
|
88
|
+
##
|
89
|
+
# @return [Date-time] The UTC datetime when the API key expires.
|
90
|
+
attr_accessor :expires
|
91
|
+
|
92
|
+
##
|
93
|
+
# @return [object] This object as a JSON key-value structure
|
94
|
+
def as_json(options={})
|
95
|
+
{
|
96
|
+
'apiKeyId' => @api_key_id,
|
97
|
+
'groupKey' => @group_key,
|
98
|
+
'name' => @name,
|
99
|
+
'environment' => @environment,
|
100
|
+
'apiKey' => @api_key,
|
101
|
+
'keyPrefix' => @key_prefix,
|
102
|
+
'created' => @created,
|
103
|
+
'createdUserId' => @created_user_id,
|
104
|
+
'revoked' => @revoked,
|
105
|
+
'revokedUserId' => @revoked_user_id,
|
106
|
+
'expires' => @expires,
|
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
|
@@ -0,0 +1,110 @@
|
|
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
|
+
# @version 2022.4
|
14
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
|
+
#
|
16
|
+
|
17
|
+
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
module LockstepSdk
|
21
|
+
|
22
|
+
##
|
23
|
+
# App enrollment and custom field merged into one
|
24
|
+
class AppEnrollmentCustomFieldModel
|
25
|
+
|
26
|
+
##
|
27
|
+
# Initialize the AppEnrollmentCustomFieldModel using the provided prototype
|
28
|
+
def initialize(params = {})
|
29
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
30
|
+
@app_id = params.dig(:app_id)
|
31
|
+
@name = params.dig(:name)
|
32
|
+
@app_type = params.dig(:app_type)
|
33
|
+
@group_key = params.dig(:group_key)
|
34
|
+
@custom_field_definition_id = params.dig(:custom_field_definition_id)
|
35
|
+
@custom_field_label = params.dig(:custom_field_label)
|
36
|
+
@data_type = params.dig(:data_type)
|
37
|
+
@sort_order = params.dig(:sort_order)
|
38
|
+
@string_value = params.dig(:string_value)
|
39
|
+
@numeric_value = params.dig(:numeric_value)
|
40
|
+
end
|
41
|
+
|
42
|
+
##
|
43
|
+
# @return [Uuid] Unique id for the app enrollment
|
44
|
+
attr_accessor :app_enrollment_id
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [Uuid] Id of enrolled app
|
48
|
+
attr_accessor :app_id
|
49
|
+
|
50
|
+
##
|
51
|
+
# @return [String] The name of the application
|
52
|
+
attr_accessor :name
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [String] Tag for what type of app the application is
|
56
|
+
attr_accessor :app_type
|
57
|
+
|
58
|
+
##
|
59
|
+
# @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).
|
60
|
+
attr_accessor :group_key
|
61
|
+
|
62
|
+
##
|
63
|
+
# @return [Uuid] Unique Id for the custom field definition
|
64
|
+
attr_accessor :custom_field_definition_id
|
65
|
+
|
66
|
+
##
|
67
|
+
# @return [String] Text to display in-application for custom field
|
68
|
+
attr_accessor :custom_field_label
|
69
|
+
|
70
|
+
##
|
71
|
+
# @return [String] Data type of the custom field definition
|
72
|
+
attr_accessor :data_type
|
73
|
+
|
74
|
+
##
|
75
|
+
# @return [Int32] Used for display logic when multiple app enrollment custom fields exist
|
76
|
+
attr_accessor :sort_order
|
77
|
+
|
78
|
+
##
|
79
|
+
# @return [String] String of data for field
|
80
|
+
attr_accessor :string_value
|
81
|
+
|
82
|
+
##
|
83
|
+
# @return [Double] Number data for field
|
84
|
+
attr_accessor :numeric_value
|
85
|
+
|
86
|
+
##
|
87
|
+
# @return [object] This object as a JSON key-value structure
|
88
|
+
def as_json(options={})
|
89
|
+
{
|
90
|
+
'appEnrollmentId' => @app_enrollment_id,
|
91
|
+
'appId' => @app_id,
|
92
|
+
'name' => @name,
|
93
|
+
'appType' => @app_type,
|
94
|
+
'groupKey' => @group_key,
|
95
|
+
'customFieldDefinitionId' => @custom_field_definition_id,
|
96
|
+
'customFieldLabel' => @custom_field_label,
|
97
|
+
'dataType' => @data_type,
|
98
|
+
'sortOrder' => @sort_order,
|
99
|
+
'stringValue' => @string_value,
|
100
|
+
'numericValue' => @numeric_value,
|
101
|
+
}
|
102
|
+
end
|
103
|
+
|
104
|
+
##
|
105
|
+
# @return [String] This object converted to a JSON string
|
106
|
+
def to_json(*options)
|
107
|
+
"[#{as_json(*options).to_json(*options)}]"
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,151 @@
|
|
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
|
+
# @version 2022.4
|
14
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
|
+
#
|
16
|
+
|
17
|
+
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
module LockstepSdk
|
21
|
+
|
22
|
+
##
|
23
|
+
# An AppEnrollment represents an app that has been enrolled to the current account. When you sign up for an
|
24
|
+
# app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include
|
25
|
+
# connectors and feature enhancement apps. The App Enrollment object contains information about this app, its
|
26
|
+
# configuration, and settings.
|
27
|
+
#
|
28
|
+
# See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
|
29
|
+
class AppEnrollmentModel
|
30
|
+
|
31
|
+
##
|
32
|
+
# Initialize the AppEnrollmentModel using the provided prototype
|
33
|
+
def initialize(params = {})
|
34
|
+
@app_enrollment_id = params.dig(:app_enrollment_id)
|
35
|
+
@app_id = params.dig(:app_id)
|
36
|
+
@group_key = params.dig(:group_key)
|
37
|
+
@is_active = params.dig(:is_active)
|
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
|
+
@cron_settings = params.dig(:cron_settings)
|
43
|
+
@sync_schedule_is_active = params.dig(:sync_schedule_is_active)
|
44
|
+
@app = params.dig(:app)
|
45
|
+
@custom_field_definitions = params.dig(:custom_field_definitions)
|
46
|
+
@custom_field_values = params.dig(:custom_field_values)
|
47
|
+
@last_sync = params.dig(:last_sync)
|
48
|
+
@last_successful_sync = params.dig(:last_successful_sync)
|
49
|
+
@erp_info = params.dig(:erp_info)
|
50
|
+
@connector_info = params.dig(:connector_info)
|
51
|
+
end
|
52
|
+
|
53
|
+
##
|
54
|
+
# @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
|
55
|
+
attr_accessor :app_enrollment_id
|
56
|
+
|
57
|
+
##
|
58
|
+
# @return [Uuid] The ID number of the Application that this enrollment represents. You can fetch information about this Application object by specifying `App` in the "Include" parameter for your request.
|
59
|
+
attr_accessor :app_id
|
60
|
+
|
61
|
+
##
|
62
|
+
# @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).
|
63
|
+
attr_accessor :group_key
|
64
|
+
|
65
|
+
##
|
66
|
+
# @return [Boolean] Determines whether the app enrollment is in use
|
67
|
+
attr_accessor :is_active
|
68
|
+
|
69
|
+
##
|
70
|
+
# @return [Date-time] Created date
|
71
|
+
attr_accessor :created
|
72
|
+
|
73
|
+
##
|
74
|
+
# @return [Uuid] Created user ID
|
75
|
+
attr_accessor :created_user_id
|
76
|
+
|
77
|
+
##
|
78
|
+
# @return [Date-time] Last modified date
|
79
|
+
attr_accessor :modified
|
80
|
+
|
81
|
+
##
|
82
|
+
# @return [Uuid] Last user ID to modify
|
83
|
+
attr_accessor :modified_user_id
|
84
|
+
|
85
|
+
##
|
86
|
+
# @return [String] Stores schedule information for the application enrollment see https://en.wikipedia.org/wiki/Cron
|
87
|
+
attr_accessor :cron_settings
|
88
|
+
|
89
|
+
##
|
90
|
+
# @return [Boolean] Flag indicating if the Sync process should be ran on the specified schedule
|
91
|
+
attr_accessor :sync_schedule_is_active
|
92
|
+
|
93
|
+
##
|
94
|
+
# @return [ApplicationModel] The Application to which this AppEnrollment belongs. Contains general name, description, logo, and other metadata about this application. To retrieve this object, specify `App` in the "Include" parameter for your query.
|
95
|
+
attr_accessor :app
|
96
|
+
|
97
|
+
##
|
98
|
+
# @return [CustomFieldDefinitionModel] All definitions attached to this app. To retrieve this collection, specify `CustomFieldValues` in the "Include" parameter for your query.
|
99
|
+
attr_accessor :custom_field_definitions
|
100
|
+
|
101
|
+
##
|
102
|
+
# @return [CustomFieldValueModel] All values attached to this app. To retrieve this collection, specify `CustomFieldValues` in the "Include" parameter for your query.
|
103
|
+
attr_accessor :custom_field_values
|
104
|
+
|
105
|
+
##
|
106
|
+
# @return [SyncRequestModel] Data about the last sync attached to this app enrollment To retrieve this collection, specify `LastSync` in the "Include" parameter for your query.
|
107
|
+
attr_accessor :last_sync
|
108
|
+
|
109
|
+
##
|
110
|
+
# @return [SyncRequestModel] Data about the last successful sync associated with this enrollment
|
111
|
+
attr_accessor :last_successful_sync
|
112
|
+
|
113
|
+
##
|
114
|
+
# @return [ErpInfoDataModel] Use `ConnectorInfo` instead.
|
115
|
+
attr_accessor :erp_info
|
116
|
+
|
117
|
+
##
|
118
|
+
# @return [ConnectorInfoModel] Optional data necessary to create an app enrollment for a supported connector. Only enter relevant fields for the given connector.
|
119
|
+
attr_accessor :connector_info
|
120
|
+
|
121
|
+
##
|
122
|
+
# @return [object] This object as a JSON key-value structure
|
123
|
+
def as_json(options={})
|
124
|
+
{
|
125
|
+
'appEnrollmentId' => @app_enrollment_id,
|
126
|
+
'appId' => @app_id,
|
127
|
+
'groupKey' => @group_key,
|
128
|
+
'isActive' => @is_active,
|
129
|
+
'created' => @created,
|
130
|
+
'createdUserId' => @created_user_id,
|
131
|
+
'modified' => @modified,
|
132
|
+
'modifiedUserId' => @modified_user_id,
|
133
|
+
'cronSettings' => @cron_settings,
|
134
|
+
'syncScheduleIsActive' => @sync_schedule_is_active,
|
135
|
+
'app' => @app,
|
136
|
+
'customFieldDefinitions' => @custom_field_definitions,
|
137
|
+
'customFieldValues' => @custom_field_values,
|
138
|
+
'lastSync' => @last_sync,
|
139
|
+
'lastSuccessfulSync' => @last_successful_sync,
|
140
|
+
'erpInfo' => @erp_info,
|
141
|
+
'connectorInfo' => @connector_info,
|
142
|
+
}
|
143
|
+
end
|
144
|
+
|
145
|
+
##
|
146
|
+
# @return [String] This object converted to a JSON string
|
147
|
+
def to_json(*options)
|
148
|
+
"[#{as_json(*options).to_json(*options)}]"
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -0,0 +1,166 @@
|
|
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
|
+
# @version 2022.4
|
14
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
|
+
#
|
16
|
+
|
17
|
+
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
module LockstepSdk
|
21
|
+
|
22
|
+
##
|
23
|
+
# An Application represents a feature available to customers within the Lockstep Platform. You can create
|
24
|
+
# Applications by working with your Lockstep business development manager and publish them on the platform
|
25
|
+
# so that customers can browse and find your Application on the Lockstep Platform Marketplace. When a
|
26
|
+
# customer adds an Application to their account, they obtain an AppEnrollment which represents that customer's
|
27
|
+
# instance of this Application. The customer-specific AppEnrollment contains a customer's configuration data
|
28
|
+
# for the Application, which is not customer-specific.
|
29
|
+
#
|
30
|
+
# See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
|
31
|
+
# --swaggerCategory:Platform
|
32
|
+
class ApplicationModel
|
33
|
+
|
34
|
+
##
|
35
|
+
# Initialize the ApplicationModel using the provided prototype
|
36
|
+
def initialize(params = {})
|
37
|
+
@app_id = params.dig(:app_id)
|
38
|
+
@name = params.dig(:name)
|
39
|
+
@description = params.dig(:description)
|
40
|
+
@app_type = params.dig(:app_type)
|
41
|
+
@owner_id = params.dig(:owner_id)
|
42
|
+
@project_url = params.dig(:project_url)
|
43
|
+
@icon_url = params.dig(:icon_url)
|
44
|
+
@price_terms = params.dig(:price_terms)
|
45
|
+
@created_user_id = params.dig(:created_user_id)
|
46
|
+
@modified_user_id = params.dig(:modified_user_id)
|
47
|
+
@created = params.dig(:created)
|
48
|
+
@modified = params.dig(:modified)
|
49
|
+
@is_active = params.dig(:is_active)
|
50
|
+
@wiki_url = params.dig(:wiki_url)
|
51
|
+
@group_key = params.dig(:group_key)
|
52
|
+
@notes = params.dig(:notes)
|
53
|
+
@attachments = params.dig(:attachments)
|
54
|
+
@custom_field_definitions = params.dig(:custom_field_definitions)
|
55
|
+
@custom_field_values = params.dig(:custom_field_values)
|
56
|
+
end
|
57
|
+
|
58
|
+
##
|
59
|
+
# @return [Uuid] A unique code identifying this application
|
60
|
+
attr_accessor :app_id
|
61
|
+
|
62
|
+
##
|
63
|
+
# @return [String] The name of this application
|
64
|
+
attr_accessor :name
|
65
|
+
|
66
|
+
##
|
67
|
+
# @return [String] Brief summary of this application shown as a subtitle
|
68
|
+
attr_accessor :description
|
69
|
+
|
70
|
+
##
|
71
|
+
# @return [String] Tag for what type of app this is
|
72
|
+
attr_accessor :app_type
|
73
|
+
|
74
|
+
##
|
75
|
+
# @return [Uuid] The ID of the owner
|
76
|
+
attr_accessor :owner_id
|
77
|
+
|
78
|
+
##
|
79
|
+
# @return [Uri] The URL to visit for more information about this application
|
80
|
+
attr_accessor :project_url
|
81
|
+
|
82
|
+
##
|
83
|
+
# @return [Uri] The URL for the icon for this application
|
84
|
+
attr_accessor :icon_url
|
85
|
+
|
86
|
+
##
|
87
|
+
# @return [String] The description of the price for this application
|
88
|
+
attr_accessor :price_terms
|
89
|
+
|
90
|
+
##
|
91
|
+
# @return [Uuid] The ID of the user who created this application
|
92
|
+
attr_accessor :created_user_id
|
93
|
+
|
94
|
+
##
|
95
|
+
# @return [Uuid] The ID of the user who last modified this application
|
96
|
+
attr_accessor :modified_user_id
|
97
|
+
|
98
|
+
##
|
99
|
+
# @return [Date-time] The date this application was created
|
100
|
+
attr_accessor :created
|
101
|
+
|
102
|
+
##
|
103
|
+
# @return [Date-time] The date this application was last modified
|
104
|
+
attr_accessor :modified
|
105
|
+
|
106
|
+
##
|
107
|
+
# @return [Boolean] Flag indicating if the application is active.
|
108
|
+
attr_accessor :is_active
|
109
|
+
|
110
|
+
##
|
111
|
+
# @return [Uri] URL to the Wiki for the Application
|
112
|
+
attr_accessor :wiki_url
|
113
|
+
|
114
|
+
##
|
115
|
+
# @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).
|
116
|
+
attr_accessor :group_key
|
117
|
+
|
118
|
+
##
|
119
|
+
# @return [NoteModel] All notes attached to this app. To retrieve this collection, specify `Notes` in the "Include" parameter for your query.
|
120
|
+
attr_accessor :notes
|
121
|
+
|
122
|
+
##
|
123
|
+
# @return [AttachmentModel] All attachments attached to this app. To retrieve this collection, specify `Attachments` in the "Include" parameter for your query.
|
124
|
+
attr_accessor :attachments
|
125
|
+
|
126
|
+
##
|
127
|
+
# @return [CustomFieldDefinitionModel] All definitions attached to the application. To retrieve this collection, specify `CustomFieldValues` in the "Include" parameter for your query.
|
128
|
+
attr_accessor :custom_field_definitions
|
129
|
+
|
130
|
+
##
|
131
|
+
# @return [CustomFieldValueModel] All values attached to the application. To retrieve this collection, specify `CustomFieldValues` in the "Include" parameter for your query.
|
132
|
+
attr_accessor :custom_field_values
|
133
|
+
|
134
|
+
##
|
135
|
+
# @return [object] This object as a JSON key-value structure
|
136
|
+
def as_json(options={})
|
137
|
+
{
|
138
|
+
'appId' => @app_id,
|
139
|
+
'name' => @name,
|
140
|
+
'description' => @description,
|
141
|
+
'appType' => @app_type,
|
142
|
+
'ownerId' => @owner_id,
|
143
|
+
'projectUrl' => @project_url,
|
144
|
+
'iconUrl' => @icon_url,
|
145
|
+
'priceTerms' => @price_terms,
|
146
|
+
'createdUserId' => @created_user_id,
|
147
|
+
'modifiedUserId' => @modified_user_id,
|
148
|
+
'created' => @created,
|
149
|
+
'modified' => @modified,
|
150
|
+
'isActive' => @is_active,
|
151
|
+
'wikiURL' => @wiki_url,
|
152
|
+
'groupKey' => @group_key,
|
153
|
+
'notes' => @notes,
|
154
|
+
'attachments' => @attachments,
|
155
|
+
'customFieldDefinitions' => @custom_field_definitions,
|
156
|
+
'customFieldValues' => @custom_field_values,
|
157
|
+
}
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# @return [String] This object converted to a JSON string
|
162
|
+
def to_json(*options)
|
163
|
+
"[#{as_json(*options).to_json(*options)}]"
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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
|
+
# @version 2022.4
|
14
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
|
+
#
|
16
|
+
|
17
|
+
|
18
|
+
require 'json'
|
19
|
+
|
20
|
+
module LockstepSdk
|
21
|
+
|
22
|
+
##
|
23
|
+
# Aggregated Accounts Receivable Aging information.
|
24
|
+
class ArAgingHeaderInfoModel
|
25
|
+
|
26
|
+
##
|
27
|
+
# Initialize the ArAgingHeaderInfoModel using the provided prototype
|
28
|
+
def initialize(params = {})
|
29
|
+
@group_key = params.dig(:group_key)
|
30
|
+
@report_bucket = params.dig(:report_bucket)
|
31
|
+
@total_customers = params.dig(:total_customers)
|
32
|
+
@total_invoices_outstanding = params.dig(:total_invoices_outstanding)
|
33
|
+
@total_outstanding_amount = params.dig(:total_outstanding_amount)
|
34
|
+
@total_ar_amount = params.dig(:total_ar_amount)
|
35
|
+
@percentage_of_total_ar = params.dig(:percentage_of_total_ar)
|
36
|
+
end
|
37
|
+
|
38
|
+
##
|
39
|
+
# @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).
|
40
|
+
attr_accessor :group_key
|
41
|
+
|
42
|
+
##
|
43
|
+
# @return [String] The aging bucket this data belongs to.
|
44
|
+
attr_accessor :report_bucket
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [Int32] The total number of customers.
|
48
|
+
attr_accessor :total_customers
|
49
|
+
|
50
|
+
##
|
51
|
+
# @return [Int32] The total number of invoices outstanding.
|
52
|
+
attr_accessor :total_invoices_outstanding
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [Double] The total amount outstanding.
|
56
|
+
attr_accessor :total_outstanding_amount
|
57
|
+
|
58
|
+
##
|
59
|
+
# @return [Double] The total amount for AR.
|
60
|
+
attr_accessor :total_ar_amount
|
61
|
+
|
62
|
+
##
|
63
|
+
# @return [Double] Portion of Total AR this data represents.
|
64
|
+
attr_accessor :percentage_of_total_ar
|
65
|
+
|
66
|
+
##
|
67
|
+
# @return [object] This object as a JSON key-value structure
|
68
|
+
def as_json(options={})
|
69
|
+
{
|
70
|
+
'groupKey' => @group_key,
|
71
|
+
'reportBucket' => @report_bucket,
|
72
|
+
'totalCustomers' => @total_customers,
|
73
|
+
'totalInvoicesOutstanding' => @total_invoices_outstanding,
|
74
|
+
'totalOutstandingAmount' => @total_outstanding_amount,
|
75
|
+
'totalArAmount' => @total_ar_amount,
|
76
|
+
'percentageOfTotalAr' => @percentage_of_total_ar,
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# @return [String] This object converted to a JSON string
|
82
|
+
def to_json(*options)
|
83
|
+
"[#{as_json(*options).to_json(*options)}]"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|