lockstep_sdk 2023.1.3.0 → 2023.3.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lockstep_sdk/clients/invoices_client.rb +4 -2
  3. data/lib/lockstep_sdk/clients/payments_client.rb +1 -1
  4. data/lib/lockstep_sdk/clients/profiles_accounting_contacts_client.rb +11 -0
  5. data/lib/lockstep_sdk/clients/transcriptions_client.rb +63 -0
  6. data/lib/lockstep_sdk/clients/user_accounts_client.rb +14 -1
  7. data/lib/lockstep_sdk/lockstep_api.rb +3 -3
  8. data/lib/lockstep_sdk/models/base_currency_sync_model.rb +55 -0
  9. data/lib/lockstep_sdk/models/batch_sync_model.rb +6 -0
  10. data/lib/lockstep_sdk/models/company_details_model.rb +8 -2
  11. data/lib/lockstep_sdk/models/company_details_payment_model.rb +12 -0
  12. data/lib/lockstep_sdk/models/company_model.rb +18 -0
  13. data/lib/lockstep_sdk/models/dpo_summary_group_total_model.rb +7 -1
  14. data/lib/lockstep_sdk/models/dpo_summary_model.rb +7 -1
  15. data/lib/lockstep_sdk/models/invoice_summary_model_invoice_summary_totals_model_summary_fetch_result.rb +6 -6
  16. data/lib/lockstep_sdk/models/payables_coming_due_header_model.rb +7 -1
  17. data/lib/lockstep_sdk/models/payables_coming_due_model.rb +7 -1
  18. data/lib/lockstep_sdk/models/payables_coming_due_widget_model.rb +7 -1
  19. data/lib/lockstep_sdk/models/payables_summary_report_model.rb +8 -2
  20. data/lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb +6 -6
  21. data/lib/lockstep_sdk/models/status_model.rb +12 -0
  22. data/lib/lockstep_sdk/models/support_access_model.rb +53 -0
  23. data/lib/lockstep_sdk/models/support_access_request.rb +47 -0
  24. data/lib/lockstep_sdk/models/transcription_request_submit.rb +7 -1
  25. data/lib/lockstep_sdk/models/{transcription_validation_request_item.rb → transcription_validation_request_item_model.rb} +2 -2
  26. data/lib/lockstep_sdk/models/{transcription_validation_request.rb → transcription_validation_request_model.rb} +3 -3
  27. data/lib/lockstep_sdk/models/webhook_model.rb +1 -1
  28. data/lib/lockstep_sdk/version.rb +1 -1
  29. metadata +7 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ed4e526a431a87f3e9fa4ffce45e7bf0084cf614228f155698e6e10ec6a1fd6
4
- data.tar.gz: e6f1d7589adbd2b3cfc896e06638f4152be249f10f3c98a772c7ccdd470abfa3
3
+ metadata.gz: 0d1f5c4c48104c1fbe168d5100f83ab22c372c3a1b4193dc231b05d375fd9e14
4
+ data.tar.gz: 76a4033fccfb500befa34a06e9fcbe00727e90ce356eb6e5e40cf98d7e552983
5
5
  SHA512:
6
- metadata.gz: eee249a9fa647b1a57f322aff3b05403275657a9ec08504cf1f41d69eee81cbd53bad940180f7039c3434529f57fab4256f65e1f198690cb227d44337e6c1650
7
- data.tar.gz: 97d62df097c426559eafcacfdf2feaeaaf965b8380a6bacd1af615c9abc20d39fad5538a80f020075ab4a91da39ebddd0033e58369a01f95f7cd0f3abc187a2f
6
+ metadata.gz: e960627ab90c321e409354ab713217d1fda12ccad5f068443a64fdeac75eecc8ccd7f3fdd8e8ad44b42c8e83fed41576dff1a4a4e7e41552f92e5226f321437f
7
+ data.tar.gz: de3cd0ac9c19ef2211d1c7c13414a9c9851335f6d50b16fb5bd992872e7de825ac3945c10e2266da84fbf118dbd8105e6444789979a6b9bfe4e9a1949b228a05
@@ -103,9 +103,11 @@ class InvoicesClient
103
103
  ##
104
104
  # Retrieves a PDF file for this invoice if it is of one of the supported invoice types and has been synced using an app enrollment to one of the supported apps.
105
105
  #
106
- # Supported apps: Quickbooks Online, Xero
106
+ # Sage Intacct supports AR Invoices.
107
107
  #
108
- # Supported invoice types: Invoice, Credit Memo
108
+ # Quickbooks Online supports AR Invoices, and AR Credit Memos.
109
+ #
110
+ # Xero supports AR Invoices, AP Invoices, AR Credit Memos, and AP Credit Memos.
109
111
  #
110
112
  # @param id [uuid] The unique Lockstep Platform ID number of this invoice; NOT the customer's ERP key
111
113
  def retrieve_invoice_pdf(id:)
@@ -94,7 +94,7 @@ class PaymentsClient
94
94
  ##
95
95
  # Retrieves a PDF file for this payment if it has been synced using an app enrollment to one of the supported apps.
96
96
  #
97
- # Supported apps: Quickbooks Online
97
+ # Quickbooks Online supports AR Payments.
98
98
  #
99
99
  # @param id [uuid] The unique Lockstep Platform ID number of this payment; NOT the customer's ERP key
100
100
  def retrieve_payment_pdf(id:)
@@ -88,4 +88,15 @@ class ProfilesAccountingContactsClient
88
88
  params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
89
89
  @connection.request(:get, path, nil, params)
90
90
  end
91
+
92
+ ##
93
+ # Updates an accounting profile contact that matches the specified id with the primary contact attached to the accounting profile
94
+ #
95
+ # An Accounting Profile Contact has a link to a Contact that is associated with your company's Accounting Profile. These Contacts are secondary contacts to the primary that is on the profile.
96
+ #
97
+ # @param id [uuid] The unique Lockstep Platform ID number of the Accounting Profile Contact to update
98
+ def swap_secondary_and_primary_contact(id:)
99
+ path = "/api/v1/profiles/accounting/contacts/#{id}/primary"
100
+ @connection.request(:patch, path, nil, nil)
101
+ end
91
102
  end
@@ -88,4 +88,67 @@ class TranscriptionsClient
88
88
  params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
89
89
  @connection.request(:get, path, nil, params)
90
90
  end
91
+
92
+ ##
93
+ # Retrieves the TranscriptionValidationRequestItemModel specified by this unique identifier.
94
+ #
95
+ # A TranscriptionValidationRequestItemModel represents a file sent from the client to verify the file type using the machine learning platform Sage AI.
96
+ #
97
+ # @param body [TranscriptionRequestSubmit] The TranscriptionValidationRequestItemModels to add to an existing TranscriptionValidationRequestItemModel
98
+ def creates_a_transcriptionvalidationrequestitemmodel(body:)
99
+ path = "/api/v1/Transcriptions/validation-items"
100
+ @connection.request(:post, path, body, nil)
101
+ end
102
+
103
+ ##
104
+ # Retrieves the TranscriptionValidationRequestItemModel specified by this unique identifier.
105
+ #
106
+ # A TranscriptionValidationRequestItemModel represents a file sent from the client to verify the file type using the machine learning platform Sage AI.
107
+ #
108
+ # @param id [uuid] The unique Lockstep Platform ID number of the TranscriptionValidationRequestItemModel
109
+ def retrieve_a_transcriptionvalidationrequestitemmodel(id:)
110
+ path = "/api/v1/Transcriptions/validation-items/#{id}"
111
+ @connection.request(:get, path, nil, nil)
112
+ end
113
+
114
+ ##
115
+ # Updates the TranscriptionValidationRequestItemModel specified by this unique identifier.
116
+ #
117
+ # 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.
118
+ #
119
+ # A TranscriptionValidationRequestItemModel represents a file sent from the client to verify the file type using the machine learning platform Sage AI.
120
+ #
121
+ # @param id [uuid] The unique Lockstep Platform ID number of the TranscriptionValidationRequestItemModel
122
+ # @param body [object] A list of changes to apply to this TranscriptionValidationRequestItemModel
123
+ def update_a_transcriptionvalidationrequestitemmodel(id:, body:)
124
+ path = "/api/v1/Transcriptions/validation-items/#{id}"
125
+ @connection.request(:patch, path, body.to_camelback_keys.to_json, nil)
126
+ end
127
+
128
+ ##
129
+ # Deletes the TranscriptionValidationRequestItemModel specified by this unique identifier.
130
+ #
131
+ # A TranscriptionValidationRequestItemModel represents a file sent from the client to verify the file type using the machine learning platform Sage AI.
132
+ #
133
+ # @param id [uuid] The unique Lockstep Platform ID number of the TranscriptionValidationRequestItemModel
134
+ def delete_a_transcriptionvalidationrequestitemmodel(id:)
135
+ path = "/api/v1/Transcriptions/validation-items/#{id}"
136
+ @connection.request(:delete, path, nil, nil)
137
+ end
138
+
139
+ ##
140
+ # Queries TranscriptionValidationRequestItemModels for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
141
+ #
142
+ # 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.
143
+ #
144
+ # @param filter [string] The filter for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
145
+ # @param include_param [string] To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future ///
146
+ # @param order [string] The sort order for this query. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
147
+ # @param page_size [int32] The page size for results (default 250, maximum of 500). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
148
+ # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
149
+ def query_transcription_validation_request_items(filter:, include_param:, order:, page_size:, page_number:)
150
+ path = "/api/v1/Transcriptions/validation-items/query"
151
+ params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
152
+ @connection.request(:get, path, nil, params)
153
+ end
91
154
  end
@@ -125,10 +125,23 @@ class UserAccountsClient
125
125
  ##
126
126
  # Retrieves the user data for the current user. This allows for retrieving extended user data such as UTM parameters.
127
127
  #
128
- # @param include_param [string] The set of data to retrieve. To avoid any casing confusion, these values are converted to upper case in storage. Possible values are: UTM
128
+ # @param include_param [string] The set of data to retrieve. To avoid any casing confusion, these values are converted to upper case. Possible values are: UTM
129
129
  def get_user_data(include_param:)
130
130
  path = "/api/v1/UserAccounts/user-data"
131
131
  params = {:include => include_param}
132
132
  @connection.request(:get, path, nil, params)
133
133
  end
134
+
135
+ ##
136
+ # Set support access for the calling user.
137
+ #
138
+ # Support access allows Lockstep to access the user's account to troubleshoot issues. Access is granted for a limited time, can be revoked at any time, and requires a code to verify the access.
139
+ #
140
+ # Every call to this API will regenerate the support access code.
141
+ #
142
+ # @param body [SupportAccessRequest]
143
+ def set_support_access(body:)
144
+ path = "/api/v1/UserAccounts/support-access"
145
+ @connection.request(:post, path, body, nil)
146
+ end
134
147
  end
@@ -9,7 +9,7 @@
9
9
  # @author Lockstep Network <support@lockstep.io>
10
10
  # Manish Narayan B S <manish.n@lockstep.io>, Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
11
11
  # @copyright 2021-2023 Lockstep, Inc.
12
- # @version 2023.1.3
12
+ # @version 2023.3.18
13
13
  # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
14
14
  #
15
15
 
@@ -194,7 +194,7 @@ module lockstep_sdk
194
194
  #
195
195
  # @param env [string] Either "sbx", "prd", or the URI of the server, ending in a slash (/)
196
196
  def initialize(env)
197
- @version = "2023.1.3.0"
197
+ @version = "2023.3.18.0"
198
198
  @env = case env
199
199
  when "sbx"
200
200
  "https://api.sbx.lockstep.io/"
@@ -307,7 +307,7 @@ module lockstep_sdk
307
307
  request["Accept"] = 'application/json'
308
308
  request["Content-Type"] = 'application/*+json'
309
309
  request["SdkType"] = 'Ruby'
310
- request["SdkVersion"] = '2023.1.3.0'
310
+ request["SdkVersion"] = '2023.3.18.0'
311
311
  request["MachineName"] = Socket.gethostname
312
312
  request.body = body
313
313
 
@@ -0,0 +1,55 @@
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 BaseCurrencySyncModel represents information coming into Lockstep from an external financial system or other
21
+ # enterprise resource planning system. To import data from an external system, convert your original data into
22
+ # the BaseCurrencySyncModel format and call the [Upload Sync File API](https://developer.lockstep.io/reference/post_api-v1-sync-zip).
23
+ # This API retrieves all of the data you uploaded in a compressed ZIP file and imports it into the Lockstep
24
+ # platform.
25
+ #
26
+ # Once imported, this record will be used to update the Group Account base currency code.
27
+ #
28
+ # For more information on writing your own connector, see [Connector Data](https://developer.lockstep.io/docs/connector-data).
29
+ class BaseCurrencySyncModel
30
+
31
+ ##
32
+ # Initialize the BaseCurrencySyncModel using the provided prototype
33
+ def initialize(params = {})
34
+ @base_currency_code = params.dig(:base_currency_code)
35
+ end
36
+
37
+ ##
38
+ # @return [String] The default currency code used by this business entity. For a list of defined currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies)
39
+ attr_accessor :base_currency_code
40
+
41
+ ##
42
+ # @return [object] This object as a JSON key-value structure
43
+ def as_json(options={})
44
+ {
45
+ 'baseCurrencyCode' => @base_currency_code,
46
+ }
47
+ end
48
+
49
+ ##
50
+ # @return [String] This object converted to a JSON string
51
+ def to_json(*options)
52
+ "[#{as_json(*options).to_json(*options)}]"
53
+ end
54
+ end
55
+ end
@@ -42,6 +42,7 @@ module LockstepSdk
42
42
  @financial_year_settings = params.dig(:financial_year_settings)
43
43
  @financial_accounts = params.dig(:financial_accounts)
44
44
  @financial_account_balance_histories = params.dig(:financial_account_balance_histories)
45
+ @base_currencies = params.dig(:base_currencies)
45
46
  end
46
47
 
47
48
  ##
@@ -88,6 +89,10 @@ module LockstepSdk
88
89
  # @return [FinancialAccountBalanceHistorySyncModel] A list of FinancialAccountBalanceHistory records to merge with your Lockstep Platform data
89
90
  attr_accessor :financial_account_balance_histories
90
91
 
92
+ ##
93
+ # @return [BaseCurrencySyncModel] A list of BaseCurrency records to merge with your Lockstep Platform data
94
+ attr_accessor :base_currencies
95
+
91
96
  ##
92
97
  # @return [object] This object as a JSON key-value structure
93
98
  def as_json(options={})
@@ -103,6 +108,7 @@ module LockstepSdk
103
108
  'financialYearSettings' => @financial_year_settings,
104
109
  'financialAccounts' => @financial_accounts,
105
110
  'financialAccountBalanceHistories' => @financial_account_balance_histories,
111
+ 'baseCurrencies' => @base_currencies,
106
112
  }
107
113
  end
108
114
 
@@ -40,6 +40,7 @@ module LockstepSdk
40
40
  @contact_name = params.dig(:contact_name)
41
41
  @contact_email = params.dig(:contact_email)
42
42
  @outstanding_invoices = params.dig(:outstanding_invoices)
43
+ @group_base_currency_code = params.dig(:group_base_currency_code)
43
44
  @outstanding_amount = params.dig(:outstanding_amount)
44
45
  @amount_past_due = params.dig(:amount_past_due)
45
46
  @payments = params.dig(:payments)
@@ -114,11 +115,15 @@ module LockstepSdk
114
115
  attr_accessor :outstanding_invoices
115
116
 
116
117
  ##
117
- # @return [Double] Company total outstanding invoice amount
118
+ # @return [String] The group's base currency code.
119
+ attr_accessor :group_base_currency_code
120
+
121
+ ##
122
+ # @return [Double] Company total outstanding invoice amount in the group's base currency.
118
123
  attr_accessor :outstanding_amount
119
124
 
120
125
  ##
121
- # @return [Double] Company total past due amount
126
+ # @return [Double] Company total past due amount in the group's base currency.
122
127
  attr_accessor :amount_past_due
123
128
 
124
129
  ##
@@ -146,6 +151,7 @@ module LockstepSdk
146
151
  'contactName' => @contact_name,
147
152
  'contactEmail' => @contact_email,
148
153
  'outstandingInvoices' => @outstanding_invoices,
154
+ 'groupBaseCurrencyCode' => @group_base_currency_code,
149
155
  'outstandingAmount' => @outstanding_amount,
150
156
  'amountPastDue' => @amount_past_due,
151
157
  'payments' => @payments,
@@ -30,8 +30,10 @@ module LockstepSdk
30
30
  @invoice_id = params.dig(:invoice_id)
31
31
  @invoice_type_code = params.dig(:invoice_type_code)
32
32
  @invoice_reference_code = params.dig(:invoice_reference_code)
33
+ @invoice_currency_code = params.dig(:invoice_currency_code)
33
34
  @invoice_total_amount = params.dig(:invoice_total_amount)
34
35
  @payment_date = params.dig(:payment_date)
36
+ @payment_currency_code = params.dig(:payment_currency_code)
35
37
  @payment_amount = params.dig(:payment_amount)
36
38
  end
37
39
 
@@ -63,6 +65,10 @@ module LockstepSdk
63
65
  # @return [String] Invoice reference code payment is associated with
64
66
  attr_accessor :invoice_reference_code
65
67
 
68
+ ##
69
+ # @return [String] The currency code of the invoice the payment is associated with.
70
+ attr_accessor :invoice_currency_code
71
+
66
72
  ##
67
73
  # @return [Double] Invoice total amount payment is associated with
68
74
  attr_accessor :invoice_total_amount
@@ -71,6 +77,10 @@ module LockstepSdk
71
77
  # @return [Date-time] Date payment placed
72
78
  attr_accessor :payment_date
73
79
 
80
+ ##
81
+ # @return [String] The currency code of the payment.
82
+ attr_accessor :payment_currency_code
83
+
74
84
  ##
75
85
  # @return [Double] Amount payment was made for
76
86
  attr_accessor :payment_amount
@@ -86,8 +96,10 @@ module LockstepSdk
86
96
  'invoiceId' => @invoice_id,
87
97
  'invoiceTypeCode' => @invoice_type_code,
88
98
  'invoiceReferenceCode' => @invoice_reference_code,
99
+ 'invoiceCurrencyCode' => @invoice_currency_code,
89
100
  'invoiceTotalAmount' => @invoice_total_amount,
90
101
  'paymentDate' => @payment_date,
102
+ 'paymentCurrencyCode' => @payment_currency_code,
91
103
  'paymentAmount' => @payment_amount,
92
104
  }
93
105
  end
@@ -65,6 +65,9 @@ module LockstepSdk
65
65
  @app_enrollment_id = params.dig(:app_enrollment_id)
66
66
  @email_address = params.dig(:email_address)
67
67
  @public_url_slug = params.dig(:public_url_slug)
68
+ @state_tax_id = params.dig(:state_tax_id)
69
+ @state_of_incorporation = params.dig(:state_of_incorporation)
70
+ @linked_in_url_slug = params.dig(:linked_in_url_slug)
68
71
  @view_box_settings = params.dig(:view_box_settings)
69
72
  @notes = params.dig(:notes)
70
73
  @attachments = params.dig(:attachments)
@@ -227,6 +230,18 @@ module LockstepSdk
227
230
  # @return [String] The public url slug for the Company.
228
231
  attr_accessor :public_url_slug
229
232
 
233
+ ##
234
+ # @return [String] State Tax ID
235
+ attr_accessor :state_tax_id
236
+
237
+ ##
238
+ # @return [String] The state where the company was registered.
239
+ attr_accessor :state_of_incorporation
240
+
241
+ ##
242
+ # @return [String] Linkedin Url
243
+ attr_accessor :linked_in_url_slug
244
+
230
245
  ##
231
246
  # @return [ViewBoxSettingsModel] View box settings for the company logo.
232
247
  attr_accessor :view_box_settings
@@ -301,6 +316,9 @@ module LockstepSdk
301
316
  'appEnrollmentId' => @app_enrollment_id,
302
317
  'emailAddress' => @email_address,
303
318
  'publicUrlSlug' => @public_url_slug,
319
+ 'stateTaxId' => @state_tax_id,
320
+ 'stateOfIncorporation' => @state_of_incorporation,
321
+ 'linkedInUrlSlug' => @linked_in_url_slug,
304
322
  'viewBoxSettings' => @view_box_settings,
305
323
  'notes' => @notes,
306
324
  'attachments' => @attachments,
@@ -26,6 +26,7 @@ module LockstepSdk
26
26
  @group_key = params.dig(:group_key)
27
27
  @vendors = params.dig(:vendors)
28
28
  @bills = params.dig(:bills)
29
+ @base_currency_code = params.dig(:base_currency_code)
29
30
  @amount_outstanding = params.dig(:amount_outstanding)
30
31
  @dpo = params.dig(:dpo)
31
32
  end
@@ -43,7 +44,11 @@ module LockstepSdk
43
44
  attr_accessor :bills
44
45
 
45
46
  ##
46
- # @return [Double] The total amount outstanding
47
+ # @return [String] The group's base currency code
48
+ attr_accessor :base_currency_code
49
+
50
+ ##
51
+ # @return [Double] The total amount outstanding at the group's base currency.
47
52
  attr_accessor :amount_outstanding
48
53
 
49
54
  ##
@@ -57,6 +62,7 @@ module LockstepSdk
57
62
  'groupKey' => @group_key,
58
63
  'vendors' => @vendors,
59
64
  'bills' => @bills,
65
+ 'baseCurrencyCode' => @base_currency_code,
60
66
  'amountOutstanding' => @amount_outstanding,
61
67
  'dpo' => @dpo,
62
68
  }
@@ -28,6 +28,7 @@ module LockstepSdk
28
28
  @vendor_name = params.dig(:vendor_name)
29
29
  @primary_contact = params.dig(:primary_contact)
30
30
  @bills = params.dig(:bills)
31
+ @base_currency_code = params.dig(:base_currency_code)
31
32
  @amount_outstanding = params.dig(:amount_outstanding)
32
33
  @dpo = params.dig(:dpo)
33
34
  end
@@ -53,7 +54,11 @@ module LockstepSdk
53
54
  attr_accessor :bills
54
55
 
55
56
  ##
56
- # @return [Double] The total amount outstanding.
57
+ # @return [String] The group's base currency code.
58
+ attr_accessor :base_currency_code
59
+
60
+ ##
61
+ # @return [Double] The total amount outstanding at the group's base currency.
57
62
  attr_accessor :amount_outstanding
58
63
 
59
64
  ##
@@ -69,6 +74,7 @@ module LockstepSdk
69
74
  'vendorName' => @vendor_name,
70
75
  'primaryContact' => @primary_contact,
71
76
  'bills' => @bills,
77
+ 'baseCurrencyCode' => @base_currency_code,
72
78
  'amountOutstanding' => @amount_outstanding,
73
79
  'dpo' => @dpo,
74
80
  }
@@ -21,18 +21,14 @@ module LockstepSdk
21
21
  ##
22
22
  # Initialize the InvoiceSummaryModelInvoiceSummaryTotalsModelSummaryFetchResult using the provided prototype
23
23
  def initialize(params = {})
24
- @records = params.dig(:records)
25
24
  @total_count = params.dig(:total_count)
26
25
  @page_size = params.dig(:page_size)
27
26
  @page_number = params.dig(:page_number)
27
+ @records = params.dig(:records)
28
28
  @summary = params.dig(:summary)
29
29
  @aging_summary = params.dig(:aging_summary)
30
30
  end
31
31
 
32
- ##
33
- # @return [InvoiceSummaryModel]
34
- attr_accessor :records
35
-
36
32
  ##
37
33
  # @return [Int32]
38
34
  attr_accessor :total_count
@@ -45,6 +41,10 @@ module LockstepSdk
45
41
  # @return [Int32]
46
42
  attr_accessor :page_number
47
43
 
44
+ ##
45
+ # @return [InvoiceSummaryModel]
46
+ attr_accessor :records
47
+
48
48
  ##
49
49
  # @return [InvoiceSummaryTotalsModel] The totals for an Invoice Summary
50
50
  attr_accessor :summary
@@ -57,10 +57,10 @@ module LockstepSdk
57
57
  # @return [object] This object as a JSON key-value structure
58
58
  def as_json(options={})
59
59
  {
60
- 'records' => @records,
61
60
  'totalCount' => @total_count,
62
61
  'pageSize' => @page_size,
63
62
  'pageNumber' => @page_number,
63
+ 'records' => @records,
64
64
  'summary' => @summary,
65
65
  'agingSummary' => @aging_summary,
66
66
  }
@@ -27,6 +27,7 @@ module LockstepSdk
27
27
  @number_of_bills_due = params.dig(:number_of_bills_due)
28
28
  @number_of_vendors = params.dig(:number_of_vendors)
29
29
  @percentage_of_total = params.dig(:percentage_of_total)
30
+ @base_currency_code = params.dig(:base_currency_code)
30
31
  @total_amount_due = params.dig(:total_amount_due)
31
32
  @due_date = params.dig(:due_date)
32
33
  end
@@ -48,7 +49,11 @@ module LockstepSdk
48
49
  attr_accessor :percentage_of_total
49
50
 
50
51
  ##
51
- # @return [Double] Total amount due for this time period
52
+ # @return [String] The group's base currency code.
53
+ attr_accessor :base_currency_code
54
+
55
+ ##
56
+ # @return [Double] Total amount due for this time period in the group's base currency.
52
57
  attr_accessor :total_amount_due
53
58
 
54
59
  ##
@@ -63,6 +68,7 @@ module LockstepSdk
63
68
  'numberOfBillsDue' => @number_of_bills_due,
64
69
  'numberOfVendors' => @number_of_vendors,
65
70
  'percentageOfTotal' => @percentage_of_total,
71
+ 'baseCurrencyCode' => @base_currency_code,
66
72
  'totalAmountDue' => @total_amount_due,
67
73
  'dueDate' => @due_date,
68
74
  }
@@ -29,6 +29,7 @@ module LockstepSdk
29
29
  @vendor_name = params.dig(:vendor_name)
30
30
  @primary_contact = params.dig(:primary_contact)
31
31
  @percentage_of_total = params.dig(:percentage_of_total)
32
+ @base_currency_code = params.dig(:base_currency_code)
32
33
  @total_amount_due = params.dig(:total_amount_due)
33
34
  @due_date = params.dig(:due_date)
34
35
  end
@@ -58,7 +59,11 @@ module LockstepSdk
58
59
  attr_accessor :percentage_of_total
59
60
 
60
61
  ##
61
- # @return [Double] Total amount due for this time period
62
+ # @return [String] The base currency code of the group
63
+ attr_accessor :base_currency_code
64
+
65
+ ##
66
+ # @return [Double] Total amount due for this time period at the group's base currency
62
67
  attr_accessor :total_amount_due
63
68
 
64
69
  ##
@@ -75,6 +80,7 @@ module LockstepSdk
75
80
  'vendorName' => @vendor_name,
76
81
  'primaryContact' => @primary_contact,
77
82
  'percentageOfTotal' => @percentage_of_total,
83
+ 'baseCurrencyCode' => @base_currency_code,
78
84
  'totalAmountDue' => @total_amount_due,
79
85
  'dueDate' => @due_date,
80
86
  }
@@ -25,6 +25,7 @@ module LockstepSdk
25
25
  def initialize(params = {})
26
26
  @group_key = params.dig(:group_key)
27
27
  @date = params.dig(:date)
28
+ @base_currency_code = params.dig(:base_currency_code)
28
29
  @amount_due = params.dig(:amount_due)
29
30
  end
30
31
 
@@ -37,7 +38,11 @@ module LockstepSdk
37
38
  attr_accessor :date
38
39
 
39
40
  ##
40
- # @return [Double] Total amount due for this time period
41
+ # @return [String] The group's base currency code.
42
+ attr_accessor :base_currency_code
43
+
44
+ ##
45
+ # @return [Double] Total amount due for this time period at the group's base currency.
41
46
  attr_accessor :amount_due
42
47
 
43
48
  ##
@@ -46,6 +51,7 @@ module LockstepSdk
46
51
  {
47
52
  'groupKey' => @group_key,
48
53
  'date' => @date,
54
+ 'baseCurrencyCode' => @base_currency_code,
49
55
  'amountDue' => @amount_due,
50
56
  }
51
57
  end
@@ -25,6 +25,7 @@ module LockstepSdk
25
25
  def initialize(params = {})
26
26
  @group_key = params.dig(:group_key)
27
27
  @timeframe = params.dig(:timeframe)
28
+ @base_currency_code = params.dig(:base_currency_code)
28
29
  @total_payments_amount = params.dig(:total_payments_amount)
29
30
  @total_payments_count = params.dig(:total_payments_count)
30
31
  @total_amount_billed = params.dig(:total_amount_billed)
@@ -40,7 +41,11 @@ module LockstepSdk
40
41
  attr_accessor :timeframe
41
42
 
42
43
  ##
43
- # @return [Double] Amount of payments made based in the timeframe
44
+ # @return [String] The base currency code of the group.
45
+ attr_accessor :base_currency_code
46
+
47
+ ##
48
+ # @return [Double] Amount of payments made based in the timeframe in the group's base currency.
44
49
  attr_accessor :total_payments_amount
45
50
 
46
51
  ##
@@ -48,7 +53,7 @@ module LockstepSdk
48
53
  attr_accessor :total_payments_count
49
54
 
50
55
  ##
51
- # @return [Double] Amount of bills received based in the timeframe
56
+ # @return [Double] Amount of bills received based in the timeframe in the group's base currency.
52
57
  attr_accessor :total_amount_billed
53
58
 
54
59
  ##
@@ -61,6 +66,7 @@ module LockstepSdk
61
66
  {
62
67
  'groupKey' => @group_key,
63
68
  'timeframe' => @timeframe,
69
+ 'baseCurrencyCode' => @base_currency_code,
64
70
  'totalPaymentsAmount' => @total_payments_amount,
65
71
  'totalPaymentsCount' => @total_payments_count,
66
72
  'totalAmountBilled' => @total_amount_billed,
@@ -21,18 +21,14 @@ module LockstepSdk
21
21
  ##
22
22
  # Initialize the PaymentSummaryModelPaymentSummaryTotalsModelSummaryFetchResult using the provided prototype
23
23
  def initialize(params = {})
24
- @records = params.dig(:records)
25
24
  @total_count = params.dig(:total_count)
26
25
  @page_size = params.dig(:page_size)
27
26
  @page_number = params.dig(:page_number)
27
+ @records = params.dig(:records)
28
28
  @summary = params.dig(:summary)
29
29
  @aging_summary = params.dig(:aging_summary)
30
30
  end
31
31
 
32
- ##
33
- # @return [PaymentSummaryModel]
34
- attr_accessor :records
35
-
36
32
  ##
37
33
  # @return [Int32]
38
34
  attr_accessor :total_count
@@ -45,6 +41,10 @@ module LockstepSdk
45
41
  # @return [Int32]
46
42
  attr_accessor :page_number
47
43
 
44
+ ##
45
+ # @return [PaymentSummaryModel]
46
+ attr_accessor :records
47
+
48
48
  ##
49
49
  # @return [PaymentSummaryTotalsModel] The totals for a Payment Summary
50
50
  attr_accessor :summary
@@ -57,10 +57,10 @@ module LockstepSdk
57
57
  # @return [object] This object as a JSON key-value structure
58
58
  def as_json(options={})
59
59
  {
60
- 'records' => @records,
61
60
  'totalCount' => @total_count,
62
61
  'pageSize' => @page_size,
63
62
  'pageNumber' => @page_number,
63
+ 'records' => @records,
64
64
  'summary' => @summary,
65
65
  'agingSummary' => @aging_summary,
66
66
  }
@@ -41,6 +41,8 @@ module LockstepSdk
41
41
  @magic_link_id = params.dig(:magic_link_id)
42
42
  @magic_link_company_id = params.dig(:magic_link_company_id)
43
43
  @magic_link = params.dig(:magic_link)
44
+ @support_access = params.dig(:support_access)
45
+ @is_impersonated = params.dig(:is_impersonated)
44
46
  @dependencies = params.dig(:dependencies)
45
47
  @user_groups = params.dig(:user_groups)
46
48
  @base_currency_code = params.dig(:base_currency_code)
@@ -118,6 +120,14 @@ module LockstepSdk
118
120
  # @return [MagicLinkStatusModel] Magic link information about the user
119
121
  attr_accessor :magic_link
120
122
 
123
+ ##
124
+ # @return [SupportAccessModel] Information allowing Lockstep to offer direct support to the user
125
+ attr_accessor :support_access
126
+
127
+ ##
128
+ # @return [Boolean] True if the user is being impersonated by the Lockstep support team.
129
+ attr_accessor :is_impersonated
130
+
121
131
  ##
122
132
  # @return [Object] Statuses for the dependencies of this api. OK if the dependency is working.
123
133
  attr_accessor :dependencies
@@ -152,6 +162,8 @@ module LockstepSdk
152
162
  'magicLinkId' => @magic_link_id,
153
163
  'magicLinkCompanyId' => @magic_link_company_id,
154
164
  'magicLink' => @magic_link,
165
+ 'supportAccess' => @support_access,
166
+ 'isImpersonated' => @is_impersonated,
155
167
  'dependencies' => @dependencies,
156
168
  'userGroups' => @user_groups,
157
169
  'baseCurrencyCode' => @base_currency_code,
@@ -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
+ # Contains information for Lockstep to support/assist a user.
21
+ class SupportAccessModel
22
+
23
+ ##
24
+ # Initialize the SupportAccessModel using the provided prototype
25
+ def initialize(params = {})
26
+ @code = params.dig(:code)
27
+ @expires_at = params.dig(:expires_at)
28
+ end
29
+
30
+ ##
31
+ # @return [String] The code required to assist the user.
32
+ attr_accessor :code
33
+
34
+ ##
35
+ # @return [Date-time] The UTC date and time when the support access will expire.
36
+ attr_accessor :expires_at
37
+
38
+ ##
39
+ # @return [object] This object as a JSON key-value structure
40
+ def as_json(options={})
41
+ {
42
+ 'code' => @code,
43
+ 'expiresAt' => @expires_at,
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
@@ -0,0 +1,47 @@
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
+ # Sets support access data for a user.
21
+ class SupportAccessRequest
22
+
23
+ ##
24
+ # Initialize the SupportAccessRequest using the provided prototype
25
+ def initialize(params = {})
26
+ @expires_at = params.dig(:expires_at)
27
+ end
28
+
29
+ ##
30
+ # @return [Date-time] The UTC date and time when support access should expire.
31
+ attr_accessor :expires_at
32
+
33
+ ##
34
+ # @return [object] This object as a JSON key-value structure
35
+ def as_json(options={})
36
+ {
37
+ 'expiresAt' => @expires_at,
38
+ }
39
+ end
40
+
41
+ ##
42
+ # @return [String] This object converted to a JSON string
43
+ def to_json(*options)
44
+ "[#{as_json(*options).to_json(*options)}]"
45
+ end
46
+ end
47
+ end
@@ -28,6 +28,7 @@ module LockstepSdk
28
28
  @file_content_url = params.dig(:file_content_url)
29
29
  @file_name = params.dig(:file_name)
30
30
  @invoice_type_code = params.dig(:invoice_type_code)
31
+ @transcription_validation_request_id = params.dig(:transcription_validation_request_id)
31
32
  end
32
33
 
33
34
  ##
@@ -47,9 +48,13 @@ module LockstepSdk
47
48
  attr_accessor :file_name
48
49
 
49
50
  ##
50
- # @return [String] The type of LockstepApi2.Models.TranscriptionRequestSubmit.InvoiceTypeCode requested to transcribe content to.
51
+ # @return [String] The type of TranscriptionRequestSubmit.InvoiceTypeCode requested to transcribe content to.
51
52
  attr_accessor :invoice_type_code
52
53
 
54
+ ##
55
+ # @return [Uuid] Group account transcription validation request item is associated with.
56
+ attr_accessor :transcription_validation_request_id
57
+
53
58
  ##
54
59
  # @return [object] This object as a JSON key-value structure
55
60
  def as_json(options={})
@@ -59,6 +64,7 @@ module LockstepSdk
59
64
  'fileContentUrl' => @file_content_url,
60
65
  'fileName' => @file_name,
61
66
  'invoiceTypeCode' => @invoice_type_code,
67
+ 'transcriptionValidationRequestId' => @transcription_validation_request_id,
62
68
  }
63
69
  end
64
70
 
@@ -18,10 +18,10 @@ module LockstepSdk
18
18
 
19
19
  ##
20
20
  # Represents a transcription validation request item to be validated.
21
- class TranscriptionValidationRequestItem
21
+ class TranscriptionValidationRequestItemModel
22
22
 
23
23
  ##
24
- # Initialize the TranscriptionValidationRequestItem using the provided prototype
24
+ # Initialize the TranscriptionValidationRequestItemModel using the provided prototype
25
25
  def initialize(params = {})
26
26
  @transcription_validation_request_item_id = params.dig(:transcription_validation_request_item_id)
27
27
  @transcription_validation_request_id = params.dig(:transcription_validation_request_id)
@@ -18,10 +18,10 @@ module LockstepSdk
18
18
 
19
19
  ##
20
20
  # Represents a transcription validation request that is used to validate if file is of a specific type.
21
- class TranscriptionValidationRequest
21
+ class TranscriptionValidationRequestModel
22
22
 
23
23
  ##
24
- # Initialize the TranscriptionValidationRequest using the provided prototype
24
+ # Initialize the TranscriptionValidationRequestModel using the provided prototype
25
25
  def initialize(params = {})
26
26
  @transcription_validation_request_id = params.dig(:transcription_validation_request_id)
27
27
  @group_key = params.dig(:group_key)
@@ -62,7 +62,7 @@ module LockstepSdk
62
62
  attr_accessor :modified_user_id
63
63
 
64
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.
65
+ # @return [TranscriptionValidationRequestItemModel] All items attached to this transcription validation request. To retrieve this collection, specify `Items` in the "Include" parameter for your query.
66
66
  attr_accessor :items
67
67
 
68
68
  ##
@@ -86,7 +86,7 @@ module LockstepSdk
86
86
  attr_accessor :expiration_date
87
87
 
88
88
  ##
89
- # @return [Int32] The amount of consecutive failed notifications, not including the current attempt, before marking the webhook as errored (i.e. if the value is set to 0, the webhook will be marked errored on the first failure, if the value is set to 1 the webhook will be marked errored on the second failure, and so on). Use -1 to never mark the webhook as errored due to failures.
89
+ # @return [Int32] The amount of consecutive failed notifications, not including the current attempt, before marking the webhook as errored (i.e. if the value is set to 0, the webhook will be marked errored on the first failure, if the value is set to 1 the webhook will be marked errored on the second failure, and so on). The maximum retry attempts is 5.
90
90
  attr_accessor :retry_count
91
91
 
92
92
  ##
@@ -1,3 +1,3 @@
1
1
  module LockstepSdk
2
- VERSION = "2023.1.3.0"
2
+ VERSION = "2023.3.18.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2023.1.3.0
4
+ version: 2023.3.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lockstep
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awrence
@@ -88,6 +88,7 @@ files:
88
88
  - lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb
89
89
  - lib/lockstep_sdk/models/attachment_header_info_model.rb
90
90
  - lib/lockstep_sdk/models/attachment_model.rb
91
+ - lib/lockstep_sdk/models/base_currency_sync_model.rb
91
92
  - lib/lockstep_sdk/models/batch_sync_model.rb
92
93
  - lib/lockstep_sdk/models/bulk_currency_conversion_model.rb
93
94
  - lib/lockstep_sdk/models/bulk_delete_request_model.rb
@@ -165,6 +166,8 @@ files:
165
166
  - lib/lockstep_sdk/models/state_model.rb
166
167
  - lib/lockstep_sdk/models/status_model.rb
167
168
  - lib/lockstep_sdk/models/summary_aging_totals_model.rb
169
+ - lib/lockstep_sdk/models/support_access_model.rb
170
+ - lib/lockstep_sdk/models/support_access_request.rb
168
171
  - lib/lockstep_sdk/models/sync_entity_result_model.rb
169
172
  - lib/lockstep_sdk/models/sync_request_model.rb
170
173
  - lib/lockstep_sdk/models/sync_submit_model.rb
@@ -173,8 +176,8 @@ files:
173
176
  - lib/lockstep_sdk/models/transaction_model_transaction_summary_total_model_summary_fetch_result.rb
174
177
  - lib/lockstep_sdk/models/transaction_summary_total_model.rb
175
178
  - lib/lockstep_sdk/models/transcription_request_submit.rb
176
- - lib/lockstep_sdk/models/transcription_validation_request.rb
177
- - lib/lockstep_sdk/models/transcription_validation_request_item.rb
179
+ - lib/lockstep_sdk/models/transcription_validation_request_item_model.rb
180
+ - lib/lockstep_sdk/models/transcription_validation_request_model.rb
178
181
  - lib/lockstep_sdk/models/transfer_owner_model.rb
179
182
  - lib/lockstep_sdk/models/transfer_owner_submit_model.rb
180
183
  - lib/lockstep_sdk/models/uri_model.rb