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.
- checksums.yaml +4 -4
- data/lib/lockstep_sdk/clients/api_keys_client.rb +3 -3
- data/lib/lockstep_sdk/clients/app_enrollments_client.rb +5 -5
- data/lib/lockstep_sdk/clients/applications_client.rb +3 -3
- data/lib/lockstep_sdk/clients/attachments_client.rb +3 -3
- data/lib/lockstep_sdk/clients/code_definitions_client.rb +3 -3
- data/lib/lockstep_sdk/clients/companies_client.rb +40 -10
- data/lib/lockstep_sdk/clients/contacts_client.rb +17 -6
- data/lib/lockstep_sdk/clients/{credit_memo_applied_client.rb → credit_memos_applied_client.rb} +30 -30
- data/lib/lockstep_sdk/clients/currencies_client.rb +2 -2
- data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +3 -3
- data/lib/lockstep_sdk/clients/custom_field_values_client.rb +3 -3
- data/lib/lockstep_sdk/clients/definitions_client.rb +6 -6
- data/lib/lockstep_sdk/clients/feature_flags_client.rb +35 -0
- data/lib/lockstep_sdk/clients/financial_account_balance_history_client.rb +3 -3
- data/lib/lockstep_sdk/clients/financial_account_client.rb +3 -3
- data/lib/lockstep_sdk/clients/financial_year_settings_client.rb +3 -3
- data/lib/lockstep_sdk/clients/group_accounts_client.rb +2 -2
- data/lib/lockstep_sdk/clients/invoice_addresses_client.rb +91 -0
- data/lib/lockstep_sdk/clients/invoice_history_client.rb +3 -3
- data/lib/lockstep_sdk/clients/invoice_lines_client.rb +88 -0
- data/lib/lockstep_sdk/clients/invoices_client.rb +17 -6
- data/lib/lockstep_sdk/clients/leads_client.rb +2 -2
- data/lib/lockstep_sdk/clients/magic_links_client.rb +62 -0
- data/lib/lockstep_sdk/clients/notes_client.rb +3 -3
- data/lib/lockstep_sdk/clients/payments_applied_client.rb +93 -0
- data/lib/lockstep_sdk/clients/payments_client.rb +6 -6
- data/lib/lockstep_sdk/clients/profiles_accounting_client.rb +104 -0
- data/lib/lockstep_sdk/clients/profiles_accounting_contacts_client.rb +91 -0
- data/lib/lockstep_sdk/clients/{profiles_client.rb → profiles_companies_client.rb} +7 -7
- data/lib/lockstep_sdk/clients/provisioning_client.rb +2 -2
- data/lib/lockstep_sdk/clients/reports_client.rb +4 -4
- data/lib/lockstep_sdk/clients/status_client.rb +2 -2
- data/lib/lockstep_sdk/clients/sync_client.rb +3 -3
- data/lib/lockstep_sdk/clients/transactions_client.rb +54 -0
- data/lib/lockstep_sdk/clients/transcriptions_client.rb +91 -0
- data/lib/lockstep_sdk/clients/user_accounts_client.rb +13 -15
- data/lib/lockstep_sdk/clients/user_roles_client.rb +3 -3
- data/lib/lockstep_sdk/clients/webhook_rules_client.rb +3 -3
- data/lib/lockstep_sdk/clients/webhooks_client.rb +4 -4
- data/lib/lockstep_sdk/lockstep_api.rb +54 -24
- data/lib/lockstep_sdk/models/accounting_profile_contact_model.rb +90 -0
- data/lib/lockstep_sdk/models/accounting_profile_model.rb +183 -0
- data/lib/lockstep_sdk/models/action_result_model.rb +2 -2
- data/lib/lockstep_sdk/models/aging_model.rb +2 -2
- data/lib/lockstep_sdk/models/ap_aging_header_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/ap_header_info_model.rb +8 -2
- data/lib/lockstep_sdk/models/api_key_model.rb +2 -2
- data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +2 -2
- data/lib/lockstep_sdk/models/app_enrollment_model.rb +8 -2
- data/lib/lockstep_sdk/models/{app_enrollment_reconnect_request.rb → app_enrollment_reconnect_info.rb} +10 -4
- data/lib/lockstep_sdk/models/application_model.rb +2 -2
- data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/ar_header_info_model.rb +8 -2
- data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +26 -2
- data/lib/lockstep_sdk/models/attachment_header_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/attachment_model.rb +2 -2
- data/lib/lockstep_sdk/models/batch_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +2 -2
- data/lib/lockstep_sdk/models/bulk_delete_request_model.rb +47 -0
- data/lib/lockstep_sdk/models/cashflow_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/code_definition_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_details_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_details_payment_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_model.rb +8 -8
- data/lib/lockstep_sdk/models/company_sync_model.rb +2 -8
- data/lib/lockstep_sdk/models/connector_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/contact_model.rb +2 -2
- data/lib/lockstep_sdk/models/contact_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/country_model.rb +2 -2
- data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +2 -2
- data/lib/lockstep_sdk/models/credit_memo_applied_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +32 -2
- data/lib/lockstep_sdk/models/currency_model.rb +2 -2
- data/lib/lockstep_sdk/models/currency_rate_model.rb +2 -2
- data/lib/lockstep_sdk/models/custom_field_definition_model.rb +2 -2
- data/lib/lockstep_sdk/models/custom_field_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/custom_field_value_model.rb +20 -2
- data/lib/lockstep_sdk/models/customer_summary_model.rb +8 -2
- data/lib/lockstep_sdk/models/daily_payable_outstanding_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/delete_result.rb +47 -0
- data/lib/lockstep_sdk/models/developer_account_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/dpo_summary_group_total_model.rb +2 -2
- data/lib/lockstep_sdk/models/dpo_summary_model.rb +2 -2
- data/lib/lockstep_sdk/models/erp_model.rb +2 -2
- data/lib/lockstep_sdk/models/error_result.rb +2 -2
- data/lib/lockstep_sdk/models/feature_flags_request_model.rb +47 -0
- data/lib/lockstep_sdk/models/feature_flags_response_model.rb +47 -0
- data/lib/lockstep_sdk/models/financial_account_balance_history_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_account_balance_history_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_account_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_account_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_report_cell_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_report_row_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_year_setting_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_year_setting_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/group_account_model.rb +8 -2
- data/lib/lockstep_sdk/models/invite_data_model.rb +2 -2
- data/lib/lockstep_sdk/models/invite_model.rb +2 -2
- data/lib/lockstep_sdk/models/invite_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_address_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_history_model.rb +8 -2
- data/lib/lockstep_sdk/models/invoice_line_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_line_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_model.rb +8 -2
- data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +32 -2
- data/lib/lockstep_sdk/models/invoice_summary_model.rb +44 -2
- data/lib/lockstep_sdk/models/invoice_summary_model_invoice_summary_totals_model_summary_fetch_result.rb +75 -0
- data/lib/lockstep_sdk/models/invoice_summary_totals_model.rb +53 -0
- data/lib/lockstep_sdk/models/invoice_sync_model.rb +8 -2
- data/lib/lockstep_sdk/models/lead_model.rb +3 -3
- data/lib/lockstep_sdk/models/magic_link_model.rb +131 -0
- data/lib/lockstep_sdk/models/magic_link_status_model.rb +71 -0
- data/lib/lockstep_sdk/models/note_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_coming_due_header_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_coming_due_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_coming_due_widget_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_summary_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_applied_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_applied_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_detail_header_model.rb +10 -4
- data/lib/lockstep_sdk/models/payment_detail_model.rb +26 -2
- data/lib/lockstep_sdk/models/payment_model.rb +8 -2
- data/lib/lockstep_sdk/models/payment_summary_model.rb +38 -2
- data/lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb +75 -0
- data/lib/lockstep_sdk/models/payment_summary_totals_model.rb +53 -0
- data/lib/lockstep_sdk/models/payment_sync_model.rb +8 -2
- data/lib/lockstep_sdk/models/public_company_profile_model.rb +2 -2
- data/lib/lockstep_sdk/models/risk_rate_model.rb +10 -4
- data/lib/lockstep_sdk/models/state_model.rb +2 -2
- data/lib/lockstep_sdk/models/status_model.rb +32 -2
- data/lib/lockstep_sdk/models/summary_aging_totals_model.rb +53 -0
- data/lib/lockstep_sdk/models/sync_entity_result_model.rb +2 -2
- data/lib/lockstep_sdk/models/sync_request_model.rb +14 -2
- data/lib/lockstep_sdk/models/sync_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/transaction_detail_model.rb +138 -0
- data/lib/lockstep_sdk/models/transaction_model.rb +144 -0
- data/lib/lockstep_sdk/models/transaction_model_transaction_summary_total_model_summary_fetch_result.rb +75 -0
- data/lib/lockstep_sdk/models/transaction_summary_total_model.rb +71 -0
- data/lib/lockstep_sdk/models/transcription_request_submit.rb +71 -0
- data/lib/lockstep_sdk/models/transcription_validation_request.rb +89 -0
- data/lib/lockstep_sdk/models/transcription_validation_request_item.rb +149 -0
- data/lib/lockstep_sdk/models/transfer_owner_model.rb +2 -2
- data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/uri_model.rb +2 -2
- data/lib/lockstep_sdk/models/user_account_model.rb +2 -2
- data/lib/lockstep_sdk/models/user_data_response_model.rb +53 -0
- data/lib/lockstep_sdk/models/user_group_model.rb +2 -2
- data/lib/lockstep_sdk/models/user_role_model.rb +2 -2
- data/lib/lockstep_sdk/models/vendor_summary_model.rb +44 -2
- data/lib/lockstep_sdk/models/view_box_settings_model.rb +65 -0
- data/lib/lockstep_sdk/models/webhook_history_table_storage_model.rb +2 -2
- data/lib/lockstep_sdk/models/webhook_model.rb +2 -2
- data/lib/lockstep_sdk/models/webhook_rule_model.rb +2 -2
- data/lib/lockstep_sdk/version.rb +1 -1
- metadata +36 -12
- data/lib/lockstep_sdk/clients/activities_client.rb +0 -116
- data/lib/lockstep_sdk/clients/emails_client.rb +0 -105
- data/lib/lockstep_sdk/clients/payment_applications_client.rb +0 -93
- data/lib/lockstep_sdk/models/activity_model.rb +0 -218
- data/lib/lockstep_sdk/models/activity_stream_item_model.rb +0 -101
- data/lib/lockstep_sdk/models/activity_xref_model.rb +0 -71
- data/lib/lockstep_sdk/models/email_model.rb +0 -242
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2023 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-2023 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
|
+
# The totals for a Payment Summary
|
21
|
+
class PaymentSummaryTotalsModel
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the PaymentSummaryTotalsModel using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@total_paid_amount = params.dig(:total_paid_amount)
|
27
|
+
@total_unapplied_balance = params.dig(:total_unapplied_balance)
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# @return [Double] The total amount paid.
|
32
|
+
attr_accessor :total_paid_amount
|
33
|
+
|
34
|
+
##
|
35
|
+
# @return [Double] The total amount unapplied.
|
36
|
+
attr_accessor :total_unapplied_balance
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [object] This object as a JSON key-value structure
|
40
|
+
def as_json(options={})
|
41
|
+
{
|
42
|
+
'totalPaidAmount' => @total_paid_amount,
|
43
|
+
'totalUnappliedBalance' => @total_unapplied_balance,
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# @return [String] This object converted to a JSON string
|
49
|
+
def to_json(*options)
|
50
|
+
"[#{as_json(*options).to_json(*options)}]"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -47,6 +47,7 @@ module LockstepSdk
|
|
47
47
|
@reference_code = params.dig(:reference_code)
|
48
48
|
@is_voided = params.dig(:is_voided)
|
49
49
|
@in_dispute = params.dig(:in_dispute)
|
50
|
+
@currency_rate = params.dig(:currency_rate)
|
50
51
|
end
|
51
52
|
|
52
53
|
##
|
@@ -113,6 +114,10 @@ module LockstepSdk
|
|
113
114
|
# @return [Boolean] True if this payment is in dispute.
|
114
115
|
attr_accessor :in_dispute
|
115
116
|
|
117
|
+
##
|
118
|
+
# @return [Double] The Currency Rate used to get from the account's base currency to the payment amount.
|
119
|
+
attr_accessor :currency_rate
|
120
|
+
|
116
121
|
##
|
117
122
|
# @return [object] This object as a JSON key-value structure
|
118
123
|
def as_json(options={})
|
@@ -133,6 +138,7 @@ module LockstepSdk
|
|
133
138
|
'referenceCode' => @reference_code,
|
134
139
|
'isVoided' => @is_voided,
|
135
140
|
'inDispute' => @in_dispute,
|
141
|
+
'currencyRate' => @currency_rate,
|
136
142
|
}
|
137
143
|
end
|
138
144
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -24,6 +24,7 @@ module LockstepSdk
|
|
24
24
|
# Initialize the RiskRateModel using the provided prototype
|
25
25
|
def initialize(params = {})
|
26
26
|
@group_key = params.dig(:group_key)
|
27
|
+
@base_currency_code = params.dig(:base_currency_code)
|
27
28
|
@report_period = params.dig(:report_period)
|
28
29
|
@report_date = params.dig(:report_date)
|
29
30
|
@invoice_month_name = params.dig(:invoice_month_name)
|
@@ -39,6 +40,10 @@ module LockstepSdk
|
|
39
40
|
# @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
41
|
attr_accessor :group_key
|
41
42
|
|
43
|
+
##
|
44
|
+
# @return [String] The base currency code of the group.
|
45
|
+
attr_accessor :base_currency_code
|
46
|
+
|
42
47
|
##
|
43
48
|
# @return [Date-time] The month the risk rate was calculated for
|
44
49
|
attr_accessor :report_period
|
@@ -56,7 +61,7 @@ module LockstepSdk
|
|
56
61
|
attr_accessor :total_invoice_count
|
57
62
|
|
58
63
|
##
|
59
|
-
# @return [Double] The sum of the total amount for invoices in the calculation month
|
64
|
+
# @return [Double] The sum of the total amount for invoices in the calculation month in the group's base currency.
|
60
65
|
attr_accessor :total_invoice_amount
|
61
66
|
|
62
67
|
##
|
@@ -64,7 +69,7 @@ module LockstepSdk
|
|
64
69
|
attr_accessor :at_risk_count
|
65
70
|
|
66
71
|
##
|
67
|
-
# @return [Double] The sum of the outstanding balance of open invoices over 90 days from the calculation month
|
72
|
+
# @return [Double] The sum of the outstanding balance of open invoices over 90 days from the calculation month in the group's base currency.
|
68
73
|
attr_accessor :at_risk_amount
|
69
74
|
|
70
75
|
##
|
@@ -80,6 +85,7 @@ module LockstepSdk
|
|
80
85
|
def as_json(options={})
|
81
86
|
{
|
82
87
|
'groupKey' => @group_key,
|
88
|
+
'baseCurrencyCode' => @base_currency_code,
|
83
89
|
'reportPeriod' => @report_period,
|
84
90
|
'reportDate' => @report_date,
|
85
91
|
'invoiceMonthName' => @invoice_month_name,
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -24,6 +24,7 @@ module LockstepSdk
|
|
24
24
|
# Initialize the StatusModel using the provided prototype
|
25
25
|
def initialize(params = {})
|
26
26
|
@user_name = params.dig(:user_name)
|
27
|
+
@email_address = params.dig(:email_address)
|
27
28
|
@account_name = params.dig(:account_name)
|
28
29
|
@account_company_id = params.dig(:account_company_id)
|
29
30
|
@user_id = params.dig(:user_id)
|
@@ -37,14 +38,22 @@ module LockstepSdk
|
|
37
38
|
@environment = params.dig(:environment)
|
38
39
|
@version = params.dig(:version)
|
39
40
|
@onboarding_scheduled = params.dig(:onboarding_scheduled)
|
41
|
+
@magic_link_id = params.dig(:magic_link_id)
|
42
|
+
@magic_link_company_id = params.dig(:magic_link_company_id)
|
43
|
+
@magic_link = params.dig(:magic_link)
|
40
44
|
@dependencies = params.dig(:dependencies)
|
41
45
|
@user_groups = params.dig(:user_groups)
|
46
|
+
@base_currency_code = params.dig(:base_currency_code)
|
42
47
|
end
|
43
48
|
|
44
49
|
##
|
45
50
|
# @return [String] If authentication is successful, contains the username of the logged-in user.
|
46
51
|
attr_accessor :user_name
|
47
52
|
|
53
|
+
##
|
54
|
+
# @return [String] If authentication is successful, contains the email address of the logged-in user.
|
55
|
+
attr_accessor :email_address
|
56
|
+
|
48
57
|
##
|
49
58
|
# @return [String] If authentication is successful, contains subscription account name of logged-in user.
|
50
59
|
attr_accessor :account_name
|
@@ -97,6 +106,18 @@ module LockstepSdk
|
|
97
106
|
# @return [Boolean] If authentication is successful, contains the onboarding session status of the logged-in user's group account.
|
98
107
|
attr_accessor :onboarding_scheduled
|
99
108
|
|
109
|
+
##
|
110
|
+
# @return [Uuid] The id of the Magic link used to authenticate.
|
111
|
+
attr_accessor :magic_link_id
|
112
|
+
|
113
|
+
##
|
114
|
+
# @return [Uuid] The id of the target company for the Magic Link
|
115
|
+
attr_accessor :magic_link_company_id
|
116
|
+
|
117
|
+
##
|
118
|
+
# @return [MagicLinkStatusModel] Magic link information about the user
|
119
|
+
attr_accessor :magic_link
|
120
|
+
|
100
121
|
##
|
101
122
|
# @return [Object] Statuses for the dependencies of this api. OK if the dependency is working.
|
102
123
|
attr_accessor :dependencies
|
@@ -105,11 +126,16 @@ module LockstepSdk
|
|
105
126
|
# @return [UserGroupModel] The set of Groups that the user has access to. You can use the /api/v1/useraccounts/change-group endpoint to change your active group.
|
106
127
|
attr_accessor :user_groups
|
107
128
|
|
129
|
+
##
|
130
|
+
# @return [String] Base Currency of the group
|
131
|
+
attr_accessor :base_currency_code
|
132
|
+
|
108
133
|
##
|
109
134
|
# @return [object] This object as a JSON key-value structure
|
110
135
|
def as_json(options={})
|
111
136
|
{
|
112
137
|
'userName' => @user_name,
|
138
|
+
'emailAddress' => @email_address,
|
113
139
|
'accountName' => @account_name,
|
114
140
|
'accountCompanyId' => @account_company_id,
|
115
141
|
'userId' => @user_id,
|
@@ -123,8 +149,12 @@ module LockstepSdk
|
|
123
149
|
'environment' => @environment,
|
124
150
|
'version' => @version,
|
125
151
|
'onboardingScheduled' => @onboarding_scheduled,
|
152
|
+
'magicLinkId' => @magic_link_id,
|
153
|
+
'magicLinkCompanyId' => @magic_link_company_id,
|
154
|
+
'magicLink' => @magic_link,
|
126
155
|
'dependencies' => @dependencies,
|
127
156
|
'userGroups' => @user_groups,
|
157
|
+
'baseCurrencyCode' => @base_currency_code,
|
128
158
|
}
|
129
159
|
end
|
130
160
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2023 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-2023 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 summary aging bucket total.
|
21
|
+
class SummaryAgingTotalsModel
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the SummaryAgingTotalsModel using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@bucket = params.dig(:bucket)
|
27
|
+
@outstanding_balance = params.dig(:outstanding_balance)
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# @return [String] Aging bucket outstanding balance is associated to.
|
32
|
+
attr_accessor :bucket
|
33
|
+
|
34
|
+
##
|
35
|
+
# @return [Double] Aging outstanding balance value.
|
36
|
+
attr_accessor :outstanding_balance
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [object] This object as a JSON key-value structure
|
40
|
+
def as_json(options={})
|
41
|
+
{
|
42
|
+
'bucket' => @bucket,
|
43
|
+
'outstandingBalance' => @outstanding_balance,
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# @return [String] This object converted to a JSON string
|
49
|
+
def to_json(*options)
|
50
|
+
"[#{as_json(*options).to_json(*options)}]"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -33,6 +33,8 @@ module LockstepSdk
|
|
33
33
|
@sync_request_id = params.dig(:sync_request_id)
|
34
34
|
@group_key = params.dig(:group_key)
|
35
35
|
@status_code = params.dig(:status_code)
|
36
|
+
@operation_type_name = params.dig(:operation_type_name)
|
37
|
+
@operation_type = params.dig(:operation_type)
|
36
38
|
@process_result_message = params.dig(:process_result_message)
|
37
39
|
@run_full_sync = params.dig(:run_full_sync)
|
38
40
|
@app_enrollment_id = params.dig(:app_enrollment_id)
|
@@ -54,6 +56,14 @@ module LockstepSdk
|
|
54
56
|
# @return [String] The status of processing for this SyncRequest. When a SyncRequest is created, it is flagged as `Ready`. When it is picked up for execution, its status moves to `In Progress`. When it is complete, its status will move to `Success` or `Failed`. If another API call cancels the SyncRequest, its status will move to `Cancelled`. * Ready * In Progress * Cancelled * Failed * Success
|
55
57
|
attr_accessor :status_code
|
56
58
|
|
59
|
+
##
|
60
|
+
# @return [String] The name of the OperationType for this SyncRequest
|
61
|
+
attr_accessor :operation_type_name
|
62
|
+
|
63
|
+
##
|
64
|
+
# @return [Int32] The name of the OperationType for this SyncRequest
|
65
|
+
attr_accessor :operation_type
|
66
|
+
|
57
67
|
##
|
58
68
|
# @return [String] Message containing information about the sync request results
|
59
69
|
attr_accessor :process_result_message
|
@@ -89,6 +99,8 @@ module LockstepSdk
|
|
89
99
|
'syncRequestId' => @sync_request_id,
|
90
100
|
'groupKey' => @group_key,
|
91
101
|
'statusCode' => @status_code,
|
102
|
+
'operationTypeName' => @operation_type_name,
|
103
|
+
'operationType' => @operation_type,
|
92
104
|
'processResultMessage' => @process_result_message,
|
93
105
|
'runFullSync' => @run_full_sync,
|
94
106
|
'appEnrollmentId' => @app_enrollment_id,
|
@@ -1,13 +1,13 @@
|
|
1
1
|
#
|
2
2
|
# Lockstep Platform SDK for Ruby
|
3
3
|
#
|
4
|
-
# (c) 2021-
|
4
|
+
# (c) 2021-2023 Lockstep, Inc.
|
5
5
|
#
|
6
6
|
# For the full copyright and license information, please view the LICENSE
|
7
7
|
# file that was distributed with this source code.
|
8
8
|
#
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-
|
10
|
+
# @copyright 2021-2023 Lockstep, Inc.
|
11
11
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
12
|
#
|
13
13
|
|
@@ -0,0 +1,138 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2023 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-2023 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 transaction detail information associated to a transaction. This can either be Invoices which are paid with a
|
21
|
+
# Credit Memo or Payment transaction, or Credit Memos or Payments used as payment for an Invoice transaction.
|
22
|
+
class TransactionDetailModel
|
23
|
+
|
24
|
+
##
|
25
|
+
# Initialize the TransactionDetailModel using the provided prototype
|
26
|
+
def initialize(params = {})
|
27
|
+
@group_key = params.dig(:group_key)
|
28
|
+
@base_currency_code = params.dig(:base_currency_code)
|
29
|
+
@reference_number = params.dig(:reference_number)
|
30
|
+
@transaction_detail_id = params.dig(:transaction_detail_id)
|
31
|
+
@transaction_detail_applied_id = params.dig(:transaction_detail_applied_id)
|
32
|
+
@transaction_id = params.dig(:transaction_id)
|
33
|
+
@transaction_type = params.dig(:transaction_type)
|
34
|
+
@transaction_sub_type = params.dig(:transaction_sub_type)
|
35
|
+
@transaction_date = params.dig(:transaction_date)
|
36
|
+
@transaction_invoice_date = params.dig(:transaction_invoice_date)
|
37
|
+
@currency_code = params.dig(:currency_code)
|
38
|
+
@transaction_amount = params.dig(:transaction_amount)
|
39
|
+
@outstanding_amount = params.dig(:outstanding_amount)
|
40
|
+
@base_currency_transaction_amount = params.dig(:base_currency_transaction_amount)
|
41
|
+
@base_currency_outstanding_amount = params.dig(:base_currency_outstanding_amount)
|
42
|
+
@supports_erp_pdf_retrieval = params.dig(:supports_erp_pdf_retrieval)
|
43
|
+
end
|
44
|
+
|
45
|
+
##
|
46
|
+
# @return [Uuid] Group account transaction detail is associated with.
|
47
|
+
attr_accessor :group_key
|
48
|
+
|
49
|
+
##
|
50
|
+
# @return [String] The base currency code of the group.
|
51
|
+
attr_accessor :base_currency_code
|
52
|
+
|
53
|
+
##
|
54
|
+
# @return [String] An additional reference number that is sometimes used to identify a transaction detail. The meaning of this field is specific to the ERP or accounting system used by the user.
|
55
|
+
attr_accessor :reference_number
|
56
|
+
|
57
|
+
##
|
58
|
+
# @return [Uuid] The unique ID of the transaction detail record.
|
59
|
+
attr_accessor :transaction_detail_id
|
60
|
+
|
61
|
+
##
|
62
|
+
# @return [Uuid] The unique ID of the entity applying the transaction to the transaction detail record.
|
63
|
+
attr_accessor :transaction_detail_applied_id
|
64
|
+
|
65
|
+
##
|
66
|
+
# @return [Uuid] The unique ID of the transaction record.
|
67
|
+
attr_accessor :transaction_id
|
68
|
+
|
69
|
+
##
|
70
|
+
# @return [String] The type of the transaction detail record. Recognized Invoice types are: * `AR Invoice` - Represents an invoice sent by Company to the Customer * `AP Invoice` - Represents an invoice sent by Vendor to the Company * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company Recognized PaymentType values are: * `AR Payment` - A payment made by a Customer to the Company * `AP Payment` - A payment made by the Company to a Vendor
|
71
|
+
attr_accessor :transaction_type
|
72
|
+
|
73
|
+
##
|
74
|
+
# @return [String] Additional type categorization of the transaction.
|
75
|
+
attr_accessor :transaction_sub_type
|
76
|
+
|
77
|
+
##
|
78
|
+
# @return [Date-time] The date when a transaction detail record was reported.
|
79
|
+
attr_accessor :transaction_date
|
80
|
+
|
81
|
+
##
|
82
|
+
# @return [Date-time] The date of the invoice associated to the transaction detail record.
|
83
|
+
attr_accessor :transaction_invoice_date
|
84
|
+
|
85
|
+
##
|
86
|
+
# @return [String] The currency code of the transaction.
|
87
|
+
attr_accessor :currency_code
|
88
|
+
|
89
|
+
##
|
90
|
+
# @return [Double] The total value of this transaction detail, inclusive or all taxes and line items.
|
91
|
+
attr_accessor :transaction_amount
|
92
|
+
|
93
|
+
##
|
94
|
+
# @return [Double] The remaining balance of this transaction detail.
|
95
|
+
attr_accessor :outstanding_amount
|
96
|
+
|
97
|
+
##
|
98
|
+
# @return [Double] The total value of this transaction detail, inclusive or all taxes and line items in the group's base currency.
|
99
|
+
attr_accessor :base_currency_transaction_amount
|
100
|
+
|
101
|
+
##
|
102
|
+
# @return [Double] The remaining balance of this transaction detail in the group's base currency.
|
103
|
+
attr_accessor :base_currency_outstanding_amount
|
104
|
+
|
105
|
+
##
|
106
|
+
# @return [Boolean] Specific transactions have support for pdf retrieval from their respective erp. When this flag is true, an additional call to Invoices/{id}/pdf or Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
|
107
|
+
attr_accessor :supports_erp_pdf_retrieval
|
108
|
+
|
109
|
+
##
|
110
|
+
# @return [object] This object as a JSON key-value structure
|
111
|
+
def as_json(options={})
|
112
|
+
{
|
113
|
+
'groupKey' => @group_key,
|
114
|
+
'baseCurrencyCode' => @base_currency_code,
|
115
|
+
'referenceNumber' => @reference_number,
|
116
|
+
'transactionDetailId' => @transaction_detail_id,
|
117
|
+
'transactionDetailAppliedId' => @transaction_detail_applied_id,
|
118
|
+
'transactionId' => @transaction_id,
|
119
|
+
'transactionType' => @transaction_type,
|
120
|
+
'transactionSubType' => @transaction_sub_type,
|
121
|
+
'transactionDate' => @transaction_date,
|
122
|
+
'transactionInvoiceDate' => @transaction_invoice_date,
|
123
|
+
'currencyCode' => @currency_code,
|
124
|
+
'transactionAmount' => @transaction_amount,
|
125
|
+
'outstandingAmount' => @outstanding_amount,
|
126
|
+
'baseCurrencyTransactionAmount' => @base_currency_transaction_amount,
|
127
|
+
'baseCurrencyOutstandingAmount' => @base_currency_outstanding_amount,
|
128
|
+
'supportsErpPdfRetrieval' => @supports_erp_pdf_retrieval,
|
129
|
+
}
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# @return [String] This object converted to a JSON string
|
134
|
+
def to_json(*options)
|
135
|
+
"[#{as_json(*options).to_json(*options)}]"
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|