lockstep_rails 0.3.88 → 0.3.90
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/custom_field_value.rb +12 -0
- data/app/platform_api/schema/aging.rb +6 -9
- data/app/platform_api/schema/aging_bucket_result.rb +18 -0
- 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/app_enrollment_reconnect_info.rb +0 -16
- data/app/platform_api/schema/application.rb +1 -1
- data/app/platform_api/schema/attachment.rb +8 -8
- data/app/platform_api/schema/attachment_link.rb +6 -6
- data/app/platform_api/schema/batch_sync.rb +1 -0
- data/app/platform_api/schema/code_definition.rb +2 -2
- data/app/platform_api/schema/company.rb +8 -17
- 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_identifier.rb +26 -0
- data/app/platform_api/schema/company_magic_link_summary.rb +5 -1
- data/app/platform_api/schema/company_sync.rb +5 -14
- data/app/platform_api/schema/connector_info.rb +0 -50
- data/app/platform_api/schema/contact.rb +2 -2
- data/app/platform_api/schema/contact_sync.rb +1 -1
- data/app/platform_api/schema/credit_memo_applied.rb +6 -6
- data/app/platform_api/schema/credit_memo_applied_sync.rb +1 -1
- data/app/platform_api/schema/credit_memo_invoice.rb +8 -2
- data/app/platform_api/schema/custom_field_definition.rb +2 -2
- data/app/platform_api/schema/custom_field_value.rb +2 -2
- 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 +2 -2
- data/app/platform_api/schema/financial_account_balance_history_sync.rb +1 -3
- data/app/platform_api/schema/financial_institution_account.rb +1 -1
- data/app/platform_api/schema/financial_year_setting.rb +2 -2
- data/app/platform_api/schema/group_account.rb +6 -1
- data/app/platform_api/schema/invoice.rb +61 -2
- data/app/platform_api/schema/invoice_address.rb +2 -2
- data/app/platform_api/schema/invoice_line.rb +29 -17
- data/app/platform_api/schema/invoice_line_sync.rb +28 -115
- data/app/platform_api/schema/invoice_payment_detail.rb +7 -1
- data/app/platform_api/schema/invoice_summary.rb +1 -1
- data/app/platform_api/schema/invoice_sync.rb +48 -1
- data/app/platform_api/schema/invoice_workflow_status_history.rb +22 -3
- data/app/platform_api/schema/invoice_workflow_status_sync.rb +39 -0
- data/app/platform_api/schema/journal_entry_line_sync.rb +5 -0
- data/app/platform_api/schema/magic_link.rb +2 -2
- data/app/platform_api/schema/note.rb +6 -6
- data/app/platform_api/schema/object_event.rb +69 -0
- data/app/platform_api/schema/payment.rb +19 -3
- data/app/platform_api/schema/payment_applied.rb +12 -4
- data/app/platform_api/schema/payment_applied_sync.rb +20 -4
- data/app/platform_api/schema/payment_detail.rb +2 -2
- data/app/platform_api/schema/payment_summary.rb +1 -1
- data/app/platform_api/schema/payment_sync.rb +9 -1
- data/app/platform_api/schema/status.rb +2 -2
- data/app/platform_api/schema/sync_request.rb +7 -3
- data/app/platform_api/schema/tax_summary.rb +29 -0
- data/app/platform_api/schema/user_account.rb +3 -7
- 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 +7 -2
- data/app/platform_api/swagger.json +8636 -15489
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +10 -5
@@ -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 Accounting Data Services
|
8
|
+
# The unique ID of this record, automatically assigned by Accounting Data Service when this record is
|
9
|
+
# added to the Accounting Data Services network.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :invoice_workflow_status_history_id
|
@@ -25,7 +25,12 @@ end
|
|
25
25
|
# @type: string
|
26
26
|
field :workflow_status_name
|
27
27
|
|
28
|
-
# The
|
28
|
+
# The workflow transition ID associated with the invoice workflow status history.
|
29
|
+
# @type: string
|
30
|
+
# @format: uuid
|
31
|
+
field :workflow_transition_id
|
32
|
+
|
33
|
+
# The GroupKey uniquely identifies a single Accounting Data Services Network account. All records for this
|
29
34
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
30
35
|
#
|
31
36
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
@@ -37,6 +42,12 @@ end
|
|
37
42
|
# @type: string
|
38
43
|
field :workflow_status_notes
|
39
44
|
|
45
|
+
# The reason code for the invoice workflow status history.
|
46
|
+
#
|
47
|
+
# Specific reason codes are defined by the workflow status.
|
48
|
+
# @type: string
|
49
|
+
field :workflow_status_reason_code
|
50
|
+
|
40
51
|
# The date that the invoice workflow status history was created.
|
41
52
|
# @type: string
|
42
53
|
# @format: date-time
|
@@ -47,6 +58,14 @@ end
|
|
47
58
|
# @format: uuid
|
48
59
|
field :created_user_id
|
49
60
|
|
61
|
+
# The TraceId of the call made to create the invoice workflow status history.
|
62
|
+
# @type: string
|
63
|
+
field :trace_id
|
64
|
+
|
65
|
+
# The span id of the parent call to create the invoice workflow status history.
|
66
|
+
# @type: string
|
67
|
+
field :trace_parent
|
68
|
+
|
50
69
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
51
70
|
|
52
71
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
class Schema::InvoiceWorkflowStatusSync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# This is the primary key of the Invoice record. For this field, you should use whatever the invoice's unique
|
9
|
+
# identifying number is in the originating system. Search for a unique, non-changing number within the
|
10
|
+
# originating financial system for this record.
|
11
|
+
#
|
12
|
+
# Example: If you store your invoice records in a database, whatever the primary key for the invoice table is
|
13
|
+
# in the database should be the "ErpKey".
|
14
|
+
#
|
15
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
16
|
+
# @type: string
|
17
|
+
field :invoice_erp_key
|
18
|
+
|
19
|
+
# Workflow status of the invoice.
|
20
|
+
# @type: string
|
21
|
+
# @format: uuid
|
22
|
+
field :workflow_status_id
|
23
|
+
|
24
|
+
# Notes associated to workflow status
|
25
|
+
# @type: string
|
26
|
+
field :notes
|
27
|
+
|
28
|
+
# Workflow status code dictated by government standards
|
29
|
+
# @type: string
|
30
|
+
field :code
|
31
|
+
|
32
|
+
# The date when the workflow status was updated for the e-invoice
|
33
|
+
# @type: string
|
34
|
+
# @format: date-time
|
35
|
+
field :created, Types::Params::DateTime
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
end
|
@@ -51,6 +51,11 @@ end
|
|
51
51
|
# @type: string
|
52
52
|
field :currency_code
|
53
53
|
|
54
|
+
# The CurrencyRate of the connected Payment
|
55
|
+
# @type: number
|
56
|
+
# @format: double
|
57
|
+
field :currency_rate
|
58
|
+
|
54
59
|
# The base currency debit amount for the account.
|
55
60
|
# @type: number
|
56
61
|
# @format: double
|
@@ -6,12 +6,12 @@ def self.id_ref
|
|
6
6
|
end
|
7
7
|
|
8
8
|
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
-
# added to the
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :magic_link_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
|
15
15
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
16
|
# @type: string
|
17
17
|
# @format: uuid
|
@@ -6,12 +6,12 @@ def self.id_ref
|
|
6
6
|
end
|
7
7
|
|
8
8
|
# The unique ID of this record, automatically assigned by ADS when this record is
|
9
|
-
# added to the
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :note_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single Accounting Data Service 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
|
-
# A Note is connected to an existing item within the
|
22
|
+
# A Note is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
|
23
23
|
# `ObjectKey`. For example, a Note 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 Accounting Data Service to which this metadata
|
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
|
-
# A Note is connected to an existing item within the
|
33
|
+
# A Note is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
|
34
34
|
# `ObjectKey`. For example, a Note 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 Accounting Data Service to which this
|
38
38
|
# metadata 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).
|
@@ -0,0 +1,69 @@
|
|
1
|
+
class Schema::ObjectEvent < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Identifier for event
|
9
|
+
# @type: string
|
10
|
+
field :id
|
11
|
+
|
12
|
+
# Identifies the context in which this event happened
|
13
|
+
# @type: string
|
14
|
+
field :source
|
15
|
+
|
16
|
+
# Version of the CloudEvents specification which the event uses
|
17
|
+
# @type: string
|
18
|
+
field :spec_version
|
19
|
+
|
20
|
+
# Value describing the type of even relating to the originating occurrence
|
21
|
+
# NOTE: Type format should be {entity type}.{event action}
|
22
|
+
# @type: string
|
23
|
+
field :type
|
24
|
+
|
25
|
+
# Contains trace information such as version, trace ID, span ID and trace options
|
26
|
+
# @type: string
|
27
|
+
field :trace_parent
|
28
|
+
|
29
|
+
# Comma-delimited list of trace key value pairs
|
30
|
+
# @type: string
|
31
|
+
field :trace_state
|
32
|
+
|
33
|
+
# Content type of data value
|
34
|
+
# @type: string
|
35
|
+
field :data_content_type
|
36
|
+
|
37
|
+
# Identifies the schema the data value adheres to
|
38
|
+
# @type: string
|
39
|
+
field :data_schema
|
40
|
+
|
41
|
+
# Identifies the subject of the event in the context of the even producer (identified by source)
|
42
|
+
# @type: string
|
43
|
+
field :subject
|
44
|
+
|
45
|
+
# Timestamp of when the occurrence happened
|
46
|
+
# @type: string
|
47
|
+
# @format: date-time
|
48
|
+
field :time, Types::Params::DateTime
|
49
|
+
|
50
|
+
# Subscription id related to the notification
|
51
|
+
# @type: string
|
52
|
+
field :subscription_id
|
53
|
+
|
54
|
+
# Account id related to the notification
|
55
|
+
# @type: string
|
56
|
+
field :account_id
|
57
|
+
|
58
|
+
# Dataset related to the notification
|
59
|
+
# @type: string
|
60
|
+
# @format: uuid
|
61
|
+
field :dataset_id
|
62
|
+
|
63
|
+
# Source domain-specific information about the occurrence to be deserialized based on the information in DataContentType
|
64
|
+
# or DataSchema or by default content type - application/json
|
65
|
+
field :data
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
end
|
@@ -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 Accounting Data Service 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 Accounting Data Service when this record is
|
17
|
+
# added to the Accounting Data Service.
|
18
18
|
#
|
19
19
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
20
|
# @type: string
|
@@ -26,6 +26,10 @@ end
|
|
26
26
|
# @format: uuid
|
27
27
|
field :company_id
|
28
28
|
|
29
|
+
# The name of the company associated with this payment.
|
30
|
+
# @type: string
|
31
|
+
field :company_name
|
32
|
+
|
29
33
|
# The unique ID of this record as it was known in its originating financial system.
|
30
34
|
#
|
31
35
|
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
@@ -169,6 +173,18 @@ end
|
|
169
173
|
# @format: date-time
|
170
174
|
field :source_modified_date, Types::Params::DateTime
|
171
175
|
|
176
|
+
# The tax code of this payment.
|
177
|
+
# @type: string
|
178
|
+
field :tax_code
|
179
|
+
|
180
|
+
# The financial account code of this payment.
|
181
|
+
# @type: string
|
182
|
+
field :financial_account_code
|
183
|
+
|
184
|
+
# Optional field to indicate if the payment has a PDF attached to it.
|
185
|
+
# @type: boolean
|
186
|
+
field :has_pdf
|
187
|
+
|
172
188
|
# Additional attributes that may be required by the source system.
|
173
189
|
# @type: object
|
174
190
|
field :erp_system_attributes
|
@@ -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 Accounting Data Service 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 Accounting Data Service when this record is
|
17
|
+
# added to the Accounting Data Service.
|
18
18
|
#
|
19
19
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
20
|
# @type: string
|
@@ -26,7 +26,12 @@ end
|
|
26
26
|
# @format: uuid
|
27
27
|
field :invoice_id
|
28
28
|
|
29
|
-
# The Payment
|
29
|
+
# The refund Payment that funded the payment.
|
30
|
+
# @type: string
|
31
|
+
# @format: uuid
|
32
|
+
field :refund_id
|
33
|
+
|
34
|
+
# The Payment applied to the invoice or receiving funding from a refund.
|
30
35
|
# @type: string
|
31
36
|
# @format: uuid
|
32
37
|
field :payment_id
|
@@ -102,6 +107,9 @@ end
|
|
102
107
|
# The invoice associated with this applied payment.
|
103
108
|
field :invoice
|
104
109
|
|
110
|
+
# The refund payment associated with this applied payment
|
111
|
+
field :refund
|
112
|
+
|
105
113
|
# Additional attributes that may be required by the source system.
|
106
114
|
# @type: object
|
107
115
|
field :erp_system_attributes
|
@@ -8,7 +8,7 @@ end
|
|
8
8
|
# Indicates what action to take when an existing object has been found during the sync process.
|
9
9
|
field :on_match_action
|
10
10
|
|
11
|
-
# The unique identifier of this object in the
|
11
|
+
# The unique identifier of this object in the Accounting Data Service.
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :network_id
|
@@ -40,9 +40,25 @@ end
|
|
40
40
|
# @format: uuid
|
41
41
|
field :invoice_network_id
|
42
42
|
|
43
|
-
# This field indicates which Payment
|
44
|
-
#
|
45
|
-
#
|
43
|
+
# This field indicates which Payment is being used to provide the funds for a the payment. In this field,
|
44
|
+
# identify the original primary key or unique ID of the Payment which will be supplying the funds.
|
45
|
+
#
|
46
|
+
# This information lets you track how a payment was funded. You can identify what proportion of an payment's
|
47
|
+
# balance was paid by which methods by joining this field to the Payment.
|
48
|
+
#
|
49
|
+
# This value should match the [Payment ErpKey](https://developer.lockstep.io/docs/importing-payments#erpkey)
|
50
|
+
# field on the [PaymentSyncModel](https://developer.lockstep.io/docs/importing-payments).
|
51
|
+
# @type: string
|
52
|
+
field :refund_erp_key
|
53
|
+
|
54
|
+
# The network id of the related refund Payment.
|
55
|
+
# @type: string
|
56
|
+
# @format: uuid
|
57
|
+
field :refund_network_id
|
58
|
+
|
59
|
+
# This field indicates which Payment was used to provide the funds for this payment application, or the payment that
|
60
|
+
# is being funded in the case of a refund. In this field, identify the original primary key or unique ID of the
|
61
|
+
# Payment that was used for this payment or the Payment that is being refunded.
|
46
62
|
#
|
47
63
|
# This information lets you track how an invoice was paid. You can identify what proportion of an payment's
|
48
64
|
# balance was paid by which methods by joining this field to the Payment.
|
@@ -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 Accounting Data Service 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).
|
@@ -43,7 +43,7 @@ end
|
|
43
43
|
# @type: string
|
44
44
|
field :email
|
45
45
|
|
46
|
-
# Possible statuses for a record that supports ERP
|
46
|
+
# Possible statuses for a record that supports ERP Update.
|
47
47
|
field :erp_write_status
|
48
48
|
|
49
49
|
# The name of the ErpWriteStatus for this payment
|
@@ -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 Accounting Data Service 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).
|
@@ -8,7 +8,7 @@ end
|
|
8
8
|
# Indicates what action to take when an existing object has been found during the sync process.
|
9
9
|
field :on_match_action
|
10
10
|
|
11
|
-
# The unique identifier of this object in the
|
11
|
+
# The unique identifier of this object in the Accounting Data Service.
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :network_id
|
@@ -140,6 +140,14 @@ end
|
|
140
140
|
# @type: string
|
141
141
|
field :bank_account_id
|
142
142
|
|
143
|
+
# The tax code of this payment.
|
144
|
+
# @type: string
|
145
|
+
field :tax_code
|
146
|
+
|
147
|
+
# The financial account code of this payment.
|
148
|
+
# @type: string
|
149
|
+
field :financial_account_code
|
150
|
+
|
143
151
|
|
144
152
|
|
145
153
|
end
|
@@ -91,10 +91,10 @@ end
|
|
91
91
|
# Magic link information about the user
|
92
92
|
field :magic_link
|
93
93
|
|
94
|
-
# Information allowing
|
94
|
+
# Information allowing Accounting Data Service to offer direct support to the user
|
95
95
|
field :support_access
|
96
96
|
|
97
|
-
# True if the user is being impersonated by the
|
97
|
+
# True if the user is being impersonated by the Accounting Data Service support team.
|
98
98
|
# @type: boolean
|
99
99
|
field :is_impersonated
|
100
100
|
|
@@ -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 Accounting Data Service when this record is
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :sync_request_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single Accounting Data Service 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).
|
@@ -99,6 +99,10 @@ end
|
|
99
99
|
# @format: int32
|
100
100
|
field :total_batches
|
101
101
|
|
102
|
+
# An optional trace parent for the sync request
|
103
|
+
# @type: string
|
104
|
+
field :trace_parent
|
105
|
+
|
102
106
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
103
107
|
|
104
108
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class Schema::TaxSummary < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The tax code for this invoice
|
9
|
+
# @type: string
|
10
|
+
field :tax_code
|
11
|
+
|
12
|
+
# The tax rate for this invoice
|
13
|
+
# @type: number
|
14
|
+
# @format: double
|
15
|
+
field :tax_rate
|
16
|
+
|
17
|
+
# The tax total for this invoice
|
18
|
+
# @type: number
|
19
|
+
# @format: double
|
20
|
+
field :tax_total
|
21
|
+
|
22
|
+
# The base currency tax total for this invoice
|
23
|
+
# @type: number
|
24
|
+
# @format: double
|
25
|
+
field :base_currency_tax_total
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
end
|
@@ -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 Accounting Data Service when this record is
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
#
|
11
11
|
# This record provides a link to the user's Azure AD B2C OID.
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :user_id
|
15
15
|
|
16
|
-
# The GroupKey uniquely identifies a single
|
16
|
+
# The GroupKey uniquely identifies a single Accounting Data Service 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).
|
@@ -54,10 +54,6 @@ end
|
|
54
54
|
# @format: uuid
|
55
55
|
field :modified_user_id
|
56
56
|
|
57
|
-
# The name of the user who last modified the user account
|
58
|
-
# @type: string
|
59
|
-
field :modified_user_name
|
60
|
-
|
61
57
|
# The ID of the user in Azure B2C
|
62
58
|
# @type: string
|
63
59
|
# @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 Accounting Data Service 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,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 Accounting Data Service when this record is
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :user_role_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single Accounting Data Service 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,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 Accounting Data Service 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,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 Accounting Data Service when this record is
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :webhook_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single
|
14
|
+
# The GroupKey uniquely identifies a single Accounting Data Service 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).
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
field :status_message
|
33
33
|
|
34
34
|
# An secret set during webhook creation that can be used to verify that the notification
|
35
|
-
# is coming from the
|
35
|
+
# is coming from the Accounting Data Service API.
|
36
36
|
# @type: string
|
37
37
|
field :client_secret
|
38
38
|
|
@@ -46,7 +46,7 @@ end
|
|
46
46
|
|
47
47
|
# The URL where the notification will be sent via the method set in CallbackHttpMethod.
|
48
48
|
#
|
49
|
-
# When creating a webhook, the
|
49
|
+
# When creating a webhook, the Accounting Data Service API will make a call to this url via the method
|
50
50
|
# set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
|
51
51
|
# string. To successfully create the webhook, the call must return a successful status code
|
52
52
|
# with the query parameter's value as the plain text content.
|
@@ -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 Accounting Data Service 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).
|
@@ -18,8 +18,8 @@ end
|
|
18
18
|
# @format: uuid
|
19
19
|
field :webhook_id
|
20
20
|
|
21
|
-
# The unique ID of this record, automatically assigned by
|
22
|
-
# added to the
|
21
|
+
# The unique ID of this record, automatically assigned by Accounting Data Service when this record is
|
22
|
+
# added to the Accounting Data Service.
|
23
23
|
# @type: string
|
24
24
|
# @format: uuid
|
25
25
|
field :webhook_history_id
|
@@ -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 Accounting Data Service when this record is
|
9
|
+
# added to the Accounting Data Service.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :webhook_rule_id
|
@@ -16,7 +16,7 @@ end
|
|
16
16
|
# @format: uuid
|
17
17
|
field :webhook_id
|
18
18
|
|
19
|
-
# The GroupKey uniquely identifies a single
|
19
|
+
# The GroupKey uniquely identifies a single Accounting Data Service 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).
|
@@ -28,7 +28,7 @@ end
|
|
28
28
|
# For example, a Webhook setup for when an Invoice is Created would have a `TableKey` value of
|
29
29
|
# `Invoice` and an `EventType` value of `I` (Insert).
|
30
30
|
#
|
31
|
-
# The `TableKey` value contains the name of the table within the
|
31
|
+
# The `TableKey` value contains the name of the table within the Accounting Data Service to which this metadata
|
32
32
|
# is connected.
|
33
33
|
#
|
34
34
|
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|