nordlet 0.5.4 → 0.5.6
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/account/types/login_link_request_account_request.rb +2 -0
- data/lib/nordlet/account/types/login_link_request_account_request_app.rb +13 -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/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 +74 -0
- data/lib/nordlet/officers/client.rb +8 -0
- data/lib/nordlet/operation_types/client.rb +20 -0
- data/lib/nordlet/partners/client.rb +239 -0
- data/lib/nordlet/partners/types/debt_reminders_list_partners_response_rows_item.rb +2 -0
- data/lib/nordlet/partners/types/debt_reminders_list_partners_response_rows_item_kind.rb +14 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_get_partners_request.rb +9 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_get_partners_response.rb +13 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_update_partners_request.rb +13 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_update_partners_response.rb +13 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_request.rb +9 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_response.rb +11 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_response_rows_item.rb +27 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_response_rows_item_kind.rb +14 -0
- data/lib/nordlet/payroll/client.rb +62 -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 +51 -0
- data/reference.md +11974 -2959
- metadata +53 -2
|
@@ -10,6 +10,9 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Store a request for an integration: the integration asked for and the sender's name, company, e-mail and
|
|
14
|
+
# details. When `website` is filled in, the call answers `received` without storing anything.
|
|
15
|
+
#
|
|
13
16
|
# @param request_options [Hash]
|
|
14
17
|
# @param params [Nordlet::Public::Types::IntegrationRequestsPublicRequest]
|
|
15
18
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +45,12 @@ module Nordlet
|
|
|
42
45
|
end
|
|
43
46
|
end
|
|
44
47
|
|
|
48
|
+
# Redirect (302) to the company's payment page for the issued invoice that carries this payment token, rendered
|
|
49
|
+
# from the template set with `sales/invoices/payment-settings/update` with the invoice number, the amount still
|
|
50
|
+
# unpaid, the currency, the token, the invoice id and the customer name (see `sales/invoices/payment-link`).
|
|
51
|
+
# Answers 404 when the token matches no issued invoice or the company has no template, and 409 when the invoice is
|
|
52
|
+
# already paid.
|
|
53
|
+
#
|
|
45
54
|
# @param request_options [Hash]
|
|
46
55
|
# @param params [Hash]
|
|
47
56
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,14 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Create a draft purchase invoice or credit note (`type`) from a supplier document; it is posted with
|
|
14
|
+
# `purchases/invoices/register`. Lines without a unit price take the item's supplier or purchase price, `currency`
|
|
15
|
+
# defaults to the company's invoice currency, `documentRef` links an uploaded file, and the gross total leaves out
|
|
16
|
+
# self-assessed VAT. `creditedInvoiceId` (credit notes only) must be an invoice of the same partner,
|
|
17
|
+
# `purchaseOrderId` an order of the same partner that is not draft, submitted or cancelled, and `operationTypeId`
|
|
18
|
+
# an active purchase operation type, each 422 otherwise; the same `documentNumber` for the same partner is refused
|
|
19
|
+
# with 409.
|
|
20
|
+
#
|
|
13
21
|
# @param request_options [Hash]
|
|
14
22
|
# @param params [Nordlet::Purchases::Types::InvoicesCreatePurchasesRequest]
|
|
15
23
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +50,8 @@ module Nordlet
|
|
|
42
50
|
end
|
|
43
51
|
end
|
|
44
52
|
|
|
53
|
+
# Return one purchase invoice or credit note with its lines.
|
|
54
|
+
#
|
|
45
55
|
# @param request_options [Hash]
|
|
46
56
|
# @param params [Nordlet::Purchases::Types::InvoicesGetPurchasesRequest]
|
|
47
57
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +84,10 @@ module Nordlet
|
|
|
74
84
|
end
|
|
75
85
|
end
|
|
76
86
|
|
|
87
|
+
# Change a draft purchase invoice (409 once registered); only the fields sent are changed, and `lines` replace all
|
|
88
|
+
# existing lines with the totals recomputed. `purchaseOrderId` and `operationTypeId` are checked as on
|
|
89
|
+
# `purchases/invoices/create` (422). A `documentNumber` already used for the partner is refused with 409.
|
|
90
|
+
#
|
|
77
91
|
# @param request_options [Hash]
|
|
78
92
|
# @param params [Nordlet::Purchases::Types::InvoicesUpdatePurchasesRequest]
|
|
79
93
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +120,9 @@ module Nordlet
|
|
|
106
120
|
end
|
|
107
121
|
end
|
|
108
122
|
|
|
123
|
+
# Mark a draft purchase invoice as deleted (409 once registered). A document capture linked to it goes back to
|
|
124
|
+
# `extracted` (or `pending` when it has no extraction) and can be confirmed again.
|
|
125
|
+
#
|
|
109
126
|
# @param request_options [Hash]
|
|
110
127
|
# @param params [Nordlet::Purchases::Types::InvoicesDeletePurchasesRequest]
|
|
111
128
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +155,24 @@ module Nordlet
|
|
|
138
155
|
end
|
|
139
156
|
end
|
|
140
157
|
|
|
158
|
+
# Register a draft purchase invoice or credit note: posts the journal entry dated `registrationDate` (default the
|
|
159
|
+
# document date) and sets the status to `registered`. The entry debits each line's expense account (the line's
|
|
160
|
+
# `accountCode`, else the item's purchase or expense account, else the operation type's expense account, else the
|
|
161
|
+
# `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable (a company that is
|
|
162
|
+
# not a VAT payer books the VAT into the expense instead), credits payables (the operation type's credit account
|
|
163
|
+
# when set) and credits output VAT for self-assessed VAT; a credit note posts the reverse. Lines with
|
|
164
|
+
# `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead and get
|
|
165
|
+
# a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an invoice
|
|
166
|
+
# are received into stock at their base-currency cost (422 on an order-linked invoice, whose goods arrive through
|
|
167
|
+
# `purchases/receipts/create`, and for a line that is also deferred); `returnFromStock` on a credit note that
|
|
168
|
+
# credits an invoice takes the goods back out of stock at their FIFO cost and books the difference to the credited
|
|
169
|
+
# amount on the `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the
|
|
170
|
+
# credited invoice are in stock). A credit note that credits a registered invoice in the same currency is applied
|
|
171
|
+
# to it as a payment up to the open amount. Refused with 409 when already registered or the accounting period is
|
|
172
|
+
# locked, and with 422 when the credit notes would exceed the credited invoice, a posting account is missing or no
|
|
173
|
+
# exchange rate exists for the date. Emits `purchase_invoice.registered`, `purchase_invoice.paid` when the
|
|
174
|
+
# credited invoice becomes fully paid, and `stock.changed` when stock moves.
|
|
175
|
+
#
|
|
141
176
|
# @param request_options [Hash]
|
|
142
177
|
# @param params [Nordlet::Purchases::Types::InvoicesRegisterPurchasesRequest]
|
|
143
178
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +205,10 @@ module Nordlet
|
|
|
170
205
|
end
|
|
171
206
|
end
|
|
172
207
|
|
|
208
|
+
# List the monthly release rows that `purchases/invoices/register` creates for lines booked as prepaid expenses,
|
|
209
|
+
# each with its amount, expense and prepaid account and `status` (`pending`, `posted`, `cancelled`). Filterable by
|
|
210
|
+
# `invoiceId`, `status` and `scheduleDate`; sortable by `scheduleDate`.
|
|
211
|
+
#
|
|
173
212
|
# @param request_options [Hash]
|
|
174
213
|
# @param params [Nordlet::Purchases::Types::DeferralsListPurchasesRequest]
|
|
175
214
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +241,11 @@ module Nordlet
|
|
|
202
241
|
end
|
|
203
242
|
end
|
|
204
243
|
|
|
244
|
+
# Post every `pending` prepaid-expense release row dated on or before `asOfDate` (default today in the company's
|
|
245
|
+
# time zone): one journal entry per schedule date debiting the expense account and crediting the prepaid account,
|
|
246
|
+
# and the rows become `posted`. A locked accounting period is refused with 409. The scheduled job
|
|
247
|
+
# `expense-deferrals` runs the same release for every active company.
|
|
248
|
+
#
|
|
205
249
|
# @param request_options [Hash]
|
|
206
250
|
# @param params [Nordlet::Purchases::Types::DeferralsPostPurchasesRequest]
|
|
207
251
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +278,11 @@ module Nordlet
|
|
|
234
278
|
end
|
|
235
279
|
end
|
|
236
280
|
|
|
281
|
+
# List purchase invoices and credit notes without lines, with the supplier's `partnerName`. Filterable by
|
|
282
|
+
# `partnerId`, `type`, `status`, `paymentStatus`, `documentNumber`, `documentDate`, `currency`, `operationTypeId`,
|
|
283
|
+
# `purchaseOrderId`, `grossTotal`, `netTotal`, `vatTotal` and `dueDate`; sortable by `createdAt`, `documentDate`,
|
|
284
|
+
# `documentNumber`, `grossTotal` and `dueDate`.
|
|
285
|
+
#
|
|
237
286
|
# @param request_options [Hash]
|
|
238
287
|
# @param params [Nordlet::Purchases::Types::InvoicesListPurchasesRequest]
|
|
239
288
|
# @option request_options [String] :base_url
|
|
@@ -266,6 +315,12 @@ module Nordlet
|
|
|
266
315
|
end
|
|
267
316
|
end
|
|
268
317
|
|
|
318
|
+
# Create a draft purchase order for a supplier. Lines without a unit price take the item's supplier or purchase
|
|
319
|
+
# price; `orderNumber` comes from the `purchase_order` series with prefix PO when not given; `currency` defaults
|
|
320
|
+
# to the company's invoice currency; `documentRef` links an uploaded file to the order. A number already in use is
|
|
321
|
+
# refused with 409. The order continues with `purchases/orders/submit`, `purchases/orders/approve` and
|
|
322
|
+
# `purchases/receipts/create`.
|
|
323
|
+
#
|
|
269
324
|
# @param request_options [Hash]
|
|
270
325
|
# @param params [Nordlet::Purchases::Types::OrdersCreatePurchasesRequest]
|
|
271
326
|
# @option request_options [String] :base_url
|
|
@@ -298,6 +353,9 @@ module Nordlet
|
|
|
298
353
|
end
|
|
299
354
|
end
|
|
300
355
|
|
|
356
|
+
# Change a draft purchase order (409 once it is submitted); only the fields sent are changed. `lines` replace all
|
|
357
|
+
# existing lines and the totals are recomputed.
|
|
358
|
+
#
|
|
301
359
|
# @param request_options [Hash]
|
|
302
360
|
# @param params [Nordlet::Purchases::Types::OrdersUpdatePurchasesRequest]
|
|
303
361
|
# @option request_options [String] :base_url
|
|
@@ -330,6 +388,8 @@ module Nordlet
|
|
|
330
388
|
end
|
|
331
389
|
end
|
|
332
390
|
|
|
391
|
+
# Return one purchase order with its lines; each line carries `receivedQty` and `remainingQty`.
|
|
392
|
+
#
|
|
333
393
|
# @param request_options [Hash]
|
|
334
394
|
# @param params [Nordlet::Purchases::Types::OrdersGetPurchasesRequest]
|
|
335
395
|
# @option request_options [String] :base_url
|
|
@@ -362,6 +422,10 @@ module Nordlet
|
|
|
362
422
|
end
|
|
363
423
|
end
|
|
364
424
|
|
|
425
|
+
# List purchase orders without lines, with the supplier's `partnerName`. Filterable by `partnerId`, `status`,
|
|
426
|
+
# `orderNumber`, `orderDate`, `currency` and `grossTotal`; sortable by `createdAt`, `orderDate`, `orderNumber` and
|
|
427
|
+
# `grossTotal`.
|
|
428
|
+
#
|
|
365
429
|
# @param request_options [Hash]
|
|
366
430
|
# @param params [Nordlet::Purchases::Types::OrdersListPurchasesRequest]
|
|
367
431
|
# @option request_options [String] :base_url
|
|
@@ -394,6 +458,9 @@ module Nordlet
|
|
|
394
458
|
end
|
|
395
459
|
end
|
|
396
460
|
|
|
461
|
+
# Move a `draft` purchase order to `submitted` for approval (409 from any other status). `reason` is kept in the
|
|
462
|
+
# audit log.
|
|
463
|
+
#
|
|
397
464
|
# @param request_options [Hash]
|
|
398
465
|
# @param params [Nordlet::Purchases::Types::OrdersSubmitPurchasesRequest]
|
|
399
466
|
# @option request_options [String] :base_url
|
|
@@ -426,6 +493,10 @@ module Nordlet
|
|
|
426
493
|
end
|
|
427
494
|
end
|
|
428
495
|
|
|
496
|
+
# Approve a `submitted` purchase order (409 from any other status), recording who approved it and when; needs the
|
|
497
|
+
# `purchases:approve` scope. Goods are then received with `purchases/receipts/create`. Emits
|
|
498
|
+
# `purchase_order.approved`.
|
|
499
|
+
#
|
|
429
500
|
# @param request_options [Hash]
|
|
430
501
|
# @param params [Nordlet::Purchases::Types::OrdersApprovePurchasesRequest]
|
|
431
502
|
# @option request_options [String] :base_url
|
|
@@ -458,6 +529,9 @@ module Nordlet
|
|
|
458
529
|
end
|
|
459
530
|
end
|
|
460
531
|
|
|
532
|
+
# Send a `submitted` purchase order back to `draft` (409 from any other status); needs the `purchases:approve`
|
|
533
|
+
# scope. `reason` is kept in the audit log.
|
|
534
|
+
#
|
|
461
535
|
# @param request_options [Hash]
|
|
462
536
|
# @param params [Nordlet::Purchases::Types::OrdersRejectPurchasesRequest]
|
|
463
537
|
# @option request_options [String] :base_url
|
|
@@ -490,6 +564,9 @@ module Nordlet
|
|
|
490
564
|
end
|
|
491
565
|
end
|
|
492
566
|
|
|
567
|
+
# Cancel a `draft`, `submitted` or `approved` purchase order (409 from any other status, or when the order already
|
|
568
|
+
# has a goods receipt).
|
|
569
|
+
#
|
|
493
570
|
# @param request_options [Hash]
|
|
494
571
|
# @param params [Nordlet::Purchases::Types::OrdersCancelPurchasesRequest]
|
|
495
572
|
# @option request_options [String] :base_url
|
|
@@ -522,6 +599,9 @@ module Nordlet
|
|
|
522
599
|
end
|
|
523
600
|
end
|
|
524
601
|
|
|
602
|
+
# Close an `approved`, `partially_received` or `received` purchase order (409 from any other status); a closed
|
|
603
|
+
# order accepts no further goods receipts.
|
|
604
|
+
#
|
|
525
605
|
# @param request_options [Hash]
|
|
526
606
|
# @param params [Nordlet::Purchases::Types::OrdersClosePurchasesRequest]
|
|
527
607
|
# @option request_options [String] :base_url
|
|
@@ -554,6 +634,8 @@ module Nordlet
|
|
|
554
634
|
end
|
|
555
635
|
end
|
|
556
636
|
|
|
637
|
+
# Mark a `draft` purchase order as deleted (409 once it is submitted).
|
|
638
|
+
#
|
|
557
639
|
# @param request_options [Hash]
|
|
558
640
|
# @param params [Nordlet::Purchases::Types::OrdersDeletePurchasesRequest]
|
|
559
641
|
# @option request_options [String] :base_url
|
|
@@ -586,6 +668,14 @@ module Nordlet
|
|
|
586
668
|
end
|
|
587
669
|
end
|
|
588
670
|
|
|
671
|
+
# Record a goods receipt against an `approved` or `partially_received` purchase order (409 otherwise), numbered
|
|
672
|
+
# from the `goods_receipt` series with prefix GR. Lines whose item is a product go into stock in `warehouseId`,
|
|
673
|
+
# else the order's warehouse (422 when neither is set), at their share of the order line's net amount converted at
|
|
674
|
+
# the receipt date's rate; `lotNumber` and `expiryDate` receive them into a lot, and an item that needs lot or
|
|
675
|
+
# serial tracking is refused with 422 without one. A quantity above the line's remaining quantity is refused with
|
|
676
|
+
# 409; the order becomes `received` when every line is fully received, else `partially_received`. Emits
|
|
677
|
+
# `goods_receipt.posted`, `stock.changed` and, when fully received, `purchase_order.received`.
|
|
678
|
+
#
|
|
589
679
|
# @param request_options [Hash]
|
|
590
680
|
# @param params [Nordlet::Purchases::Types::ReceiptsCreatePurchasesRequest]
|
|
591
681
|
# @option request_options [String] :base_url
|
|
@@ -618,6 +708,8 @@ module Nordlet
|
|
|
618
708
|
end
|
|
619
709
|
end
|
|
620
710
|
|
|
711
|
+
# Return one goods receipt with its lines and their stock movement ids.
|
|
712
|
+
#
|
|
621
713
|
# @param request_options [Hash]
|
|
622
714
|
# @param params [Nordlet::Purchases::Types::ReceiptsGetPurchasesRequest]
|
|
623
715
|
# @option request_options [String] :base_url
|
|
@@ -650,6 +742,9 @@ module Nordlet
|
|
|
650
742
|
end
|
|
651
743
|
end
|
|
652
744
|
|
|
745
|
+
# List goods receipts without lines. Filterable by `orderId`, `warehouseId`, `receiptDate` and `receiptNumber`;
|
|
746
|
+
# sortable by `createdAt` and `receiptDate`.
|
|
747
|
+
#
|
|
653
748
|
# @param request_options [Hash]
|
|
654
749
|
# @param params [Nordlet::Purchases::Types::ReceiptsListPurchasesRequest]
|
|
655
750
|
# @option request_options [String] :base_url
|
|
@@ -682,6 +777,13 @@ module Nordlet
|
|
|
682
777
|
end
|
|
683
778
|
end
|
|
684
779
|
|
|
780
|
+
# Compare a purchase invoice with its linked purchase order and the goods received so far, grouped by item (by
|
|
781
|
+
# description for lines without one). Each row is `matched`, `not_received` (invoiced but nothing received),
|
|
782
|
+
# `over_invoiced` (invoiced more than received), `price_mismatch` (unit price differs by more than
|
|
783
|
+
# `priceTolerancePercent`), `not_on_order` or `not_invoiced`; `status` is `mismatched` when any row other than
|
|
784
|
+
# `not_invoiced` is not matched. Refused with 422 when the invoice has no `purchaseOrderId` or its currency
|
|
785
|
+
# differs from the order's. Nothing is changed.
|
|
786
|
+
#
|
|
685
787
|
# @param request_options [Hash]
|
|
686
788
|
# @param params [Nordlet::Purchases::Types::InvoicesMatchPurchasesRequest]
|
|
687
789
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,10 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Fetches the euro exchange rates the Bank of Lithuania web service publishes for `date` (default: the company's
|
|
14
|
+
# current date) and stores them in the rate table shared by all companies, replacing the rates already stored for
|
|
15
|
+
# that date. Answers 404 when no rates are published for the date.
|
|
16
|
+
#
|
|
13
17
|
# @param request_options [Hash]
|
|
14
18
|
# @param params [Nordlet::Reference::Types::ExchangeRatesSyncReferenceRequest]
|
|
15
19
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +46,9 @@ module Nordlet
|
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
|
|
49
|
+
# Lists the stored euro exchange rates, which are shared by all companies. Filterable by `currencyCode` and
|
|
50
|
+
# `date`; sortable by `date` and `currencyCode`.
|
|
51
|
+
#
|
|
45
52
|
# @param request_options [Hash]
|
|
46
53
|
# @param params [Nordlet::Reference::Types::ExchangeRatesListReferenceRequest]
|
|
47
54
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +81,11 @@ module Nordlet
|
|
|
74
81
|
end
|
|
75
82
|
end
|
|
76
83
|
|
|
84
|
+
# Stores a company exchange rate for `currency` on `date`, in units of the currency per one unit of the company's
|
|
85
|
+
# base currency, replacing the company rate stored for that currency and date. Rate lookups use the company rate
|
|
86
|
+
# when it is dated on or after the latest shared rate on or before the lookup date. Answers 422 when `rate` is not
|
|
87
|
+
# positive.
|
|
88
|
+
#
|
|
77
89
|
# @param request_options [Hash]
|
|
78
90
|
# @param params [Nordlet::Reference::Types::ExchangeRatesSetReferenceRequest]
|
|
79
91
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +118,9 @@ module Nordlet
|
|
|
106
118
|
end
|
|
107
119
|
end
|
|
108
120
|
|
|
121
|
+
# Lists the company's own exchange rates set with `reference/exchange-rates/set`. Filterable by `currencyCode` and
|
|
122
|
+
# `date`; sortable by `date` and `currencyCode`.
|
|
123
|
+
#
|
|
109
124
|
# @param request_options [Hash]
|
|
110
125
|
# @param params [Nordlet::Reference::Types::ExchangeRatesOverridesListReferenceRequest]
|
|
111
126
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +153,8 @@ module Nordlet
|
|
|
138
153
|
end
|
|
139
154
|
end
|
|
140
155
|
|
|
156
|
+
# Removes the company's own exchange rate for `currency` on `date`.
|
|
157
|
+
#
|
|
141
158
|
# @param request_options [Hash]
|
|
142
159
|
# @param params [Nordlet::Reference::Types::ExchangeRatesOverridesDeleteReferenceRequest]
|
|
143
160
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +187,8 @@ module Nordlet
|
|
|
170
187
|
end
|
|
171
188
|
end
|
|
172
189
|
|
|
190
|
+
# Lists every country code Nordlet knows with its EU and EEA membership and its name in each supported locale.
|
|
191
|
+
#
|
|
173
192
|
# @param request_options [Hash]
|
|
174
193
|
# @param params [Nordlet::Reference::Types::CountriesListReferenceRequest]
|
|
175
194
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +221,8 @@ module Nordlet
|
|
|
202
221
|
end
|
|
203
222
|
end
|
|
204
223
|
|
|
224
|
+
# Lists the ten Lithuanian counties (apskritys) with their code and ISO code.
|
|
225
|
+
#
|
|
205
226
|
# @param request_options [Hash]
|
|
206
227
|
# @param params [Nordlet::Reference::Types::LtCountiesListReferenceRequest]
|
|
207
228
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +255,9 @@ module Nordlet
|
|
|
234
255
|
end
|
|
235
256
|
end
|
|
236
257
|
|
|
258
|
+
# Lists the Lithuanian municipalities (savivaldybės) with the county each belongs to; `countyCode` limits the list
|
|
259
|
+
# to one county.
|
|
260
|
+
#
|
|
237
261
|
# @param request_options [Hash]
|
|
238
262
|
# @param params [Nordlet::Reference::Types::LtMunicipalitiesListReferenceRequest]
|
|
239
263
|
# @option request_options [String] :base_url
|
|
@@ -266,6 +290,9 @@ module Nordlet
|
|
|
266
290
|
end
|
|
267
291
|
end
|
|
268
292
|
|
|
293
|
+
# Lists Lithuanian cities with their municipality; `municipalityCode` limits the list to one municipality and `q`
|
|
294
|
+
# to names that start with the given text (case-insensitive).
|
|
295
|
+
#
|
|
269
296
|
# @param request_options [Hash]
|
|
270
297
|
# @param params [Nordlet::Reference::Types::LtCitiesListReferenceRequest]
|
|
271
298
|
# @option request_options [String] :base_url
|
|
@@ -298,6 +325,9 @@ module Nordlet
|
|
|
298
325
|
end
|
|
299
326
|
end
|
|
300
327
|
|
|
328
|
+
# Lists the banks of the bank directory shared by all companies. Filterable by `countryCode`, `name`, `bic` and
|
|
329
|
+
# `bankCode`; sortable by `name`, `bic` and `countryCode`.
|
|
330
|
+
#
|
|
301
331
|
# @param request_options [Hash]
|
|
302
332
|
# @param params [Nordlet::Reference::Types::BanksListReferenceRequest]
|
|
303
333
|
# @option request_options [String] :base_url
|
|
@@ -330,6 +360,9 @@ module Nordlet
|
|
|
330
360
|
end
|
|
331
361
|
end
|
|
332
362
|
|
|
363
|
+
# Adds a bank to the shared bank directory or, when a bank with the same `countryCode` and `bic` exists, replaces
|
|
364
|
+
# its name, bank code and active flag. Platform administrators only.
|
|
365
|
+
#
|
|
333
366
|
# @param request_options [Hash]
|
|
334
367
|
# @param params [Nordlet::Reference::Types::BanksUpsertReferenceRequest]
|
|
335
368
|
# @option request_options [String] :base_url
|
|
@@ -362,6 +395,9 @@ module Nordlet
|
|
|
362
395
|
end
|
|
363
396
|
end
|
|
364
397
|
|
|
398
|
+
# Lists the ten Lithuanian regions (apskritys) with their code and ISO code; the same list as
|
|
399
|
+
# `reference/lt/counties/list`.
|
|
400
|
+
#
|
|
365
401
|
# @param request_options [Hash]
|
|
366
402
|
# @param params [Nordlet::Reference::Types::LtRegionsListReferenceRequest]
|
|
367
403
|
# @option request_options [String] :base_url
|
|
@@ -394,6 +430,8 @@ module Nordlet
|
|
|
394
430
|
end
|
|
395
431
|
end
|
|
396
432
|
|
|
433
|
+
# Lists the currencies known to Nordlet with their minor units. Filterable and sortable by `code` and `name`.
|
|
434
|
+
#
|
|
397
435
|
# @param request_options [Hash]
|
|
398
436
|
# @param params [Nordlet::Reference::Types::CurrenciesListReferenceRequest]
|
|
399
437
|
# @option request_options [String] :base_url
|
|
@@ -426,6 +464,10 @@ module Nordlet
|
|
|
426
464
|
end
|
|
427
465
|
end
|
|
428
466
|
|
|
467
|
+
# Lists the company's VAT classifiers (code, country, name and rate). A document line that names a classifier in
|
|
468
|
+
# `vatClassifierCode` takes its rate from it when neither the line nor the item has a rate. Filterable by `code`,
|
|
469
|
+
# `countryCode` and `ratePercent`; sortable by `code` and `ratePercent`.
|
|
470
|
+
#
|
|
429
471
|
# @param request_options [Hash]
|
|
430
472
|
# @param params [Nordlet::Reference::Types::VatClassifiersListReferenceRequest]
|
|
431
473
|
# @option request_options [String] :base_url
|
|
@@ -458,6 +500,9 @@ module Nordlet
|
|
|
458
500
|
end
|
|
459
501
|
end
|
|
460
502
|
|
|
503
|
+
# Adds VAT classifiers to the company or replaces the country, name and rate of the ones whose `code` already
|
|
504
|
+
# exists.
|
|
505
|
+
#
|
|
461
506
|
# @param request_options [Hash]
|
|
462
507
|
# @param params [Nordlet::Reference::Types::VatClassifiersUpsertReferenceRequest]
|
|
463
508
|
# @option request_options [String] :base_url
|
|
@@ -561,6 +606,14 @@ module Nordlet
|
|
|
561
606
|
end
|
|
562
607
|
end
|
|
563
608
|
|
|
609
|
+
# Works out the VAT treatment of a supply by this company: the scheme (domestic, intra-EU B2B, reverse charge,
|
|
610
|
+
# OSS, IOSS, marketplace deemed supplier, export, out of scope or SME exempt), the country whose VAT applies, its
|
|
611
|
+
# rates with the company's overrides applied, and the legal basis. The customer comes from `partnerId` (country
|
|
612
|
+
# from the partner's address or VAT number, business status from the VAT number) or from `customerCountryCode` and
|
|
613
|
+
# `customerIsBusiness`; `date` defaults to the company's current date; when `belowDistanceSalesThreshold` is not
|
|
614
|
+
# given, the distance-sales threshold is tracked from the company's ledger. Answers 422 when the partner has
|
|
615
|
+
# neither an address country nor a VAT code.
|
|
616
|
+
#
|
|
564
617
|
# @param request_options [Hash]
|
|
565
618
|
# @param params [Nordlet::Reference::Types::VatResolveReferenceRequest]
|
|
566
619
|
# @option request_options [String] :base_url
|
|
@@ -593,6 +646,9 @@ module Nordlet
|
|
|
593
646
|
end
|
|
594
647
|
end
|
|
595
648
|
|
|
649
|
+
# Lists the Combined Nomenclature codes of the directory shared by all companies. Filterable by `code`, `name` and
|
|
650
|
+
# `nameLt`; sortable by `code`.
|
|
651
|
+
#
|
|
596
652
|
# @param request_options [Hash]
|
|
597
653
|
# @param params [Nordlet::Reference::Types::CnCodesListReferenceRequest]
|
|
598
654
|
# @option request_options [String] :base_url
|
|
@@ -625,6 +681,9 @@ module Nordlet
|
|
|
625
681
|
end
|
|
626
682
|
end
|
|
627
683
|
|
|
684
|
+
# Adds Combined Nomenclature codes to the shared directory or replaces the names and supplementary unit of the
|
|
685
|
+
# codes that exist. Platform administrators only.
|
|
686
|
+
#
|
|
628
687
|
# @param request_options [Hash]
|
|
629
688
|
# @param params [Nordlet::Reference::Types::CnCodesUpsertReferenceRequest]
|
|
630
689
|
# @option request_options [String] :base_url
|
|
@@ -657,6 +716,9 @@ module Nordlet
|
|
|
657
716
|
end
|
|
658
717
|
end
|
|
659
718
|
|
|
719
|
+
# Lists the versions of the filing systems, schemas and forms Nordlet's output was checked against, with the date
|
|
720
|
+
# of the check and the source; `country` limits the list to one country.
|
|
721
|
+
#
|
|
660
722
|
# @param request_options [Hash]
|
|
661
723
|
# @param params [Nordlet::Reference::Types::ComplianceVersionsListReferenceRequest]
|
|
662
724
|
# @option request_options [String] :base_url
|
|
@@ -689,6 +751,9 @@ module Nordlet
|
|
|
689
751
|
end
|
|
690
752
|
end
|
|
691
753
|
|
|
754
|
+
# Lists the Intrastat thresholds stored per year: the reporting and the statistical-value threshold for arrivals
|
|
755
|
+
# and for dispatches.
|
|
756
|
+
#
|
|
692
757
|
# @param request_options [Hash]
|
|
693
758
|
# @param params [Nordlet::Reference::Types::IntrastatThresholdsListReferenceRequest]
|
|
694
759
|
# @option request_options [String] :base_url
|
|
@@ -721,6 +786,9 @@ module Nordlet
|
|
|
721
786
|
end
|
|
722
787
|
end
|
|
723
788
|
|
|
789
|
+
# Lists the measurement units of the directory shared by all companies, with Lithuanian and English names.
|
|
790
|
+
# Filterable by `code`, `nameLt` and `nameEn`; sortable by `code`.
|
|
791
|
+
#
|
|
724
792
|
# @param request_options [Hash]
|
|
725
793
|
# @param params [Nordlet::Reference::Types::UnitsListReferenceRequest]
|
|
726
794
|
# @option request_options [String] :base_url
|
|
@@ -753,6 +821,9 @@ module Nordlet
|
|
|
753
821
|
end
|
|
754
822
|
end
|
|
755
823
|
|
|
824
|
+
# Creates a numbering series for a document type, prefix and year; the first number the series hands out is at
|
|
825
|
+
# least `startAt`. Answers 409 when a series with the same document type, prefix and year exists.
|
|
826
|
+
#
|
|
756
827
|
# @param request_options [Hash]
|
|
757
828
|
# @param params [Nordlet::Reference::Types::SeriesCreateReferenceRequest]
|
|
758
829
|
# @option request_options [String] :base_url
|
|
@@ -785,6 +856,9 @@ module Nordlet
|
|
|
785
856
|
end
|
|
786
857
|
end
|
|
787
858
|
|
|
859
|
+
# Lists the company's numbering series with the next number of each. Filterable and sortable by `documentType`,
|
|
860
|
+
# `prefix` and `year`.
|
|
861
|
+
#
|
|
788
862
|
# @param request_options [Hash]
|
|
789
863
|
# @param params [Nordlet::Reference::Types::SeriesListReferenceRequest]
|
|
790
864
|
# @option request_options [String] :base_url
|