lockstep_rails 0.3.34 → 0.3.35

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: 11d7e20990a95502b074c561bf66b38b4d9578956ae8a8b30009156dcddc9128
4
- data.tar.gz: cf88371e3c097ca5133a9e739f15538d7dd0eaf88e6afc43528161f64cba1498
3
+ metadata.gz: 29be94efeb8fb9109a0f5931f8af9b8447e9c792ab85d40b5a11b9123690b9d0
4
+ data.tar.gz: 5f3057f779ab7f7b5f22a60463dd80b40e6339775facb441a62f8b069b534acc
5
5
  SHA512:
6
- metadata.gz: fdfa5f9757e3fefcb91f285d20ebc7cb13a53df53988f80b417b4030beb58a34c33ca5e1b031bbfc2b86edf59dfb4738d070dac68639a14d38625534820c5f4a
7
- data.tar.gz: 8cb82a10a58c4b8d477b5c49ef2c25a56a88a3e2699991388e95be8333c8ca2b86c9568cf3e5806394628b322c6a5bd1620b920077a99e0c7e9a1550c7320d46
6
+ metadata.gz: bb89a758335e2614471e73749a13992f5e7e91f75729519398a29a16ebca377eb3e9819d1946610f647bd6e75963e47fe7bd821f16eeb7f60861dc320f442e1a
7
+ data.tar.gz: df506a80d05be2153e291526a9f501cc02b5daf0451d153ab239613b570275c5f10e5de412ef7e2680f55ab4f0bc96f1eb662313577fe43be80bc76620b50b3a
data/README.md CHANGED
@@ -60,6 +60,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
60
60
  * Lockstep::ReportPayableSummary
61
61
  * Lockstep::ReportPayablesComingDueSummary
62
62
  * Lockstep::ApiKey
63
+ * Lockstep::InvoiceAtRiskSummary
63
64
 
64
65
  ## ActiveModel Interfaces
65
66
 
@@ -0,0 +1,6 @@
1
+ class Lockstep::InvoiceAtRiskSummary < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/Invoices/views/at-risk-summary"
3
+ self.id_ref = "invoice_id"
4
+ self.query_path = ""
5
+ load_schema(Schema::InvoiceAtRiskSummary)
6
+ end
@@ -0,0 +1,90 @@
1
+ class Schema::InvoiceAtRiskSummary < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The date of the report.
9
+ # @type: string
10
+ # @format: date
11
+ field :report_date
12
+
13
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
14
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
15
+ #
16
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
17
+ # @type: string
18
+ # @format: uuid
19
+ field :group_key
20
+
21
+ # The ID number of the counterparty for the invoice, for example, a customer or vendor.
22
+ # @type: string
23
+ # @format: uuid
24
+ field :customer_id
25
+
26
+ # The unique ID number of this invoice.
27
+ # @type: string
28
+ # @format: uuid
29
+ field :invoice_id
30
+
31
+ # A reference code that is used to identify this invoice.
32
+ # The meaning of this field is specific to the ERP or accounting system used by the user.
33
+ # @type: string
34
+ field :invoice_number
35
+
36
+ # The reporting date for this invoice.
37
+ # @type: string
38
+ # @format: date
39
+ field :invoice_date
40
+
41
+ # The name of the counterparty for the invoice, for example, a customer or vendor.
42
+ # @type: string
43
+ field :customer_name
44
+
45
+ # The status of the invoice.
46
+ # @type: string
47
+ field :status
48
+
49
+ # The due date of the invoice.
50
+ # @type: string
51
+ # @format: date
52
+ field :payment_due_date
53
+
54
+ # The total amount of the Invoice.
55
+ # @type: number
56
+ # @format: double
57
+ field :invoice_amount
58
+
59
+ # The remaining balance value of this invoice.
60
+ # @type: number
61
+ # @format: double
62
+ field :outstanding_balance
63
+
64
+ # A code identifying the type of this Invoice.
65
+ # @type: string
66
+ field :invoice_type_code
67
+
68
+ # The date stamp for the newest Activity on this Invoice.
69
+ # @type: string
70
+ # @format: date
71
+ field :newest_activity
72
+
73
+ # The number of days this Invoice is past due.
74
+ # @type: integer
75
+ # @format: int32
76
+ field :days_past_due
77
+
78
+ # The memo text of the payments associated to this invoice.
79
+ # @type: array
80
+ field :payment_numbers
81
+
82
+ # The ids of the payments associated to this invoice.
83
+ # @type: array
84
+ field :payment_ids
85
+
86
+ belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
87
+ belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
88
+
89
+
90
+ end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = "0.3.34"
2
+ VERSION = "0.3.35"
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.34
4
+ version: 0.3.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,7 @@ files:
52
52
  - app/models/lockstep/contact.rb
53
53
  - app/models/lockstep/customer_summary.rb
54
54
  - app/models/lockstep/invoice.rb
55
+ - app/models/lockstep/invoice_at_risk_summary.rb
55
56
  - app/models/lockstep/invoice_summary.rb
56
57
  - app/models/lockstep/invoices/address.rb
57
58
  - app/models/lockstep/note.rb
@@ -150,6 +151,7 @@ files:
150
151
  - app/platform_api/schema/invite_submit.rb
151
152
  - app/platform_api/schema/invoice.rb
152
153
  - app/platform_api/schema/invoice_address.rb
154
+ - app/platform_api/schema/invoice_at_risk_summary.rb
153
155
  - app/platform_api/schema/invoice_fetch_result.rb
154
156
  - app/platform_api/schema/invoice_history.rb
155
157
  - app/platform_api/schema/invoice_history_fetch_result.rb