factpulse 3.0.2 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c71db495a442c7d0848b85dc8e4bf39ad40d7ee4ed8a8661d7d38a692cf291ed
4
- data.tar.gz: 524461e404aa91f2ddd0c51a008ea2a4b4f6e136a5a2ec4db71922b8d9282a5e
3
+ metadata.gz: 65c1cffbd2a4bad195565f89a351948891d7a21ba9285c79ec82a4f473c81c62
4
+ data.tar.gz: a5b525f26223adfe3fb6b724de189b79b8c876a1cd73bc89ec76d056166a94ea
5
5
  SHA512:
6
- metadata.gz: c1109f68b8dc55a958f4d235f843912c0a6ab56f8539b439472c206287a97d22be212ccc775efb31ec0ae56528c8f36c199955a706f46179eb60364dd260124f
7
- data.tar.gz: 3b929bc0efda7a80f122068b3fae3ce5c0cd3e26afa428e4644fde7bacf9d7b13f73b9363b661d2030edcc2206bb76513ffa9e1a40993efa58612708c567047d
6
+ metadata.gz: 36e9f3719236e58672f688bb8b3c20ffe3836f128eb215913b34549e634c55e49b81f8a92ed4455572a47127fec6aad61def2053d89d2b9a1608abb00619bafd
7
+ data.tar.gz: 1ba42040938fb701a9c0e728f1d12d9e00cc004212d88da7fce86d5c151be0ba463d365e1f9d843bad6cba0e0626cbb0755b01e7bf767c4e859f252ac9c8181e
data/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [3.0.2] - 2025-12-19
10
+ ## [3.0.3] - 2025-12-19
11
11
 
12
12
  ### Added
13
13
  - Version initiale du SDK ruby
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
24
24
  - Guide d'authentification JWT
25
25
  - Configuration avancée (timeout, proxy, debug)
26
26
 
27
- [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.2...HEAD
28
- [3.0.2]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.2
27
+ [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.3...HEAD
28
+ [3.0.3]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (3.0.2)
4
+ factpulse (3.0.3)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -1,4 +1,4 @@
1
- # FactPulse::TaskStatus
1
+ # FactPulse::AsyncTaskStatus
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'factpulse'
15
15
 
16
- instance = FactPulse::TaskStatus.new(
16
+ instance = FactPulse::AsyncTaskStatus.new(
17
17
  task_id: null,
18
18
  status: null,
19
19
  result: null
@@ -167,7 +167,7 @@ end
167
167
 
168
168
  ## get_task_status_api_v1_processing_tasks_task_id_status_get
169
169
 
170
- > <TaskStatus> get_task_status_api_v1_processing_tasks_task_id_status_get(task_id)
170
+ > <AsyncTaskStatus> get_task_status_api_v1_processing_tasks_task_id_status_get(task_id)
171
171
 
172
172
  Get task generation status
173
173
 
@@ -200,7 +200,7 @@ end
200
200
 
201
201
  This returns an Array which contains the response data, status code and headers.
202
202
 
203
- > <Array(<TaskStatus>, Integer, Hash)> get_task_status_api_v1_processing_tasks_task_id_status_get_with_http_info(task_id)
203
+ > <Array(<AsyncTaskStatus>, Integer, Hash)> get_task_status_api_v1_processing_tasks_task_id_status_get_with_http_info(task_id)
204
204
 
205
205
  ```ruby
206
206
  begin
@@ -208,7 +208,7 @@ begin
208
208
  data, status_code, headers = api_instance.get_task_status_api_v1_processing_tasks_task_id_status_get_with_http_info(task_id)
209
209
  p status_code # => 2xx
210
210
  p headers # => { ... }
211
- p data # => <TaskStatus>
211
+ p data # => <AsyncTaskStatus>
212
212
  rescue FactPulse::ApiError => e
213
213
  puts "Error when calling InvoiceProcessingApi->get_task_status_api_v1_processing_tasks_task_id_status_get_with_http_info: #{e}"
214
214
  end
@@ -222,7 +222,7 @@ end
222
222
 
223
223
  ### Return type
224
224
 
225
- [**TaskStatus**](TaskStatus.md)
225
+ [**AsyncTaskStatus**](AsyncTaskStatus.md)
226
226
 
227
227
  ### Authorization
228
228
 
@@ -14,7 +14,7 @@ All URIs are relative to *http://localhost*
14
14
 
15
15
  ## get_verification_status_api_v1_verification_verify_async_task_id_status_get
16
16
 
17
- > <TaskStatus> get_verification_status_api_v1_verification_verify_async_task_id_status_get(task_id)
17
+ > <AsyncTaskStatus> get_verification_status_api_v1_verification_verify_async_task_id_status_get(task_id)
18
18
 
19
19
  Get status of an asynchronous verification
20
20
 
@@ -47,7 +47,7 @@ end
47
47
 
48
48
  This returns an Array which contains the response data, status code and headers.
49
49
 
50
- > <Array(<TaskStatus>, Integer, Hash)> get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id)
50
+ > <Array(<AsyncTaskStatus>, Integer, Hash)> get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id)
51
51
 
52
52
  ```ruby
53
53
  begin
@@ -55,7 +55,7 @@ begin
55
55
  data, status_code, headers = api_instance.get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id)
56
56
  p status_code # => 2xx
57
57
  p headers # => { ... }
58
- p data # => <TaskStatus>
58
+ p data # => <AsyncTaskStatus>
59
59
  rescue FactPulse::ApiError => e
60
60
  puts "Error when calling PDFXMLVerificationApi->get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info: #{e}"
61
61
  end
@@ -69,7 +69,7 @@ end
69
69
 
70
70
  ### Return type
71
71
 
72
- [**TaskStatus**](TaskStatus.md)
72
+ [**AsyncTaskStatus**](AsyncTaskStatus.md)
73
73
 
74
74
  ### Authorization
75
75
 
@@ -83,7 +83,7 @@ end
83
83
 
84
84
  ## get_verification_status_api_v1_verification_verify_async_task_id_status_get_0
85
85
 
86
- > <TaskStatus> get_verification_status_api_v1_verification_verify_async_task_id_status_get_0(task_id)
86
+ > <AsyncTaskStatus> get_verification_status_api_v1_verification_verify_async_task_id_status_get_0(task_id)
87
87
 
88
88
  Get status of an asynchronous verification
89
89
 
@@ -116,7 +116,7 @@ end
116
116
 
117
117
  This returns an Array which contains the response data, status code and headers.
118
118
 
119
- > <Array(<TaskStatus>, Integer, Hash)> get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id)
119
+ > <Array(<AsyncTaskStatus>, Integer, Hash)> get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id)
120
120
 
121
121
  ```ruby
122
122
  begin
@@ -124,7 +124,7 @@ begin
124
124
  data, status_code, headers = api_instance.get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id)
125
125
  p status_code # => 2xx
126
126
  p headers # => { ... }
127
- p data # => <TaskStatus>
127
+ p data # => <AsyncTaskStatus>
128
128
  rescue FactPulse::ApiError => e
129
129
  puts "Error when calling PDFXMLVerificationApi->get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info: #{e}"
130
130
  end
@@ -138,7 +138,7 @@ end
138
138
 
139
139
  ### Return type
140
140
 
141
- [**TaskStatus**](TaskStatus.md)
141
+ [**AsyncTaskStatus**](AsyncTaskStatus.md)
142
142
 
143
143
  ### Authorization
144
144
 
@@ -172,7 +172,7 @@ module FactPulse
172
172
  # Retrieves the progress status of an invoice generation task. ## Possible states The `status` field uses the `CeleryStatus` enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the `CeleryStatus` schema documentation for details. ## Business result When `status=\"SUCCESS\"`, the `result` field contains: - `status`: \"SUCCESS\" or \"ERROR\" (business result) - `content_b64`: Base64 encoded content (if success) - `errorCode`, `errorMessage`, `details`: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until `status` is `SUCCESS` or `FAILURE`.
173
173
  # @param task_id [String]
174
174
  # @param [Hash] opts the optional parameters
175
- # @return [TaskStatus]
175
+ # @return [AsyncTaskStatus]
176
176
  def get_task_status_api_v1_processing_tasks_task_id_status_get(task_id, opts = {})
177
177
  data, _status_code, _headers = get_task_status_api_v1_processing_tasks_task_id_status_get_with_http_info(task_id, opts)
178
178
  data
@@ -182,7 +182,7 @@ module FactPulse
182
182
  # Retrieves the progress status of an invoice generation task. ## Possible states The &#x60;status&#x60; field uses the &#x60;CeleryStatus&#x60; enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the &#x60;CeleryStatus&#x60; schema documentation for details. ## Business result When &#x60;status&#x3D;\&quot;SUCCESS\&quot;&#x60;, the &#x60;result&#x60; field contains: - &#x60;status&#x60;: \&quot;SUCCESS\&quot; or \&quot;ERROR\&quot; (business result) - &#x60;content_b64&#x60;: Base64 encoded content (if success) - &#x60;errorCode&#x60;, &#x60;errorMessage&#x60;, &#x60;details&#x60;: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until &#x60;status&#x60; is &#x60;SUCCESS&#x60; or &#x60;FAILURE&#x60;.
183
183
  # @param task_id [String]
184
184
  # @param [Hash] opts the optional parameters
185
- # @return [Array<(TaskStatus, Integer, Hash)>] TaskStatus data, response status code and response headers
185
+ # @return [Array<(AsyncTaskStatus, Integer, Hash)>] AsyncTaskStatus data, response status code and response headers
186
186
  def get_task_status_api_v1_processing_tasks_task_id_status_get_with_http_info(task_id, opts = {})
187
187
  if @api_client.config.debugging
188
188
  @api_client.config.logger.debug 'Calling API: InvoiceProcessingApi.get_task_status_api_v1_processing_tasks_task_id_status_get ...'
@@ -209,7 +209,7 @@ module FactPulse
209
209
  post_body = opts[:debug_body]
210
210
 
211
211
  # return_type
212
- return_type = opts[:debug_return_type] || 'TaskStatus'
212
+ return_type = opts[:debug_return_type] || 'AsyncTaskStatus'
213
213
 
214
214
  # auth_names
215
215
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
@@ -23,7 +23,7 @@ module FactPulse
23
23
  # Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
24
24
  # @param task_id [String]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [TaskStatus]
26
+ # @return [AsyncTaskStatus]
27
27
  def get_verification_status_api_v1_verification_verify_async_task_id_status_get(task_id, opts = {})
28
28
  data, _status_code, _headers = get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id, opts)
29
29
  data
@@ -33,7 +33,7 @@ module FactPulse
33
33
  # Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - &#x60;PENDING&#x60;: Task waiting in queue - &#x60;STARTED&#x60;: Task currently running - &#x60;SUCCESS&#x60;: Task completed successfully (see &#x60;result&#x60;) - &#x60;FAILURE&#x60;: System error (unhandled exception) **Note:** The &#x60;result.status&#x60; field can be \&quot;SUCCESS\&quot; or \&quot;ERROR\&quot; independently of Celery status (which will always be SUCCESS if the task ran).
34
34
  # @param task_id [String]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(TaskStatus, Integer, Hash)>] TaskStatus data, response status code and response headers
36
+ # @return [Array<(AsyncTaskStatus, Integer, Hash)>] AsyncTaskStatus data, response status code and response headers
37
37
  def get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: PDFXMLVerificationApi.get_verification_status_api_v1_verification_verify_async_task_id_status_get ...'
@@ -60,7 +60,7 @@ module FactPulse
60
60
  post_body = opts[:debug_body]
61
61
 
62
62
  # return_type
63
- return_type = opts[:debug_return_type] || 'TaskStatus'
63
+ return_type = opts[:debug_return_type] || 'AsyncTaskStatus'
64
64
 
65
65
  # auth_names
66
66
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
@@ -86,7 +86,7 @@ module FactPulse
86
86
  # Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
87
87
  # @param task_id [String]
88
88
  # @param [Hash] opts the optional parameters
89
- # @return [TaskStatus]
89
+ # @return [AsyncTaskStatus]
90
90
  def get_verification_status_api_v1_verification_verify_async_task_id_status_get_0(task_id, opts = {})
91
91
  data, _status_code, _headers = get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id, opts)
92
92
  data
@@ -96,7 +96,7 @@ module FactPulse
96
96
  # Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - &#x60;PENDING&#x60;: Task waiting in queue - &#x60;STARTED&#x60;: Task currently running - &#x60;SUCCESS&#x60;: Task completed successfully (see &#x60;result&#x60;) - &#x60;FAILURE&#x60;: System error (unhandled exception) **Note:** The &#x60;result.status&#x60; field can be \&quot;SUCCESS\&quot; or \&quot;ERROR\&quot; independently of Celery status (which will always be SUCCESS if the task ran).
97
97
  # @param task_id [String]
98
98
  # @param [Hash] opts the optional parameters
99
- # @return [Array<(TaskStatus, Integer, Hash)>] TaskStatus data, response status code and response headers
99
+ # @return [Array<(AsyncTaskStatus, Integer, Hash)>] AsyncTaskStatus data, response status code and response headers
100
100
  def get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id, opts = {})
101
101
  if @api_client.config.debugging
102
102
  @api_client.config.logger.debug 'Calling API: PDFXMLVerificationApi.get_verification_status_api_v1_verification_verify_async_task_id_status_get_0 ...'
@@ -123,7 +123,7 @@ module FactPulse
123
123
  post_body = opts[:debug_body]
124
124
 
125
125
  # return_type
126
- return_type = opts[:debug_return_type] || 'TaskStatus'
126
+ return_type = opts[:debug_return_type] || 'AsyncTaskStatus'
127
127
 
128
128
  # auth_names
129
129
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module FactPulse
17
17
  # Complete description of an async task status. The `status` field indicates the Celery state of the task. When `status=\"SUCCESS\"`, check `result.status` for the business result (\"SUCCESS\" or \"ERROR\").
18
- class TaskStatus < ApiModelBase
18
+ class AsyncTaskStatus < ApiModelBase
19
19
  # Unique task identifier
20
20
  attr_accessor :task_id
21
21
 
@@ -85,14 +85,14 @@ module FactPulse
85
85
  # @param [Hash] attributes Model attributes in the form of hash
86
86
  def initialize(attributes = {})
87
87
  if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::TaskStatus` initialize method"
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AsyncTaskStatus` initialize method"
89
89
  end
90
90
 
91
91
  # check to see if the attribute exists and convert string to symbol for hash key
92
92
  acceptable_attribute_map = self.class.acceptable_attribute_map
93
93
  attributes = attributes.each_with_object({}) { |(k, v), h|
94
94
  if (!acceptable_attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::TaskStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AsyncTaskStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
96
  end
97
97
  h[k.to_sym] = v
98
98
  }
@@ -11,5 +11,5 @@ Generator version: 7.18.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FactPulse
14
- VERSION = '3.0.2'
14
+ VERSION = '3.0.3'
15
15
  end
data/lib/factpulse.rb CHANGED
@@ -27,6 +27,7 @@ require 'factpulse/models/api_profile'
27
27
  require 'factpulse/models/acknowledgment_status'
28
28
  require 'factpulse/models/allowance_reason_code'
29
29
  require 'factpulse/models/amount_due'
30
+ require 'factpulse/models/async_task_status'
30
31
  require 'factpulse/models/bounding_box_schema'
31
32
  require 'factpulse/models/celery_status'
32
33
  require 'factpulse/models/certificate_info_response'
@@ -112,7 +113,6 @@ require 'factpulse/models/submit_vat_amount'
112
113
  require 'factpulse/models/supplementary_attachment'
113
114
  require 'factpulse/models/supplier'
114
115
  require 'factpulse/models/task_response'
115
- require 'factpulse/models/task_status'
116
116
  require 'factpulse/models/taxable_amount'
117
117
  require 'factpulse/models/total_gross_amount'
118
118
  require 'factpulse/models/total_net_amount'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factpulse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -128,6 +128,7 @@ files:
128
128
  - docs/AcknowledgmentStatus.md
129
129
  - docs/AllowanceReasonCode.md
130
130
  - docs/AmountDue.md
131
+ - docs/AsyncTaskStatus.md
131
132
  - docs/BoundingBoxSchema.md
132
133
  - docs/CeleryStatus.md
133
134
  - docs/CertificateInfoResponse.md
@@ -217,7 +218,6 @@ files:
217
218
  - docs/SupplementaryAttachment.md
218
219
  - docs/Supplier.md
219
220
  - docs/TaskResponse.md
220
- - docs/TaskStatus.md
221
221
  - docs/TaxableAmount.md
222
222
  - docs/TotalGrossAmount.md
223
223
  - docs/TotalNetAmount.md
@@ -263,6 +263,7 @@ files:
263
263
  - lib/factpulse/models/amount_due.rb
264
264
  - lib/factpulse/models/api_error.rb
265
265
  - lib/factpulse/models/api_profile.rb
266
+ - lib/factpulse/models/async_task_status.rb
266
267
  - lib/factpulse/models/bounding_box_schema.rb
267
268
  - lib/factpulse/models/celery_status.rb
268
269
  - lib/factpulse/models/certificate_info_response.rb
@@ -348,7 +349,6 @@ files:
348
349
  - lib/factpulse/models/supplementary_attachment.rb
349
350
  - lib/factpulse/models/supplier.rb
350
351
  - lib/factpulse/models/task_response.rb
351
- - lib/factpulse/models/task_status.rb
352
352
  - lib/factpulse/models/taxable_amount.rb
353
353
  - lib/factpulse/models/total_gross_amount.rb
354
354
  - lib/factpulse/models/total_net_amount.rb