factpulse 3.0.3 → 3.0.4
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/{FactureFacturX.md → FacturXInvoice.md} +2 -2
- data/lib/factpulse/models/{facture_factur_x.rb → factur_x_invoice.rb} +3 -3
- data/lib/factpulse/models/invoice_type_code.rb +1 -17
- data/lib/factpulse/models/invoicing_framework_code.rb +1 -5
- data/lib/factpulse/models/payment_means.rb +1 -7
- data/lib/factpulse/models/submission_mode.rb +1 -4
- data/lib/factpulse/models/unit_of_measure.rb +1 -7
- data/lib/factpulse/models/vat_accounting_code.rb +1 -5
- data/lib/factpulse/version.rb +1 -1
- data/lib/factpulse.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e621f5c7d34b03edfa7d5776c19baa354c73d67fcb6e4c0e9ce2dcff3dc7f07
|
|
4
|
+
data.tar.gz: 531bdc7f3f4bd9710ebc61d126b1f0966e1a36df11c46b3d458a173642a604d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21d6f088e2a87a25d443fa223f4b0152b494cfcd7e68a68e109f13bbf85deaca82869601e45e6d1c91d1903444e039e2e81a6c752283be24a7d6193efa57819a
|
|
7
|
+
data.tar.gz: 808d20728c0c3fc9798da496970351b6dfbc8afec4118c5626b0508089c862bbfd7e9a3df6d747b95acdfee781e56d2dbe0772a47a159c7ea7d348067b1ba0ef
|
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.4] - 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.
|
|
28
|
-
[3.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v3.0.4...HEAD
|
|
28
|
+
[3.0.4]: https://github.com/factpulse/sdk-ruby/releases/tag/v3.0.4
|
data/Gemfile.lock
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# FactPulse::
|
|
1
|
+
# FactPulse::FacturXInvoice
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
```ruby
|
|
27
27
|
require 'factpulse'
|
|
28
28
|
|
|
29
|
-
instance = FactPulse::
|
|
29
|
+
instance = FactPulse::FacturXInvoice.new(
|
|
30
30
|
invoice_number: null,
|
|
31
31
|
payment_due_date: null,
|
|
32
32
|
invoice_date: null,
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
17
|
# Data model for an invoice to be converted to Factur-X.
|
|
18
|
-
class
|
|
18
|
+
class FacturXInvoice < ApiModelBase
|
|
19
19
|
attr_accessor :invoice_number
|
|
20
20
|
|
|
21
21
|
attr_accessor :payment_due_date
|
|
@@ -138,14 +138,14 @@ module FactPulse
|
|
|
138
138
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
139
139
|
def initialize(attributes = {})
|
|
140
140
|
if (!attributes.is_a?(Hash))
|
|
141
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
141
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::FacturXInvoice` initialize method"
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
145
145
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
146
146
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
147
147
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
148
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
148
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::FacturXInvoice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
149
149
|
end
|
|
150
150
|
h[k.to_sym] = v
|
|
151
151
|
}
|
|
@@ -31,25 +31,9 @@ module FactPulse
|
|
|
31
31
|
FACTORED_CREDIT_NOTE = "396".freeze
|
|
32
32
|
SELF_BILLED_FACTORED_CREDIT_NOTE = "502".freeze
|
|
33
33
|
PREPAYMENT_CREDIT_NOTE = "503".freeze
|
|
34
|
-
N3802 = "380".freeze
|
|
35
|
-
N3892 = "389".freeze
|
|
36
|
-
N3932 = "393".freeze
|
|
37
|
-
N5012 = "501".freeze
|
|
38
|
-
N3862 = "386".freeze
|
|
39
|
-
N5002 = "500".freeze
|
|
40
|
-
N3842 = "384".freeze
|
|
41
|
-
N4712 = "471".freeze
|
|
42
|
-
N4722 = "472".freeze
|
|
43
|
-
N4732 = "473".freeze
|
|
44
|
-
N3812 = "381".freeze
|
|
45
|
-
N2612 = "261".freeze
|
|
46
|
-
N2622 = "262".freeze
|
|
47
|
-
N3962 = "396".freeze
|
|
48
|
-
N5022 = "502".freeze
|
|
49
|
-
N5032 = "503".freeze
|
|
50
34
|
|
|
51
35
|
def self.all_vars
|
|
52
|
-
@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
|
|
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
|
|
53
37
|
end
|
|
54
38
|
|
|
55
39
|
# Builds the enum from string
|
|
@@ -19,13 +19,9 @@ module FactPulse
|
|
|
19
19
|
A2_FACTURE_FOURNISSEUR_DEJA_PAYEE = "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE".freeze
|
|
20
20
|
A9_FACTURE_SOUSTRAITANT = "A9_FACTURE_SOUSTRAITANT".freeze
|
|
21
21
|
A12_FACTURE_COTRAITANT = "A12_FACTURE_COTRAITANT".freeze
|
|
22
|
-
A1_FACTURE_FOURNISSEUR2 = "A1_FACTURE_FOURNISSEUR".freeze
|
|
23
|
-
A2_FACTURE_FOURNISSEUR_DEJA_PAYEE2 = "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE".freeze
|
|
24
|
-
A9_FACTURE_SOUSTRAITANT2 = "A9_FACTURE_SOUSTRAITANT".freeze
|
|
25
|
-
A12_FACTURE_COTRAITANT2 = "A12_FACTURE_COTRAITANT".freeze
|
|
26
22
|
|
|
27
23
|
def self.all_vars
|
|
28
|
-
@all_vars ||= [A1_FACTURE_FOURNISSEUR, A2_FACTURE_FOURNISSEUR_DEJA_PAYEE, A9_FACTURE_SOUSTRAITANT, A12_FACTURE_COTRAITANT
|
|
24
|
+
@all_vars ||= [A1_FACTURE_FOURNISSEUR, A2_FACTURE_FOURNISSEUR_DEJA_PAYEE, A9_FACTURE_SOUSTRAITANT, A12_FACTURE_COTRAITANT].freeze
|
|
29
25
|
end
|
|
30
26
|
|
|
31
27
|
# Builds the enum from string
|
|
@@ -21,15 +21,9 @@ module FactPulse
|
|
|
21
21
|
ESPECE = "ESPECE".freeze
|
|
22
22
|
AUTRE = "AUTRE".freeze
|
|
23
23
|
REPORT = "REPORT".freeze
|
|
24
|
-
CHEQUE2 = "CHEQUE".freeze
|
|
25
|
-
PRELEVEMENT2 = "PRELEVEMENT".freeze
|
|
26
|
-
VIREMENT2 = "VIREMENT".freeze
|
|
27
|
-
ESPECE2 = "ESPECE".freeze
|
|
28
|
-
AUTRE2 = "AUTRE".freeze
|
|
29
|
-
REPORT2 = "REPORT".freeze
|
|
30
24
|
|
|
31
25
|
def self.all_vars
|
|
32
|
-
@all_vars ||= [CHEQUE, PRELEVEMENT, VIREMENT, ESPECE, AUTRE, REPORT
|
|
26
|
+
@all_vars ||= [CHEQUE, PRELEVEMENT, VIREMENT, ESPECE, AUTRE, REPORT].freeze
|
|
33
27
|
end
|
|
34
28
|
|
|
35
29
|
# Builds the enum from string
|
|
@@ -18,12 +18,9 @@ module FactPulse
|
|
|
18
18
|
SAISIE_API = "SAISIE_API".freeze
|
|
19
19
|
DEPOT_PDF_API = "DEPOT_PDF_API".freeze
|
|
20
20
|
DEPOT_PDF_SIGNE_API = "DEPOT_PDF_SIGNE_API".freeze
|
|
21
|
-
SAISIE_API2 = "SAISIE_API".freeze
|
|
22
|
-
DEPOT_PDF_API2 = "DEPOT_PDF_API".freeze
|
|
23
|
-
DEPOT_PDF_SIGNE_API2 = "DEPOT_PDF_SIGNE_API".freeze
|
|
24
21
|
|
|
25
22
|
def self.all_vars
|
|
26
|
-
@all_vars ||= [SAISIE_API, DEPOT_PDF_API, DEPOT_PDF_SIGNE_API
|
|
23
|
+
@all_vars ||= [SAISIE_API, DEPOT_PDF_API, DEPOT_PDF_SIGNE_API].freeze
|
|
27
24
|
end
|
|
28
25
|
|
|
29
26
|
# Builds the enum from string
|
|
@@ -21,15 +21,9 @@ module FactPulse
|
|
|
21
21
|
KILOGRAMME = "KILOGRAMME".freeze
|
|
22
22
|
LITRE = "LITRE".freeze
|
|
23
23
|
FORFAIT = "FORFAIT".freeze
|
|
24
|
-
PIECE2 = "PIECE".freeze
|
|
25
|
-
HEURE2 = "HEURE".freeze
|
|
26
|
-
JOUR2 = "JOUR".freeze
|
|
27
|
-
KILOGRAMME2 = "KILOGRAMME".freeze
|
|
28
|
-
LITRE2 = "LITRE".freeze
|
|
29
|
-
FORFAIT2 = "FORFAIT".freeze
|
|
30
24
|
|
|
31
25
|
def self.all_vars
|
|
32
|
-
@all_vars ||= [PIECE, HEURE, JOUR, KILOGRAMME, LITRE, FORFAIT
|
|
26
|
+
@all_vars ||= [PIECE, HEURE, JOUR, KILOGRAMME, LITRE, FORFAIT].freeze
|
|
33
27
|
end
|
|
34
28
|
|
|
35
29
|
# Builds the enum from string
|
|
@@ -19,13 +19,9 @@ module FactPulse
|
|
|
19
19
|
TVA_SUR_ENCAISSEMENT = "TVA_SUR_ENCAISSEMENT".freeze
|
|
20
20
|
EXONERATION = "EXONERATION".freeze
|
|
21
21
|
SANS_TVA = "SANS_TVA".freeze
|
|
22
|
-
TVA_SUR_DEBIT2 = "TVA_SUR_DEBIT".freeze
|
|
23
|
-
TVA_SUR_ENCAISSEMENT2 = "TVA_SUR_ENCAISSEMENT".freeze
|
|
24
|
-
EXONERATION2 = "EXONERATION".freeze
|
|
25
|
-
SANS_TVA2 = "SANS_TVA".freeze
|
|
26
22
|
|
|
27
23
|
def self.all_vars
|
|
28
|
-
@all_vars ||= [TVA_SUR_DEBIT, TVA_SUR_ENCAISSEMENT, EXONERATION, SANS_TVA
|
|
24
|
+
@all_vars ||= [TVA_SUR_DEBIT, TVA_SUR_ENCAISSEMENT, EXONERATION, SANS_TVA].freeze
|
|
29
25
|
end
|
|
30
26
|
|
|
31
27
|
# Builds the enum from string
|
data/lib/factpulse/version.rb
CHANGED
data/lib/factpulse.rb
CHANGED
|
@@ -39,10 +39,10 @@ require 'factpulse/models/electronic_address'
|
|
|
39
39
|
require 'factpulse/models/enriched_invoice_info'
|
|
40
40
|
require 'factpulse/models/error_level'
|
|
41
41
|
require 'factpulse/models/error_source'
|
|
42
|
+
require 'factpulse/models/factur_x_invoice'
|
|
42
43
|
require 'factpulse/models/factur_xpdf_info'
|
|
43
44
|
require 'factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials'
|
|
44
45
|
require 'factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials'
|
|
45
|
-
require 'factpulse/models/facture_factur_x'
|
|
46
46
|
require 'factpulse/models/field_status'
|
|
47
47
|
require 'factpulse/models/flow_direction'
|
|
48
48
|
require 'factpulse/models/flow_profile'
|
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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -141,10 +141,10 @@ files:
|
|
|
141
141
|
- docs/EnrichedInvoiceInfo.md
|
|
142
142
|
- docs/ErrorLevel.md
|
|
143
143
|
- docs/ErrorSource.md
|
|
144
|
+
- docs/FacturXInvoice.md
|
|
144
145
|
- docs/FacturXPDFInfo.md
|
|
145
146
|
- docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md
|
|
146
147
|
- docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md
|
|
147
|
-
- docs/FactureFacturX.md
|
|
148
148
|
- docs/FieldStatus.md
|
|
149
149
|
- docs/FlowDirection.md
|
|
150
150
|
- docs/FlowProfile.md
|
|
@@ -275,10 +275,10 @@ files:
|
|
|
275
275
|
- lib/factpulse/models/enriched_invoice_info.rb
|
|
276
276
|
- lib/factpulse/models/error_level.rb
|
|
277
277
|
- lib/factpulse/models/error_source.rb
|
|
278
|
+
- lib/factpulse/models/factur_x_invoice.rb
|
|
278
279
|
- lib/factpulse/models/factur_xpdf_info.rb
|
|
279
280
|
- lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb
|
|
280
281
|
- lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb
|
|
281
|
-
- lib/factpulse/models/facture_factur_x.rb
|
|
282
282
|
- lib/factpulse/models/field_status.rb
|
|
283
283
|
- lib/factpulse/models/flow_direction.rb
|
|
284
284
|
- lib/factpulse/models/flow_profile.rb
|