nordlet 0.6.0 → 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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +133 -16
  3. data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +0 -2
  4. data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +1 -0
  5. data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +1 -0
  6. data/lib/nordlet/account/types/email_change_request_account_request_locale.rb +30 -0
  7. data/lib/nordlet/account/types/export_account_response.rb +2 -0
  8. data/lib/nordlet/account/types/export_account_response_billing_accounts_item.rb +21 -0
  9. data/lib/nordlet/account/types/export_account_response_billing_accounts_item_site.rb +14 -0
  10. data/lib/nordlet/account/types/export_account_response_credit_transactions_item.rb +2 -0
  11. data/lib/nordlet/account/types/export_account_response_credit_transactions_item_site.rb +14 -0
  12. data/lib/nordlet/account/types/invites_accept_account_request_locale.rb +30 -0
  13. data/lib/nordlet/account/types/invites_create_account_request_locale.rb +30 -0
  14. data/lib/nordlet/account/types/locale_set_account_request_locale.rb +30 -0
  15. data/lib/nordlet/account/types/login_link_request_account_request_locale.rb +30 -0
  16. data/lib/nordlet/account/types/oauth_authorize_approve_account_request.rb +25 -0
  17. data/lib/nordlet/account/types/oauth_authorize_approve_account_response.rb +11 -0
  18. data/lib/nordlet/account/types/oauth_authorize_deny_account_request.rb +25 -0
  19. data/lib/nordlet/account/types/oauth_authorize_deny_account_response.rb +11 -0
  20. data/lib/nordlet/account/types/oauth_authorize_describe_account_request.rb +25 -0
  21. data/lib/nordlet/account/types/oauth_authorize_describe_account_response.rb +17 -0
  22. data/lib/nordlet/agreements/types/agreements_create_agreements_request_items_item.rb +2 -0
  23. data/lib/nordlet/agreements/types/agreements_create_agreements_response_items_item.rb +2 -0
  24. data/lib/nordlet/agreements/types/agreements_get_agreements_response_items_item.rb +2 -0
  25. data/lib/nordlet/agreements/types/agreements_update_agreements_response_items_item.rb +2 -0
  26. data/lib/nordlet/bank/client.rb +4 -3
  27. data/lib/nordlet/bank/types/import_templates_create_bank_request.rb +2 -0
  28. data/lib/nordlet/bank/types/import_templates_create_bank_response.rb +2 -0
  29. data/lib/nordlet/bank/types/import_templates_get_bank_response.rb +2 -0
  30. data/lib/nordlet/bank/types/import_templates_list_bank_response_rows_item.rb +2 -0
  31. data/lib/nordlet/bank/types/import_templates_list_builtin_bank_response_rows_item.rb +2 -0
  32. data/lib/nordlet/bank/types/import_templates_update_bank_request.rb +2 -0
  33. data/lib/nordlet/bank/types/import_templates_update_bank_response.rb +2 -0
  34. data/lib/nordlet/billing/client.rb +42 -31
  35. data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
  36. data/lib/nordlet/billing/types/account_get_billing_response_site.rb +14 -0
  37. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
  38. data/lib/nordlet/billing/types/account_set_account_type_billing_response_site.rb +14 -0
  39. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
  40. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_site.rb +14 -0
  41. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
  42. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_site.rb +14 -0
  43. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
  44. data/lib/nordlet/billing/types/account_set_plan_billing_response_site.rb +14 -0
  45. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
  46. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_site.rb +14 -0
  47. data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +30 -0
  48. data/lib/nordlet/billing/types/portal_create_billing_request_locale.rb +30 -0
  49. data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
  50. data/lib/nordlet/billing/types/subscription_cancel_billing_response_site.rb +14 -0
  51. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
  52. data/lib/nordlet/billing/types/topup_confirm_billing_response_site.rb +14 -0
  53. data/lib/nordlet/billing/types/topup_create_billing_request_locale.rb +30 -0
  54. data/lib/nordlet/billing/types/usage_list_billing_response_rows_item.rb +2 -0
  55. data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_site.rb +14 -0
  56. data/lib/nordlet/catalog/types/units_options_catalog_request_locale.rb +30 -0
  57. data/lib/nordlet/ecommerce/types/orders_cancel_ecommerce_response_lines_item.rb +2 -0
  58. data/lib/nordlet/ecommerce/types/orders_create_ecommerce_request_lines_item.rb +2 -0
  59. data/lib/nordlet/ecommerce/types/orders_create_ecommerce_response_lines_item.rb +2 -0
  60. data/lib/nordlet/ecommerce/types/orders_fulfill_ecommerce_response_lines_item.rb +2 -0
  61. data/lib/nordlet/ecommerce/types/orders_get_ecommerce_response_lines_item.rb +2 -0
  62. data/lib/nordlet/ecommerce/types/orders_reserve_ecommerce_response_lines_item.rb +2 -0
  63. data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +1 -0
  64. data/lib/nordlet/partners/types/debt_reminders_preview_partners_response_rows_item_locale.rb +30 -0
  65. data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +1 -0
  66. data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +1 -0
  67. data/lib/nordlet/payroll/types/payments_export_payroll_request_locale.rb +30 -0
  68. data/lib/nordlet/reference/client.rb +5 -2
  69. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item.rb +8 -0
  70. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_rate_from_line.rb +13 -0
  71. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +21 -0
  72. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_side.rb +15 -0
  73. data/lib/nordlet/sales/client.rb +3 -2
  74. data/lib/nordlet/sales/types/acts_pdf_sales_request_locale.rb +30 -0
  75. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +2 -0
  76. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +2 -0
  77. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +2 -0
  78. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +2 -0
  79. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +2 -0
  80. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +2 -0
  81. data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +1 -0
  82. data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +1 -0
  83. data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +1 -0
  84. data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +1 -0
  85. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +1 -0
  86. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +1 -0
  87. data/lib/nordlet/version.rb +1 -1
  88. data/lib/nordlet.rb +21 -0
  89. data/reference.md +394 -24
  90. metadata +23 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c375364bd75cbb336b619318e892d3e447b401005c6794dd1b874fdeb9dc5403
4
- data.tar.gz: 33fe4ab8a29cedafa93753d26e73b9f0d1894425ac27c8c314eadc8ee74b4f85
3
+ metadata.gz: '0213996fed70d8e3e132c634ff87662b90a8397e37c1ef74ed6847d192523a64'
4
+ data.tar.gz: 9fecadf26c1e5d913e539f2d15f7ff4710abfe072d22132426cd2076e5fb767c
5
5
  SHA512:
6
- metadata.gz: 630c6c9f12a0f10fcbbec9f2d3dd93fc9bb484ba8d9aa52fdc639e9eb09298e27771216ce8c991df499488a02a0e7e10b81487aefc9e867cb692c75ddb3d549d
7
- data.tar.gz: 2846592c2bef1e2a0f1876e8e56425652d6c3265a1ff8dc5b10df017cd5bf441419faf480f62858896e7ca4b1ee73b0862b08c19a2f6c334bf3edeacffcac4df
6
+ metadata.gz: 1cfa15fc2c584b1aabf20a0a247a613723b1dc1e19695f89bfd3611ae5b80f8e0da628251812810b38f591cd7bc84d34f3daf243c2da99c448df5584491e19ec
7
+ data.tar.gz: 5c8d13d1adce872d86b26ea71fdf72c9031fde956f86d78a7fe6b481294b4bc99931349e48a5057f773f15f50e4ee4e5670192133a6febadccdbab2a36a8b499
@@ -121,9 +121,11 @@ module Nordlet
121
121
  end
122
122
 
123
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.
124
+ # state. `billing` is the billing account of the request's site (the `x-nordlet-site` header, `app` when absent)
125
+ # that pays for the active company (its payer, or the user when there is none or no company), with `isPayer`
126
+ # saying whether that is the user; `referralPoints` is the user's current points balance. An API key may call it
127
+ # too: the active company is then the one named in the `x-nordlet-company` header, and `companies` lists every
128
+ # company the key works in.
127
129
  #
128
130
  # @param request_options [Hash]
129
131
  # @param params [Nordlet::Account::Types::MeAccountRequest]
@@ -263,8 +265,8 @@ module Nordlet
263
265
  end
264
266
 
265
267
  # 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
+ # active one and their API keys stop working in it. Refused with 422 for the caller themself and with 403 for the
269
+ # owner.
268
270
  #
269
271
  # @param request_options [Hash]
270
272
  # @param params [Nordlet::Account::Types::MembersRemoveAccountRequest]
@@ -548,7 +550,8 @@ module Nordlet
548
550
  end
549
551
 
550
552
  # 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.
553
+ # member, with 422 when the company is archived or deleted, and with 422 for an API key, which names the company
554
+ # in the `x-nordlet-company` header of each call instead.
552
555
  #
553
556
  # @param request_options [Hash]
554
557
  # @param params [Nordlet::Account::Types::CompaniesSelectAccountRequest]
@@ -760,9 +763,11 @@ module Nordlet
760
763
  end
761
764
  end
762
765
 
763
- # Create an API key for the active company and return the key itself once; owners, admins and developers may call
764
- # it. `scopes` defaults to the caller's own scopes and may not exceed them (403); without `expiresInDays` the key
765
- # does not expire.
766
+ # Create an API key for the signed-in person and return the key itself once. Owners, admins and developers of the
767
+ # active company may call it. The key works in every company the person is a member of, with the rights of their
768
+ # role in each; every call names the company in the `x-nordlet-company` header. `scopes` defaults to the caller's
769
+ # scopes in the active company and may not exceed them (403); in each company the key's scopes are further limited
770
+ # to the person's role there. Without `expiresInDays` the key does not expire.
766
771
  #
767
772
  # @param request_options [Hash]
768
773
  # @param params [Nordlet::Account::Types::APIKeysCreateAccountRequest]
@@ -796,7 +801,7 @@ module Nordlet
796
801
  end
797
802
  end
798
803
 
799
- # List the API keys of the active company, including expired and revoked ones.
804
+ # List the signed-in person's API keys, including expired and revoked ones.
800
805
  #
801
806
  # @param request_options [Hash]
802
807
  # @param params [Nordlet::Account::Types::APIKeysListAccountRequest]
@@ -830,9 +835,10 @@ module Nordlet
830
835
  end
831
836
  end
832
837
 
833
- # Create a new key with the name and scopes of the key `id` and return it once; the old key keeps working for
834
- # `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the
835
- # new key. Refused with 409 when the old key is revoked.
838
+ # Create a new key with the name and scopes of the signed-in person's key `id` and return it once; the old key
839
+ # keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one.
840
+ # `expiresInDays` applies to the new key. Refused with 409 when the old key is revoked or belongs to an app
841
+ # connected through OAuth, which renews its own access.
836
842
  #
837
843
  # @param request_options [Hash]
838
844
  # @param params [Nordlet::Account::Types::APIKeysRotateAccountRequest]
@@ -866,7 +872,7 @@ module Nordlet
866
872
  end
867
873
  end
868
874
 
869
- # Revoke an API key of the active company at once.
875
+ # Revoke one of the signed-in person's API keys at once.
870
876
  #
871
877
  # @param request_options [Hash]
872
878
  # @param params [Nordlet::Account::Types::APIKeysRevokeAccountRequest]
@@ -1109,8 +1115,9 @@ module Nordlet
1109
1115
  end
1110
1116
  end
1111
1117
 
1112
- # Return the user's profile, consent state, memberships, unexpired sessions, billing account, credit transactions
1113
- # and the audit entries they made in their companies (the most recent 5000 of each of the last two).
1118
+ # Return the user's profile, consent state, memberships, unexpired sessions, billing accounts (`billing` is the
1119
+ # `app` site's, `billingAccounts` has one per site), credit transactions and the audit entries they made in their
1120
+ # companies (the most recent 5000 of each of the last two).
1114
1121
  #
1115
1122
  # @param request_options [Hash]
1116
1123
  # @param params [Nordlet::Account::Types::ExportAccountRequest]
@@ -1355,6 +1362,116 @@ module Nordlet
1355
1362
  raise error_class.new(response.body, code: code)
1356
1363
  end
1357
1364
  end
1365
+
1366
+ # Check an OAuth authorization request of an app that wants to connect to Nordlet (such as Claude) and return the
1367
+ # name the app registered, the address the signed-in person is sent back to and the scopes asked for. Refused with
1368
+ # 422 when the request is invalid: unknown app, redirect address not registered for it, no PKCE (S256), unknown
1369
+ # scope or a resource other than the MCP server.
1370
+ #
1371
+ # @param request_options [Hash]
1372
+ # @param params [Nordlet::Account::Types::OauthAuthorizeDescribeAccountRequest]
1373
+ # @option request_options [String] :base_url
1374
+ # @option request_options [Hash{String => Object}] :additional_headers
1375
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1376
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1377
+ # @option request_options [Integer] :timeout_in_seconds
1378
+ #
1379
+ # @return [Nordlet::Account::Types::OauthAuthorizeDescribeAccountResponse]
1380
+ def oauth_authorize_describe(request_options: {}, **params)
1381
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1382
+ request = Nordlet::Internal::JSON::Request.new(
1383
+ base_url: request_options[:base_url],
1384
+ method: "POST",
1385
+ path: "v1/account/oauth/authorize/describe",
1386
+ body: Nordlet::Account::Types::OauthAuthorizeDescribeAccountRequest.new(params).to_h,
1387
+ request_options: request_options
1388
+ )
1389
+ begin
1390
+ response = @client.send(request)
1391
+ rescue Net::HTTPRequestTimeout
1392
+ raise Nordlet::Errors::TimeoutError
1393
+ end
1394
+ code = response.code.to_i
1395
+ if code.between?(200, 299)
1396
+ Nordlet::Account::Types::OauthAuthorizeDescribeAccountResponse.load(response.body)
1397
+ else
1398
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1399
+ raise error_class.new(response.body, code: code)
1400
+ end
1401
+ end
1402
+
1403
+ # Allow the app of an OAuth authorization request to act for the signed-in person and return the app's redirect
1404
+ # address with a one-time authorization code (valid for 5 minutes). The app exchanges the code at `/oauth/token`
1405
+ # for an access token that works like an API key of the person: in every company they are a member of, with the
1406
+ # rights of their role there. The connection is listed among the person's API keys under the app's name and is
1407
+ # revoked there. Refused with 422 like `account/oauth/authorize/describe`.
1408
+ #
1409
+ # @param request_options [Hash]
1410
+ # @param params [Nordlet::Account::Types::OauthAuthorizeApproveAccountRequest]
1411
+ # @option request_options [String] :base_url
1412
+ # @option request_options [Hash{String => Object}] :additional_headers
1413
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1414
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1415
+ # @option request_options [Integer] :timeout_in_seconds
1416
+ #
1417
+ # @return [Nordlet::Account::Types::OauthAuthorizeApproveAccountResponse]
1418
+ def oauth_authorize_approve(request_options: {}, **params)
1419
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1420
+ request = Nordlet::Internal::JSON::Request.new(
1421
+ base_url: request_options[:base_url],
1422
+ method: "POST",
1423
+ path: "v1/account/oauth/authorize/approve",
1424
+ body: Nordlet::Account::Types::OauthAuthorizeApproveAccountRequest.new(params).to_h,
1425
+ request_options: request_options
1426
+ )
1427
+ begin
1428
+ response = @client.send(request)
1429
+ rescue Net::HTTPRequestTimeout
1430
+ raise Nordlet::Errors::TimeoutError
1431
+ end
1432
+ code = response.code.to_i
1433
+ if code.between?(200, 299)
1434
+ Nordlet::Account::Types::OauthAuthorizeApproveAccountResponse.load(response.body)
1435
+ else
1436
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1437
+ raise error_class.new(response.body, code: code)
1438
+ end
1439
+ end
1440
+
1441
+ # Refuse an OAuth authorization request and return the app's redirect address with the error `access_denied`.
1442
+ # Refused with 422 like `account/oauth/authorize/describe`.
1443
+ #
1444
+ # @param request_options [Hash]
1445
+ # @param params [Nordlet::Account::Types::OauthAuthorizeDenyAccountRequest]
1446
+ # @option request_options [String] :base_url
1447
+ # @option request_options [Hash{String => Object}] :additional_headers
1448
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1449
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1450
+ # @option request_options [Integer] :timeout_in_seconds
1451
+ #
1452
+ # @return [Nordlet::Account::Types::OauthAuthorizeDenyAccountResponse]
1453
+ def oauth_authorize_deny(request_options: {}, **params)
1454
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1455
+ request = Nordlet::Internal::JSON::Request.new(
1456
+ base_url: request_options[:base_url],
1457
+ method: "POST",
1458
+ path: "v1/account/oauth/authorize/deny",
1459
+ body: Nordlet::Account::Types::OauthAuthorizeDenyAccountRequest.new(params).to_h,
1460
+ request_options: request_options
1461
+ )
1462
+ begin
1463
+ response = @client.send(request)
1464
+ rescue Net::HTTPRequestTimeout
1465
+ raise Nordlet::Errors::TimeoutError
1466
+ end
1467
+ code = response.code.to_i
1468
+ if code.between?(200, 299)
1469
+ Nordlet::Account::Types::OauthAuthorizeDenyAccountResponse.load(response.body)
1470
+ else
1471
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1472
+ raise error_class.new(response.body, code: code)
1473
+ end
1474
+ end
1358
1475
  end
1359
1476
  end
1360
1477
  end
@@ -16,8 +16,6 @@ module Nordlet
16
16
 
17
17
  field :replaced_by_key_id, -> { String }, optional: false, nullable: true, api_name: "replacedByKeyId"
18
18
 
19
- field :created_by_user_id, -> { String }, optional: false, nullable: true, api_name: "createdByUserId"
20
-
21
19
  field :revoked_at, -> { String }, optional: false, nullable: true, api_name: "revokedAt"
22
20
 
23
21
  field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
@@ -38,6 +38,7 @@ module Nordlet
38
38
  HI = "hi"
39
39
  RU = "ru"
40
40
  TR = "tr"
41
+ UK = "uk"
41
42
  end
42
43
  end
43
44
  end
@@ -38,6 +38,7 @@ module Nordlet
38
38
  HI = "hi"
39
39
  RU = "ru"
40
40
  TR = "tr"
41
+ UK = "uk"
41
42
  end
42
43
  end
43
44
  end
@@ -9,6 +9,36 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
41
+ UK = "uk"
12
42
  end
13
43
  end
14
44
  end
@@ -16,6 +16,8 @@ module Nordlet
16
16
 
17
17
  field :billing, -> { Nordlet::Account::Types::ExportAccountResponseBilling }, optional: false, nullable: true
18
18
 
19
+ field :billing_accounts, -> { Internal::Types::Array[Nordlet::Account::Types::ExportAccountResponseBillingAccountsItem] }, optional: false, nullable: false, api_name: "billingAccounts"
20
+
19
21
  field :credit_transactions, -> { Internal::Types::Array[Nordlet::Account::Types::ExportAccountResponseCreditTransactionsItem] }, optional: false, nullable: false, api_name: "creditTransactions"
20
22
 
21
23
  field :audit_entries, -> { Internal::Types::Array[Nordlet::Account::Types::ExportAccountResponseAuditEntriesItem] }, optional: false, nullable: false, api_name: "auditEntries"
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class ExportAccountResponseBillingAccountsItem < Internal::Types::Model
7
+ field :site, -> { Nordlet::Account::Types::ExportAccountResponseBillingAccountsItemSite }, optional: false, nullable: false
8
+
9
+ field :status, -> { String }, optional: false, nullable: false
10
+
11
+ field :plan, -> { String }, optional: false, nullable: false
12
+
13
+ field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
14
+
15
+ field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
16
+
17
+ field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ module ExportAccountResponseBillingAccountsItemSite
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ APP = "app"
10
+ INVOICE = "invoice"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -6,6 +6,8 @@ module Nordlet
6
6
  class ExportAccountResponseCreditTransactionsItem < Internal::Types::Model
7
7
  field :id, -> { String }, optional: false, nullable: false
8
8
 
9
+ field :site, -> { Nordlet::Account::Types::ExportAccountResponseCreditTransactionsItemSite }, optional: false, nullable: false
10
+
9
11
  field :type, -> { String }, optional: false, nullable: false
10
12
 
11
13
  field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ module ExportAccountResponseCreditTransactionsItemSite
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ APP = "app"
10
+ INVOICE = "invoice"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -9,6 +9,36 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
41
+ UK = "uk"
12
42
  end
13
43
  end
14
44
  end
@@ -9,6 +9,36 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
41
+ UK = "uk"
12
42
  end
13
43
  end
14
44
  end
@@ -9,6 +9,36 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
41
+ UK = "uk"
12
42
  end
13
43
  end
14
44
  end
@@ -9,6 +9,36 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
41
+ UK = "uk"
12
42
  end
13
43
  end
14
44
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class OauthAuthorizeApproveAccountRequest < Internal::Types::Model
7
+ field :client_id, -> { String }, optional: false, nullable: false, api_name: "clientId"
8
+
9
+ field :redirect_uri, -> { String }, optional: true, nullable: false, api_name: "redirectUri"
10
+
11
+ field :response_type, -> { String }, optional: true, nullable: false, api_name: "responseType"
12
+
13
+ field :code_challenge, -> { String }, optional: true, nullable: false, api_name: "codeChallenge"
14
+
15
+ field :code_challenge_method, -> { String }, optional: true, nullable: false, api_name: "codeChallengeMethod"
16
+
17
+ field :state, -> { String }, optional: true, nullable: false
18
+
19
+ field :scope, -> { String }, optional: true, nullable: false
20
+
21
+ field :resource, -> { String }, optional: true, nullable: false
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class OauthAuthorizeApproveAccountResponse < Internal::Types::Model
7
+ field :redirect_to, -> { String }, optional: false, nullable: false, api_name: "redirectTo"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class OauthAuthorizeDenyAccountRequest < Internal::Types::Model
7
+ field :client_id, -> { String }, optional: false, nullable: false, api_name: "clientId"
8
+
9
+ field :redirect_uri, -> { String }, optional: true, nullable: false, api_name: "redirectUri"
10
+
11
+ field :response_type, -> { String }, optional: true, nullable: false, api_name: "responseType"
12
+
13
+ field :code_challenge, -> { String }, optional: true, nullable: false, api_name: "codeChallenge"
14
+
15
+ field :code_challenge_method, -> { String }, optional: true, nullable: false, api_name: "codeChallengeMethod"
16
+
17
+ field :state, -> { String }, optional: true, nullable: false
18
+
19
+ field :scope, -> { String }, optional: true, nullable: false
20
+
21
+ field :resource, -> { String }, optional: true, nullable: false
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class OauthAuthorizeDenyAccountResponse < Internal::Types::Model
7
+ field :redirect_to, -> { String }, optional: false, nullable: false, api_name: "redirectTo"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class OauthAuthorizeDescribeAccountRequest < Internal::Types::Model
7
+ field :client_id, -> { String }, optional: false, nullable: false, api_name: "clientId"
8
+
9
+ field :redirect_uri, -> { String }, optional: true, nullable: false, api_name: "redirectUri"
10
+
11
+ field :response_type, -> { String }, optional: true, nullable: false, api_name: "responseType"
12
+
13
+ field :code_challenge, -> { String }, optional: true, nullable: false, api_name: "codeChallenge"
14
+
15
+ field :code_challenge_method, -> { String }, optional: true, nullable: false, api_name: "codeChallengeMethod"
16
+
17
+ field :state, -> { String }, optional: true, nullable: false
18
+
19
+ field :scope, -> { String }, optional: true, nullable: false
20
+
21
+ field :resource, -> { String }, optional: true, nullable: false
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ class OauthAuthorizeDescribeAccountResponse < Internal::Types::Model
7
+ field :client_name, -> { String }, optional: false, nullable: false, api_name: "clientName"
8
+
9
+ field :redirect_uri, -> { String }, optional: false, nullable: false, api_name: "redirectUri"
10
+
11
+ field :redirect_host, -> { String }, optional: false, nullable: false, api_name: "redirectHost"
12
+
13
+ field :scopes, -> { Internal::Types::Array[String] }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :unit_price, -> { String }, optional: true, nullable: false, api_name: "unitPrice"
14
14
 
15
15
  field :vat_rate_percent, -> { String }, optional: true, nullable: false, api_name: "vatRatePercent"
16
+
17
+ field :vat_classifier_code, -> { String }, optional: true, nullable: false, api_name: "vatClassifierCode"
16
18
  end
17
19
  end
18
20
  end
@@ -15,6 +15,8 @@ module Nordlet
15
15
  field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
16
16
 
17
17
  field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
18
+
19
+ field :vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "vatClassifierCode"
18
20
  end
19
21
  end
20
22
  end