lockstep_sdk 2022.37.24.0 → 2023.1.3.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 (165) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lockstep_sdk/clients/api_keys_client.rb +3 -3
  3. data/lib/lockstep_sdk/clients/app_enrollments_client.rb +5 -5
  4. data/lib/lockstep_sdk/clients/applications_client.rb +3 -3
  5. data/lib/lockstep_sdk/clients/attachments_client.rb +3 -3
  6. data/lib/lockstep_sdk/clients/code_definitions_client.rb +3 -3
  7. data/lib/lockstep_sdk/clients/companies_client.rb +40 -10
  8. data/lib/lockstep_sdk/clients/contacts_client.rb +17 -6
  9. data/lib/lockstep_sdk/clients/{credit_memo_applied_client.rb → credit_memos_applied_client.rb} +30 -30
  10. data/lib/lockstep_sdk/clients/currencies_client.rb +2 -2
  11. data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +3 -3
  12. data/lib/lockstep_sdk/clients/custom_field_values_client.rb +3 -3
  13. data/lib/lockstep_sdk/clients/definitions_client.rb +6 -6
  14. data/lib/lockstep_sdk/clients/feature_flags_client.rb +35 -0
  15. data/lib/lockstep_sdk/clients/financial_account_balance_history_client.rb +3 -3
  16. data/lib/lockstep_sdk/clients/financial_account_client.rb +3 -3
  17. data/lib/lockstep_sdk/clients/financial_year_settings_client.rb +3 -3
  18. data/lib/lockstep_sdk/clients/group_accounts_client.rb +2 -2
  19. data/lib/lockstep_sdk/clients/invoice_addresses_client.rb +91 -0
  20. data/lib/lockstep_sdk/clients/invoice_history_client.rb +3 -3
  21. data/lib/lockstep_sdk/clients/invoice_lines_client.rb +88 -0
  22. data/lib/lockstep_sdk/clients/invoices_client.rb +17 -6
  23. data/lib/lockstep_sdk/clients/leads_client.rb +2 -2
  24. data/lib/lockstep_sdk/clients/magic_links_client.rb +62 -0
  25. data/lib/lockstep_sdk/clients/notes_client.rb +3 -3
  26. data/lib/lockstep_sdk/clients/payments_applied_client.rb +93 -0
  27. data/lib/lockstep_sdk/clients/payments_client.rb +6 -6
  28. data/lib/lockstep_sdk/clients/profiles_accounting_client.rb +104 -0
  29. data/lib/lockstep_sdk/clients/profiles_accounting_contacts_client.rb +91 -0
  30. data/lib/lockstep_sdk/clients/{profiles_client.rb → profiles_companies_client.rb} +7 -7
  31. data/lib/lockstep_sdk/clients/provisioning_client.rb +2 -2
  32. data/lib/lockstep_sdk/clients/reports_client.rb +4 -4
  33. data/lib/lockstep_sdk/clients/status_client.rb +2 -2
  34. data/lib/lockstep_sdk/clients/sync_client.rb +3 -3
  35. data/lib/lockstep_sdk/clients/transactions_client.rb +54 -0
  36. data/lib/lockstep_sdk/clients/transcriptions_client.rb +91 -0
  37. data/lib/lockstep_sdk/clients/user_accounts_client.rb +13 -15
  38. data/lib/lockstep_sdk/clients/user_roles_client.rb +3 -3
  39. data/lib/lockstep_sdk/clients/webhook_rules_client.rb +3 -3
  40. data/lib/lockstep_sdk/clients/webhooks_client.rb +4 -4
  41. data/lib/lockstep_sdk/lockstep_api.rb +54 -24
  42. data/lib/lockstep_sdk/models/accounting_profile_contact_model.rb +90 -0
  43. data/lib/lockstep_sdk/models/accounting_profile_model.rb +183 -0
  44. data/lib/lockstep_sdk/models/action_result_model.rb +2 -2
  45. data/lib/lockstep_sdk/models/aging_model.rb +2 -2
  46. data/lib/lockstep_sdk/models/ap_aging_header_info_model.rb +2 -2
  47. data/lib/lockstep_sdk/models/ap_header_info_model.rb +8 -2
  48. data/lib/lockstep_sdk/models/api_key_model.rb +2 -2
  49. data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +2 -2
  50. data/lib/lockstep_sdk/models/app_enrollment_model.rb +8 -2
  51. data/lib/lockstep_sdk/models/{app_enrollment_reconnect_request.rb → app_enrollment_reconnect_info.rb} +10 -4
  52. data/lib/lockstep_sdk/models/application_model.rb +2 -2
  53. data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +2 -2
  54. data/lib/lockstep_sdk/models/ar_header_info_model.rb +8 -2
  55. data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +26 -2
  56. data/lib/lockstep_sdk/models/attachment_header_info_model.rb +2 -2
  57. data/lib/lockstep_sdk/models/attachment_model.rb +2 -2
  58. data/lib/lockstep_sdk/models/batch_sync_model.rb +2 -2
  59. data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +2 -2
  60. data/lib/lockstep_sdk/models/bulk_delete_request_model.rb +47 -0
  61. data/lib/lockstep_sdk/models/cashflow_report_model.rb +2 -2
  62. data/lib/lockstep_sdk/models/code_definition_model.rb +2 -2
  63. data/lib/lockstep_sdk/models/company_details_model.rb +2 -2
  64. data/lib/lockstep_sdk/models/company_details_payment_model.rb +2 -2
  65. data/lib/lockstep_sdk/models/company_model.rb +8 -8
  66. data/lib/lockstep_sdk/models/company_sync_model.rb +2 -8
  67. data/lib/lockstep_sdk/models/connector_info_model.rb +2 -2
  68. data/lib/lockstep_sdk/models/contact_model.rb +2 -2
  69. data/lib/lockstep_sdk/models/contact_sync_model.rb +2 -2
  70. data/lib/lockstep_sdk/models/country_model.rb +2 -2
  71. data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +2 -2
  72. data/lib/lockstep_sdk/models/credit_memo_applied_sync_model.rb +2 -2
  73. data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +32 -2
  74. data/lib/lockstep_sdk/models/currency_model.rb +2 -2
  75. data/lib/lockstep_sdk/models/currency_rate_model.rb +2 -2
  76. data/lib/lockstep_sdk/models/custom_field_definition_model.rb +2 -2
  77. data/lib/lockstep_sdk/models/custom_field_sync_model.rb +2 -2
  78. data/lib/lockstep_sdk/models/custom_field_value_model.rb +20 -2
  79. data/lib/lockstep_sdk/models/customer_summary_model.rb +8 -2
  80. data/lib/lockstep_sdk/models/daily_payable_outstanding_report_model.rb +2 -2
  81. data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +2 -2
  82. data/lib/lockstep_sdk/models/delete_result.rb +47 -0
  83. data/lib/lockstep_sdk/models/developer_account_submit_model.rb +2 -2
  84. data/lib/lockstep_sdk/models/dpo_summary_group_total_model.rb +2 -2
  85. data/lib/lockstep_sdk/models/dpo_summary_model.rb +2 -2
  86. data/lib/lockstep_sdk/models/erp_model.rb +2 -2
  87. data/lib/lockstep_sdk/models/error_result.rb +2 -2
  88. data/lib/lockstep_sdk/models/feature_flags_request_model.rb +47 -0
  89. data/lib/lockstep_sdk/models/feature_flags_response_model.rb +47 -0
  90. data/lib/lockstep_sdk/models/financial_account_balance_history_model.rb +2 -2
  91. data/lib/lockstep_sdk/models/financial_account_balance_history_sync_model.rb +2 -2
  92. data/lib/lockstep_sdk/models/financial_account_model.rb +2 -2
  93. data/lib/lockstep_sdk/models/financial_account_sync_model.rb +2 -2
  94. data/lib/lockstep_sdk/models/financial_report_cell_model.rb +2 -2
  95. data/lib/lockstep_sdk/models/financial_report_model.rb +2 -2
  96. data/lib/lockstep_sdk/models/financial_report_row_model.rb +2 -2
  97. data/lib/lockstep_sdk/models/financial_year_setting_model.rb +2 -2
  98. data/lib/lockstep_sdk/models/financial_year_setting_sync_model.rb +2 -2
  99. data/lib/lockstep_sdk/models/group_account_model.rb +8 -2
  100. data/lib/lockstep_sdk/models/invite_data_model.rb +2 -2
  101. data/lib/lockstep_sdk/models/invite_model.rb +2 -2
  102. data/lib/lockstep_sdk/models/invite_submit_model.rb +2 -2
  103. data/lib/lockstep_sdk/models/invoice_address_model.rb +2 -2
  104. data/lib/lockstep_sdk/models/invoice_history_model.rb +8 -2
  105. data/lib/lockstep_sdk/models/invoice_line_model.rb +2 -2
  106. data/lib/lockstep_sdk/models/invoice_line_sync_model.rb +2 -2
  107. data/lib/lockstep_sdk/models/invoice_model.rb +8 -2
  108. data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +32 -2
  109. data/lib/lockstep_sdk/models/invoice_summary_model.rb +44 -2
  110. data/lib/lockstep_sdk/models/invoice_summary_model_invoice_summary_totals_model_summary_fetch_result.rb +75 -0
  111. data/lib/lockstep_sdk/models/invoice_summary_totals_model.rb +53 -0
  112. data/lib/lockstep_sdk/models/invoice_sync_model.rb +8 -2
  113. data/lib/lockstep_sdk/models/lead_model.rb +3 -3
  114. data/lib/lockstep_sdk/models/magic_link_model.rb +131 -0
  115. data/lib/lockstep_sdk/models/magic_link_status_model.rb +71 -0
  116. data/lib/lockstep_sdk/models/note_model.rb +2 -2
  117. data/lib/lockstep_sdk/models/payables_coming_due_header_model.rb +2 -2
  118. data/lib/lockstep_sdk/models/payables_coming_due_model.rb +2 -2
  119. data/lib/lockstep_sdk/models/payables_coming_due_widget_model.rb +2 -2
  120. data/lib/lockstep_sdk/models/payables_summary_report_model.rb +2 -2
  121. data/lib/lockstep_sdk/models/payment_applied_model.rb +2 -2
  122. data/lib/lockstep_sdk/models/payment_applied_sync_model.rb +2 -2
  123. data/lib/lockstep_sdk/models/payment_detail_header_model.rb +10 -4
  124. data/lib/lockstep_sdk/models/payment_detail_model.rb +26 -2
  125. data/lib/lockstep_sdk/models/payment_model.rb +8 -2
  126. data/lib/lockstep_sdk/models/payment_summary_model.rb +38 -2
  127. data/lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb +75 -0
  128. data/lib/lockstep_sdk/models/payment_summary_totals_model.rb +53 -0
  129. data/lib/lockstep_sdk/models/payment_sync_model.rb +8 -2
  130. data/lib/lockstep_sdk/models/public_company_profile_model.rb +2 -2
  131. data/lib/lockstep_sdk/models/risk_rate_model.rb +10 -4
  132. data/lib/lockstep_sdk/models/state_model.rb +2 -2
  133. data/lib/lockstep_sdk/models/status_model.rb +32 -2
  134. data/lib/lockstep_sdk/models/summary_aging_totals_model.rb +53 -0
  135. data/lib/lockstep_sdk/models/sync_entity_result_model.rb +2 -2
  136. data/lib/lockstep_sdk/models/sync_request_model.rb +14 -2
  137. data/lib/lockstep_sdk/models/sync_submit_model.rb +2 -2
  138. data/lib/lockstep_sdk/models/transaction_detail_model.rb +138 -0
  139. data/lib/lockstep_sdk/models/transaction_model.rb +144 -0
  140. data/lib/lockstep_sdk/models/transaction_model_transaction_summary_total_model_summary_fetch_result.rb +75 -0
  141. data/lib/lockstep_sdk/models/transaction_summary_total_model.rb +71 -0
  142. data/lib/lockstep_sdk/models/transcription_request_submit.rb +71 -0
  143. data/lib/lockstep_sdk/models/transcription_validation_request.rb +89 -0
  144. data/lib/lockstep_sdk/models/transcription_validation_request_item.rb +149 -0
  145. data/lib/lockstep_sdk/models/transfer_owner_model.rb +2 -2
  146. data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +2 -2
  147. data/lib/lockstep_sdk/models/uri_model.rb +2 -2
  148. data/lib/lockstep_sdk/models/user_account_model.rb +2 -2
  149. data/lib/lockstep_sdk/models/user_data_response_model.rb +53 -0
  150. data/lib/lockstep_sdk/models/user_group_model.rb +2 -2
  151. data/lib/lockstep_sdk/models/user_role_model.rb +2 -2
  152. data/lib/lockstep_sdk/models/vendor_summary_model.rb +44 -2
  153. data/lib/lockstep_sdk/models/view_box_settings_model.rb +65 -0
  154. data/lib/lockstep_sdk/models/webhook_history_table_storage_model.rb +2 -2
  155. data/lib/lockstep_sdk/models/webhook_model.rb +2 -2
  156. data/lib/lockstep_sdk/models/webhook_rule_model.rb +2 -2
  157. data/lib/lockstep_sdk/version.rb +1 -1
  158. metadata +36 -12
  159. data/lib/lockstep_sdk/clients/activities_client.rb +0 -116
  160. data/lib/lockstep_sdk/clients/emails_client.rb +0 -105
  161. data/lib/lockstep_sdk/clients/payment_applications_client.rb +0 -93
  162. data/lib/lockstep_sdk/models/activity_model.rb +0 -218
  163. data/lib/lockstep_sdk/models/activity_stream_item_model.rb +0 -101
  164. data/lib/lockstep_sdk/models/activity_xref_model.rb +0 -71
  165. data/lib/lockstep_sdk/models/email_model.rb +0 -242
@@ -1,105 +0,0 @@
1
- #
2
- # Lockstep Platform SDK for Ruby
3
- #
4
- # (c) 2021-2022 Lockstep, Inc.
5
- #
6
- # For the full copyright and license information, please view the LICENSE
7
- # file that was distributed with this source code.
8
- #
9
- # @author Lockstep Network <support@lockstep.io>
10
- # @copyright 2021-2022 Lockstep, Inc.
11
- # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
12
- #
13
-
14
-
15
- require 'awrence'
16
-
17
- class EmailsClient
18
-
19
- ##
20
- # Initialize the EmailsClient class with an API client instance.
21
- # @param connection [LockstepApi] The API client object for this connection
22
- def initialize(connection)
23
- @connection = connection
24
- end
25
-
26
-
27
- ##
28
- # Retrieves the email with the specified email identifier.
29
- #
30
- # An Email represents a communication sent from one company to another. The creator of the email is identified by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field. The Email Model represents an email and a number of different metadata attributes related to the creation, storage, and ownership of the email.
31
- #
32
- # @param id [uuid] The unique ID number of the Email to retrieve.
33
- # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Attachments, CustomFields, Notes, ResponseOrigin
34
- def retrieve_email(id:, include_param:)
35
- path = "/api/v1/Emails/#{id}"
36
- params = {:include => include_param}
37
- @connection.request(:get, path, nil, params)
38
- end
39
-
40
- ##
41
- # Updates an existing Email with the information supplied to this PATCH call.
42
- #
43
- # 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.
44
- #
45
- # An Email represents a communication sent from one company to another. The creator of the email is identified by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field. The Email Model represents an email and a number of different metadata attributes related to the creation, storage, and ownership of the email.
46
- #
47
- # @param id [uuid] The unique Lockstep Platform ID number of the email to update
48
- # @param body [object] A list of changes to apply to this Email
49
- def update_email(id:, body:)
50
- path = "/api/v1/Emails/#{id}"
51
- @connection.request(:patch, path, body.to_camelback_keys.to_json, nil)
52
- end
53
-
54
- ##
55
- # Deletes the Email referred to by this unique identifier.
56
- #
57
- # An Email represents a communication sent from one company to another. The creator of the email is identified by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field. The Email Model represents an email and a number of different metadata attributes related to the creation, storage, and ownership of the email.
58
- #
59
- # @param id [uuid] The unique Lockstep Platform ID number of the Email to delete
60
- def delete_email(id:)
61
- path = "/api/v1/Emails/#{id}"
62
- @connection.request(:delete, path, nil, nil)
63
- end
64
-
65
- ##
66
- # Retrieves a signature logo for the email with the specified identifier and increments 'ViewCount'.
67
- #
68
- # An Email represents a communication sent from one company to another. The creator of the email is identified by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field. The Email Model represents an email and a number of different metadata attributes related to the creation, storage, and ownership of the email.
69
- #
70
- # @param email_id [uuid] The unique ID number of the Email to retrieve.
71
- # @param nonce [uuid] The random nonce applied at time of url creation.
72
- def retrieve_email_logo(email_id:, nonce:)
73
- path = "/api/v1/Emails/#{emailId}/logo/#{nonce}"
74
- @connection.request(:get, path, nil, nil)
75
- end
76
-
77
- ##
78
- # Creates one or more emails from the specified array of Email Models
79
- #
80
- # An Email represents a communication sent from one company to another. The creator of the email is identified by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field. The Email Model represents an email and a number of different metadata attributes related to the creation, storage, and ownership of the email.
81
- #
82
- # @param body [EmailModel] The array of emails to be created
83
- def create_emails(body:)
84
- path = "/api/v1/Emails"
85
- @connection.request(:post, path, body, nil)
86
- end
87
-
88
- ##
89
- # Queries Emails on the Lockstep Platform using the specified filtering, sorting, nested fetch, and pagination rules requested.
90
- #
91
- # 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.
92
- #
93
- # An Email represents a communication sent from one company to another. The creator of the email is identified by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field. The Email Model represents an email and a number of different metadata attributes related to the creation, storage, and ownership of the email.
94
- #
95
- # @param filter [string] The filter to use to select from the list of available applications, in the [Searchlight query syntax](https://github.com/tspence/csharp-searchlight).
96
- # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Attachments, CustomFields, Notes, ResponseOrigin
97
- # @param order [string] The sort order for the results, in the [Searchlight order syntax](https://github.com/tspence/csharp-searchlight).
98
- # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
99
- # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
100
- def query_emails(filter:, include_param:, order:, page_size:, page_number:)
101
- path = "/api/v1/Emails/query"
102
- params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
103
- @connection.request(:get, path, nil, params)
104
- end
105
- end
@@ -1,93 +0,0 @@
1
- #
2
- # Lockstep Platform SDK for Ruby
3
- #
4
- # (c) 2021-2022 Lockstep, Inc.
5
- #
6
- # For the full copyright and license information, please view the LICENSE
7
- # file that was distributed with this source code.
8
- #
9
- # @author Lockstep Network <support@lockstep.io>
10
- # @copyright 2021-2022 Lockstep, Inc.
11
- # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
12
- #
13
-
14
-
15
- require 'awrence'
16
-
17
- class PaymentApplicationsClient
18
-
19
- ##
20
- # Initialize the PaymentApplicationsClient class with an API client instance.
21
- # @param connection [LockstepApi] The API client object for this connection
22
- def initialize(connection)
23
- @connection = connection
24
- end
25
-
26
-
27
- ##
28
- # Retrieves the Payment Application specified by this unique identifier, optionally including nested data sets.
29
- #
30
- # A Payment Application is created by a business who receives a Payment from a customer. A customer may make a single Payment to match an Invoice exactly, a partial Payment for an Invoice, or a single Payment may be made for multiple smaller Invoices. The Payment Application contains information about which Invoices are connected to which Payments and for which amounts.
31
- #
32
- # @param id [uuid] The unique Lockstep Platform ID number of this Payment Application; NOT the customer's ERP key
33
- # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Invoice, Payment
34
- def retrieve_payment_application(id:, include_param:)
35
- path = "/api/v1/PaymentApplications/#{id}"
36
- params = {:include => include_param}
37
- @connection.request(:get, path, nil, params)
38
- end
39
-
40
- ##
41
- # Updates an existing Payment Application with the information supplied to this PATCH call.
42
- #
43
- # 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.
44
- #
45
- # A Payment Application is created by a business who receives a Payment from a customer. A customer may make a single Payment to match an Invoice exactly, a partial Payment for an Invoice, or a single Payment may be made for multiple smaller Invoices. The Payment Application contains information about which Invoices are connected to which Payments and for which amounts.
46
- #
47
- # @param id [uuid] The unique Lockstep Platform ID number of the Payment Application to update; NOT the customer's ERP key
48
- # @param body [object] A list of changes to apply to this Payment Application
49
- def update_payment_application(id:, body:)
50
- path = "/api/v1/PaymentApplications/#{id}"
51
- @connection.request(:patch, path, body.to_camelback_keys.to_json, nil)
52
- end
53
-
54
- ##
55
- # Deletes the Payment Application referred to by this unique identifier.
56
- #
57
- # A Payment Application is created by a business who receives a Payment from a customer. A customer may make a single Payment to match an Invoice exactly, a partial Payment for an Invoice, or a single Payment may be made for multiple smaller Invoices. The Payment Application contains information about which Invoices are connected to which Payments and for which amounts.
58
- #
59
- # @param id [uuid] The unique Lockstep Platform ID number of the Payment Application to delete; NOT the customer's ERP key
60
- def delete_payment_application(id:)
61
- path = "/api/v1/PaymentApplications/#{id}"
62
- @connection.request(:delete, path, nil, nil)
63
- end
64
-
65
- ##
66
- # Creates one or more Payment Applications within this account and returns the records as created.
67
- #
68
- # A Payment Application is created by a business who receives a Payment from a customer. A customer may make a single Payment to match an Invoice exactly, a partial Payment for an Invoice, or a single Payment may be made for multiple smaller Invoices. The Payment Application contains information about which Invoices are connected to which Payments and for which amounts.
69
- #
70
- # @param body [PaymentAppliedModel] The Payment Applications to create
71
- def create_payment_applications(body:)
72
- path = "/api/v1/PaymentApplications"
73
- @connection.request(:post, path, body, nil)
74
- end
75
-
76
- ##
77
- # Queries Payment Applications for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
78
- #
79
- # 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.
80
- #
81
- # A Payment Application is created by a business who receives a Payment from a customer. A customer may make a single Payment to match an Invoice exactly, a partial Payment for an Invoice, or a single Payment may be made for multiple smaller Invoices. The Payment Application contains information about which Invoices are connected to which Payments and for which amounts.
82
- #
83
- # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
84
- # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. Available collections: Invoice
85
- # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
86
- # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
87
- # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
88
- def query_payment_applications(filter:, include_param:, order:, page_size:, page_number:)
89
- path = "/api/v1/PaymentApplications/query"
90
- params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
91
- @connection.request(:get, path, nil, params)
92
- end
93
- end
@@ -1,218 +0,0 @@
1
- #
2
- # Lockstep Platform SDK for Ruby
3
- #
4
- # (c) 2021-2022 Lockstep, Inc.
5
- #
6
- # For the full copyright and license information, please view the LICENSE
7
- # file that was distributed with this source code.
8
- #
9
- # @author Lockstep Network <support@lockstep.io>
10
- # @copyright 2021-2022 Lockstep, Inc.
11
- # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
12
- #
13
-
14
-
15
- require 'json'
16
-
17
- module LockstepSdk
18
-
19
- ##
20
- # An Activity contains information about work being done on a specific accounting task.
21
- # You can use Activities to track information about who has been assigned a specific task,
22
- # the current status of the task, the name and description given for the particular task,
23
- # the priority of the task, and any amounts collected, paid, or credited for the task.
24
- class ActivityModel
25
-
26
- ##
27
- # Initialize the ActivityModel using the provided prototype
28
- def initialize(params = {})
29
- @activity_id = params.dig(:activity_id)
30
- @group_key = params.dig(:group_key)
31
- @company_id = params.dig(:company_id)
32
- @activity_type_code = params.dig(:activity_type_code)
33
- @activity_name = params.dig(:activity_name)
34
- @activity_description = params.dig(:activity_description)
35
- @activity_status = params.dig(:activity_status)
36
- @is_open = params.dig(:is_open)
37
- @priority = params.dig(:priority)
38
- @user_assigned_to = params.dig(:user_assigned_to)
39
- @date_assigned = params.dig(:date_assigned)
40
- @date_closed = params.dig(:date_closed)
41
- @snooze_until_date = params.dig(:snooze_until_date)
42
- @created = params.dig(:created)
43
- @created_user_id = params.dig(:created_user_id)
44
- @modified = params.dig(:modified)
45
- @modified_user_id = params.dig(:modified_user_id)
46
- @amount_collected = params.dig(:amount_collected)
47
- @amount_paid = params.dig(:amount_paid)
48
- @credit_given = params.dig(:credit_given)
49
- @is_unread = params.dig(:is_unread)
50
- @is_archived = params.dig(:is_archived)
51
- @company = params.dig(:company)
52
- @user_assigned_to_name = params.dig(:user_assigned_to_name)
53
- @attachments = params.dig(:attachments)
54
- @notes = params.dig(:notes)
55
- @custom_field_definitions = params.dig(:custom_field_definitions)
56
- @custom_field_values = params.dig(:custom_field_values)
57
- @references = params.dig(:references)
58
- end
59
-
60
- ##
61
- # @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
62
- attr_accessor :activity_id
63
-
64
- ##
65
- # @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).
66
- attr_accessor :group_key
67
-
68
- ##
69
- # @return [Uuid] The ID of the company to which this activity belongs.
70
- attr_accessor :company_id
71
-
72
- ##
73
- # @return [String] The type code of the activity
74
- attr_accessor :activity_type_code
75
-
76
- ##
77
- # @return [String] The name of the activity. The name is a short name provided by the person who created the activity that can be displayed in a list.
78
- attr_accessor :activity_name
79
-
80
- ##
81
- # @return [String] A description of the activity. This field contains more detailed text about the activity and can be lengthy.
82
- attr_accessor :activity_description
83
-
84
- ##
85
- # @return [String] The status of the activity.
86
- attr_accessor :activity_status
87
-
88
- ##
89
- # @return [Boolean] True if this activity is currently "open", which indicates that the activity is currently in progress.
90
- attr_accessor :is_open
91
-
92
- ##
93
- # @return [String] The priority of the activity.
94
- attr_accessor :priority
95
-
96
- ##
97
- # @return [Uuid] The ID of the user the activity is assigned to.
98
- attr_accessor :user_assigned_to
99
-
100
- ##
101
- # @return [Date-time] The date the activity was assigned.
102
- attr_accessor :date_assigned
103
-
104
- ##
105
- # @return [Date-time] The date the activity was closed.
106
- attr_accessor :date_closed
107
-
108
- ##
109
- # @return [Date-time] If this activity has been "snoozed", this field will be non-null and will contain the date when the activity will be displayed. Until that date arrives, the activity will remain hidden.
110
- attr_accessor :snooze_until_date
111
-
112
- ##
113
- # @return [Date-time] The date on which this activity was created.
114
- attr_accessor :created
115
-
116
- ##
117
- # @return [Uuid] The ID of the user who created this activity.
118
- attr_accessor :created_user_id
119
-
120
- ##
121
- # @return [Date-time] The date on which this activity was last modified.
122
- attr_accessor :modified
123
-
124
- ##
125
- # @return [Uuid] The ID of the user who last modified this activity.
126
- attr_accessor :modified_user_id
127
-
128
- ##
129
- # @return [Double] Amount collected (if any) for the activity.
130
- attr_accessor :amount_collected
131
-
132
- ##
133
- # @return [Double] Amount paid (if any) for the activity.
134
- attr_accessor :amount_paid
135
-
136
- ##
137
- # @return [Double] Credit given (if any) for the activity.
138
- attr_accessor :credit_given
139
-
140
- ##
141
- # @return [Boolean] True if this activity is to be shown in an "unread" state. When an activity is read by a person it is assigned to, this flag is set to false.
142
- attr_accessor :is_unread
143
-
144
- ##
145
- # @return [Boolean] Activities may be archived when they should be hidden from the user. When this flag is true, this activity should be hidden.
146
- attr_accessor :is_archived
147
-
148
- ##
149
- # @return [CompanyModel] The company associated with the activity To retrieve this collection, specify `Company` in the "Include" parameter for your query.
150
- attr_accessor :company
151
-
152
- ##
153
- # @return [String] The name of the user the activity is assigned to
154
- attr_accessor :user_assigned_to_name
155
-
156
- ##
157
- # @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 `Activity` and the `ObjectKey` set to the `ActivityId` 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).
158
- attr_accessor :attachments
159
-
160
- ##
161
- # @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 `Activity` and the `ObjectKey` set to the `ActivityId` 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).
162
- attr_accessor :notes
163
-
164
- ##
165
- # @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 `Activity` and the `ObjectKey` set to the `ActivityId` 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).
166
- attr_accessor :custom_field_definitions
167
-
168
- ##
169
- # @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 `Activity` and the `ObjectKey` set to the `ActivityId` 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).
170
- attr_accessor :custom_field_values
171
-
172
- ##
173
- # @return [ActivityXRefModel] All references attached to this applied activity. To retrieve this collection, specify `References` in the "Include" parameter for your query.
174
- attr_accessor :references
175
-
176
- ##
177
- # @return [object] This object as a JSON key-value structure
178
- def as_json(options={})
179
- {
180
- 'activityId' => @activity_id,
181
- 'groupKey' => @group_key,
182
- 'companyId' => @company_id,
183
- 'activityTypeCode' => @activity_type_code,
184
- 'activityName' => @activity_name,
185
- 'activityDescription' => @activity_description,
186
- 'activityStatus' => @activity_status,
187
- 'isOpen' => @is_open,
188
- 'priority' => @priority,
189
- 'userAssignedTo' => @user_assigned_to,
190
- 'dateAssigned' => @date_assigned,
191
- 'dateClosed' => @date_closed,
192
- 'snoozeUntilDate' => @snooze_until_date,
193
- 'created' => @created,
194
- 'createdUserId' => @created_user_id,
195
- 'modified' => @modified,
196
- 'modifiedUserId' => @modified_user_id,
197
- 'amountCollected' => @amount_collected,
198
- 'amountPaid' => @amount_paid,
199
- 'creditGiven' => @credit_given,
200
- 'isUnread' => @is_unread,
201
- 'isArchived' => @is_archived,
202
- 'company' => @company,
203
- 'userAssignedToName' => @user_assigned_to_name,
204
- 'attachments' => @attachments,
205
- 'notes' => @notes,
206
- 'customFieldDefinitions' => @custom_field_definitions,
207
- 'customFieldValues' => @custom_field_values,
208
- 'references' => @references,
209
- }
210
- end
211
-
212
- ##
213
- # @return [String] This object converted to a JSON string
214
- def to_json(*options)
215
- "[#{as_json(*options).to_json(*options)}]"
216
- end
217
- end
218
- end
@@ -1,101 +0,0 @@
1
- #
2
- # Lockstep Platform SDK for Ruby
3
- #
4
- # (c) 2021-2022 Lockstep, Inc.
5
- #
6
- # For the full copyright and license information, please view the LICENSE
7
- # file that was distributed with this source code.
8
- #
9
- # @author Lockstep Network <support@lockstep.io>
10
- # @copyright 2021-2022 Lockstep, Inc.
11
- # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
12
- #
13
-
14
-
15
- require 'json'
16
-
17
- module LockstepSdk
18
-
19
- ##
20
- # Represents an item belonging to the activity stream.
21
- class ActivityStreamItemModel
22
-
23
- ##
24
- # Initialize the ActivityStreamItemModel using the provided prototype
25
- def initialize(params = {})
26
- @object_key = params.dig(:object_key)
27
- @activity_stream_type = params.dig(:activity_stream_type)
28
- @text_value = params.dig(:text_value)
29
- @created = params.dig(:created)
30
- @created_user_id = params.dig(:created_user_id)
31
- @group_key = params.dig(:group_key)
32
- @from_email_address = params.dig(:from_email_address)
33
- @to_email_address = params.dig(:to_email_address)
34
- @from_contact_name = params.dig(:from_contact_name)
35
- @to_contact_name = params.dig(:to_contact_name)
36
- end
37
-
38
- ##
39
- # @return [Uuid] The object key of the activity stream item.
40
- attr_accessor :object_key
41
-
42
- ##
43
- # @return [String] The type code of the activity stream item.
44
- attr_accessor :activity_stream_type
45
-
46
- ##
47
- # @return [String] The text body description for this Activity Stream Item.
48
- attr_accessor :text_value
49
-
50
- ##
51
- # @return [Date-time] The date on which this activity stream item was created.
52
- attr_accessor :created
53
-
54
- ##
55
- # @return [Uuid] The ID of the user who created this activity.
56
- attr_accessor :created_user_id
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 [String] The sender's email address if activity stream item is an Email.
64
- attr_accessor :from_email_address
65
-
66
- ##
67
- # @return [String] The recipient's email address if activity stream item is an Email.
68
- attr_accessor :to_email_address
69
-
70
- ##
71
- # @return [String] The name of the contact sending the activity otherwise null.
72
- attr_accessor :from_contact_name
73
-
74
- ##
75
- # @return [String] The name of the contact sending the activity otherwise null.
76
- attr_accessor :to_contact_name
77
-
78
- ##
79
- # @return [object] This object as a JSON key-value structure
80
- def as_json(options={})
81
- {
82
- 'objectKey' => @object_key,
83
- 'activityStreamType' => @activity_stream_type,
84
- 'textValue' => @text_value,
85
- 'created' => @created,
86
- 'createdUserId' => @created_user_id,
87
- 'groupKey' => @group_key,
88
- 'fromEmailAddress' => @from_email_address,
89
- 'toEmailAddress' => @to_email_address,
90
- 'fromContactName' => @from_contact_name,
91
- 'toContactName' => @to_contact_name,
92
- }
93
- end
94
-
95
- ##
96
- # @return [String] This object converted to a JSON string
97
- def to_json(*options)
98
- "[#{as_json(*options).to_json(*options)}]"
99
- end
100
- end
101
- end
@@ -1,71 +0,0 @@
1
- #
2
- # Lockstep Platform SDK for Ruby
3
- #
4
- # (c) 2021-2022 Lockstep, Inc.
5
- #
6
- # For the full copyright and license information, please view the LICENSE
7
- # file that was distributed with this source code.
8
- #
9
- # @author Lockstep Network <support@lockstep.io>
10
- # @copyright 2021-2022 Lockstep, Inc.
11
- # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
12
- #
13
-
14
-
15
- require 'json'
16
-
17
- module LockstepSdk
18
-
19
- ##
20
- # Represents links between an Activity and another record.
21
- class ActivityXRefModel
22
-
23
- ##
24
- # Initialize the ActivityXRefModel using the provided prototype
25
- def initialize(params = {})
26
- @activity_xref_id = params.dig(:activity_xref_id)
27
- @activity_id = params.dig(:activity_id)
28
- @group_key = params.dig(:group_key)
29
- @table_key = params.dig(:table_key)
30
- @object_key = params.dig(:object_key)
31
- end
32
-
33
- ##
34
- # @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this is added to the Lockstep platform.
35
- attr_accessor :activity_xref_id
36
-
37
- ##
38
- # @return [Uuid] The ID of the activity to which this reference belongs.
39
- attr_accessor :activity_id
40
-
41
- ##
42
- # @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).
43
- attr_accessor :group_key
44
-
45
- ##
46
- # @return [String] The name of the table the activity reference is associated with
47
- attr_accessor :table_key
48
-
49
- ##
50
- # @return [String] The ID of the object the activity reference is associated with
51
- attr_accessor :object_key
52
-
53
- ##
54
- # @return [object] This object as a JSON key-value structure
55
- def as_json(options={})
56
- {
57
- 'activityXRefId' => @activity_xref_id,
58
- 'activityId' => @activity_id,
59
- 'groupKey' => @group_key,
60
- 'tableKey' => @table_key,
61
- 'objectKey' => @object_key,
62
- }
63
- end
64
-
65
- ##
66
- # @return [String] This object converted to a JSON string
67
- def to_json(*options)
68
- "[#{as_json(*options).to_json(*options)}]"
69
- end
70
- end
71
- end