lockstep_rails 0.3.83 → 0.3.84
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 +4 -4
- data/app/models/lockstep/invoice.rb +6 -1
- data/app/platform_api/schema/accounting_profile.rb +3 -3
- data/app/platform_api/schema/accounting_profile_contact.rb +3 -3
- data/app/platform_api/schema/accounting_profile_contact_result.rb +7 -3
- data/app/platform_api/schema/accounting_profile_request.rb +3 -3
- data/app/platform_api/schema/api_key.rb +1 -1
- data/app/platform_api/schema/app_enrollment.rb +3 -3
- data/app/platform_api/schema/app_enrollment_custom_field.rb +1 -1
- data/app/platform_api/schema/application.rb +1 -1
- data/app/platform_api/schema/attachment.rb +9 -9
- data/app/platform_api/schema/attachment_link.rb +7 -7
- data/app/platform_api/schema/code_definition.rb +3 -3
- data/app/platform_api/schema/company.rb +12 -4
- data/app/platform_api/schema/company_details.rb +1 -1
- data/app/platform_api/schema/company_details_payment.rb +1 -1
- data/app/platform_api/schema/company_magic_link_summary.rb +25 -1
- data/app/platform_api/schema/company_sync.rb +5 -1
- data/app/platform_api/schema/contact.rb +7 -3
- data/app/platform_api/schema/contact_sync.rb +4 -0
- data/app/platform_api/schema/credit_memo_applied.rb +7 -7
- data/app/platform_api/schema/credit_memo_invoice.rb +3 -3
- data/app/platform_api/schema/custom_field_definition.rb +3 -3
- data/app/platform_api/schema/custom_field_value.rb +3 -3
- data/app/platform_api/schema/customer_summary.rb +1 -1
- data/app/platform_api/schema/financial_account.rb +1 -1
- data/app/platform_api/schema/financial_account_balance_history.rb +3 -3
- data/app/platform_api/schema/financial_institution_account.rb +1 -1
- data/app/platform_api/schema/financial_report.rb +1 -1
- data/app/platform_api/schema/financial_year_setting.rb +3 -3
- data/app/platform_api/schema/group_account.rb +1 -1
- data/app/platform_api/schema/invoice.rb +33 -34
- data/app/platform_api/schema/invoice_address.rb +3 -3
- data/app/platform_api/schema/invoice_line.rb +3 -3
- data/app/platform_api/schema/invoice_payment_detail.rb +1 -1
- data/app/platform_api/schema/invoice_summary.rb +1 -1
- data/app/platform_api/schema/invoice_summary_invoice_summary_totals_summary_fetch_result.rb +1 -0
- data/app/platform_api/schema/invoice_workflow_status_history.rb +1 -1
- data/app/platform_api/schema/journal_entry.rb +3 -3
- data/app/platform_api/schema/journal_entry_line.rb +3 -3
- data/app/platform_api/schema/lead.rb +2 -2
- data/app/platform_api/schema/magic_link.rb +3 -3
- data/app/platform_api/schema/note.rb +7 -7
- data/app/platform_api/schema/payment.rb +3 -3
- data/app/platform_api/schema/payment_applied.rb +3 -3
- data/app/platform_api/schema/payment_detail.rb +1 -1
- data/app/platform_api/schema/payment_summary.rb +1 -1
- data/app/platform_api/schema/payment_summary_payment_summary_totals_summary_fetch_result.rb +1 -0
- data/app/platform_api/schema/status.rb +2 -2
- data/app/platform_api/schema/sync_request.rb +3 -6
- data/app/platform_api/schema/transaction.rb +11 -0
- data/app/platform_api/schema/transaction_currency_summary.rb +24 -0
- data/app/platform_api/schema/transaction_detail.rb +11 -0
- data/app/platform_api/schema/transaction_transaction_summary_total_summary_fetch_result.rb +1 -0
- data/app/platform_api/schema/user_account.rb +3 -3
- data/app/platform_api/schema/user_data_response.rb +1 -1
- data/app/platform_api/schema/user_group.rb +1 -1
- data/app/platform_api/schema/user_role.rb +3 -3
- data/app/platform_api/schema/vendor_summary.rb +1 -1
- data/app/platform_api/schema/webhook.rb +5 -5
- data/app/platform_api/schema/webhook_history_table_storage.rb +3 -3
- data/app/platform_api/schema/webhook_rule.rb +4 -4
- data/app/platform_api/schema/workflow_status.rb +2 -1
- data/app/platform_api/swagger.json +830 -1282
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69111c175a9b6f74d33491d546c7827d36a0f357b0a186ebf43715b2b28ccd7f
|
4
|
+
data.tar.gz: 3cbc687460559fea1684ece0f631443754a78b97c17dbeb3906a34a17517015a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02db626c78c9c801216ba146fdc0389c5dfa346efd56ab767e13430c10a3fd85cf0b3554cb78e8d84266485717618ce11f5d42f38009c9494dca9d2e2f7e8a4f
|
7
|
+
data.tar.gz: f76c6938b8bfe1c2fe43e93b1530290bbbb522c487e1e2c89379f2ee7bcf0b29fe0a5ba9564e920c61bd31b43d67a0921010e3fb8c5c19d83e652a73f5d9253c
|
@@ -6,7 +6,6 @@ class Lockstep::Invoice < Lockstep::ApiRecord
|
|
6
6
|
load_schema(Schema::Invoice)
|
7
7
|
|
8
8
|
belongs_to :connection, class_name: 'Lockstep::Connection', foreign_key: :customer_id
|
9
|
-
belongs_to :customer_primary_contact, {:class_name=>"Lockstep::Contact", :included=>true}
|
10
9
|
|
11
10
|
scope :einvoices, -> { where(is_e_invoice: true).include_object(:customer, :lines, :attachments) }
|
12
11
|
scope :received_einvoices, -> { einvoices.where(invoice_type_code: 'AP Invoice') }
|
@@ -16,4 +15,10 @@ class Lockstep::Invoice < Lockstep::ApiRecord
|
|
16
15
|
response = resource.get "#{id}/pdf"
|
17
16
|
response.body
|
18
17
|
end
|
18
|
+
|
19
|
+
def customer_primary_contact
|
20
|
+
return nil unless attributes['customer_primary_contact'].present?
|
21
|
+
|
22
|
+
Lockstep::Contact.new attributes['customer_primary_contact']
|
23
|
+
end
|
19
24
|
end
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :accounting_profile_id
|
@@ -16,7 +16,7 @@ end
|
|
16
16
|
# @format: uuid
|
17
17
|
field :company_id
|
18
18
|
|
19
|
-
# The GroupKey uniquely identifies a single
|
19
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
20
20
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
21
21
|
#
|
22
22
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :accounting_profile_contact_id
|
@@ -25,7 +25,7 @@ end
|
|
25
25
|
# @type: boolean
|
26
26
|
field :is_primary
|
27
27
|
|
28
|
-
# The GroupKey uniquely identifies a single
|
28
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
29
29
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
30
30
|
#
|
31
31
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
#
|
11
11
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
12
12
|
# @type: string
|
@@ -18,7 +18,7 @@ end
|
|
18
18
|
# @format: uuid
|
19
19
|
field :company_id
|
20
20
|
|
21
|
-
# The GroupKey uniquely identifies a single
|
21
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
22
22
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
23
23
|
#
|
24
24
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -77,6 +77,10 @@ end
|
|
77
77
|
# @type: string
|
78
78
|
field :address3
|
79
79
|
|
80
|
+
# The fourth line of the address.
|
81
|
+
# @type: string
|
82
|
+
field :address4
|
83
|
+
|
80
84
|
# The city of the address.
|
81
85
|
# @type: string
|
82
86
|
field :city
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :accounting_profile_id
|
@@ -16,7 +16,7 @@ end
|
|
16
16
|
# @format: uuid
|
17
17
|
field :company_id
|
18
18
|
|
19
|
-
# The GroupKey uniquely identifies a single
|
19
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
20
20
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
21
21
|
#
|
22
22
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -10,7 +10,7 @@ end
|
|
10
10
|
# @format: uuid
|
11
11
|
field :api_key_id
|
12
12
|
|
13
|
-
# The GroupKey uniquely identifies a single
|
13
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
14
14
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
15
15
|
#
|
16
16
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :app_enrollment_id
|
@@ -17,7 +17,7 @@ end
|
|
17
17
|
# @format: uuid
|
18
18
|
field :app_id
|
19
19
|
|
20
|
-
# The GroupKey uniquely identifies a single
|
20
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
21
21
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
22
22
|
#
|
23
23
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -23,7 +23,7 @@ end
|
|
23
23
|
# @type: string
|
24
24
|
field :app_type
|
25
25
|
|
26
|
-
# The GroupKey uniquely identifies a single
|
26
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
27
27
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
28
28
|
#
|
29
29
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -59,7 +59,7 @@ end
|
|
59
59
|
# @type: boolean
|
60
60
|
field :is_active
|
61
61
|
|
62
|
-
# The GroupKey uniquely identifies a single
|
62
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
63
63
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
64
64
|
#
|
65
65
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,13 +5,13 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :attachment_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
15
15
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
16
|
#
|
17
17
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -19,22 +19,22 @@ end
|
|
19
19
|
# @format: uuid
|
20
20
|
field :group_key
|
21
21
|
|
22
|
-
# An Attachment is connected to an existing item within the
|
22
|
+
# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
|
23
23
|
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
|
24
24
|
# `Invoice` and an `ObjectKey` value of `12345`.
|
25
25
|
#
|
26
|
-
# The `TableKey` value contains the name of the table within the
|
26
|
+
# The `TableKey` value contains the name of the table within the ADS Platform to which this Attachment
|
27
27
|
# is connected.
|
28
28
|
#
|
29
29
|
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
30
30
|
# @type: string
|
31
31
|
field :table_key
|
32
32
|
|
33
|
-
# An Attachment is connected to an existing item within the
|
33
|
+
# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
|
34
34
|
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
|
35
35
|
# `Invoice` and an `ObjectKey` value of `12345`.
|
36
36
|
#
|
37
|
-
# The `ObjectKey` value contains the primary key of the record within the
|
37
|
+
# The `ObjectKey` value contains the primary key of the record within the ADS Platform to which this
|
38
38
|
# Attachment is connected.
|
39
39
|
#
|
40
40
|
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
@@ -42,12 +42,12 @@ end
|
|
42
42
|
# @format: uuid
|
43
43
|
field :object_key
|
44
44
|
|
45
|
-
# An Attachment represents a file that was uploaded to the
|
45
|
+
# An Attachment represents a file that was uploaded to the ADS Platform. This field contains the original
|
46
46
|
# name of the file on disk, without its extension.
|
47
47
|
# @type: string
|
48
48
|
field :file_name
|
49
49
|
|
50
|
-
# An Attachment represents a file that was uploaded to the
|
50
|
+
# An Attachment represents a file that was uploaded to the ADS Platform. This field contains the original
|
51
51
|
# extension name of the file on disk.
|
52
52
|
# @type: string
|
53
53
|
field :file_ext
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -13,17 +13,17 @@ end
|
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of an attachment record, automatically assigned by
|
17
|
-
# added to the
|
16
|
+
# The unique ID of an attachment record, automatically assigned by ADS when this record is
|
17
|
+
# added to the ADS Platform.
|
18
18
|
# @type: string
|
19
19
|
# @format: uuid
|
20
20
|
field :attachment_id
|
21
21
|
|
22
|
-
# An Attachment is connected to an existing item within the
|
22
|
+
# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
|
23
23
|
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
|
24
24
|
# `Invoice` and an `ObjectKey` value of `12345`.
|
25
25
|
#
|
26
|
-
# The `ObjectKey` value contains the primary key of the record within the
|
26
|
+
# The `ObjectKey` value contains the primary key of the record within the ADS Platform to which this
|
27
27
|
# Attachment is connected.
|
28
28
|
#
|
29
29
|
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
@@ -31,11 +31,11 @@ end
|
|
31
31
|
# @format: uuid
|
32
32
|
field :object_key
|
33
33
|
|
34
|
-
# An Attachment is connected to an existing item within the
|
34
|
+
# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
|
35
35
|
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
|
36
36
|
# `Invoice` and an `ObjectKey` value of `12345`.
|
37
37
|
#
|
38
|
-
# The `TableKey` value contains the name of the table within the
|
38
|
+
# The `TableKey` value contains the name of the table within the ADS Platform to which this Attachment
|
39
39
|
# is connected.
|
40
40
|
#
|
41
41
|
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
@@ -5,13 +5,13 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :code_definition_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
15
15
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
16
|
#
|
17
17
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
#
|
11
11
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
12
12
|
# @type: string
|
@@ -55,7 +55,7 @@ end
|
|
55
55
|
# @format: uuid
|
56
56
|
field :enterprise_id
|
57
57
|
|
58
|
-
# The GroupKey uniquely identifies a single
|
58
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
59
59
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
60
60
|
#
|
61
61
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -82,7 +82,7 @@ end
|
|
82
82
|
# The scan status of the company's logo, if it exists
|
83
83
|
field :company_logo_status
|
84
84
|
|
85
|
-
# The
|
85
|
+
# The ADS Platform `ContactId` of the primary contact for this company.
|
86
86
|
# @type: string
|
87
87
|
# @format: uuid
|
88
88
|
field :primary_contact_id
|
@@ -99,6 +99,10 @@ end
|
|
99
99
|
# @type: string
|
100
100
|
field :address3
|
101
101
|
|
102
|
+
# Address info
|
103
|
+
# @type: string
|
104
|
+
field :address4
|
105
|
+
|
102
106
|
# Address info
|
103
107
|
# @type: string
|
104
108
|
field :city
|
@@ -209,6 +213,10 @@ end
|
|
209
213
|
# @type: string
|
210
214
|
field :public_url_slug
|
211
215
|
|
216
|
+
# Indicates if the primary contact has been set by the user.
|
217
|
+
# @type: boolean
|
218
|
+
field :primary_contact_set
|
219
|
+
|
212
220
|
# State Tax ID
|
213
221
|
# @type: string
|
214
222
|
field :state_tax_id
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -28,7 +28,7 @@ end
|
|
28
28
|
# @type: string
|
29
29
|
field :company_type
|
30
30
|
|
31
|
-
# The GroupKey uniquely identifies a single
|
31
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
32
32
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
33
33
|
#
|
34
34
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -53,6 +53,11 @@ end
|
|
53
53
|
# @format: double
|
54
54
|
field :outstanding_amount
|
55
55
|
|
56
|
+
# The total amount past due for this company
|
57
|
+
# @type: number
|
58
|
+
# @format: double
|
59
|
+
field :amount_past_due
|
60
|
+
|
56
61
|
# The total number of open invoices for this company
|
57
62
|
# @type: integer
|
58
63
|
# @format: int32
|
@@ -91,6 +96,25 @@ end
|
|
91
96
|
# @format: date-time
|
92
97
|
field :latest_magic_link_expiration_date, Types::Params::DateTime
|
93
98
|
|
99
|
+
# The currency code associated with this company based on the related invoices and payments.
|
100
|
+
# `Multi` - Multiple currency codes are present.
|
101
|
+
# @type: string
|
102
|
+
field :currency_code
|
103
|
+
|
104
|
+
# The invite status of this company
|
105
|
+
# @type: string
|
106
|
+
field :invite_status
|
107
|
+
|
108
|
+
# The UTC date and time the invite status was last modified
|
109
|
+
# @type: string
|
110
|
+
# @format: date-time
|
111
|
+
field :invite_status_modified, Types::Params::DateTime
|
112
|
+
|
113
|
+
# The user id of the user who last modified the invite status
|
114
|
+
# @type: string
|
115
|
+
# @format: uuid
|
116
|
+
field :invite_status_modified_user_id
|
117
|
+
|
94
118
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
95
119
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
96
120
|
|
@@ -35,7 +35,7 @@ end
|
|
35
35
|
# `Customer`, `Group`, `Vendor`, or `Third Party`. A company that represents both a customer and a vendor is
|
36
36
|
# identified as a `CustomerVendor`.
|
37
37
|
#
|
38
|
-
# When loading data into
|
38
|
+
# When loading data into ADS, you should focus on the distinction between a company that is part of
|
39
39
|
# your own enterprise, or a company that is external to your enterprise.
|
40
40
|
#
|
41
41
|
# For a company that is within your enterprise, you should set this value to be `Company`.
|
@@ -95,6 +95,10 @@ end
|
|
95
95
|
# @type: string
|
96
96
|
field :address3
|
97
97
|
|
98
|
+
# The company's primary mailing address information
|
99
|
+
# @type: string
|
100
|
+
field :address4
|
101
|
+
|
98
102
|
# The company's primary mailing address information
|
99
103
|
# @type: string
|
100
104
|
field :city
|
@@ -5,8 +5,8 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
#
|
11
11
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
12
12
|
# @type: string
|
@@ -18,7 +18,7 @@ end
|
|
18
18
|
# @format: uuid
|
19
19
|
field :company_id
|
20
20
|
|
21
|
-
# The GroupKey uniquely identifies a single
|
21
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
22
22
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
23
23
|
#
|
24
24
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -77,6 +77,10 @@ end
|
|
77
77
|
# @type: string
|
78
78
|
field :address3
|
79
79
|
|
80
|
+
# The fourth line of the address.
|
81
|
+
# @type: string
|
82
|
+
field :address4
|
83
|
+
|
80
84
|
# The city of the address.
|
81
85
|
# @type: string
|
82
86
|
field :city
|
@@ -5,15 +5,15 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
#
|
11
11
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :credit_memo_applied_id
|
15
15
|
|
16
|
-
# The GroupKey uniquely identifies a single
|
16
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
17
17
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
18
18
|
#
|
19
19
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -21,20 +21,20 @@ end
|
|
21
21
|
# @format: uuid
|
22
22
|
field :group_key
|
23
23
|
|
24
|
-
# The
|
24
|
+
# The ADS Platform ID of the Invoice to which this credit memo was applied. This Invoice's outstanding balance
|
25
25
|
# was reduced by the value of the field `CreditMemoAppliedAmount` on the date `ApplyToInvoiceDate`.
|
26
26
|
#
|
27
27
|
# Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
|
28
|
-
# credit memo to reduce the balance of the invoice PO1000578. The `InvoiceErpKey` is the
|
28
|
+
# credit memo to reduce the balance of the invoice PO1000578. The `InvoiceErpKey` is the ADS Platform
|
29
29
|
# ID number of Invoice `PO1000578`.
|
30
30
|
# @type: string
|
31
31
|
# @format: uuid
|
32
32
|
field :invoice_id
|
33
33
|
|
34
|
-
# The
|
34
|
+
# The ADS Platform ID of the Invoice of type "Credit Memo" that was consumed in this payment application event.
|
35
35
|
#
|
36
36
|
# Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
|
37
|
-
# credit memo to reduce the balance of the invoice PO1000578. The `CreditMemoInvoiceId` is the
|
37
|
+
# credit memo to reduce the balance of the invoice PO1000578. The `CreditMemoInvoiceId` is the ADS
|
38
38
|
# Platform ID number of Invoice `CM000123`.
|
39
39
|
# @type: string
|
40
40
|
# @format: uuid
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -21,8 +21,8 @@ end
|
|
21
21
|
# @type: string
|
22
22
|
field :currency_code
|
23
23
|
|
24
|
-
# The unique ID of this record, automatically assigned by
|
25
|
-
# added to the
|
24
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
25
|
+
# added to the ADS Platform.
|
26
26
|
# @type: string
|
27
27
|
# @format: uuid
|
28
28
|
field :credit_memo_applied_id
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -13,8 +13,8 @@ end
|
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of this record, automatically assigned by
|
17
|
-
# added to the
|
16
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
17
|
+
# added to the ADS Platform.
|
18
18
|
# @type: string
|
19
19
|
# @format: uuid
|
20
20
|
field :custom_field_definition_id
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -13,8 +13,8 @@ end
|
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of this record, automatically assigned by
|
17
|
-
# added to the
|
16
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
17
|
+
# added to the ADS Platform.
|
18
18
|
# @type: string
|
19
19
|
# @format: uuid
|
20
20
|
field :custom_field_definition_id
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single
|
8
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
10
|
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -10,7 +10,7 @@ end
|
|
10
10
|
# @format: uuid
|
11
11
|
field :financial_account_id
|
12
12
|
|
13
|
-
# The GroupKey uniquely identifies a single
|
13
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
14
14
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
15
15
|
#
|
16
16
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -5,13 +5,13 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by
|
9
|
-
# added to the
|
8
|
+
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
+
# added to the ADS Platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :financial_account_balance_history_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
15
15
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
16
|
#
|
17
17
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -10,7 +10,7 @@ end
|
|
10
10
|
# @format: uuid
|
11
11
|
field :financial_institution_account_id
|
12
12
|
|
13
|
-
# The GroupKey uniquely identifies a single
|
13
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
14
14
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
15
15
|
#
|
16
16
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -9,7 +9,7 @@ end
|
|
9
9
|
# @type: string
|
10
10
|
field :report_name
|
11
11
|
|
12
|
-
# The GroupKey uniquely identifies a single
|
12
|
+
# The GroupKey uniquely identifies a single ADS Platform account. All records for this
|
13
13
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
14
14
|
#
|
15
15
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|