lockstep_sdk 2022.10.63.0 → 2022.11.60.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba9d5a2c92fb2c8df1dfe1eb381076c1054629fa0f9d2488f9513af0161fd019
4
- data.tar.gz: 53389e8077c628152038c5faf8ccb725131f3e1581454a8ea245b59967879c35
3
+ metadata.gz: e1eeb25332f1e77648c3c8095e5278dd4a55ca884cf75f247117bb82fa6a971d
4
+ data.tar.gz: 86447fcd008f763888e67b7a676109a6c699f1bea078184991973a8d14f72a5b
5
5
  SHA512:
6
- metadata.gz: c8e4b59b277980e0683c8701f8478884c38fd2bec93e1b77a19f249fc5b28e13356ead3e368a64efa348b90b256e8be01763716d3811b77c7b4e7294af82738e
7
- data.tar.gz: 729cf53e3c23136505313854eabfedd8cbe05bd88a01b622f00f32cef134fd4f2d488f8036a4f99db23012cefbdeb8bfaaff6eb7952ed65f36e9debce0bcc691
6
+ metadata.gz: 9aa52c138d3af69f0c40cecf45aad402cab415ee8bebccbed911582cfdb5bd9cafe85db0cf2b8d9564b990675e4db07834aa15b14230b20f78e615b5f1c22e12
7
+ data.tar.gz: 16ac85a7c7d6c94c82b879a1f21238c2130ba8115fb1c038ebb8950738a6502b29d592b6dd03fa82e48bae9e600a2d4b0150fda3ac851c17fd9ace9235423c34
@@ -78,8 +78,21 @@ class AttachmentsClient
78
78
  # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
79
79
  #
80
80
  # @param id [uuid] The unique ID number of the Attachment whose URI will be returned
81
- def download_attachment(id:)
82
- path = "/api/v1/Attachments/#{id}/download"
81
+ def download_attachment_url(id:)
82
+ path = "/api/v1/Attachments/#{id}/download-url"
83
+ @lockstepsdk.request(:get, path, nil, nil)
84
+ end
85
+
86
+ ##
87
+ # Returns the Attachment file to be downloaded, based on the ID provided.
88
+ #
89
+ # An Attachment is a file that can be attached to various account attributes within Lockstep. Attachments can be used for invoices, bills, or any other external files that you wish to track and have access to. Attachments represents an Attachment and a number of different metadata attributes related to the creation, storage, and ownership of the Attachment.
90
+ #
91
+ # See [Extensibility](https://developer.lockstep.io/docs/extensibility) for more information.
92
+ #
93
+ # @param id [uuid] The unique ID number of the Attachment whose URI will be returned
94
+ def download_attachment_file(id:)
95
+ path = "/api/v1/Attachments/#{id}/download-file"
83
96
  @lockstepsdk.request(:get, path, nil, nil)
84
97
  end
85
98
 
@@ -32,7 +32,7 @@ class FinancialAccountBalanceHistoryClient
32
32
  # A Financial Account Balance History records either the current or end of period balance for a corresponding financial account.
33
33
  #
34
34
  # @param id [uuid] The unique Lockstep Platform ID number of this Financial Account Balance History
35
- def retrieve_financial_account_balance_history(id:)
35
+ def retrieve_balance_history(id:)
36
36
  path = "/api/v1/FinancialAccountBalanceHistory/#{id}"
37
37
  @lockstepsdk.request(:get, path, nil, nil)
38
38
  end
@@ -46,7 +46,7 @@ class FinancialAccountBalanceHistoryClient
46
46
  #
47
47
  # @param id [uuid] The unique Lockstep Platform ID number of the Financial Account Balance History to update
48
48
  # @param body [object] A list of changes to apply to this Financial Account Balance History
49
- def update_financial_account_balance_history(id:, body:)
49
+ def update_balance_history(id:, body:)
50
50
  path = "/api/v1/FinancialAccountBalanceHistory/#{id}"
51
51
  @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil)
52
52
  end
@@ -57,7 +57,7 @@ class FinancialAccountBalanceHistoryClient
57
57
  # A Financial Account Balance History records either the current or end of period balance for a corresponding financial account.
58
58
  #
59
59
  # @param id [uuid] The unique Lockstep Platform ID number of the Financial Account Balance History to disable
60
- def delete_financial_account_balance_history(id:)
60
+ def delete_balance_history(id:)
61
61
  path = "/api/v1/FinancialAccountBalanceHistory/#{id}"
62
62
  @lockstepsdk.request(:delete, path, nil, nil)
63
63
  end
@@ -68,7 +68,7 @@ class FinancialAccountBalanceHistoryClient
68
68
  # A Financial Account Balance History records either the current or end of period balance for a corresponding financial account.
69
69
  #
70
70
  # @param body [FinancialAccountBalanceHistoryModel] The Financial Account Balance Histories to create
71
- def create_financial_account_balance_history(body:)
71
+ def create_balance_history(body:)
72
72
  path = "/api/v1/FinancialAccountBalanceHistory"
73
73
  @lockstepsdk.request(:post, path, body, nil)
74
74
  end
@@ -84,7 +84,7 @@ class FinancialAccountBalanceHistoryClient
84
84
  # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
85
85
  # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
86
86
  # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
87
- def query_financial_account_balance_history(filter:, order:, page_size:, page_number:)
87
+ def query_balance_history(filter:, order:, page_size:, page_number:)
88
88
  path = "/api/v1/FinancialAccountBalanceHistory/query"
89
89
  params = {:filter => filter, :order => order, :pageSize => page_size, :pageNumber => page_number}
90
90
  @lockstepsdk.request(:get, path, nil, params)
@@ -134,7 +134,7 @@ class InvoicesClient
134
134
  # @param order [string] The sort order for this query. See See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
135
135
  # @param page_size [int32] The page size for results (default 200). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
136
136
  # @param page_number [int32] The page number for results (default 0). See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
137
- def query_at_risk_invoice_summary_view(filter:, include_param:, order:, page_size:, page_number:)
137
+ def query_at_risk_view(filter:, include_param:, order:, page_size:, page_number:)
138
138
  path = "/api/v1/Invoices/views/at-risk-summary"
139
139
  params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
140
140
  @lockstepsdk.request(:get, path, nil, params)
@@ -114,8 +114,6 @@ class ReportsClient
114
114
  ##
115
115
  # Generates a Trial Balance Report for the given time range.
116
116
  #
117
- # The Attachment Header report contains aggregated information about the `TotalAttachments`, `TotalArchived`, and `TotalActive` attachment classifications.
118
- #
119
117
  # @param start_date [date-time]
120
118
  # @param end_date [date-time]
121
119
  def trial_balance_report(start_date:, end_date:)
@@ -123,4 +121,17 @@ class ReportsClient
123
121
  params = {:startDate => start_date, :endDate => end_date}
124
122
  @lockstepsdk.request(:get, path, nil, params)
125
123
  end
124
+
125
+ ##
126
+ # Generates an Income Statement for the given time range.
127
+ #
128
+ # @param start_date [date-time] The start date of the report
129
+ # @param end_date [date-time] The end date of the report
130
+ # @param column_option [string] The desired column splitting of the report data. An empty string or anything unrecognized will result in only totals being displayed. Options are as follows: By Period - a column for every month/fiscal period within the reporting dates Quarterly - a column for every quarter within the reporting dates Annually - a column for every year within the reporting dates
131
+ # @param display_depth [ReportDepth] The desired row splitting of the report data. Options are as follows: 1 - combine all accounts by their category 2 - combine all accounts by their subcategory 3 - display all accounts
132
+ def income_statement_report(start_date:, end_date:, column_option:, display_depth:)
133
+ path = "/api/v1/Reports/income-statement"
134
+ params = {:startDate => start_date, :endDate => end_date, :columnOption => column_option, :displayDepth => display_depth}
135
+ @lockstepsdk.request(:get, path, nil, params)
136
+ end
126
137
  end
@@ -10,7 +10,7 @@
10
10
  # @author Manish Narayan B S <manish.n@lockstep.io>
11
11
  # @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
12
12
  # @copyright 2021-2022 Lockstep, Inc.
13
- # @version 2022.10.63.0
13
+ # @version 2022.11.60.0
14
14
  # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
15
15
  #
16
16
 
@@ -159,7 +159,7 @@ module LockstepSdk
159
159
  #
160
160
  # @param env [string] Either "sbx", "prd", or the URI of the server, ending in a slash (/)
161
161
  def initialize(env)
162
- @version = "2022.10.63.0"
162
+ @version = "2022.11.60.0"
163
163
  @env = case env
164
164
  when "sbx"
165
165
  "https://api.sbx.lockstep.io/"
@@ -259,7 +259,7 @@ module LockstepSdk
259
259
  request["Accept"] = 'application/json'
260
260
  request["Content-Type"] = 'application/*+json'
261
261
  request["SdkType"] = 'Ruby'
262
- request["SdkVersion"] = '2022.10.63.0'
262
+ request["SdkVersion"] = '2022.11.60.0'
263
263
  request["MachineName"] = Socket.gethostname
264
264
  request.body = body
265
265
 
@@ -34,7 +34,7 @@ module LockstepSdk
34
34
  attr_accessor :date
35
35
 
36
36
  ##
37
- # @return [String] The currency code This will be validated by the /api/v1/currencies data set
37
+ # @return [String] The currency code This will be validated by the /api/v1/definitions/currencies data set
38
38
  attr_accessor :source_currency
39
39
 
40
40
  ##
@@ -84,7 +84,7 @@ module LockstepSdk
84
84
  attr_accessor :is_active
85
85
 
86
86
  ##
87
- # @return [String] The default currency code for transactions related to this company. For a list of currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/currencies data set
87
+ # @return [String] The default currency code for transactions related to this company. For a list of currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/definitions/currencies data set
88
88
  attr_accessor :default_currency_code
89
89
 
90
90
  ##
@@ -120,7 +120,7 @@ module LockstepSdk
120
120
  attr_accessor :postal_code
121
121
 
122
122
  ##
123
- # @return [String] The company's primary mailing address information This will be validated by the /api/v1/countries data set
123
+ # @return [String] The company's primary mailing address information This will be validated by the /api/v1/definitions/countries data set
124
124
  attr_accessor :country
125
125
 
126
126
  ##
@@ -129,7 +129,7 @@ module LockstepSdk
129
129
  attr_accessor :postal_code
130
130
 
131
131
  ##
132
- # @return [String] The two character country code of the address. This will be validated by the /api/v1/countries data set
132
+ # @return [String] The two character country code of the address. This will be validated by the /api/v1/definitions/countries data set
133
133
  attr_accessor :country_code
134
134
 
135
135
  ##
@@ -117,7 +117,7 @@ module LockstepSdk
117
117
  attr_accessor :postal_code
118
118
 
119
119
  ##
120
- # @return [String] The mailing address information for this contact. This will be validated by the /api/v1/countries data set
120
+ # @return [String] The mailing address information for this contact. This will be validated by the /api/v1/definitions/countries data set
121
121
  attr_accessor :country_code
122
122
 
123
123
  ##
@@ -80,7 +80,7 @@ module LockstepSdk
80
80
  attr_accessor :description
81
81
 
82
82
  ##
83
- # @return [String] The classification for the Financial Account. Possible values are Asset, Equity, Expense, Liability or Revenue.
83
+ # @return [String] The classification for the Financial Account. Possible values are Asset, Equity, Expense, Liability or Income.
84
84
  attr_accessor :classification
85
85
 
86
86
  ##
@@ -119,7 +119,7 @@ module LockstepSdk
119
119
  attr_accessor :special_terms
120
120
 
121
121
  ##
122
- # @return [String] The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/currencies data set
122
+ # @return [String] The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/definitions/currencies data set
123
123
  attr_accessor :currency_code
124
124
 
125
125
  ##
@@ -154,7 +154,7 @@ module LockstepSdk
154
154
  attr_accessor :origin_address_postal_code
155
155
 
156
156
  ##
157
- # @return [String] Origination address for this invoice line, if this line item was originated from a different address This will be validated by the /api/v1/countries data set
157
+ # @return [String] Origination address for this invoice line, if this line item was originated from a different address This will be validated by the /api/v1/definitions/countries data set
158
158
  attr_accessor :origin_address_country
159
159
 
160
160
  ##
@@ -190,7 +190,7 @@ module LockstepSdk
190
190
  attr_accessor :bill_to_address_postal_code
191
191
 
192
192
  ##
193
- # @return [String] Billing address for this invoice line, if this line item is to be billed to a different address This will be validated by the /api/v1/countries data set
193
+ # @return [String] Billing address for this invoice line, if this line item is to be billed to a different address This will be validated by the /api/v1/definitions/countries data set
194
194
  attr_accessor :bill_to_address_country
195
195
 
196
196
  ##
@@ -226,7 +226,7 @@ module LockstepSdk
226
226
  attr_accessor :ship_to_address_postal_code
227
227
 
228
228
  ##
229
- # @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address This will be validated by the /api/v1/countries data set
229
+ # @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address This will be validated by the /api/v1/definitions/countries data set
230
230
  attr_accessor :ship_to_address_country
231
231
 
232
232
  ##
@@ -133,7 +133,7 @@ module LockstepSdk
133
133
  attr_accessor :special_terms
134
134
 
135
135
  ##
136
- # @return [String] The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/currencies data set
136
+ # @return [String] The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/definitions/currencies data set
137
137
  attr_accessor :currency_code
138
138
 
139
139
  ##
@@ -201,7 +201,7 @@ module LockstepSdk
201
201
  attr_accessor :origin_address_postal_code
202
202
 
203
203
  ##
204
- # @return [String] The origination address for this invoice This will be validated by the /api/v1/countries data set
204
+ # @return [String] The origination address for this invoice This will be validated by the /api/v1/definitions/countries data set
205
205
  attr_accessor :origin_address_country
206
206
 
207
207
  ##
@@ -237,7 +237,7 @@ module LockstepSdk
237
237
  attr_accessor :bill_to_address_postal_code
238
238
 
239
239
  ##
240
- # @return [String] The billing address for this invoice This will be validated by the /api/v1/countries data set
240
+ # @return [String] The billing address for this invoice This will be validated by the /api/v1/definitions/countries data set
241
241
  attr_accessor :bill_to_address_country
242
242
 
243
243
  ##
@@ -273,7 +273,7 @@ module LockstepSdk
273
273
  attr_accessor :ship_to_address_postal_code
274
274
 
275
275
  ##
276
- # @return [String] The shipping address for this invoice This will be validated by the /api/v1/countries data set
276
+ # @return [String] The shipping address for this invoice This will be validated by the /api/v1/definitions/countries data set
277
277
  attr_accessor :ship_to_address_country
278
278
 
279
279
  ##
@@ -108,7 +108,7 @@ module LockstepSdk
108
108
  attr_accessor :unapplied_amount
109
109
 
110
110
  ##
111
- # @return [String] The ISO 4217 currency code for this payment. For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/currencies data set
111
+ # @return [String] The ISO 4217 currency code for this payment. For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/definitions/currencies data set
112
112
  attr_accessor :currency_code
113
113
 
114
114
  ##
@@ -92,7 +92,7 @@ module LockstepSdk
92
92
  attr_accessor :unapplied_amount
93
93
 
94
94
  ##
95
- # @return [String] The ISO 4217 currency code for this payment. For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/currencies data set
95
+ # @return [String] The ISO 4217 currency code for this payment. For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/definitions/currencies data set
96
96
  attr_accessor :currency_code
97
97
 
98
98
  ##
@@ -156,7 +156,7 @@ module LockstepSdk
156
156
  attr_accessor :postal_code
157
157
 
158
158
  ##
159
- # @return [String] Country for this User This will be validated by the /api/v1/countries data set
159
+ # @return [String] Country for this User This will be validated by the /api/v1/definitions/countries data set
160
160
  attr_accessor :country
161
161
 
162
162
  ##
@@ -172,7 +172,7 @@ module LockstepSdk
172
172
  attr_accessor :b2_clast_logged_in
173
173
 
174
174
  ##
175
- # @return [String] The default currency code used by this user entity. This value can be overridden for invoices in a different currency code. For a list of defined currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies) This will be validated by the /api/v1/currencies data set
175
+ # @return [String] The default currency code used by this user entity. This value can be overridden for invoices in a different currency code. For a list of defined currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies) This will be validated by the /api/v1/definitions/currencies data set
176
176
  attr_accessor :default_currency_code
177
177
 
178
178
  ##
@@ -1,3 +1,3 @@
1
1
  module LockstepSdk
2
- VERSION = "2022.10.63.0"
2
+ VERSION = "2022.11.60.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: 2022.10.63.0
4
+ version: 2022.11.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lockstep
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awrence