factpulse 2.0.31 → 2.0.32
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/AFNORPDPPAApi.md +8 -4
- data/docs/FactureEntrante.md +7 -1
- data/lib/factpulse/api/afnorpdppa_api.rb +3 -0
- data/lib/factpulse/models/facture_entrante.rb +35 -5
- data/lib/factpulse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f7bfa53096933d072237b9fbd6bb3ac69e4ec2ede132c5062740fbd38ec3737
|
|
4
|
+
data.tar.gz: 987effb4f3d2f0757e99e7f3fa12070a3d2ce55d5f38d9e2964007bae8de79c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33a4436db9e893809635e129201162558d0b2c9c1e8ff8780880865700c34e40bbea3fbb174f0ebe7ee46137e0ebcd7e095674efef6e1665d51262c80386586b
|
|
7
|
+
data.tar.gz: 1913c9977dbe7f2284d79fdd504adfd329c0fd051fac3f90e55dcb2edc89cc9725f109d9068d5eb34b2924cf2a363d9440dc89b7923c3a90c2146faf34bdc63e
|
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
|
-
## [2.0.
|
|
10
|
+
## [2.0.32] - 2025-11-29
|
|
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/v2.0.
|
|
28
|
-
[2.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.32...HEAD
|
|
28
|
+
[2.0.32]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.32
|
data/Gemfile.lock
CHANGED
data/docs/AFNORPDPPAApi.md
CHANGED
|
@@ -77,7 +77,7 @@ This endpoint does not need any parameter.
|
|
|
77
77
|
|
|
78
78
|
## get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get
|
|
79
79
|
|
|
80
|
-
> <FactureEntrante> get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id)
|
|
80
|
+
> <FactureEntrante> get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id, opts)
|
|
81
81
|
|
|
82
82
|
Récupérer et extraire une facture entrante
|
|
83
83
|
|
|
@@ -96,10 +96,13 @@ end
|
|
|
96
96
|
|
|
97
97
|
api_instance = FactPulse::AFNORPDPPAApi.new
|
|
98
98
|
flow_id = 'flow_id_example' # String |
|
|
99
|
+
opts = {
|
|
100
|
+
include_document: true # Boolean |
|
|
101
|
+
}
|
|
99
102
|
|
|
100
103
|
begin
|
|
101
104
|
# Récupérer et extraire une facture entrante
|
|
102
|
-
result = api_instance.get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id)
|
|
105
|
+
result = api_instance.get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id, opts)
|
|
103
106
|
p result
|
|
104
107
|
rescue FactPulse::ApiError => e
|
|
105
108
|
puts "Error when calling AFNORPDPPAApi->get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get: #{e}"
|
|
@@ -110,12 +113,12 @@ end
|
|
|
110
113
|
|
|
111
114
|
This returns an Array which contains the response data, status code and headers.
|
|
112
115
|
|
|
113
|
-
> <Array(<FactureEntrante>, Integer, Hash)> get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id)
|
|
116
|
+
> <Array(<FactureEntrante>, Integer, Hash)> get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id, opts)
|
|
114
117
|
|
|
115
118
|
```ruby
|
|
116
119
|
begin
|
|
117
120
|
# Récupérer et extraire une facture entrante
|
|
118
|
-
data, status_code, headers = api_instance.get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id)
|
|
121
|
+
data, status_code, headers = api_instance.get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id, opts)
|
|
119
122
|
p status_code # => 2xx
|
|
120
123
|
p headers # => { ... }
|
|
121
124
|
p data # => <FactureEntrante>
|
|
@@ -129,6 +132,7 @@ end
|
|
|
129
132
|
| Name | Type | Description | Notes |
|
|
130
133
|
| ---- | ---- | ----------- | ----- |
|
|
131
134
|
| **flow_id** | **String** | | |
|
|
135
|
+
| **include_document** | **Boolean** | | [optional][default to false] |
|
|
132
136
|
|
|
133
137
|
### Return type
|
|
134
138
|
|
data/docs/FactureEntrante.md
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
| **numero_bon_commande** | **String** | | [optional] |
|
|
21
21
|
| **reference_contrat** | **String** | | [optional] |
|
|
22
22
|
| **objet_facture** | **String** | | [optional] |
|
|
23
|
+
| **document_base64** | **String** | | [optional] |
|
|
24
|
+
| **document_content_type** | **String** | | [optional] |
|
|
25
|
+
| **document_filename** | **String** | | [optional] |
|
|
23
26
|
|
|
24
27
|
## Example
|
|
25
28
|
|
|
@@ -42,7 +45,10 @@ instance = FactPulse::FactureEntrante.new(
|
|
|
42
45
|
montant_ttc: null,
|
|
43
46
|
numero_bon_commande: null,
|
|
44
47
|
reference_contrat: null,
|
|
45
|
-
objet_facture: null
|
|
48
|
+
objet_facture: null,
|
|
49
|
+
document_base64: null,
|
|
50
|
+
document_content_type: null,
|
|
51
|
+
document_filename: null
|
|
46
52
|
)
|
|
47
53
|
```
|
|
48
54
|
|
|
@@ -80,6 +80,7 @@ module FactPulse
|
|
|
80
80
|
# Télécharge un flux entrant depuis la PDP AFNOR et extrait les métadonnées de la facture vers un format JSON unifié. Supporte les formats Factur-X, CII et UBL.
|
|
81
81
|
# @param flow_id [String]
|
|
82
82
|
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @option opts [Boolean] :include_document (default to false)
|
|
83
84
|
# @return [FactureEntrante]
|
|
84
85
|
def get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get(flow_id, opts = {})
|
|
85
86
|
data, _status_code, _headers = get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id, opts)
|
|
@@ -90,6 +91,7 @@ module FactPulse
|
|
|
90
91
|
# Télécharge un flux entrant depuis la PDP AFNOR et extrait les métadonnées de la facture vers un format JSON unifié. Supporte les formats Factur-X, CII et UBL.
|
|
91
92
|
# @param flow_id [String]
|
|
92
93
|
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [Boolean] :include_document (default to false)
|
|
93
95
|
# @return [Array<(FactureEntrante, Integer, Hash)>] FactureEntrante data, response status code and response headers
|
|
94
96
|
def get_flux_entrant_api_v1_afnor_flux_entrants_flow_id_get_with_http_info(flow_id, opts = {})
|
|
95
97
|
if @api_client.config.debugging
|
|
@@ -104,6 +106,7 @@ module FactPulse
|
|
|
104
106
|
|
|
105
107
|
# query parameters
|
|
106
108
|
query_params = opts[:query_params] || {}
|
|
109
|
+
query_params[:'include_document'] = opts[:'include_document'] if !opts[:'include_document'].nil?
|
|
107
110
|
|
|
108
111
|
# header parameters
|
|
109
112
|
header_params = opts[:header_params] || {}
|
|
@@ -58,6 +58,12 @@ module FactPulse
|
|
|
58
58
|
|
|
59
59
|
attr_accessor :objet_facture
|
|
60
60
|
|
|
61
|
+
attr_accessor :document_base64
|
|
62
|
+
|
|
63
|
+
attr_accessor :document_content_type
|
|
64
|
+
|
|
65
|
+
attr_accessor :document_filename
|
|
66
|
+
|
|
61
67
|
class EnumAttributeValidator
|
|
62
68
|
attr_reader :datatype
|
|
63
69
|
attr_reader :allowable_values
|
|
@@ -98,7 +104,10 @@ module FactPulse
|
|
|
98
104
|
:'montant_ttc' => :'montant_ttc',
|
|
99
105
|
:'numero_bon_commande' => :'numero_bon_commande',
|
|
100
106
|
:'reference_contrat' => :'reference_contrat',
|
|
101
|
-
:'objet_facture' => :'objet_facture'
|
|
107
|
+
:'objet_facture' => :'objet_facture',
|
|
108
|
+
:'document_base64' => :'document_base64',
|
|
109
|
+
:'document_content_type' => :'document_content_type',
|
|
110
|
+
:'document_filename' => :'document_filename'
|
|
102
111
|
}
|
|
103
112
|
end
|
|
104
113
|
|
|
@@ -130,7 +139,10 @@ module FactPulse
|
|
|
130
139
|
:'montant_ttc' => :'String',
|
|
131
140
|
:'numero_bon_commande' => :'String',
|
|
132
141
|
:'reference_contrat' => :'String',
|
|
133
|
-
:'objet_facture' => :'String'
|
|
142
|
+
:'objet_facture' => :'String',
|
|
143
|
+
:'document_base64' => :'String',
|
|
144
|
+
:'document_content_type' => :'String',
|
|
145
|
+
:'document_filename' => :'String'
|
|
134
146
|
}
|
|
135
147
|
end
|
|
136
148
|
|
|
@@ -142,7 +154,10 @@ module FactPulse
|
|
|
142
154
|
:'date_reglement',
|
|
143
155
|
:'numero_bon_commande',
|
|
144
156
|
:'reference_contrat',
|
|
145
|
-
:'objet_facture'
|
|
157
|
+
:'objet_facture',
|
|
158
|
+
:'document_base64',
|
|
159
|
+
:'document_content_type',
|
|
160
|
+
:'document_filename'
|
|
146
161
|
])
|
|
147
162
|
end
|
|
148
163
|
|
|
@@ -243,6 +258,18 @@ module FactPulse
|
|
|
243
258
|
if attributes.key?(:'objet_facture')
|
|
244
259
|
self.objet_facture = attributes[:'objet_facture']
|
|
245
260
|
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'document_base64')
|
|
263
|
+
self.document_base64 = attributes[:'document_base64']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'document_content_type')
|
|
267
|
+
self.document_content_type = attributes[:'document_content_type']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'document_filename')
|
|
271
|
+
self.document_filename = attributes[:'document_filename']
|
|
272
|
+
end
|
|
246
273
|
end
|
|
247
274
|
|
|
248
275
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -433,7 +460,10 @@ module FactPulse
|
|
|
433
460
|
montant_ttc == o.montant_ttc &&
|
|
434
461
|
numero_bon_commande == o.numero_bon_commande &&
|
|
435
462
|
reference_contrat == o.reference_contrat &&
|
|
436
|
-
objet_facture == o.objet_facture
|
|
463
|
+
objet_facture == o.objet_facture &&
|
|
464
|
+
document_base64 == o.document_base64 &&
|
|
465
|
+
document_content_type == o.document_content_type &&
|
|
466
|
+
document_filename == o.document_filename
|
|
437
467
|
end
|
|
438
468
|
|
|
439
469
|
# @see the `==` method
|
|
@@ -445,7 +475,7 @@ module FactPulse
|
|
|
445
475
|
# Calculates hash code according to all attributes.
|
|
446
476
|
# @return [Integer] Hash code
|
|
447
477
|
def hash
|
|
448
|
-
[flow_id, format_source, ref_fournisseur, type_document, fournisseur, site_facturation_nom, site_facturation_siret, date_de_piece, date_reglement, devise, montant_ht, montant_tva, montant_ttc, numero_bon_commande, reference_contrat, objet_facture].hash
|
|
478
|
+
[flow_id, format_source, ref_fournisseur, type_document, fournisseur, site_facturation_nom, site_facturation_siret, date_de_piece, date_reglement, devise, montant_ht, montant_tva, montant_ttc, numero_bon_commande, reference_contrat, objet_facture, document_base64, document_content_type, document_filename].hash
|
|
449
479
|
end
|
|
450
480
|
|
|
451
481
|
# Builds the object from hash
|
data/lib/factpulse/version.rb
CHANGED