nordlet 0.5.3 → 0.5.5
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/lib/nordlet/account/client.rb +125 -0
- data/lib/nordlet/agreements/client.rb +49 -0
- data/lib/nordlet/assets/client.rb +42 -0
- data/lib/nordlet/audit/client.rb +4 -0
- data/lib/nordlet/bank/client.rb +218 -0
- data/lib/nordlet/billing/client.rb +45 -0
- data/lib/nordlet/calendar/client.rb +18 -0
- data/lib/nordlet/capture/client.rb +33 -0
- data/lib/nordlet/cash/client.rb +36 -0
- data/lib/nordlet/catalog/client.rb +77 -0
- data/lib/nordlet/consolidation/client.rb +29 -0
- data/lib/nordlet/declarations/client.rb +209 -0
- data/lib/nordlet/declarations/types/lt_gpm312compute_declarations_response_rows_item.rb +2 -0
- data/lib/nordlet/document_series/client.rb +20 -0
- data/lib/nordlet/ecommerce/client.rb +41 -0
- data/lib/nordlet/files/client.rb +10 -0
- data/lib/nordlet/fleet/client.rb +26 -0
- data/lib/nordlet/hr/client.rb +93 -0
- data/lib/nordlet/inventory/client.rb +91 -0
- data/lib/nordlet/leads/client.rb +49 -0
- data/lib/nordlet/ledger/client.rb +78 -3
- data/lib/nordlet/officers/client.rb +8 -0
- data/lib/nordlet/operation_types/client.rb +20 -0
- data/lib/nordlet/partners/client.rb +126 -0
- data/lib/nordlet/payroll/client.rb +94 -0
- data/lib/nordlet/payroll/types/calc_payroll_request.rb +2 -0
- data/lib/nordlet/payroll/types/calc_payroll_request_payments_item.rb +15 -0
- data/lib/nordlet/payroll/types/calc_payroll_response_components_item.rb +2 -0
- data/lib/nordlet/payroll/types/lines_attendance_payroll_response_additions_item.rb +4 -0
- data/lib/nordlet/payroll/types/lines_attendance_payroll_response_components_item.rb +2 -0
- data/lib/nordlet/payroll/types/payment_types_list_payroll_request.rb +9 -0
- data/lib/nordlet/payroll/types/payment_types_list_payroll_response.rb +15 -0
- data/lib/nordlet/payroll/types/payment_types_list_payroll_response_rows_item.rb +15 -0
- data/lib/nordlet/payroll/types/runs_approve_payroll_response_component_totals_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_request_lines_item_additions_item.rb +4 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_response_component_totals_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_additions_item.rb +4 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_components_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_get_payroll_response_component_totals_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_additions_item.rb +4 -0
- data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_components_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_component_totals_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_reverse_payroll_response_component_totals_item.rb +2 -0
- data/lib/nordlet/peppol/client.rb +7 -0
- data/lib/nordlet/platform_sellers/client.rb +13 -0
- data/lib/nordlet/pos/client.rb +46 -0
- data/lib/nordlet/production/client.rb +78 -0
- data/lib/nordlet/projects/client.rb +35 -0
- data/lib/nordlet/public/client.rb +9 -0
- data/lib/nordlet/purchases/client.rb +102 -0
- data/lib/nordlet/reference/client.rb +74 -0
- data/lib/nordlet/reports/client.rb +108 -0
- data/lib/nordlet/sales/client.rb +408 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +15 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request.rb +2 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +15 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request.rb +29 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_response.rb +51 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_response_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_response_status.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_delete_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/recurring_invoices_delete_sales_response.rb +11 -0
- data/lib/nordlet/sales/types/recurring_invoices_generate_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response.rb +21 -0
- data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice.rb +51 -0
- data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice_status.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_get_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/recurring_invoices_get_sales_response.rb +51 -0
- data/lib/nordlet/sales/types/recurring_invoices_get_sales_response_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_get_sales_response_status.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request.rb +19 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_op.rb +18 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_value.rb +19 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_sort_item.rb +13 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_response.rb +21 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item.rb +51 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item_status.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_run_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/recurring_invoices_run_sales_response.rb +13 -0
- data/lib/nordlet/sales/types/recurring_invoices_run_sales_response_errors_item.rb +13 -0
- data/lib/nordlet/sales/types/recurring_invoices_run_sales_response_generated_item.rb +19 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request.rb +35 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_status.rb +14 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_response.rb +51 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_response_frequency.rb +16 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_response_status.rb +15 -0
- data/lib/nordlet/transport/client.rb +20 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet/webhooks/client.rb +20 -0
- data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +1 -0
- data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +1 -0
- data/lib/nordlet.rb +45 -0
- data/reference.md +9789 -912
- metadata +47 -2
|
@@ -10,6 +10,12 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Lists, in due-date order, the filing deadlines Nordlet derives for the company from its country and profile
|
|
14
|
+
# together with the company's own events, between `from` and `to` (default 45 days back to 120 days ahead of the
|
|
15
|
+
# company's current date). Each deadline carries its submissions, whether it can be filed with `calendar/submit`,
|
|
16
|
+
# amended, or built with `calendar/download`, and whether its automation is on; `includeDone: false` leaves out
|
|
17
|
+
# the rows that are completed, submitted or accepted.
|
|
18
|
+
#
|
|
13
19
|
# @param request_options [Hash]
|
|
14
20
|
# @param params [Nordlet::Calendar::Types::ListCalendarRequest]
|
|
15
21
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +48,9 @@ module Nordlet
|
|
|
42
48
|
end
|
|
43
49
|
end
|
|
44
50
|
|
|
51
|
+
# Reads one calendar row by `key`: the id of a company event, or `ruleKey:period` for a filing deadline with its
|
|
52
|
+
# submissions.
|
|
53
|
+
#
|
|
45
54
|
# @param request_options [Hash]
|
|
46
55
|
# @param params [Nordlet::Calendar::Types::GetCalendarRequest]
|
|
47
56
|
# @option request_options [String] :base_url
|
|
@@ -144,6 +153,8 @@ module Nordlet
|
|
|
144
153
|
end
|
|
145
154
|
end
|
|
146
155
|
|
|
156
|
+
# Creates a company event (kind `custom`) with a title, a due date, notes and a done flag.
|
|
157
|
+
#
|
|
147
158
|
# @param request_options [Hash]
|
|
148
159
|
# @param params [Nordlet::Calendar::Types::CreateCalendarRequest]
|
|
149
160
|
# @option request_options [String] :base_url
|
|
@@ -176,6 +187,10 @@ module Nordlet
|
|
|
176
187
|
end
|
|
177
188
|
end
|
|
178
189
|
|
|
190
|
+
# Changes a calendar row by `key`. A company event takes a new title, due date, notes or done flag; a filing
|
|
191
|
+
# deadline (`ruleKey:period`) takes only notes and done, keeps its own title and date, and gets a stored row the
|
|
192
|
+
# first time it is annotated.
|
|
193
|
+
#
|
|
179
194
|
# @param request_options [Hash]
|
|
180
195
|
# @param params [Nordlet::Calendar::Types::UpdateCalendarRequest]
|
|
181
196
|
# @option request_options [String] :base_url
|
|
@@ -208,6 +223,9 @@ module Nordlet
|
|
|
208
223
|
end
|
|
209
224
|
end
|
|
210
225
|
|
|
226
|
+
# Deletes a company event by its id, or the stored notes and done mark of a filing deadline by `ruleKey:period`;
|
|
227
|
+
# the deadline itself still comes from the rules.
|
|
228
|
+
#
|
|
211
229
|
# @param request_options [Hash]
|
|
212
230
|
# @param params [Nordlet::Calendar::Types::DeleteCalendarRequest]
|
|
213
231
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,10 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Return the company's document capture settings: whether intake by e-mail is enabled, whether e-mailed documents
|
|
14
|
+
# are read on arrival, the company's intake e-mail address and whether a reading provider is configured. The
|
|
15
|
+
# intake token behind the address is created on the first call.
|
|
16
|
+
#
|
|
13
17
|
# @param request_options [Hash]
|
|
14
18
|
# @param params [Nordlet::Capture::Types::SettingsGetCaptureRequest]
|
|
15
19
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +46,9 @@ module Nordlet
|
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
|
|
49
|
+
# Switch `intakeEnabled` (documents sent to the intake address are accepted) and `captureAutoExtract` (they are
|
|
50
|
+
# read on arrival) on or off; at least one field is required.
|
|
51
|
+
#
|
|
45
52
|
# @param request_options [Hash]
|
|
46
53
|
# @param params [Nordlet::Capture::Types::SettingsUpdateCaptureRequest]
|
|
47
54
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +81,9 @@ module Nordlet
|
|
|
74
81
|
end
|
|
75
82
|
end
|
|
76
83
|
|
|
84
|
+
# Replace the company's intake token, so the previous intake e-mail address stops working and the settings come
|
|
85
|
+
# back with the new one.
|
|
86
|
+
#
|
|
77
87
|
# @param request_options [Hash]
|
|
78
88
|
# @param params [Nordlet::Capture::Types::SettingsRegenerateIntakeCaptureRequest]
|
|
79
89
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +116,12 @@ module Nordlet
|
|
|
106
116
|
end
|
|
107
117
|
end
|
|
108
118
|
|
|
119
|
+
# Endpoint for the inbound e-mail provider (Postmark field names or the generic `to`, `from`, `subject` and
|
|
120
|
+
# `attachments` form). It needs the `x-inbound-secret` header and finds the company by the `intake+<token>@`
|
|
121
|
+
# recipient address (404 when unknown, 403 when intake is disabled). Every PDF, image, Word or PowerPoint
|
|
122
|
+
# attachment up to 10 MB becomes a `pending` capture (`accepted`), anything else is `skipped`; when the company
|
|
123
|
+
# has automatic reading on, is not on trial and a reading provider is configured, each capture is read at once.
|
|
124
|
+
#
|
|
109
125
|
# @param request_options [Hash]
|
|
110
126
|
# @param params [Nordlet::Capture::Types::InboundEmailCaptureRequest]
|
|
111
127
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +154,12 @@ module Nordlet
|
|
|
138
154
|
end
|
|
139
155
|
end
|
|
140
156
|
|
|
157
|
+
# Upload a supplier document (PDF, image, Word or PowerPoint, up to 10 MB; 422 for any other type) as a capture
|
|
158
|
+
# and read it at once. The result holds the extracted supplier, dates, totals and lines, the partner matched by
|
|
159
|
+
# VAT code, then partner code, then name, the raw text, and `status` `extracted` or `failed` with `error`. Needs a
|
|
160
|
+
# configured reading provider, is refused with 402 for a company on trial until its first top-up, and counts every
|
|
161
|
+
# page read as `ocr_page` usage. The draft is reviewed and saved with `capture/documents/confirm`.
|
|
162
|
+
#
|
|
141
163
|
# @param request_options [Hash]
|
|
142
164
|
# @param params [Nordlet::Capture::Types::DocumentsUploadCaptureRequest]
|
|
143
165
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +192,10 @@ module Nordlet
|
|
|
170
192
|
end
|
|
171
193
|
end
|
|
172
194
|
|
|
195
|
+
# Read a stored capture again and replace its draft (supplier, totals, lines, matched partner). A capture received
|
|
196
|
+
# over Peppol is parsed from its document again without a reading provider; any other needs the provider and, for
|
|
197
|
+
# a company on trial, the first top-up (402). Refused with 409 once the capture is linked to a purchase invoice.
|
|
198
|
+
#
|
|
173
199
|
# @param request_options [Hash]
|
|
174
200
|
# @param params [Nordlet::Capture::Types::DocumentsExtractCaptureRequest]
|
|
175
201
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +228,8 @@ module Nordlet
|
|
|
202
228
|
end
|
|
203
229
|
end
|
|
204
230
|
|
|
231
|
+
# Return one capture with its extraction and raw text.
|
|
232
|
+
#
|
|
205
233
|
# @param request_options [Hash]
|
|
206
234
|
# @param params [Nordlet::Capture::Types::DocumentsGetCaptureRequest]
|
|
207
235
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +262,9 @@ module Nordlet
|
|
|
234
262
|
end
|
|
235
263
|
end
|
|
236
264
|
|
|
265
|
+
# List captures without raw text. Filterable by `status`, `matchedPartnerId` and `purchaseInvoiceId`; sortable by
|
|
266
|
+
# `createdAt` and `updatedAt`.
|
|
267
|
+
#
|
|
237
268
|
# @param request_options [Hash]
|
|
238
269
|
# @param params [Nordlet::Capture::Types::DocumentsListCaptureRequest]
|
|
239
270
|
# @option request_options [String] :base_url
|
|
@@ -266,6 +297,8 @@ module Nordlet
|
|
|
266
297
|
end
|
|
267
298
|
end
|
|
268
299
|
|
|
300
|
+
# Delete a capture and its stored file (409 once it is linked to a purchase invoice).
|
|
301
|
+
#
|
|
269
302
|
# @param request_options [Hash]
|
|
270
303
|
# @param params [Nordlet::Capture::Types::DocumentsDeleteCaptureRequest]
|
|
271
304
|
# @option request_options [String] :base_url
|
data/lib/nordlet/cash/client.rb
CHANGED
|
@@ -10,6 +10,18 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Creates a numbered cash receipt (series `KPO`) or cash disbursement (`KIO`) and posts it in the base currency
|
|
14
|
+
# between the cash account (`cashAccountCode`, default the cash account of the company's chart) and
|
|
15
|
+
# `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. Linked to an invoice -
|
|
16
|
+
# `saleInvoiceId` for a receipt against an issued invoice or advance invoice or a disbursement against an issued
|
|
17
|
+
# credit note, `purchaseInvoiceId` for a disbursement against a registered purchase invoice - the counter account
|
|
18
|
+
# is the receivable or payable account of the posting rules, the invoice's paid amount and payment status
|
|
19
|
+
# (`partial` or `paid`) are updated, and `sale_invoice.paid` or `purchase_invoice.paid` is emitted when the
|
|
20
|
+
# invoice becomes fully paid. Answers 422 when both invoice ids are given, a receipt names a purchase invoice,
|
|
21
|
+
# `counterAccountCode` differs from the invoice's account, or the invoice is in another currency or belongs to
|
|
22
|
+
# another partner; 409 when `amount` exceeds the invoice's remaining amount or the accounting period of `date` is
|
|
23
|
+
# locked.
|
|
24
|
+
#
|
|
13
25
|
# @param request_options [Hash]
|
|
14
26
|
# @param params [Nordlet::Cash::Types::OrdersCreateCashRequest]
|
|
15
27
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +54,8 @@ module Nordlet
|
|
|
42
54
|
end
|
|
43
55
|
end
|
|
44
56
|
|
|
57
|
+
# Returns one cash order.
|
|
58
|
+
#
|
|
45
59
|
# @param request_options [Hash]
|
|
46
60
|
# @param params [Nordlet::Cash::Types::OrdersGetCashRequest]
|
|
47
61
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +88,9 @@ module Nordlet
|
|
|
74
88
|
end
|
|
75
89
|
end
|
|
76
90
|
|
|
91
|
+
# Lists cash orders. Filterable by `type`, `date`, `partnerId`, `employeeId`, `fullNumber` and `amount`; sortable
|
|
92
|
+
# by `date`, `fullNumber`, `createdAt` and `amount`.
|
|
93
|
+
#
|
|
77
94
|
# @param request_options [Hash]
|
|
78
95
|
# @param params [Nordlet::Cash::Types::OrdersListCashRequest]
|
|
79
96
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +123,9 @@ module Nordlet
|
|
|
106
123
|
end
|
|
107
124
|
end
|
|
108
125
|
|
|
126
|
+
# Returns the balance of a cash account (default: the cash account of the company's chart) from the posted journal
|
|
127
|
+
# entries, up to and including `asOf` when given.
|
|
128
|
+
#
|
|
109
129
|
# @param request_options [Hash]
|
|
110
130
|
# @param params [Nordlet::Cash::Types::BalanceCashRequest]
|
|
111
131
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +158,13 @@ module Nordlet
|
|
|
138
158
|
end
|
|
139
159
|
end
|
|
140
160
|
|
|
161
|
+
# Creates a numbered expense report (series `AA`) for the employee and posts it: each line's net amount is debited
|
|
162
|
+
# to its `accountCode` and the VAT total to the input VAT account of the posting rules
|
|
163
|
+
# (`purchases.vatReceivable`), or the gross amount to the line account when the company is not a VAT payer, and
|
|
164
|
+
# the total is credited to the cash advances account (`cash.advances`), which settles the employee's advance
|
|
165
|
+
# balance shown by `cash/advance-holders/balances`. Answers 422 when the total is zero or a line account is
|
|
166
|
+
# missing from the chart or not postable, and 409 when the accounting period of `date` is locked.
|
|
167
|
+
#
|
|
141
168
|
# @param request_options [Hash]
|
|
142
169
|
# @param params [Nordlet::Cash::Types::ExpenseReportsCreateCashRequest]
|
|
143
170
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +197,8 @@ module Nordlet
|
|
|
170
197
|
end
|
|
171
198
|
end
|
|
172
199
|
|
|
200
|
+
# Returns one expense report with its lines.
|
|
201
|
+
#
|
|
173
202
|
# @param request_options [Hash]
|
|
174
203
|
# @param params [Nordlet::Cash::Types::ExpenseReportsGetCashRequest]
|
|
175
204
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +231,9 @@ module Nordlet
|
|
|
202
231
|
end
|
|
203
232
|
end
|
|
204
233
|
|
|
234
|
+
# Lists expense reports without their lines. Filterable by `employeeId` and `date`; sortable by `date` and
|
|
235
|
+
# `number`.
|
|
236
|
+
#
|
|
205
237
|
# @param request_options [Hash]
|
|
206
238
|
# @param params [Nordlet::Cash::Types::ExpenseReportsListCashRequest]
|
|
207
239
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +266,10 @@ module Nordlet
|
|
|
234
266
|
end
|
|
235
267
|
end
|
|
236
268
|
|
|
269
|
+
# Returns, per employee, the cash advances issued to them (disbursements posted to the `cash.advances` account
|
|
270
|
+
# with the employee set), the amounts returned (receipts on the same account), the total settled by expense
|
|
271
|
+
# reports and the open balance (issued less returned less settled).
|
|
272
|
+
#
|
|
237
273
|
# @param request_options [Hash]
|
|
238
274
|
# @param params [Nordlet::Cash::Types::AdvanceHoldersBalancesCashRequest]
|
|
239
275
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,13 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Create a catalog item: a product, a service or a set of other items. `unit` must be `vnt`, a global measurement
|
|
14
|
+
# unit or one of the company's own units (`catalog/units/options`), the sale, purchase and expense account codes
|
|
15
|
+
# must be postable accounts of the chart, and `priceFrom`/`priceTo` and `validFrom`/`validTo` must be in order;
|
|
16
|
+
# otherwise 422. A `set` needs at least one component and none of them may be a set; `components` on any other
|
|
17
|
+
# type is refused with 422. 409 when an active item already carries the `code`. `documentRef` is the storage key
|
|
18
|
+
# of a file uploaded with `files/upload`, which is attached to the item. Emits `item.created`.
|
|
19
|
+
#
|
|
13
20
|
# @param request_options [Hash]
|
|
14
21
|
# @param params [Nordlet::Catalog::Types::ItemsCreateCatalogRequest]
|
|
15
22
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +49,8 @@ module Nordlet
|
|
|
42
49
|
end
|
|
43
50
|
end
|
|
44
51
|
|
|
52
|
+
# Return one item; a set comes with its components.
|
|
53
|
+
#
|
|
45
54
|
# @param request_options [Hash]
|
|
46
55
|
# @param params [Nordlet::Catalog::Types::ItemsGetCatalogRequest]
|
|
47
56
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +83,12 @@ module Nordlet
|
|
|
74
83
|
end
|
|
75
84
|
end
|
|
76
85
|
|
|
86
|
+
# Change the fields of an item; the fields that are nullable in the request can be set to null to clear them. The
|
|
87
|
+
# checks of `catalog/items/create` apply. `components` replaces the whole component list and is accepted only when
|
|
88
|
+
# the item is or becomes a set (422); turning an item into a set needs components and is refused with 409 while
|
|
89
|
+
# the item is itself a component of another set. Turning a set into another type removes its components. 409 when
|
|
90
|
+
# an active item already carries the new `code`. Emits `item.updated`.
|
|
91
|
+
#
|
|
77
92
|
# @param request_options [Hash]
|
|
78
93
|
# @param params [Nordlet::Catalog::Types::ItemsUpdateCatalogRequest]
|
|
79
94
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +121,8 @@ module Nordlet
|
|
|
106
121
|
end
|
|
107
122
|
end
|
|
108
123
|
|
|
124
|
+
# Soft-delete an item. Refused with 409 while the item is a component of an active set. Emits `item.deleted`.
|
|
125
|
+
#
|
|
109
126
|
# @param request_options [Hash]
|
|
110
127
|
# @param params [Nordlet::Catalog::Types::ItemsDeleteCatalogRequest]
|
|
111
128
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +155,10 @@ module Nordlet
|
|
|
138
155
|
end
|
|
139
156
|
end
|
|
140
157
|
|
|
158
|
+
# List the active items. Filterable: name, code, barcode, type, vatClassifierCode, groupId, kindId, externalId,
|
|
159
|
+
# manufacturer, department. Sortable: name, code, createdAt, updatedAt, salePriceExclVat; default name ascending.
|
|
160
|
+
# Rows carry no components; `catalog/items/get` returns them.
|
|
161
|
+
#
|
|
141
162
|
# @param request_options [Hash]
|
|
142
163
|
# @param params [Nordlet::Catalog::Types::ItemsListCatalogRequest]
|
|
143
164
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +191,8 @@ module Nordlet
|
|
|
170
191
|
end
|
|
171
192
|
end
|
|
172
193
|
|
|
194
|
+
# List the files attached to an item, newest first.
|
|
195
|
+
#
|
|
173
196
|
# @param request_options [Hash]
|
|
174
197
|
# @param params [Nordlet::Catalog::Types::ItemsFilesListCatalogRequest]
|
|
175
198
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +225,9 @@ module Nordlet
|
|
|
202
225
|
end
|
|
203
226
|
end
|
|
204
227
|
|
|
228
|
+
# Create an item kind: a code, a name, the SAF-T item type, whether quantities are accounted for, and a sort
|
|
229
|
+
# order. 409 when the code already exists.
|
|
230
|
+
#
|
|
205
231
|
# @param request_options [Hash]
|
|
206
232
|
# @param params [Nordlet::Catalog::Types::ItemsKindsCreateCatalogRequest]
|
|
207
233
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +260,8 @@ module Nordlet
|
|
|
234
260
|
end
|
|
235
261
|
end
|
|
236
262
|
|
|
263
|
+
# Change an item kind. 409 when the new code already exists.
|
|
264
|
+
#
|
|
237
265
|
# @param request_options [Hash]
|
|
238
266
|
# @param params [Nordlet::Catalog::Types::ItemsKindsUpdateCatalogRequest]
|
|
239
267
|
# @option request_options [String] :base_url
|
|
@@ -266,6 +294,9 @@ module Nordlet
|
|
|
266
294
|
end
|
|
267
295
|
end
|
|
268
296
|
|
|
297
|
+
# Delete an item kind. Refused with 409 while an active item uses it; soft-deleted items that still carry it are
|
|
298
|
+
# detached.
|
|
299
|
+
#
|
|
269
300
|
# @param request_options [Hash]
|
|
270
301
|
# @param params [Nordlet::Catalog::Types::ItemsKindsDeleteCatalogRequest]
|
|
271
302
|
# @option request_options [String] :base_url
|
|
@@ -298,6 +329,8 @@ module Nordlet
|
|
|
298
329
|
end
|
|
299
330
|
end
|
|
300
331
|
|
|
332
|
+
# List the company's item kinds in sort order, then by code.
|
|
333
|
+
#
|
|
301
334
|
# @param request_options [Hash]
|
|
302
335
|
# @param params [Nordlet::Catalog::Types::ItemsKindsListCatalogRequest]
|
|
303
336
|
# @option request_options [String] :base_url
|
|
@@ -330,6 +363,9 @@ module Nordlet
|
|
|
330
363
|
end
|
|
331
364
|
end
|
|
332
365
|
|
|
366
|
+
# Create a unit of measure of the company's own, in addition to the global measurement units
|
|
367
|
+
# (`reference/units/list`). 409 when the code already exists.
|
|
368
|
+
#
|
|
333
369
|
# @param request_options [Hash]
|
|
334
370
|
# @param params [Nordlet::Catalog::Types::UnitsCreateCatalogRequest]
|
|
335
371
|
# @option request_options [String] :base_url
|
|
@@ -362,6 +398,8 @@ module Nordlet
|
|
|
362
398
|
end
|
|
363
399
|
end
|
|
364
400
|
|
|
401
|
+
# Change the code, name or active flag of a company unit. 409 when the new code already exists.
|
|
402
|
+
#
|
|
365
403
|
# @param request_options [Hash]
|
|
366
404
|
# @param params [Nordlet::Catalog::Types::UnitsUpdateCatalogRequest]
|
|
367
405
|
# @option request_options [String] :base_url
|
|
@@ -394,6 +432,8 @@ module Nordlet
|
|
|
394
432
|
end
|
|
395
433
|
end
|
|
396
434
|
|
|
435
|
+
# Delete a company unit of measure.
|
|
436
|
+
#
|
|
397
437
|
# @param request_options [Hash]
|
|
398
438
|
# @param params [Nordlet::Catalog::Types::UnitsDeleteCatalogRequest]
|
|
399
439
|
# @option request_options [String] :base_url
|
|
@@ -426,6 +466,8 @@ module Nordlet
|
|
|
426
466
|
end
|
|
427
467
|
end
|
|
428
468
|
|
|
469
|
+
# List the company's own units of measure, ordered by code.
|
|
470
|
+
#
|
|
429
471
|
# @param request_options [Hash]
|
|
430
472
|
# @param params [Nordlet::Catalog::Types::UnitsListCatalogRequest]
|
|
431
473
|
# @option request_options [String] :base_url
|
|
@@ -458,6 +500,10 @@ module Nordlet
|
|
|
458
500
|
end
|
|
459
501
|
end
|
|
460
502
|
|
|
503
|
+
# Return the unit codes an item can use: the company's active own units first, then the global measurement units,
|
|
504
|
+
# named in the requested `locale` (Lithuanian for `lt`, English otherwise). A company unit hides a global unit
|
|
505
|
+
# with the same code.
|
|
506
|
+
#
|
|
461
507
|
# @param request_options [Hash]
|
|
462
508
|
# @param params [Nordlet::Catalog::Types::UnitsOptionsCatalogRequest]
|
|
463
509
|
# @option request_options [String] :base_url
|
|
@@ -490,6 +536,8 @@ module Nordlet
|
|
|
490
536
|
end
|
|
491
537
|
end
|
|
492
538
|
|
|
539
|
+
# Create an item group, optionally under `parentId`. 409 when the code already exists.
|
|
540
|
+
#
|
|
493
541
|
# @param request_options [Hash]
|
|
494
542
|
# @param params [Nordlet::Catalog::Types::ItemGroupsCreateCatalogRequest]
|
|
495
543
|
# @option request_options [String] :base_url
|
|
@@ -522,6 +570,9 @@ module Nordlet
|
|
|
522
570
|
end
|
|
523
571
|
end
|
|
524
572
|
|
|
573
|
+
# Change the code, name or parent of an item group; `parentId` null moves it to the top level. 422 when the new
|
|
574
|
+
# parent is the group itself or one of its descendants. 409 when the new code already exists.
|
|
575
|
+
#
|
|
525
576
|
# @param request_options [Hash]
|
|
526
577
|
# @param params [Nordlet::Catalog::Types::ItemGroupsUpdateCatalogRequest]
|
|
527
578
|
# @option request_options [String] :base_url
|
|
@@ -554,6 +605,8 @@ module Nordlet
|
|
|
554
605
|
end
|
|
555
606
|
end
|
|
556
607
|
|
|
608
|
+
# Delete an item group. Refused with 409 while it has child groups or active items assigned.
|
|
609
|
+
#
|
|
557
610
|
# @param request_options [Hash]
|
|
558
611
|
# @param params [Nordlet::Catalog::Types::ItemGroupsDeleteCatalogRequest]
|
|
559
612
|
# @option request_options [String] :base_url
|
|
@@ -586,6 +639,8 @@ module Nordlet
|
|
|
586
639
|
end
|
|
587
640
|
end
|
|
588
641
|
|
|
642
|
+
# List the company's item groups, ordered by code.
|
|
643
|
+
#
|
|
589
644
|
# @param request_options [Hash]
|
|
590
645
|
# @param params [Nordlet::Catalog::Types::ItemGroupsListCatalogRequest]
|
|
591
646
|
# @option request_options [String] :base_url
|
|
@@ -618,6 +673,10 @@ module Nordlet
|
|
|
618
673
|
end
|
|
619
674
|
end
|
|
620
675
|
|
|
676
|
+
# Create or replace the supplier record of an item for a partner (one per item and partner): supplier code,
|
|
677
|
+
# purchase price excluding VAT, currency (EUR when omitted) and notes. Fields omitted from the request are cleared
|
|
678
|
+
# on an existing record.
|
|
679
|
+
#
|
|
621
680
|
# @param request_options [Hash]
|
|
622
681
|
# @param params [Nordlet::Catalog::Types::ItemsSuppliersUpsertCatalogRequest]
|
|
623
682
|
# @option request_options [String] :base_url
|
|
@@ -650,6 +709,8 @@ module Nordlet
|
|
|
650
709
|
end
|
|
651
710
|
end
|
|
652
711
|
|
|
712
|
+
# List the supplier records, optionally for one `itemId` and/or `partnerId`, ordered by partner name.
|
|
713
|
+
#
|
|
653
714
|
# @param request_options [Hash]
|
|
654
715
|
# @param params [Nordlet::Catalog::Types::ItemsSuppliersListCatalogRequest]
|
|
655
716
|
# @option request_options [String] :base_url
|
|
@@ -682,6 +743,8 @@ module Nordlet
|
|
|
682
743
|
end
|
|
683
744
|
end
|
|
684
745
|
|
|
746
|
+
# Delete the supplier record of an item.
|
|
747
|
+
#
|
|
685
748
|
# @param request_options [Hash]
|
|
686
749
|
# @param params [Nordlet::Catalog::Types::ItemsSuppliersDeleteCatalogRequest]
|
|
687
750
|
# @option request_options [String] :base_url
|
|
@@ -714,6 +777,8 @@ module Nordlet
|
|
|
714
777
|
end
|
|
715
778
|
end
|
|
716
779
|
|
|
780
|
+
# Create a price list (currency EUR and active when omitted). 409 when the code already exists.
|
|
781
|
+
#
|
|
717
782
|
# @param request_options [Hash]
|
|
718
783
|
# @param params [Nordlet::Catalog::Types::PriceListsCreateCatalogRequest]
|
|
719
784
|
# @option request_options [String] :base_url
|
|
@@ -746,6 +811,8 @@ module Nordlet
|
|
|
746
811
|
end
|
|
747
812
|
end
|
|
748
813
|
|
|
814
|
+
# Change a price list. 409 when the new code already exists.
|
|
815
|
+
#
|
|
749
816
|
# @param request_options [Hash]
|
|
750
817
|
# @param params [Nordlet::Catalog::Types::PriceListsUpdateCatalogRequest]
|
|
751
818
|
# @option request_options [String] :base_url
|
|
@@ -778,6 +845,8 @@ module Nordlet
|
|
|
778
845
|
end
|
|
779
846
|
end
|
|
780
847
|
|
|
848
|
+
# List the company's price lists, ordered by code.
|
|
849
|
+
#
|
|
781
850
|
# @param request_options [Hash]
|
|
782
851
|
# @param params [Nordlet::Catalog::Types::PriceListsListCatalogRequest]
|
|
783
852
|
# @option request_options [String] :base_url
|
|
@@ -810,6 +879,10 @@ module Nordlet
|
|
|
810
879
|
end
|
|
811
880
|
end
|
|
812
881
|
|
|
882
|
+
# Set the unit price excluding VAT of up to 500 items on a price list; a price already on the list is replaced and
|
|
883
|
+
# the other items on the list are kept. 422 when an item appears twice in the request. Emits `price_list.updated`
|
|
884
|
+
# with the item ids.
|
|
885
|
+
#
|
|
813
886
|
# @param request_options [Hash]
|
|
814
887
|
# @param params [Nordlet::Catalog::Types::PriceListsItemsSetCatalogRequest]
|
|
815
888
|
# @option request_options [String] :base_url
|
|
@@ -842,6 +915,8 @@ module Nordlet
|
|
|
842
915
|
end
|
|
843
916
|
end
|
|
844
917
|
|
|
918
|
+
# List the prices of a price list with the item name and code, ordered by item name.
|
|
919
|
+
#
|
|
845
920
|
# @param request_options [Hash]
|
|
846
921
|
# @param params [Nordlet::Catalog::Types::PriceListsItemsListCatalogRequest]
|
|
847
922
|
# @option request_options [String] :base_url
|
|
@@ -874,6 +949,8 @@ module Nordlet
|
|
|
874
949
|
end
|
|
875
950
|
end
|
|
876
951
|
|
|
952
|
+
# Remove one item from a price list.
|
|
953
|
+
#
|
|
877
954
|
# @param request_options [Hash]
|
|
878
955
|
# @param params [Nordlet::Catalog::Types::PriceListsItemsDeleteCatalogRequest]
|
|
879
956
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,9 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Create a consolidation group owned by the calling company; `presentationCurrency` defaults to the company's base
|
|
14
|
+
# currency. Members are added with `consolidation/members/add`.
|
|
15
|
+
#
|
|
13
16
|
# @param request_options [Hash]
|
|
14
17
|
# @param params [Nordlet::Consolidation::Types::GroupsCreateConsolidationRequest]
|
|
15
18
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +45,8 @@ module Nordlet
|
|
|
42
45
|
end
|
|
43
46
|
end
|
|
44
47
|
|
|
48
|
+
# List the calling company's consolidation groups with their member counts.
|
|
49
|
+
#
|
|
45
50
|
# @param request_options [Hash]
|
|
46
51
|
# @param params [Nordlet::Consolidation::Types::GroupsListConsolidationRequest]
|
|
47
52
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +79,8 @@ module Nordlet
|
|
|
74
79
|
end
|
|
75
80
|
end
|
|
76
81
|
|
|
82
|
+
# Return one consolidation group with its members, each with its ownership percentage and consolidation method.
|
|
83
|
+
#
|
|
77
84
|
# @param request_options [Hash]
|
|
78
85
|
# @param params [Nordlet::Consolidation::Types::GroupsGetConsolidationRequest]
|
|
79
86
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +113,8 @@ module Nordlet
|
|
|
106
113
|
end
|
|
107
114
|
end
|
|
108
115
|
|
|
116
|
+
# Rename a consolidation group or change its presentation currency.
|
|
117
|
+
#
|
|
109
118
|
# @param request_options [Hash]
|
|
110
119
|
# @param params [Nordlet::Consolidation::Types::GroupsUpdateConsolidationRequest]
|
|
111
120
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +147,8 @@ module Nordlet
|
|
|
138
147
|
end
|
|
139
148
|
end
|
|
140
149
|
|
|
150
|
+
# Delete a consolidation group.
|
|
151
|
+
#
|
|
141
152
|
# @param request_options [Hash]
|
|
142
153
|
# @param params [Nordlet::Consolidation::Types::GroupsDeleteConsolidationRequest]
|
|
143
154
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +181,10 @@ module Nordlet
|
|
|
170
181
|
end
|
|
171
182
|
end
|
|
172
183
|
|
|
184
|
+
# Add a company to a consolidation group with its ownership percentage and method (`full`, `proportional` or
|
|
185
|
+
# `equity`), or change those of an existing member. Another company can be added only by a signed-in user who is
|
|
186
|
+
# owner, admin or accountant of it; an API key is refused with 403.
|
|
187
|
+
#
|
|
173
188
|
# @param request_options [Hash]
|
|
174
189
|
# @param params [Nordlet::Consolidation::Types::MembersAddConsolidationRequest]
|
|
175
190
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +217,8 @@ module Nordlet
|
|
|
202
217
|
end
|
|
203
218
|
end
|
|
204
219
|
|
|
220
|
+
# Remove a company from a consolidation group.
|
|
221
|
+
#
|
|
205
222
|
# @param request_options [Hash]
|
|
206
223
|
# @param params [Nordlet::Consolidation::Types::MembersRemoveConsolidationRequest]
|
|
207
224
|
# @option request_options [String] :base_url
|
|
@@ -306,6 +323,9 @@ module Nordlet
|
|
|
306
323
|
end
|
|
307
324
|
end
|
|
308
325
|
|
|
326
|
+
# List the intercompany links of a group: which partner record of which member company stands for which other
|
|
327
|
+
# member company.
|
|
328
|
+
#
|
|
309
329
|
# @param request_options [Hash]
|
|
310
330
|
# @param params [Nordlet::Consolidation::Types::IntercompanyLinksListConsolidationRequest]
|
|
311
331
|
# @option request_options [String] :base_url
|
|
@@ -338,6 +358,8 @@ module Nordlet
|
|
|
338
358
|
end
|
|
339
359
|
end
|
|
340
360
|
|
|
361
|
+
# Remove an intercompany link from a group.
|
|
362
|
+
#
|
|
341
363
|
# @param request_options [Hash]
|
|
342
364
|
# @param params [Nordlet::Consolidation::Types::IntercompanyLinksRemoveConsolidationRequest]
|
|
343
365
|
# @option request_options [String] :base_url
|
|
@@ -406,6 +428,13 @@ module Nordlet
|
|
|
406
428
|
end
|
|
407
429
|
end
|
|
408
430
|
|
|
431
|
+
# Consolidated financial statements of a group for a period in its presentation currency, with the consolidated
|
|
432
|
+
# trial balance and cash flow, each member's contribution and the intercompany candidates. Each member's balances
|
|
433
|
+
# are translated at the group owner's exchange rates of `toDate` and taken in full, in proportion to the ownership
|
|
434
|
+
# (`proportional`) or as an equity-method investment (`equity`); a fully consolidated member held below 100 %
|
|
435
|
+
# yields the non-controlling interest, and `eliminations` are amounts added to account codes before the statements
|
|
436
|
+
# are assembled (`balanced` tells whether they net to zero). Refused with 422 when the group has no members.
|
|
437
|
+
#
|
|
409
438
|
# @param request_options [Hash]
|
|
410
439
|
# @param params [Nordlet::Consolidation::Types::ReportConsolidationRequest]
|
|
411
440
|
# @option request_options [String] :base_url
|