factpulse 2.0.5 → 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 (43) 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/docs/{Tauxmanuel.md → StatutCelery.md} +2 -2
  12. data/docs/StatutTache.md +1 -1
  13. data/docs/TraitementFactureApi.md +1 -1
  14. data/lib/factpulse/api/traitement_facture_api.rb +2 -2
  15. data/lib/factpulse/models/destinataire.rb +21 -1
  16. data/lib/factpulse/models/facture_factur_x.rb +12 -1
  17. data/lib/factpulse/models/fournisseur.rb +11 -1
  18. data/lib/factpulse/models/ligne_de_poste.rb +61 -4
  19. data/lib/factpulse/models/ligne_de_tva.rb +49 -3
  20. data/lib/factpulse/models/montant_ht_total.rb +0 -1
  21. data/lib/factpulse/models/montant_total.rb +94 -7
  22. data/lib/factpulse/models/montant_ttc_total.rb +0 -1
  23. data/lib/factpulse/models/montant_tva.rb +0 -1
  24. data/lib/factpulse/models/montant_tva1.rb +1 -1
  25. data/lib/factpulse/models/{ligne_de_poste_montant_remise_ht.rb → note.rb} +145 -74
  26. data/lib/factpulse/models/{montant_a_payer.rb → statut_celery.rb} +22 -83
  27. data/lib/factpulse/models/statut_tache.rb +25 -2
  28. data/lib/factpulse/version.rb +1 -1
  29. data/lib/factpulse.rb +2 -8
  30. metadata +5 -17
  31. data/docs/LigneDePosteMontantRemiseHt.md +0 -15
  32. data/docs/LigneDePosteTauxTvaManuel.md +0 -15
  33. data/docs/MontantAPayer.md +0 -15
  34. data/docs/MontantBaseHt.md +0 -15
  35. data/docs/MontantRemiseGlobaleTtc.md +0 -15
  36. data/docs/MontantTotalAcompte.md +0 -15
  37. data/docs/MontantTotalLigneHt.md +0 -15
  38. data/lib/factpulse/models/ligne_de_poste_taux_tva_manuel.rb +0 -104
  39. data/lib/factpulse/models/montant_base_ht.rb +0 -104
  40. data/lib/factpulse/models/montant_remise_globale_ttc.rb +0 -104
  41. data/lib/factpulse/models/montant_total_acompte.rb +0 -104
  42. data/lib/factpulse/models/montant_total_ligne_ht.rb +0 -104
  43. data/lib/factpulse/models/tauxmanuel.rb +0 -104
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99557b8015b22937479cc8c1d3b1fd230af629d03486fccdf1447e31679f1fac
4
- data.tar.gz: '068a40a5e78cdd11064286558979782194e4cebeac071d60a95009eba560dd3a'
3
+ metadata.gz: 0a847f05bdc72eaef146e3afc4fce61f4e93be3133d7d4a92547b21592988b4d
4
+ data.tar.gz: cd21956c6896f46a6368d9e2a2492a4ac6a5280d60ea64cc14ecb36d5993eb22
5
5
  SHA512:
6
- metadata.gz: 95bf88d1d5b3bf6e20cf059da39353240e43e96556c75395de5db3fd70df1a2ffbd2afa0fb77536c714230c776bfa431317de4edba4364ff9ea42ea9e3b3c779
7
- data.tar.gz: 113a631809991ac88d964b158441d86b037d144cc9b91b065af1493ff2850151e6e729197eab8f893319d98c530cf371ca746f696218b6ddc5b4fee25dd8d7e4
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.5] - 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.5...HEAD
28
- [2.0.5]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.5
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.5)
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** | [**MontantTva**](MontantTva.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** | [**MontantTva1**](MontantTva1.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
+
@@ -1,4 +1,4 @@
1
- # FactPulse::Tauxmanuel
1
+ # FactPulse::StatutCelery
2
2
 
3
3
  ## Properties
4
4
 
@@ -10,6 +10,6 @@
10
10
  ```ruby
11
11
  require 'factpulse'
12
12
 
13
- instance = FactPulse::Tauxmanuel.new()
13
+ instance = FactPulse::StatutCelery.new()
14
14
  ```
15
15
 
data/docs/StatutTache.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id_tache** | **String** | | |
8
- | **statut** | **String** | | |
8
+ | **statut** | [**StatutCelery**](StatutCelery.md) | Statut Celery de la tâche (PENDING, STARTED, SUCCESS, FAILURE, RETRY) | |
9
9
  | **resultat** | **Hash<String, Object>** | | [optional] |
10
10
 
11
11
  ## Example
@@ -171,7 +171,7 @@ end
171
171
 
172
172
  Obtenir le statut d'une tâche de génération
173
173
 
174
- Récupère l'état d'avancement d'une tâche de génération de facture. ## États possibles - **PENDING** : Tâche en attente de traitement - **STARTED** : Tâche en cours d'exécution - **SUCCESS** : Tâche terminée (vérifier `resultat.statut` pour le résultat réel) - **FAILURE** : Erreur système lors de l'exécution - **RETRY** : Tentative de ré-exécution en cours ## Champ resultat Quand la tâche est terminée (SUCCESS), le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l'erreur (si échec) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu'à ce que le statut soit SUCCESS ou FAILURE.
174
+ Récupère l'état d'avancement d'une tâche de génération de facture. ## États possibles Le champ `statut` utilise l'enum `StatutCelery` avec les valeurs : - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** Voir la documentation du schéma `StatutCelery` pour les détails. ## Résultat métier Quand `statut=\"SUCCESS\"`, le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" (résultat métier) - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l'erreur (si échec métier) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu'à ce que `statut` soit `SUCCESS` ou `FAILURE`.
175
175
 
176
176
  ### Examples
177
177
 
@@ -169,7 +169,7 @@ module FactPulse
169
169
  end
170
170
 
171
171
  # Obtenir le statut d'une tâche de génération
172
- # Récupère l'état d'avancement d'une tâche de génération de facture. ## États possibles - **PENDING** : Tâche en attente de traitement - **STARTED** : Tâche en cours d'exécution - **SUCCESS** : Tâche terminée (vérifier `resultat.statut` pour le résultat réel) - **FAILURE** : Erreur système lors de l'exécution - **RETRY** : Tentative de ré-exécution en cours ## Champ resultat Quand la tâche est terminée (SUCCESS), le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l'erreur (si échec) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu'à ce que le statut soit SUCCESS ou FAILURE.
172
+ # Récupère l'état d'avancement d'une tâche de génération de facture. ## États possibles Le champ `statut` utilise l'enum `StatutCelery` avec les valeurs : - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** Voir la documentation du schéma `StatutCelery` pour les détails. ## Résultat métier Quand `statut=\"SUCCESS\"`, le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" (résultat métier) - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l'erreur (si échec métier) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu'à ce que `statut` soit `SUCCESS` ou `FAILURE`.
173
173
  # @param id_tache [String]
174
174
  # @param [Hash] opts the optional parameters
175
175
  # @return [StatutTache]
@@ -179,7 +179,7 @@ module FactPulse
179
179
  end
180
180
 
181
181
  # Obtenir le statut d'une tâche de génération
182
- # Récupère l'état d'avancement d'une tâche de génération de facture. ## États possibles - **PENDING** : Tâche en attente de traitement - **STARTED** : Tâche en cours d'exécution - **SUCCESS** : Tâche terminée (vérifier `resultat.statut` pour le résultat réel) - **FAILURE** : Erreur système lors de l'exécution - **RETRY** : Tentative de ré-exécution en cours ## Champ resultat Quand la tâche est terminée (SUCCESS), le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l'erreur (si échec) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu'à ce que le statut soit SUCCESS ou FAILURE.
182
+ # Récupère l'état d'avancement d'une tâche de génération de facture. ## États possibles Le champ `statut` utilise l'enum `StatutCelery` avec les valeurs : - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** Voir la documentation du schéma `StatutCelery` pour les détails. ## Résultat métier Quand `statut=\"SUCCESS\"`, le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" (résultat métier) - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l'erreur (si échec métier) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu'à ce que `statut` soit `SUCCESS` ou `FAILURE`.
183
183
  # @param id_tache [String]
184
184
  # @param [Hash] opts the optional parameters
185
185
  # @return [Array<(StatutTache, Integer, Hash)>] StatutTache data, response status code and response headers
@@ -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)