lockstep_rails 0.3.50 → 0.3.52

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: b5d5c5f93ad97a22a6795d078cf6fcc1c7b55664c1a346b97165fe338817bc0a
4
- data.tar.gz: '09dcbb78dc21c72c71e24aa0e8331bdfc9ab25afcd0e0c21b735840cfda1bad1'
3
+ metadata.gz: 4ae7706a51bbbb9287e03d75e1caa76fca7ccd3390e3cb2b7228da5923eea1b1
4
+ data.tar.gz: e0481ed5eb90dd104ed9c223fd01f476ed7a7181395f0be7706ca02537924282
5
5
  SHA512:
6
- metadata.gz: 3b06de1ea738f7bd10446a7333d11cb0cfbf0db5cc498b26fcecfce88826f7f7e1416910cd6ec40cd154929a252db7661f54efc5d4f78fc619efb1eed6578e4c
7
- data.tar.gz: 80738242c60dab2386b0f00602a4feda1f086629c4e9714049ad124d837f5c261f13e66b596e49e3376b10959ae5cde2de76370c72c8119b7ca430ae64c8813d
6
+ metadata.gz: c00fbe40099a0b9a3ac3fd4da3d0af34f55e3608bc55ca0681a2bc5d1f4d47760048d7766f49bae719d887ca17afd7eea8f91ab1007393300e1d31232d249440
7
+ data.tar.gz: 68e6d538ec4cc70a26d63657dff6c1106a046be0993db34c78c65a794dfbd8d7806b9be246a04d8c8807bf161b0938c9a45a138ed88a98c1f4a413206742cf19
data/README.md CHANGED
@@ -57,6 +57,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
57
57
  * Lockstep::ReportArAgingHeader
58
58
  * Lockstep::ReportCashflow
59
59
  * Lockstep::ReportDailyPayableOutstanding
60
+ * Lockstep::ReportDailyPayableOutstandingSummary
60
61
  * Lockstep::ReportDailySalesOutstanding
61
62
  * Lockstep::ReportPayableComingDue
62
63
  * Lockstep::ReportPayablesComingDueSummary
@@ -241,6 +241,8 @@ class Lockstep::Query
241
241
  return results.to_i
242
242
  else
243
243
  results = parsed_response.is_a?(Array) ? parsed_response : parsed_response["records"]
244
+ return [] if results.blank?
245
+
244
246
  results = results[0..(criteria[:limit] - 1)] if criteria[:limit]
245
247
  get_relation_objects results.map { |r|
246
248
  # Convert camelcase to snake-case
@@ -0,0 +1,10 @@
1
+ class Lockstep::ReportDailyPayableOutstandingSummary < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/Reports/daily-payable-outstanding-summary"
3
+ self.query_path= ""
4
+ load_schema(Schema::DailyPayableOutstandingSummaryReport)
5
+
6
+ def self.with_report_date(report_date)
7
+ additional_query_params({"reportDate": report_date})
8
+ end
9
+
10
+ end
@@ -0,0 +1,49 @@
1
+ class Schema::DailyPayableOutstandingSummaryReport < Lockstep::ApiRecord
2
+ # Description: Represents a summary of outstanding amounts for bills to vendors and their associated daily payable outstanding value.
3
+
4
+ # ApiRecord will crash unless `id_ref` is defined
5
+ def self.id_ref
6
+ nil
7
+ end
8
+
9
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
10
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
11
+ #
12
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
13
+ # @type: string
14
+ # @format: uuid
15
+ field :group_key
16
+
17
+ # The unique ID of the vendor.
18
+ # @type: string
19
+ # @format: uuid
20
+ field :vendor_id
21
+
22
+ # The name of the vendor.
23
+ # @type: string
24
+ field :vendor_name
25
+
26
+ # The name of the primary contact.
27
+ # @type: string
28
+ field :primary_contact
29
+
30
+ # The total number of outstanding bills.
31
+ # @type: integer
32
+ # @format: int32
33
+ field :bills
34
+
35
+ # The group's base currency code.
36
+ # @type: string
37
+ field :base_currency_code
38
+
39
+ # The total amount outstanding at the group's base currency.
40
+ # @type: number
41
+ # @format: double
42
+ field :amount_outstanding
43
+
44
+ # The days payable outstanding value.
45
+ # @type: number
46
+ # @format: double
47
+ field :dpo
48
+
49
+ end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = '0.3.50'
2
+ VERSION = '0.3.52'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.50
4
+ version: 0.3.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,6 +65,7 @@ files:
65
65
  - app/models/lockstep/report_ar_aging_header.rb
66
66
  - app/models/lockstep/report_cashflow.rb
67
67
  - app/models/lockstep/report_daily_payable_outstanding.rb
68
+ - app/models/lockstep/report_daily_payable_outstanding_summary.rb
68
69
  - app/models/lockstep/report_daily_sales_outstanding.rb
69
70
  - app/models/lockstep/report_payable_coming_due.rb
70
71
  - app/models/lockstep/report_payable_coming_due_summary.rb
@@ -143,6 +144,7 @@ files:
143
144
  - app/platform_api/schema/customer_summary.rb
144
145
  - app/platform_api/schema/customer_summary_fetch_result.rb
145
146
  - app/platform_api/schema/daily_payable_outstanding_report.rb
147
+ - app/platform_api/schema/daily_payable_outstanding_summary_report.rb
146
148
  - app/platform_api/schema/daily_sales_outstanding_report.rb
147
149
  - app/platform_api/schema/delete_result.rb
148
150
  - app/platform_api/schema/developer_account_submit.rb