factpulse 2.0.6 → 2.0.7

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -3
  3. data/Gemfile.lock +1 -1
  4. data/docs/Destinataire.md +4 -0
  5. data/docs/FactureFacturX.md +2 -0
  6. data/docs/Fournisseur.md +2 -0
  7. data/docs/LigneDePoste.md +6 -6
  8. data/docs/LigneDeTVA.md +6 -6
  9. data/docs/MontantTotal.md +12 -12
  10. data/docs/Note.md +20 -0
  11. data/lib/factpulse/models/destinataire.rb +21 -1
  12. data/lib/factpulse/models/facture_factur_x.rb +12 -1
  13. data/lib/factpulse/models/fournisseur.rb +11 -1
  14. data/lib/factpulse/models/ligne_de_poste.rb +61 -4
  15. data/lib/factpulse/models/ligne_de_tva.rb +49 -3
  16. data/lib/factpulse/models/montant_ht_total.rb +0 -1
  17. data/lib/factpulse/models/montant_total.rb +94 -7
  18. data/lib/factpulse/models/montant_ttc_total.rb +0 -1
  19. data/lib/factpulse/models/{ligne_de_poste_montant_remise_ht.rb → note.rb} +145 -74
  20. data/lib/factpulse/version.rb +1 -1
  21. data/lib/factpulse.rb +1 -10
  22. metadata +3 -21
  23. data/docs/LigneDePosteMontantRemiseHt.md +0 -15
  24. data/docs/LigneDePosteTauxTvaManuel.md +0 -15
  25. data/docs/MontantAPayer.md +0 -15
  26. data/docs/MontantBaseHt.md +0 -15
  27. data/docs/MontantRemiseGlobaleTtc.md +0 -15
  28. data/docs/MontantTotalAcompte.md +0 -15
  29. data/docs/MontantTotalLigneHt.md +0 -15
  30. data/docs/MontantTvaLigne.md +0 -15
  31. data/docs/MontantTvaTotal.md +0 -15
  32. data/docs/Tauxmanuel.md +0 -15
  33. data/lib/factpulse/models/ligne_de_poste_taux_tva_manuel.rb +0 -104
  34. data/lib/factpulse/models/montant_a_payer.rb +0 -104
  35. data/lib/factpulse/models/montant_base_ht.rb +0 -104
  36. data/lib/factpulse/models/montant_remise_globale_ttc.rb +0 -104
  37. data/lib/factpulse/models/montant_total_acompte.rb +0 -104
  38. data/lib/factpulse/models/montant_total_ligne_ht.rb +0 -104
  39. data/lib/factpulse/models/montant_tva_ligne.rb +0 -104
  40. data/lib/factpulse/models/montant_tva_total.rb +0 -104
  41. data/lib/factpulse/models/tauxmanuel.rb +0 -104
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5093cb28d4e58f593c7831a4f98c3ac4f8c42dc144c128e00da059b92934af2f
4
- data.tar.gz: 118a36100efbd3a598cbb07f385c3e1bab17e057106417b34e6aa5d133d9f83f
3
+ metadata.gz: 0a847f05bdc72eaef146e3afc4fce61f4e93be3133d7d4a92547b21592988b4d
4
+ data.tar.gz: cd21956c6896f46a6368d9e2a2492a4ac6a5280d60ea64cc14ecb36d5993eb22
5
5
  SHA512:
6
- metadata.gz: dee10eb1c6d6f18fe01ffb2455335f12ad6f8590e8927d9f7140f60cf463fbdeba83a2d2becc6ee1d5b58d5b03d8fd53b2413ab5ee92351854b8bfa50a28d602
7
- data.tar.gz: 897ed42b42ae4698cda39de42c928722f6742face0b61223bddcb4beb2acd3aee4c57a62b408643478102024ed33e2f2de7fcded9f77e5a3a059d8ab7f10bf6b
6
+ metadata.gz: af8a09c9dab6cc1fb87e2e16eb3ef0c3359c53036609b217f52f5f7e0e64d449164203254ed960667dd1b1bcae39774320ca51e4c91c8a9726b004ec2778ee46
7
+ data.tar.gz: 2dc26ff35ef82205705c7dcc80be17aa979b9b5ef405c4d8bd0127640770b0326f102a462ab9c00c28c23e94b65ce45e6ddfc0889c5e541874ba20925173a6ed
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.6] - 2025-11-19
10
+ ## [2.0.7] - 2025-11-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/v2.0.6...HEAD
28
- [2.0.6]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.6
27
+ [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.7...HEAD
28
+ [2.0.7]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (2.0.6)
4
+ factpulse (2.0.7)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/docs/Destinataire.md CHANGED
@@ -7,6 +7,8 @@
7
7
  | **adresse_electronique** | [**AdresseElectronique**](AdresseElectronique.md) | | |
8
8
  | **code_service_executant** | **String** | | [optional] |
9
9
  | **nom** | **String** | | [optional] |
10
+ | **siren** | **String** | | [optional] |
11
+ | **siret** | **String** | | [optional] |
10
12
  | **adresse_postale** | [**AdressePostale**](AdressePostale.md) | | [optional] |
11
13
 
12
14
  ## Example
@@ -18,6 +20,8 @@ instance = FactPulse::Destinataire.new(
18
20
  adresse_electronique: null,
19
21
  code_service_executant: null,
20
22
  nom: null,
23
+ siren: null,
24
+ siret: null,
21
25
  adresse_postale: null
22
26
  )
23
27
  ```
@@ -15,6 +15,7 @@
15
15
  | **montant_total** | [**MontantTotal**](MontantTotal.md) | | |
16
16
  | **lignes_de_poste** | [**Array<LigneDePoste>**](LigneDePoste.md) | | [optional] |
17
17
  | **lignes_de_tva** | [**Array<LigneDeTVA>**](LigneDeTVA.md) | | [optional] |
18
+ | **notes** | [**Array<Note>**](Note.md) | | [optional] |
18
19
  | **commentaire** | **String** | | [optional] |
19
20
  | **id_utilisateur_courant** | **Integer** | | [optional] |
20
21
  | **pieces_jointes_complementaires** | [**Array<PieceJointeComplementaire>**](PieceJointeComplementaire.md) | | [optional] |
@@ -36,6 +37,7 @@ instance = FactPulse::FactureFacturX.new(
36
37
  montant_total: null,
37
38
  lignes_de_poste: null,
38
39
  lignes_de_tva: null,
40
+ notes: null,
39
41
  commentaire: null,
40
42
  id_utilisateur_courant: null,
41
43
  pieces_jointes_complementaires: null
data/docs/Fournisseur.md CHANGED
@@ -9,6 +9,7 @@
9
9
  | **code_coordonnees_bancaires_fournisseur** | **Integer** | | [optional] |
10
10
  | **id_service_fournisseur** | **Integer** | | [optional] |
11
11
  | **nom** | **String** | | [optional] |
12
+ | **siren** | **String** | | [optional] |
12
13
  | **siret** | **String** | | [optional] |
13
14
  | **numero_tva_intra** | **String** | | [optional] |
14
15
  | **iban** | **String** | | [optional] |
@@ -25,6 +26,7 @@ instance = FactPulse::Fournisseur.new(
25
26
  code_coordonnees_bancaires_fournisseur: null,
26
27
  id_service_fournisseur: null,
27
28
  nom: null,
29
+ siren: null,
28
30
  siret: null,
29
31
  numero_tva_intra: null,
30
32
  iban: null,
data/docs/LigneDePoste.md CHANGED
@@ -10,10 +10,10 @@
10
10
  | **quantite** | [**Quantite**](Quantite.md) | | |
11
11
  | **unite** | [**Unite**](Unite.md) | | |
12
12
  | **montant_unitaire_ht** | [**MontantUnitaireHt**](MontantUnitaireHt.md) | | |
13
- | **montant_remise_ht** | [**LigneDePosteMontantRemiseHt**](LigneDePosteMontantRemiseHt.md) | | [optional] |
14
- | **montant_total_ligne_ht** | [**MontantTotalLigneHt**](MontantTotalLigneHt.md) | | [optional] |
13
+ | **montant_remise_ht** | **Float** | Montant de la remise HT. | [optional] |
14
+ | **montant_total_ligne_ht** | **Float** | Montant total HT de la ligne (quantité × prix unitaire - remise). | [optional] |
15
15
  | **taux_tva** | **String** | | [optional] |
16
- | **taux_tva_manuel** | [**LigneDePosteTauxTvaManuel**](LigneDePosteTauxTvaManuel.md) | | [optional] |
16
+ | **taux_tva_manuel** | **Float** | Taux de TVA avec valeur manuelle. | [optional] |
17
17
  | **categorie_tva** | [**CategorieTVA**](CategorieTVA.md) | | [optional] |
18
18
  | **date_debut_periode** | **String** | | [optional] |
19
19
  | **date_fin_periode** | **String** | | [optional] |
@@ -32,10 +32,10 @@ instance = FactPulse::LigneDePoste.new(
32
32
  quantite: null,
33
33
  unite: null,
34
34
  montant_unitaire_ht: null,
35
- montant_remise_ht: null,
36
- montant_total_ligne_ht: null,
35
+ montant_remise_ht: 1000.50,
36
+ montant_total_ligne_ht: 1000.50,
37
37
  taux_tva: null,
38
- taux_tva_manuel: null,
38
+ taux_tva_manuel: 1000.50,
39
39
  categorie_tva: null,
40
40
  date_debut_periode: null,
41
41
  date_fin_periode: null,
data/docs/LigneDeTVA.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **montant_base_ht** | [**MontantBaseHt**](MontantBaseHt.md) | | |
8
- | **montant_tva** | [**MontantTvaLigne**](MontantTvaLigne.md) | | |
7
+ | **montant_base_ht** | **Float** | Montant de la base HT pour cette ligne de TVA. | |
8
+ | **montant_tva** | **Float** | Montant de la TVA pour cette ligne. | |
9
9
  | **taux** | **String** | | [optional] |
10
- | **taux_manuel** | [**Tauxmanuel**](Tauxmanuel.md) | | [optional] |
10
+ | **taux_manuel** | **Float** | Taux de TVA avec valeur manuelle. | [optional] |
11
11
  | **categorie** | [**CategorieTVA**](CategorieTVA.md) | | [optional] |
12
12
 
13
13
  ## Example
@@ -16,10 +16,10 @@
16
16
  require 'factpulse'
17
17
 
18
18
  instance = FactPulse::LigneDeTVA.new(
19
- montant_base_ht: null,
20
- montant_tva: null,
19
+ montant_base_ht: 1000.50,
20
+ montant_tva: 1000.50,
21
21
  taux: null,
22
- taux_manuel: null,
22
+ taux_manuel: 1000.50,
23
23
  categorie: null
24
24
  )
25
25
  ```
data/docs/MontantTotal.md CHANGED
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **montant_ht_total** | [**MontantHtTotal**](MontantHtTotal.md) | | |
8
- | **montant_tva** | [**MontantTvaTotal**](MontantTvaTotal.md) | | |
9
- | **montant_ttc_total** | [**MontantTtcTotal**](MontantTtcTotal.md) | | |
10
- | **montant_a_payer** | [**MontantAPayer**](MontantAPayer.md) | | |
11
- | **acompte** | [**MontantTotalAcompte**](MontantTotalAcompte.md) | | [optional] |
12
- | **montant_remise_globale_ttc** | [**MontantRemiseGlobaleTtc**](MontantRemiseGlobaleTtc.md) | | [optional] |
7
+ | **montant_ht_total** | **Float** | Montant total HT. | |
8
+ | **montant_tva** | **Float** | Montant total de la TVA. | |
9
+ | **montant_ttc_total** | **Float** | Montant total TTC. | |
10
+ | **montant_a_payer** | **Float** | Montant à payer. | |
11
+ | **acompte** | **Float** | Acompte versé. | [optional] |
12
+ | **montant_remise_globale_ttc** | **Float** | Montant de la remise globale TTC. | [optional] |
13
13
  | **motif_remise_globale_ttc** | **String** | | [optional] |
14
14
 
15
15
  ## Example
@@ -18,12 +18,12 @@
18
18
  require 'factpulse'
19
19
 
20
20
  instance = FactPulse::MontantTotal.new(
21
- montant_ht_total: null,
22
- montant_tva: null,
23
- montant_ttc_total: null,
24
- montant_a_payer: null,
25
- acompte: null,
26
- montant_remise_globale_ttc: null,
21
+ montant_ht_total: 1000.50,
22
+ montant_tva: 1000.50,
23
+ montant_ttc_total: 1000.50,
24
+ montant_a_payer: 1000.50,
25
+ acompte: 1000.50,
26
+ montant_remise_globale_ttc: 1000.50,
27
27
  motif_remise_globale_ttc: null
28
28
  )
29
29
  ```
data/docs/Note.md ADDED
@@ -0,0 +1,20 @@
1
+ # FactPulse::Note
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **subject_code** | **String** | | [optional] |
8
+ | **content** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'factpulse'
14
+
15
+ instance = FactPulse::Note.new(
16
+ subject_code: null,
17
+ content: null
18
+ )
19
+ ```
20
+
@@ -22,6 +22,10 @@ module FactPulse
22
22
 
23
23
  attr_accessor :nom
24
24
 
25
+ attr_accessor :siren
26
+
27
+ attr_accessor :siret
28
+
25
29
  attr_accessor :adresse_postale
26
30
 
27
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,6 +34,8 @@ module FactPulse
30
34
  :'adresse_electronique' => :'adresseElectronique',
31
35
  :'code_service_executant' => :'codeServiceExecutant',
32
36
  :'nom' => :'nom',
37
+ :'siren' => :'siren',
38
+ :'siret' => :'siret',
33
39
  :'adresse_postale' => :'adressePostale'
34
40
  }
35
41
  end
@@ -50,6 +56,8 @@ module FactPulse
50
56
  :'adresse_electronique' => :'AdresseElectronique',
51
57
  :'code_service_executant' => :'String',
52
58
  :'nom' => :'String',
59
+ :'siren' => :'String',
60
+ :'siret' => :'String',
53
61
  :'adresse_postale' => :'AdressePostale'
54
62
  }
55
63
  end
@@ -59,6 +67,8 @@ module FactPulse
59
67
  Set.new([
60
68
  :'code_service_executant',
61
69
  :'nom',
70
+ :'siren',
71
+ :'siret',
62
72
  :'adresse_postale'
63
73
  ])
64
74
  end
@@ -93,6 +103,14 @@ module FactPulse
93
103
  self.nom = attributes[:'nom']
94
104
  end
95
105
 
106
+ if attributes.key?(:'siren')
107
+ self.siren = attributes[:'siren']
108
+ end
109
+
110
+ if attributes.key?(:'siret')
111
+ self.siret = attributes[:'siret']
112
+ end
113
+
96
114
  if attributes.key?(:'adresse_postale')
97
115
  self.adresse_postale = attributes[:'adresse_postale']
98
116
  end
@@ -136,6 +154,8 @@ module FactPulse
136
154
  adresse_electronique == o.adresse_electronique &&
137
155
  code_service_executant == o.code_service_executant &&
138
156
  nom == o.nom &&
157
+ siren == o.siren &&
158
+ siret == o.siret &&
139
159
  adresse_postale == o.adresse_postale
140
160
  end
141
161
 
@@ -148,7 +168,7 @@ module FactPulse
148
168
  # Calculates hash code according to all attributes.
149
169
  # @return [Integer] Hash code
150
170
  def hash
151
- [adresse_electronique, code_service_executant, nom, adresse_postale].hash
171
+ [adresse_electronique, code_service_executant, nom, siren, siret, adresse_postale].hash
152
172
  end
153
173
 
154
174
  # Builds the object from hash
@@ -38,6 +38,8 @@ module FactPulse
38
38
 
39
39
  attr_accessor :lignes_de_tva
40
40
 
41
+ attr_accessor :notes
42
+
41
43
  attr_accessor :commentaire
42
44
 
43
45
  attr_accessor :id_utilisateur_courant
@@ -80,6 +82,7 @@ module FactPulse
80
82
  :'montant_total' => :'montantTotal',
81
83
  :'lignes_de_poste' => :'lignesDePoste',
82
84
  :'lignes_de_tva' => :'lignesDeTva',
85
+ :'notes' => :'notes',
83
86
  :'commentaire' => :'commentaire',
84
87
  :'id_utilisateur_courant' => :'idUtilisateurCourant',
85
88
  :'pieces_jointes_complementaires' => :'piecesJointesComplementaires'
@@ -110,6 +113,7 @@ module FactPulse
110
113
  :'montant_total' => :'MontantTotal',
111
114
  :'lignes_de_poste' => :'Array<LigneDePoste>',
112
115
  :'lignes_de_tva' => :'Array<LigneDeTVA>',
116
+ :'notes' => :'Array<Note>',
113
117
  :'commentaire' => :'String',
114
118
  :'id_utilisateur_courant' => :'Integer',
115
119
  :'pieces_jointes_complementaires' => :'Array<PieceJointeComplementaire>'
@@ -205,6 +209,12 @@ module FactPulse
205
209
  end
206
210
  end
207
211
 
212
+ if attributes.key?(:'notes')
213
+ if (value = attributes[:'notes']).is_a?(Array)
214
+ self.notes = value
215
+ end
216
+ end
217
+
208
218
  if attributes.key?(:'commentaire')
209
219
  self.commentaire = attributes[:'commentaire']
210
220
  end
@@ -371,6 +381,7 @@ module FactPulse
371
381
  montant_total == o.montant_total &&
372
382
  lignes_de_poste == o.lignes_de_poste &&
373
383
  lignes_de_tva == o.lignes_de_tva &&
384
+ notes == o.notes &&
374
385
  commentaire == o.commentaire &&
375
386
  id_utilisateur_courant == o.id_utilisateur_courant &&
376
387
  pieces_jointes_complementaires == o.pieces_jointes_complementaires
@@ -385,7 +396,7 @@ module FactPulse
385
396
  # Calculates hash code according to all attributes.
386
397
  # @return [Integer] Hash code
387
398
  def hash
388
- [numero_facture, date_echeance_paiement, date_facture, mode_depot, destinataire, fournisseur, cadre_de_facturation, references, montant_total, lignes_de_poste, lignes_de_tva, commentaire, id_utilisateur_courant, pieces_jointes_complementaires].hash
399
+ [numero_facture, date_echeance_paiement, date_facture, mode_depot, destinataire, fournisseur, cadre_de_facturation, references, montant_total, lignes_de_poste, lignes_de_tva, notes, commentaire, id_utilisateur_courant, pieces_jointes_complementaires].hash
389
400
  end
390
401
 
391
402
  # Builds the object from hash
@@ -26,6 +26,8 @@ module FactPulse
26
26
 
27
27
  attr_accessor :nom
28
28
 
29
+ attr_accessor :siren
30
+
29
31
  attr_accessor :siret
30
32
 
31
33
  attr_accessor :numero_tva_intra
@@ -42,6 +44,7 @@ module FactPulse
42
44
  :'code_coordonnees_bancaires_fournisseur' => :'codeCoordonneesBancairesFournisseur',
43
45
  :'id_service_fournisseur' => :'idServiceFournisseur',
44
46
  :'nom' => :'nom',
47
+ :'siren' => :'siren',
45
48
  :'siret' => :'siret',
46
49
  :'numero_tva_intra' => :'numeroTvaIntra',
47
50
  :'iban' => :'iban',
@@ -67,6 +70,7 @@ module FactPulse
67
70
  :'code_coordonnees_bancaires_fournisseur' => :'Integer',
68
71
  :'id_service_fournisseur' => :'Integer',
69
72
  :'nom' => :'String',
73
+ :'siren' => :'String',
70
74
  :'siret' => :'String',
71
75
  :'numero_tva_intra' => :'String',
72
76
  :'iban' => :'String',
@@ -80,6 +84,7 @@ module FactPulse
80
84
  :'code_coordonnees_bancaires_fournisseur',
81
85
  :'id_service_fournisseur',
82
86
  :'nom',
87
+ :'siren',
83
88
  :'siret',
84
89
  :'numero_tva_intra',
85
90
  :'iban',
@@ -127,6 +132,10 @@ module FactPulse
127
132
  self.nom = attributes[:'nom']
128
133
  end
129
134
 
135
+ if attributes.key?(:'siren')
136
+ self.siren = attributes[:'siren']
137
+ end
138
+
130
139
  if attributes.key?(:'siret')
131
140
  self.siret = attributes[:'siret']
132
141
  end
@@ -199,6 +208,7 @@ module FactPulse
199
208
  code_coordonnees_bancaires_fournisseur == o.code_coordonnees_bancaires_fournisseur &&
200
209
  id_service_fournisseur == o.id_service_fournisseur &&
201
210
  nom == o.nom &&
211
+ siren == o.siren &&
202
212
  siret == o.siret &&
203
213
  numero_tva_intra == o.numero_tva_intra &&
204
214
  iban == o.iban &&
@@ -214,7 +224,7 @@ module FactPulse
214
224
  # Calculates hash code according to all attributes.
215
225
  # @return [Integer] Hash code
216
226
  def hash
217
- [adresse_electronique, id_fournisseur, code_coordonnees_bancaires_fournisseur, id_service_fournisseur, nom, siret, numero_tva_intra, iban, adresse_postale].hash
227
+ [adresse_electronique, id_fournisseur, code_coordonnees_bancaires_fournisseur, id_service_fournisseur, nom, siren, siret, numero_tva_intra, iban, adresse_postale].hash
218
228
  end
219
229
 
220
230
  # Builds the object from hash
@@ -28,12 +28,15 @@ module FactPulse
28
28
 
29
29
  attr_accessor :montant_unitaire_ht
30
30
 
31
+ # Montant de la remise HT.
31
32
  attr_accessor :montant_remise_ht
32
33
 
34
+ # Montant total HT de la ligne (quantité × prix unitaire - remise).
33
35
  attr_accessor :montant_total_ligne_ht
34
36
 
35
37
  attr_accessor :taux_tva
36
38
 
39
+ # Taux de TVA avec valeur manuelle.
37
40
  attr_accessor :taux_tva_manuel
38
41
 
39
42
  attr_accessor :categorie_tva
@@ -108,10 +111,10 @@ module FactPulse
108
111
  :'quantite' => :'Quantite',
109
112
  :'unite' => :'Unite',
110
113
  :'montant_unitaire_ht' => :'MontantUnitaireHt',
111
- :'montant_remise_ht' => :'LigneDePosteMontantRemiseHt',
112
- :'montant_total_ligne_ht' => :'MontantTotalLigneHt',
114
+ :'montant_remise_ht' => :'Float',
115
+ :'montant_total_ligne_ht' => :'Float',
113
116
  :'taux_tva' => :'String',
114
- :'taux_tva_manuel' => :'LigneDePosteTauxTvaManuel',
117
+ :'taux_tva_manuel' => :'Float',
115
118
  :'categorie_tva' => :'CategorieTVA',
116
119
  :'date_debut_periode' => :'String',
117
120
  :'date_fin_periode' => :'String',
@@ -125,7 +128,6 @@ module FactPulse
125
128
  Set.new([
126
129
  :'reference',
127
130
  :'montant_remise_ht',
128
- :'montant_total_ligne_ht',
129
131
  :'taux_tva',
130
132
  :'taux_tva_manuel',
131
133
  :'categorie_tva',
@@ -248,6 +250,21 @@ module FactPulse
248
250
  invalid_properties.push('invalid value for "montant_unitaire_ht", montant_unitaire_ht cannot be nil.')
249
251
  end
250
252
 
253
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
254
+ if !@montant_remise_ht.nil? && @montant_remise_ht !~ pattern
255
+ invalid_properties.push("invalid value for \"montant_remise_ht\", must conform to the pattern #{pattern}.")
256
+ end
257
+
258
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,10}|(?=[\d.]{1,13}0*$)\d{0,10}\.\d{0,2}0*$)/)
259
+ if !@montant_total_ligne_ht.nil? && @montant_total_ligne_ht !~ pattern
260
+ invalid_properties.push("invalid value for \"montant_total_ligne_ht\", must conform to the pattern #{pattern}.")
261
+ end
262
+
263
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
264
+ if !@taux_tva_manuel.nil? && @taux_tva_manuel !~ pattern
265
+ invalid_properties.push("invalid value for \"taux_tva_manuel\", must conform to the pattern #{pattern}.")
266
+ end
267
+
251
268
  invalid_properties
252
269
  end
253
270
 
@@ -260,6 +277,9 @@ module FactPulse
260
277
  return false if @quantite.nil?
261
278
  return false if @unite.nil?
262
279
  return false if @montant_unitaire_ht.nil?
280
+ return false if !@montant_remise_ht.nil? && @montant_remise_ht !~ Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
281
+ return false if !@montant_total_ligne_ht.nil? && @montant_total_ligne_ht !~ Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,10}|(?=[\d.]{1,13}0*$)\d{0,10}\.\d{0,2}0*$)/)
282
+ return false if !@taux_tva_manuel.nil? && @taux_tva_manuel !~ Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
263
283
  true
264
284
  end
265
285
 
@@ -313,6 +333,43 @@ module FactPulse
313
333
  @montant_unitaire_ht = montant_unitaire_ht
314
334
  end
315
335
 
336
+ # Custom attribute writer method with validation
337
+ # @param [Object] montant_remise_ht Value to be assigned
338
+ def montant_remise_ht=(montant_remise_ht)
339
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
340
+ if !montant_remise_ht.nil? && montant_remise_ht !~ pattern
341
+ fail ArgumentError, "invalid value for \"montant_remise_ht\", must conform to the pattern #{pattern}."
342
+ end
343
+
344
+ @montant_remise_ht = montant_remise_ht
345
+ end
346
+
347
+ # Custom attribute writer method with validation
348
+ # @param [Object] montant_total_ligne_ht Value to be assigned
349
+ def montant_total_ligne_ht=(montant_total_ligne_ht)
350
+ if montant_total_ligne_ht.nil?
351
+ fail ArgumentError, 'montant_total_ligne_ht cannot be nil'
352
+ end
353
+
354
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,10}|(?=[\d.]{1,13}0*$)\d{0,10}\.\d{0,2}0*$)/)
355
+ if montant_total_ligne_ht !~ pattern
356
+ fail ArgumentError, "invalid value for \"montant_total_ligne_ht\", must conform to the pattern #{pattern}."
357
+ end
358
+
359
+ @montant_total_ligne_ht = montant_total_ligne_ht
360
+ end
361
+
362
+ # Custom attribute writer method with validation
363
+ # @param [Object] taux_tva_manuel Value to be assigned
364
+ def taux_tva_manuel=(taux_tva_manuel)
365
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
366
+ if !taux_tva_manuel.nil? && taux_tva_manuel !~ pattern
367
+ fail ArgumentError, "invalid value for \"taux_tva_manuel\", must conform to the pattern #{pattern}."
368
+ end
369
+
370
+ @taux_tva_manuel = taux_tva_manuel
371
+ end
372
+
316
373
  # Checks equality by comparing each attribute.
317
374
  # @param [Object] Object to be compared
318
375
  def ==(o)
@@ -16,12 +16,15 @@ require 'time'
16
16
  module FactPulse
17
17
  # Représente une ligne de totalisation par taux de TVA.
18
18
  class LigneDeTVA < ApiModelBase
19
+ # Montant de la base HT pour cette ligne de TVA.
19
20
  attr_accessor :montant_base_ht
20
21
 
22
+ # Montant de la TVA pour cette ligne.
21
23
  attr_accessor :montant_tva
22
24
 
23
25
  attr_accessor :taux
24
26
 
27
+ # Taux de TVA avec valeur manuelle.
25
28
  attr_accessor :taux_manuel
26
29
 
27
30
  attr_accessor :categorie
@@ -72,10 +75,10 @@ module FactPulse
72
75
  # Attribute type mapping.
73
76
  def self.openapi_types
74
77
  {
75
- :'montant_base_ht' => :'MontantBaseHt',
76
- :'montant_tva' => :'MontantTvaLigne',
78
+ :'montant_base_ht' => :'Float',
79
+ :'montant_tva' => :'Float',
77
80
  :'taux' => :'String',
78
- :'taux_manuel' => :'Tauxmanuel',
81
+ :'taux_manuel' => :'Float',
79
82
  :'categorie' => :'CategorieTVA'
80
83
  }
81
84
  end
@@ -138,10 +141,25 @@ module FactPulse
138
141
  invalid_properties.push('invalid value for "montant_base_ht", montant_base_ht cannot be nil.')
139
142
  end
140
143
 
144
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
145
+ if @montant_base_ht !~ pattern
146
+ invalid_properties.push("invalid value for \"montant_base_ht\", must conform to the pattern #{pattern}.")
147
+ end
148
+
141
149
  if @montant_tva.nil?
142
150
  invalid_properties.push('invalid value for "montant_tva", montant_tva cannot be nil.')
143
151
  end
144
152
 
153
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
154
+ if @montant_tva !~ pattern
155
+ invalid_properties.push("invalid value for \"montant_tva\", must conform to the pattern #{pattern}.")
156
+ end
157
+
158
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
159
+ if !@taux_manuel.nil? && @taux_manuel !~ pattern
160
+ invalid_properties.push("invalid value for \"taux_manuel\", must conform to the pattern #{pattern}.")
161
+ end
162
+
145
163
  invalid_properties
146
164
  end
147
165
 
@@ -150,7 +168,10 @@ module FactPulse
150
168
  def valid?
151
169
  warn '[DEPRECATED] the `valid?` method is obsolete'
152
170
  return false if @montant_base_ht.nil?
171
+ return false if @montant_base_ht !~ Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
153
172
  return false if @montant_tva.nil?
173
+ return false if @montant_tva !~ Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
174
+ return false if !@taux_manuel.nil? && @taux_manuel !~ Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
154
175
  true
155
176
  end
156
177
 
@@ -161,6 +182,11 @@ module FactPulse
161
182
  fail ArgumentError, 'montant_base_ht cannot be nil'
162
183
  end
163
184
 
185
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
186
+ if montant_base_ht !~ pattern
187
+ fail ArgumentError, "invalid value for \"montant_base_ht\", must conform to the pattern #{pattern}."
188
+ end
189
+
164
190
  @montant_base_ht = montant_base_ht
165
191
  end
166
192
 
@@ -171,9 +197,29 @@ module FactPulse
171
197
  fail ArgumentError, 'montant_tva cannot be nil'
172
198
  end
173
199
 
200
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
201
+ if montant_tva !~ pattern
202
+ fail ArgumentError, "invalid value for \"montant_tva\", must conform to the pattern #{pattern}."
203
+ end
204
+
174
205
  @montant_tva = montant_tva
175
206
  end
176
207
 
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] taux_manuel Value to be assigned
210
+ def taux_manuel=(taux_manuel)
211
+ if taux_manuel.nil?
212
+ fail ArgumentError, 'taux_manuel cannot be nil'
213
+ end
214
+
215
+ pattern = Regexp.new(/^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,13}0*$)\d{0,8}\.\d{0,4}0*$)/)
216
+ if taux_manuel !~ pattern
217
+ fail ArgumentError, "invalid value for \"taux_manuel\", must conform to the pattern #{pattern}."
218
+ end
219
+
220
+ @taux_manuel = taux_manuel
221
+ end
222
+
177
223
  # Checks equality by comparing each attribute.
178
224
  # @param [Object] Object to be compared
179
225
  def ==(o)
@@ -14,7 +14,6 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FactPulse
17
- # Montant total HT.
18
17
  module MontantHtTotal
19
18
  class << self
20
19
  # List of class defined in anyOf (OpenAPI v3)