lockstep_sdk 2022.11.60.0 → 2022.13.29.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: e1eeb25332f1e77648c3c8095e5278dd4a55ca884cf75f247117bb82fa6a971d
4
- data.tar.gz: 86447fcd008f763888e67b7a676109a6c699f1bea078184991973a8d14f72a5b
3
+ metadata.gz: 4bc0a65679a4df117c520820d1c94e5db5995b9dca57cc833e66d5e89903d87b
4
+ data.tar.gz: 182dd8d32fb0cf77b9bcb080bc2a66a0aace3bfb2685c9f33cd72005e341d495
5
5
  SHA512:
6
- metadata.gz: 9aa52c138d3af69f0c40cecf45aad402cab415ee8bebccbed911582cfdb5bd9cafe85db0cf2b8d9564b990675e4db07834aa15b14230b20f78e615b5f1c22e12
7
- data.tar.gz: 16ac85a7c7d6c94c82b879a1f21238c2130ba8115fb1c038ebb8950738a6502b29d592b6dd03fa82e48bae9e600a2d4b0150fda3ac851c17fd9ace9235423c34
6
+ metadata.gz: 7f4e2f25b8e60dfecaa2fa0d6e481c382e6c6ecb7e3d3606b0d45ae2fbe06512e1b8107b0efe77db92f8a6bed0cffeb47cbd9280a46afdffcffc7416eb73c3f0
7
+ data.tar.gz: 6e73e85365d843e4b6222101d768d273635371b131485d53315d769a24b171acb4cf3028e1617d457deaa35841f7d57b4b7b3932b2bebd5db8933b1f0e2aa8c5
@@ -128,10 +128,13 @@ class ReportsClient
128
128
  # @param start_date [date-time] The start date of the report
129
129
  # @param end_date [date-time] The end date of the report
130
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:)
131
+ # @param display_depth [ReportDepth] The desired row splitting of the report data. For Income Statements, the minimum report depth is 1. Options are as follows: 1 - combine all accounts by their category 2 - combine all accounts by their subcategory 3 - display all accounts
132
+ # @param comparison_period [string] Add a column for historical data with the following options and use showCurrencyDifference and/or show percentageDifference to display a comparison of that historical data to the report period. Options are as follows (note for YTD the data will be compared as a percentage of YTD and showCurrencyDifference and showPercentageDifference should not be used): "PP" - previous period (will show the previous quarter or year if Quarterly or Annually is chosen for columnOption) "PY" - previous year (the same date range as the report, but for the year prior) "YTD" - year to date (the current financial year to the current period)
133
+ # @param show_currency_difference [boolean] A boolean to turn on a currency based difference between the reporting period and the comparison period.
134
+ # @param show_percentage_difference [boolean] A boolean to turn on a percent based difference between the reporting period and the comparison period.
135
+ def income_statement_report(start_date:, end_date:, column_option:, display_depth:, comparison_period:, show_currency_difference:, show_percentage_difference:)
133
136
  path = "/api/v1/Reports/income-statement"
134
- params = {:startDate => start_date, :endDate => end_date, :columnOption => column_option, :displayDepth => display_depth}
137
+ params = {:startDate => start_date, :endDate => end_date, :columnOption => column_option, :displayDepth => display_depth, :comparisonPeriod => comparison_period, :showCurrencyDifference => show_currency_difference, :showPercentageDifference => show_percentage_difference}
135
138
  @lockstepsdk.request(:get, path, nil, params)
136
139
  end
137
140
  end
@@ -90,6 +90,17 @@ class SyncClient
90
90
  @lockstepsdk.request(:get, path, nil, params)
91
91
  end
92
92
 
93
+ ##
94
+ # Cancels a Sync process for an Application if the request is still being processed within the Application. This does not cancel Sync processes which have already proceeded to completion within the Application, or Sync processes outside of Applications such as from a Zip file or Batch Import.
95
+ #
96
+ # A Sync task represents an action performed by an Application for a particular account. An Application can provide many different tasks as part of their capabilities. Sync tasks are executed in the background and will continue running after they are created. Use one of the creation APIs to request execution of a task. To check on the progress of the task, call GetSync or QuerySync.
97
+ #
98
+ # @param id [uuid] The unique ID number of the Sync task to cancel
99
+ def cancel_sync(id:)
100
+ path = "/api/v1/Sync/#{id}"
101
+ @lockstepsdk.request(:delete, path, nil, nil)
102
+ end
103
+
93
104
  ##
94
105
  # Queries Sync tasks for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
95
106
  #
@@ -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.11.60.0
13
+ # @version 2022.13.29.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.11.60.0"
162
+ @version = "2022.13.29.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.11.60.0'
262
+ request["SdkVersion"] = '2022.13.29.0'
263
263
  request["MachineName"] = Socket.gethostname
264
264
  request.body = body
265
265
 
@@ -48,6 +48,7 @@ module LockstepSdk
48
48
  @state_region = params.dig(:state_region)
49
49
  @postal_code = params.dig(:postal_code)
50
50
  @country = params.dig(:country)
51
+ @time_zone = params.dig(:time_zone)
51
52
  @phone_number = params.dig(:phone_number)
52
53
  @fax_number = params.dig(:fax_number)
53
54
  @created = params.dig(:created)
@@ -149,6 +150,10 @@ module LockstepSdk
149
150
  # @return [String] Address info
150
151
  attr_accessor :country
151
152
 
153
+ ##
154
+ # @return [String] Time zone
155
+ attr_accessor :time_zone
156
+
152
157
  ##
153
158
  # @return [String] Phone number
154
159
  attr_accessor :phone_number
@@ -264,6 +269,7 @@ module LockstepSdk
264
269
  'stateRegion' => @state_region,
265
270
  'postalCode' => @postal_code,
266
271
  'country' => @country,
272
+ 'timeZone' => @time_zone,
267
273
  'phoneNumber' => @phone_number,
268
274
  'faxNumber' => @fax_number,
269
275
  'created' => @created,
@@ -53,6 +53,7 @@ module LockstepSdk
53
53
  @state_region = params.dig(:state_region)
54
54
  @postal_code = params.dig(:postal_code)
55
55
  @country = params.dig(:country)
56
+ @time_zone = params.dig(:time_zone)
56
57
  @image_url = params.dig(:image_url)
57
58
  @description = params.dig(:description)
58
59
  @b2_clast_logged_in = params.dig(:b2_clast_logged_in)
@@ -159,6 +160,10 @@ module LockstepSdk
159
160
  # @return [String] Country for this User This will be validated by the /api/v1/definitions/countries data set
160
161
  attr_accessor :country
161
162
 
163
+ ##
164
+ # @return [String] Time zone for this user
165
+ attr_accessor :time_zone
166
+
162
167
  ##
163
168
  # @return [String] Image URL for this User
164
169
  attr_accessor :image_url
@@ -219,6 +224,7 @@ module LockstepSdk
219
224
  'stateRegion' => @state_region,
220
225
  'postalCode' => @postal_code,
221
226
  'country' => @country,
227
+ 'timeZone' => @time_zone,
222
228
  'imageURL' => @image_url,
223
229
  'description' => @description,
224
230
  'b2CLastLoggedIn' => @b2_clast_logged_in,
@@ -1,3 +1,3 @@
1
1
  module LockstepSdk
2
- VERSION = "2022.11.60.0"
2
+ VERSION = "2022.13.29.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.11.60.0
4
+ version: 2022.13.29.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-21 00:00:00.000000000 Z
11
+ date: 2022-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awrence