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,144 @@
|
|
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 detailed transaction information which represents either Invoices, Credit Memos or Payments
|
21
|
+
# within the group account.
|
22
|
+
class TransactionModel
|
23
|
+
|
24
|
+
##
|
25
|
+
# Initialize the TransactionModel 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_id = params.dig(:transaction_id)
|
31
|
+
@transaction_status = params.dig(:transaction_status)
|
32
|
+
@transaction_type = params.dig(:transaction_type)
|
33
|
+
@transaction_sub_type = params.dig(:transaction_sub_type)
|
34
|
+
@transaction_date = params.dig(:transaction_date)
|
35
|
+
@due_date = params.dig(:due_date)
|
36
|
+
@days_past_due = params.dig(:days_past_due)
|
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
|
+
@transaction_detail_count = params.dig(:transaction_detail_count)
|
43
|
+
@supports_erp_pdf_retrieval = params.dig(:supports_erp_pdf_retrieval)
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [Uuid] Group account transaction is associated with.
|
48
|
+
attr_accessor :group_key
|
49
|
+
|
50
|
+
##
|
51
|
+
# @return [String] The base currency code of the group.
|
52
|
+
attr_accessor :base_currency_code
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [String] An additional reference number that is sometimes used to identify a transaction. The meaning of this field is specific to the ERP or accounting system used by the user.
|
56
|
+
attr_accessor :reference_number
|
57
|
+
|
58
|
+
##
|
59
|
+
# @return [Uuid] The unique ID of the transaction record.
|
60
|
+
attr_accessor :transaction_id
|
61
|
+
|
62
|
+
##
|
63
|
+
# @return [String] The status of the transaction record. Recognized Invoice status codes are: * `Open` - Represents an invoice that is considered open and needs more work to complete * `Closed` - Represents an invoice that is considered closed and resolved Recognized Payment status codes are: * `Open` - Represents an payment that includes some unassigned amount that has not yet been applied to an invoice * `Closed` - Represents an payment where `UnappliedAmount` will be zero
|
64
|
+
attr_accessor :transaction_status
|
65
|
+
|
66
|
+
##
|
67
|
+
# @return [String] The type of the transaction 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
|
68
|
+
attr_accessor :transaction_type
|
69
|
+
|
70
|
+
##
|
71
|
+
# @return [String] Additional type categorization of the transaction.
|
72
|
+
attr_accessor :transaction_sub_type
|
73
|
+
|
74
|
+
##
|
75
|
+
# @return [Date-time] The date when a transaction record was reported.
|
76
|
+
attr_accessor :transaction_date
|
77
|
+
|
78
|
+
##
|
79
|
+
# @return [Date-time] The date when a transaction record is due for payment or completion.
|
80
|
+
attr_accessor :due_date
|
81
|
+
|
82
|
+
##
|
83
|
+
# @return [Int32] The amount of days past the due date the transaction is left un-closed.
|
84
|
+
attr_accessor :days_past_due
|
85
|
+
|
86
|
+
##
|
87
|
+
# @return [String] The currency code of the transaction.
|
88
|
+
attr_accessor :currency_code
|
89
|
+
|
90
|
+
##
|
91
|
+
# @return [Double] The total value of this transaction, inclusive or all taxes and line items.
|
92
|
+
attr_accessor :transaction_amount
|
93
|
+
|
94
|
+
##
|
95
|
+
# @return [Double] The remaining balance of this transaction.
|
96
|
+
attr_accessor :outstanding_amount
|
97
|
+
|
98
|
+
##
|
99
|
+
# @return [Double] The total value of this transaction, inclusive or all taxes and line items in the group's base currency.
|
100
|
+
attr_accessor :base_currency_transaction_amount
|
101
|
+
|
102
|
+
##
|
103
|
+
# @return [Double] The remaining balance of this transaction in the group's base currency.
|
104
|
+
attr_accessor :base_currency_outstanding_amount
|
105
|
+
|
106
|
+
##
|
107
|
+
# @return [Int32] The count of items associated to the transaction. Examples: * Number of payments for an invoice. * Number of invoices a payment or credit memo is applied to.
|
108
|
+
attr_accessor :transaction_detail_count
|
109
|
+
|
110
|
+
##
|
111
|
+
# @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.
|
112
|
+
attr_accessor :supports_erp_pdf_retrieval
|
113
|
+
|
114
|
+
##
|
115
|
+
# @return [object] This object as a JSON key-value structure
|
116
|
+
def as_json(options={})
|
117
|
+
{
|
118
|
+
'groupKey' => @group_key,
|
119
|
+
'baseCurrencyCode' => @base_currency_code,
|
120
|
+
'referenceNumber' => @reference_number,
|
121
|
+
'transactionId' => @transaction_id,
|
122
|
+
'transactionStatus' => @transaction_status,
|
123
|
+
'transactionType' => @transaction_type,
|
124
|
+
'transactionSubType' => @transaction_sub_type,
|
125
|
+
'transactionDate' => @transaction_date,
|
126
|
+
'dueDate' => @due_date,
|
127
|
+
'daysPastDue' => @days_past_due,
|
128
|
+
'currencyCode' => @currency_code,
|
129
|
+
'transactionAmount' => @transaction_amount,
|
130
|
+
'outstandingAmount' => @outstanding_amount,
|
131
|
+
'baseCurrencyTransactionAmount' => @base_currency_transaction_amount,
|
132
|
+
'baseCurrencyOutstandingAmount' => @base_currency_outstanding_amount,
|
133
|
+
'transactionDetailCount' => @transaction_detail_count,
|
134
|
+
'supportsErpPdfRetrieval' => @supports_erp_pdf_retrieval,
|
135
|
+
}
|
136
|
+
end
|
137
|
+
|
138
|
+
##
|
139
|
+
# @return [String] This object converted to a JSON string
|
140
|
+
def to_json(*options)
|
141
|
+
"[#{as_json(*options).to_json(*options)}]"
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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
|
+
class TransactionModelTransactionSummaryTotalModelSummaryFetchResult
|
20
|
+
|
21
|
+
##
|
22
|
+
# Initialize the TransactionModelTransactionSummaryTotalModelSummaryFetchResult using the provided prototype
|
23
|
+
def initialize(params = {})
|
24
|
+
@total_count = params.dig(:total_count)
|
25
|
+
@page_size = params.dig(:page_size)
|
26
|
+
@page_number = params.dig(:page_number)
|
27
|
+
@records = params.dig(:records)
|
28
|
+
@summary = params.dig(:summary)
|
29
|
+
@aging_summary = params.dig(:aging_summary)
|
30
|
+
end
|
31
|
+
|
32
|
+
##
|
33
|
+
# @return [Int32]
|
34
|
+
attr_accessor :total_count
|
35
|
+
|
36
|
+
##
|
37
|
+
# @return [Int32]
|
38
|
+
attr_accessor :page_size
|
39
|
+
|
40
|
+
##
|
41
|
+
# @return [Int32]
|
42
|
+
attr_accessor :page_number
|
43
|
+
|
44
|
+
##
|
45
|
+
# @return [TransactionModel]
|
46
|
+
attr_accessor :records
|
47
|
+
|
48
|
+
##
|
49
|
+
# @return [TransactionSummaryTotalModel] Represents transaction summary information based on the query request within the group account.
|
50
|
+
attr_accessor :summary
|
51
|
+
|
52
|
+
##
|
53
|
+
# @return [SummaryAgingTotalsModel]
|
54
|
+
attr_accessor :aging_summary
|
55
|
+
|
56
|
+
##
|
57
|
+
# @return [object] This object as a JSON key-value structure
|
58
|
+
def as_json(options={})
|
59
|
+
{
|
60
|
+
'totalCount' => @total_count,
|
61
|
+
'pageSize' => @page_size,
|
62
|
+
'pageNumber' => @page_number,
|
63
|
+
'records' => @records,
|
64
|
+
'summary' => @summary,
|
65
|
+
'agingSummary' => @aging_summary,
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# @return [String] This object converted to a JSON string
|
71
|
+
def to_json(*options)
|
72
|
+
"[#{as_json(*options).to_json(*options)}]"
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 summary information based on the query request within the group account.
|
21
|
+
class TransactionSummaryTotalModel
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the TransactionSummaryTotalModel using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@total_count = params.dig(:total_count)
|
27
|
+
@total_amount = params.dig(:total_amount)
|
28
|
+
@outstanding_amount = params.dig(:outstanding_amount)
|
29
|
+
@invoice_open_count = params.dig(:invoice_open_count)
|
30
|
+
@invoice_past_due_count = params.dig(:invoice_past_due_count)
|
31
|
+
end
|
32
|
+
|
33
|
+
##
|
34
|
+
# @return [Int32] Total count of all transactions from the query request.
|
35
|
+
attr_accessor :total_count
|
36
|
+
|
37
|
+
##
|
38
|
+
# @return [Double] Total value of all transactions from the query request.
|
39
|
+
attr_accessor :total_amount
|
40
|
+
|
41
|
+
##
|
42
|
+
# @return [Double] Total outstanding amount value of all transactions from the query request.
|
43
|
+
attr_accessor :outstanding_amount
|
44
|
+
|
45
|
+
##
|
46
|
+
# @return [Int32] Total open invoice count from the query request.
|
47
|
+
attr_accessor :invoice_open_count
|
48
|
+
|
49
|
+
##
|
50
|
+
# @return [Int32] Total past due invoice count from the query request.
|
51
|
+
attr_accessor :invoice_past_due_count
|
52
|
+
|
53
|
+
##
|
54
|
+
# @return [object] This object as a JSON key-value structure
|
55
|
+
def as_json(options={})
|
56
|
+
{
|
57
|
+
'totalCount' => @total_count,
|
58
|
+
'totalAmount' => @total_amount,
|
59
|
+
'outstandingAmount' => @outstanding_amount,
|
60
|
+
'invoiceOpenCount' => @invoice_open_count,
|
61
|
+
'invoicePastDueCount' => @invoice_past_due_count,
|
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
|
@@ -0,0 +1,71 @@
|
|
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
|
+
# A request to transcribe the provided file content to a Lockstep Platform object.
|
21
|
+
class TranscriptionRequestSubmit
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the TranscriptionRequestSubmit using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@file_content = params.dig(:file_content)
|
27
|
+
@file_url = params.dig(:file_url)
|
28
|
+
@file_content_url = params.dig(:file_content_url)
|
29
|
+
@file_name = params.dig(:file_name)
|
30
|
+
@invoice_type_code = params.dig(:invoice_type_code)
|
31
|
+
end
|
32
|
+
|
33
|
+
##
|
34
|
+
# @return [String] The base64 string of document content
|
35
|
+
attr_accessor :file_content
|
36
|
+
|
37
|
+
##
|
38
|
+
# @return [String] The location of the file provided
|
39
|
+
attr_accessor :file_url
|
40
|
+
|
41
|
+
##
|
42
|
+
# @return [String] The location of the file provided
|
43
|
+
attr_accessor :file_content_url
|
44
|
+
|
45
|
+
##
|
46
|
+
# @return [String] The name of the file provided
|
47
|
+
attr_accessor :file_name
|
48
|
+
|
49
|
+
##
|
50
|
+
# @return [String] The type of LockstepApi2.Models.TranscriptionRequestSubmit.InvoiceTypeCode requested to transcribe content to.
|
51
|
+
attr_accessor :invoice_type_code
|
52
|
+
|
53
|
+
##
|
54
|
+
# @return [object] This object as a JSON key-value structure
|
55
|
+
def as_json(options={})
|
56
|
+
{
|
57
|
+
'fileContent' => @file_content,
|
58
|
+
'fileUrl' => @file_url,
|
59
|
+
'fileContentUrl' => @file_content_url,
|
60
|
+
'fileName' => @file_name,
|
61
|
+
'invoiceTypeCode' => @invoice_type_code,
|
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
|
@@ -0,0 +1,89 @@
|
|
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 a transcription validation request that is used to validate if file is of a specific type.
|
21
|
+
class TranscriptionValidationRequest
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the TranscriptionValidationRequest using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@transcription_validation_request_id = params.dig(:transcription_validation_request_id)
|
27
|
+
@group_key = params.dig(:group_key)
|
28
|
+
@status_code = params.dig(:status_code)
|
29
|
+
@created = params.dig(:created)
|
30
|
+
@created_user_id = params.dig(:created_user_id)
|
31
|
+
@modified = params.dig(:modified)
|
32
|
+
@modified_user_id = params.dig(:modified_user_id)
|
33
|
+
@items = params.dig(:items)
|
34
|
+
end
|
35
|
+
|
36
|
+
##
|
37
|
+
# @return [Uuid] The unique identifier of the transcription validation request.
|
38
|
+
attr_accessor :transcription_validation_request_id
|
39
|
+
|
40
|
+
##
|
41
|
+
# @return [Uuid] Group account transcription validation request is associated with.
|
42
|
+
attr_accessor :group_key
|
43
|
+
|
44
|
+
##
|
45
|
+
# @return [String] A code identifying the status of this transcription validation request. Recognized Transcription Validation Request status codes are: * `New` - Represents a transcription validation request that is considered new and needs work to complete * `In Progress` - Represents a transcription validation request that is currently being worked on * `Failed` - Represents a transcription validation request that could not complete the validation process * `Complete` - Represents a transcription validation request that is considered complete and does not need any further work
|
46
|
+
attr_accessor :status_code
|
47
|
+
|
48
|
+
##
|
49
|
+
# @return [Date-time] The date on which this transcription validation request was created.
|
50
|
+
attr_accessor :created
|
51
|
+
|
52
|
+
##
|
53
|
+
# @return [Uuid] The ID number of the user who created this transcription validation request.
|
54
|
+
attr_accessor :created_user_id
|
55
|
+
|
56
|
+
##
|
57
|
+
# @return [Date-time] The date on which this transcription validation request was last modified.
|
58
|
+
attr_accessor :modified
|
59
|
+
|
60
|
+
##
|
61
|
+
# @return [Uuid] The ID number of the user who most recently modified this transcription validation request.
|
62
|
+
attr_accessor :modified_user_id
|
63
|
+
|
64
|
+
##
|
65
|
+
# @return [TranscriptionValidationRequestItem] All items attached to this transcription validation request. To retrieve this collection, specify `Items` in the "Include" parameter for your query.
|
66
|
+
attr_accessor :items
|
67
|
+
|
68
|
+
##
|
69
|
+
# @return [object] This object as a JSON key-value structure
|
70
|
+
def as_json(options={})
|
71
|
+
{
|
72
|
+
'transcriptionValidationRequestId' => @transcription_validation_request_id,
|
73
|
+
'groupKey' => @group_key,
|
74
|
+
'statusCode' => @status_code,
|
75
|
+
'created' => @created,
|
76
|
+
'createdUserId' => @created_user_id,
|
77
|
+
'modified' => @modified,
|
78
|
+
'modifiedUserId' => @modified_user_id,
|
79
|
+
'items' => @items,
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# @return [String] This object converted to a JSON string
|
85
|
+
def to_json(*options)
|
86
|
+
"[#{as_json(*options).to_json(*options)}]"
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,149 @@
|
|
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 a transcription validation request item to be validated.
|
21
|
+
class TranscriptionValidationRequestItem
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the TranscriptionValidationRequestItem using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@transcription_validation_request_item_id = params.dig(:transcription_validation_request_item_id)
|
27
|
+
@transcription_validation_request_id = params.dig(:transcription_validation_request_id)
|
28
|
+
@group_key = params.dig(:group_key)
|
29
|
+
@file_hash = params.dig(:file_hash)
|
30
|
+
@file_name = params.dig(:file_name)
|
31
|
+
@file_ext = params.dig(:file_ext)
|
32
|
+
@file_location = params.dig(:file_location)
|
33
|
+
@transcription_result = params.dig(:transcription_result)
|
34
|
+
@process_start = params.dig(:process_start)
|
35
|
+
@process_end = params.dig(:process_end)
|
36
|
+
@retry_count = params.dig(:retry_count)
|
37
|
+
@feedback_result = params.dig(:feedback_result)
|
38
|
+
@feedback_sent = params.dig(:feedback_sent)
|
39
|
+
@status_code = params.dig(:status_code)
|
40
|
+
@created = params.dig(:created)
|
41
|
+
@created_user_id = params.dig(:created_user_id)
|
42
|
+
@modified = params.dig(:modified)
|
43
|
+
@modified_user_id = params.dig(:modified_user_id)
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# @return [Uuid] The unique identifier of the transcription validation request item.
|
48
|
+
attr_accessor :transcription_validation_request_item_id
|
49
|
+
|
50
|
+
##
|
51
|
+
# @return [Uuid] The ID number of the transcription validation request this item belongs to.
|
52
|
+
attr_accessor :transcription_validation_request_id
|
53
|
+
|
54
|
+
##
|
55
|
+
# @return [Uuid] Group account transcription validation request item is associated with.
|
56
|
+
attr_accessor :group_key
|
57
|
+
|
58
|
+
##
|
59
|
+
# @return [String] Generated hash of the file being validated.
|
60
|
+
attr_accessor :file_hash
|
61
|
+
|
62
|
+
##
|
63
|
+
# @return [String] Original name of the file on disk, without its extension.
|
64
|
+
attr_accessor :file_name
|
65
|
+
|
66
|
+
##
|
67
|
+
# @return [String] Original extension name of the file on disk.
|
68
|
+
attr_accessor :file_ext
|
69
|
+
|
70
|
+
##
|
71
|
+
# @return [String] Location of file in blob storage to be validated.
|
72
|
+
attr_accessor :file_location
|
73
|
+
|
74
|
+
##
|
75
|
+
# @return [String] Transcription result
|
76
|
+
attr_accessor :transcription_result
|
77
|
+
|
78
|
+
##
|
79
|
+
# @return [Date-time] Transcription process start date
|
80
|
+
attr_accessor :process_start
|
81
|
+
|
82
|
+
##
|
83
|
+
# @return [Date-time] Transcription process end date
|
84
|
+
attr_accessor :process_end
|
85
|
+
|
86
|
+
##
|
87
|
+
# @return [Int32] Amount of times item was processed to retrieve the transcription data
|
88
|
+
attr_accessor :retry_count
|
89
|
+
|
90
|
+
##
|
91
|
+
# @return [String] Feedback result specified by the client when the transcription result is not correct. This feedback result will be sent back to the transcription services to retrain and improve models over time.
|
92
|
+
attr_accessor :feedback_result
|
93
|
+
|
94
|
+
##
|
95
|
+
# @return [Date-time] Date when feedback result was sent back to transcription service.
|
96
|
+
attr_accessor :feedback_sent
|
97
|
+
|
98
|
+
##
|
99
|
+
# @return [String] A code identifying the status of this transcription validation request item. Recognized Transcription Validation Request status codes are: * `New` - Represents a transcription validation request item that is considered new and needs work to complete * `In Progress` - Represents a transcription validation request item that is currently being worked on * `Failed` - Represents a transcription validation request item that could not complete the validation process * `Complete` - Represents a transcription validation request item that is considered complete and does not need any further work
|
100
|
+
attr_accessor :status_code
|
101
|
+
|
102
|
+
##
|
103
|
+
# @return [Date-time] The date on which this transcription validation request item was created.
|
104
|
+
attr_accessor :created
|
105
|
+
|
106
|
+
##
|
107
|
+
# @return [Uuid] The ID number of the user who created this transcription validation request item.
|
108
|
+
attr_accessor :created_user_id
|
109
|
+
|
110
|
+
##
|
111
|
+
# @return [Date-time] The date on which this transcription validation request item was last modified.
|
112
|
+
attr_accessor :modified
|
113
|
+
|
114
|
+
##
|
115
|
+
# @return [Uuid] The ID number of the user who most recently modified this transcription validation request item.
|
116
|
+
attr_accessor :modified_user_id
|
117
|
+
|
118
|
+
##
|
119
|
+
# @return [object] This object as a JSON key-value structure
|
120
|
+
def as_json(options={})
|
121
|
+
{
|
122
|
+
'transcriptionValidationRequestItemId' => @transcription_validation_request_item_id,
|
123
|
+
'transcriptionValidationRequestId' => @transcription_validation_request_id,
|
124
|
+
'groupKey' => @group_key,
|
125
|
+
'fileHash' => @file_hash,
|
126
|
+
'fileName' => @file_name,
|
127
|
+
'fileExt' => @file_ext,
|
128
|
+
'fileLocation' => @file_location,
|
129
|
+
'transcriptionResult' => @transcription_result,
|
130
|
+
'processStart' => @process_start,
|
131
|
+
'processEnd' => @process_end,
|
132
|
+
'retryCount' => @retry_count,
|
133
|
+
'feedbackResult' => @feedback_result,
|
134
|
+
'feedbackSent' => @feedback_sent,
|
135
|
+
'statusCode' => @status_code,
|
136
|
+
'created' => @created,
|
137
|
+
'createdUserId' => @created_user_id,
|
138
|
+
'modified' => @modified,
|
139
|
+
'modifiedUserId' => @modified_user_id,
|
140
|
+
}
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# @return [String] This object converted to a JSON string
|
145
|
+
def to_json(*options)
|
146
|
+
"[#{as_json(*options).to_json(*options)}]"
|
147
|
+
end
|
148
|
+
end
|
149
|
+
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
|
|
@@ -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
|
|