nordlet 0.5.4 → 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/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 +126 -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 +41 -0
- data/reference.md +10135 -1306
- metadata +43 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4da069081b53c176214991ead94b15c5fcf480a48a3d72c3d40606c4130200f5
|
|
4
|
+
data.tar.gz: c2cedd7c56fd51ba38417e3d6591a3ff934e4ed71cbf05aab8cf5323dd890ea4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7989554b0f26778d0a8b3db0f8d959ed48d8dbf0735cf1c30f9dae58ad135beffd600691afc1e20c5f70698e45fe732db7a81a9f7f2cfdb70e589ec416990e3e
|
|
7
|
+
data.tar.gz: 10ba70415ab76e7d3e47d3ab8aef84d927ca58ecf36c8ec94c4c8e47ba7b34c07eabd3e39c98d0021f26fdef9dfa4f3bc469c911f2f9ff170e6a42d66dd1404f
|
|
@@ -10,6 +10,12 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Create a sign-in link for the e-mail address and send it; the link is valid for 15 minutes and is consumed with
|
|
14
|
+
# `account/login-link/consume`. When an unused link was requested for the same address within the last minute, the
|
|
15
|
+
# call answers `sent` without sending another. `locale` sets the language of the e-mail and of the link;
|
|
16
|
+
# `acceptTerms`, `acceptDpa` and `referralCode` are stored with the link and used when the address has no account
|
|
17
|
+
# yet.
|
|
18
|
+
#
|
|
13
19
|
# @param request_options [Hash]
|
|
14
20
|
# @param params [Nordlet::Account::Types::LoginLinkRequestAccountRequest]
|
|
15
21
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +48,12 @@ module Nordlet
|
|
|
42
48
|
end
|
|
43
49
|
end
|
|
44
50
|
|
|
51
|
+
# Exchange a sign-in link token for a session; an unknown, used or expired token is refused with 401. When no
|
|
52
|
+
# account has the address, one is created (`isNewUser`), which is refused with 422 unless the link was requested
|
|
53
|
+
# with `acceptTerms` and `acceptDpa`; a `referralCode` on the link records who referred the new user. A link from
|
|
54
|
+
# `account/email/change-request` changes the signed-in user's address instead, refused with 409 when another
|
|
55
|
+
# account has it.
|
|
56
|
+
#
|
|
45
57
|
# @param request_options [Hash]
|
|
46
58
|
# @param params [Nordlet::Account::Types::LoginLinkConsumeAccountRequest]
|
|
47
59
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +86,8 @@ module Nordlet
|
|
|
74
86
|
end
|
|
75
87
|
end
|
|
76
88
|
|
|
89
|
+
# Delete the session the call was made with.
|
|
90
|
+
#
|
|
77
91
|
# @param request_options [Hash]
|
|
78
92
|
# @param params [Nordlet::Account::Types::LogoutAccountRequest]
|
|
79
93
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +120,11 @@ module Nordlet
|
|
|
106
120
|
end
|
|
107
121
|
end
|
|
108
122
|
|
|
123
|
+
# Return the signed-in user, their active company and role in it, the companies they belong to and their consent
|
|
124
|
+
# state. `billing` is the billing account that pays for the active company (its payer, or the user when there is
|
|
125
|
+
# none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current
|
|
126
|
+
# points balance.
|
|
127
|
+
#
|
|
109
128
|
# @param request_options [Hash]
|
|
110
129
|
# @param params [Nordlet::Account::Types::MeAccountRequest]
|
|
111
130
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +157,8 @@ module Nordlet
|
|
|
138
157
|
end
|
|
139
158
|
end
|
|
140
159
|
|
|
160
|
+
# List the members of the active company with their role.
|
|
161
|
+
#
|
|
141
162
|
# @param request_options [Hash]
|
|
142
163
|
# @param params [Nordlet::Account::Types::MembersListAccountRequest]
|
|
143
164
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +191,9 @@ module Nordlet
|
|
|
170
191
|
end
|
|
171
192
|
end
|
|
172
193
|
|
|
194
|
+
# Change the role of a member of the active company; owners and admins may call it. Refused with 422 for the
|
|
195
|
+
# caller's own role and with 403 for the owner's, which only `account/members/transfer-ownership` changes.
|
|
196
|
+
#
|
|
173
197
|
# @param request_options [Hash]
|
|
174
198
|
# @param params [Nordlet::Account::Types::MembersSetRoleAccountRequest]
|
|
175
199
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +226,10 @@ module Nordlet
|
|
|
202
226
|
end
|
|
203
227
|
end
|
|
204
228
|
|
|
229
|
+
# Make another member the owner of the active company; the caller must be its owner and becomes an admin. Refused
|
|
230
|
+
# with 422 when `userId` is the caller. With `movePayer` the company's billing also moves to the new owner, which
|
|
231
|
+
# only the member currently paying for it may do (403).
|
|
232
|
+
#
|
|
205
233
|
# @param request_options [Hash]
|
|
206
234
|
# @param params [Nordlet::Account::Types::MembersTransferOwnershipAccountRequest]
|
|
207
235
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +262,10 @@ module Nordlet
|
|
|
234
262
|
end
|
|
235
263
|
end
|
|
236
264
|
|
|
265
|
+
# Remove a member from the active company; owners and admins may call it. Their sessions lose this company as the
|
|
266
|
+
# active one and the API keys they created for it are revoked. Refused with 422 for the caller themself and with
|
|
267
|
+
# 403 for the owner.
|
|
268
|
+
#
|
|
237
269
|
# @param request_options [Hash]
|
|
238
270
|
# @param params [Nordlet::Account::Types::MembersRemoveAccountRequest]
|
|
239
271
|
# @option request_options [String] :base_url
|
|
@@ -266,6 +298,10 @@ module Nordlet
|
|
|
266
298
|
end
|
|
267
299
|
end
|
|
268
300
|
|
|
301
|
+
# Create an invitation to the active company for an e-mail address with the given role and send it by e-mail in
|
|
302
|
+
# `locale`; owners and admins may call it. The invitation is valid for 7 days and replaces an earlier pending one
|
|
303
|
+
# for the same address. Refused with 409 when the address already belongs to a member.
|
|
304
|
+
#
|
|
269
305
|
# @param request_options [Hash]
|
|
270
306
|
# @param params [Nordlet::Account::Types::InvitesCreateAccountRequest]
|
|
271
307
|
# @option request_options [String] :base_url
|
|
@@ -298,6 +334,8 @@ module Nordlet
|
|
|
298
334
|
end
|
|
299
335
|
end
|
|
300
336
|
|
|
337
|
+
# List the pending invitations of the active company; `expired` marks those past their expiry.
|
|
338
|
+
#
|
|
301
339
|
# @param request_options [Hash]
|
|
302
340
|
# @param params [Nordlet::Account::Types::InvitesListAccountRequest]
|
|
303
341
|
# @option request_options [String] :base_url
|
|
@@ -330,6 +368,8 @@ module Nordlet
|
|
|
330
368
|
end
|
|
331
369
|
end
|
|
332
370
|
|
|
371
|
+
# Delete a pending invitation of the active company.
|
|
372
|
+
#
|
|
333
373
|
# @param request_options [Hash]
|
|
334
374
|
# @param params [Nordlet::Account::Types::InvitesRevokeAccountRequest]
|
|
335
375
|
# @option request_options [String] :base_url
|
|
@@ -362,6 +402,10 @@ module Nordlet
|
|
|
362
402
|
end
|
|
363
403
|
end
|
|
364
404
|
|
|
405
|
+
# Read a pending invitation by its token: the invited address, role and company name, whether it has expired and
|
|
406
|
+
# whether an account with that address already exists (`userExists`), in which case `account/invites/accept` must
|
|
407
|
+
# be called signed in as that account.
|
|
408
|
+
#
|
|
365
409
|
# @param request_options [Hash]
|
|
366
410
|
# @param params [Nordlet::Account::Types::InvitesGetAccountRequest]
|
|
367
411
|
# @option request_options [String] :base_url
|
|
@@ -394,6 +438,11 @@ module Nordlet
|
|
|
394
438
|
end
|
|
395
439
|
end
|
|
396
440
|
|
|
441
|
+
# Accept an invitation and return a session with the invited company active. When the address has no account, one
|
|
442
|
+
# is created with `name` and `locale`, which is refused with 422 unless `acceptTerms` and `acceptDpa` are true;
|
|
443
|
+
# when it has one, the call must be made signed in as that account (401 otherwise). An expired invitation is
|
|
444
|
+
# refused with 422.
|
|
445
|
+
#
|
|
397
446
|
# @param request_options [Hash]
|
|
398
447
|
# @param params [Nordlet::Account::Types::InvitesAcceptAccountRequest]
|
|
399
448
|
# @option request_options [String] :base_url
|
|
@@ -426,6 +475,9 @@ module Nordlet
|
|
|
426
475
|
end
|
|
427
476
|
end
|
|
428
477
|
|
|
478
|
+
# Set the user's language: with an active company it is stored on their membership of that company (`scope` =
|
|
479
|
+
# `membership`), otherwise on the user (`scope` = `user`).
|
|
480
|
+
#
|
|
429
481
|
# @param request_options [Hash]
|
|
430
482
|
# @param params [Nordlet::Account::Types::LocaleSetAccountRequest]
|
|
431
483
|
# @option request_options [String] :base_url
|
|
@@ -458,6 +510,11 @@ module Nordlet
|
|
|
458
510
|
end
|
|
459
511
|
end
|
|
460
512
|
|
|
513
|
+
# Create a company with the caller as its owner and payer, seed its chart of accounts from the template of
|
|
514
|
+
# `countryCode`, and make it the active company of the session. `timeZone` defaults to the country's, `isVatPayer`
|
|
515
|
+
# to true and `defaultInvoiceCurrency` to the base currency. Refused with 422 when `baseCurrency` is not a
|
|
516
|
+
# supported currency.
|
|
517
|
+
#
|
|
461
518
|
# @param request_options [Hash]
|
|
462
519
|
# @param params [Nordlet::Account::Types::CompaniesCreateAccountRequest]
|
|
463
520
|
# @option request_options [String] :base_url
|
|
@@ -490,6 +547,9 @@ module Nordlet
|
|
|
490
547
|
end
|
|
491
548
|
end
|
|
492
549
|
|
|
550
|
+
# Make one of the caller's companies the active company of the session. Refused with 403 when the caller is not a
|
|
551
|
+
# member and with 422 when the company is archived or deleted.
|
|
552
|
+
#
|
|
493
553
|
# @param request_options [Hash]
|
|
494
554
|
# @param params [Nordlet::Account::Types::CompaniesSelectAccountRequest]
|
|
495
555
|
# @option request_options [String] :base_url
|
|
@@ -522,6 +582,8 @@ module Nordlet
|
|
|
522
582
|
end
|
|
523
583
|
end
|
|
524
584
|
|
|
585
|
+
# Return the profile of the active company.
|
|
586
|
+
#
|
|
525
587
|
# @param request_options [Hash]
|
|
526
588
|
# @param params [Nordlet::Account::Types::CompaniesProfileAccountRequest]
|
|
527
589
|
# @option request_options [String] :base_url
|
|
@@ -554,6 +616,10 @@ module Nordlet
|
|
|
554
616
|
end
|
|
555
617
|
end
|
|
556
618
|
|
|
619
|
+
# Change the profile of the active company; owners and admins may call it. Only the fields sent are changed, and
|
|
620
|
+
# the nullable ones can be sent as null to clear them. `logo` stores a base64-encoded image as a file of the
|
|
621
|
+
# company and sets `logoFileId`. The country, base currency and sandbox flag are fixed at creation.
|
|
622
|
+
#
|
|
557
623
|
# @param request_options [Hash]
|
|
558
624
|
# @param params [Nordlet::Account::Types::CompaniesUpdateAccountRequest]
|
|
559
625
|
# @option request_options [String] :base_url
|
|
@@ -586,6 +652,9 @@ module Nordlet
|
|
|
586
652
|
end
|
|
587
653
|
end
|
|
588
654
|
|
|
655
|
+
# Set the company named by `companyId` to `archived`; the caller must be its owner. Every session that had it
|
|
656
|
+
# active loses it. Refused with 409 unless the company is active; `account/companies/activate` reverses it.
|
|
657
|
+
#
|
|
589
658
|
# @param request_options [Hash]
|
|
590
659
|
# @param params [Nordlet::Account::Types::CompaniesArchiveAccountRequest]
|
|
591
660
|
# @option request_options [String] :base_url
|
|
@@ -618,6 +687,11 @@ module Nordlet
|
|
|
618
687
|
end
|
|
619
688
|
end
|
|
620
689
|
|
|
690
|
+
# Set the company named by `companyId` to `deleted`; the caller must be its owner, and every session that had it
|
|
691
|
+
# active loses it. A sandbox company is purged at once; any other is purged by the scheduled purge after
|
|
692
|
+
# `purgeAfter` (10 days) and can be restored until then with `account/companies/activate`. Refused with 409 when
|
|
693
|
+
# it is already deleted.
|
|
694
|
+
#
|
|
621
695
|
# @param request_options [Hash]
|
|
622
696
|
# @param params [Nordlet::Account::Types::CompaniesDeleteAccountRequest]
|
|
623
697
|
# @option request_options [String] :base_url
|
|
@@ -650,6 +724,9 @@ module Nordlet
|
|
|
650
724
|
end
|
|
651
725
|
end
|
|
652
726
|
|
|
727
|
+
# Set an archived or deleted company named by `companyId` back to `active`; the caller must be its owner. Refused
|
|
728
|
+
# with 409 when it is already active.
|
|
729
|
+
#
|
|
653
730
|
# @param request_options [Hash]
|
|
654
731
|
# @param params [Nordlet::Account::Types::CompaniesActivateAccountRequest]
|
|
655
732
|
# @option request_options [String] :base_url
|
|
@@ -682,6 +759,10 @@ module Nordlet
|
|
|
682
759
|
end
|
|
683
760
|
end
|
|
684
761
|
|
|
762
|
+
# Create an API key for the active company and return the key itself once; owners, admins and developers may call
|
|
763
|
+
# it. `scopes` defaults to the caller's own scopes and may not exceed them (403); without `expiresInDays` the key
|
|
764
|
+
# does not expire.
|
|
765
|
+
#
|
|
685
766
|
# @param request_options [Hash]
|
|
686
767
|
# @param params [Nordlet::Account::Types::APIKeysCreateAccountRequest]
|
|
687
768
|
# @option request_options [String] :base_url
|
|
@@ -714,6 +795,8 @@ module Nordlet
|
|
|
714
795
|
end
|
|
715
796
|
end
|
|
716
797
|
|
|
798
|
+
# List the API keys of the active company, including expired and revoked ones.
|
|
799
|
+
#
|
|
717
800
|
# @param request_options [Hash]
|
|
718
801
|
# @param params [Nordlet::Account::Types::APIKeysListAccountRequest]
|
|
719
802
|
# @option request_options [String] :base_url
|
|
@@ -746,6 +829,10 @@ module Nordlet
|
|
|
746
829
|
end
|
|
747
830
|
end
|
|
748
831
|
|
|
832
|
+
# Create a new key with the name and scopes of the key `id` and return it once; the old key keeps working for
|
|
833
|
+
# `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the
|
|
834
|
+
# new key. Refused with 409 when the old key is revoked.
|
|
835
|
+
#
|
|
749
836
|
# @param request_options [Hash]
|
|
750
837
|
# @param params [Nordlet::Account::Types::APIKeysRotateAccountRequest]
|
|
751
838
|
# @option request_options [String] :base_url
|
|
@@ -778,6 +865,8 @@ module Nordlet
|
|
|
778
865
|
end
|
|
779
866
|
end
|
|
780
867
|
|
|
868
|
+
# Revoke an API key of the active company at once.
|
|
869
|
+
#
|
|
781
870
|
# @param request_options [Hash]
|
|
782
871
|
# @param params [Nordlet::Account::Types::APIKeysRevokeAccountRequest]
|
|
783
872
|
# @option request_options [String] :base_url
|
|
@@ -810,6 +899,9 @@ module Nordlet
|
|
|
810
899
|
end
|
|
811
900
|
end
|
|
812
901
|
|
|
902
|
+
# Record the signed-in user's acceptance of the current Terms of Service and Data Processing Agreement versions
|
|
903
|
+
# and return the consent state.
|
|
904
|
+
#
|
|
813
905
|
# @param request_options [Hash]
|
|
814
906
|
# @param params [Nordlet::Account::Types::ConsentAcceptAccountRequest]
|
|
815
907
|
# @option request_options [String] :base_url
|
|
@@ -842,6 +934,8 @@ module Nordlet
|
|
|
842
934
|
end
|
|
843
935
|
end
|
|
844
936
|
|
|
937
|
+
# Set the signed-in user's name; null or a blank string clears it.
|
|
938
|
+
#
|
|
845
939
|
# @param request_options [Hash]
|
|
846
940
|
# @param params [Nordlet::Account::Types::ProfileUpdateAccountRequest]
|
|
847
941
|
# @option request_options [String] :base_url
|
|
@@ -874,6 +968,11 @@ module Nordlet
|
|
|
874
968
|
end
|
|
875
969
|
end
|
|
876
970
|
|
|
971
|
+
# Send a confirmation link to `newEmail`; the address changes when that link is consumed with
|
|
972
|
+
# `account/login-link/consume`. When an unused link was sent to the address within the last minute, the call
|
|
973
|
+
# answers `sent` without sending another. Refused with 422 when it is already the user's address and with 409 when
|
|
974
|
+
# another account has it.
|
|
975
|
+
#
|
|
877
976
|
# @param request_options [Hash]
|
|
878
977
|
# @param params [Nordlet::Account::Types::EmailChangeRequestAccountRequest]
|
|
879
978
|
# @option request_options [String] :base_url
|
|
@@ -906,6 +1005,8 @@ module Nordlet
|
|
|
906
1005
|
end
|
|
907
1006
|
end
|
|
908
1007
|
|
|
1008
|
+
# List the signed-in user's sessions that have not expired; `current` marks the one the call was made with.
|
|
1009
|
+
#
|
|
909
1010
|
# @param request_options [Hash]
|
|
910
1011
|
# @param params [Nordlet::Account::Types::SessionsListAccountRequest]
|
|
911
1012
|
# @option request_options [String] :base_url
|
|
@@ -938,6 +1039,8 @@ module Nordlet
|
|
|
938
1039
|
end
|
|
939
1040
|
end
|
|
940
1041
|
|
|
1042
|
+
# Delete one of the signed-in user's sessions.
|
|
1043
|
+
#
|
|
941
1044
|
# @param request_options [Hash]
|
|
942
1045
|
# @param params [Nordlet::Account::Types::SessionsRevokeAccountRequest]
|
|
943
1046
|
# @option request_options [String] :base_url
|
|
@@ -970,6 +1073,9 @@ module Nordlet
|
|
|
970
1073
|
end
|
|
971
1074
|
end
|
|
972
1075
|
|
|
1076
|
+
# Delete every session of the signed-in user except the one the call was made with, and return how many were
|
|
1077
|
+
# deleted.
|
|
1078
|
+
#
|
|
973
1079
|
# @param request_options [Hash]
|
|
974
1080
|
# @param params [Nordlet::Account::Types::SessionsRevokeOthersAccountRequest]
|
|
975
1081
|
# @option request_options [String] :base_url
|
|
@@ -1002,6 +1108,9 @@ module Nordlet
|
|
|
1002
1108
|
end
|
|
1003
1109
|
end
|
|
1004
1110
|
|
|
1111
|
+
# Return the user's profile, consent state, memberships, unexpired sessions, billing account, credit transactions
|
|
1112
|
+
# and the audit entries they made in their companies (the most recent 5000 of each of the last two).
|
|
1113
|
+
#
|
|
1005
1114
|
# @param request_options [Hash]
|
|
1006
1115
|
# @param params [Nordlet::Account::Types::ExportAccountRequest]
|
|
1007
1116
|
# @option request_options [String] :base_url
|
|
@@ -1070,6 +1179,10 @@ module Nordlet
|
|
|
1070
1179
|
end
|
|
1071
1180
|
end
|
|
1072
1181
|
|
|
1182
|
+
# Return the user's referral code (allocated on first call) and sign-up link, their points balance, the number of
|
|
1183
|
+
# accounts they referred and the last 50 points entries. `rates.perEur` is the points the referrer earns per euro
|
|
1184
|
+
# a referred user tops up, `rates.pointCents` the credit one point converts to with `account/referral/convert`.
|
|
1185
|
+
#
|
|
1073
1186
|
# @param request_options [Hash]
|
|
1074
1187
|
# @param params [Nordlet::Account::Types::ReferralGetAccountRequest]
|
|
1075
1188
|
# @option request_options [String] :base_url
|
|
@@ -1102,6 +1215,10 @@ module Nordlet
|
|
|
1102
1215
|
end
|
|
1103
1216
|
end
|
|
1104
1217
|
|
|
1218
|
+
# Convert `points` of the user's referral points into credit on their billing account at `rates.pointCents` per
|
|
1219
|
+
# point, booked as an `adjustment` credit transaction; a billing account past its trial is set to active when the
|
|
1220
|
+
# new balance allows. Refused with 422 when the user has fewer points than requested.
|
|
1221
|
+
#
|
|
1105
1222
|
# @param request_options [Hash]
|
|
1106
1223
|
# @param params [Nordlet::Account::Types::ReferralConvertAccountRequest]
|
|
1107
1224
|
# @option request_options [String] :base_url
|
|
@@ -1134,6 +1251,9 @@ module Nordlet
|
|
|
1134
1251
|
end
|
|
1135
1252
|
end
|
|
1136
1253
|
|
|
1254
|
+
# Return the signed-in user's saved column list and page size for the table `tableKey`; both are null when nothing
|
|
1255
|
+
# is saved.
|
|
1256
|
+
#
|
|
1137
1257
|
# @param request_options [Hash]
|
|
1138
1258
|
# @param params [Nordlet::Account::Types::TableSettingsGetAccountRequest]
|
|
1139
1259
|
# @option request_options [String] :base_url
|
|
@@ -1166,6 +1286,9 @@ module Nordlet
|
|
|
1166
1286
|
end
|
|
1167
1287
|
end
|
|
1168
1288
|
|
|
1289
|
+
# Save the signed-in user's column list and page size for the table `tableKey`; only the fields sent are changed,
|
|
1290
|
+
# and null clears one.
|
|
1291
|
+
#
|
|
1169
1292
|
# @param request_options [Hash]
|
|
1170
1293
|
# @param params [Nordlet::Account::Types::TableSettingsSetAccountRequest]
|
|
1171
1294
|
# @option request_options [String] :base_url
|
|
@@ -1198,6 +1321,8 @@ module Nordlet
|
|
|
1198
1321
|
end
|
|
1199
1322
|
end
|
|
1200
1323
|
|
|
1324
|
+
# List the signed-in user's saved table settings.
|
|
1325
|
+
#
|
|
1201
1326
|
# @param request_options [Hash]
|
|
1202
1327
|
# @param params [Nordlet::Account::Types::TableSettingsListAccountRequest]
|
|
1203
1328
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,8 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Return whether automatic agreement billing is switched on for the company.
|
|
14
|
+
#
|
|
13
15
|
# @param request_options [Hash]
|
|
14
16
|
# @param params [Nordlet::Agreements::Types::SettingsGetAgreementsRequest]
|
|
15
17
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +44,9 @@ module Nordlet
|
|
|
42
44
|
end
|
|
43
45
|
end
|
|
44
46
|
|
|
47
|
+
# Switch automatic agreement billing on or off for the company. With it on, a scheduled job runs the same billing
|
|
48
|
+
# as `agreements/agreements/billing/run` for the company once a day.
|
|
49
|
+
#
|
|
45
50
|
# @param request_options [Hash]
|
|
46
51
|
# @param params [Nordlet::Agreements::Types::SettingsUpdateAgreementsRequest]
|
|
47
52
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +79,9 @@ module Nordlet
|
|
|
74
79
|
end
|
|
75
80
|
end
|
|
76
81
|
|
|
82
|
+
# Create an agreement type with a `code` and a `name`. Answers 409 when the company already has a type with that
|
|
83
|
+
# code.
|
|
84
|
+
#
|
|
77
85
|
# @param request_options [Hash]
|
|
78
86
|
# @param params [Nordlet::Agreements::Types::TypesCreateAgreementsRequest]
|
|
79
87
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +114,8 @@ module Nordlet
|
|
|
106
114
|
end
|
|
107
115
|
end
|
|
108
116
|
|
|
117
|
+
# List the company's agreement types. Filterable and sortable by `code` and `name`.
|
|
118
|
+
#
|
|
109
119
|
# @param request_options [Hash]
|
|
110
120
|
# @param params [Nordlet::Agreements::Types::TypesListAgreementsRequest]
|
|
111
121
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +148,11 @@ module Nordlet
|
|
|
138
148
|
end
|
|
139
149
|
end
|
|
140
150
|
|
|
151
|
+
# Create an agreement for exactly one party, a partner, an employee or a bank account, which must exist in the
|
|
152
|
+
# company (400 otherwise). Without `kind`, an employee agreement is `employment`, a bank account agreement is
|
|
153
|
+
# `bank` and a partner agreement is `other`; a `documentRef` (the `storageKey` of an uploaded file) attaches that
|
|
154
|
+
# file to the agreement. Answers 409 when the company already has an agreement with that `number`.
|
|
155
|
+
#
|
|
141
156
|
# @param request_options [Hash]
|
|
142
157
|
# @param params [Nordlet::Agreements::Types::AgreementsCreateAgreementsRequest]
|
|
143
158
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +185,8 @@ module Nordlet
|
|
|
170
185
|
end
|
|
171
186
|
end
|
|
172
187
|
|
|
188
|
+
# Return one agreement with its items.
|
|
189
|
+
#
|
|
173
190
|
# @param request_options [Hash]
|
|
174
191
|
# @param params [Nordlet::Agreements::Types::AgreementsGetAgreementsRequest]
|
|
175
192
|
# @option request_options [String] :base_url
|
|
@@ -202,6 +219,9 @@ module Nordlet
|
|
|
202
219
|
end
|
|
203
220
|
end
|
|
204
221
|
|
|
222
|
+
# Change the given fields of an agreement and return it with its items. The party, `number`, `startDate`,
|
|
223
|
+
# `currency` and items are not changed by this call.
|
|
224
|
+
#
|
|
205
225
|
# @param request_options [Hash]
|
|
206
226
|
# @param params [Nordlet::Agreements::Types::AgreementsUpdateAgreementsRequest]
|
|
207
227
|
# @option request_options [String] :base_url
|
|
@@ -234,6 +254,8 @@ module Nordlet
|
|
|
234
254
|
end
|
|
235
255
|
end
|
|
236
256
|
|
|
257
|
+
# Mark an agreement as deleted. It is no longer returned, changed or billed.
|
|
258
|
+
#
|
|
237
259
|
# @param request_options [Hash]
|
|
238
260
|
# @param params [Nordlet::Agreements::Types::AgreementsDeleteAgreementsRequest]
|
|
239
261
|
# @option request_options [String] :base_url
|
|
@@ -266,6 +288,10 @@ module Nordlet
|
|
|
266
288
|
end
|
|
267
289
|
end
|
|
268
290
|
|
|
291
|
+
# List the company's agreements without their items, each with `partnerName`. Filterable by `number`, `name`,
|
|
292
|
+
# `partnerId`, `employeeId`, `bankAccountId`, `kind`, `typeId`, `status`, `startDate`, `endDate` and `value`;
|
|
293
|
+
# sortable by `number`, `startDate` and `createdAt` (default `startDate` descending).
|
|
294
|
+
#
|
|
269
295
|
# @param request_options [Hash]
|
|
270
296
|
# @param params [Nordlet::Agreements::Types::AgreementsListAgreementsRequest]
|
|
271
297
|
# @option request_options [String] :base_url
|
|
@@ -298,6 +324,15 @@ module Nordlet
|
|
|
298
324
|
end
|
|
299
325
|
end
|
|
300
326
|
|
|
327
|
+
# Create a draft sale invoice for the next unbilled period of an active agreement that has a partner and a
|
|
328
|
+
# `billingPeriod`. The period follows the monthly, quarterly or annual grid from `startDate`, continues after the
|
|
329
|
+
# last period already invoiced for the agreement, and is prorated by days when it starts late or is cut by
|
|
330
|
+
# `endDate`; an `autoRenew` agreement has its `endDate` moved forward by whole terms instead (`renewedEndDate`).
|
|
331
|
+
# The lines come from the agreement items, else one line of `value`, with revenue recognised ratably over the
|
|
332
|
+
# period. Answers 422 when the agreement is not active, has no partner, billing period, items or value, carries
|
|
333
|
+
# VAT while the company is not a VAT payer, is fully billed through its end date, or when the next period starts
|
|
334
|
+
# after `asOfDate` (default today). Emits `agreement.invoice_generated`.
|
|
335
|
+
#
|
|
301
336
|
# @param request_options [Hash]
|
|
302
337
|
# @param params [Nordlet::Agreements::Types::AgreementsGenerateInvoiceAgreementsRequest]
|
|
303
338
|
# @option request_options [String] :base_url
|
|
@@ -330,6 +365,12 @@ module Nordlet
|
|
|
330
365
|
end
|
|
331
366
|
end
|
|
332
367
|
|
|
368
|
+
# Generate the invoices due up to `asOfDate` (default today) for every active agreement of the company that has a
|
|
369
|
+
# partner and a billing period, one invoice per period and at most 60 per agreement in one run, in the same way as
|
|
370
|
+
# `agreements/agreements/generate-invoice`. An agreement that is fully billed and whose `endDate` has passed is
|
|
371
|
+
# set to `expired`. A failing agreement is listed in `errors` and does not stop the run. Each invoice emits
|
|
372
|
+
# `agreement.invoice_generated`.
|
|
373
|
+
#
|
|
333
374
|
# @param request_options [Hash]
|
|
334
375
|
# @param params [Nordlet::Agreements::Types::AgreementsBillingRunAgreementsRequest]
|
|
335
376
|
# @option request_options [String] :base_url
|
|
@@ -362,6 +403,9 @@ module Nordlet
|
|
|
362
403
|
end
|
|
363
404
|
end
|
|
364
405
|
|
|
406
|
+
# Create an insurance policy. Answers 422 when `toDate` is before `fromDate`, 400 when `insurerPartnerId` is not a
|
|
407
|
+
# partner of the company, and 409 when the company already has a policy with that `policyNumber`.
|
|
408
|
+
#
|
|
365
409
|
# @param request_options [Hash]
|
|
366
410
|
# @param params [Nordlet::Agreements::Types::InsurancePoliciesCreateAgreementsRequest]
|
|
367
411
|
# @option request_options [String] :base_url
|
|
@@ -394,6 +438,9 @@ module Nordlet
|
|
|
394
438
|
end
|
|
395
439
|
end
|
|
396
440
|
|
|
441
|
+
# List the company's insurance policies. Filterable by `policyNumber`, `insurerPartnerId` and `toDate`; sortable
|
|
442
|
+
# by `policyNumber` and `toDate` (default `toDate` descending).
|
|
443
|
+
#
|
|
397
444
|
# @param request_options [Hash]
|
|
398
445
|
# @param params [Nordlet::Agreements::Types::InsurancePoliciesListAgreementsRequest]
|
|
399
446
|
# @option request_options [String] :base_url
|
|
@@ -426,6 +473,8 @@ module Nordlet
|
|
|
426
473
|
end
|
|
427
474
|
end
|
|
428
475
|
|
|
476
|
+
# Mark an insurance policy as deleted.
|
|
477
|
+
#
|
|
429
478
|
# @param request_options [Hash]
|
|
430
479
|
# @param params [Nordlet::Agreements::Types::InsurancePoliciesDeleteAgreementsRequest]
|
|
431
480
|
# @option request_options [String] :base_url
|
|
@@ -10,6 +10,8 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Return the company's fixed asset setting `autoDepreciation`.
|
|
14
|
+
#
|
|
13
15
|
# @param request_options [Hash]
|
|
14
16
|
# @param params [Nordlet::Assets::Types::SettingsGetAssetsRequest]
|
|
15
17
|
# @option request_options [String] :base_url
|
|
@@ -42,6 +44,9 @@ module Nordlet
|
|
|
42
44
|
end
|
|
43
45
|
end
|
|
44
46
|
|
|
47
|
+
# Turn automatic depreciation on or off. When it is on, the scheduler posts the previous month's depreciation for
|
|
48
|
+
# the company once a day, as `assets/depreciation/post` does.
|
|
49
|
+
#
|
|
45
50
|
# @param request_options [Hash]
|
|
46
51
|
# @param params [Nordlet::Assets::Types::SettingsUpdateAssetsRequest]
|
|
47
52
|
# @option request_options [String] :base_url
|
|
@@ -74,6 +79,11 @@ module Nordlet
|
|
|
74
79
|
end
|
|
75
80
|
end
|
|
76
81
|
|
|
82
|
+
# Create an asset group: the asset, accumulated depreciation and depreciation expense accounts its assets are
|
|
83
|
+
# posted to, and an optional default useful life in months. `expenseAccountCode` defaults to the chart's
|
|
84
|
+
# depreciation expense account; each account must exist and be postable (422). A duplicate code is refused with
|
|
85
|
+
# 409.
|
|
86
|
+
#
|
|
77
87
|
# @param request_options [Hash]
|
|
78
88
|
# @param params [Nordlet::Assets::Types::GroupsCreateAssetsRequest]
|
|
79
89
|
# @option request_options [String] :base_url
|
|
@@ -106,6 +116,8 @@ module Nordlet
|
|
|
106
116
|
end
|
|
107
117
|
end
|
|
108
118
|
|
|
119
|
+
# List the asset groups; filterable and sortable by `code` and `name`.
|
|
120
|
+
#
|
|
109
121
|
# @param request_options [Hash]
|
|
110
122
|
# @param params [Nordlet::Assets::Types::GroupsListAssetsRequest]
|
|
111
123
|
# @option request_options [String] :base_url
|
|
@@ -138,6 +150,11 @@ module Nordlet
|
|
|
138
150
|
end
|
|
139
151
|
end
|
|
140
152
|
|
|
153
|
+
# Register a fixed asset in a group with its acquisition date and cost, salvage value, useful life in months
|
|
154
|
+
# (defaults to the group's default; 422 when neither is set) and depreciation start date (defaults to the
|
|
155
|
+
# acquisition date). The salvage value must be below the acquisition cost (422); a duplicate code is refused with
|
|
156
|
+
# 409. Depreciation is posted with `assets/depreciation/post`.
|
|
157
|
+
#
|
|
141
158
|
# @param request_options [Hash]
|
|
142
159
|
# @param params [Nordlet::Assets::Types::AssetsCreateAssetsRequest]
|
|
143
160
|
# @option request_options [String] :base_url
|
|
@@ -170,6 +187,10 @@ module Nordlet
|
|
|
170
187
|
end
|
|
171
188
|
end
|
|
172
189
|
|
|
190
|
+
# Change an asset that has no posted depreciation yet: group, code, name, dates, cost, salvage value, useful life,
|
|
191
|
+
# notes or documents. Refused with 409 once depreciation is posted or the asset is disposed, and with 422 when the
|
|
192
|
+
# salvage value would reach the acquisition cost; a duplicate code is 409.
|
|
193
|
+
#
|
|
173
194
|
# @param request_options [Hash]
|
|
174
195
|
# @param params [Nordlet::Assets::Types::AssetsUpdateAssetsRequest]
|
|
175
196
|
# @option request_options [String] :base_url
|
|
@@ -240,6 +261,9 @@ module Nordlet
|
|
|
240
261
|
end
|
|
241
262
|
end
|
|
242
263
|
|
|
264
|
+
# Return one fixed asset with its totals (cost including modernisations, accumulated depreciation, net book value,
|
|
265
|
+
# total life in months), its input VAT facts and its disposal.
|
|
266
|
+
#
|
|
243
267
|
# @param request_options [Hash]
|
|
244
268
|
# @param params [Nordlet::Assets::Types::AssetsGetAssetsRequest]
|
|
245
269
|
# @option request_options [String] :base_url
|
|
@@ -272,6 +296,9 @@ module Nordlet
|
|
|
272
296
|
end
|
|
273
297
|
end
|
|
274
298
|
|
|
299
|
+
# List the fixed assets; filterable by `code`, `name`, `groupId`, `status`, `acquisitionDate`, `acquisitionCost`
|
|
300
|
+
# and `accumulatedDepreciation`, sortable by `code`, `name`, `acquisitionDate` and `acquisitionCost`.
|
|
301
|
+
#
|
|
275
302
|
# @param request_options [Hash]
|
|
276
303
|
# @param params [Nordlet::Assets::Types::AssetsListAssetsRequest]
|
|
277
304
|
# @option request_options [String] :base_url
|
|
@@ -304,6 +331,11 @@ module Nordlet
|
|
|
304
331
|
end
|
|
305
332
|
end
|
|
306
333
|
|
|
334
|
+
# Record a modernisation of a fixed asset: `amount` is added to its cost and `addedLifeMonths` to its useful life
|
|
335
|
+
# from the month of `date` on, and the remaining depreciable value is spread over the months left. Refused with
|
|
336
|
+
# 422 when the asset is disposed or when no depreciation month would be left (give `addedLifeMonths` of at least
|
|
337
|
+
# 1); a fully depreciated asset becomes active again.
|
|
338
|
+
#
|
|
307
339
|
# @param request_options [Hash]
|
|
308
340
|
# @param params [Nordlet::Assets::Types::AssetsModernizeAssetsRequest]
|
|
309
341
|
# @option request_options [String] :base_url
|
|
@@ -373,6 +405,9 @@ module Nordlet
|
|
|
373
405
|
end
|
|
374
406
|
end
|
|
375
407
|
|
|
408
|
+
# Preview what `assets/depreciation/post` would post for a month: per active asset the amount and the months it
|
|
409
|
+
# covers, earlier unposted months included, and whether the month is already posted. Nothing is written.
|
|
410
|
+
#
|
|
376
411
|
# @param request_options [Hash]
|
|
377
412
|
# @param params [Nordlet::Assets::Types::DepreciationPreviewAssetsRequest]
|
|
378
413
|
# @option request_options [String] :base_url
|
|
@@ -405,6 +440,13 @@ module Nordlet
|
|
|
405
440
|
end
|
|
406
441
|
end
|
|
407
442
|
|
|
443
|
+
# Post the depreciation of a month: one journal entry dated the last day of the month that debits each group's
|
|
444
|
+
# expense account and credits its accumulated depreciation account, for every active asset whose depreciation has
|
|
445
|
+
# started, covering that month and any earlier month not yet posted. Each month's amount is the remaining
|
|
446
|
+
# depreciable value (cost plus modernisations less salvage value less accumulated depreciation) divided by the
|
|
447
|
+
# months left; an asset whose life or value is used up becomes `fully_depreciated`. Answers 409 when the period is
|
|
448
|
+
# locked, and `journalTransactionId` null when nothing is due.
|
|
449
|
+
#
|
|
408
450
|
# @param request_options [Hash]
|
|
409
451
|
# @param params [Nordlet::Assets::Types::DepreciationPostAssetsRequest]
|
|
410
452
|
# @option request_options [String] :base_url
|
data/lib/nordlet/audit/client.rb
CHANGED
|
@@ -10,6 +10,10 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# List the audit log of the company: who did what to which entity, with the recorded change in `diff`. Filterable
|
|
14
|
+
# by `action`, `entity`, `entityId`, `actorType` and `actorId`; sortable by `createdAt` and `id`, newest first by
|
|
15
|
+
# default.
|
|
16
|
+
#
|
|
13
17
|
# @param request_options [Hash]
|
|
14
18
|
# @param params [Nordlet::Audit::Types::ListAuditRequest]
|
|
15
19
|
# @option request_options [String] :base_url
|