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.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/lib/lockstep_sdk/clients/activities_client.rb +119 -0
  3. data/lib/lockstep_sdk/clients/api_keys_client.rb +78 -0
  4. data/lib/lockstep_sdk/clients/app_enrollments_client.rb +121 -0
  5. data/lib/lockstep_sdk/clients/applications_client.rb +100 -0
  6. data/lib/lockstep_sdk/clients/attachments_client.rb +121 -0
  7. data/lib/lockstep_sdk/clients/code_definitions_client.rb +60 -0
  8. data/lib/lockstep_sdk/clients/companies_client.rb +123 -0
  9. data/lib/lockstep_sdk/clients/contacts_client.rb +90 -0
  10. data/lib/lockstep_sdk/clients/credit_memo_applied_client.rb +92 -0
  11. data/lib/lockstep_sdk/clients/currencies_client.rb +55 -0
  12. data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +94 -0
  13. data/lib/lockstep_sdk/clients/custom_field_values_client.rb +97 -0
  14. data/lib/lockstep_sdk/clients/definitions_client.rb +95 -0
  15. data/lib/lockstep_sdk/clients/emails_client.rb +108 -0
  16. data/lib/lockstep_sdk/clients/invoice_history_client.rb +56 -0
  17. data/lib/lockstep_sdk/clients/invoices_client.rb +126 -0
  18. data/lib/lockstep_sdk/clients/leads_client.rb +40 -0
  19. data/lib/lockstep_sdk/clients/notes_client.rb +84 -0
  20. data/lib/lockstep_sdk/clients/payment_applications_client.rb +92 -0
  21. data/lib/lockstep_sdk/clients/payments_client.rb +138 -0
  22. data/lib/lockstep_sdk/clients/provisioning_client.rb +56 -0
  23. data/lib/lockstep_sdk/clients/reports_client.rb +114 -0
  24. data/lib/lockstep_sdk/clients/status_client.rb +53 -0
  25. data/lib/lockstep_sdk/clients/sync_client.rb +97 -0
  26. data/lib/lockstep_sdk/clients/user_accounts_client.rb +127 -0
  27. data/lib/lockstep_sdk/clients/user_roles_client.rb +54 -0
  28. data/lib/lockstep_sdk/lockstep_api.rb +264 -0
  29. data/lib/lockstep_sdk/models/activity_model.rb +221 -0
  30. data/lib/lockstep_sdk/models/activity_stream_item_model.rb +104 -0
  31. data/lib/lockstep_sdk/models/activity_xref_model.rb +72 -0
  32. data/lib/lockstep_sdk/models/aging_model.rb +62 -0
  33. data/lib/lockstep_sdk/models/api_key_model.rb +116 -0
  34. data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +110 -0
  35. data/lib/lockstep_sdk/models/app_enrollment_model.rb +151 -0
  36. data/lib/lockstep_sdk/models/application_model.rb +166 -0
  37. data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +86 -0
  38. data/lib/lockstep_sdk/models/ar_header_info_model.rb +170 -0
  39. data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +140 -0
  40. data/lib/lockstep_sdk/models/attachment_header_info_model.rb +74 -0
  41. data/lib/lockstep_sdk/models/attachment_model.rb +122 -0
  42. data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +56 -0
  43. data/lib/lockstep_sdk/models/cashflow_report_model.rb +74 -0
  44. data/lib/lockstep_sdk/models/code_definition_model.rb +99 -0
  45. data/lib/lockstep_sdk/models/company_model.rb +336 -0
  46. data/lib/lockstep_sdk/models/connector_info_model.rb +69 -0
  47. data/lib/lockstep_sdk/models/contact_model.rb +227 -0
  48. data/lib/lockstep_sdk/models/country_model.rb +116 -0
  49. data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +150 -0
  50. data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +116 -0
  51. data/lib/lockstep_sdk/models/currency_model.rb +74 -0
  52. data/lib/lockstep_sdk/models/currency_rate_model.rb +68 -0
  53. data/lib/lockstep_sdk/models/custom_field_definition_model.rb +121 -0
  54. data/lib/lockstep_sdk/models/custom_field_value_model.rb +115 -0
  55. data/lib/lockstep_sdk/models/customer_details_model.rb +164 -0
  56. data/lib/lockstep_sdk/models/customer_details_payment_model.rb +104 -0
  57. data/lib/lockstep_sdk/models/customer_summary_model.rb +134 -0
  58. data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +62 -0
  59. data/lib/lockstep_sdk/models/developer_account_submit_model.rb +62 -0
  60. data/lib/lockstep_sdk/models/email_model.rb +245 -0
  61. data/lib/lockstep_sdk/models/erp_info_data_model.rb +63 -0
  62. data/lib/lockstep_sdk/models/erp_info_model.rb +56 -0
  63. data/lib/lockstep_sdk/models/erp_model.rb +62 -0
  64. data/lib/lockstep_sdk/models/invite_data_model.rb +56 -0
  65. data/lib/lockstep_sdk/models/invite_model.rb +68 -0
  66. data/lib/lockstep_sdk/models/invite_submit_model.rb +50 -0
  67. data/lib/lockstep_sdk/models/invoice_address_model.rb +140 -0
  68. data/lib/lockstep_sdk/models/invoice_history_model.rb +238 -0
  69. data/lib/lockstep_sdk/models/invoice_line_model.rb +194 -0
  70. data/lib/lockstep_sdk/models/invoice_model.rb +325 -0
  71. data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +104 -0
  72. data/lib/lockstep_sdk/models/invoice_summary_model.rb +134 -0
  73. data/lib/lockstep_sdk/models/lead_model.rb +74 -0
  74. data/lib/lockstep_sdk/models/note_model.rb +121 -0
  75. data/lib/lockstep_sdk/models/payment_applied_model.rb +131 -0
  76. data/lib/lockstep_sdk/models/payment_detail_header_model.rb +80 -0
  77. data/lib/lockstep_sdk/models/payment_detail_model.rb +176 -0
  78. data/lib/lockstep_sdk/models/payment_model.rb +206 -0
  79. data/lib/lockstep_sdk/models/payment_summary_model.rb +128 -0
  80. data/lib/lockstep_sdk/models/provisioning_finalize_request_model.rb +74 -0
  81. data/lib/lockstep_sdk/models/provisioning_model.rb +74 -0
  82. data/lib/lockstep_sdk/models/provisioning_response_model.rb +86 -0
  83. data/lib/lockstep_sdk/models/risk_rate_model.rb +98 -0
  84. data/lib/lockstep_sdk/models/state_model.rb +62 -0
  85. data/lib/lockstep_sdk/models/status_model.rb +128 -0
  86. data/lib/lockstep_sdk/models/sync_entity_result_model.rb +74 -0
  87. data/lib/lockstep_sdk/models/sync_request_model.rb +98 -0
  88. data/lib/lockstep_sdk/models/sync_submit_model.rb +50 -0
  89. data/lib/lockstep_sdk/models/transfer_owner_model.rb +56 -0
  90. data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +50 -0
  91. data/lib/lockstep_sdk/models/user_account_model.rb +240 -0
  92. data/lib/lockstep_sdk/models/user_role_model.rb +86 -0
  93. data/lib/lockstep_sdk/version.rb +3 -0
  94. metadata +150 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8b854dd68a25a3040b228316da8c16fece271f461d6fde254e48767650d43421
4
+ data.tar.gz: 268e04ddd7e8e2fd2dc773b978af09bdd281c9b61b83a5d10c122ebd75c31dba
5
+ SHA512:
6
+ metadata.gz: e949c4841b20bbd085b84d4f4cd3d6d07d047dfb508107e38178a5279a6550475ad2f05657aca9ccdb5fbfe4ec18fcd0b1af6d29369c3c317d466bcf03a73524
7
+ data.tar.gz: 48366d61bc0e58539793be755743d8f787ca4737d012a69266bc9eca09c2b08daada9f9afdca7bcd75ee5d66bb131b7302156103cbbaf9a4261e28de41fc190e
@@ -0,0 +1,119 @@
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 'awrence'
19
+
20
+ class ActivitiesClient
21
+
22
+ ##
23
+ # Initialize the ActivitiesClient class with a lockstepsdk instance.
24
+ # @param lockstepsdk [LockstepApi] The Lockstep API client object for this connection
25
+ def initialize(lockstepsdk)
26
+ @lockstepsdk = lockstepsdk
27
+ end
28
+
29
+
30
+ ##
31
+ # Retrieves the Activity specified by this unique identifier, optionally including nested data sets.
32
+ #
33
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
34
+ #
35
+ # @param id [uuid] The unique Lockstep Platform ID number of this Activity
36
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Company, Attachments, CustomFields, Notes, References, and UserAssignedToName
37
+ def retrieve_activity(id:, include_param:)
38
+ path = "/api/v1/Activities/#{id}"
39
+ params = {:include => include_param}
40
+ @lockstepsdk.request(:get, path, nil, params)
41
+ end
42
+
43
+ ##
44
+ # Updates an activity that matches the specified id with the requested information.
45
+ #
46
+ # The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. If you do not provide the name of a field, that field will remain unchanged. This allows you to ensure that you are only updating the specific fields desired.
47
+ #
48
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
49
+ #
50
+ # @param id [uuid] The unique Lockstep Platform ID number of the Activity to update
51
+ # @param body [object] A list of changes to apply to this Activity
52
+ def update_activity(id:, body:)
53
+ path = "/api/v1/Activities/#{id}"
54
+ @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil)
55
+ end
56
+
57
+ ##
58
+ # Delete the Activity referred to by this unique identifier.
59
+ #
60
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
61
+ #
62
+ # @param id [uuid] The unique Lockstep Platform ID number of the Activity to delete
63
+ def delete_activity(id:)
64
+ path = "/api/v1/Activities/#{id}"
65
+ @lockstepsdk.request(:delete, path, nil, nil)
66
+ end
67
+
68
+ ##
69
+ # Creates one or more activities from a given model.
70
+ #
71
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
72
+ #
73
+ # @param body [ActivityModel] The Activities to create
74
+ def create_activities(body:)
75
+ path = "/api/v1/Activities"
76
+ @lockstepsdk.request(:post, path, body, nil)
77
+ end
78
+
79
+ ##
80
+ # Queries Activities for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
81
+ #
82
+ # More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
83
+ #
84
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
85
+ #
86
+ # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
87
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Company, Attachments, CustomFields, Notes, References, and UserAssignedToName
88
+ # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
89
+ # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
90
+ # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
91
+ def query_activities(filter:, include_param:, order:, page_size:, page_number:)
92
+ path = "/api/v1/Activities/query"
93
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
94
+ @lockstepsdk.request(:get, path, nil, params)
95
+ end
96
+
97
+ ##
98
+ # Retrieves a list of items representing the activity stream for the supplied activity id.
99
+ #
100
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
101
+ #
102
+ # @param id [uuid] The unique Lockstep Platform ID number of this Activity
103
+ def retrieve_activity_stream(id:)
104
+ path = "/api/v1/Activities/#{id}/stream"
105
+ @lockstepsdk.request(:get, path, nil, nil)
106
+ end
107
+
108
+ ##
109
+ # Forwards an activity by creating a new activity with all child references and assigning the new activity to a new user.
110
+ #
111
+ # An Activity contains information about work being done on a specific accounting task. You can use Activities to track information about who has been assigned a specific task, the current status of the task, the name and description given for the particular task, the priority of the task, and any amounts collected, paid, or credited for the task.
112
+ #
113
+ # @param activity_id [uuid]
114
+ # @param user_id [uuid]
115
+ def forward_activity(activity_id:, user_id:)
116
+ path = "/api/v1/Activities/#{activityId}/forward/#{userId}"
117
+ @lockstepsdk.request(:post, path, nil, nil)
118
+ end
119
+ end
@@ -0,0 +1,78 @@
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 'awrence'
19
+
20
+ class ApiKeysClient
21
+
22
+ ##
23
+ # Initialize the ApiKeysClient class with a lockstepsdk instance.
24
+ # @param lockstepsdk [LockstepApi] The Lockstep API client object for this connection
25
+ def initialize(lockstepsdk)
26
+ @lockstepsdk = lockstepsdk
27
+ end
28
+
29
+
30
+ ##
31
+ # Retrieves the API Key with this identifier.
32
+ #
33
+ # An API Key is an authentication token that you may use with the Lockstep API. Because API Keys do not have an expiration date, they are well suited for unattended processes. Each API Key is associated with a user, and may be revoked to prevent it from accessing the Lockstep API. When you create an API Key, make sure to save the value in a secure location. Lockstep cannot retrieve an API Key once it is created. For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
34
+ #
35
+ # @param id [uuid] The unique ID number of the API Key to retrieve
36
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future.
37
+ def retrieve_api_key(id:, include_param:)
38
+ path = "/api/v1/ApiKeys/#{id}"
39
+ params = {:include => include_param}
40
+ @lockstepsdk.request(:get, path, nil, params)
41
+ end
42
+
43
+ ##
44
+ # Immediately revokes the API Key with the specified id so it cannot be used to call the API. The Lockstep Platform guarantees that revocation will be received by all servers within five minutes of revocation. API calls made using this API key after the revocation will fail. A revoked API Key cannot be un-revoked and may be removed 60 days after revocation.
45
+ #
46
+ # An API Key is an authentication token that you may use with the Lockstep API. Because API Keys do not have an expiration date, they are well suited for unattended processes. Each API Key is associated with a user, and may be revoked to prevent it from accessing the Lockstep API. When you create an API Key, make sure to save the value in a secure location. Lockstep cannot retrieve an API Key once it is created. For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
47
+ #
48
+ # @param id [uuid] The unique Lockstep Platform ID number of this API Key
49
+ def revoke_api_key(id:)
50
+ path = "/api/v1/ApiKeys/#{id}"
51
+ @lockstepsdk.request(:delete, path, nil, nil)
52
+ end
53
+
54
+ ##
55
+ # Creates an API key with the specified name.
56
+ #
57
+ # An API Key is an authentication token that you may use with the Lockstep API. Because API Keys do not have an expiration date, they are well suited for unattended processes. Each API Key is associated with a user, and may be revoked to prevent it from accessing the Lockstep API. When you create an API Key, make sure to save the value in a secure location. Lockstep cannot retrieve an API Key once it is created. For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
58
+ #
59
+ # @param body [ApiKeyModel] Metadata about the API Key to create.
60
+ def create_api_key(body:)
61
+ path = "/api/v1/ApiKeys"
62
+ @lockstepsdk.request(:post, path, body, nil)
63
+ end
64
+
65
+ ##
66
+ # Queries API Keys for this user using the specified filtering, sorting, nested fetch, and pagination rules requested. An API Key is an authentication token that you may use with the Lockstep API. Because API Keys do not have an expiration date, they are well suited for unattended processes. Each API Key is associated with a user, and may be revoked to prevent it from accessing the Lockstep API. When you create an API Key, make sure to save the value in a secure location. Lockstep cannot retrieve an API Key once it is created. For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
67
+ #
68
+ # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
69
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future.
70
+ # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
71
+ # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
72
+ # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
73
+ def query_api_keys(filter:, include_param:, order:, page_size:, page_number:)
74
+ path = "/api/v1/ApiKeys/query"
75
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
76
+ @lockstepsdk.request(:get, path, nil, params)
77
+ end
78
+ end
@@ -0,0 +1,121 @@
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 'awrence'
19
+
20
+ class AppEnrollmentsClient
21
+
22
+ ##
23
+ # Initialize the AppEnrollmentsClient class with a lockstepsdk instance.
24
+ # @param lockstepsdk [LockstepApi] The Lockstep API client object for this connection
25
+ def initialize(lockstepsdk)
26
+ @lockstepsdk = lockstepsdk
27
+ end
28
+
29
+
30
+ ##
31
+ # Retrieves the App Enrollment with this identifier.
32
+ #
33
+ # An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
34
+ #
35
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
36
+ #
37
+ # @param id [uuid] The unique ID number of the App Enrollment to retrieve
38
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: App, CustomFields, LastSync, LastSuccessfulSync
39
+ def retrieve_app_enrollment(id:, include_param:)
40
+ path = "/api/v1/AppEnrollments/#{id}"
41
+ params = {:include => include_param}
42
+ @lockstepsdk.request(:get, path, nil, params)
43
+ end
44
+
45
+ ##
46
+ # Updates an existing App Enrollment with the information supplied to this PATCH call.
47
+ #
48
+ # The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. For example, you can provide the field name "IsActive" and specify the new value "False"; this API will then change the value of IsActive to false.
49
+ #
50
+ # An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
51
+ #
52
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
53
+ #
54
+ # @param id [uuid] The unique ID number of the App Enrollment to update
55
+ # @param body [object] A list of changes to apply to this App Enrollment
56
+ def update_app_enrollment(id:, body:)
57
+ path = "/api/v1/AppEnrollments/#{id}"
58
+ @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil)
59
+ end
60
+
61
+ ##
62
+ # Deletes the App Enrollment referred to by this unique identifier. An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
63
+ #
64
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
65
+ #
66
+ # @param id [uuid] The unique ID number of the App Enrollment to delete
67
+ # @param remove_enrollment_data [boolean] Option to remove all associated app enrollment data when deleting app enrollment (default false)
68
+ def delete_app_enrollment(id:, remove_enrollment_data:)
69
+ path = "/api/v1/AppEnrollments/#{id}"
70
+ params = {:removeEnrollmentData => remove_enrollment_data}
71
+ @lockstepsdk.request(:delete, path, nil, params)
72
+ end
73
+
74
+ ##
75
+ # Creates one or more App Enrollments within this account and returns the records as created.
76
+ #
77
+ # An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
78
+ #
79
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
80
+ #
81
+ # @param body [AppEnrollmentModel] The App Enrollments to create
82
+ def create_app_enrollments(body:)
83
+ path = "/api/v1/AppEnrollments"
84
+ @lockstepsdk.request(:post, path, body, nil)
85
+ end
86
+
87
+ ##
88
+ # Queries App Enrollments for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
89
+ #
90
+ # More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
91
+ #
92
+ # An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
93
+ #
94
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
95
+ #
96
+ # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
97
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: App, CustomFields, LastSync, LastSuccessfulSync
98
+ # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
99
+ # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
100
+ # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
101
+ def query_app_enrollments(filter:, include_param:, order:, page_size:, page_number:)
102
+ path = "/api/v1/AppEnrollments/query"
103
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
104
+ @lockstepsdk.request(:get, path, nil, params)
105
+ end
106
+
107
+ ##
108
+ # Queries custom fields settings for app enrollment within the Lockstep platform using the specified filtering, sorting, nested fetch, and pagination rules requested.
109
+ #
110
+ # More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
111
+ #
112
+ # An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
113
+ #
114
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
115
+ #
116
+ # @param id [uuid] The unique ID number of the App Enrollment for which we retrieve custom fields
117
+ def query_enrollment_fields(id:)
118
+ path = "/api/v1/AppEnrollments/settings/#{id}"
119
+ @lockstepsdk.request(:get, path, nil, nil)
120
+ end
121
+ end
@@ -0,0 +1,100 @@
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 'awrence'
19
+
20
+ class ApplicationsClient
21
+
22
+ ##
23
+ # Initialize the ApplicationsClient class with a lockstepsdk instance.
24
+ # @param lockstepsdk [LockstepApi] The Lockstep API client object for this connection
25
+ def initialize(lockstepsdk)
26
+ @lockstepsdk = lockstepsdk
27
+ end
28
+
29
+
30
+ ##
31
+ # Retrieves the Application with this identifier.
32
+ #
33
+ # An Application represents a feature available to customers within the Lockstep Platform. You can create Applications by working with your Lockstep business development manager and publish them on the platform so that customers can browse and find your Application on the Lockstep Platform Marketplace. When a customer adds an Application to their account, they obtain an AppEnrollment which represents that customer's instance of this Application. The customer-specific AppEnrollment contains a customer's configuration data for the Application, which is not customer-specific.
34
+ #
35
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
36
+ #
37
+ # @param id [uuid] The unique ID number of the Application to retrieve
38
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Notes, Attachments, CustomFields
39
+ def retrieve_application(id:, include_param:)
40
+ path = "/api/v1/Applications/#{id}"
41
+ params = {:include => include_param}
42
+ @lockstepsdk.request(:get, path, nil, params)
43
+ end
44
+
45
+ ##
46
+ # Updates an existing Application with the information supplied to this PATCH call.
47
+ #
48
+ # The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. For example, you can provide the field name "IsActive" and specify the new value "False"; this API will then change the value of IsActive to false. An Application represents a feature available to customers within the Lockstep Platform. You can create Applications by working with your Lockstep business development manager and publish them on the platform so that customers can browse and find your Application on the Lockstep Platform Marketplace. When a customer adds an Application to their account, they obtain an AppEnrollment which represents that customer's instance of this Application. The customer-specific AppEnrollment contains a customer's configuration data for the Application, which is not customer-specific.
49
+ #
50
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
51
+ #
52
+ # @param id [uuid] The unique ID number of the Application to update
53
+ # @param body [object] A list of changes to apply to this Application
54
+ def update_application(id:, body:)
55
+ path = "/api/v1/Applications/#{id}"
56
+ @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil)
57
+ end
58
+
59
+ ##
60
+ # Deletes the Application referred to by this unique identifier. Information about this Application is retained but after the DELETE call, this Application is no longer available for use on the Lockstep Platform. An Application represents a feature available to customers within the Lockstep Platform. You can create Applications by working with your Lockstep business development manager and publish them on the platform so that customers can browse and find your Application on the Lockstep Platform Marketplace. When a customer adds an Application to their account, they obtain an AppEnrollment which represents that customer's instance of this Application. The customer-specific AppEnrollment contains a customer's configuration data for the Application, which is not customer-specific.
61
+ #
62
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
63
+ #
64
+ # @param id [uuid] The unique ID number of the Application to delete
65
+ def delete_application(id:)
66
+ path = "/api/v1/Applications/#{id}"
67
+ @lockstepsdk.request(:delete, path, nil, nil)
68
+ end
69
+
70
+ ##
71
+ # Creates one or more Applications and returns the records as created. Applications are universal and available across all accounts.
72
+ #
73
+ # An Application represents a feature available to customers within the Lockstep Platform. You can create Applications by working with your Lockstep business development manager and publish them on the platform so that customers can browse and find your Application on the Lockstep Platform Marketplace. When a customer adds an Application to their account, they obtain an AppEnrollment which represents that customer's instance of this Application. The customer-specific AppEnrollment contains a customer's configuration data for the Application, which is not customer-specific.
74
+ #
75
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
76
+ #
77
+ # @param body [ApplicationModel] The Applications to create
78
+ def create_applications(body:)
79
+ path = "/api/v1/Applications"
80
+ @lockstepsdk.request(:post, path, body, nil)
81
+ end
82
+
83
+ ##
84
+ # Queries Applications on the Lockstep Platform using the specified filtering, sorting, nested fetch, and pagination rules requested.
85
+ #
86
+ # More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website. An Application represents a feature available to customers within the Lockstep Platform. You can create Applications by working with your Lockstep business development manager and publish them on the platform so that customers can browse and find your Application on the Lockstep Platform Marketplace. When a customer adds an Application to their account, they obtain an AppEnrollment which represents that customer's instance of this Application. The customer-specific AppEnrollment contains a customer's configuration data for the Application, which is not customer-specific.
87
+ #
88
+ # See [Applications and Enrollments](https://developer.lockstep.io/docs/applications-and-enrollments) for more information.
89
+ #
90
+ # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
91
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Notes, Attachments, CustomFields
92
+ # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
93
+ # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
94
+ # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
95
+ def query_applications(filter:, include_param:, order:, page_size:, page_number:)
96
+ path = "/api/v1/Applications/query"
97
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
98
+ @lockstepsdk.request(:get, path, nil, params)
99
+ end
100
+ end
@@ -0,0 +1,121 @@
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 'awrence'
19
+
20
+ class AttachmentsClient
21
+
22
+ ##
23
+ # Initialize the AttachmentsClient class with a lockstepsdk instance.
24
+ # @param lockstepsdk [LockstepApi] The Lockstep API client object for this connection
25
+ def initialize(lockstepsdk)
26
+ @lockstepsdk = lockstepsdk
27
+ end
28
+
29
+
30
+ ##
31
+ # Retrieves the Attachment with the provided Attachment identifier.
32
+ #
33
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
34
+ #
35
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
36
+ #
37
+ # @param id [uuid] The unique ID number of the Attachment to retrieve
38
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available for querying but may be available in the future.
39
+ def retrieve_attachment(id:, include_param:)
40
+ path = "/api/v1/Attachments/#{id}"
41
+ params = {:include => include_param}
42
+ @lockstepsdk.request(:get, path, nil, params)
43
+ end
44
+
45
+ ##
46
+ # Updates an existing Attachment with the information supplied to this PATCH call.
47
+ #
48
+ # The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. If you do not provide the name of a field, that field will remain unchanged. This allows you to ensure that you are only updating the specific fields desired.
49
+ #
50
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
51
+ #
52
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
53
+ #
54
+ # @param id [uuid] The unique Lockstep Platform ID number of the attachment to update
55
+ # @param body [object] A list of changes to apply to this Attachment
56
+ def update_attachment(id:, body:)
57
+ path = "/api/v1/Attachments/#{id}"
58
+ @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil)
59
+ end
60
+
61
+ ##
62
+ # Flag this attachment as archived, which can distinguish between attachments currently active and attachments not intended for active use. This is similar to deletion but preserves information about the record's existence.
63
+ #
64
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
65
+ #
66
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
67
+ #
68
+ # @param id [uuid] The unique ID number of the Attachment to be archived
69
+ def archive_attachment(id:)
70
+ path = "/api/v1/Attachments/#{id}"
71
+ @lockstepsdk.request(:delete, path, nil, nil)
72
+ end
73
+
74
+ ##
75
+ # Returns a URI for the Attachment file to be downloaded, based on the ID provided.
76
+ #
77
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
78
+ #
79
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
80
+ #
81
+ # @param id [uuid] The unique ID number of the Attachment whose URI will be returned
82
+ def download_attachment(id:)
83
+ path = "/api/v1/Attachments/#{id}/download"
84
+ @lockstepsdk.request(:get, path, nil, nil)
85
+ end
86
+
87
+ ##
88
+ # Uploads and creates one or more Attachments from the provided arguments.
89
+ #
90
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
91
+ #
92
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
93
+ #
94
+ # @param table_name [string] The name of the type of object to which this Attachment will be linked
95
+ # @param object_id [uuid] The unique ID of the object to which this Attachment will be linked
96
+ def upload_attachment(table_name:, object_id:)
97
+ path = "/api/v1/Attachments"
98
+ params = {:tableName => table_name, :objectId => object_id}
99
+ @lockstepsdk.request(:post, path, nil, params)
100
+ end
101
+
102
+ ##
103
+ # Queries Attachments for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
104
+ #
105
+ # More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
106
+ #
107
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
108
+ #
109
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
110
+ #
111
+ # @param filter [string] The filter to use to select from the list of available Attachments, in the [Searchlight query syntax](https://github.com/tspence/csharp-searchlight).
112
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available for querying but may be available in the future.
113
+ # @param order [string] The sort order for the results, in the [Searchlight order syntax](https://github.com/tspence/csharp-searchlight).
114
+ # @param page_size [int32] The page size for results (default 200, maximum of 10,000)
115
+ # @param page_number [int32] The page number for results (default 0)
116
+ def query_attachments(filter:, include_param:, order:, page_size:, page_number:)
117
+ path = "/api/v1/Attachments/query"
118
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
119
+ @lockstepsdk.request(:get, path, nil, params)
120
+ end
121
+ end
@@ -0,0 +1,60 @@
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 'awrence'
19
+
20
+ class CodeDefinitionsClient
21
+
22
+ ##
23
+ # Initialize the CodeDefinitionsClient class with a lockstepsdk instance.
24
+ # @param lockstepsdk [LockstepApi] The Lockstep API client object for this connection
25
+ def initialize(lockstepsdk)
26
+ @lockstepsdk = lockstepsdk
27
+ end
28
+
29
+
30
+ ##
31
+ # Retrieves the CodeDefinition specified by this unique identifier, optionally including nested data sets.
32
+ #
33
+ # A CodeDefinition contains information around system code values and their definitions.
34
+ #
35
+ # @param id [uuid] The unique Lockstep Platform ID number of this CodeDefinition
36
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future
37
+ def retrieve_codedefinition(id:, include_param:)
38
+ path = "/api/v1/CodeDefinitions/#{id}"
39
+ params = {:include => include_param}
40
+ @lockstepsdk.request(:get, path, nil, params)
41
+ end
42
+
43
+ ##
44
+ # Queries CodeDefinitions for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
45
+ #
46
+ # More information on querying can be found on the [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
47
+ #
48
+ # A CodeDefinition contains information around system code values and their definitions.
49
+ #
50
+ # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
51
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future
52
+ # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
53
+ # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
54
+ # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
55
+ def query_codedefinitions(filter:, include_param:, order:, page_size:, page_number:)
56
+ path = "/api/v1/CodeDefinitions/query"
57
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
58
+ @lockstepsdk.request(:get, path, nil, params)
59
+ end
60
+ end