factpulse 3.0.18 → 3.0.23

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: 98bca0f60bcee01674bf70da8ea11603619caa8ea59ef5a7761f10e06bbb9c52
4
- data.tar.gz: 35d0a69e33c140e2cd12475932f2023baa5cbcf5c47e3d7d3aca9511910259c0
3
+ metadata.gz: 208399eb0d04aa5df78529d97f6b49699c8e3d9a70f996fe0efca2730a689f88
4
+ data.tar.gz: a02c042c59671d3880901c194955ecc58534bac6e096a8c8b0b77b81d15bfa62
5
5
  SHA512:
6
- metadata.gz: f838030014b12383e2d0ab71a130cab2e10ca459bc728b5a59e9a0514584d8167588a2817691b743002cc7ef752f15ee0a54f8f6ea5e6433d17f17ed332d5a14
7
- data.tar.gz: 86b66174e10efc73041271ad25e25af94efb6d276b5e48fe2ae705b616626106cc0ceb8db43334e8c9e2e2ff7848d6eab926202ae1503a35597892239fd42f62
6
+ metadata.gz: be7ce1738c2e6ec98c681736b1cfe55da0fdb5d1605f7e8c9fcf424c9e9efb4193cfa5d6f3c6b9bf071b9489c78648b2d359db9a119ea365ad00847469ed324e
7
+ data.tar.gz: 383e68dda93ab90208f4d6ed4e85861128e8d3cff986e6165bd0fc18d9a16f82cd122e91de4b2ac1fd12ada6d3e0ae341d56775f9483c6751c42701b84fb72fa
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.18] - 2026-01-14
10
+ ## [3.0.23] - 2026-01-15
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.18...HEAD
28
- [3.0.18]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.18
27
+ [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.23...HEAD
28
+ [3.0.23]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (3.0.18)
4
+ factpulse (3.0.23)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -0,0 +1,22 @@
1
+ # FactPulse::EReportingValidationError
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::EReportingValidationError.new(
17
+ field: null,
18
+ message: null,
19
+ code: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,15 @@
1
+ # FactPulse::FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'factpulse'
12
+
13
+ instance = FactPulse::FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.new()
14
+ ```
15
+
data/docs/InvoiceInput.md CHANGED
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **invoice_id** | **String** | Invoice identifier | |
8
8
  | **issue_date** | **Date** | Invoice issue date | |
9
- | **type_code** | [**InvoiceTypeCode**](InvoiceTypeCode.md) | Invoice type code | [optional] |
9
+ | **type_code** | [**FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode**](FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md) | Invoice type code | [optional] |
10
10
  | **currency** | [**Currency**](Currency.md) | | [optional] |
11
11
  | **due_date** | **Date** | | [optional] |
12
12
  | **seller_siren** | **String** | Seller SIREN/SIRET | |
@@ -1,4 +1,4 @@
1
- # FactPulse::FactureElectroniqueRestApiSchemasConvertValidationError
1
+ # FactPulse::SchematronValidationError
2
2
 
3
3
  ## Properties
4
4
 
@@ -18,7 +18,7 @@
18
18
  ```ruby
19
19
  require 'factpulse'
20
20
 
21
- instance = FactPulse::FactureElectroniqueRestApiSchemasConvertValidationError.new(
21
+ instance = FactPulse::SchematronValidationError.new(
22
22
  rule: null,
23
23
  bt_code: null,
24
24
  severity: null,
@@ -13,7 +13,7 @@
13
13
  | **comment** | **String** | | [optional] |
14
14
  | **purchase_order_reference** | **String** | | [optional] |
15
15
  | **contract_reference** | **String** | | [optional] |
16
- | **invoice_type** | [**FactureElectroniqueModelsInvoiceTypeCode**](FactureElectroniqueModelsInvoiceTypeCode.md) | Document type (UNTDID 1001). Default: 380 (Invoice). | [optional] |
16
+ | **invoice_type** | [**InvoiceTypeCode**](InvoiceTypeCode.md) | Document type (UNTDID 1001). Default: 380 (Invoice). | [optional] |
17
17
  | **preceding_invoice_reference** | **String** | | [optional] |
18
18
  | **operation_nature** | [**OperationNature**](OperationNature.md) | | [optional] |
19
19
  | **invoicing_framework** | [**InvoicingFrameworkCode**](InvoicingFrameworkCode.md) | | [optional] |
@@ -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<ValidationError>**](ValidationError.md) | List of validation errors (if any) | [optional] |
11
- | **warnings** | [**Array<ValidationError>**](ValidationError.md) | List of validation warnings (if any) | [optional] |
10
+ | **errors** | [**Array<EReportingValidationError>**](EReportingValidationError.md) | List of validation errors (if any) | [optional] |
11
+ | **warnings** | [**Array<EReportingValidationError>**](EReportingValidationError.md) | List of validation warnings (if any) | [optional] |
12
12
  | **message** | **String** | Status message | |
13
13
 
14
14
  ## Example
@@ -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<FactureElectroniqueRestApiSchemasConvertValidationError>**](FactureElectroniqueRestApiSchemasConvertValidationError.md) | | [optional] |
12
+ | **errors** | [**Array<SchematronValidationError>**](SchematronValidationError.md) | | [optional] |
13
13
 
14
14
  ## Example
15
15
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require_relative 'helpers/exceptions'
3
- require_relative 'helpers/client'
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
@@ -0,0 +1,203 @@
1
+ =begin
2
+ #FactPulse REST API
3
+
4
+ # REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://factpulse.fr/api/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://factpulse.fr/documentation-api/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: contact@factpulse.fr
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FactPulse
17
+ # Validation error detail for E-Reporting.
18
+ class EReportingValidationError < ApiModelBase
19
+ # Field path with error
20
+ attr_accessor :field
21
+
22
+ # Error message
23
+ attr_accessor :message
24
+
25
+ attr_accessor :code
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'field' => :'field',
31
+ :'message' => :'message',
32
+ :'code' => :'code'
33
+ }
34
+ end
35
+
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ acceptable_attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'field' => :'String',
50
+ :'message' => :'String',
51
+ :'code' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ :'code'
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::EReportingValidationError` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::EReportingValidationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'field')
79
+ self.field = attributes[:'field']
80
+ else
81
+ self.field = nil
82
+ end
83
+
84
+ if attributes.key?(:'message')
85
+ self.message = attributes[:'message']
86
+ else
87
+ self.message = nil
88
+ end
89
+
90
+ if attributes.key?(:'code')
91
+ self.code = attributes[:'code']
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
+ invalid_properties = Array.new
100
+ if @field.nil?
101
+ invalid_properties.push('invalid value for "field", field cannot be nil.')
102
+ end
103
+
104
+ if @message.nil?
105
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
106
+ end
107
+
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ return false if @field.nil?
116
+ return false if @message.nil?
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] field Value to be assigned
122
+ def field=(field)
123
+ if field.nil?
124
+ fail ArgumentError, 'field cannot be nil'
125
+ end
126
+
127
+ @field = field
128
+ end
129
+
130
+ # Custom attribute writer method with validation
131
+ # @param [Object] message Value to be assigned
132
+ def message=(message)
133
+ if message.nil?
134
+ fail ArgumentError, 'message cannot be nil'
135
+ end
136
+
137
+ @message = message
138
+ end
139
+
140
+ # Checks equality by comparing each attribute.
141
+ # @param [Object] Object to be compared
142
+ def ==(o)
143
+ return true if self.equal?(o)
144
+ self.class == o.class &&
145
+ field == o.field &&
146
+ message == o.message &&
147
+ code == o.code
148
+ end
149
+
150
+ # @see the `==` method
151
+ # @param [Object] Object to be compared
152
+ def eql?(o)
153
+ self == o
154
+ end
155
+
156
+ # Calculates hash code according to all attributes.
157
+ # @return [Integer] Hash code
158
+ def hash
159
+ [field, message, code].hash
160
+ end
161
+
162
+ # Builds the object from hash
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ # @return [Object] Returns the model itself
165
+ def self.build_from_hash(attributes)
166
+ return nil unless attributes.is_a?(Hash)
167
+ attributes = attributes.transform_keys(&:to_sym)
168
+ transformed_hash = {}
169
+ openapi_types.each_pair do |key, type|
170
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = nil
172
+ elsif type =~ /\AArray<(.*)>/i
173
+ # check to ensure the input is an array given that the attribute
174
+ # is documented as an array but the input is not
175
+ if attributes[attribute_map[key]].is_a?(Array)
176
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
177
+ end
178
+ elsif !attributes[attribute_map[key]].nil?
179
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
180
+ end
181
+ end
182
+ new(transformed_hash)
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ end
202
+
203
+ end
@@ -14,26 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- class FactureElectroniqueModelsInvoiceTypeCode
18
- INVOICE = "380".freeze
19
- SELF_BILLED_INVOICE = "389".freeze
20
- FACTORED_INVOICE = "393".freeze
21
- SELF_BILLED_FACTORED_INVOICE = "501".freeze
22
- PREPAYMENT_INVOICE = "386".freeze
23
- SELF_BILLED_PREPAYMENT_INVOICE = "500".freeze
24
- CORRECTIVE_INVOICE = "384".freeze
25
- SELF_BILLED_CORRECTIVE_INVOICE = "471".freeze
26
- FACTORED_CORRECTIVE_INVOICE = "472".freeze
27
- SELF_BILLED_FACTORED_CORRECTIVE_INVOICE = "473".freeze
28
- CREDIT_NOTE = "381".freeze
29
- SELF_BILLED_CREDIT_NOTE = "261".freeze
30
- GLOBAL_ALLOWANCE_CREDIT_NOTE = "262".freeze
31
- FACTORED_CREDIT_NOTE = "396".freeze
32
- SELF_BILLED_FACTORED_CREDIT_NOTE = "502".freeze
33
- PREPAYMENT_CREDIT_NOTE = "503".freeze
17
+ class FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode
18
+ N380 = "380".freeze
19
+ N381 = "381".freeze
20
+ N384 = "384".freeze
21
+ N389 = "389".freeze
22
+ N386 = "386".freeze
34
23
 
35
24
  def self.all_vars
36
- @all_vars ||= [INVOICE, SELF_BILLED_INVOICE, FACTORED_INVOICE, SELF_BILLED_FACTORED_INVOICE, PREPAYMENT_INVOICE, SELF_BILLED_PREPAYMENT_INVOICE, CORRECTIVE_INVOICE, SELF_BILLED_CORRECTIVE_INVOICE, FACTORED_CORRECTIVE_INVOICE, SELF_BILLED_FACTORED_CORRECTIVE_INVOICE, CREDIT_NOTE, SELF_BILLED_CREDIT_NOTE, GLOBAL_ALLOWANCE_CREDIT_NOTE, FACTORED_CREDIT_NOTE, SELF_BILLED_FACTORED_CREDIT_NOTE, PREPAYMENT_CREDIT_NOTE].freeze
25
+ @all_vars ||= [N380, N381, N384, N389, N386].freeze
37
26
  end
38
27
 
39
28
  # Builds the enum from string
@@ -47,8 +36,8 @@ module FactPulse
47
36
  # @param [String] The enum value in the form of the string
48
37
  # @return [String] The enum value
49
38
  def build_from_hash(value)
50
- return value if FactureElectroniqueModelsInvoiceTypeCode.all_vars.include?(value)
51
- raise "Invalid ENUM value #{value} for class #FactureElectroniqueModelsInvoiceTypeCode"
39
+ return value if FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.all_vars.include?(value)
40
+ raise "Invalid ENUM value #{value} for class #FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode"
52
41
  end
53
42
  end
54
43
  end
@@ -112,7 +112,7 @@ module FactPulse
112
112
  {
113
113
  :'invoice_id' => :'String',
114
114
  :'issue_date' => :'Date',
115
- :'type_code' => :'InvoiceTypeCode',
115
+ :'type_code' => :'FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode',
116
116
  :'currency' => :'Currency',
117
117
  :'due_date' => :'Date',
118
118
  :'seller_siren' => :'String',
@@ -15,14 +15,25 @@ require 'time'
15
15
 
16
16
  module FactPulse
17
17
  class InvoiceTypeCode
18
- N380 = "380".freeze
19
- N381 = "381".freeze
20
- N384 = "384".freeze
21
- N389 = "389".freeze
22
- N386 = "386".freeze
18
+ INVOICE = "380".freeze
19
+ SELF_BILLED_INVOICE = "389".freeze
20
+ FACTORED_INVOICE = "393".freeze
21
+ SELF_BILLED_FACTORED_INVOICE = "501".freeze
22
+ PREPAYMENT_INVOICE = "386".freeze
23
+ SELF_BILLED_PREPAYMENT_INVOICE = "500".freeze
24
+ CORRECTIVE_INVOICE = "384".freeze
25
+ SELF_BILLED_CORRECTIVE_INVOICE = "471".freeze
26
+ FACTORED_CORRECTIVE_INVOICE = "472".freeze
27
+ SELF_BILLED_FACTORED_CORRECTIVE_INVOICE = "473".freeze
28
+ CREDIT_NOTE = "381".freeze
29
+ SELF_BILLED_CREDIT_NOTE = "261".freeze
30
+ GLOBAL_ALLOWANCE_CREDIT_NOTE = "262".freeze
31
+ FACTORED_CREDIT_NOTE = "396".freeze
32
+ SELF_BILLED_FACTORED_CREDIT_NOTE = "502".freeze
33
+ PREPAYMENT_CREDIT_NOTE = "503".freeze
23
34
 
24
35
  def self.all_vars
25
- @all_vars ||= [N380, N381, N384, N389, N386].freeze
36
+ @all_vars ||= [INVOICE, SELF_BILLED_INVOICE, FACTORED_INVOICE, SELF_BILLED_FACTORED_INVOICE, PREPAYMENT_INVOICE, SELF_BILLED_PREPAYMENT_INVOICE, CORRECTIVE_INVOICE, SELF_BILLED_CORRECTIVE_INVOICE, FACTORED_CORRECTIVE_INVOICE, SELF_BILLED_FACTORED_CORRECTIVE_INVOICE, CREDIT_NOTE, SELF_BILLED_CREDIT_NOTE, GLOBAL_ALLOWANCE_CREDIT_NOTE, FACTORED_CREDIT_NOTE, SELF_BILLED_FACTORED_CREDIT_NOTE, PREPAYMENT_CREDIT_NOTE].freeze
26
37
  end
27
38
 
28
39
  # Builds the enum from string
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module FactPulse
17
17
  # Erreur de validation Schematron avec suggestion de correction.
18
- class FactureElectroniqueRestApiSchemasConvertValidationError < ApiModelBase
18
+ class SchematronValidationError < ApiModelBase
19
19
  # Code de la regle (BR-XX, BR-FR-XX)
20
20
  attr_accessor :rule
21
21
 
@@ -88,14 +88,14 @@ module FactPulse
88
88
  # @param [Hash] attributes Model attributes in the form of hash
89
89
  def initialize(attributes = {})
90
90
  if (!attributes.is_a?(Hash))
91
- fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::FactureElectroniqueRestApiSchemasConvertValidationError` initialize method"
91
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SchematronValidationError` initialize method"
92
92
  end
93
93
 
94
94
  # check to see if the attribute exists and convert string to symbol for hash key
95
95
  acceptable_attribute_map = self.class.acceptable_attribute_map
96
96
  attributes = attributes.each_with_object({}) { |(k, v), h|
97
97
  if (!acceptable_attribute_map.key?(k.to_sym))
98
- fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::FactureElectroniqueRestApiSchemasConvertValidationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
98
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SchematronValidationError`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
99
99
  end
100
100
  h[k.to_sym] = v
101
101
  }
@@ -111,7 +111,7 @@ module FactPulse
111
111
  :'comment' => :'String',
112
112
  :'purchase_order_reference' => :'String',
113
113
  :'contract_reference' => :'String',
114
- :'invoice_type' => :'FactureElectroniqueModelsInvoiceTypeCode',
114
+ :'invoice_type' => :'InvoiceTypeCode',
115
115
  :'preceding_invoice_reference' => :'String',
116
116
  :'operation_nature' => :'OperationNature',
117
117
  :'invoicing_framework' => :'InvoicingFrameworkCode'
@@ -62,8 +62,8 @@ module FactPulse
62
62
  :'valid' => :'Boolean',
63
63
  :'report_id' => :'String',
64
64
  :'flow_type' => :'String',
65
- :'errors' => :'Array<ValidationError>',
66
- :'warnings' => :'Array<ValidationError>',
65
+ :'errors' => :'Array<EReportingValidationError>',
66
+ :'warnings' => :'Array<EReportingValidationError>',
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<FactureElectroniqueRestApiSchemasConvertValidationError>'
66
+ :'errors' => :'Array<SchematronValidationError>'
67
67
  }
68
68
  end
69
69
 
@@ -11,5 +11,5 @@ Generator version: 7.19.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FactPulse
14
- VERSION = '3.0.18'
14
+ VERSION = '3.0.23'
15
15
  end
data/lib/factpulse.rb CHANGED
@@ -152,6 +152,7 @@ require 'factpulse/models/directory_line_include'
152
152
  require 'factpulse/models/doc_type'
153
153
  require 'factpulse/models/document_type_info'
154
154
  require 'factpulse/models/e_reporting_flow_type'
155
+ require 'factpulse/models/e_reporting_validation_error'
155
156
  require 'factpulse/models/electronic_address'
156
157
  require 'factpulse/models/enriched_invoice_info'
157
158
  require 'factpulse/models/error_level'
@@ -159,8 +160,7 @@ require 'factpulse/models/error_source'
159
160
  require 'factpulse/models/extraction_info'
160
161
  require 'factpulse/models/factur_x_invoice'
161
162
  require 'factpulse/models/factur_xpdf_info'
162
- require 'factpulse/models/facture_electronique_models_invoice_type_code'
163
- require 'factpulse/models/facture_electronique_rest_api_schemas_convert_validation_error'
163
+ require 'factpulse/models/facture_electronique_rest_api_schemas_ereporting_invoice_type_code'
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'
@@ -232,6 +232,7 @@ require 'factpulse/models/report_period'
232
232
  require 'factpulse/models/report_sender'
233
233
  require 'factpulse/models/rounding_amount'
234
234
  require 'factpulse/models/routing_code_include'
235
+ require 'factpulse/models/schematron_validation_error'
235
236
  require 'factpulse/models/scheme_id'
236
237
  require 'factpulse/models/search_flow_request'
237
238
  require 'factpulse/models/search_flow_response'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factpulse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.18
4
+ version: 3.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-14 00:00:00.000000000 Z
11
+ date: 2026-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -257,6 +257,7 @@ files:
257
257
  - docs/DownloadsApi.md
258
258
  - docs/EReportingApi.md
259
259
  - docs/EReportingFlowType.md
260
+ - docs/EReportingValidationError.md
260
261
  - docs/ElectronicAddress.md
261
262
  - docs/EnrichedInvoiceInfo.md
262
263
  - docs/ErrorLevel.md
@@ -264,8 +265,7 @@ files:
264
265
  - docs/ExtractionInfo.md
265
266
  - docs/FacturXInvoice.md
266
267
  - docs/FacturXPDFInfo.md
267
- - docs/FactureElectroniqueModelsInvoiceTypeCode.md
268
- - docs/FactureElectroniqueRestApiSchemasConvertValidationError.md
268
+ - docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md
269
269
  - docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md
270
270
  - docs/FieldStatus.md
271
271
  - docs/FileInfo.md
@@ -340,6 +340,7 @@ files:
340
340
  - docs/ReportSender.md
341
341
  - docs/RoundingAmount.md
342
342
  - docs/RoutingCodeInclude.md
343
+ - docs/SchematronValidationError.md
343
344
  - docs/SchemeID.md
344
345
  - docs/SearchFlowRequest.md
345
346
  - docs/SearchFlowResponse.md
@@ -559,6 +560,7 @@ files:
559
560
  - lib/factpulse/models/doc_type.rb
560
561
  - lib/factpulse/models/document_type_info.rb
561
562
  - lib/factpulse/models/e_reporting_flow_type.rb
563
+ - lib/factpulse/models/e_reporting_validation_error.rb
562
564
  - lib/factpulse/models/electronic_address.rb
563
565
  - lib/factpulse/models/enriched_invoice_info.rb
564
566
  - lib/factpulse/models/error_level.rb
@@ -566,8 +568,7 @@ files:
566
568
  - lib/factpulse/models/extraction_info.rb
567
569
  - lib/factpulse/models/factur_x_invoice.rb
568
570
  - lib/factpulse/models/factur_xpdf_info.rb
569
- - lib/factpulse/models/facture_electronique_models_invoice_type_code.rb
570
- - lib/factpulse/models/facture_electronique_rest_api_schemas_convert_validation_error.rb
571
+ - lib/factpulse/models/facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb
571
572
  - lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb
572
573
  - lib/factpulse/models/field_status.rb
573
574
  - lib/factpulse/models/file_info.rb
@@ -639,6 +640,7 @@ files:
639
640
  - lib/factpulse/models/report_sender.rb
640
641
  - lib/factpulse/models/rounding_amount.rb
641
642
  - lib/factpulse/models/routing_code_include.rb
643
+ - lib/factpulse/models/schematron_validation_error.rb
642
644
  - lib/factpulse/models/scheme_id.rb
643
645
  - lib/factpulse/models/search_flow_request.rb
644
646
  - lib/factpulse/models/search_flow_response.rb
@@ -1,15 +0,0 @@
1
- # FactPulse::FactureElectroniqueModelsInvoiceTypeCode
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'factpulse'
12
-
13
- instance = FactPulse::FactureElectroniqueModelsInvoiceTypeCode.new()
14
- ```
15
-