lockstep_sdk 2023.13.37.0 → 2023.17.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94c3d82bb006438d2d6083a2a1f777ec72d8e3e53a8e9f9d15f97c739c5c7fa3
4
- data.tar.gz: f4a97901a63f1ff48303b5439c197a013255e160aea87e32e5e4da928381a147
3
+ metadata.gz: e57962a47787588b19a99264be9b2ef7601dd8cf52a6f78c704a06c7f8c8355a
4
+ data.tar.gz: 336f18be792f9724a82227839a68c06ebb2d6d4487d63672ca3f0ae3f0d56346
5
5
  SHA512:
6
- metadata.gz: 15a56c02466b9db83340d47aaca8d230fbd44be948d30c034c302a203ebb1309a3286522d15195fe59704676e4dcdef012b7d50f303a37929df5dd69b7e12a91
7
- data.tar.gz: c92e2b1e5e991cc98029cecd28adfcd780a643bd223bc1682bdfc7e7a1d7bf68bd60fbe351b77df0ba2e0818638ac1d7b899dddbe04e7863e1f0c1bdcc929ce2
6
+ metadata.gz: e86e45271e0b3b2a71655232f64595b20a7c4e0442e27b0d4d7bb8ac5974bdbb709279b751811e1d8c393080cd0a77e05c5bc541bc54518b70a5e5bdbaa9a1cc
7
+ data.tar.gz: a31ff3a91b040e7a18cd6bc93e31dad6d515a6c0bb94b81ac6ed36978bcf2191a8138517896d14aa3303739ecdec806a5f599991d6835aa94a395157c760d514
@@ -105,7 +105,7 @@ class InvoicesClient
105
105
  #
106
106
  # Sage Intacct supports AR Invoices.
107
107
  #
108
- # Quickbooks Online supports AR Invoices, and AR Credit Memos.
108
+ # QuickBooks Online supports AR Invoices, and AR Credit Memos.
109
109
  #
110
110
  # Xero supports AR Invoices, AP Invoices, AR Credit Memos, and AP Credit Memos.
111
111
  #
@@ -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
- # Quickbooks Online supports AR Payments.
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:)
@@ -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.13.37
12
+ # @version 2023.17.21
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.13.37.0"
197
+ @version = "2023.17.21.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.13.37.0'
310
+ request["SdkVersion"] = '2023.17.21.0'
311
311
  request["MachineName"] = Socket.gethostname
312
312
  request.body = body
313
313
 
@@ -24,6 +24,7 @@ module LockstepSdk
24
24
  # Initialize the CashflowReportModel using the provided prototype
25
25
  def initialize(params = {})
26
26
  @timeframe = params.dig(:timeframe)
27
+ @base_currency_code = params.dig(:base_currency_code)
27
28
  @payments_collected = params.dig(:payments_collected)
28
29
  @payments_collected_count = params.dig(:payments_collected_count)
29
30
  @invoices_billed = params.dig(:invoices_billed)
@@ -35,7 +36,11 @@ module LockstepSdk
35
36
  attr_accessor :timeframe
36
37
 
37
38
  ##
38
- # @return [Double] Amount of payments collected based in the timeframe
39
+ # @return [String] The base currency code of the group.
40
+ attr_accessor :base_currency_code
41
+
42
+ ##
43
+ # @return [Double] Amount of payments collected based in the timeframe in the group's base currency
39
44
  attr_accessor :payments_collected
40
45
 
41
46
  ##
@@ -43,7 +48,7 @@ module LockstepSdk
43
48
  attr_accessor :payments_collected_count
44
49
 
45
50
  ##
46
- # @return [Double] Amount of invoices billed based in the timeframe
51
+ # @return [Double] Amount of invoices billed based in the timeframe in the group's base currency
47
52
  attr_accessor :invoices_billed
48
53
 
49
54
  ##
@@ -55,6 +60,7 @@ module LockstepSdk
55
60
  def as_json(options={})
56
61
  {
57
62
  'timeframe' => @timeframe,
63
+ 'baseCurrencyCode' => @base_currency_code,
58
64
  'paymentsCollected' => @payments_collected,
59
65
  'paymentsCollectedCount' => @payments_collected_count,
60
66
  'invoicesBilled' => @invoices_billed,
@@ -66,7 +66,7 @@ module LockstepSdk
66
66
  attr_accessor :on_match_action
67
67
 
68
68
  ##
69
- # @return [String] This is the primary key of the Company record. For this field, you should use whatever the company's unique identifying number is in the originating system. Search for a unique, non-changing number within the originating financial system for this record. Example: If you store your company records in a database, whatever the primary key for the company table is in the database should be the `ErpKey`. Example: If you use a financial system such as Quickbooks or Xero, look for the primary ID number of the company record within that financial system. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
69
+ # @return [String] This is the primary key of the Company record. For this field, you should use whatever the company's unique identifying number is in the originating system. Search for a unique, non-changing number within the originating financial system for this record. Example: If you store your company records in a database, whatever the primary key for the company table is in the database should be the `ErpKey`. Example: If you use a financial system such as QuickBooks or Xero, look for the primary ID number of the company record within that financial system. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
70
70
  attr_accessor :erp_key
71
71
 
72
72
  ##
@@ -50,7 +50,7 @@ module LockstepSdk
50
50
  attr_accessor :financial_account_code
51
51
 
52
52
  ##
53
- # @return [String] This is the primary key of the FinancialAccount record. For this field, you should use whatever the company's unique identifying number is in the originating system. Search for a unique, non-changing number within the originating financial system for this record. Example: If you store your company records in a database, whatever the primary key for the company table is in the database should be the ErpKey. Example: If you use a financial system such as Quickbooks or Xero, look for the primary ID number of the company record within that financial system.
53
+ # @return [String] This is the primary key of the FinancialAccount record. For this field, you should use whatever the company's unique identifying number is in the originating system. Search for a unique, non-changing number within the originating financial system for this record. Example: If you store your company records in a database, whatever the primary key for the company table is in the database should be the ErpKey. Example: If you use a financial system such as QuickBooks or Xero, look for the primary ID number of the company record within that financial system.
54
54
  attr_accessor :financial_account_erp_key
55
55
 
56
56
  ##
@@ -46,6 +46,9 @@ module LockstepSdk
46
46
  @modified = params.dig(:modified)
47
47
  @modified_user_id = params.dig(:modified_user_id)
48
48
  @app_enrollment_id = params.dig(:app_enrollment_id)
49
+ @erp_write_status = params.dig(:erp_write_status)
50
+ @erp_write_status_name = params.dig(:erp_write_status_name)
51
+ @source_modified_date = params.dig(:source_modified_date)
49
52
  @notes = params.dig(:notes)
50
53
  @attachments = params.dig(:attachments)
51
54
  end
@@ -142,6 +145,18 @@ module LockstepSdk
142
145
  # @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
143
146
  attr_accessor :app_enrollment_id
144
147
 
148
+ ##
149
+ # @return [ErpWriteStatuses] Possible statuses for a record that supports ERP write.
150
+ attr_accessor :erp_write_status
151
+
152
+ ##
153
+ # @return [String] The name of the ErpWriteStatus for this Invoice
154
+ attr_accessor :erp_write_status_name
155
+
156
+ ##
157
+ # @return [Date-time] The date on which this record was last modified in source ERP.
158
+ attr_accessor :source_modified_date
159
+
145
160
  ##
146
161
  # @return [NoteModel] A collection of notes linked to this record. To retrieve this collection, specify `Notes` in the `include` parameter when retrieving data. To create a note, use the [Create Note](https://developer.lockstep.io/reference/post_api-v1-notes) endpoint with the `TableKey` to `InvoiceLine` and the `ObjectKey` set to the `InvoiceLineId` for this record. For more information on extensibility, see [linking extensible metadata to objects](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
147
162
  attr_accessor :notes
@@ -177,6 +192,9 @@ module LockstepSdk
177
192
  'modified' => @modified,
178
193
  'modifiedUserId' => @modified_user_id,
179
194
  'appEnrollmentId' => @app_enrollment_id,
195
+ 'erpWriteStatus' => @erp_write_status,
196
+ 'erpWriteStatusName' => @erp_write_status_name,
197
+ 'sourceModifiedDate' => @source_modified_date,
180
198
  'notes' => @notes,
181
199
  'attachments' => @attachments,
182
200
  }
@@ -69,6 +69,9 @@ module LockstepSdk
69
69
  @base_currency_sales_tax_amount = params.dig(:base_currency_sales_tax_amount)
70
70
  @base_currency_discount_amount = params.dig(:base_currency_discount_amount)
71
71
  @base_currency_outstanding_balance_amount = params.dig(:base_currency_outstanding_balance_amount)
72
+ @erp_write_status = params.dig(:erp_write_status)
73
+ @erp_write_status_name = params.dig(:erp_write_status_name)
74
+ @source_modified_date = params.dig(:source_modified_date)
72
75
  @addresses = params.dig(:addresses)
73
76
  @lines = params.dig(:lines)
74
77
  @payments = params.dig(:payments)
@@ -246,6 +249,18 @@ module LockstepSdk
246
249
  # @return [Double] The remaining balance value of this invoice in the group's base currency.
247
250
  attr_accessor :base_currency_outstanding_balance_amount
248
251
 
252
+ ##
253
+ # @return [ErpWriteStatuses] Possible statuses for a record that supports ERP write.
254
+ attr_accessor :erp_write_status
255
+
256
+ ##
257
+ # @return [String] The name of the ErpWriteStatus for this Invoice
258
+ attr_accessor :erp_write_status_name
259
+
260
+ ##
261
+ # @return [Date-time] The date on which this record was last modified in source ERP.
262
+ attr_accessor :source_modified_date
263
+
249
264
  ##
250
265
  # @return [InvoiceAddressModel] All addresses connected to this invoice. To retrieve this collection, specify `Addresses` in the "Include" parameter for your query.
251
266
  attr_accessor :addresses
@@ -335,6 +350,9 @@ module LockstepSdk
335
350
  'baseCurrencySalesTaxAmount' => @base_currency_sales_tax_amount,
336
351
  'baseCurrencyDiscountAmount' => @base_currency_discount_amount,
337
352
  'baseCurrencyOutstandingBalanceAmount' => @base_currency_outstanding_balance_amount,
353
+ 'erpWriteStatus' => @erp_write_status,
354
+ 'erpWriteStatusName' => @erp_write_status_name,
355
+ 'sourceModifiedDate' => @source_modified_date,
338
356
  'addresses' => @addresses,
339
357
  'lines' => @lines,
340
358
  'payments' => @payments,
@@ -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
  }
@@ -1,3 +1,3 @@
1
1
  module LockstepSdk
2
- VERSION = "2023.13.37.0"
2
+ VERSION = "2023.17.21.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.13.37.0
4
+ version: 2023.17.21.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-03-31 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awrence
@@ -124,7 +124,6 @@ files:
124
124
  - lib/lockstep_sdk/models/email_reply_generator_response.rb
125
125
  - lib/lockstep_sdk/models/email_reply_generator_suggestions.rb
126
126
  - lib/lockstep_sdk/models/erp_model.rb
127
- - lib/lockstep_sdk/models/error_result.rb
128
127
  - lib/lockstep_sdk/models/feature_flags_request_model.rb
129
128
  - lib/lockstep_sdk/models/feature_flags_response_model.rb
130
129
  - lib/lockstep_sdk/models/financial_account_balance_history_model.rb
@@ -1,77 +0,0 @@
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 failed API request.
21
- class ErrorResult
22
-
23
- ##
24
- # Initialize the ErrorResult using the provided prototype
25
- def initialize(params = {})
26
- @type = params.dig(:type)
27
- @title = params.dig(:title)
28
- @status = params.dig(:status)
29
- @detail = params.dig(:detail)
30
- @instance = params.dig(:instance)
31
- @content = params.dig(:content)
32
- end
33
-
34
- ##
35
- # @return [String] A description of the type of error that occurred.
36
- attr_accessor :type
37
-
38
- ##
39
- # @return [String] A short title describing the error.
40
- attr_accessor :title
41
-
42
- ##
43
- # @return [Int32] If an error code is applicable, this contains an error number.
44
- attr_accessor :status
45
-
46
- ##
47
- # @return [String] If detailed information about this error is available, this value contains more information.
48
- attr_accessor :detail
49
-
50
- ##
51
- # @return [String] If this error corresponds to a specific instance or object, this field indicates which one.
52
- attr_accessor :instance
53
-
54
- ##
55
- # @return [String] The full content of the HTTP response.
56
- attr_accessor :content
57
-
58
- ##
59
- # @return [object] This object as a JSON key-value structure
60
- def as_json(options={})
61
- {
62
- 'type' => @type,
63
- 'title' => @title,
64
- 'status' => @status,
65
- 'detail' => @detail,
66
- 'instance' => @instance,
67
- 'content' => @content,
68
- }
69
- end
70
-
71
- ##
72
- # @return [String] This object converted to a JSON string
73
- def to_json(*options)
74
- "[#{as_json(*options).to_json(*options)}]"
75
- end
76
- end
77
- end