invoicetronic_sdk 1.10 → 1.11

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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/Gemfile.lock +2 -2
  4. data/README.md +16 -5
  5. data/docs/Permissions.md +34 -0
  6. data/docs/SubKey.md +34 -0
  7. data/docs/SubKeyRequest.md +26 -0
  8. data/docs/SubKeyUpdate.md +30 -0
  9. data/docs/SubKeyWithSecrets.md +38 -0
  10. data/docs/SubkeyApi.md +447 -0
  11. data/docs/WebHookHistory.md +4 -0
  12. data/docs/WebhookApi.md +7 -7
  13. data/invoicetronic_sdk.gemspec +1 -1
  14. data/lib/invoicetronic_sdk/api/company_api.rb +1 -1
  15. data/lib/invoicetronic_sdk/api/export_api.rb +1 -1
  16. data/lib/invoicetronic_sdk/api/health_api.rb +1 -1
  17. data/lib/invoicetronic_sdk/api/log_api.rb +1 -1
  18. data/lib/invoicetronic_sdk/api/receive_api.rb +1 -1
  19. data/lib/invoicetronic_sdk/api/send_api.rb +1 -1
  20. data/lib/invoicetronic_sdk/api/status_api.rb +1 -1
  21. data/lib/invoicetronic_sdk/api/subkey_api.rb +422 -0
  22. data/lib/invoicetronic_sdk/api/update_api.rb +1 -1
  23. data/lib/invoicetronic_sdk/api/webhook_api.rb +15 -15
  24. data/lib/invoicetronic_sdk/api_client.rb +2 -2
  25. data/lib/invoicetronic_sdk/api_error.rb +1 -1
  26. data/lib/invoicetronic_sdk/api_model_base.rb +1 -1
  27. data/lib/invoicetronic_sdk/configuration.rb +1 -1
  28. data/lib/invoicetronic_sdk/models/company.rb +1 -1
  29. data/lib/invoicetronic_sdk/models/document_data.rb +1 -1
  30. data/lib/invoicetronic_sdk/models/error.rb +1 -1
  31. data/lib/invoicetronic_sdk/models/event.rb +1 -1
  32. data/lib/invoicetronic_sdk/models/model_send.rb +1 -1
  33. data/lib/invoicetronic_sdk/models/permissions.rb +368 -0
  34. data/lib/invoicetronic_sdk/models/problem_details.rb +1 -1
  35. data/lib/invoicetronic_sdk/models/receive.rb +1 -1
  36. data/lib/invoicetronic_sdk/models/send_reduced.rb +1 -1
  37. data/lib/invoicetronic_sdk/models/status.rb +1 -1
  38. data/lib/invoicetronic_sdk/models/sub_key.rb +236 -0
  39. data/lib/invoicetronic_sdk/models/sub_key_request.rb +220 -0
  40. data/lib/invoicetronic_sdk/models/sub_key_update.rb +240 -0
  41. data/lib/invoicetronic_sdk/models/sub_key_with_secrets.rb +258 -0
  42. data/lib/invoicetronic_sdk/models/update.rb +1 -1
  43. data/lib/invoicetronic_sdk/models/web_hook.rb +1 -1
  44. data/lib/invoicetronic_sdk/models/web_hook_history.rb +23 -2
  45. data/lib/invoicetronic_sdk/version.rb +2 -2
  46. data/lib/invoicetronic_sdk.rb +7 -1
  47. data/spec/api/company_api_spec.rb +1 -1
  48. data/spec/api/export_api_spec.rb +1 -1
  49. data/spec/api/health_api_spec.rb +1 -1
  50. data/spec/api/log_api_spec.rb +1 -1
  51. data/spec/api/receive_api_spec.rb +1 -1
  52. data/spec/api/send_api_spec.rb +1 -1
  53. data/spec/api/status_api_spec.rb +1 -1
  54. data/spec/api/subkey_api_spec.rb +112 -0
  55. data/spec/api/update_api_spec.rb +1 -1
  56. data/spec/api/webhook_api_spec.rb +8 -8
  57. data/spec/models/company_spec.rb +1 -1
  58. data/spec/models/document_data_spec.rb +1 -1
  59. data/spec/models/error_spec.rb +1 -1
  60. data/spec/models/event_spec.rb +1 -1
  61. data/spec/models/model_send_spec.rb +1 -1
  62. data/spec/models/permissions_spec.rb +120 -0
  63. data/spec/models/problem_details_spec.rb +1 -1
  64. data/spec/models/receive_spec.rb +1 -1
  65. data/spec/models/send_reduced_spec.rb +1 -1
  66. data/spec/models/status_spec.rb +1 -1
  67. data/spec/models/sub_key_request_spec.rb +60 -0
  68. data/spec/models/sub_key_spec.rb +84 -0
  69. data/spec/models/sub_key_update_spec.rb +72 -0
  70. data/spec/models/sub_key_with_secrets_spec.rb +96 -0
  71. data/spec/models/update_spec.rb +1 -1
  72. data/spec/models/web_hook_history_spec.rb +13 -1
  73. data/spec/models/web_hook_spec.rb +1 -1
  74. data/spec/spec_helper.rb +1 -1
  75. data/vendor/bundle/ruby/3.3.0/cache/io-console-0.9.4.gem +0 -0
  76. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-13.0.0/gem_make.out +5 -5
  77. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.5.1/gem_make.out +5 -5
  78. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{io-console-0.9.2 → io-console-0.9.4}/gem_make.out +12 -10
  79. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.9.4/io/console.so +0 -0
  80. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{io-console-0.9.2 → io-console-0.9.4}/mkmf.log +27 -0
  81. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  82. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.5.0/gem_make.out +5 -5
  83. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  84. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.2.0/gem_make.out +5 -5
  85. data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/ext/io/console/Makefile +3 -3
  86. data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/ext/io/console/console.c +101 -13
  87. data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/ext/io/console/extconf.rb +27 -2
  88. data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/lib/io/console/size.rb +4 -2
  89. data/vendor/bundle/ruby/3.3.0/gems/io-console-0.9.4/lib/io/console.so +0 -0
  90. data/vendor/bundle/ruby/3.3.0/specifications/{io-console-0.9.2.gemspec → io-console-0.9.4.gemspec} +3 -3
  91. metadata +55 -31
  92. data/vendor/bundle/ruby/3.3.0/cache/io-console-0.9.2.gem +0 -0
  93. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.9.2/io/console.so +0 -0
  94. data/vendor/bundle/ruby/3.3.0/gems/io-console-0.9.2/lib/io/console.so +0 -0
  95. /data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{io-console-0.9.2 → io-console-0.9.4}/gem.build_complete +0 -0
  96. /data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/.document +0 -0
  97. /data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/BSDL +0 -0
  98. /data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/COPYING +0 -0
  99. /data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/README.md +0 -0
  100. /data/vendor/bundle/ruby/3.3.0/gems/{io-console-0.9.2 → io-console-0.9.4}/ext/io/console/win32_vk.inc +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7854f9eb85c3408c0006dd6f6f969a02169f28e9328474f602e64c6508f4fbaa
4
- data.tar.gz: 311fb5f2cefb92a8ef6ab14d6050cf461c5e2cac11896322184ea9f8fc219884
3
+ metadata.gz: d8b8c56e3407502c2b0e473a367f599c8c43fad3ddc125a9c09fb6a360441d96
4
+ data.tar.gz: e617daf1be23b5569ed7ee4188fabd072ef7fe2547c1b73bb616b0704725a053
5
5
  SHA512:
6
- metadata.gz: 781b1d2b076613794e3b857392309fe31f1b414716ce57101d89c2430bfbef08eb187ac41fbb6f44ec4c556fcd00489ee0d7bab9177ad25147139482dc55bd62
7
- data.tar.gz: 187087d7ce25f0731f195c33881dd823aec67c6f2690a40ce67a11a896f8bd0ff69a8a6f1b68406bfc60ec692f29708f6eb5be52ea6ec5578fc4ae0085bd13c2
6
+ metadata.gz: 4b0356a5c293866f838de6f6f6d5418b5e764b12146af045c8636e294e523146c8e85e7eb783090425f4af7a31f622713233d5304677108a70ce095609cf9809
7
+ data.tar.gz: 9e800d7c1930a02ddfc1c74c4b6b0bdfe220da539d786178d837d5cfd1f7504966e95f0e6ac8e93dd82d7fc37b8b832e119a4609e8be7c76ef26c67f291a0e93
data/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- # Changelog\n\n## [1.10.0] - 2026-09-09\nSee main repository changelog for details.
1
+ # Changelog\n\n## [1.11.0] - 2026-09-23\nSee main repository changelog for details.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invoicetronic_sdk (1.10)
4
+ invoicetronic_sdk (1.11)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -27,7 +27,7 @@ GEM
27
27
  ffi (1.17.4-x86_64-darwin)
28
28
  ffi (1.17.4-x86_64-linux-gnu)
29
29
  ffi (1.17.4-x86_64-linux-musl)
30
- io-console (0.9.2)
30
+ io-console (0.9.4)
31
31
  jaro_winkler (1.5.6)
32
32
  logger (1.7.0)
33
33
  method_source (1.1.0)
data/README.md CHANGED
@@ -23,8 +23,8 @@ For the full integration guide, tutorials, SDKs and quickstarts, see the **[Docu
23
23
 
24
24
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
25
25
 
26
- - API version: 1.15.0
27
- - Package version: 1.10
26
+ - API version: 1.17.0
27
+ - Package version: 1.11
28
28
  - Generator version: 7.20.0
29
29
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
30
30
  For more information, please visit [https://invoicetronic.com/en/contact/](https://invoicetronic.com/en/contact/)
@@ -42,16 +42,16 @@ gem build invoicetronic_sdk.gemspec
42
42
  Then either install the gem locally:
43
43
 
44
44
  ```shell
45
- gem install ./invoicetronic_sdk-1.10.gem
45
+ gem install ./invoicetronic_sdk-1.11.gem
46
46
  ```
47
47
 
48
- (for development, run `gem install --dev ./invoicetronic_sdk-1.10.gem` to install the development dependencies)
48
+ (for development, run `gem install --dev ./invoicetronic_sdk-1.11.gem` to install the development dependencies)
49
49
 
50
50
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
51
51
 
52
52
  Finally add this to the Gemfile:
53
53
 
54
- gem 'invoicetronic_sdk', '~> 1.10'
54
+ gem 'invoicetronic_sdk', '~> 1.11'
55
55
 
56
56
  ### Install from Git
57
57
 
@@ -133,6 +133,12 @@ Class | Method | HTTP request | Description
133
133
  *Invoicetronic_Sdk::SendApi* | [**send_validate_xml_post**](docs/SendApi.md#send_validate_xml_post) | **POST** /send/validate/xml | Validate an invoice by xml
134
134
  *Invoicetronic_Sdk::SendApi* | [**send_xml_post**](docs/SendApi.md#send_xml_post) | **POST** /send/xml | Add an invoice by xml
135
135
  *Invoicetronic_Sdk::StatusApi* | [**status_get**](docs/StatusApi.md#status_get) | **GET** /status | Account status
136
+ *Invoicetronic_Sdk::SubkeyApi* | [**subkey_get**](docs/SubkeyApi.md#subkey_get) | **GET** /subkey | List restricted keys
137
+ *Invoicetronic_Sdk::SubkeyApi* | [**subkey_id_delete**](docs/SubkeyApi.md#subkey_id_delete) | **DELETE** /subkey/{id} | Delete a restricted key
138
+ *Invoicetronic_Sdk::SubkeyApi* | [**subkey_id_get**](docs/SubkeyApi.md#subkey_id_get) | **GET** /subkey/{id} | Get a restricted key by id
139
+ *Invoicetronic_Sdk::SubkeyApi* | [**subkey_id_roll_post**](docs/SubkeyApi.md#subkey_id_roll_post) | **POST** /subkey/{id}/roll | Roll the secrets of a restricted key
140
+ *Invoicetronic_Sdk::SubkeyApi* | [**subkey_post**](docs/SubkeyApi.md#subkey_post) | **POST** /subkey | Add a restricted key
141
+ *Invoicetronic_Sdk::SubkeyApi* | [**subkey_put**](docs/SubkeyApi.md#subkey_put) | **PUT** /subkey | Update a restricted key
136
142
  *Invoicetronic_Sdk::UpdateApi* | [**update_get**](docs/UpdateApi.md#update_get) | **GET** /update | List updates
137
143
  *Invoicetronic_Sdk::UpdateApi* | [**update_id_get**](docs/UpdateApi.md#update_id_get) | **GET** /update/{id} | Get an update by id
138
144
  *Invoicetronic_Sdk::WebhookApi* | [**webhook_get**](docs/WebhookApi.md#webhook_get) | **GET** /webhook | List webhooks
@@ -151,10 +157,15 @@ Class | Method | HTTP request | Description
151
157
  - [Invoicetronic_Sdk::Error](docs/Error.md)
152
158
  - [Invoicetronic_Sdk::Event](docs/Event.md)
153
159
  - [Invoicetronic_Sdk::ModelSend](docs/ModelSend.md)
160
+ - [Invoicetronic_Sdk::Permissions](docs/Permissions.md)
154
161
  - [Invoicetronic_Sdk::ProblemDetails](docs/ProblemDetails.md)
155
162
  - [Invoicetronic_Sdk::Receive](docs/Receive.md)
156
163
  - [Invoicetronic_Sdk::SendReduced](docs/SendReduced.md)
157
164
  - [Invoicetronic_Sdk::Status](docs/Status.md)
165
+ - [Invoicetronic_Sdk::SubKey](docs/SubKey.md)
166
+ - [Invoicetronic_Sdk::SubKeyRequest](docs/SubKeyRequest.md)
167
+ - [Invoicetronic_Sdk::SubKeyUpdate](docs/SubKeyUpdate.md)
168
+ - [Invoicetronic_Sdk::SubKeyWithSecrets](docs/SubKeyWithSecrets.md)
158
169
  - [Invoicetronic_Sdk::Update](docs/Update.md)
159
170
  - [Invoicetronic_Sdk::WebHook](docs/WebHook.md)
160
171
  - [Invoicetronic_Sdk::WebHookHistory](docs/WebHookHistory.md)
@@ -0,0 +1,34 @@
1
+ # Invoicetronic_Sdk::Permissions
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **company** | **String** | Companies: `Read` lists and reads them, `Write` also creates, updates and deletes them. | [optional] |
8
+ | **_send** | **String** | Outgoing invoices: `Read` lists and reads them, `Write` also sends and validates invoices. | [optional] |
9
+ | **receive** | **String** | Incoming invoices: `Read` lists and reads them, `Write` also deletes them. | [optional] |
10
+ | **webhook** | **String** | Webhooks: `Read` lists and reads them, `Write` also creates, updates and deletes them. | [optional] |
11
+ | **update** | **String** | SDI status updates of outgoing invoices. | [optional] |
12
+ | **log** | **String** | Event log. | [optional] |
13
+ | **webhookhistory** | **String** | Webhook delivery history. | [optional] |
14
+ | **export** | **String** | Invoice export. | [optional] |
15
+ | **status** | **String** | Account status (remaining operations and signatures). | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'invoicetronic_sdk'
21
+
22
+ instance = Invoicetronic_Sdk::Permissions.new(
23
+ company: null,
24
+ _send: null,
25
+ receive: null,
26
+ webhook: null,
27
+ update: null,
28
+ log: null,
29
+ webhookhistory: null,
30
+ export: null,
31
+ status: null
32
+ )
33
+ ```
34
+
data/docs/SubKey.md ADDED
@@ -0,0 +1,34 @@
1
+ # Invoicetronic_Sdk::SubKey
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | Unique identifier. | [optional] |
8
+ | **created** | **Time** | Creation date. | [optional][readonly] |
9
+ | **version** | **Integer** | Row version, for optimistic concurrency. | [optional][readonly] |
10
+ | **description** | **String** | Human-readable label. | [optional] |
11
+ | **active** | **Boolean** | Whether the key can authenticate. | [optional] |
12
+ | **permissions** | [**Permissions**](Permissions.md) | | [optional] |
13
+ | **company_ids** | **Array<Integer>** | Companies the key can access. Empty means all the companies of the account. | [optional] |
14
+ | **cors_origins** | **Array<String>** | Browser origins allowed to call the API with this key (CORS). | [optional] |
15
+ | **previous_key_expires_at** | **Time** | When the secrets replaced by the last roll stop working; null when there are none still valid. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'invoicetronic_sdk'
21
+
22
+ instance = Invoicetronic_Sdk::SubKey.new(
23
+ id: null,
24
+ created: null,
25
+ version: null,
26
+ description: null,
27
+ active: null,
28
+ permissions: null,
29
+ company_ids: null,
30
+ cors_origins: null,
31
+ previous_key_expires_at: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,26 @@
1
+ # Invoicetronic_Sdk::SubKeyRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | Human-readable label, e.g. the name of the tenant the key is for. | |
8
+ | **active** | **Boolean** | Whether the key can authenticate. Defaults to true. | [optional] |
9
+ | **permissions** | [**Permissions**](Permissions.md) | | [optional] |
10
+ | **company_ids** | **Array<Integer>** | Companies the key can access. When omitted or empty, the key can access all the companies of the account, including the ones created later. | [optional] |
11
+ | **cors_origins** | **Array<String>** | Browser origins allowed to call the API with this key (CORS), e.g. `https://app.example.com` or `*.example.com`. A key used from a browser is public: keep its permissions and companies minimal. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'invoicetronic_sdk'
17
+
18
+ instance = Invoicetronic_Sdk::SubKeyRequest.new(
19
+ description: Studio Rossi Srl,
20
+ active: null,
21
+ permissions: null,
22
+ company_ids: null,
23
+ cors_origins: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,30 @@
1
+ # Invoicetronic_Sdk::SubKeyUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | Human-readable label, e.g. the name of the tenant the key is for. | |
8
+ | **active** | **Boolean** | Whether the key can authenticate. Defaults to true. | [optional] |
9
+ | **permissions** | [**Permissions**](Permissions.md) | | [optional] |
10
+ | **company_ids** | **Array<Integer>** | Companies the key can access. When omitted or empty, the key can access all the companies of the account, including the ones created later. | [optional] |
11
+ | **cors_origins** | **Array<String>** | Browser origins allowed to call the API with this key (CORS), e.g. `https://app.example.com` or `*.example.com`. A key used from a browser is public: keep its permissions and companies minimal. | [optional] |
12
+ | **id** | **Integer** | Id of the restricted key to update. | [optional] |
13
+ | **version** | **Integer** | Row version read with the key, for optimistic concurrency: a stale version fails with 422. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'invoicetronic_sdk'
19
+
20
+ instance = Invoicetronic_Sdk::SubKeyUpdate.new(
21
+ description: Studio Rossi Srl,
22
+ active: null,
23
+ permissions: null,
24
+ company_ids: null,
25
+ cors_origins: null,
26
+ id: null,
27
+ version: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,38 @@
1
+ # Invoicetronic_Sdk::SubKeyWithSecrets
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | Unique identifier. | [optional] |
8
+ | **created** | **Time** | Creation date. | [optional][readonly] |
9
+ | **version** | **Integer** | Row version, for optimistic concurrency. | [optional][readonly] |
10
+ | **description** | **String** | Human-readable label. | [optional] |
11
+ | **active** | **Boolean** | Whether the key can authenticate. | [optional] |
12
+ | **permissions** | [**Permissions**](Permissions.md) | | [optional] |
13
+ | **company_ids** | **Array<Integer>** | Companies the key can access. Empty means all the companies of the account. | [optional] |
14
+ | **cors_origins** | **Array<String>** | Browser origins allowed to call the API with this key (CORS). | [optional] |
15
+ | **previous_key_expires_at** | **Time** | When the secrets replaced by the last roll stop working; null when there are none still valid. | [optional] |
16
+ | **test_key** | **String** | Sandbox secret. | [optional] |
17
+ | **live_key** | **String** | Production secret. | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'invoicetronic_sdk'
23
+
24
+ instance = Invoicetronic_Sdk::SubKeyWithSecrets.new(
25
+ id: null,
26
+ created: null,
27
+ version: null,
28
+ description: null,
29
+ active: null,
30
+ permissions: null,
31
+ company_ids: null,
32
+ cors_origins: null,
33
+ previous_key_expires_at: null,
34
+ test_key: null,
35
+ live_key: null
36
+ )
37
+ ```
38
+