factpulse 3.0.18 → 3.0.19
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/CHANGELOG.md +3 -3
- data/Gemfile.lock +1 -1
- data/docs/FactureElectroniqueRestApiSchemasEreportingValidationError.md +22 -0
- data/docs/ValidateEReportingResponse.md +2 -2
- data/docs/ValidationInfo.md +1 -1
- data/lib/factpulse/helpers/helpers.rb +2 -2
- data/lib/factpulse/models/{facture_electronique_rest_api_schemas_convert_validation_error.rb → facture_electronique_rest_api_schemas_ereporting_validation_error.rb} +29 -120
- data/lib/factpulse/models/validate_e_reporting_response.rb +2 -2
- data/lib/factpulse/models/validation_info.rb +1 -1
- data/lib/factpulse/version.rb +1 -1
- data/lib/factpulse.rb +1 -1
- metadata +3 -3
- data/docs/FactureElectroniqueRestApiSchemasConvertValidationError.md +0 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc322965aa45fed40a4b1d7025e775c83b38c92eab2248e623ae7c5db29fa393
|
|
4
|
+
data.tar.gz: e88a12af26ebf977a1b34c4c7d77b4f6955d7bb4c198c16e321c971dcf87b268
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8e8a286440110ccd609bc054d143ab514fe77ae819ee97332f3fdaf2dd0734cee526151a61d095bab56d96c86d4ca7d298f3b984ca664b161529ae42116c2d1
|
|
7
|
+
data.tar.gz: fe10c57ceb422ccafb9dae91afccfb22104b80a2a5ca0b7944985e264c81f60a7bf646b4e87797fbe8c74c84adc038895c98fb64ea8762e244772652688b7510
|
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.
|
|
10
|
+
## [3.0.19] - 2026-01-14
|
|
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.
|
|
28
|
-
[3.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.19...HEAD
|
|
28
|
+
[3.0.19]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.19
|
data/Gemfile.lock
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# FactPulse::FactureElectroniqueRestApiSchemasEreportingValidationError
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **field** | **String** | Field path with error | |
|
|
8
|
+
| **message** | **String** | Error message | |
|
|
9
|
+
| **code** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'factpulse'
|
|
15
|
+
|
|
16
|
+
instance = FactPulse::FactureElectroniqueRestApiSchemasEreportingValidationError.new(
|
|
17
|
+
field: null,
|
|
18
|
+
message: null,
|
|
19
|
+
code: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
| **valid** | **Boolean** | Whether the data is valid | |
|
|
8
8
|
| **report_id** | **String** | Report identifier | |
|
|
9
9
|
| **flow_type** | **String** | Flux type | |
|
|
10
|
-
| **errors** | [**Array<
|
|
11
|
-
| **warnings** | [**Array<
|
|
10
|
+
| **errors** | [**Array<FactureElectroniqueRestApiSchemasEreportingValidationError>**](FactureElectroniqueRestApiSchemasEreportingValidationError.md) | List of validation errors (if any) | [optional] |
|
|
11
|
+
| **warnings** | [**Array<FactureElectroniqueRestApiSchemasEreportingValidationError>**](FactureElectroniqueRestApiSchemasEreportingValidationError.md) | List of validation warnings (if any) | [optional] |
|
|
12
12
|
| **message** | **String** | Status message | |
|
|
13
13
|
|
|
14
14
|
## Example
|
data/docs/ValidationInfo.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **schematron_rules_total** | **Integer** | Total regles | |
|
|
10
10
|
| **pdfa_compliant** | **Boolean** | PDF/A-3 conforme | [optional][default to true] |
|
|
11
11
|
| **xml_embedded** | **Boolean** | XML embarque dans PDF | [optional][default to true] |
|
|
12
|
-
| **errors** | [**Array<
|
|
12
|
+
| **errors** | [**Array<ValidationError>**](ValidationError.md) | | [optional] |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
-
require_relative '
|
|
3
|
-
require_relative '
|
|
2
|
+
require_relative 'exceptions'
|
|
3
|
+
require_relative 'client'
|
|
4
4
|
module FactPulse
|
|
5
5
|
module Helpers
|
|
6
6
|
def self.create_client(**opts); FactPulseClient.new(**opts); end
|
|
@@ -14,38 +14,22 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
#
|
|
18
|
-
class
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
17
|
+
# Validation error detail.
|
|
18
|
+
class FactureElectroniqueRestApiSchemasEreportingValidationError < ApiModelBase
|
|
19
|
+
# Field path with error
|
|
20
|
+
attr_accessor :field
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# Gravite: error, warning
|
|
25
|
-
attr_accessor :severity
|
|
26
|
-
|
|
27
|
-
# Message d'erreur
|
|
22
|
+
# Error message
|
|
28
23
|
attr_accessor :message
|
|
29
24
|
|
|
30
|
-
attr_accessor :
|
|
31
|
-
|
|
32
|
-
attr_accessor :suggested_field
|
|
33
|
-
|
|
34
|
-
attr_accessor :explanation
|
|
35
|
-
|
|
36
|
-
attr_accessor :confidence
|
|
25
|
+
attr_accessor :code
|
|
37
26
|
|
|
38
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
28
|
def self.attribute_map
|
|
40
29
|
{
|
|
41
|
-
:'
|
|
42
|
-
:'bt_code' => :'bt_code',
|
|
43
|
-
:'severity' => :'severity',
|
|
30
|
+
:'field' => :'field',
|
|
44
31
|
:'message' => :'message',
|
|
45
|
-
:'
|
|
46
|
-
:'suggested_field' => :'suggested_field',
|
|
47
|
-
:'explanation' => :'explanation',
|
|
48
|
-
:'confidence' => :'confidence'
|
|
32
|
+
:'code' => :'code'
|
|
49
33
|
}
|
|
50
34
|
end
|
|
51
35
|
|
|
@@ -62,25 +46,16 @@ module FactPulse
|
|
|
62
46
|
# Attribute type mapping.
|
|
63
47
|
def self.openapi_types
|
|
64
48
|
{
|
|
65
|
-
:'
|
|
66
|
-
:'bt_code' => :'String',
|
|
67
|
-
:'severity' => :'String',
|
|
49
|
+
:'field' => :'String',
|
|
68
50
|
:'message' => :'String',
|
|
69
|
-
:'
|
|
70
|
-
:'suggested_field' => :'String',
|
|
71
|
-
:'explanation' => :'String',
|
|
72
|
-
:'confidence' => :'Float'
|
|
51
|
+
:'code' => :'String'
|
|
73
52
|
}
|
|
74
53
|
end
|
|
75
54
|
|
|
76
55
|
# List of attributes with nullable: true
|
|
77
56
|
def self.openapi_nullable
|
|
78
57
|
Set.new([
|
|
79
|
-
:'
|
|
80
|
-
:'suggested_value',
|
|
81
|
-
:'suggested_field',
|
|
82
|
-
:'explanation',
|
|
83
|
-
:'confidence'
|
|
58
|
+
:'code'
|
|
84
59
|
])
|
|
85
60
|
end
|
|
86
61
|
|
|
@@ -88,32 +63,22 @@ module FactPulse
|
|
|
88
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
89
64
|
def initialize(attributes = {})
|
|
90
65
|
if (!attributes.is_a?(Hash))
|
|
91
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::FactureElectroniqueRestApiSchemasEreportingValidationError` initialize method"
|
|
92
67
|
end
|
|
93
68
|
|
|
94
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
96
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
97
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
98
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::FactureElectroniqueRestApiSchemasEreportingValidationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
99
74
|
end
|
|
100
75
|
h[k.to_sym] = v
|
|
101
76
|
}
|
|
102
77
|
|
|
103
|
-
if attributes.key?(:'
|
|
104
|
-
self.
|
|
78
|
+
if attributes.key?(:'field')
|
|
79
|
+
self.field = attributes[:'field']
|
|
105
80
|
else
|
|
106
|
-
self.
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'bt_code')
|
|
110
|
-
self.bt_code = attributes[:'bt_code']
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
if attributes.key?(:'severity')
|
|
114
|
-
self.severity = attributes[:'severity']
|
|
115
|
-
else
|
|
116
|
-
self.severity = nil
|
|
81
|
+
self.field = nil
|
|
117
82
|
end
|
|
118
83
|
|
|
119
84
|
if attributes.key?(:'message')
|
|
@@ -122,20 +87,8 @@ module FactPulse
|
|
|
122
87
|
self.message = nil
|
|
123
88
|
end
|
|
124
89
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if attributes.key?(:'suggested_field')
|
|
130
|
-
self.suggested_field = attributes[:'suggested_field']
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
if attributes.key?(:'explanation')
|
|
134
|
-
self.explanation = attributes[:'explanation']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.key?(:'confidence')
|
|
138
|
-
self.confidence = attributes[:'confidence']
|
|
90
|
+
if attributes.key?(:'code')
|
|
91
|
+
self.code = attributes[:'code']
|
|
139
92
|
end
|
|
140
93
|
end
|
|
141
94
|
|
|
@@ -144,26 +97,14 @@ module FactPulse
|
|
|
144
97
|
def list_invalid_properties
|
|
145
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
146
99
|
invalid_properties = Array.new
|
|
147
|
-
if @
|
|
148
|
-
invalid_properties.push('invalid value for "
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
if @severity.nil?
|
|
152
|
-
invalid_properties.push('invalid value for "severity", severity cannot be nil.')
|
|
100
|
+
if @field.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
153
102
|
end
|
|
154
103
|
|
|
155
104
|
if @message.nil?
|
|
156
105
|
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
157
106
|
end
|
|
158
107
|
|
|
159
|
-
if !@confidence.nil? && @confidence > 1.0
|
|
160
|
-
invalid_properties.push('invalid value for "confidence", must be smaller than or equal to 1.0.')
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
if !@confidence.nil? && @confidence < 0.0
|
|
164
|
-
invalid_properties.push('invalid value for "confidence", must be greater than or equal to 0.0.')
|
|
165
|
-
end
|
|
166
|
-
|
|
167
108
|
invalid_properties
|
|
168
109
|
end
|
|
169
110
|
|
|
@@ -171,32 +112,19 @@ module FactPulse
|
|
|
171
112
|
# @return true if the model is valid
|
|
172
113
|
def valid?
|
|
173
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
174
|
-
return false if @
|
|
175
|
-
return false if @severity.nil?
|
|
115
|
+
return false if @field.nil?
|
|
176
116
|
return false if @message.nil?
|
|
177
|
-
return false if !@confidence.nil? && @confidence > 1.0
|
|
178
|
-
return false if !@confidence.nil? && @confidence < 0.0
|
|
179
117
|
true
|
|
180
118
|
end
|
|
181
119
|
|
|
182
120
|
# Custom attribute writer method with validation
|
|
183
|
-
# @param [Object]
|
|
184
|
-
def
|
|
185
|
-
if
|
|
186
|
-
fail ArgumentError, '
|
|
121
|
+
# @param [Object] field Value to be assigned
|
|
122
|
+
def field=(field)
|
|
123
|
+
if field.nil?
|
|
124
|
+
fail ArgumentError, 'field cannot be nil'
|
|
187
125
|
end
|
|
188
126
|
|
|
189
|
-
@
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# Custom attribute writer method with validation
|
|
193
|
-
# @param [Object] severity Value to be assigned
|
|
194
|
-
def severity=(severity)
|
|
195
|
-
if severity.nil?
|
|
196
|
-
fail ArgumentError, 'severity cannot be nil'
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
@severity = severity
|
|
127
|
+
@field = field
|
|
200
128
|
end
|
|
201
129
|
|
|
202
130
|
# Custom attribute writer method with validation
|
|
@@ -209,33 +137,14 @@ module FactPulse
|
|
|
209
137
|
@message = message
|
|
210
138
|
end
|
|
211
139
|
|
|
212
|
-
# Custom attribute writer method with validation
|
|
213
|
-
# @param [Object] confidence Value to be assigned
|
|
214
|
-
def confidence=(confidence)
|
|
215
|
-
if !confidence.nil? && confidence > 1.0
|
|
216
|
-
fail ArgumentError, 'invalid value for "confidence", must be smaller than or equal to 1.0.'
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
if !confidence.nil? && confidence < 0.0
|
|
220
|
-
fail ArgumentError, 'invalid value for "confidence", must be greater than or equal to 0.0.'
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
@confidence = confidence
|
|
224
|
-
end
|
|
225
|
-
|
|
226
140
|
# Checks equality by comparing each attribute.
|
|
227
141
|
# @param [Object] Object to be compared
|
|
228
142
|
def ==(o)
|
|
229
143
|
return true if self.equal?(o)
|
|
230
144
|
self.class == o.class &&
|
|
231
|
-
|
|
232
|
-
bt_code == o.bt_code &&
|
|
233
|
-
severity == o.severity &&
|
|
145
|
+
field == o.field &&
|
|
234
146
|
message == o.message &&
|
|
235
|
-
|
|
236
|
-
suggested_field == o.suggested_field &&
|
|
237
|
-
explanation == o.explanation &&
|
|
238
|
-
confidence == o.confidence
|
|
147
|
+
code == o.code
|
|
239
148
|
end
|
|
240
149
|
|
|
241
150
|
# @see the `==` method
|
|
@@ -247,7 +156,7 @@ module FactPulse
|
|
|
247
156
|
# Calculates hash code according to all attributes.
|
|
248
157
|
# @return [Integer] Hash code
|
|
249
158
|
def hash
|
|
250
|
-
[
|
|
159
|
+
[field, message, code].hash
|
|
251
160
|
end
|
|
252
161
|
|
|
253
162
|
# Builds the object from hash
|
|
@@ -62,8 +62,8 @@ module FactPulse
|
|
|
62
62
|
:'valid' => :'Boolean',
|
|
63
63
|
:'report_id' => :'String',
|
|
64
64
|
:'flow_type' => :'String',
|
|
65
|
-
:'errors' => :'Array<
|
|
66
|
-
:'warnings' => :'Array<
|
|
65
|
+
:'errors' => :'Array<FactureElectroniqueRestApiSchemasEreportingValidationError>',
|
|
66
|
+
:'warnings' => :'Array<FactureElectroniqueRestApiSchemasEreportingValidationError>',
|
|
67
67
|
:'message' => :'String'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
@@ -63,7 +63,7 @@ module FactPulse
|
|
|
63
63
|
:'schematron_rules_total' => :'Integer',
|
|
64
64
|
:'pdfa_compliant' => :'Boolean',
|
|
65
65
|
:'xml_embedded' => :'Boolean',
|
|
66
|
-
:'errors' => :'Array<
|
|
66
|
+
:'errors' => :'Array<ValidationError>'
|
|
67
67
|
}
|
|
68
68
|
end
|
|
69
69
|
|
data/lib/factpulse/version.rb
CHANGED
data/lib/factpulse.rb
CHANGED
|
@@ -160,7 +160,7 @@ require 'factpulse/models/extraction_info'
|
|
|
160
160
|
require 'factpulse/models/factur_x_invoice'
|
|
161
161
|
require 'factpulse/models/factur_xpdf_info'
|
|
162
162
|
require 'factpulse/models/facture_electronique_models_invoice_type_code'
|
|
163
|
-
require 'factpulse/models/
|
|
163
|
+
require 'factpulse/models/facture_electronique_rest_api_schemas_ereporting_validation_error'
|
|
164
164
|
require 'factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials'
|
|
165
165
|
require 'factpulse/models/field_status'
|
|
166
166
|
require 'factpulse/models/file_info'
|
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.
|
|
4
|
+
version: 3.0.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -265,7 +265,7 @@ files:
|
|
|
265
265
|
- docs/FacturXInvoice.md
|
|
266
266
|
- docs/FacturXPDFInfo.md
|
|
267
267
|
- docs/FactureElectroniqueModelsInvoiceTypeCode.md
|
|
268
|
-
- docs/
|
|
268
|
+
- docs/FactureElectroniqueRestApiSchemasEreportingValidationError.md
|
|
269
269
|
- docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md
|
|
270
270
|
- docs/FieldStatus.md
|
|
271
271
|
- docs/FileInfo.md
|
|
@@ -567,7 +567,7 @@ files:
|
|
|
567
567
|
- lib/factpulse/models/factur_x_invoice.rb
|
|
568
568
|
- lib/factpulse/models/factur_xpdf_info.rb
|
|
569
569
|
- lib/factpulse/models/facture_electronique_models_invoice_type_code.rb
|
|
570
|
-
- lib/factpulse/models/
|
|
570
|
+
- lib/factpulse/models/facture_electronique_rest_api_schemas_ereporting_validation_error.rb
|
|
571
571
|
- lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb
|
|
572
572
|
- lib/factpulse/models/field_status.rb
|
|
573
573
|
- lib/factpulse/models/file_info.rb
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# FactPulse::FactureElectroniqueRestApiSchemasConvertValidationError
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **rule** | **String** | Code de la regle (BR-XX, BR-FR-XX) | |
|
|
8
|
-
| **bt_code** | **String** | | [optional] |
|
|
9
|
-
| **severity** | **String** | Gravite: error, warning | |
|
|
10
|
-
| **message** | **String** | Message d'erreur | |
|
|
11
|
-
| **suggested_value** | **String** | | [optional] |
|
|
12
|
-
| **suggested_field** | **String** | | [optional] |
|
|
13
|
-
| **explanation** | **String** | | [optional] |
|
|
14
|
-
| **confidence** | **Float** | | [optional] |
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```ruby
|
|
19
|
-
require 'factpulse'
|
|
20
|
-
|
|
21
|
-
instance = FactPulse::FactureElectroniqueRestApiSchemasConvertValidationError.new(
|
|
22
|
-
rule: null,
|
|
23
|
-
bt_code: null,
|
|
24
|
-
severity: null,
|
|
25
|
-
message: null,
|
|
26
|
-
suggested_value: null,
|
|
27
|
-
suggested_field: null,
|
|
28
|
-
explanation: null,
|
|
29
|
-
confidence: null
|
|
30
|
-
)
|
|
31
|
-
```
|
|
32
|
-
|