nordlet 0.5.7 → 0.6.3
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 +133 -16
- data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +0 -2
- data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +1 -0
- data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +1 -0
- data/lib/nordlet/account/types/email_change_request_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/export_account_response.rb +2 -0
- data/lib/nordlet/account/types/export_account_response_billing_accounts_item.rb +21 -0
- data/lib/nordlet/account/types/export_account_response_billing_accounts_item_site.rb +14 -0
- data/lib/nordlet/account/types/export_account_response_credit_transactions_item.rb +2 -0
- data/lib/nordlet/account/types/export_account_response_credit_transactions_item_site.rb +14 -0
- data/lib/nordlet/account/types/invites_accept_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/invites_create_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/locale_set_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/login_link_request_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/oauth_authorize_approve_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_approve_account_response.rb +11 -0
- data/lib/nordlet/account/types/oauth_authorize_deny_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_deny_account_response.rb +11 -0
- data/lib/nordlet/account/types/oauth_authorize_describe_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_describe_account_response.rb +17 -0
- data/lib/nordlet/agreements/types/agreements_create_agreements_request_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_create_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_get_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_update_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/bank/client.rb +4 -3
- data/lib/nordlet/bank/types/import_templates_create_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_create_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_get_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_list_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_list_builtin_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_update_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_update_bank_response.rb +2 -0
- data/lib/nordlet/billing/client.rb +42 -31
- data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/portal_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/topup_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item.rb +2 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_site.rb +14 -0
- data/lib/nordlet/catalog/types/units_options_catalog_request_locale.rb +30 -0
- data/lib/nordlet/ecommerce/types/orders_cancel_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_create_ecommerce_request_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_create_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_fulfill_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_get_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_reserve_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/partners/types/debt_reminders_preview_partners_response_rows_item_locale.rb +30 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/payroll/types/payments_export_payroll_request_locale.rb +30 -0
- data/lib/nordlet/reference/client.rb +5 -2
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item.rb +8 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_rate_from_line.rb +13 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +21 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_side.rb +15 -0
- data/lib/nordlet/sales/client.rb +3 -2
- data/lib/nordlet/sales/types/acts_pdf_sales_request_locale.rb +30 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +1 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +21 -0
- data/reference.md +394 -24
- metadata +23 -2
data/reference.md
CHANGED
|
@@ -997,7 +997,7 @@ client.reference.currencies_list
|
|
|
997
997
|
<dl>
|
|
998
998
|
<dd>
|
|
999
999
|
|
|
1000
|
-
Lists the company's VAT
|
|
1000
|
+
Lists the company's VAT types (code, country, name and rate). A document line names one in `vatClassifierCode` and takes its rate, VAT scheme and return boxes from it; a company that has VAT types refuses a line without one (422). `side` says whether the type is for sale lines, purchase lines or both, `scheme` is its VAT scheme and `nameEn` its English name; both are null for a type the company added itself. A type without a rate takes the line's `vatRatePercent` on the sides where `rateFromLine` is true, and 0% elsewhere. Filterable by `code`, `countryCode` and `ratePercent`; sortable by `code` and `ratePercent`.
|
|
1001
1001
|
</dd>
|
|
1002
1002
|
</dl>
|
|
1003
1003
|
</dd>
|
|
@@ -12044,7 +12044,7 @@ client.sales.invoices_unlock(id: "id")
|
|
|
12044
12044
|
<dl>
|
|
12045
12045
|
<dd>
|
|
12046
12046
|
|
|
12047
|
-
Return the customer payment link of a sale document: the Stripe card payment page (`source` `stripe`) when the company's Stripe account is connected and can take charges (`sales/invoices/card-payments/get`), else the link rendered from the company's payment link template (`sales/invoices/payment-settings/update`, `source` `template`); `url` is null when the company has neither, the document is not issued or its `payLinkEnabled` is false. The document's payment token is created on first use. Answers 409 when the document is already paid.
|
|
12047
|
+
Return the customer payment link of a sale document: the Stripe card payment page (`source` `stripe`) when the company's Stripe account is connected and can take charges (`sales/invoices/card-payments/get`), else the link rendered from the company's payment link template (`sales/invoices/payment-settings/update`, `source` `template`); `url` is null when the company has neither, the document is a credit note, is not issued or its `payLinkEnabled` is false. The document's payment token is created on first use. Answers 409 when the document is already paid.
|
|
12048
12048
|
</dd>
|
|
12049
12049
|
</dl>
|
|
12050
12050
|
</dd>
|
|
@@ -48150,7 +48150,7 @@ client.bank.payments_export(
|
|
|
48150
48150
|
<dl>
|
|
48151
48151
|
<dd>
|
|
48152
48152
|
|
|
48153
|
-
A template of type stripe, iso20022, revolut or bank_connection names the fields of the file or feed: a field with an `accountCode` is posted to that ledger account on import, a field with `createPartner` creates the customer, supplier or fee partner. `invoiceMetaField` is the Stripe metadata key (stripe) or the reference field (other types) by which payments are linked to invoices; with it `invoiceVatRatePercent`, `invoiceItemId` and, outside Stripe, `advanceInvoices` apply. `companyMetaField`, `lenderMetaField`, the operation types and the refund labels are for Stripe templates only. A template with the same name already existing answers 409.
|
|
48153
|
+
A template of type stripe, iso20022, revolut or bank_connection names the fields of the file or feed: a field with an `accountCode` is posted to that ledger account on import, a field with `createPartner` creates the customer, supplier or fee partner. `invoiceMetaField` is the Stripe metadata key (stripe) or the reference field (other types) by which payments are linked to invoices; with it `invoiceVatClassifierCode`, `invoiceVatRatePercent`, `invoiceItemId` and, outside Stripe, `advanceInvoices` apply. `companyMetaField`, `lenderMetaField`, the operation types and the refund labels are for Stripe templates only. A template with the same name already existing answers 409.
|
|
48154
48154
|
</dd>
|
|
48155
48155
|
</dl>
|
|
48156
48156
|
</dd>
|
|
@@ -48231,6 +48231,14 @@ client.bank.import_templates_create(
|
|
|
48231
48231
|
<dl>
|
|
48232
48232
|
<dd>
|
|
48233
48233
|
|
|
48234
|
+
**invoice_vat_classifier_code:** `String`
|
|
48235
|
+
|
|
48236
|
+
</dd>
|
|
48237
|
+
</dl>
|
|
48238
|
+
|
|
48239
|
+
<dl>
|
|
48240
|
+
<dd>
|
|
48241
|
+
|
|
48234
48242
|
**company_meta_field:** `String`
|
|
48235
48243
|
|
|
48236
48244
|
</dd>
|
|
@@ -48405,6 +48413,14 @@ client.bank.import_templates_update(id: "id")
|
|
|
48405
48413
|
<dl>
|
|
48406
48414
|
<dd>
|
|
48407
48415
|
|
|
48416
|
+
**invoice_vat_classifier_code:** `String`
|
|
48417
|
+
|
|
48418
|
+
</dd>
|
|
48419
|
+
</dl>
|
|
48420
|
+
|
|
48421
|
+
<dl>
|
|
48422
|
+
<dd>
|
|
48423
|
+
|
|
48408
48424
|
**company_meta_field:** `String`
|
|
48409
48425
|
|
|
48410
48426
|
</dd>
|
|
@@ -55325,7 +55341,7 @@ client.public.invoices_pdf(token: "token")
|
|
|
55325
55341
|
<dl>
|
|
55326
55342
|
<dd>
|
|
55327
55343
|
|
|
55328
|
-
Return the signed-in user's billing account: plan, account type, status, balance, trial and payment state, the month-to-date usage of the companies the user pays for with an estimate of today's charge, the plan catalogue, and the top-up, automatic top-up and overdraft settings.
|
|
55344
|
+
Return the signed-in user's billing account of the site named by the `x-nordlet-site` header (`app` when absent): plan, account type, status, balance, trial and payment state, the month-to-date usage of that site in the companies the user pays for with an estimate of today's charge, the plan catalogue, and the top-up, automatic top-up and overdraft settings. Each site has its own account and plan.
|
|
55329
55345
|
</dd>
|
|
55330
55346
|
</dl>
|
|
55331
55347
|
</dd>
|
|
@@ -55379,7 +55395,7 @@ client.billing.account_get
|
|
|
55379
55395
|
<dl>
|
|
55380
55396
|
<dd>
|
|
55381
55397
|
|
|
55382
|
-
Change the plan of the user's flat-rate billing account; answers 409 when the account type is not `flat_rate`. With a Stripe subscription and payments configured, the subscription is moved to the new plan.
|
|
55398
|
+
Change the plan of the user's flat-rate billing account of the request's site; answers 422 when the plan is not one of that site's plans and 409 when the account type is not `flat_rate`. With a Stripe subscription and payments configured, the subscription is moved to the new plan.
|
|
55383
55399
|
</dd>
|
|
55384
55400
|
</dl>
|
|
55385
55401
|
</dd>
|
|
@@ -55441,7 +55457,7 @@ client.billing.account_set_plan(plan: "starter")
|
|
|
55441
55457
|
<dl>
|
|
55442
55458
|
<dd>
|
|
55443
55459
|
|
|
55444
|
-
Switch the user's billing account between `flat_rate` and `per_request
|
|
55460
|
+
Switch the user's billing account of the request's site between `flat_rate` and `per_request`; answers 422 for an account type the site does not offer (the `invoice` site has `flat_rate` only). With a Stripe subscription and payments configured, the subscription is moved to the plan's price for `flat_rate`; for `per_request` the plan is taken off the subscription, and a subscription that carried only the plan is cancelled, leaving the account without one. When Stripe refuses the change, the previous account type is restored.
|
|
55445
55461
|
</dd>
|
|
55446
55462
|
</dl>
|
|
55447
55463
|
</dd>
|
|
@@ -55503,7 +55519,7 @@ client.billing.account_set_account_type(account_type: "flat_rate")
|
|
|
55503
55519
|
<dl>
|
|
55504
55520
|
<dd>
|
|
55505
55521
|
|
|
55506
|
-
Switch automatic top-ups on or off and set their amount. Switching them on needs a Stripe customer, which the first card top-up creates (400 otherwise); when switched on, a top-up is charged at once if the balance is at or below zero, no payment has failed and no top-up was requested in the last 24 hours.
|
|
55522
|
+
Switch automatic top-ups on or off and set their amount; answers 409 on a site without top-ups. Switching them on needs a Stripe customer, which the first card top-up creates (400 otherwise); when switched on, a top-up is charged at once if the balance is at or below zero, no payment has failed and no top-up was requested in the last 24 hours.
|
|
55507
55523
|
</dd>
|
|
55508
55524
|
</dl>
|
|
55509
55525
|
</dd>
|
|
@@ -55576,7 +55592,7 @@ client.billing.account_set_auto_top_up(
|
|
|
55576
55592
|
<dl>
|
|
55577
55593
|
<dd>
|
|
55578
55594
|
|
|
55579
|
-
Set the overdraft cap of the user's billing account: how far usage charges may take the balance below zero before the account is suspended. A suspended account whose balance is within the new cap is activated again.
|
|
55595
|
+
Set the overdraft cap of the user's billing account: how far usage charges may take the balance below zero before the account is suspended. A suspended account whose balance is within the new cap is activated again. Answers 409 on a site without top-ups.
|
|
55580
55596
|
</dd>
|
|
55581
55597
|
</dl>
|
|
55582
55598
|
</dd>
|
|
@@ -55638,7 +55654,7 @@ client.billing.account_set_overdraft_cap(cap_cents: 1000000)
|
|
|
55638
55654
|
<dl>
|
|
55639
55655
|
<dd>
|
|
55640
55656
|
|
|
55641
|
-
Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`. Answers 503 when online payments are not configured.
|
|
55657
|
+
Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`. Answers 409 on a site without top-ups and 503 when online payments are not configured.
|
|
55642
55658
|
</dd>
|
|
55643
55659
|
</dl>
|
|
55644
55660
|
</dd>
|
|
@@ -55716,7 +55732,7 @@ client.billing.topup_create(amount_cents: 1000000)
|
|
|
55716
55732
|
<dl>
|
|
55717
55733
|
<dd>
|
|
55718
55734
|
|
|
55719
|
-
Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not paid.
|
|
55735
|
+
Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not paid, and 409 on a site without top-ups.
|
|
55720
55736
|
</dd>
|
|
55721
55737
|
</dl>
|
|
55722
55738
|
</dd>
|
|
@@ -55778,7 +55794,7 @@ client.billing.topup_confirm(session_id: "sessionId")
|
|
|
55778
55794
|
<dl>
|
|
55779
55795
|
<dd>
|
|
55780
55796
|
|
|
55781
|
-
Open a Stripe Checkout session for a flat-rate subscription on `plan
|
|
55797
|
+
Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the request's site) for the billing account of the request's site, with the trial period of `trialDays` days, and return its URL; a Stripe customer is created for that account when it has none. The `invoicing` plan of the `invoice` site takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. Answers 422 when the plan is not one of the site's plans, 409 when the site's flat-rate subscription is already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is not set.
|
|
55782
55798
|
</dd>
|
|
55783
55799
|
</dl>
|
|
55784
55800
|
</dd>
|
|
@@ -55848,7 +55864,7 @@ client.billing.flat_rate_create
|
|
|
55848
55864
|
<dl>
|
|
55849
55865
|
<dd>
|
|
55850
55866
|
|
|
55851
|
-
Confirm a completed flat-rate Checkout session by `sessionId`: the account
|
|
55867
|
+
Confirm a completed flat-rate Checkout session by `sessionId`: the billing account of the site of the session's plan becomes `flat_rate` on that plan with status `active` and the subscription attached, unless the Stripe webhook already did this. Answers 404 when the session is not the user's own or not completed.
|
|
55852
55868
|
</dd>
|
|
55853
55869
|
</dl>
|
|
55854
55870
|
</dd>
|
|
@@ -55910,7 +55926,7 @@ client.billing.flat_rate_confirm(session_id: "sessionId")
|
|
|
55910
55926
|
<dl>
|
|
55911
55927
|
<dd>
|
|
55912
55928
|
|
|
55913
|
-
Cancel the user's
|
|
55929
|
+
Cancel the Stripe subscription of the user's billing account of the request's site at the end of the period already paid: the plan stays active until `subscriptionCancelAt`, and Stripe then ends the subscription, which its `customer.subscription.deleted` webhook records. Answers 503 when online payments are not configured and 409 when the account has no subscription.
|
|
55914
55930
|
</dd>
|
|
55915
55931
|
</dl>
|
|
55916
55932
|
</dd>
|
|
@@ -55964,7 +55980,7 @@ client.billing.subscription_cancel
|
|
|
55964
55980
|
<dl>
|
|
55965
55981
|
<dd>
|
|
55966
55982
|
|
|
55967
|
-
Open a Stripe customer portal session that returns to
|
|
55983
|
+
Open a Stripe customer portal session for the billing account of the request's site that returns to that site's credits page (the plan page on the `invoice` site) in `locale`, and return its URL. Answers 503 when online payments are not configured and 400 when the account has no Stripe customer yet.
|
|
55968
55984
|
</dd>
|
|
55969
55985
|
</dl>
|
|
55970
55986
|
</dd>
|
|
@@ -56026,7 +56042,7 @@ client.billing.portal_create
|
|
|
56026
56042
|
<dl>
|
|
56027
56043
|
<dd>
|
|
56028
56044
|
|
|
56029
|
-
List the newest credit transactions of the user's billing account, up to `limit`: trial grants, top-ups, usage charges, activations and adjustments, each with the balance after it.
|
|
56045
|
+
List the newest credit transactions of the user's billing account of the request's site, up to `limit`: trial grants, top-ups, usage charges, activations and adjustments, each with the balance after it.
|
|
56030
56046
|
</dd>
|
|
56031
56047
|
</dl>
|
|
56032
56048
|
</dd>
|
|
@@ -56088,7 +56104,7 @@ client.billing.transactions_list
|
|
|
56088
56104
|
<dl>
|
|
56089
56105
|
<dd>
|
|
56090
56106
|
|
|
56091
|
-
List the daily usage records of the companies the user pays for, from `from` to `to`: one row per company, date and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices).
|
|
56107
|
+
List the daily usage records of the request's site in the companies the user pays for, from `from` to `to`: one row per company, date and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices). Requests, OCR pages and invoices count on the site the request came from; storage counts on the `app` site.
|
|
56092
56108
|
</dd>
|
|
56093
56109
|
</dl>
|
|
56094
56110
|
</dd>
|
|
@@ -56380,7 +56396,7 @@ client.account.logout
|
|
|
56380
56396
|
<dl>
|
|
56381
56397
|
<dd>
|
|
56382
56398
|
|
|
56383
|
-
Return the signed-in user, their active company and role in it, the companies they belong to and their consent state. `billing` is the billing account that pays for the active company (its payer, or the user when there is none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current points balance.
|
|
56399
|
+
Return the signed-in user, their active company and role in it, the companies they belong to and their consent state. `billing` is the billing account of the request's site (the `x-nordlet-site` header, `app` when absent) that pays for the active company (its payer, or the user when there is none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current points balance. An API key may call it too: the active company is then the one named in the `x-nordlet-company` header, and `companies` lists every company the key works in.
|
|
56384
56400
|
</dd>
|
|
56385
56401
|
</dl>
|
|
56386
56402
|
</dd>
|
|
@@ -56631,7 +56647,7 @@ client.account.members_transfer_ownership(user_id: "userId")
|
|
|
56631
56647
|
<dl>
|
|
56632
56648
|
<dd>
|
|
56633
56649
|
|
|
56634
|
-
Remove a member from the active company; owners and admins may call it. Their sessions lose this company as the active one and
|
|
56650
|
+
Remove a member from the active company; owners and admins may call it. Their sessions lose this company as the active one and their API keys stop working in it. Refused with 422 for the caller themself and with 403 for the owner.
|
|
56635
56651
|
</dd>
|
|
56636
56652
|
</dl>
|
|
56637
56653
|
</dd>
|
|
@@ -57458,7 +57474,7 @@ client.account.companies_create(name: "name")
|
|
|
57458
57474
|
<dl>
|
|
57459
57475
|
<dd>
|
|
57460
57476
|
|
|
57461
|
-
Make one of the caller's companies the active company of the session. Refused with 403 when the caller is not a member
|
|
57477
|
+
Make one of the caller's companies the active company of the session. Refused with 403 when the caller is not a member, with 422 when the company is archived or deleted, and with 422 for an API key, which names the company in the `x-nordlet-company` header of each call instead.
|
|
57462
57478
|
</dd>
|
|
57463
57479
|
</dl>
|
|
57464
57480
|
</dd>
|
|
@@ -58086,7 +58102,7 @@ client.account.companies_activate(company_id: "companyId")
|
|
|
58086
58102
|
<dl>
|
|
58087
58103
|
<dd>
|
|
58088
58104
|
|
|
58089
|
-
Create an API key for the
|
|
58105
|
+
Create an API key for the signed-in person and return the key itself once. Owners, admins and developers of the active company may call it. The key works in every company the person is a member of, with the rights of their role in each; every call names the company in the `x-nordlet-company` header. `scopes` defaults to the caller's scopes in the active company and may not exceed them (403); in each company the key's scopes are further limited to the person's role there. Without `expiresInDays` the key does not expire.
|
|
58090
58106
|
</dd>
|
|
58091
58107
|
</dl>
|
|
58092
58108
|
</dd>
|
|
@@ -58164,7 +58180,7 @@ client.account.api_keys_create(name: "name")
|
|
|
58164
58180
|
<dl>
|
|
58165
58181
|
<dd>
|
|
58166
58182
|
|
|
58167
|
-
List the API keys
|
|
58183
|
+
List the signed-in person's API keys, including expired and revoked ones.
|
|
58168
58184
|
</dd>
|
|
58169
58185
|
</dl>
|
|
58170
58186
|
</dd>
|
|
@@ -58218,7 +58234,7 @@ client.account.api_keys_list
|
|
|
58218
58234
|
<dl>
|
|
58219
58235
|
<dd>
|
|
58220
58236
|
|
|
58221
|
-
Create a new key with the name and scopes of the key `id` and return it once; the old key keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the new key. Refused with 409 when the old key is revoked.
|
|
58237
|
+
Create a new key with the name and scopes of the signed-in person's key `id` and return it once; the old key keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the new key. Refused with 409 when the old key is revoked or belongs to an app connected through OAuth, which renews its own access.
|
|
58222
58238
|
</dd>
|
|
58223
58239
|
</dl>
|
|
58224
58240
|
</dd>
|
|
@@ -58296,7 +58312,7 @@ client.account.api_keys_rotate(id: "id")
|
|
|
58296
58312
|
<dl>
|
|
58297
58313
|
<dd>
|
|
58298
58314
|
|
|
58299
|
-
Revoke
|
|
58315
|
+
Revoke one of the signed-in person's API keys at once.
|
|
58300
58316
|
</dd>
|
|
58301
58317
|
</dl>
|
|
58302
58318
|
</dd>
|
|
@@ -58733,7 +58749,7 @@ client.account.sessions_revoke_others
|
|
|
58733
58749
|
<dl>
|
|
58734
58750
|
<dd>
|
|
58735
58751
|
|
|
58736
|
-
Return the user's profile, consent state, memberships, unexpired sessions, billing
|
|
58752
|
+
Return the user's profile, consent state, memberships, unexpired sessions, billing accounts (`billing` is the `app` site's, `billingAccounts` has one per site), credit transactions and the audit entries they made in their companies (the most recent 5000 of each of the last two).
|
|
58737
58753
|
</dd>
|
|
58738
58754
|
</dl>
|
|
58739
58755
|
</dd>
|
|
@@ -59147,3 +59163,357 @@ client.account.table_settings_list
|
|
|
59147
59163
|
</dl>
|
|
59148
59164
|
</details>
|
|
59149
59165
|
|
|
59166
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_describe</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDescribeAccountResponse</code></summary>
|
|
59167
|
+
<dl>
|
|
59168
|
+
<dd>
|
|
59169
|
+
|
|
59170
|
+
#### 📝 Description
|
|
59171
|
+
|
|
59172
|
+
<dl>
|
|
59173
|
+
<dd>
|
|
59174
|
+
|
|
59175
|
+
<dl>
|
|
59176
|
+
<dd>
|
|
59177
|
+
|
|
59178
|
+
Check an OAuth authorization request of an app that wants to connect to Nordlet (such as Claude) and return the name the app registered, the address the signed-in person is sent back to and the scopes asked for. Refused with 422 when the request is invalid: unknown app, redirect address not registered for it, no PKCE (S256), unknown scope or a resource other than the MCP server.
|
|
59179
|
+
</dd>
|
|
59180
|
+
</dl>
|
|
59181
|
+
</dd>
|
|
59182
|
+
</dl>
|
|
59183
|
+
|
|
59184
|
+
#### 🔌 Usage
|
|
59185
|
+
|
|
59186
|
+
<dl>
|
|
59187
|
+
<dd>
|
|
59188
|
+
|
|
59189
|
+
<dl>
|
|
59190
|
+
<dd>
|
|
59191
|
+
|
|
59192
|
+
```ruby
|
|
59193
|
+
client.account.oauth_authorize_describe(client_id: "clientId")
|
|
59194
|
+
```
|
|
59195
|
+
</dd>
|
|
59196
|
+
</dl>
|
|
59197
|
+
</dd>
|
|
59198
|
+
</dl>
|
|
59199
|
+
|
|
59200
|
+
#### ⚙️ Parameters
|
|
59201
|
+
|
|
59202
|
+
<dl>
|
|
59203
|
+
<dd>
|
|
59204
|
+
|
|
59205
|
+
<dl>
|
|
59206
|
+
<dd>
|
|
59207
|
+
|
|
59208
|
+
**client_id:** `String`
|
|
59209
|
+
|
|
59210
|
+
</dd>
|
|
59211
|
+
</dl>
|
|
59212
|
+
|
|
59213
|
+
<dl>
|
|
59214
|
+
<dd>
|
|
59215
|
+
|
|
59216
|
+
**redirect_uri:** `String`
|
|
59217
|
+
|
|
59218
|
+
</dd>
|
|
59219
|
+
</dl>
|
|
59220
|
+
|
|
59221
|
+
<dl>
|
|
59222
|
+
<dd>
|
|
59223
|
+
|
|
59224
|
+
**response_type:** `String`
|
|
59225
|
+
|
|
59226
|
+
</dd>
|
|
59227
|
+
</dl>
|
|
59228
|
+
|
|
59229
|
+
<dl>
|
|
59230
|
+
<dd>
|
|
59231
|
+
|
|
59232
|
+
**code_challenge:** `String`
|
|
59233
|
+
|
|
59234
|
+
</dd>
|
|
59235
|
+
</dl>
|
|
59236
|
+
|
|
59237
|
+
<dl>
|
|
59238
|
+
<dd>
|
|
59239
|
+
|
|
59240
|
+
**code_challenge_method:** `String`
|
|
59241
|
+
|
|
59242
|
+
</dd>
|
|
59243
|
+
</dl>
|
|
59244
|
+
|
|
59245
|
+
<dl>
|
|
59246
|
+
<dd>
|
|
59247
|
+
|
|
59248
|
+
**state:** `String`
|
|
59249
|
+
|
|
59250
|
+
</dd>
|
|
59251
|
+
</dl>
|
|
59252
|
+
|
|
59253
|
+
<dl>
|
|
59254
|
+
<dd>
|
|
59255
|
+
|
|
59256
|
+
**scope:** `String`
|
|
59257
|
+
|
|
59258
|
+
</dd>
|
|
59259
|
+
</dl>
|
|
59260
|
+
|
|
59261
|
+
<dl>
|
|
59262
|
+
<dd>
|
|
59263
|
+
|
|
59264
|
+
**resource:** `String`
|
|
59265
|
+
|
|
59266
|
+
</dd>
|
|
59267
|
+
</dl>
|
|
59268
|
+
|
|
59269
|
+
<dl>
|
|
59270
|
+
<dd>
|
|
59271
|
+
|
|
59272
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
59273
|
+
|
|
59274
|
+
</dd>
|
|
59275
|
+
</dl>
|
|
59276
|
+
</dd>
|
|
59277
|
+
</dl>
|
|
59278
|
+
|
|
59279
|
+
|
|
59280
|
+
</dd>
|
|
59281
|
+
</dl>
|
|
59282
|
+
</details>
|
|
59283
|
+
|
|
59284
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_approve</a>(request) -> Nordlet::Account::Types::OauthAuthorizeApproveAccountResponse</code></summary>
|
|
59285
|
+
<dl>
|
|
59286
|
+
<dd>
|
|
59287
|
+
|
|
59288
|
+
#### 📝 Description
|
|
59289
|
+
|
|
59290
|
+
<dl>
|
|
59291
|
+
<dd>
|
|
59292
|
+
|
|
59293
|
+
<dl>
|
|
59294
|
+
<dd>
|
|
59295
|
+
|
|
59296
|
+
Allow the app of an OAuth authorization request to act for the signed-in person and return the app's redirect address with a one-time authorization code (valid for 5 minutes). The app exchanges the code at `/oauth/token` for an access token that works like an API key of the person: in every company they are a member of, with the rights of their role there. The connection is listed among the person's API keys under the app's name and is revoked there. Refused with 422 like `account/oauth/authorize/describe`.
|
|
59297
|
+
</dd>
|
|
59298
|
+
</dl>
|
|
59299
|
+
</dd>
|
|
59300
|
+
</dl>
|
|
59301
|
+
|
|
59302
|
+
#### 🔌 Usage
|
|
59303
|
+
|
|
59304
|
+
<dl>
|
|
59305
|
+
<dd>
|
|
59306
|
+
|
|
59307
|
+
<dl>
|
|
59308
|
+
<dd>
|
|
59309
|
+
|
|
59310
|
+
```ruby
|
|
59311
|
+
client.account.oauth_authorize_approve(client_id: "clientId")
|
|
59312
|
+
```
|
|
59313
|
+
</dd>
|
|
59314
|
+
</dl>
|
|
59315
|
+
</dd>
|
|
59316
|
+
</dl>
|
|
59317
|
+
|
|
59318
|
+
#### ⚙️ Parameters
|
|
59319
|
+
|
|
59320
|
+
<dl>
|
|
59321
|
+
<dd>
|
|
59322
|
+
|
|
59323
|
+
<dl>
|
|
59324
|
+
<dd>
|
|
59325
|
+
|
|
59326
|
+
**client_id:** `String`
|
|
59327
|
+
|
|
59328
|
+
</dd>
|
|
59329
|
+
</dl>
|
|
59330
|
+
|
|
59331
|
+
<dl>
|
|
59332
|
+
<dd>
|
|
59333
|
+
|
|
59334
|
+
**redirect_uri:** `String`
|
|
59335
|
+
|
|
59336
|
+
</dd>
|
|
59337
|
+
</dl>
|
|
59338
|
+
|
|
59339
|
+
<dl>
|
|
59340
|
+
<dd>
|
|
59341
|
+
|
|
59342
|
+
**response_type:** `String`
|
|
59343
|
+
|
|
59344
|
+
</dd>
|
|
59345
|
+
</dl>
|
|
59346
|
+
|
|
59347
|
+
<dl>
|
|
59348
|
+
<dd>
|
|
59349
|
+
|
|
59350
|
+
**code_challenge:** `String`
|
|
59351
|
+
|
|
59352
|
+
</dd>
|
|
59353
|
+
</dl>
|
|
59354
|
+
|
|
59355
|
+
<dl>
|
|
59356
|
+
<dd>
|
|
59357
|
+
|
|
59358
|
+
**code_challenge_method:** `String`
|
|
59359
|
+
|
|
59360
|
+
</dd>
|
|
59361
|
+
</dl>
|
|
59362
|
+
|
|
59363
|
+
<dl>
|
|
59364
|
+
<dd>
|
|
59365
|
+
|
|
59366
|
+
**state:** `String`
|
|
59367
|
+
|
|
59368
|
+
</dd>
|
|
59369
|
+
</dl>
|
|
59370
|
+
|
|
59371
|
+
<dl>
|
|
59372
|
+
<dd>
|
|
59373
|
+
|
|
59374
|
+
**scope:** `String`
|
|
59375
|
+
|
|
59376
|
+
</dd>
|
|
59377
|
+
</dl>
|
|
59378
|
+
|
|
59379
|
+
<dl>
|
|
59380
|
+
<dd>
|
|
59381
|
+
|
|
59382
|
+
**resource:** `String`
|
|
59383
|
+
|
|
59384
|
+
</dd>
|
|
59385
|
+
</dl>
|
|
59386
|
+
|
|
59387
|
+
<dl>
|
|
59388
|
+
<dd>
|
|
59389
|
+
|
|
59390
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
59391
|
+
|
|
59392
|
+
</dd>
|
|
59393
|
+
</dl>
|
|
59394
|
+
</dd>
|
|
59395
|
+
</dl>
|
|
59396
|
+
|
|
59397
|
+
|
|
59398
|
+
</dd>
|
|
59399
|
+
</dl>
|
|
59400
|
+
</details>
|
|
59401
|
+
|
|
59402
|
+
<details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_deny</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDenyAccountResponse</code></summary>
|
|
59403
|
+
<dl>
|
|
59404
|
+
<dd>
|
|
59405
|
+
|
|
59406
|
+
#### 📝 Description
|
|
59407
|
+
|
|
59408
|
+
<dl>
|
|
59409
|
+
<dd>
|
|
59410
|
+
|
|
59411
|
+
<dl>
|
|
59412
|
+
<dd>
|
|
59413
|
+
|
|
59414
|
+
Refuse an OAuth authorization request and return the app's redirect address with the error `access_denied`. Refused with 422 like `account/oauth/authorize/describe`.
|
|
59415
|
+
</dd>
|
|
59416
|
+
</dl>
|
|
59417
|
+
</dd>
|
|
59418
|
+
</dl>
|
|
59419
|
+
|
|
59420
|
+
#### 🔌 Usage
|
|
59421
|
+
|
|
59422
|
+
<dl>
|
|
59423
|
+
<dd>
|
|
59424
|
+
|
|
59425
|
+
<dl>
|
|
59426
|
+
<dd>
|
|
59427
|
+
|
|
59428
|
+
```ruby
|
|
59429
|
+
client.account.oauth_authorize_deny(client_id: "clientId")
|
|
59430
|
+
```
|
|
59431
|
+
</dd>
|
|
59432
|
+
</dl>
|
|
59433
|
+
</dd>
|
|
59434
|
+
</dl>
|
|
59435
|
+
|
|
59436
|
+
#### ⚙️ Parameters
|
|
59437
|
+
|
|
59438
|
+
<dl>
|
|
59439
|
+
<dd>
|
|
59440
|
+
|
|
59441
|
+
<dl>
|
|
59442
|
+
<dd>
|
|
59443
|
+
|
|
59444
|
+
**client_id:** `String`
|
|
59445
|
+
|
|
59446
|
+
</dd>
|
|
59447
|
+
</dl>
|
|
59448
|
+
|
|
59449
|
+
<dl>
|
|
59450
|
+
<dd>
|
|
59451
|
+
|
|
59452
|
+
**redirect_uri:** `String`
|
|
59453
|
+
|
|
59454
|
+
</dd>
|
|
59455
|
+
</dl>
|
|
59456
|
+
|
|
59457
|
+
<dl>
|
|
59458
|
+
<dd>
|
|
59459
|
+
|
|
59460
|
+
**response_type:** `String`
|
|
59461
|
+
|
|
59462
|
+
</dd>
|
|
59463
|
+
</dl>
|
|
59464
|
+
|
|
59465
|
+
<dl>
|
|
59466
|
+
<dd>
|
|
59467
|
+
|
|
59468
|
+
**code_challenge:** `String`
|
|
59469
|
+
|
|
59470
|
+
</dd>
|
|
59471
|
+
</dl>
|
|
59472
|
+
|
|
59473
|
+
<dl>
|
|
59474
|
+
<dd>
|
|
59475
|
+
|
|
59476
|
+
**code_challenge_method:** `String`
|
|
59477
|
+
|
|
59478
|
+
</dd>
|
|
59479
|
+
</dl>
|
|
59480
|
+
|
|
59481
|
+
<dl>
|
|
59482
|
+
<dd>
|
|
59483
|
+
|
|
59484
|
+
**state:** `String`
|
|
59485
|
+
|
|
59486
|
+
</dd>
|
|
59487
|
+
</dl>
|
|
59488
|
+
|
|
59489
|
+
<dl>
|
|
59490
|
+
<dd>
|
|
59491
|
+
|
|
59492
|
+
**scope:** `String`
|
|
59493
|
+
|
|
59494
|
+
</dd>
|
|
59495
|
+
</dl>
|
|
59496
|
+
|
|
59497
|
+
<dl>
|
|
59498
|
+
<dd>
|
|
59499
|
+
|
|
59500
|
+
**resource:** `String`
|
|
59501
|
+
|
|
59502
|
+
</dd>
|
|
59503
|
+
</dl>
|
|
59504
|
+
|
|
59505
|
+
<dl>
|
|
59506
|
+
<dd>
|
|
59507
|
+
|
|
59508
|
+
**request_options:** `Nordlet::Account::RequestOptions`
|
|
59509
|
+
|
|
59510
|
+
</dd>
|
|
59511
|
+
</dl>
|
|
59512
|
+
</dd>
|
|
59513
|
+
</dl>
|
|
59514
|
+
|
|
59515
|
+
|
|
59516
|
+
</dd>
|
|
59517
|
+
</dl>
|
|
59518
|
+
</details>
|
|
59519
|
+
|