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,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).
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
field :group_key
|
15
15
|
|
16
16
|
# The unique ID of this record, automatically assigned by ADS when this record is
|
17
|
-
# added to the
|
17
|
+
# added to the Accounting Data Service.
|
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 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).
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
field :group_key
|
15
15
|
|
16
16
|
# The unique ID of this record, automatically assigned by ADS when this record is
|
17
|
-
# added to the
|
17
|
+
# added to the Accounting Data Service.
|
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 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).
|
@@ -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 Accounting Data Service 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).
|
@@ -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 :financial_account_balance_history_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).
|
@@ -14,9 +14,7 @@ end
|
|
14
14
|
# identifying number is in the originating system. Search for a unique, non-changing number within the
|
15
15
|
# originating financial system for this record.
|
16
16
|
# Example: If you store your company records in a database, whatever the primary key for the company table is
|
17
|
-
# in the database should be the ErpKey.
|
18
|
-
# Example: If you use a financial system such as QuickBooks or Xero, look for the primary ID number of the
|
19
|
-
# company record within that financial system.
|
17
|
+
# in the database should be the ErpKey.
|
20
18
|
# @type: string
|
21
19
|
field :financial_account_erp_key
|
22
20
|
|
@@ -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 Accounting Data Service 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).
|
@@ -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 :financial_year_setting_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).
|
@@ -63,6 +63,11 @@ end
|
|
63
63
|
# @type: string
|
64
64
|
field :country_code
|
65
65
|
|
66
|
+
# Workflow status when ERP sync is started for e-Invoices
|
67
|
+
# @type: string
|
68
|
+
# @format: uuid
|
69
|
+
field :e_invoice_sync_workflow_status
|
70
|
+
|
66
71
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
67
72
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
68
73
|
|
@@ -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).
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
field :group_key
|
15
15
|
|
16
16
|
# The unique ID of this record, automatically assigned by ADS when this record is
|
17
|
-
# added to the
|
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
|
@@ -31,6 +31,10 @@ end
|
|
31
31
|
# @format: uuid
|
32
32
|
field :customer_id
|
33
33
|
|
34
|
+
# The name of the customer associated with this invoice.
|
35
|
+
# @type: string
|
36
|
+
field :customer_name
|
37
|
+
|
34
38
|
# The unique ID of this record as it was known in its originating financial system.
|
35
39
|
#
|
36
40
|
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
@@ -87,6 +91,12 @@ end
|
|
87
91
|
# @type: string
|
88
92
|
field :workflow_status_notes
|
89
93
|
|
94
|
+
# The reason code for the current workflow status of this invoice.
|
95
|
+
#
|
96
|
+
# Empty if workflow status does not require a reason code.
|
97
|
+
# @type: string
|
98
|
+
field :workflow_status_reason_code
|
99
|
+
|
90
100
|
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
91
101
|
# financial system and does not follow a specified format.
|
92
102
|
# @type: string
|
@@ -120,6 +130,21 @@ end
|
|
120
130
|
# @format: double
|
121
131
|
field :outstanding_balance_amount
|
122
132
|
|
133
|
+
# The shipping amount of this invoice in it's tendered currency.
|
134
|
+
# @type: number
|
135
|
+
# @format: double
|
136
|
+
field :shipping_amount
|
137
|
+
|
138
|
+
# The total value of this invoice with deductions, excluding taxes.
|
139
|
+
# @type: number
|
140
|
+
# @format: double
|
141
|
+
field :net_amount
|
142
|
+
|
143
|
+
# The shipping amount of this invoice in it's tendered currency.
|
144
|
+
# @type: number
|
145
|
+
# @format: double
|
146
|
+
field :base_currency_shipping_amount
|
147
|
+
|
123
148
|
# The reporting date for this invoice.
|
124
149
|
# @type: string
|
125
150
|
# @format: date
|
@@ -146,11 +171,21 @@ end
|
|
146
171
|
# @format: date
|
147
172
|
field :payment_due_date
|
148
173
|
|
174
|
+
# The date when payment is planned in Connect.
|
175
|
+
# @type: string
|
176
|
+
# @format: date
|
177
|
+
field :planned_payment_date
|
178
|
+
|
149
179
|
# The date and time when this record was imported from the user's ERP or accounting system.
|
150
180
|
# @type: string
|
151
181
|
# @format: date-time
|
152
182
|
field :imported_date, Types::Params::DateTime
|
153
183
|
|
184
|
+
# The date when the tax becomes applicable; used for tax reporting.
|
185
|
+
# @type: string
|
186
|
+
# @format: date
|
187
|
+
field :tax_point_date
|
188
|
+
|
154
189
|
# The ID number of the invoice's origination address
|
155
190
|
# @type: string
|
156
191
|
# @format: uuid
|
@@ -243,6 +278,11 @@ end
|
|
243
278
|
# @format: double
|
244
279
|
field :base_currency_outstanding_balance_amount
|
245
280
|
|
281
|
+
# The total value of this invoice with deductions, excluding taxes and in the invoice's base currency.
|
282
|
+
# @type: number
|
283
|
+
# @format: double
|
284
|
+
field :base_currency_net_amount
|
285
|
+
|
246
286
|
# Possible statuses for a record that supports ERP Update.
|
247
287
|
field :erp_update_status
|
248
288
|
|
@@ -278,6 +318,24 @@ end
|
|
278
318
|
# @type: object
|
279
319
|
field :erp_system_attributes
|
280
320
|
|
321
|
+
# The source of the invoice (e.g ERP, Peppol, Email, Gov System)
|
322
|
+
# @type: string
|
323
|
+
field :document_source
|
324
|
+
|
325
|
+
# The jurisdiction or country from which the invoice originates (e.g., US, AU)
|
326
|
+
# @type: string
|
327
|
+
field :jurisdiction
|
328
|
+
|
329
|
+
# The ID of the sync task that created this Invoice.
|
330
|
+
# @type: string
|
331
|
+
# @format: uuid
|
332
|
+
field :created_sync_id
|
333
|
+
|
334
|
+
# The ID of the sync task that modified this Invoice.
|
335
|
+
# @type: string
|
336
|
+
# @format: uuid
|
337
|
+
field :modified_sync_id
|
338
|
+
|
281
339
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
282
340
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
283
341
|
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
@@ -294,5 +352,6 @@ end
|
|
294
352
|
has_many :credit_memos, {:class_name=>"Schema::CreditMemoInvoice", :included=>true}
|
295
353
|
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
296
354
|
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
355
|
+
has_many :tax_summary, {:class_name=>"Schema::TaxSummary", :included=>true}
|
297
356
|
|
298
357
|
end
|
@@ -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 :invoice_address_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).
|
@@ -6,14 +6,14 @@ 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
|
#
|
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 :invoice_line_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,6 +54,10 @@ end
|
|
54
54
|
# @type: string
|
55
55
|
field :description
|
56
56
|
|
57
|
+
# The location to where specific items from an invoice will go.
|
58
|
+
# @type: string
|
59
|
+
field :location
|
60
|
+
|
57
61
|
# For lines measured in a unit other than "quantity", this code indicates the measurement system for the quantity field.
|
58
62
|
# If the line is measured in quantity, this field is null.
|
59
63
|
# @type: string
|
@@ -84,6 +88,15 @@ end
|
|
84
88
|
# @format: double
|
85
89
|
field :total_amount
|
86
90
|
|
91
|
+
# The tax code used for taxation on this line.
|
92
|
+
# @type: string
|
93
|
+
field :tax_code
|
94
|
+
|
95
|
+
# The taxation rate for this line.
|
96
|
+
# @type: number
|
97
|
+
# @format: double
|
98
|
+
field :tax_rate
|
99
|
+
|
87
100
|
# The amount of sales tax for this line in the transaction's currency.
|
88
101
|
# @type: number
|
89
102
|
# @format: double
|
@@ -94,31 +107,30 @@ end
|
|
94
107
|
# @format: double
|
95
108
|
field :base_currency_sales_tax_amount
|
96
109
|
|
110
|
+
# The total value of this invoice line with deductions, excluding taxes.
|
111
|
+
# @type: number
|
112
|
+
# @format: double
|
113
|
+
field :net_amount
|
114
|
+
|
115
|
+
# The total value of this invoice line with deductions, excluding taxes and in the invoice's base currency.
|
116
|
+
# @type: number
|
117
|
+
# @format: double
|
118
|
+
field :base_currency_net_amount
|
119
|
+
|
97
120
|
# If this line is tax exempt, this code indicates the reason for the exemption.
|
98
121
|
# @type: string
|
99
122
|
field :exemption_code
|
100
123
|
|
124
|
+
# Unique identifier for tax purposes, used for reference, validation, or compliance.
|
125
|
+
# @type: string
|
126
|
+
field :tax_uid
|
127
|
+
|
101
128
|
# If null, the products specified on this line were delivered on the same date as all other lines.
|
102
129
|
# If not null, this line was delivered or finalized on a different date than the overall invoice.
|
103
130
|
# @type: string
|
104
131
|
# @format: date
|
105
132
|
field :reporting_date
|
106
133
|
|
107
|
-
# An optional ID number for the line's origin address.
|
108
|
-
# @type: string
|
109
|
-
# @format: uuid
|
110
|
-
field :override_origin_address_id
|
111
|
-
|
112
|
-
# An optional ID number for the line's bill to address.
|
113
|
-
# @type: string
|
114
|
-
# @format: uuid
|
115
|
-
field :override_bill_to_address_id
|
116
|
-
|
117
|
-
# An optional ID number for the line's ship to address.
|
118
|
-
# @type: string
|
119
|
-
# @format: uuid
|
120
|
-
field :override_ship_to_address_id
|
121
|
-
|
122
134
|
# The date on which this line was created.
|
123
135
|
# @type: string
|
124
136
|
# @format: date-time
|
@@ -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
|
@@ -52,6 +52,10 @@ end
|
|
52
52
|
# @type: string
|
53
53
|
field :description
|
54
54
|
|
55
|
+
# The location to where specific items from an invoice will go.
|
56
|
+
# @type: string
|
57
|
+
field :location
|
58
|
+
|
55
59
|
# For lines measured in a unit other than "quantity", this code indicates the measurement system for the quantity field.
|
56
60
|
# If the line is measured in quantity, this field is null.
|
57
61
|
# @type: string
|
@@ -82,6 +86,15 @@ end
|
|
82
86
|
# @format: double
|
83
87
|
field :total_amount
|
84
88
|
|
89
|
+
# The tax code used for taxation on this line.
|
90
|
+
# @type: string
|
91
|
+
field :tax_code
|
92
|
+
|
93
|
+
# The taxation rate for this line.
|
94
|
+
# @type: number
|
95
|
+
# @format: double
|
96
|
+
field :tax_rate
|
97
|
+
|
85
98
|
# The amount of sales tax for this line in the transaction's currency.
|
86
99
|
# @type: number
|
87
100
|
# @format: double
|
@@ -92,129 +105,29 @@ end
|
|
92
105
|
# @format: double
|
93
106
|
field :base_currency_sales_tax_amount
|
94
107
|
|
95
|
-
#
|
96
|
-
# @type: string
|
97
|
-
field :exemption_code
|
98
|
-
|
99
|
-
# If null, the products specified on this line were delivered on the same date as all other lines.
|
100
|
-
# If not null, this line was delivered or finalized on a different date than the overall invoice.
|
101
|
-
# @type: string
|
102
|
-
# @format: date-time
|
103
|
-
field :reporting_date, Types::Params::DateTime
|
104
|
-
|
105
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
106
|
-
# @type: string
|
107
|
-
field :origin_address_line1
|
108
|
-
|
109
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
110
|
-
# @type: string
|
111
|
-
field :origin_address_line2
|
112
|
-
|
113
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
114
|
-
# @type: string
|
115
|
-
field :origin_address_line3
|
116
|
-
|
117
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
118
|
-
# @type: string
|
119
|
-
field :origin_address_city
|
120
|
-
|
121
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
122
|
-
# @type: string
|
123
|
-
field :origin_address_region
|
124
|
-
|
125
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
126
|
-
# @type: string
|
127
|
-
field :origin_address_postal_code
|
128
|
-
|
129
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
130
|
-
# @type: string
|
131
|
-
field :origin_address_country
|
132
|
-
|
133
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
108
|
+
# The total value of this invoice line with deductions, excluding taxes.
|
134
109
|
# @type: number
|
135
|
-
# @format:
|
136
|
-
field :
|
137
|
-
|
138
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
139
|
-
# @type: number
|
140
|
-
# @format: float
|
141
|
-
field :origin_address_longitude
|
142
|
-
|
143
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
144
|
-
# @type: string
|
145
|
-
field :bill_to_address_line1
|
146
|
-
|
147
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
148
|
-
# @type: string
|
149
|
-
field :bill_to_address_line2
|
150
|
-
|
151
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
152
|
-
# @type: string
|
153
|
-
field :bill_to_address_line3
|
154
|
-
|
155
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
156
|
-
# @type: string
|
157
|
-
field :bill_to_address_city
|
158
|
-
|
159
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
160
|
-
# @type: string
|
161
|
-
field :bill_to_address_region
|
162
|
-
|
163
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
164
|
-
# @type: string
|
165
|
-
field :bill_to_address_postal_code
|
166
|
-
|
167
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
168
|
-
# @type: string
|
169
|
-
field :bill_to_address_country
|
170
|
-
|
171
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
172
|
-
# @type: number
|
173
|
-
# @format: float
|
174
|
-
field :bill_to_address_latitude
|
110
|
+
# @format: double
|
111
|
+
field :net_amount
|
175
112
|
|
176
|
-
#
|
113
|
+
# The total value of this invoice line with deductions, excluding taxes and in the invoice's base currency.
|
177
114
|
# @type: number
|
178
|
-
# @format:
|
179
|
-
field :
|
180
|
-
|
181
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
182
|
-
# @type: string
|
183
|
-
field :ship_to_address_line1
|
184
|
-
|
185
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
186
|
-
# @type: string
|
187
|
-
field :ship_to_address_line2
|
188
|
-
|
189
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
190
|
-
# @type: string
|
191
|
-
field :ship_to_address_line3
|
192
|
-
|
193
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
194
|
-
# @type: string
|
195
|
-
field :ship_to_address_city
|
115
|
+
# @format: double
|
116
|
+
field :base_currency_net_amount
|
196
117
|
|
197
|
-
#
|
118
|
+
# If this line is tax exempt, this code indicates the reason for the exemption.
|
198
119
|
# @type: string
|
199
|
-
field :
|
120
|
+
field :exemption_code
|
200
121
|
|
201
|
-
#
|
122
|
+
# Unique identifier for tax purposes, used for reference, validation, or compliance.
|
202
123
|
# @type: string
|
203
|
-
field :
|
124
|
+
field :tax_uid
|
204
125
|
|
205
|
-
#
|
126
|
+
# If null, the products specified on this line were delivered on the same date as all other lines.
|
127
|
+
# If not null, this line was delivered or finalized on a different date than the overall invoice.
|
206
128
|
# @type: string
|
207
|
-
|
208
|
-
|
209
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
210
|
-
# @type: number
|
211
|
-
# @format: float
|
212
|
-
field :ship_to_address_latitude
|
213
|
-
|
214
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
215
|
-
# @type: number
|
216
|
-
# @format: float
|
217
|
-
field :ship_to_address_longitude
|
129
|
+
# @format: date-time
|
130
|
+
field :reporting_date, Types::Params::DateTime
|
218
131
|
|
219
132
|
# If known, the date when this record was created according to the originating financial system
|
220
133
|
# in which this record is maintained. If the originating financial system does not maintain a
|
@@ -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).
|
@@ -81,6 +81,12 @@ end
|
|
81
81
|
# @format: double
|
82
82
|
field :base_currency_unapplied_amount
|
83
83
|
|
84
|
+
# Possible statuses for a record that supports ERP Update.
|
85
|
+
field :erp_update_status
|
86
|
+
|
87
|
+
# Possible actions for a record that supports ERP Update.
|
88
|
+
field :erp_update_action
|
89
|
+
|
84
90
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
85
91
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
86
92
|
|
@@ -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
|
@@ -127,6 +127,16 @@ end
|
|
127
127
|
# @format: double
|
128
128
|
field :outstanding_balance_amount
|
129
129
|
|
130
|
+
# The shipping amount of this invoice in it's tendered currency.
|
131
|
+
# @type: number
|
132
|
+
# @format: double
|
133
|
+
field :shipping_amount
|
134
|
+
|
135
|
+
# The total value of this invoice with deductions, excluding taxes.
|
136
|
+
# @type: number
|
137
|
+
# @format: double
|
138
|
+
field :net_amount
|
139
|
+
|
130
140
|
# The reporting date for this invoice.
|
131
141
|
# @type: string
|
132
142
|
# @format: date-time
|
@@ -153,11 +163,20 @@ end
|
|
153
163
|
# @format: date-time
|
154
164
|
field :payment_due_date, Types::Params::DateTime
|
155
165
|
|
166
|
+
# The date when payment is planned in Connect.
|
167
|
+
# @type: string
|
168
|
+
field :planned_payment_date
|
169
|
+
|
156
170
|
# The date and time when this record was imported from the user's ERP or accounting system.
|
157
171
|
# @type: string
|
158
172
|
# @format: date-time
|
159
173
|
field :imported_date, Types::Params::DateTime
|
160
174
|
|
175
|
+
# The date when the tax becomes applicable; used for tax reporting.
|
176
|
+
# @type: string
|
177
|
+
# @format: date-time
|
178
|
+
field :tax_point_date, Types::Params::DateTime
|
179
|
+
|
161
180
|
# The origination address for this invoice
|
162
181
|
# @type: string
|
163
182
|
field :origin_address_line1
|
@@ -331,6 +350,16 @@ end
|
|
331
350
|
# @format: double
|
332
351
|
field :base_currency_outstanding_balance_amount
|
333
352
|
|
353
|
+
# The shipping amount of this invoice in it's tendered currency.
|
354
|
+
# @type: number
|
355
|
+
# @format: double
|
356
|
+
field :base_currency_shipping_amount
|
357
|
+
|
358
|
+
# The total value of this invoice with deductions, excluding taxes and in the invoice's base currency.
|
359
|
+
# @type: number
|
360
|
+
# @format: double
|
361
|
+
field :base_currency_net_amount
|
362
|
+
|
334
363
|
# True if the invoice is an E-Invoice
|
335
364
|
# @type: boolean
|
336
365
|
field :is_e_invoice
|
@@ -348,10 +377,28 @@ end
|
|
348
377
|
# @type: string
|
349
378
|
field :workflow_status_notes
|
350
379
|
|
380
|
+
# The reason code for the current workflow status of this invoice.
|
381
|
+
#
|
382
|
+
# Empty if workflow status does not require a reason code.
|
383
|
+
# @type: string
|
384
|
+
field :workflow_status_reason_code
|
385
|
+
|
351
386
|
# Workflow status code dictated by government standards
|
352
387
|
# @type: string
|
353
388
|
field :workflow_status_code
|
354
389
|
|
390
|
+
# A JSON string representing the tax information for this invoice
|
391
|
+
# @type: string
|
392
|
+
field :tax_summary
|
393
|
+
|
394
|
+
# The source of the invoice (e.g ERP, Peppol, Email, Gov System)
|
395
|
+
# @type: string
|
396
|
+
field :document_source
|
397
|
+
|
398
|
+
# The jurisdiction or country from which the invoice originates (e.g., US, AU)
|
399
|
+
# @type: string
|
400
|
+
field :jurisdiction
|
401
|
+
|
355
402
|
|
356
403
|
|
357
404
|
end
|