lockstep_rails 0.3.32 → 0.3.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/models/lockstep/api_key.rb +2 -0
- data/app/models/lockstep/connection.rb +2 -2
- data/app/models/lockstep/invoice_at_risk_summary.rb +6 -0
- data/app/platform_api/schema/invoice_at_risk_summary.rb +90 -0
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29be94efeb8fb9109a0f5931f8af9b8447e9c792ab85d40b5a11b9123690b9d0
|
4
|
+
data.tar.gz: 5f3057f779ab7f7b5f22a60463dd80b40e6339775facb441a62f8b069b534acc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb89a758335e2614471e73749a13992f5e7e91f75729519398a29a16ebca377eb3e9819d1946610f647bd6e75963e47fe7bd821f16eeb7f60861dc320f442e1a
|
7
|
+
data.tar.gz: df506a80d05be2153e291526a9f501cc02b5daf0451d153ab239613b570275c5f10e5de412ef7e2680f55ab4f0bc96f1eb662313577fe43be80bc76620b50b3a
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ class Lockstep::Connection < Lockstep::ApiRecord
|
|
3
3
|
self.id_ref = "company_id"
|
4
4
|
load_schema(Schema::Company)
|
5
5
|
|
6
|
-
enum company_type: %w(Customer Vendor)
|
6
|
+
enum company_type: %w(Customer Vendor Group)
|
7
7
|
|
8
8
|
has_many :contacts, class_name: "Lockstep::Contact", included: true
|
9
9
|
belongs_to :created_user, class_name: "Lockstep::User", foreign_key: :created_user_id, primary_key: :user_id
|
@@ -11,7 +11,7 @@ class Lockstep::Connection < Lockstep::ApiRecord
|
|
11
11
|
|
12
12
|
validates :company_name, presence: true
|
13
13
|
|
14
|
-
default_scope { where(company_type: %w(Customer Vendor)).or(where(company_type: nil)) }
|
14
|
+
default_scope { where(company_type: %w(Customer Vendor Group)).or(where(company_type: nil)) }
|
15
15
|
|
16
16
|
scope :customers, -> { where(company_type: "Customer") }
|
17
17
|
scope :vendors, -> { where(company_type: "Vendor") }
|
@@ -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
|
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.
|
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-
|
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
|