Documentation
¶
Index ¶
- type APIError
- type ActionFacture
- type AdressePostale
- type Affactureur
- type AjouterPieceOptions
- type AjouterPieceResponse
- type AnnuaireDestinataire
- type CadreDeFacturation
- type CadreFac
- type CadreFacturation
- type CategorieSollicitation
- type Client
- type ClientConfig
- type CodeLangue
- type CompleterFactureOptions
- type CompleterFactureResponse
- type CompteRenduDetailleResponse
- type ConsulterCompteRenduDetailleOptions
- type ConsulterCompteRenduOptions
- type ConsulterCompteRenduResponse
- type ConsulterFactureFournisseurOptions
- type ConsulterFactureOptions
- type ConsulterFactureResponse
- type ConsulterHistoriqueFactureOptions
- type ConsulterHistoriqueFactureResponse
- type ConsulterInformationsSIRETOptions
- type ConsulterServiceOptions
- type ConsulterServiceResponse
- type ConsulterStructureOptions
- type ConsulterStructureResponse
- type CoordonneeBancaire
- type CorrigerValideurFactureOptions
- type CorrigerValideurFactureResponse
- type CriteresRechercheStructures
- type Date
- type Datetime
- type DemandePaiement
- type DemandePaiementParam
- type DeposerFluxFactureOptions
- type DeposerFluxFactureResponse
- type DerniereAction
- type Destinataire
- type DestinataireParam
- type DestinataireRecherche
- type Devise
- type ErreurDemandePaiement
- type ErreurTechnique
- type EtatTraitement
- type EtatTypeDemandePaiement
- type Evenement
- type Facture
- type FactureParFournisseur
- type FactureParRecipiendaire
- type FactureParValideur
- type FacturesService
- func (s *FacturesService) CompleterFacture(ctx context.Context, opts CompleterFactureOptions) (*CompleterFactureResponse, error)
- func (s *FacturesService) ConsulterFactureParFournisseur(ctx context.Context, opts ConsulterFactureFournisseurOptions) (*ConsulterFactureResponse, error)
- func (s *FacturesService) ConsulterFactureParRecipiendaire(ctx context.Context, opts ConsulterFactureOptions) (*ConsulterFactureResponse, error)
- func (s *FacturesService) ConsulterFactureParValideur(ctx context.Context, opts ConsulterFactureOptions) (*ConsulterFactureResponse, error)
- func (s *FacturesService) ConsulterHistoriqueFacture(ctx context.Context, opts ConsulterHistoriqueFactureOptions) (*ConsulterHistoriqueFactureResponse, error)
- func (s *FacturesService) CorrigerValideurFacture(ctx context.Context, opts CorrigerValideurFactureOptions) (*CorrigerValideurFactureResponse, error)
- func (s *FacturesService) DeposerFluxFacture(ctx context.Context, opts DeposerFluxFactureOptions) (*DeposerFluxFactureResponse, error)
- func (s *FacturesService) RechercherDemandePaiement(ctx context.Context, opts RechercherDemandePaiementOptions) (*RechercherDemandePaiementResponse, error)
- func (s *FacturesService) RechercherFactureParFournisseur(ctx context.Context, opts RechercherFactureParFournisseurOptions) (*RechercherFactureParFournisseurResponse, error)
- func (s *FacturesService) RechercherFactureParRecipiendaire(ctx context.Context, opts RechercherFactureParRecipiendaireOptions) (*RechercherFactureParRecipiendaireResponse, error)
- func (s *FacturesService) RechercherFactureParValideur(ctx context.Context, opts RechercherFactureParValideurOptions) (*RechercherFactureParValideurResponse, error)
- func (s *FacturesService) RecupererStatutsVisiblesParValideur(ctx context.Context, opts RecupererStatutsVisiblesParValideurOptions) (*RecupererStatutsVisiblesParValideurResponse, error)
- func (s *FacturesService) RecyclerFacture(ctx context.Context, opts RecyclerFactureOptions) (*RecyclerFactureResponse, error)
- func (s *FacturesService) SoumettreFacture(ctx context.Context, opts SoumettreFactureOptions) (*SoumettreFactureResponse, error)
- func (s *FacturesService) TelechargerGroupeFacture(ctx context.Context, opts TraiterFactureAValiderOptions) (*TelechargerGroupeFactureResponse, error)
- func (s *FacturesService) TraiterFactureAValider(ctx context.Context, opts TraiterFactureAValiderOptions) (*TraiterFactureAValiderResponse, error)
- func (s *FacturesService) TraiterFactureRecue(ctx context.Context, opts TraiterFactureRecueOptions) (*TraiterFactureRecueResponse, error)
- func (s *FacturesService) TraiterFacturesRejetees(ctx context.Context, opts TraiterRejetOptions) (*TraiterRejetResponse, error)
- type FormatFichier
- type FormatFlux
- type Fournisseur
- type FournisseurParam
- type HealthCheck
- type HistoAction
- type HistoStatut
- type HistoriquesDesActionsUtilisateurs
- type HistoriquesDesEvenementsComplementaires
- type HistoriquesDesStatuts
- type IdFacture
- type InformationGeneralesStructure
- type InformationsGeneralesService
- type InformationsSIRETResponse
- type LignePoste
- type LigneTva
- type ListeCadresFacturation
- type ListeCategoriesSollicitationOptions
- type ListeCategoriesSollicitationResponse
- type ListeCoordonneesBancaires
- type ListeCoordonneesBancairesOptions
- type ListeDestinatairesOptions
- type ListeDestinatairesResponse
- type ListeDevises
- type ListeEtatsTraitementOptions
- type ListeEtatsTraitementResponse
- type ListeEtatsTypeDemandePaiementOptions
- type ListeEtatsTypeDemandePaiementResponse
- type ListeFormatsFluxResponse
- type ListeLignesDePoste
- type ListeLignesRecapTVA
- type ListeModesDepot
- type ListeModesReglement
- type ListeMotifsExonerationTvaResponse
- type ListeMotifsRefusFactureAValider
- type ListeMotifsRefusFactureAValiderOptions
- type ListePays
- type ListePiecesJointesFacture
- type ListePiecesJointesMonCompteOptions
- type ListePiecesJointesMonCompteResponse
- type ListePiecesJointesStructureOptions
- type ListePiecesJointesStructureResponse
- type ListeRattachementsServicesUtilisateurOptions
- type ListeRattachementsServicesUtilisateurResponse
- type ListeRattachementsUtilisateurOptions
- type ListeRattachementsUtilisateurResponse
- type ListeSousCategoriesSollicitationOptions
- type ListeSousCategoriesSollicitationResponse
- type ListeStructuresActivesResponse
- type ListeTauxTvaResponse
- type ListeTypesDemandePaiementResponse
- type ListeTypesFactureTravauxResponse
- type ListeTypesIdentifiantsStructureResponse
- type ListeTypesPieceJointeOptions
- type ListeTypesPieceJointeResponse
- type ModeDepot
- type ModeReglement
- type MontantTotal
- type MotifExonerationTva
- type MotifRefus
- type ObjetPJ
- type PaginationHistoActionsUtilisateursOptions
- type PaginationHistoEvenementsComplementairesOptions
- type PaginationHistoStatutsOptions
- type PaginationLignesPosteOptions
- type PaginationLignesRecapTVAOptions
- type PaginationOptions
- type PaginationPiecesJointesOptions
- type PaginationResponse
- type ParametrageService
- type ParametrageStructure
- type Pays
- type PieceJointe
- type PieceJointeComplementaire
- type PieceJointeFacture
- type PieceJointeMonCompte
- type PieceJointePrincipale
- type PieceJointeStructure
- type PiecePrecedente
- type PieceSuivante
- type RattachementService
- type RattachementServiceUtilisateur
- type RattachementStructure
- type RechercherDemandePaiementOptions
- type RechercherDemandePaiementResponse
- type RechercherFactureParFournisseurOptions
- type RechercherFactureParFournisseurResponse
- type RechercherFactureParRecipiendaireOptions
- type RechercherFactureParRecipiendaireResponse
- type RechercherFactureParValideurOptions
- type RechercherFactureParValideurResponse
- type RechercherServicesOptions
- type RechercherServicesResponse
- type RechercherStructuresOptions
- type RechercherStructuresResponse
- type RecupererStatutsVisiblesParValideurOptions
- type RecupererStatutsVisiblesParValideurResponse
- type RecyclerFactureOptions
- type RecyclerFactureResponse
- type References
- type RoleUtilisateur
- type ServiceRecherche
- type SoumettreFactureCadreDeFacturation
- type SoumettreFactureDestinataire
- type SoumettreFactureFournisseur
- type SoumettreFactureLignePoste
- type SoumettreFactureLigneTva
- type SoumettreFactureMontantTotal
- type SoumettreFactureOptions
- type SoumettreFacturePJPrincipale
- type SoumettreFactureReferences
- type SoumettreFactureResponse
- type SousCategorieSollicitation
- type SousCategoriesSolliciation
- type StatutVisible
- type StructureActive
- type StructureDestinataireParam
- type StructureDupliquee
- type StructureFournisseurParam
- type StructureMoaParam
- type StructureMoeParam
- type StructureRecherche
- type StructureValideurParam
- type StructuresService
- func (s *StructuresService) ConsulterService(ctx context.Context, opts ConsulterServiceOptions) (*ConsulterServiceResponse, error)
- func (s *StructuresService) ConsulterStructure(ctx context.Context, opts ConsulterStructureOptions) (*ConsulterStructureResponse, error)
- func (s *StructuresService) RechercherServices(ctx context.Context, opts RechercherServicesOptions) (*RechercherServicesResponse, error)
- func (s *StructuresService) RechercherStructures(ctx context.Context, opts RechercherStructuresOptions) (*RechercherStructuresResponse, error)
- func (s *StructuresService) RecupererRattachementsServicesUtilisateur(ctx context.Context, opts ListeRattachementsServicesUtilisateurOptions) (*ListeRattachementsServicesUtilisateurResponse, error)
- type SyntaxeFlux
- type TauxTva
- type TelechargerGroupeFactureOptions
- type TelechargerGroupeFactureResponse
- type TelechargerPieceJointeDemandePaiementOptions
- type TelechargerPieceJointeEngagementJuridiqueOptions
- type TelechargerPieceJointeOptions
- type TelechargerPieceJointeSollicitationOptions
- type TelechargerPieceJointeStructureOptions
- type TraiterFactureAValiderOptions
- type TraiterFactureAValiderResponse
- type TraiterFactureRecueOptions
- type TraiterFactureRecueResponse
- type TraiterRejetOptions
- type TraiterRejetResponse
- type TransversesService
- func (s *TransversesService) AjouterPieceJointe(ctx context.Context, opts AjouterPieceOptions) (*AjouterPieceResponse, error)
- func (s *TransversesService) ConsulterCompteRendu(ctx context.Context, opts ConsulterCompteRenduOptions) (*ConsulterCompteRenduResponse, error)
- func (s *TransversesService) ConsulterCompteRenduDetaille(ctx context.Context, opts ConsulterCompteRenduDetailleOptions) (*CompteRenduDetailleResponse, error)
- func (s *TransversesService) ConsulterInformationsSIRET(ctx context.Context, opts ConsulterInformationsSIRETOptions) (*InformationsSIRETResponse, error)
- func (s *TransversesService) HealthCheck(ctx context.Context) (*HealthCheck, error)
- func (s *TransversesService) RechercherCategoriesSollicitation(ctx context.Context, opts ListeCategoriesSollicitationOptions) (*ListeCategoriesSollicitationResponse, error)
- func (s *TransversesService) RechercherDestinataires(ctx context.Context, opts ListeDestinatairesOptions) (*ListeDestinatairesResponse, error)
- func (s *TransversesService) RechercherPiecesJointesMonCompte(ctx context.Context, opts ListePiecesJointesMonCompteOptions) (*ListePiecesJointesMonCompteResponse, error)
- func (s *TransversesService) RechercherPiecesJointesStructure(ctx context.Context, opts ListePiecesJointesStructureOptions) (*ListePiecesJointesStructureResponse, error)
- func (s *TransversesService) RechercherSousCategoriesSollicitation(ctx context.Context, opts ListeSousCategoriesSollicitationOptions) (*ListeSousCategoriesSollicitationResponse, error)
- func (s *TransversesService) RecupererCadresFacturation(ctx context.Context, typeDP string) (*ListeCadresFacturation, error)
- func (s *TransversesService) RecupererCoordonneesBancairesValides(ctx context.Context, opts ListeCoordonneesBancairesOptions) (*ListeCoordonneesBancaires, error)
- func (s *TransversesService) RecupererDevises(ctx context.Context, lang CodeLangue) (*ListeDevises, error)
- func (s *TransversesService) RecupererEtatParTypeDemandePaiement(ctx context.Context, opts ListeEtatsTypeDemandePaiementOptions) (*ListeEtatsTypeDemandePaiementResponse, error)
- func (s *TransversesService) RecupererEtatsPossiblesPourTraitement(ctx context.Context, opts ListeEtatsTraitementOptions) (*ListeEtatsTraitementResponse, error)
- func (s *TransversesService) RecupererFormatFlux(ctx context.Context) (*ListeFormatsFluxResponse, error)
- func (s *TransversesService) RecupererModesDepot(ctx context.Context) (*ListeModesDepot, error)
- func (s *TransversesService) RecupererModesReglement(ctx context.Context) (*ListeModesReglement, error)
- func (s *TransversesService) RecupererMotifsExonerationTva(ctx context.Context, lang CodeLangue) (*ListeMotifsExonerationTvaResponse, error)
- func (s *TransversesService) RecupererMotifsRefusFactureAValider(ctx context.Context, opts ListeMotifsRefusFactureAValiderOptions) (*ListeMotifsRefusFactureAValider, error)
- func (s *TransversesService) RecupererPays(ctx context.Context, lang CodeLangue) (*ListePays, error)
- func (s *TransversesService) RecupererStructuresActivesDestinataire(ctx context.Context) (*ListeStructuresActivesResponse, error)
- func (s *TransversesService) RecupererStructuresActivesFactureTravaux(ctx context.Context) (*ListeStructuresActivesResponse, error)
- func (s *TransversesService) RecupererStructuresActivesFournisseur(ctx context.Context) (*ListeStructuresActivesResponse, error)
- func (s *TransversesService) RecupererTauxTva(ctx context.Context, lang CodeLangue) (*ListeTauxTvaResponse, error)
- func (s *TransversesService) RecupererTypesDemandePaiement(ctx context.Context) (*ListeTypesDemandePaiementResponse, error)
- func (s *TransversesService) RecupererTypesFactureTravaux(ctx context.Context) (*ListeTypesFactureTravauxResponse, error)
- func (s *TransversesService) RecupererTypesIdentifiantsStructure(ctx context.Context) (*ListeTypesIdentifiantsStructureResponse, error)
- func (s *TransversesService) RecupererTypesPieceJointe(ctx context.Context, opts ListeTypesPieceJointeOptions) (*ListeTypesPieceJointeResponse, error)
- func (s *TransversesService) TelechargerAnnuaireDestinataire(ctx context.Context) (*AnnuaireDestinataire, error)
- func (s *TransversesService) TelechargerPieceJointe(ctx context.Context, opts TelechargerPieceJointeOptions) (*PieceJointe, error)
- type TriSens
- type TypeDemandePaiement
- type TypeFacture
- type TypeFactureTravaux
- type TypeIdentifiant
- type TypeIdentifiantStructure
- type TypeObjet
- type TypePieceJointe
- type TypeTva
- type UtilisateursService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionFacture ¶
type ActionFacture string
Action Facture est le type des actions possibles sur une facture
const ( ActionFactureRefus ActionFacture = "REFUS" ActionFactureValidation ActionFacture = "VALIDATION" ActionFactureMiseEnPaiement ActionFacture = "MISE_EN_PAIEMENT" ActionFactureMiseEnRecyclage ActionFacture = "MISE_EN_RECYCLAGE" ActionFactureSuspension ActionFacture = "SUSPENSION" ActionFactureRejet ActionFacture = "REJET" )
type AdressePostale ¶
type AdressePostale struct { Adresse string `json:"adresse"` CodePostal string `json:"codePostal"` ComplementAdresse1 string `json:"complementAdresse1"` ComplementAdresse2 string `json:"complementAdresse2"` Fax string `json:"fax"` IndicatifFax string `json:"indicatifFax"` IndicatifTelephone string `json:"indicatifTelephone"` Pays string `json:"pays"` Telephone string `json:"telephone"` Ville string `json:"ville"` }
AdressePostale est la structure de données représentant une adresse postale d'une structure ou d'un service.
type Affactureur ¶
type Affactureur struct { Code string `json:"affactureurCode,omitempty"` CodePays string `json:"affactureurCodePays,omitempty"` Id int64 `json:"affactureurId,omitempty"` RaisonSociale string `json:"affactureurRaisonSociale,omitempty"` TypeIdentifiant TypeIdentifiant `json:"affactureurTypeIdentifiant,omitempty"` }
Affactureur est la structure de données représentant l'affactureur d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type AjouterPieceOptions ¶
type AjouterPieceOptions struct { IdUtilisateurCourant int64 `json:"idUtilisateurCourant,omitempty"` Extension string `json:"pieceJointeExtension"` Fichier string `json:"pieceJointeFichier"` Nom string `json:"pieceJointeNom"` TypeMime string `json:"pieceJointeTypeMime"` }
AjouterPieceOptions est la structure de données utilisée pour appeler la méthode AjouterPieceJointe.
type AjouterPieceResponse ¶
type AjouterPieceResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` IdPieceJointe int64 `json:"pieceJointeId"` }
AjouterPieceResponse est la structure de données représentant la réponse de la méthode AjouterPieceJointe.
type AnnuaireDestinataire ¶
type AnnuaireDestinataire struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Fichier string `json:"fichierResultat,omitempty"` // encoded in base64 }
Annuaire réprésente la réponse retournée par TransversesService.TelechargerAnnuaireDestinataire Le contenu de l'annuaire est encodé en base64 dans le champ Fichier
type CadreDeFacturation ¶
type CadreDeFacturation struct { Code CadreFac `json:"codeCadreFacturation,omitempty"` CodeServiceMoa string `json:"codeServiceMoa,omitempty"` CodeServiceMoe string `json:"codeServiceMoe,omitempty"` CodeValideur1 string `json:"codeValideur1,omitempty"` CodeValideur2 string `json:"codeValideur2,omitempty"` DateValidation1 *Date `json:"dateValidation1,omitempty"` DateValidation2 *Date `json:"dateValidation2,omitempty"` DesignationMoa string `json:"designationMoa,omitempty"` DesignationMoe string `json:"designationMoe,omitempty"` DesignationValideur2 string `json:"designationValideur2,omitempty"` IdMoa int64 `json:"idMoa,omitempty"` IdMoe int64 `json:"idMoe,omitempty"` IdServiceMoa int64 `json:"idServiceMoa,omitempty"` IdServiceMoe int64 `json:"idServiceMoe,omitempty"` IdValideur1 int64 `json:"idValideur1,omitempty"` IdValideur2 int64 `json:"idValideur2,omitempty"` IdentifiantMoa string `json:"identifiantMoa,omitempty"` IdentifiantMoe string `json:"identifiantMoe,omitempty"` NomMoe string `json:"nomMoe,omitempty"` NomServiceMoa string `json:"nomServiceMoa,omitempty"` NomServiceMoe string `json:"nomServiceMoe,omitempty"` NomValideur1 string `json:"nomValideur1,omitempty"` NomValideur2 string `json:"nomValideur2,omitempty"` PrenomMoe string `json:"prenomMoe,omitempty"` PrenomValideur1 string `json:"prenomValideur1,omitempty"` PrenomValideur2 string `json:"prenomValideur2,omitempty"` RaisonSocialeMoa string `json:"raisonSocialeMoa,omitempty"` RaisonSocialeMoe string `json:"raisonSocialeMoe,omitempty"` RaisonSocialeValideur1 string `json:"raisonSocialeValideur1,omitempty"` RaisonSocialeValideur2 string `json:"raisonSocialeValideur2,omitempty"` TypeIdentifiantMoa TypeIdentifiant `json:"typeIdentifiantMoa,omitempty"` TypeIdentifiantMoe TypeIdentifiant `json:"typeIdentifiantMoe,omitempty"` TypeIdentifiantValideur1 TypeIdentifiant `json:"typeIdentifiantValideur1,omitempty"` TypeIdentifiantValideur2 TypeIdentifiant `json:"typeIdentifiantValideur2,omitempty"` }
CadreDeFacturation est la structure de données représentant le cadre de facturation d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type CadreFac ¶
type CadreFac string
CadreFac est le type des cadres de facturation
const ( CodeFacA1 CadreFac = "A1_FACTURE_FOURNISSEUR" CodeFacA2 CadreFac = "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE" CodeFacA3 CadreFac = "A3_MEMOIRE_JUSTICE" CodeFacA4 CadreFac = "A4_PROJET_DECOMPTE_MENSUEL_FOURNISSEUR" CodeFacA5 CadreFac = "A5_ETAT_ACOMPTE_FOURNISSEUR" CodeFacA6 CadreFac = "A6_ETAT_ACOMPTE_VALIDE_FOURNISSEUR" CodeFacA7 CadreFac = "A7_PROJET_DECOMPTE_FINAL_FOURNISSEUR" CodeFacA8 CadreFac = "A8_DECOMPTE_GENERAL_DEFINITIF_FOURNISSEUR" CodeFacA9 CadreFac = "A9_FACTURE_SOUSTRAITANT" CodeFacA10 CadreFac = "A10_PROJET_DECOMPTE_MENSUEL_SOUSTRAITANT" CodeFacA11 CadreFac = "A11_PROJET_DECOMPTE_FINAL_SOUSTRAITANT" CodeFacA12 CadreFac = "A12_FACTURE_COTRAITANT" CodeFacA13 CadreFac = "A13_PROJET_DECOMPTE_MENSUEL_COTRAITANT" CodeFacA14 CadreFac = "A14_PROJET_DECOMPTE_FINAL_COTRAITANT" CodeFacA15 CadreFac = "A15_ETAT_ACOMPTE_MOE" CodeFacA16 CadreFac = "A16_ETAT_ACOMPTE_VALIDE_MOE" CodeFacA17 CadreFac = "A17_PROJET_DECOMPTE_GENERAL_MOE" CodeFacA18 CadreFac = "A18_DECOMPTE_GENERAL_MOE" CodeFacA19 CadreFac = "A19_ETAT_ACOMPTE_VALIDE_MOA" CodeFacA20 CadreFac = "A20_DECOMPTE_GENERAL_MOA" CodeFacA21 CadreFac = "A21_DEMANDE_REMBOURSEMENT_TIC" CodeFacA22 CadreFac = "A22_PROJET_DECOMPTE_GENERAL_FOURNISSEUR_PROCEDURE_TACITE" CodeFacA23 CadreFac = "A23_DECOMPTE_GENERAL_DEFINITIF_TACITE_FOURNISSEUR" CodeFacA24 CadreFac = "A24_DECOMPTE_GENERAL_DEFINITIF_TACITE_MOE" CodeFacA25 CadreFac = "A25_DECOMPTE_GENERAL_DEFINITIF_MOE_PROCEDURE_TACITE" )
type CadreFacturation ¶
type CadreFacturation struct {
Code string `json:"codeCadreFacturation"`
}
CadreFacturation représente un cadre de facturation
type CategorieSollicitation ¶
type CategorieSollicitation struct { Code string `json:"codeCategorie"` Libelle string `json:"libelleCategorie"` IdTechnique int64 `json:"idTechniqueCategorie"` }
CategorieSollicitation est la structure de données représentant une catégorie de sollicitation.
type Client ¶
type Client struct { // Piste URL BaseUrl *url.URL // Piste OAuth URL AuthUrl *url.URL // Services Factures *FacturesService Structures *StructuresService Transverses *TransversesService Utilisateurs *UtilisateursService // contains filtered or unexported fields }
Client is used for HTTP requests to the Chorus Pro API and it routes these requests through the Piste API
func (*Client) WithConfig ¶
func (c *Client) WithConfig(config *ClientConfig) (*Client, error)
type ClientConfig ¶
type ClientConfig struct { // Piste URL BaseUrl string // Piste OAuth URL AuthUrl string // Piste client ID ClientId string // Piste client secret ClientSecret string // Chorus Pro technical credentials (login:password base64 encoded) Login string }
ClientConfig contains the configuration for the client
type CodeLangue ¶
type CodeLangue string
Liste des langues disponibles
const ( CodeLangueFr CodeLangue = "FR" CodeLangueEn CodeLangue = "EN" )
type CompleterFactureOptions ¶
type CompleterFactureOptions struct { Commentaire string `json:"commentaire,omitempty"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant,omitempty"` IdentifiantFactureCPP int64 `json:"identifiantFactureCPP,omitempty"` PiecesJointesComplementaires []*PieceJointeComplementaire `json:"pieceJointeComplementaire,omitempty"` }
CompleterFactureOptions est la structure de données utilisée pour appeler la méthode CompleterFacture.
type CompleterFactureResponse ¶
type CompleterFactureResponse struct { CodeRetour int `json:"codeRetour,omitempty"` DateTraitement *Date `json:"dateTraitement,omitempty"` IdentifiantFactureCPP int64 `json:"identifiantFactureCPP,omitempty"` Libelle string `json:"libelle,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` }
CompleterFactureResponse est la structure de données représentant la réponse de la méthode CompleterFacture.
type CompteRenduDetailleResponse ¶
type CompteRenduDetailleResponse struct { CodeInterfaceDepotFlux string `json:"codeInterfaceDepotFlux,omitempty"` CodeRetour int32 `json:"codeRetour"` DateDepotFlux *time.Time `json:"dateDepotFlux,omitempty"` DateHeureEtatCourantFlux *time.Time `json:"dateHeureEtatCourantFlux,omitempty"` EtatCourantDepotFlux string `json:"etatCourantDepotFlux,omitempty"` Libelle string `json:"libelle"` NomFichier string `json:"nomFichier,omitempty"` ErreursDemandePaiement []ErreurDemandePaiement `json:"listeErreurDP,omitempty"` ErreursTechniques []ErreurTechnique `json:"listeErreurTechnique,omitempty"` }
CompteRenduDetailleResponse est la structure de données représentant le compte rendu détaillé d'un dépôt de flux.
type ConsulterCompteRenduDetailleOptions ¶
type ConsulterCompteRenduDetailleOptions struct { NumeroFluxDepot string `json:"numeroFluxDepot"` SyntaxeFlux SyntaxeFlux `json:"syntaxeFlux,omitempty"` }
ConsulterCompteRenduDetailleOptions est la structure de données représentant les options de la méthode ConsulterCompteRenduDetaille.
type ConsulterCompteRenduOptions ¶
type ConsulterCompteRenduOptions struct { DateDepot *time.Time `json:"dateDepot,omitempty"` NumeroFluxDepot string `json:"numeroFluxDepot"` SyntaxeFlux SyntaxeFlux `json:"syntaxeFlux,omitempty"` }
ConsulterCompteRenduOptions est la structure de données représentant les options de la méthode ConsulterCompteRendu.
type ConsulterCompteRenduResponse ¶
type ConsulterCompteRenduResponse struct { CodeAppliPartenaire string `json:"codeAppliPartenaire,omitempty"` CodeInterfaceFlux string `json:"codeInterfaceFlux,omitempty"` CodeRetour int `json:"codeRetour"` DateDepotFlux *time.Time `json:"dateDepotFlux,omitempty"` DateHeureEtatCourantFlux *time.Time `json:"dateHeureEtatCourantFlux,omitempty"` DesignationPartenaire string `json:"designationPartenaire,omitempty"` EtatCourantFlux string `json:"etatCourantFlux,omitempty"` FichierCR string `json:"fichierCR,omitempty"` // encoded in base64 Libelle string `json:"libelle"` NomFichierFlux string `json:"nomFichierFlux,omitempty"` NumeroFluxDepot string `json:"numeroFluxDepot,omitempty"` }
ConsulterCompteRenduResponse est la structure de données représentant la réponse de la méthode ConsulterCompteRendu.
type ConsulterFactureFournisseurOptions ¶
type ConsulterFactureFournisseurOptions struct { CodeLangue CodeLangue `json:"codeLangue,omitempty"` IdUtilisateurCourant int `json:"idUtilisateurCourant,omitempty"` IdentifiantFactureCPP int `json:"identifiantFactureCPP,omitempty"` PaginationLignesPoste *PaginationLignesPosteOptions `json:"pLignesPoste,omitempty"` PaginationPiecesJointes *PaginationPiecesJointesOptions `json:"pListePiecesJointes,omitempty"` PaginationLignesTVA *PaginationLignesRecapTVAOptions `json:"pLigneRecapTva,omitempty"` }
ConsulterFactureFournisseurOptions est la structure de données représentant les options de la méthode ConsulterFactureParFournisseur.
type ConsulterFactureOptions ¶
type ConsulterFactureOptions struct { CodeLangue CodeLangue `json:"codeLangue,omitempty"` IdUtilisateurCourant int `json:"idUtilisateurCourant,omitempty"` IdentifiantFactureCPP int `json:"identifiantFactureCPP,omitempty"` PaginationLignesPoste *PaginationLignesPosteOptions `json:"rechercheLignePoste,omitempty"` PaginationPiecesJointes *PaginationPiecesJointesOptions `json:"recherchePj,omitempty"` PaginationLignesTVA *PaginationLignesRecapTVAOptions `json:"rechercheligneTvaRecap,omitempty"` }
ConsulterFactureOptions est la structure de données utilisée pour appeler les méthodes ConsulterFactureParRecipiendaire et ConsulterFactureParValideur.
type ConsulterFactureResponse ¶
type ConsulterFactureResponse struct { CodeRetour int `json:"codeRetour,omitempty"` Facture Facture `json:"facture,omitempty"` Libelle string `json:"libelle,omitempty"` }
ConsulterFactureResponse est la structure de données représentant la réponse de la méthode ConsulterFacture.
type ConsulterHistoriqueFactureOptions ¶
type ConsulterHistoriqueFactureOptions struct { IdEspace int64 `json:"idEspace"` IdFacture int64 `json:"idFacture"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant"` PaginationHistoActionsUtilisateurs *PaginationHistoActionsUtilisateursOptions `json:"paramRechercheHistoActionsUtilisateurs"` PaginationHistoEvenementsComplementaires *PaginationHistoEvenementsComplementairesOptions `json:"paramRechercheHistoEvenementsComplementaires"` PaginationHistoStatuts *PaginationHistoStatutsOptions `json:"paramRechercheHistoStatuts"` }
ConsulterHistoriqueFactureOptions est la structure de données représentant les options de la méthode ConsulterHistoriqueFacture.
type ConsulterHistoriqueFactureResponse ¶
type ConsulterHistoriqueFactureResponse struct { CodeRetour int32 `json:"codeRetour"` DerniereAction *DerniereAction `json:"derniereAction"` HistoriquesDesActionsUtilisateurs *HistoriquesDesActionsUtilisateurs `json:"historiquesDesActionsUtilisateurs"` HistoriquesDesEvenementsComplementaires *HistoriquesDesEvenementsComplementaires `json:"historiquesDesEvenementsComplementaires"` HistoriquesDesStatuts *HistoriquesDesStatuts `json:"historiquesDesStatuts"` IdFacture int64 `json:"idFacture"` Libelle string `json:"libelle"` ModeDepot string `json:"modeDepot"` NumeroFacture string `json:"numeroFacture"` StatutCourantCode string `json:"statutCourantCode"` }
ConsulterHistoriqueFactureResponse est la structure de données représentant la réponse de la méthode ConsulterHistoriqueFacture.
type ConsulterInformationsSIRETOptions ¶
type ConsulterInformationsSIRETOptions struct {
Siret string `json:"siretStructure"`
}
ConsulterInformationsSIRETOptions est la structure de données utilisée pour appeler la méthode ConsulterInformationsSIRET.
type ConsulterServiceOptions ¶
type ConsulterServiceOptions struct { CodeLangue CodeLangue `json:"codeLangue"` IdService int64 `json:"idService"` IdStructure int64 `json:"idStructure"` }
ConsulterServiceOptions est la structure de données utilisée pour appeler la méthode ConsulterService.
type ConsulterServiceResponse ¶
type ConsulterServiceResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` AdressePostale *AdressePostale `json:"adressePostale"` InformationsGenerales *InformationsGeneralesService `json:"informationsGenerales"` Parametrage *ParametrageService `json:"parametres"` }
ConsulterServiceResponse est la structure de données représentant la réponse de la méthode ConsulterService.
type ConsulterStructureOptions ¶
type ConsulterStructureOptions struct { CodeLangue CodeLangue `json:"codeLangue"` IdStructure int64 `json:"idStructure"` }
ConsulterStructureOptions est la structure de données utilisée pour appeler la méthode ConsulterStructure.
type ConsulterStructureResponse ¶
type ConsulterStructureResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` AdressePostale *AdressePostale `json:"adressePostaleDuSiege"` InformationGenerales *InformationGeneralesStructure `json:"informationGenerales"` Parametrage *ParametrageStructure `json:"parametres"` }
ConsulterStructureResponse est la structure de données représentant la réponse de la méthode ConsulterStructure.
type CoordonneeBancaire ¶
type CoordonneeBancaire struct { Id int64 `json:"idCoordonneeBancaire"` Nom string `json:"nomCoordonneeBancaire"` }
CoordonneeBancaire représente une coordonnée bancaire valide
type CorrigerValideurFactureOptions ¶
type CorrigerValideurFactureOptions struct { IdFacture int64 `json:"idFacture"` IdStructure int64 `json:"idStructure"` IdentifiantStructure string `json:"identifiantStructure"` TypeIdentifiantStructure string `json:"typeIdentifiantStructure"` }
CorrigerValideurFactureOptions est la structure de données utlisée pour la méthode CorrigerValideurFacture.
type CorrigerValideurFactureResponse ¶
type CorrigerValideurFactureResponse struct { CodeRetour int32 `json:"codeRetour"` IdFacture int64 `json:"idFacture"` Libelle string `json:"libelle"` }
CorrigerValideurFactureResponse est la structure de données réprésentant la réponse de la méthode CorrigerValideurFacture.
type CriteresRechercheStructures ¶
type CriteresRechercheStructures struct { AdresseCodePays string `json:"adresseCodePays"` AdresseCodePostal string `json:"adresseCodePostal"` AdresseVille string `json:"adresseVille"` EstMOA bool `json:"estMOA"` EstMOAUniquement bool `json:"estMOAUniquement"` Identifiant string `json:"identifiantStructure"` Libelle string `json:"libelleStructure"` Nom string `json:"nomStructure"` Prenom string `json:"prenomStructure"` RaisonSociale string `json:"raisonSocialeStructure"` Statut string `json:"statutStructure"` TypeIdentifiant string `json:"typeIdentifiantStructure"` Type string `json:"typeStructure"` }
CriteresRechercheStructures est la structure de données représentant les critères de recherche d'une structure.
type Date ¶
Date is a custom type to handle date format (YYYY-MM-DD)
func (*Date) UnmarshalJSON ¶
UnmarshalJSON is a custom unmarshaler for Date
type Datetime ¶
Datetime is a custom type to handle datetime format (YYYY-MM-DD HH:MM)
func (*Datetime) UnmarshalJSON ¶
UnmarshalJSON is a custom unmarshaler for Datetime
type DemandePaiement ¶
type DemandePaiement struct { CadreFacturation CadreFac `json:"cadreFacturation,omitempty"` CodeJuridiction string `json:"codeJuridiction,omitempty"` CodeServiceDestinataire string `json:"codeServiceDestinataire,omitempty"` CodeServiceSollicitation string `json:"codeServiceSollicitation,omitempty"` CommentaireEtatCourant string `json:"commentaireEtatCourant,omitempty"` DateDepot *Date `json:"dateDepot,omitempty"` DateFournisseur *Date `json:"dateFournisseur,omitempty"` DateHeureEtatCourant *time.Time `json:"dateHeureEtatCourant,omitempty"` DpOuDpArchive string `json:"dpOuDpArchive,omitempty"` EtatCourant string `json:"etatCourant,omitempty"` IdDemandePaiement int64 `json:"idDemandePaiement,omitempty"` IdDossierFacturation int64 `json:"idDossierFacturation,omitempty"` IdServiceDestinataire int64 `json:"idServiceDestinataire,omitempty"` IdServiceFournisseur int64 `json:"idServiceFournisseur,omitempty"` IdServiceMoa int64 `json:"idServiceMoa,omitempty"` IdServiceMoe int64 `json:"idServiceMoe,omitempty"` IdStructureDestinataire int64 `json:"idStructureDestinataire,omitempty"` IdStructureFournisseur int64 `json:"idStructureFournisseur,omitempty"` IdStructureMoa int64 `json:"idStructureMoa,omitempty"` IdStructureMoe int64 `json:"idStructureMoe,omitempty"` IdStructureValideur1 int64 `json:"idStructureValideur1,omitempty"` IdStructureValideur2 int64 `json:"idStructureValideur2,omitempty"` IdentifiantStructureDestinataire string `json:"identifiantStructureDestinataire,omitempty"` IdentifiantStructureFournisseur string `json:"identifiantStructureFournisseur,omitempty"` LibelleCodePostaleDeptDR string `json:"libelleCodePostaleDeptDR,omitempty"` MontantAPayer float32 `json:"montantAPayer,omitempty"` MontantHT float32 `json:"montantHT,omitempty"` MontantTTC float32 `json:"montantTTC,omitempty"` NomServiceDestinataire string `json:"nomServiceDestinataire,omitempty"` NomServiceSollicitation string `json:"nomServiceSollicitation,omitempty"` NombreResultatTotal string `json:"nombreResultatTotal,omitempty"` NumeroBonCommande string `json:"numeroBonCommande,omitempty"` NumeroDemandePaiement string `json:"numeroDemandePaiement,omitempty"` NumeroDossierFacturation string `json:"numeroDossierFacturation,omitempty"` NumeroDpMandat string `json:"numeroDpMandat,omitempty"` NumeroFactureOrigine string `json:"numeroFactureOrigine,omitempty"` NumeroMarche string `json:"numeroMarche,omitempty"` RaisonSocialeDeptDR string `json:"raisonSocialeDeptDR,omitempty"` RaisonSocialeJuridiction string `json:"raisonSocialeJuridiction,omitempty"` RaisonSocialeTGI string `json:"raisonSocialeTGI,omitempty"` SiretDestinataireQualif string `json:"siretDestinataireQualif,omitempty"` SiretFournisseurQualif string `json:"siretFournisseurQualif,omitempty"` TypeDemandePaiement string `json:"typeDemandePaiement,omitempty"` TypeFacture TypeFacture `json:"typeFacture,omitempty"` TypeFactureTravaux string `json:"typeFactureTravaux,omitempty"` }
DemandePaie est la structure de données représentant une demande de paiement. Elle est utilisée dans la structure RechercherDemandePaiementResponse.
type DemandePaiementParam ¶
type DemandePaiementParam struct {
IdDemandePaiement int64 `json:"idDemandePaiement"`
}
DemandePaiementParam est la structure de données pour renseigner l'identifiant d'une demande de paiement. Cette structure est utilisée par la méthode TraiterRejet.
type DeposerFluxFactureOptions ¶
type DeposerFluxFactureOptions struct { AvecSignature bool `json:"avecSignature,omitempty"` FichierFlux string `json:"fichierFlux,omitempty"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant,omitempty"` NomFichier string `json:"nomFichier,omitempty"` SyntaxeFlux SyntaxeFlux `json:"syntaxeFlux,omitempty"` }
DeposerFluxFactureOptions est la structure de données utlisée pour la méthode DeposerFluxFacture.
type DeposerFluxFactureResponse ¶
type DeposerFluxFactureResponse struct { CodeRetour int `json:"codeRetour,omitempty"` DateDepot *Date `json:"dateDepot,omitempty"` Libelle string `json:"libelle,omitempty"` NumeroFluxDepot string `json:"numeroFluxDepot,omitempty"` SyntaxeFlux SyntaxeFlux `json:"syntaxeFlux,omitempty"` }
DeposerFluxFactureResponse est la structure de données réprésentant la réponse de la méthode DeposerFluxFacture.
type DerniereAction ¶
type DerniereAction struct { Code string `json:"derniereActionCode"` Id int64 `json:"derniereActionId"` }
DerniereAction est la structure de données représentant la dernière action effectuée sur une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type Destinataire ¶
type Destinataire struct { AdresseCodePays string `json:"adresseDestinataireCodePays,omitempty"` AdresseCodePostal string `json:"adresseDestinataireCodePostal,omitempty"` AdresseComplement1 string `json:"adresseDestinataireComplement1,omitempty"` AdresseComplement2 string `json:"adresseDestinataireComplement2,omitempty"` AdresseDetail string `json:"adresseDestinataireDetail,omitempty"` AdresseId int `json:"adresseDestinataireId,omitempty"` AdresseLibellePays string `json:"adresseDestinataireLibellePays,omitempty"` AdresseVille string `json:"adresseDestinataireVille,omitempty"` Code string `json:"codeDestinataire,omitempty"` CodeServiceExecutant string `json:"codeServiceExecutant,omitempty"` Etat string `json:"destinataireEtat,omitempty"` Id int `json:"idDestinataire,omitempty"` IdServiceExecutant int `json:"idServiceExecutant,omitempty"` Libelle string `json:"libelleDestinataire,omitempty"` LibelleServiceExecutant string `json:"libelleServiceExecutant,omitempty"` }
Destinataire est la structure de données représentant le destinataire d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type DestinataireParam ¶
type DestinataireParam struct { IdDestinataire int64 `json:"idDestinataire"` ListeIdServiceExecutant []int64 `json:"listeIdServiceExecutant"` RaisonSocialeStuctDmd string `json:"raisonSocialeStuctDmd"` }
DestinataireParam est la structure de données représentant les paramètres de recherche d'un destinataire. Elle est utilisée dans la structure RechercherFactureParFournisseurOptions.
type DestinataireRecherche ¶
type DestinataireRecherche struct { IdStructureCPP int64 `json:"idStructureCPP"` Siret string `json:"siret"` Nom string `json:"nomDestinataire,omitempty"` AdresseCodePostal string `json:"adresseCodePostal,omitempty"` AdresseVille string `json:"adresseVille,omitempty"` }
DestinataireRecherche est la structure de données représentant un destinataire de la liste des destinataires.
type ErreurDemandePaiement ¶
type ErreurDemandePaiement struct { IdentifiantDestinataire string `json:"identifiantDestinataire,omitempty"` IdentifiantFournisseur string `json:"identifiantFournisseur,omitempty"` LibelleErreurDP string `json:"libelleErreurDP,omitempty"` NumeroDP string `json:"numeroDP,omitempty"` }
ErreurDemandePaiement est la structure de données représentant une erreur de demande de paiement. Elle est utilisée dans la structure CompteRenduDetaille.
type ErreurTechnique ¶
type ErreurTechnique struct { CodeErreur string `json:"codeErreur,omitempty"` LibelleErreur string `json:"libelleErreur,omitempty"` NatureErreur string `json:"natureErreur,omitempty"` }
ErreurTechnique est la structure de données représentant une erreur technique. Elle est utilisée dans la structure CompteRenduDetaille.
type EtatTraitement ¶
type EtatTraitement struct {
Etat string `json:"statutPossiblePourTraitement"`
}
EtatTraitement est la structure de données représentant le statut possible pour le traitement d'une facture.
type EtatTypeDemandePaiement ¶
type EtatTypeDemandePaiement struct {
Etat string `json:"etatDemandePaiement"`
}
EtatTypeDemandePaiement est la structure de données représentant un état de demande de paiement.
type Evenement ¶
type Evenement struct { EvenementDateHeure *Datetime `json:"evenementDateHeure"` EvenementId int64 `json:"evenementId"` EvenementLibelle string `json:"evenementLibelle"` EvenementQui string `json:"evenementQui"` }
Evenement est la structure de données représentant un événement sur une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type Facture ¶
type Facture struct { CadreDeFacturation CadreDeFacturation `json:"cadreDeFacturation,omitempty"` Commentaire string `json:"commentaire,omitempty"` Destinataire Destinataire `json:"destinataire,omitempty"` Fournisseur Fournisseur `json:"fournisseur,omitempty"` IdentifiantFactureCPP int `json:"identifiantFactureCPP,omitempty"` LignesDePoste *ListeLignesDePoste `json:"lignesDePoste,omitempty"` ListeDesPiecesJointes *ListePiecesJointesFacture `json:"listeDesPiecesJointes,omitempty"` ModeDepot string `json:"modeDepot,omitempty"` MontantTotal MontantTotal `json:"montantTotal,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` PieceJointePrincipale *PieceJointePrincipale `json:"pieceJointePrincipale,omitempty"` PiecePrecedente *PiecePrecedente `json:"piecePrecedente,omitempty"` PieceSuivante *PieceSuivante `json:"pieceSuivante,omitempty"` RecapitulatifDeTva *ListeLignesRecapTVA `json:"recapitulatifDeTva,omitempty"` References References `json:"references,omitempty"` StatutFacture string `json:"statutFacture,omitempty"` }
Facture est la structure de données représentant une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type FactureParFournisseur ¶
type FactureParFournisseur struct { AffactureurCode string `json:"affactureurCode"` AffactureurRaisonSociale string `json:"affactureurRaisonSociale"` AffactureurTypeIdentifiant string `json:"affactureurTypeIdentifiant"` CodeDestinataire string `json:"codeDestinataire"` CodeFournisseur string `json:"codeFournisseur"` CodeServiceExecutant string `json:"codeServiceExecutant"` CodeServiceFournisseur string `json:"codeServiceFournisseur"` CodeValideur1 string `json:"codeValideur1"` CodeValideur2 string `json:"codeValideur2"` CommentaireEtatCourant string `json:"commentaireEtatCourant"` CoordBancairesFournisseurCleIban string `json:"coordBancairesFournisseurCleIban"` CoordBancairesFournisseurCleRib string `json:"coordBancairesFournisseurCleRib"` CoordBancairesFournisseurCodeBanque string `json:"coordBancairesFournisseurCodeBanque"` CoordBancairesFournisseurCodePays string `json:"coordBancairesFournisseurCodePays"` CoordBancairesFournisseurCompteBancaire string `json:"coordBancairesFournisseurCompteBancaire"` CoordBancairesFournisseurNomCb string `json:"coordBancairesFournisseurNomCb"` DateDepot *Date `json:"dateDepot"` DateFacture *Date `json:"dateFacture"` DateHeureEtatCourant *time.Time `json:"dateHeureEtatCourant"` DateValidation1 *Date `json:"dateValidation1"` DateValidation2 *Date `json:"dateValidation2"` DesignationDestinataire string `json:"designationDestinataire"` DesignationFournisseur string `json:"designationFournisseur"` Devise string `json:"devise"` IdDestinataire int64 `json:"idDestinataire"` IdServiceExecutant int64 `json:"idServiceExecutant"` IdentifiantFactureCPP int64 `json:"identifiantFactureCPP"` ModeDepot string `json:"modeDepot"` MontantAPayer float32 `json:"montantAPayer"` MontantHT float32 `json:"montantHT"` MontantTTC float32 `json:"montantTTC"` NomPrenomUtilisateurCreateur string `json:"nomPrenomUtilisateurCreateur"` NomServiceExecutant string `json:"nomServiceExecutant"` NomServiceFournisseur string `json:"nomServiceFournisseur"` NomValideur1 string `json:"nomValideur1"` NomValideur2 string `json:"nomValideur2"` NumeroBonCommande string `json:"numeroBonCommande"` NumeroFacture string `json:"numeroFacture"` NumeroFactureOrigine string `json:"numeroFactureOrigine"` NumeroFluxDepot string `json:"numeroFluxDepot"` NumeroMarche string `json:"numeroMarche"` PrenomValideur1 string `json:"prenomValideur1"` PrenomValideur2 string `json:"prenomValideur2"` RaisonSocialeValideur1 string `json:"raisonSocialeValideur1"` RaisonSocialeValideur2 string `json:"raisonSocialeValideur2"` RejetTraite bool `json:"rejetTraite"` Statut string `json:"statut"` Taille int64 `json:"taille"` TypeDemandePaiement string `json:"typeDemandePaiement"` TypeFacture string `json:"typeFacture"` TypeIdentifiantFournisseur TypeIdentifiant `json:"typeIdentifiantFournisseur"` TypeIdentifiantValideur1 TypeIdentifiant `json:"typeIdentifiantValideur1"` TypeIdentifiantValideur2 TypeIdentifiant `json:"typeIdentifiantValideur2"` }
FactureParFournisseur est la structure de données représentant une facture pour un fournisseur. Elle est utilisée dans la structure RechercherFactureParFournisseurResponse.
type FactureParRecipiendaire ¶
type FactureParRecipiendaire struct { CodeDestinataire string `json:"codeDestinataire,omitempty"` CodeFournisseur string `json:"codeFournisseur,omitempty"` CodeMOA string `json:"codeMOA,omitempty"` CodeMOE string `json:"codeMOE,omitempty"` CodeServiceExecutant string `json:"codeServiceExecutant,omitempty"` CodeServiceFournisseur string `json:"codeServiceFournisseur,omitempty"` CommentaireEtatCourant string `json:"commentaireEtatCourant,omitempty"` DateDepot *Date `json:"dateDepot,omitempty"` DateFacture *Date `json:"dateFacture,omitempty"` DateHeureEtatCourant *time.Time `json:"dateHeureEtatCourant,omitempty"` DesignationDestinataire string `json:"designationDestinataire,omitempty"` DesignationFournisseur string `json:"designationFournisseur,omitempty"` DesignationMOA string `json:"designationMOA,omitempty"` DesignationMOE string `json:"designationMOE,omitempty"` Devise string `json:"devise,omitempty"` FactureTelechargeeParDestinataire bool `json:"factureTelechargeeParDestinataire,omitempty"` IdDestinataire int64 `json:"idDestinataire,omitempty"` IdFacture int64 `json:"idFacture,omitempty"` IdServiceExecutant int64 `json:"idServiceExecutant,omitempty"` MontantAPayer float32 `json:"montantAPayer,omitempty"` MontantHT float32 `json:"montantHT,omitempty"` MontantTTC float32 `json:"montantTTC,omitempty"` NomServiceExecutant string `json:"nomServiceExecutant,omitempty"` NomServiceFournisseur string `json:"nomServiceFournisseur,omitempty"` NumeroBonCommande string `json:"numeroBonCommande,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` NumeroMarche string `json:"numeroMarche,omitempty"` Statut string `json:"statut,omitempty"` Taille int64 `json:"taille,omitempty"` TypeDemandePaiement string `json:"typeDemandePaiement,omitempty"` TypeFacture TypeFacture `json:"typeFacture,omitempty"` TypeFactureTravaux string `json:"typeFactureTravaux,omitempty"` TypeIdentifiantFournisseur TypeIdentifiant `json:"typeIdentifiantFournisseur,omitempty"` TypeIdentifiantMOA TypeIdentifiant `json:"typeIdentifiantMOA,omitempty"` TypeIdentifiantMOE TypeIdentifiant `json:"typeIdentifiantMOE,omitempty"` }
FactureParRecipiendaire est la structure de données représentant une facture pour un récipiendaire. Elle est utilisée dans la méthode RechercherFactureParRecipiendaire.
type FactureParValideur ¶
type FactureParValideur struct { CodeServiceExecutant string `json:"codeServiceExecutant"` CodeServiceFournisseur string `json:"codeServiceFournisseur"` CodeServiceMoa string `json:"codeServiceMoa"` CodeServiceMoe string `json:"codeServiceMoe"` DateDepot *Date `json:"dateDepot"` DateFacture *Date `json:"dateFacture"` DesignationDestinataire string `json:"designationDestinataire"` DesignationFournisseur string `json:"designationFournisseur"` DesignationMoa string `json:"designationMoa"` DesignationMoe string `json:"designationMoe"` DesignationValideur string `json:"designationValideur"` Devise string `json:"devise"` IdDestinataire int64 `json:"idDestinataire"` IdFacture int64 `json:"idFacture"` IdFournisseur int64 `json:"idFournisseur"` IdMoa int64 `json:"idMoa"` IdMoe int64 `json:"idMoe"` IdServiceExecutant int64 `json:"idServiceExecutant"` IdServiceMoa int64 `json:"idServiceMoa"` IdServiceMoe int64 `json:"idServiceMoe"` IdValideur int64 `json:"idValideur"` IdentifiantDestinataire string `json:"identifiantDestinataire"` IdentifiantFournisseur string `json:"identifiantFournisseur"` IdentifiantMoa string `json:"identifiantMoa"` IdentifiantMoe string `json:"identifiantMoe"` IdentifiantValideur string `json:"identifiantValideur"` MontantAPayer float32 `json:"montantAPayer"` MontantHT float32 `json:"montantHT"` MontantTTC float32 `json:"montantTTC"` NomServiceExecutant string `json:"nomServiceExecutant"` NomServiceFournisseur string `json:"nomServiceFournisseur"` NomServiceMoa string `json:"nomServiceMoa"` NomServiceMoe string `json:"nomServiceMoe"` NumeroEngagement string `json:"numeroEngagement"` NumeroFacture string `json:"numeroFacture"` NumeroMarche string `json:"numeroMarche"` Statut string `json:"statut"` TypeDemandePaiement string `json:"typeDemandePaiement"` TypeFacture TypeFacture `json:"typeFacture"` TypeFactureTravaux TypeIdentifiant `json:"typeFactureTravaux"` TypeIdentifiantDestinataire TypeIdentifiant `json:"typeIdentifiantDestinataire"` TypeIdentifiantFournisseur TypeIdentifiant `json:"typeIdentifiantFournisseur"` TypeIdentifiantMoa TypeIdentifiant `json:"typeIdentifiantMoa"` TypeIdentifiantMoe TypeIdentifiant `json:"typeIdentifiantMoe"` TypeIdentifiantValideur TypeIdentifiant `json:"typeIdentifiantValideur"` }
FactureParValideur est la structure de données représentant une facture pour un valideur.
type FacturesService ¶
type FacturesService service
FacturesService gère les appels à l'API Facture API docs : https://developer.aife.economie.gouv.fr/api-catalog-sandbox?filter=Factures
func (*FacturesService) CompleterFacture ¶
func (s *FacturesService) CompleterFacture(ctx context.Context, opts CompleterFactureOptions) (*CompleterFactureResponse, error)
La méthode CompleterFacture permet de modifier une facture au statut "SUSPENDUE" en ajoutant des pièces jointes et/ou en modifiant le champ "commentaire"
func (*FacturesService) ConsulterFactureParFournisseur ¶
func (s *FacturesService) ConsulterFactureParFournisseur(ctx context.Context, opts ConsulterFactureFournisseurOptions) (*ConsulterFactureResponse, error)
La méthode ConsulterFactureParFournisseur permet d'afficher les informations d'une facture précédemment émise.
func (*FacturesService) ConsulterFactureParRecipiendaire ¶
func (s *FacturesService) ConsulterFactureParRecipiendaire(ctx context.Context, opts ConsulterFactureOptions) (*ConsulterFactureResponse, error)
La méthode ConsulterFactureParRecipiendaire permet d'afficher les informations d'une facture reçue.
func (*FacturesService) ConsulterFactureParValideur ¶
func (s *FacturesService) ConsulterFactureParValideur(ctx context.Context, opts ConsulterFactureOptions) (*ConsulterFactureResponse, error)
La méthode ConsulterFactureParValideur permet à un valideur de récupérer les informations d'une facture pour la consultation.
func (*FacturesService) ConsulterHistoriqueFacture ¶
func (s *FacturesService) ConsulterHistoriqueFacture(ctx context.Context, opts ConsulterHistoriqueFactureOptions) (*ConsulterHistoriqueFactureResponse, error)
La méthode ConsulterHistoriqueFacture permet d'afficher l'historique des événements ainsi que le statut actuel d'une facture reçue, à valider ou émise.
func (*FacturesService) CorrigerValideurFacture ¶
func (s *FacturesService) CorrigerValideurFacture(ctx context.Context, opts CorrigerValideurFactureOptions) (*CorrigerValideurFactureResponse, error)
La méthode CorrigerValideurFacture permet à un fournisseur de corriger le valideur initialement renseigné sur une facture rejetée pour renseignement d'un mauvais valideur.
func (*FacturesService) DeposerFluxFacture ¶
func (s *FacturesService) DeposerFluxFacture(ctx context.Context, opts DeposerFluxFactureOptions) (*DeposerFluxFactureResponse, error)
La méthode DeposerFluxFacture permet de déposer un fichier XML ou PDF/A3 permettant de renseigner les données nécessaires à la constitution d'un flux facture.
func (*FacturesService) RechercherDemandePaiement ¶
func (s *FacturesService) RechercherDemandePaiement(ctx context.Context, opts RechercherDemandePaiementOptions) (*RechercherDemandePaiementResponse, error)
La méthode RechercherDemandePaiement permet de retourner des demandes de paiement en base archive et en base vivante pour l'utilisateur connecté en fonction de certains critères (service exposé ne fonctionnant pas sur l'espace de qualification).
func (*FacturesService) RechercherFactureParFournisseur ¶
func (s *FacturesService) RechercherFactureParFournisseur(ctx context.Context, opts RechercherFactureParFournisseurOptions) (*RechercherFactureParFournisseurResponse, error)
La méthode RechercherFactureParFournisseur permet d'afficher les factures émises correspondant aux paramètres de recherche renseignés.
func (*FacturesService) RechercherFactureParRecipiendaire ¶
func (s *FacturesService) RechercherFactureParRecipiendaire(ctx context.Context, opts RechercherFactureParRecipiendaireOptions) (*RechercherFactureParRecipiendaireResponse, error)
La méthode RechercherFactureParRecipiendaire permet d'afficher les factures reçues correspondant aux paramètres de recherche renseignés. Il est notamment possible de sélectionner des factures en fonction de l'état de la facture (téléchargée, non téléchargée).
func (*FacturesService) RechercherFactureParValideur ¶
func (s *FacturesService) RechercherFactureParValideur(ctx context.Context, opts RechercherFactureParValideurOptions) (*RechercherFactureParValideurResponse, error)
Le service rechercherFactureParValideur permet de rechercher, en tant que valideur, les factures et/ou les factures de travaux correspondant aux paramètres.
func (*FacturesService) RecupererStatutsVisiblesParValideur ¶
func (s *FacturesService) RecupererStatutsVisiblesParValideur(ctx context.Context, opts RecupererStatutsVisiblesParValideurOptions) (*RecupererStatutsVisiblesParValideurResponse, error)
La méthode RecupererStatutsFactureVisiblesParValideur permet à un valideur de récupérer la liste des statuts auxquels une facture peut être récupérée pour traitement.
func (*FacturesService) RecyclerFacture ¶
func (s *FacturesService) RecyclerFacture(ctx context.Context, opts RecyclerFactureOptions) (*RecyclerFactureResponse, error)
La méthode RecyclerFacture permet de modifier les données d'acheminement d'une facture au statut "A_Recycler"
func (*FacturesService) SoumettreFacture ¶
func (s *FacturesService) SoumettreFacture(ctx context.Context, opts SoumettreFactureOptions) (*SoumettreFactureResponse, error)
La méthode SoumettreFacture permet de soumettre une facture à la solution mutualisée-CPP 2017 en renseignant les données nécessaires à la constitution d'un flux.
func (*FacturesService) TelechargerGroupeFacture ¶
func (s *FacturesService) TelechargerGroupeFacture(ctx context.Context, opts TraiterFactureAValiderOptions) (*TelechargerGroupeFactureResponse, error)
La méthode TelechargerGroupeFacture permet de télécharger une ou plusieurs factures émises, reçues ou à valider en précisant le format de réception (XML, PDF ou ZIP) et les pièces jointes associées à ces factures. Le dossier téléchargé ne doit pas dépasser la taille maximum d'un dossier de facturation (120 Mo), quelque soit le nombre de factures téléchargées. Si le dossier récupéré dépasse cette taille, une erreur 413 sera remontée.
func (*FacturesService) TraiterFactureAValider ¶
func (s *FacturesService) TraiterFactureAValider(ctx context.Context, opts TraiterFactureAValiderOptions) (*TraiterFactureAValiderResponse, error)
La méthode traiterFactureAValider permet à un valideur de modifier le statut d'une facture à valider en renseignant le cas échéant un motif de refus.
func (*FacturesService) TraiterFactureRecue ¶
func (s *FacturesService) TraiterFactureRecue(ctx context.Context, opts TraiterFactureRecueOptions) (*TraiterFactureRecueResponse, error)
La méthode traiterFactureRecue permet de valider, rejeter ou suspendre une facture reçue. Lorsque le récipiendaire rejette ou suspend la facture, il est dans l'obligation de motiver son choix.
func (*FacturesService) TraiterFacturesRejetees ¶
func (s *FacturesService) TraiterFacturesRejetees(ctx context.Context, opts TraiterRejetOptions) (*TraiterRejetResponse, error)
La méthode traiterFacturesRejetees a pour objectif d'indiquer, pour les factures ou factures de travaux données, que leur rejet a été traité par le fournisseur
type FormatFichier ¶
type FormatFichier string
const ( FormatFichierPdf FormatFichier = "PDF" FormatFichierPivot FormatFichier = "PIVOT" )
type FormatFlux ¶
type FormatFlux struct {
FormatFlux string `json:"formatFlux,omitempty"`
}
FormatFlux est la structure de données représentant un format de flux.
type Fournisseur ¶
type Fournisseur struct { AdresseCodePays string `json:"adresseFournisseurCodePays,omitempty"` AdresseCodePostal string `json:"adresseFournisseurCodePostal,omitempty"` AdresseComplement1 string `json:"adresseFournisseurComplement1,omitempty"` AdresseComplement2 string `json:"adresseFournisseurComplement2,omitempty"` AdresseDetail string `json:"adresseFournisseurDetail,omitempty"` AdresseId int64 `json:"adresseFournisseurId,omitempty"` AdresseLibellePays string `json:"adresseFournisseurLibellePays,omitempty"` AdresseVille string `json:"adresseFournisseurVille,omitempty"` Affactureur Affactureur `json:"affactureur,omitempty"` Code string `json:"codeFournisseur,omitempty"` CodeService string `json:"codeServiceFournisseur,omitempty"` CoordBancairesBicSwift string `json:"coordBancairesBicSwift,omitempty"` CoordBancairesCodeGuichet string `json:"coordBancairesCodeGuichet,omitempty"` CoordBancairesCleIban string `json:"coordBancairesFournisseurCleIban,omitempty"` CoordBancairesCleRib string `json:"coordBancairesFournisseurCleRib,omitempty"` CoordBancairesCodeBanque string `json:"coordBancairesFournisseurCodeBanque,omitempty"` CoordBancairesCodePays string `json:"coordBancairesFournisseurCodePays,omitempty"` CoordBancairesCompteBancaire string `json:"coordBancairesFournisseurCompteBancaire,omitempty"` CoordBancairesId int64 `json:"coordBancairesFournisseurId,omitempty"` CoordBancairesLibelle string `json:"coordBancairesFournisseurLibelle,omitempty"` CoordBancairesType string `json:"coordBancairesFournisseurType,omitempty"` Designation string `json:"designationFournisseur,omitempty"` Id int64 `json:"idFournisseur,omitempty"` IdService int64 `json:"idServiceFournisseur,omitempty"` LibelleService string `json:"libelleServiceFournisseur,omitempty"` NumeroRcs string `json:"numeroRcsFournisseur,omitempty"` TypeIdentifiant TypeIdentifiant `json:"typeIdentifiantFournisseur,omitempty"` }
Fournisseur est la structure de données représentant le fournisseur d'une facture. Elle est utilisée dans les réponses des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type FournisseurParam ¶
type FournisseurParam struct { IdFournisseur int64 `json:"idFournisseur,omitempty"` ListeIdService []int64 `json:"listeIdService,omitempty"` }
FournisseurParam est la structure de données représentant les critères de recherche de factures pour un récipiendaire. Elle est utilisée dans la méthode RechercherFactureParRecipiendaire.
type HealthCheck ¶
type HealthCheck struct { Body string `json:"body,omitempty"` StatusCodeValue int `json:"statusCodeValue,omitempty"` StatusCode string `json:"statusCode,omitempty"` }
HealthCheck réprésente la réponse retournée par TransversesService.HealthCheck
type HistoAction ¶
type HistoAction struct { Code string `json:"histoActionCode"` DateHeure *Datetime `json:"histoActionDateHeure"` Id int32 `json:"histoActionId"` UtilisateurEmail string `json:"histoActionUtilisateurEmail"` UtilisateurNom string `json:"histoActionUtilisateurNom"` UtilisateurPrenom string `json:"histoActionUtilisateurPrenom"` UtilisateurTelephone string `json:"histoActionUtilisateurTelephone"` }
HistoAction est la structure de données représentant une action effectuée sur une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type HistoStatut ¶
type HistoStatut struct { Code string `json:"histoStatutCode"` Commentaire string `json:"histoStatutCommentaire"` DatePassage *Datetime `json:"histoStatutDatePassage"` Id int32 `json:"histoStatutId"` UtilisateurEmail string `json:"histoStatutUtilisateurEmail"` UtilisateurNom string `json:"histoStatutUtilisateurNom"` UtilisateurPrenom string `json:"histoStatutUtilisateurPrenom"` UtilisateurTelephone string `json:"histoStatutUtilisateurTelephone"` }
HistoStatut est la structure de données représentant l'historique des statuts d'une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type HistoriquesDesActionsUtilisateurs ¶
type HistoriquesDesActionsUtilisateurs struct { HistoAction []HistoAction `json:"histoAction"` NbResultatsParPageHistoAction int32 `json:"nbResultatsParPageHistoAction"` PageCouranteHistoAction int32 `json:"pageCouranteHistoAction"` PagesHistoAction int32 `json:"pagesHistoAction"` TotalHistoAction int32 `json:"totalHistoAction"` }
HistoriquesDesActionsUtilisateurs est la structure de données représentant l'historique des actions réalisées par les utilisateurs sur une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type HistoriquesDesEvenementsComplementaires ¶
type HistoriquesDesEvenementsComplementaires struct { Evenement []Evenement `json:"evenement"` NbResultatsParPageEvenement int32 `json:"nbResultatsParPageEvenement"` PageCouranteEvenement int32 `json:"pageCouranteEvenement"` PagesEvenement int32 `json:"pagesEvenement"` TotalEvenement int32 `json:"totalEvenement"` }
HistoriquesDesEvenementsComplementaires est la structure de données représentant l'historique des événements complémentaires sur une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type HistoriquesDesStatuts ¶
type HistoriquesDesStatuts struct { HistoStatut []HistoStatut `json:"histoStatut"` NbResultatsParPageHistoStatut int32 `json:"nbResultatsParPageHistoStatut"` PageCouranteHistoStatut int32 `json:"pageCouranteHistoStatut"` PagesHistoStatut int32 `json:"pagesHistoStatut"` TotalHistoStatut int32 `json:"totalHistoStatut"` }
HistoriquesDesStatuts est la structure de données représentant l'historique des statuts d'une facture. Elle est utilisée dans la structure ConsulterHistoriqueFacture.
type IdFacture ¶
type IdFacture struct {
IdFacture int64 `json:"idFacture"`
}
IdFacture est la structure de données représentant l'identifiant d'une facture.
type InformationGeneralesStructure ¶
type InformationGeneralesStructure struct { DateExpirationMotPasseCompteTech *time.Time `json:"dateExpirationMotPasseCompteTech"` Email string `json:"emailStructure"` EstValideurDeleguee bool `json:"estValideurDeleguee"` IdCPP int64 `json:"idStructureCPP"` IdOrigine int64 `json:"idStructureOrigine"` Identifiant string `json:"identifiantStructure"` Libelle string `json:"libelleStructure"` ListeStructureDupliquees []StructureDupliquee `json:"listeStructureDupliquees"` Nom string `json:"nomStructure"` NumeroRcs string `json:"numeroRcsStructure"` NumeroTVA string `json:"numeroTVA"` Prenom string `json:"prenomStructure"` RaisonSociale string `json:"raisonSocialeStructure"` PriveePublique string `json:"structurePriveePublique"` TypeIdentifiant string `json:"typeIdentifiantStructure"` }
InformationGeneralesStructure est la structure de données représentant les informations générales d'une structure.
type InformationsGeneralesService ¶
type InformationsGeneralesService struct { Code string `json:"codeService"` Description string `json:"descriptionService"` Nom string `json:"nomService"` }
InformationsGeneralesService est la structure de données représentant les informations générales d'un service.
type InformationsSIRETResponse ¶
type InformationsSIRETResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Adresse string `json:"adresse,omitempty"` CategorieEntreprise string `json:"categorieEntreprise,omitempty"` CategorieJuridique string `json:"categorieJuridique,omitempty"` Civilite string `json:"civilite,omitempty"` DateCreationEntreprise string `json:"dateCreationEntreprise,omitempty"` DateCreationEtablissement string `json:"dateCreationEtablissement,omitempty"` DateReactivationEtablissement string `json:"dateReactivationEtablissement,omitempty"` EstActif bool `json:"estActif,omitempty"` LocalisationSiege string `json:"localisationSiege,omitempty"` NonDiffusibleInsee bool `json:"nonDiffusibleInsee,omitempty"` NumeroInterneClassement string `json:"numeroInterneClassement,omitempty"` RaisonSociale string `json:"raisonSociale,omitempty"` Siege string `json:"siege,omitempty"` Siren string `json:"siren,omitempty"` Siret string `json:"siret,omitempty"` SiretPredecesseurSuccesseur string `json:"siretPredecesseurSuccesseur,omitempty"` }
InformationsSIRETResponse est la structure de données représentant la réponse de la méthode ConsulterInformationsSIRET.
type LignePoste ¶
type LignePoste struct { Denomination string `json:"lignePosteDenomination,omitempty"` MontantHtApresRemise float32 `json:"lignePosteMontantHtApresRemise,omitempty"` MontantRemiseHT float32 `json:"lignePosteMontantRemiseHT,omitempty"` MontantTtcApresRemise float32 `json:"lignePosteMontantTtcApresRemise,omitempty"` MontantTva float32 `json:"lignePosteMontantTva,omitempty"` MontantUnitaireHT float32 `json:"lignePosteMontantUnitaireHT,omitempty"` Numero int `json:"lignePosteNumero,omitempty"` Quantite float32 `json:"lignePosteQuantite,omitempty"` Reference string `json:"lignePosteReference,omitempty"` TauxTva string `json:"lignePosteTauxTva,omitempty"` TauxTvaManuel float32 `json:"lignePosteTauxTvaManuel,omitempty"` UniteCode int `json:"lignePosteUniteCode,omitempty"` UniteLibelle string `json:"lignePosteUniteLibelle,omitempty"` }
LignePoste est la structure de données représentant une ligne de poste d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type LigneTva ¶
type LigneTva struct { MontantBaseHtParTaux float32 `json:"ligneTvaMontantBaseHtParTaux,omitempty"` MontantTvaParTaux float32 `json:"ligneTvaMontantTvaParTaux,omitempty"` TauxManuel float32 `json:"ligneTvaTauxManuel,omitempty"` TauxRefCode string `json:"ligneTvaTauxRefCode,omitempty"` TauxRefId int `json:"ligneTvaTauxRefId,omitempty"` TauxRefLibelle string `json:"ligneTvaTauxRefLibelle,omitempty"` TauxRefValeur float32 `json:"ligneTvaTauxRefValeur,omitempty"` }
LigneTva est la structure de données représentant une ligne de TVA d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type ListeCadresFacturation ¶
type ListeCadresFacturation struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Cadres []CadreFacturation `json:"listeCadreFacturation"` }
ListeCadresFacturation réprésente la réponse retournée par TransversesService.RecupererCadresFacturation
type ListeCategoriesSollicitationOptions ¶
type ListeCategoriesSollicitationOptions struct { Code string `json:"codeCategorie,omitempty"` EstActif bool `json:"estActif,omitempty"` Libelle string `json:"libelleCategorie,omitempty"` Pagination *PaginationOptions `json:"pagination,omitempty"` }
ListeCategoriesSollicitationOptions est la structure de données utlisée pour appeler la méthode RechercherCategoriesSollicitation.
type ListeCategoriesSollicitationResponse ¶
type ListeCategoriesSollicitationResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Categories []CategorieSollicitation `json:"listeCategories"` Pagination *PaginationResponse `json:"parametresRetour"` }
ListeCategoriesSollicitationResponse est la structure de données représentant la réponse de la méthode RechercherCategoriesSollicitation.
type ListeCoordonneesBancaires ¶
type ListeCoordonneesBancaires struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Coordonnees []CoordonneeBancaire `json:"listeCoordonneeBancaire"` }
ListeCoordonnesBancaires réprésente la réponse retournée par TransversesService.RecupererCoordonneesBancairesValides
type ListeCoordonneesBancairesOptions ¶
type ListeCoordonneesBancairesOptions struct {
IdStructure int64 `json:"idStructure,omitempty"`
}
ListeCoordonneesBancairesOptions représente les paramètres de la requête TransversesService.RecupererCoordonneesBancairesValides
type ListeDestinatairesOptions ¶
type ListeDestinatairesOptions struct { Identifiant string `json:"identifiant,omitempty"` NomVilleCodePostal string `json:"nomVilleCodePostal,omitempty"` TypeStructure string `json:"typeStructure,omitempty"` Pagination *PaginationOptions `json:"parametresRecherche,omitempty"` }
ListeDestinatairesOptions est la structure de données utilisée pour appeler la méthode RechercherDestinataires.
type ListeDestinatairesResponse ¶
type ListeDestinatairesResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Destinataires []DestinataireRecherche `json:"listeDestinataires"` Pagination PaginationResponse `json:"parametresRetour"` }
ListeDestinatairesResponse est la structure de données représentant la réponse de la méthode RechercherDestinataires.
type ListeDevises ¶
type ListeDevises struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Devises []Devise `json:"listeDevises"` }
ListeDevises réprésente la réponse retournée par TransversesService.RecupererDevises
type ListeEtatsTraitementOptions ¶
type ListeEtatsTraitementOptions struct {
EtatCourant string `json:"statutCourant"`
}
ListeEtatsTraitementOptions est la structure de données utlisée pour appeler la méthode RecupererEtatsPossiblesPourTraitement.
type ListeEtatsTraitementResponse ¶
type ListeEtatsTraitementResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Etats []EtatTraitement `json:"listeStatutsPossiblesPourTraitement"` }
ListeEtatsTraitementResponse est la structure de données représentant la réponse de la méthode RecupererEtatsPossiblesPourTraitement.
type ListeEtatsTypeDemandePaiementOptions ¶
type ListeEtatsTypeDemandePaiementOptions struct {
TypeDemandePaiement string `json:"typeDemandePaiement,omitempty"`
}
ListeEtatsTypeDemandePaiementOptions est la structure de données utlisée pour appeler la méthode RecupererEtatParTypeDemandePaiement.
type ListeEtatsTypeDemandePaiementResponse ¶
type ListeEtatsTypeDemandePaiementResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Etats []EtatTypeDemandePaiement `json:"listeEtatDemandePaiement"` }
ListeEtatsTypeDemandePaiementResponse est la structure de données représentant la réponse de la méthode RecupererEtatParTypeDemandePaiement.
type ListeFormatsFluxResponse ¶
type ListeFormatsFluxResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Formats []FormatFlux `json:"listeFormatFlux"` }
ListeFormatsFluxResponse est la structure de données représentant la réponse de la méthode RecupererFormatFlux.
type ListeLignesDePoste ¶
type ListeLignesDePoste struct { Lignes []LignePoste `json:"lignePoste,omitempty"` NbResultatsParPage int64 `json:"nbResultatsParPageLignesPoste,omitempty"` PageCourante int64 `json:"pageCouranteLignesPoste,omitempty"` Pages int64 `json:"pagesLignesPoste,omitempty"` Total int64 `json:"totalLignesPoste,omitempty"` }
ListeLignesDePoste est la structure de données représentant la liste des lignes de poste d'une facture. Elle est utilisée dans les réponses des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type ListeLignesRecapTVA ¶
type ListeLignesRecapTVA struct { Lignes []LigneTva `json:"ligneTva,omitempty"` NbResultatsParPage int64 `json:"nbResultatsParPageLignesRecapitulativesTVA,omitempty"` PageCourante int64 `json:"pageCouranteLignesRecapitulativesTVA,omitempty"` Pages int64 `json:"pagesLignesRecapitulativesTVA,omitempty"` Total int64 `json:"totalLignesRecapitulativesTVA,omitempty"` }
ListeLignesRecapTVA est la structure de données représentant la liste des lignes de récapitulatif de TVA d'une facture. Elle est utilisée dans les réponses des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type ListeModesDepot ¶
type ListeModesDepot struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` ModesDepot []ModeDepot `json:"listeModeDepot"` }
ListeModesDepot réprésente la réponse retournée par TransversesService.RecupererModesDepot
type ListeModesReglement ¶
type ListeModesReglement struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Modes []ModeReglement `json:"listeModePaiement"` }
ListeModesReglement réprésente la réponse retournée par TransversesService.RecupererModesReglement
type ListeMotifsExonerationTvaResponse ¶
type ListeMotifsExonerationTvaResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Motifs []MotifExonerationTva `json:"listeMotifsExonerationTva"` }
ListeMotifsExonerationTvaResponse est la structure de données représentant la réponse de la méthode RecupererMotifsExonerationTva.
type ListeMotifsRefusFactureAValider ¶
type ListeMotifsRefusFactureAValider struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Motifs []MotifRefus `json:"listeMotifRefusFactureAValider"` }
ListeMotifsRefusFactureAValider réprésente la réponse retournée par TransversesService.RecupererMotifsRefusFactureAValider
type ListeMotifsRefusFactureAValiderOptions ¶
type ListeMotifsRefusFactureAValiderOptions struct {
CodeCadreFacturation string `json:"codeCadreFacturationAValider,omitempty"`
}
ListeMotifsRefusFactureAValiderOptions représente les paramètres de la requête TransversesService.RecupererMotifsRefusFactureAValider
type ListePays ¶
type ListePays struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Pays []Pays `json:"listePays"` }
ListePays réprésente la réponse retournée par TransversesService.RecupererPays
type ListePiecesJointesFacture ¶
type ListePiecesJointesFacture struct { PiecesJointes []PieceJointeFacture `json:"pieceJointe,omitempty"` NbResultatsParPage int64 `json:"nbResultatsParPageListePiecesJointe,omitempty"` PageCourante int64 `json:"pageCouranteListePiecesJointe,omitempty"` Pages int64 `json:"pagesListePiecesJointe,omitempty"` Total int64 `json:"totalListePiecesJointe,omitempty"` }
ListePiecesJointesFacture est la structure de données représentant la liste des pièces jointes d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type ListePiecesJointesMonCompteOptions ¶
type ListePiecesJointesMonCompteOptions struct { CodeLangue CodeLangue `json:"codeLangue,omitempty"` PieceJointeDesignation string `json:"pieceJointeDesignation,omitempty"` PieceJointeTypeId int64 `json:"pieceJointeTypeId"` Pagination *PaginationOptions `json:"parametresRecherche,omitempty"` }
ListePiecesJointesMonCompteOptions est la structure de données utilisée pour appeler la méthode RechercherPiecesJointesMonCompte.
type ListePiecesJointesMonCompteResponse ¶
type ListePiecesJointesMonCompteResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` PiecesJointes []PieceJointeMonCompte `json:"listePiecesJointes,omitempty"` Pagination *PaginationResponse `json:"parametresRetour,omitempty"` }
ListePiecesJointesMonCompteResponse est la structure de données représentant la réponse de la méthode RechercherPiecesJointesMonCompte.
type ListePiecesJointesStructureOptions ¶
type ListePiecesJointesStructureOptions struct { CodeLangue CodeLangue `json:"codeLangue,omitempty"` IdStructureCPP int64 `json:"idStructureCPP"` PieceJointeDesignation string `json:"pieceJointeDesignation,omitempty"` PieceJointeTypeId int64 `json:"pieceJointeTypeId,omitempty"` Pagination *PaginationOptions `json:"parametresRecherche,omitempty"` }
ListePiecesJointesStructureOptions est la structure de données représentant les options de la méthode RechercherPiecesJointesStructure.
type ListePiecesJointesStructureResponse ¶
type ListePiecesJointesStructureResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` PiecesJointes []PieceJointeStructure `json:"listePiecesJointes,omitempty"` Pagination *PaginationResponse `json:"parametresRetour,omitempty"` }
SupprimerPieceOptions est la structure de données représentant la réponse de la méthode RechercherPiecesJointesStructure.
type ListeRattachementsServicesUtilisateurOptions ¶
type ListeRattachementsServicesUtilisateurOptions struct { AdresseEmailConnexionUtilisateur string `json:"adresseEmailConnexionUtilisateur"` IdStructure int64 `json:"idStructure"` IdUtilisateur int64 `json:"idUtilisateur"` IdentifiantStructure string `json:"identifiantStructure"` Pagination *PaginationOptions `json:"parametresListerRattachementsStructureUtilisateur"` TypeIdentifiantStructure string `json:"typeIdentifiantStructure"` }
ListeRattachementsServicesUtilisateurOptions est la structure de données utilisée pour appeler la méthode ListerRattachementsServicesUtilisateur.
type ListeRattachementsServicesUtilisateurResponse ¶
type ListeRattachementsServicesUtilisateurResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` DesignationStructure string `json:"designationStructure"` IdStructure int64 `json:"idStructure"` IdentifiantStructure string `json:"identifiantStructure"` Rattachements []RattachementServiceUtilisateur `json:"listeServices"` Pagination *PaginationResponse `json:"parametresRetour"` PremierService bool `json:"premierService"` }
ListeRattachementsServicesUtilisateurResponse est la structure de données représentant la réponse de la méthode ListerRattachementsServicesUtilisateur.
type ListeRattachementsUtilisateurOptions ¶
type ListeRattachementsUtilisateurOptions struct {
Pagination *PaginationOptions `json:"parametresRecherche"`
}
ListeRattachementsUtilisateurOptions est la structure de données utlisée pour appeler la méthode RecupererRattachementsUtilisateur.
type ListeRattachementsUtilisateurResponse ¶
type ListeRattachementsUtilisateurResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Rattachements []RattachementStructure `json:"listeStructureRattachement"` Pagination *PaginationResponse `json:"parametresRetour"` }
ListeRattachementsUtilisateurResponse est la structure de données réprésentant la réponse de la méthode RecupererRattachementsUtilisateur.
type ListeSousCategoriesSollicitationOptions ¶
type ListeSousCategoriesSollicitationOptions struct { Code string `json:"code,omitempty"` EstActif bool `json:"estActif,omitempty"` IdTechniqueCategorie int64 `json:"idTechniqueCategorie,omitempty"` Libelle string `json:"libelle,omitempty"` PaginationOptions *PaginationOptions `json:"pagination,omitempty"` }
ListeSousCategoriesSollicitationOptions est la structure de données utlisée pour appeler la méthode RechercherSousCategoriesSollicitation.
type ListeSousCategoriesSollicitationResponse ¶
type ListeSousCategoriesSollicitationResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` SousCategories []SousCategoriesSolliciation `json:"listeSousCategories"` Pagination *PaginationResponse `json:"parametresRetour"` }
ListeSousCategoriesSollicitationResponse est la structure de données représentant la réponse de la méthode RechercherSousCategoriesSollicitation.
type ListeStructuresActivesResponse ¶
type ListeStructuresActivesResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Structures []StructureActive `json:"listeStructures"` }
ListeStructuresActivesResponse est la structure de données représentant la réponse de la méthode RecupererStructuresActives.
type ListeTauxTvaResponse ¶
type ListeTauxTvaResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Taux []TauxTva `json:"listeTauxTva"` }
ListeTauxTvaResponse est la structure de données représentant la réponse de la méthode RecupererTauxTva.
type ListeTypesDemandePaiementResponse ¶
type ListeTypesDemandePaiementResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Types []TypeDemandePaiement `json:"listeTypeDemandePaiement"` }
ListeTypesDemandePaiementResponse est la structure de données représentant la réponse de la méthode RecupererTypesDemandePaiement.
type ListeTypesFactureTravauxResponse ¶
type ListeTypesFactureTravauxResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Types []TypeFactureTravaux `json:"listeTypeFactureTravaux"` }
ListeTypesFactureTravauxResponse est la structure de données représentant la réponse de la méthode RecupererTypesFactureTravaux.
type ListeTypesIdentifiantsStructureResponse ¶
type ListeTypesIdentifiantsStructureResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Types []TypeIdentifiantStructure `json:"listeTypeIdentifiant"` }
ListeTypesIdentifiantsStructureResponse est la structure de données représentant la réponse de la méthode RecupererTypesIdentifiantsStructure.
type ListeTypesPieceJointeOptions ¶
type ListeTypesPieceJointeOptions struct { CodeLangue CodeLangue `json:"codeLangue,omitempty"` TypeObjet TypeObjet `json:"typeObjet,omitempty"` }
ListeTypesPieceJointeOptions est la structure de données représentant les options de la méthode RecupererTypesPieceJointe.
type ListeTypesPieceJointeResponse ¶
type ListeTypesPieceJointeResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Types []TypePieceJointe `json:"listeTypePieceJointe"` }
ListeTypesPieceJointeResponse est la structure de données représentant la réponse de la méthode RecupererTypesPieceJointe.
type ModeDepot ¶
type ModeDepot struct {
ModeDepot string `json:"modeDepot"`
}
ModeDepot représente un mode de dépôt ou de saisie d'une facture
type ModeReglement ¶
type ModeReglement struct {
ModeReglement string `json:"modePaiement"`
}
ModeReglement représente un mode de réglement
type MontantTotal ¶
type MontantTotal struct { MontantAPayer float32 `json:"montantAPayer,omitempty"` MontantHtTotal float32 `json:"montantHtTotal,omitempty"` MontantRemiseGlobaleTTC float32 `json:"montantRemiseGlobaleTTC,omitempty"` MontantTVA float32 `json:"montantTVA,omitempty"` MontantTtcAvantRemiseGlobalTTC float32 `json:"montantTtcAvantRemiseGlobalTTC,omitempty"` MontantTtcTotal float32 `json:"montantTtcTotal,omitempty"` MotifRemiseGlobaleTTC string `json:"motifRemiseGlobaleTTC,omitempty"` }
MontantTotal est la structure de données représentant les montants totaux d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type MotifExonerationTva ¶
type MotifExonerationTva struct { Code string `json:"codeMotifExonerationTva"` Libelle string `json:"libelleMotifExonerationTva"` }
MotifExonerationTva est la structure de données représentant un motif d'exonération de TVA.
type MotifRefus ¶
type MotifRefus struct { Id int64 `json:"idMotif"` Code string `json:"codeMotif"` Libelle string `json:"libelleMotif"` }
MotifRefus représente un motif de refus de facture
type ObjetPJ ¶
type ObjetPJ string
ObjetPJ est l'ojet d'une pièce jointe.
const ( ObjetPJDemandePaiement ObjetPJ = "DEMANDE_PAIEMENT" ObjetPJEngagementJuridique ObjetPJ = "ENGAGEMENT_JURIDIQUE" ObjetPJSollicitation ObjetPJ = "SOLLICITATION" ObjetPJStructurePieceJointe ObjetPJ = "STRUCTURE_PIECEJOINTE" ObjetPJStructureMandat ObjetPJ = "STRUCTURE_MANDAT" ObjetPJStructureCoordonneeBancaire ObjetPJ = "STRUCTURE_COORDONNEE_BANCAIRE" ObjetPJUtilisateur ObjetPJ = "UTILISATEUR" )
type PaginationHistoActionsUtilisateursOptions ¶
type PaginationHistoActionsUtilisateursOptions struct { NbResultatsParPageListeHistoAction int `json:"nbResultatsParPageListeHistoAction"` PageResultatDemandeeListeHistoAction int `json:"pageResultatDemandeeListeHistoAction"` TriColonneListeHistoAction string `json:"triColonneListeHistoAction"` TriSensListeHistoAction string `json:"triSensListeHistoAction"` }
type PaginationHistoEvenementsComplementairesOptions ¶
type PaginationHistoEvenementsComplementairesOptions struct { NbResultatsParPageListeHistoEvenement int `json:"nbResultatsParPageListeHistoEvenement"` PageResultatDemandeeListeHistoEvenement int `json:"pageResultatDemandeeListeHistoEvenement"` TriColonneListeHistoEvenement string `json:"triColonneListeHistoEvenement"` TriSensListeHistoEvenement string `json:"triSensListeHistoEvenement"` }
type PaginationHistoStatutsOptions ¶
type PaginationHistoStatutsOptions struct { NbResultatsParPageListeHistoStatut int `json:"nbResultatsParPageListeHistoStatut"` PageResultatDemandeeListeHistoStatut int `json:"pageResultatDemandeeListeHistoStatut"` TriColonneListeHistoStatut string `json:"triColonneListeHistoStatut"` TriSensListeHistoStatut string `json:"triSensListeHistoStatut"` }
type PaginationLignesPosteOptions ¶
type PaginationLignesPosteOptions struct { NbResultatsParPage int `json:"nbResultatsParPageLignesPoste,omitempty"` PageResultatDemandee int `json:"pageResultatDemandeeLignesPoste,omitempty"` TriColonne string `json:"triColonneListeLignesPoste,omitempty"` TriSens TriSens `json:"triSensListeLignesPoste,omitempty"` }
type PaginationLignesRecapTVAOptions ¶
type PaginationLignesRecapTVAOptions struct { NbResultatsParPage int `json:"nbResultatsParPageListeListeRecapitulatifTVA,omitempty"` PageResultatDemandee int `json:"pageResultatDemandeeListeRecapitulatifTVA,omitempty"` TriColonne string `json:"triColonneListeRecapitulatifTVA,omitempty"` TriSens TriSens `json:"triSensListeRecapitulatifTVA,omitempty"` }
type PaginationOptions ¶
type PaginationPiecesJointesOptions ¶
type PaginationPiecesJointesOptions struct { NbResultatsParPage int `json:"nbResultatsParPageListePieceJointe,omitempty"` PageResultatDemandee int `json:"pageResultatDemandeeListePieceJointe,omitempty"` TriColonne string `json:"triColonneListePiecesJointes,omitempty"` TriSens TriSens `json:"triSensListePiecesJointes,omitempty"` }
type PaginationResponse ¶
type ParametrageService ¶
type ParametrageService struct { DateCreation *Datetime `json:"dateCreation"` DateDebutValidite *Datetime `json:"dateDebutValidite"` DateFinValidite *Datetime `json:"dateFinValidite"` DateModification *Datetime `json:"dateModification"` MiseEnPaiement bool `json:"miseEnPaiement"` NumeroEngagement bool `json:"numeroEngagement"` }
ParametrageService est la structure de données représentant les paramètres d'un service.
type ParametrageStructure ¶
type ParametrageStructure struct { CodeServiceDoitEtreRenseigne bool `json:"codeServiceDoitEtreRenseigne"` ConnexionEDI bool `json:"connexionEDI"` EstMoaUniquement bool `json:"estMoaUniquement"` EstValideurDelegue bool `json:"estValideurDelegue"` GestionNumeroEJOuCodeService bool `json:"gestionNumeroEJOuCodeService"` GetaMoa bool `json:"getaMoa"` NonDiffusibleInsee bool `json:"nonDiffusibleInsee"` NumeroEJDoitEtreRenseigne bool `json:"numeroEJDoitEtreRenseigne"` RecevoirDonneesViaEDI bool `json:"recevoirDonneesViaEDI"` StatutMiseEnPaiementNestPasRemonte bool `json:"statutMiseEnPaiementNestPasRemonte"` }
ParametrageStructure est la structure de données représentant les paramètres d'une structure.
type PieceJointe ¶
type PieceJointe struct {
PieceJointe string `json:"pieceJointe"` // base64 encoded
}
PieceJointe est la structure de données représentant une pièce jointe.
type PieceJointeComplementaire ¶
type PieceJointeComplementaire struct { Designation string `json:"pieceJointeComplementaireDesignation,omitempty"` Id int64 `json:"pieceJointeComplementaireId,omitempty"` IdLiaison int64 `json:"pieceJointeComplementaireIdLiaison,omitempty"` NumeroLigneFacture int64 `json:"pieceJointeComplementaireNumeroLigneFacture,omitempty"` Type string `json:"pieceJointeComplementaireType,omitempty"` }
PieceJointeComplementaire est la structure de données réprésentant une pièce jointe complémentaire d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type PieceJointeFacture ¶
type PieceJointeFacture struct { Designation string `json:"pieceJointeDesignation,omitempty"` Extension string `json:"pieceJointeExtension,omitempty"` Id int `json:"pieceJointeId,omitempty"` IdLiaison int `json:"pieceJointeIdLiaison,omitempty"` NumeroLigneFacture int `json:"pieceJointeNumeroLigneFacture,omitempty"` TypeCode string `json:"pieceJointeTypeCode,omitempty"` TypeLibelle string `json:"pieceJointeTypeLibelle,omitempty"` }
PieceJointeFacture est la structure de données représentant une pièce jointe d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type PieceJointeMonCompte ¶
type PieceJointeMonCompte struct { Designation string `json:"pieceJointeDesignation"` Extension string `json:"pieceJointeExtension"` Id int64 `json:"pieceJointeId"` ObjetId int64 `json:"pieceJointeObjetId"` TypeCode string `json:"pieceJointeTypeCode"` TypeLibelle string `json:"pieceJointeTypeLibelle"` IdUtilisateur int64 `json:"pieceJointeUtilisateurId"` }
PieceJointeMonCompte est la structure de données représentant une pièce jointe rattachée à un compte utilisateur.
type PieceJointePrincipale ¶
type PieceJointePrincipale struct { IdLiaison int `json:"idLiaisonPieceJointePrincipale,omitempty"` Id int `json:"idPieceJointePrincipale,omitempty"` }
PieceJointePrincipale est la structure de données représentant la pièce jointe principale d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type PieceJointeStructure ¶
type PieceJointeStructure struct { Designation string `json:"pieceJointeDesignation"` Extension string `json:"pieceJointeExtension"` Id int64 `json:"pieceJointeId"` ObjetId int64 `json:"pieceJointeObjetId"` StructureCode string `json:"pieceJointeStructureCode"` StructureId int64 `json:"pieceJointeStructureId"` StructureRaisonSociale string `json:"pieceJointeStructureRaisonSociale"` TypeCode string `json:"pieceJointeTypeCode"` TypeLibelle string `json:"pieceJointeTypeLibelle"` IdUtilisateur int64 `json:"pieceJointeUtilisateurId"` }
PieceJointeStructure est la structure de données représentant une pièce jointe rattachée à une structure.
type PiecePrecedente ¶
type PiecePrecedente struct { CadreFacturation string `json:"cadreFacturationPiecePrecedente,omitempty"` CodeServiceExecutant string `json:"codeServiceExecutantPiecePrecedente,omitempty"` IdDestinataire int `json:"idDestinatairePiecePrecedente,omitempty"` Id int `json:"idPiecePrecedente,omitempty"` IdServiceExecutant int `json:"idServiceExecutantPiecePrecedente,omitempty"` IdentifiantDestinataire string `json:"identifiantDestinatairePiecePrecedente,omitempty"` NomServiceExecutant string `json:"nomServiceExecutantPiecePrecedente,omitempty"` Numero string `json:"numeroPiecePrecedente,omitempty"` RaisonSocialeDestinataire string `json:"raisonSocialeDestinatairePiecePrecedente,omitempty"` }
PiecePrecedente est la structure de données représentant la pièce précédente d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type PieceSuivante ¶
type PieceSuivante struct { CadreFacturation string `json:"cadreFacturationPieceSuivante,omitempty"` Id int `json:"idPieceSuivante,omitempty"` Numero string `json:"numeroPieceSuivante,omitempty"` }
PieceSuivante est la structure de données représentant la pièce suivante d'une facture. Elle est utilisée dans la réponse des méthodes ConsulterFactureParRecipiendaire, ConsulterFactureParValideur et ConsulterFactureParFournisseur.
type RattachementService ¶
type RattachementService struct { CodeService string `json:"codeService"` DateDbtService *Datetime `json:"dateDbtService"` DateFinService *Datetime `json:"dateFinService"` EstActif bool `json:"estActif"` IdRattachementService int `json:"idRattachementService"` IdService int `json:"idService"` LibelleService string `json:"libelleService"` StatutRattachementService string `json:"statutRattachementService"` StatutService string `json:"statutService"` }
RattachementService est la structure de données représentant un rattachement à un service. Elle est utilisée dans la réponse de la méthode RecupererRattachementsUtilisateur.
type RattachementServiceUtilisateur ¶
type RattachementServiceUtilisateur struct { CodeService string `json:"codeService"` Commentaire string `json:"commentaire"` DateDebut *time.Time `json:"dateDebut"` DateFin *time.Time `json:"dateFin"` IdRattachement int64 `json:"idRattachement"` IdService int64 `json:"idService"` NomService string `json:"nomService"` StatutRattachement string `json:"statutRattachement"` }
RattachementServiceUtilisateur est la structure de données représentant un rattachement d'un utilisateur à un service.
type RattachementStructure ¶
type RattachementStructure struct { DesignationStructure string `json:"designationStructure"` IdRattachementStructure int64 `json:"idRattachementStructure"` IdStructure int64 `json:"idStructure"` IdentifiantStructure string `json:"identifiantStructure"` ServicesRattaches []RattachementService `json:"listeServicesRattache"` RoleUtilisateur string `json:"roleUtilisateur"` StatutRattachementStructure string `json:"statutRattachementStructure"` StatutUtilisateur string `json:"statutUtilisateur"` TypeIdentifiantStructure string `json:"typeIdentifiantStructure"` }
RattachementStructure est la structure de données représentant un rattachement à une structure. Elle est utilisée dans la réponse de la méthode RecupererRattachementsUtilisateur.
type RechercherDemandePaiementOptions ¶
type RechercherDemandePaiementOptions struct { CadreFacturation CadreFac `json:"cadreFacturation,omitempty"` // 2 value possible : "DEMANDE_PAIEMENT" or "DP_ARCHIVE" DpOuDpArchive string `json:"dpOuDpArchive,omitempty"` IdServiceDestinataire int64 `json:"idServiceDestinataire,omitempty"` IdServiceFournisseur int64 `json:"idServiceFournisseur,omitempty"` IdServiceMoa int64 `json:"idServiceMoa,omitempty"` IdServiceMoe int64 `json:"idServiceMoe,omitempty"` MontantAPayerMax float32 `json:"montantAPayerMax,omitempty"` MontantAPayerMin float32 `json:"montantAPayerMin,omitempty"` MontantHTMax float32 `json:"montantHTMax,omitempty"` MontantHTMin float32 `json:"montantHTMin,omitempty"` MontantTTCMax float32 `json:"montantTTCMax,omitempty"` MontantTTCMin float32 `json:"montantTTCMin,omitempty"` NumeroBonCommande string `json:"numeroBonCommande,omitempty"` NumeroDossierFacturation string `json:"numeroDossierFacturation,omitempty"` NumeroDpMandat string `json:"numeroDpMandat,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` NumeroFactureMemoire string `json:"numeroFactureMemoire,omitempty"` NumeroFactureOrigine string `json:"numeroFactureOrigine,omitempty"` NumeroMarche string `json:"numeroMarche,omitempty"` PeriodeDateDepotAu *Date `json:"periodeDateDepotAu,omitempty"` PeriodeDateDepotDu *Date `json:"periodeDateDepotDu,omitempty"` PeriodeDateFournisseurAu *Date `json:"periodeDateFournisseurAu,omitempty"` PeriodeDateFournisseurDu *Date `json:"periodeDateFournisseurDu,omitempty"` PeriodeDateHeureEtatCourantAu *time.Time `json:"periodeDateHeureEtatCourantAu,omitempty"` PeriodeDateHeureEtatCourantDu *time.Time `json:"periodeDateHeureEtatCourantDu,omitempty"` RechercheSirenDestinataire bool `json:"rechercheSirenDestinataire,omitempty"` RechercheSirenFournisseur bool `json:"rechercheSirenFournisseur,omitempty"` RoleUtilisateur RoleUtilisateur `json:"roleUtilisateur,omitempty"` StatutCourant string `json:"statutCourant,omitempty"` TypeDemandePaiement string `json:"typeDemandePaiement,omitempty"` TypeFacture TypeFacture `json:"typeFacture,omitempty"` // Values available using Transverses.RecupererTypesFactureTravaux() TypeFactureTravaux string `json:"typeFactureTravaux,omitempty"` StructureDestinataire *StructureDestinataireParam `json:"structureDestinataire,omitempty"` StructureFournisseur *StructureFournisseurParam `json:"structureFournisseur,omitempty"` StructureMoa *StructureMoaParam `json:"structureMoa,omitempty"` StructureMoe *StructureMoeParam `json:"structureMoe,omitempty"` StructureValideur *StructureValideurParam `json:"structureValideur,omitempty"` }
RechercherDemandePaiementOptions est la structure de données utilisée pour appeler les méthodes ConsulterFactureParRecipiendaire et ConsulterFactureParValideur.
type RechercherDemandePaiementResponse ¶
type RechercherDemandePaiementResponse struct { CodeRetour int `json:"codeRetour,omitempty"` Libelle string `json:"libelle,omitempty"` DemandesPaiement *[]DemandePaiement `json:"listeDemandePaiement,omitempty"` }
RechercherDemandePaiementResponse est la structure de données représentant la réponse de la méthode RechercherDemandePaiement.
type RechercherFactureParFournisseurOptions ¶
type RechercherFactureParFournisseurOptions struct { CadreFacturation CadreDeFacturation `json:"cadreFacturation"` CoordonneeBancaire int64 `json:"coordonneeBancaire"` IdFournisseur int64 `json:"idFournisseur"` IdServiceFournisseur int64 `json:"idServiceFournisseur"` IdStructureValideur int64 `json:"idStructureValideur"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant"` IdUtilisateurCreateur []int64 `json:"idUtilisateurCreateur"` ListeDestinataire []DestinataireParam `json:"listeDestinataire"` ModeDepot string `json:"modeDepot"` MontantAPayerMax float32 `json:"montantApayerMax"` MontantAPayerMin float32 `json:"montantApayerMin"` MontantHTMax float32 `json:"montantHTMax"` MontantHTMin float32 `json:"montantHTMin"` MontantTTCMax float32 `json:"montantTTCMax"` MontantTTCMin float32 `json:"montantTTCMin"` NumeroBonCommande string `json:"numeroBonCommande"` NumeroFacture string `json:"numeroFacture"` NumeroFactureOrigine string `json:"numeroFactureOrigine"` NumeroFluxDepot string `json:"numeroFluxDepot"` NumeroMarche string `json:"numeroMarche"` PeriodeDateDepotAu string `json:"periodeDateDepotAu"` PeriodeDateDepotDu string `json:"periodeDateDepotDu"` PeriodeDateFactureAu *Date `json:"periodeDateFactureAu"` PeriodeDateFactureDu *Date `json:"periodeDateFactureDu"` PeriodeDateHeureEtatCourantAu *time.Time `json:"periodeDateHeureEtatCourantAu"` PeriodeDateHeureEtatCourantDu *time.Time `json:"periodeDateHeureEtatCourantDu"` RechercheFactureParFournisseur *PaginationOptions `json:"rechercheFactureParFournisseur"` RechercheSirenDestinataire bool `json:"rechercheSirenDestinataire"` RecupererTaille bool `json:"recupererTaille"` RejetTraite bool `json:"rejetTraite"` StatutCourant []string `json:"statutCourant"` TypeFacture TypeFacture `json:"typeFacture"` }
RechercherFactureParFournisseurOptions est la structure de données représentant les critères de recherche d'une facture pour un fournisseur. Elle est utilisée dans la méthode RechercherFactureParFournisseur.
type RechercherFactureParFournisseurResponse ¶
type RechercherFactureParFournisseurResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Factures []FactureParFournisseur `json:"listeFactures"` Pagination *PaginationResponse `json:"parametresRetour"` }
RechercherFactureParFournisseurResponse est la structure de données représentant la réponse de la méthode RechercherFactureParFournisseur.
type RechercherFactureParRecipiendaireOptions ¶
type RechercherFactureParRecipiendaireOptions struct { CadreFacturation CadreFac `json:"cadreFacturation,omitempty"` FactureTelechargeeParDestinataire bool `json:"factureTelechargeeParDestinataire,omitempty"` IdDestinataire int64 `json:"idDestinataire,omitempty"` IdServiceExecutant int64 `json:"idServiceExecutant,omitempty"` IdStructureValideur int64 `json:"idStructureValideur,omitempty"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant,omitempty"` ListeFournisseurs []FournisseurParam `json:"listeFournisseurs,omitempty"` ListeTypesFacture []string `json:"listeTypeFacture,omitempty"` ListeTypesFactureTravaux []string `json:"listeTypeFactureTravaux,omitempty"` MontantAPayerMax float32 `json:"montantApayerMax,omitempty"` MontantAPayerMin float32 `json:"montantApayerMin,omitempty"` MontantHTMax float32 `json:"montantHTMax,omitempty"` MontantHTMin float32 `json:"montantHTMin,omitempty"` MontantTTCMax float32 `json:"montantTTCMax,omitempty"` MontantTTCMin float32 `json:"montantTTCMin,omitempty"` NumeroBonCommande string `json:"numeroBonCommande,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` NumeroMarche string `json:"numeroMarche,omitempty"` Pagination *PaginationOptions `json:"paramRecherche,omitempty"` PeriodeDateDepotAu *Date `json:"periodeDateDepotAu,omitempty"` PeriodeDateDepotDu *Date `json:"periodeDateDepotDu,omitempty"` PeriodeDateFactureAu *Date `json:"periodeDateFactureAu,omitempty"` PeriodeDateFactureDu *Date `json:"periodeDateFactureDu,omitempty"` PeriodeDateHeureEtatCourantAu *time.Time `json:"periodeDateHeureEtatCourantAu,omitempty"` PeriodeDateHeureEtatCourantDu *time.Time `json:"periodeDateHeureEtatCourantDu,omitempty"` RechercheSirenFournisseur bool `json:"rechercheSirenFournisseur,omitempty"` RecupererTaille bool `json:"recupererTaille,omitempty"` StatutCourant []string `json:"statutCourant,omitempty"` TypeDemandePaiement string `json:"typeDemandePaiement,omitempty"` }
RechercherFactureParRecipiendaireOptions est la structure de données représentant les critères de recherche de factures pour un récipiendaire. Elle est utilisée par la méthode RechercherFactureParRecipiendaire.
type RechercherFactureParRecipiendaireResponse ¶
type RechercherFactureParRecipiendaireResponse struct { CodeRetour int `json:"codeRetour,omitempty"` Libelle string `json:"libelle,omitempty"` Factures *[]FactureParRecipiendaire `json:"listeFactures,omitempty"` NbResultatsParPage int `json:"nbResultatsParPage,omitempty"` PageCourante int `json:"pageCourante,omitempty"` Pages int `json:"pages,omitempty"` Total int `json:"total,omitempty"` }
RechercherFactureParRecipiendaireResponse est la structure de données représentant la réponse de la méthode RechercherFactureParRecipiendaire.
type RechercherFactureParValideurOptions ¶
type RechercherFactureParValideurOptions struct { CadreFacturation CadreDeFacturation `json:"cadreFacturation"` IdDestinataire int64 `json:"idDestinataire"` IdFournisseur int64 `json:"idFournisseur"` IdServiceExecutant int64 `json:"idServiceExecutant"` IdServiceFournisseur int64 `json:"idServiceFournisseur"` IdStructureMoa int64 `json:"idStructureMoa"` IdStructureMoe int64 `json:"idStructureMoe"` IdStructureValideur int64 `json:"idStructureValideur"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant"` ListeTypeFacture []string `json:"listeTypeFacture"` ListeTypeFactureTravaux []string `json:"listeTypeFactureTravaux"` MontantAPayerMax float32 `json:"montantAPayerMax"` MontantAPayerMin float32 `json:"montantAPayerMin"` MontantHTMax float32 `json:"montantHTMax"` MontantHTMin float32 `json:"montantHTMin"` MontantTTCMax float32 `json:"montantTTCMax"` MontantTTCMin float32 `json:"montantTTCMin"` NumeroEngagement string `json:"numeroEngagement"` NumeroFacture string `json:"numeroFacture"` NumeroMarche string `json:"numeroMarche"` Pagination *PaginationOptions `json:"pagination"` PeriodeDateDepotAu *Date `json:"periodeDateDepotAu"` PeriodeDateDepotDu *Date `json:"periodeDateDepotDu"` PeriodeDateFactureAu *time.Time `json:"periodeDateFactureAu"` PeriodeDateFactureDu *time.Time `json:"periodeDateFactureDu"` RechercheSirenDestinataire bool `json:"rechercheSirenDestinataire"` RechercheSirenFournisseur bool `json:"rechercheSirenFournisseur"` StatutCourant []string `json:"statutCourant"` TypeDemandePaiement string `json:"typeDemandePaiement"` }
RechercherFactureParValideurOptions est la structure de données représentant les critères de recherche de factures pour un valideur. Elle est utilisée dans la méthode RechercherFactureParValideur.
type RechercherFactureParValideurResponse ¶
type RechercherFactureParValideurResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Factures []FactureParValideur `json:"listeFactures"` Pagination *PaginationResponse `json:"parametresRetour"` }
RechercherFactureParValideurResponse est la structure de données représentant la réponse de la méthode RechercherFactureParValideur.
type RechercherServicesOptions ¶
type RechercherServicesOptions struct { IdUtilisateurCourant int64 `json:"idUtilisateurCourant"` IdStructure int64 `json:"idStructure"` Pagination *PaginationOptions `json:"parametresRechercherServicesStructure"` }
RechercherServicesOptions est la structure de données utilisée pour appeler la méthode RechercherServices.
type RechercherServicesResponse ¶
type RechercherServicesResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Services []ServiceRecherche `json:"listeServices"` Pagination *PaginationResponse `json:"parametresRetour"` }
RechercherServicesResponse est la structure de données représentant la réponse de la méthode RechercherServices.
type RechercherStructuresOptions ¶
type RechercherStructuresOptions struct { Pagination *PaginationOptions `json:"parametres"` RestreindreStructuresPrivees bool `json:"restreindreStructuresPrivees"` Criteres *CriteresRechercheStructures `json:"structure"` }
RechercherStructuresOptions est la structure de données utilisée pour appeler la méthode RechercherStructures.
type RechercherStructuresResponse ¶
type RechercherStructuresResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` Structures []StructureRecherche `json:"listeStructures"` Pagination *PaginationResponse `json:"parametresRetour"` }
RechercherStructuresResponse est la structure de données représentant la réponse de la méthode RechercherStructures.
type RecupererStatutsVisiblesParValideurOptions ¶
type RecupererStatutsVisiblesParValideurOptions struct {
IdUtilisateurCourant int64 `json:"idUtilisateurCourant"`
}
RecupererStatutsVisiblesParValideurOptions est la structure de données utlisée pour la méthode RecupererStatutsVisiblesParValideur.
type RecupererStatutsVisiblesParValideurResponse ¶
type RecupererStatutsVisiblesParValideurResponse struct { CodeRetour int64 `json:"codeRetour"` Libelle string `json:"libelle"` ListeStatutFacture []StatutVisible `json:"listeStatutFacture"` }
RecupererStatutsVisiblesParValideurResponse est la structure de données réprésentant la réponse de la méthode RecupererStatutsVisiblesParValideur.
type RecyclerFactureOptions ¶
type RecyclerFactureOptions struct { Commentaire string `json:"commentaire"` Destinataire *SoumettreFactureDestinataire `json:"destinataire"` IdUtilisateurCourant int `json:"idUtilisateurCourant"` IdentifiantFactureCPP int `json:"identifiantFactureCPP"` Reference *SoumettreFactureReferences `json:"reference"` }
RecyclerFactureOptions est la structure de données utilisée pour appeler la méthode RecyclerFacture.
type RecyclerFactureResponse ¶
type RecyclerFactureResponse struct { CodeRetour int32 `json:"codeRetour"` DateDepot *Date `json:"dateDepot"` IdentifiantFactureCPP int32 `json:"identifiantFactureCPP"` Libelle string `json:"libelle"` NumeroFacture string `json:"numeroFacture"` StatutFacture string `json:"statutFacture"` }
RecyclerFactureResponse est la structure de données représentant la réponse de la méthode RecyclerFacture.
type References ¶
type References struct { CodeDevise string `json:"codeDeviseFacture,omitempty"` DateCreationFacture *Datetime `json:"dateCreationFacture,omitempty"` DateDepot *Date `json:"dateDepot,omitempty"` DateEcheancePaiement *Date `json:"dateEcheancePaiement,omitempty"` DateFacture *Date `json:"dateFacture,omitempty"` LibelleDevise string `json:"libelleDeviseFacture,omitempty"` LibelleMotifExonerationTva string `json:"libelleMotifExonerationTva,omitempty"` ModePaiement string `json:"modePaiement,omitempty"` MotifExonerationTva string `json:"motifExonerationTva,omitempty"` NumeroBonCommande string `json:"numeroBonCommande,omitempty"` NumeroDpMandat string `json:"numeroDpMandat,omitempty"` NumeroFactureOrigine string `json:"numeroFactureOrigine,omitempty"` NumeroMarche string `json:"numeroMarche,omitempty"` TailleTotalePiecesJointes float32 `json:"tailleTotalePiecesJointes,omitempty"` TypeFacture TypeFacture `json:"typeFacture,omitempty"` TypeFactureTravaux string `json:"typeFactureTravaux,omitempty"` TypeTva TypeTva `json:"typeTva,omitempty"` }
type RoleUtilisateur ¶
type RoleUtilisateur string
RoleUtilisateur est le type des rôles possibles pour un utilisateur
const ( RoleFournisseur RoleUtilisateur = "FOURNISSEUR" RoleMoe RoleUtilisateur = "MOE" RoleMoa RoleUtilisateur = "MOA" RoleValidateur RoleUtilisateur = "VALIDATEUR" RoleDestinataire RoleUtilisateur = "DESTINATAIRE" )
type ServiceRecherche ¶
type ServiceRecherche struct { Code string `json:"codeService"` EstActif bool `json:"estActif"` Id int64 `json:"idService"` Libelle string `json:"libelleService"` Statut string `json:"statutService"` }
ServiceRecherche est la structure de données représentant un service de la liste des services.
type SoumettreFactureCadreDeFacturation ¶
type SoumettreFactureCadreDeFacturation struct { Code CadreFac `json:"codeCadreFacturation,omitempty"` CodeServiceValideur string `json:"codeServiceValideur,omitempty"` CodeStructureValideur string `json:"codeStructureValideur,omitempty"` }
SoumettreFactureCadreDeFacturation est la structure de données réprésentant le cadre de facturation d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureDestinataire ¶
type SoumettreFactureDestinataire struct { Code string `json:"codeDestinataire,omitempty"` CodeServiceExecutant string `json:"codeServiceExecutant,omitempty"` }
SoumettreFactureDestinataire est la structure de données réprésentant le destinataire d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureFournisseur ¶
type SoumettreFactureFournisseur struct { CodeCoordonneesBancairesFournisseur int64 `json:"codeCoordonneesBancairesFournisseur,omitempty"` IdFournisseur int64 `json:"idFournisseur,omitempty"` IdServiceFournisseur int64 `json:"idServiceFournisseur,omitempty"` }
SoumettreFactureFournisseur est la structure de données réprésentant le fournisseur d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureLignePoste ¶
type SoumettreFactureLignePoste struct { Denomination string `json:"lignePosteDenomination,omitempty"` MontantRemiseHT float32 `json:"lignePosteMontantRemiseHT,omitempty"` MontantUnitaireHT float32 `json:"lignePosteMontantUnitaireHT,omitempty"` Numero int32 `json:"lignePosteNumero,omitempty"` Quantite float32 `json:"lignePosteQuantite,omitempty"` Reference string `json:"lignePosteReference,omitempty"` TauxTva string `json:"lignePosteTauxTva,omitempty"` TauxTvaManuel float32 `json:"lignePosteTauxTvaManuel,omitempty"` Unite string `json:"lignePosteUnite,omitempty"` }
SoumettreFactureLignePoste est la structure de données réprésentant une ligne de poste d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureLigneTva ¶
type SoumettreFactureLigneTva struct { MontantBaseHtParTaux float32 `json:"ligneTvaMontantBaseHtParTaux,omitempty"` MontantTvaParTaux float32 `json:"ligneTvaMontantTvaParTaux,omitempty"` Taux string `json:"ligneTvaTaux,omitempty"` TauxManuel float32 `json:"ligneTvaTauxManuel,omitempty"` }
SoumettreFactureLigneTva est la structure de données réprésentant une ligne de TVA d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureMontantTotal ¶
type SoumettreFactureMontantTotal struct { MontantAPayer float32 `json:"montantAPayer,omitempty"` MontantHtTotal float32 `json:"montantHtTotal,omitempty"` MontantRemiseGlobaleTTC float32 `json:"montantRemiseGlobaleTTC,omitempty"` MontantTVA float32 `json:"montantTVA,omitempty"` MontantTtcTotal float32 `json:"montantTtcTotal,omitempty"` MotifRemiseGlobaleTTC string `json:"motifRemiseGlobaleTTC,omitempty"` }
SoumettreFactureMontantTotal est la structure de données réprésentant le montant total d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureOptions ¶
type SoumettreFactureOptions struct { CadreDeFacturation SoumettreFactureCadreDeFacturation `json:"cadreDeFacturation,omitempty"` Commentaire string `json:"commentaire,omitempty"` DateFacture *Date `json:"dateFacture,omitempty"` Destinataire SoumettreFactureDestinataire `json:"destinataire,omitempty"` Fournisseur SoumettreFactureFournisseur `json:"fournisseur,omitempty"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant,omitempty"` LignesPoste *[]SoumettreFactureLignePoste `json:"lignePoste,omitempty"` LignesTva *[]SoumettreFactureLigneTva `json:"ligneTva,omitempty"` ModeDepot string `json:"modeDepot,omitempty"` MontantTotal SoumettreFactureMontantTotal `json:"montantTotal,omitempty"` NumeroFactureSaisi string `json:"numeroFactureSaisi,omitempty"` PiecesJointesComplementaires *[]PieceJointeComplementaire `json:"pieceJointeComplementaire,omitempty"` PiecesJointesPrincipales SoumettreFacturePJPrincipale `json:"pieceJointePrincipale,omitempty"` References SoumettreFactureReferences `json:"references,omitempty"` }
SoumettreFactureOptions est la structure de données utilisée pour appeler la méthode SoumettreFacture.
type SoumettreFacturePJPrincipale ¶
type SoumettreFacturePJPrincipale struct { Designation string `json:"pieceJointePrincipaleDesignation,omitempty"` Id int64 `json:"pieceJointePrincipaleId,omitempty"` }
SoumettreFacturePJPrincipale est la structure de données réprésentant la pièce jointe principale d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureReferences ¶
type SoumettreFactureReferences struct { DeviseFacture string `json:"deviseFacture,omitempty"` ModePaiement string `json:"modePaiement,omitempty"` MotifExonerationTva string `json:"motifExonerationTva,omitempty"` NumeroBonCommande string `json:"numeroBonCommande,omitempty"` NumeroFactureOrigine string `json:"numeroFactureOrigine,omitempty"` NumeroMarche string `json:"numeroMarche,omitempty"` TypeFacture string `json:"typeFacture,omitempty"` TypeTva string `json:"typeTva,omitempty"` }
SoumettreFactureReferences est la structure de données réprésentant les références d'une facture. Elle est utilisée dans la méthode SoumettreFacture.
type SoumettreFactureResponse ¶
type SoumettreFactureResponse struct { CodeRetour int `json:"codeRetour,omitempty"` DateDepot *Date `json:"dateDepot,omitempty"` EmpreinteCertificatDepot string `json:"empreinteCertificatDepot,omitempty"` IdentifiantFactureCPP int64 `json:"identifiantFactureCPP,omitempty"` IdentifiantStructure string `json:"identifiantStructure,omitempty"` Libelle string `json:"libelle,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` StatutFacture string `json:"statutFacture,omitempty"` }
SoumettreFactureResponse est la structure de données réprésentant la réponse de la méthode SoumettreFacture.
type SousCategorieSollicitation ¶
type SousCategorieSollicitation struct { Code string `json:"code"` DateCreation *time.Time `json:"dateCreation"` DateDerniereModification *time.Time `json:"dateDerniereModification"` EstActif bool `json:"estActif"` IdTechnique int64 `json:"idTechniqueCategorie"` Libelle string `json:"libelle"` }
SousCategorieSollicitation est la structure de données représentant une sous-catégorie de sollicitation.
type SousCategoriesSolliciation ¶
type SousCategoriesSolliciation struct { Categories []CategorieSollicitation `json:"categorie"` SousCategories []SousCategorieSollicitation `json:"ssCategorie"` }
SousCategoriesSolliciation est la structure de données représentant des liste de catégories et de sous-catégories de sollicitation.
type StatutVisible ¶
type StatutVisible struct {
CodeStatut string `json:"codeStatutFacture"`
}
StatutVisible est la structure de données réprésentant un statut visible par un valideur. Elle est utilisée dans la réponse de la méthode RecupererStatutsVisiblesParValideur.
type StructureActive ¶
type StructureActive struct { Designation string `json:"designationStructure"` IdCPP int64 `json:"idStructureCPP"` Identifiant string `json:"identifiant"` }
StructureActive est la structure de données représentant une structure active.
type StructureDestinataireParam ¶
type StructureDestinataireParam struct { IdStructure int64 `json:"idStructureDestinataire,omitempty"` IdentifiantStructure string `json:"identifiantStructureDestinataire,omitempty"` TypeIdentifiantStructure string `json:"typeIdentifiantStructureDestinataire,omitempty"` }
StructureDestinataireParam est la structure de données représentant les paramètres de recherche sur la structure destinataire. Elle est utilisée dans la structure RechercherDemandePaiementOptions.
type StructureDupliquee ¶
type StructureDupliquee struct {
StructureDupliquee int64 `json:"structureDupliquee"`
}
StructureDupliquee est la structure de données représentant une l'identifiant d'une structure dupliquée.
type StructureFournisseurParam ¶
type StructureFournisseurParam struct { IdStructure int64 `json:"idStructureFournisseur,omitempty"` IdentifiantStructure string `json:"identifiantStructureFournisseur,omitempty"` TypeIdentifiantStructure string `json:"typeIdentifiantStructureFournisseur,omitempty"` }
StructureFournisseurParam est la structure de données représentant les paramètres de recherche sur la structure fournisseur. Elle est utilisée dans la structure RechercherDemandePaiementOptions.
type StructureMoaParam ¶
type StructureMoaParam struct { IdStructure int64 `json:"idStructureMoa,omitempty"` IdentifiantStructure string `json:"identifiantStructureMoa,omitempty"` TypeIdentifiantStructure string `json:"typeIdentifiantStructureMoa,omitempty"` }
StructureMoaParam est la structure de données représentant les paramètres de recherche sur la structure MOA. Elle est utilisée dans la structure RechercherDemandePaiementOptions.
type StructureMoeParam ¶
type StructureMoeParam struct { IdStructure int64 `json:"idStructureMoe,omitempty"` IdentifiantStructure string `json:"identifiantStructureMoe,omitempty"` TypeIdentifiantStructure string `json:"typeIdentifiantStructureMoe,omitempty"` }
StructureMoeParam est la structure de données représentant les paramètres de recherche sur la structure MOE. Elle est utilisée dans la structure RechercherDemandePaiementOptions.
type StructureRecherche ¶
type StructureRecherche struct { Designation string `json:"designationStructure"` IdStructureCPP int64 `json:"idStructureCPP"` Identifiant string `json:"identifiantStructure"` Statut string `json:"statut"` TypeIdentifiant string `json:"typeIdentifiantStructure"` }
StructureRecherche est la structure de données représentant une structure de la liste des structures.
type StructureValideurParam ¶
type StructureValideurParam struct { IdStructure int64 `json:"idStructureValideur,omitempty"` IdentifiantStructure string `json:"identifiantStructureValideur,omitempty"` TypeIdentifiantStructure string `json:"typeIdentifiantStructureValideur,omitempty"` }
StructureValideurParam est la structure de données représentant les paramètres de recherche sur la structure valideur. Elle est utilisée dans la structure RechercherDemandePaiementOptions.
type StructuresService ¶
type StructuresService service
StructuresService gère les appels à l'API Structures API docs : https://developer.aife.economie.gouv.fr/api-catalog-sandbox?filter=Structures
func (*StructuresService) ConsulterService ¶
func (s *StructuresService) ConsulterService(ctx context.Context, opts ConsulterServiceOptions) (*ConsulterServiceResponse, error)
La méthode ConsulterService permet de consulter : - les informations relatives à un service auquel l'utilisateur est rattaché - les informations relatives à un service d'une structure publique.
func (*StructuresService) ConsulterStructure ¶
func (s *StructuresService) ConsulterStructure(ctx context.Context, opts ConsulterStructureOptions) (*ConsulterStructureResponse, error)
La méthode ConsulterStructure permet de consulter les informations relatives à une structure à laquelle l'utilisateur est rattaché ou une structure publique.
func (*StructuresService) RechercherServices ¶
func (s *StructuresService) RechercherServices(ctx context.Context, opts RechercherServicesOptions) (*RechercherServicesResponse, error)
La méthode RechercherServices permet de rechercher les services appartenant à une structure publique ou à une structure à laquelle l'utilisateur est rattaché.
func (*StructuresService) RechercherStructures ¶
func (s *StructuresService) RechercherStructures(ctx context.Context, opts RechercherStructuresOptions) (*RechercherStructuresResponse, error)
La méthode RechercherStructures permet à un gestionnaire de rechercher des structures.
func (*StructuresService) RecupererRattachementsServicesUtilisateur ¶
func (s *StructuresService) RecupererRattachementsServicesUtilisateur(ctx context.Context, opts ListeRattachementsServicesUtilisateurOptions) (*ListeRattachementsServicesUtilisateurResponse, error)
La méthode RecupererRattachementsServicesUtilisateur récupère les informations nécessaires au formulaire de traitement des demandes de rattachement pour un utilisateur et une structure.
type SyntaxeFlux ¶
type SyntaxeFlux string
const ( SyntaxeFluxE1UblInvoice SyntaxeFlux = "IN_DP_E1_UBL_INVOICE" SyntaxeFluxE1Cii16B SyntaxeFlux = "IN_DP_E1_CII_16B" SyntaxeFluxE2UblInvoiceMin SyntaxeFlux = "IN_DP_E2_UBL_INVOICE_MIN" SyntaxeFluxE2CppFactureMin SyntaxeFlux = "IN_DP_E2_CPP_FACTURE_MIN" SyntaxeFluxE2CiiMin16B SyntaxeFlux = "IN_DP_E2_CII_MIN_16B" SyntaxeFluxE2CiiFacturx SyntaxeFlux = "IN_DP_E2_CII_FACTURX" SyntaxeFluxE3UblInvoice SyntaxeFlux = "IN_DP_E3_UBL_INVOICE" )
type TauxTva ¶
type TauxTva struct { Code string `json:"codeTauxTva"` Libelle string `json:"libelleTauxTva"` Valeur float32 `json:"valeurTauxTva"` }
TauxTva est la structure de données représentant un taux de TVA.
type TelechargerGroupeFactureOptions ¶
type TelechargerGroupeFactureOptions struct { // 2 values allowed: "OUI" or "NON" AvecPiecesJointesComplementaires string `json:"avecPiecesJointesComplementaires,omitempty"` Format FormatFichier `json:"format,omitempty"` IdEspace int64 `json:"idEspace,omitempty"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant,omitempty"` ListeFactures []*IdFacture `json:"listeFacture,omitempty"` }
TelechargerGroupeFactureOptions est la structure de données utlisée pour la méthode TelechargerGroupeFacture.
type TelechargerGroupeFactureResponse ¶
type TelechargerGroupeFactureResponse struct { CodeRetour int `json:"codeRetour,omitempty"` FichierResultat string `json:"fichierResultat,omitempty"` // base64 encoded Libelle string `json:"libelle,omitempty"` }
TelechargerGroupeFactureResponse est la structure de données réprésentant la réponse de la méthode TelechargerGroupeFacture.
type TelechargerPieceJointeDemandePaiementOptions ¶
type TelechargerPieceJointeDemandePaiementOptions struct { // 2 values possible : "OUI" or "NON" AvecPJCompltementaires string `json:"avecPiecesJointesComplementaires"` Format FormatFichier `json:"format"` ListeFacture []IdFacture `json:"listeFacture"` }
TelechargerPieceJointeDemandePaiementOptions est la structure de données utilisée pour appeler la méthode TelechargerPieceJointeDemandePaiement.
type TelechargerPieceJointeEngagementJuridiqueOptions ¶
type TelechargerPieceJointeEngagementJuridiqueOptions struct {
Numero string `json:"numeroEngagementJuridique"`
}
TelechargerPieceJointeEngagementJuridiqueOptions est la structure de données utilisée pour appeler la méthode TelechargerPieceJointe. Elle est utilisée dans la structure TelechargerPieceJointeOptions.
type TelechargerPieceJointeOptions ¶
type TelechargerPieceJointeOptions struct { Objet ObjetPJ `json:"objetPieceJointe"` DemandePaiement *TelechargerPieceJointeDemandePaiementOptions `json:"demandePaiement,omitempty"` EngagementJuridique *TelechargerPieceJointeEngagementJuridiqueOptions `json:"engagementJuridique,omitempty"` Sollicitation *TelechargerPieceJointeSollicitationOptions `json:"sollicitation,omitempty"` Structure *TelechargerPieceJointeStructureOptions `json:"structure,omitempty"` }
TelechargerPieceJointeOptions est la structure de données utilisée pour appeler la méthode TelechargerPieceJointe.
type TelechargerPieceJointeSollicitationOptions ¶
type TelechargerPieceJointeSollicitationOptions struct { Id int64 `json:"idSollicitation"` // 2 values possible : "OUI" or "NON" PieceJointeSollicitation string `json:"pieceJointeSollicitation"` }
TelechargerPieceJointeSollicitationOptions est la structure de données utilisée pour appeler la méthode TelechargerPieceJointe. Elle est utilisée dans la structure TelechargerPieceJointeOptions.
type TelechargerPieceJointeStructureOptions ¶
type TelechargerPieceJointeStructureOptions struct { Id int64 `json:"idStructure"` Identifiant string `json:"identifiantStructure"` TypeIdentifiant string `json:"typeIdentifiantStructure"` }
TelechargerPieceJointeStructureOptions est la structure de données utilisée pour appeler la méthode TelechargerPieceJointe. Elle est utilisée dans la structure TelechargerPieceJointeOptions.
type TraiterFactureAValiderOptions ¶
type TraiterFactureAValiderOptions struct { Action ActionFacture `json:"action,omitempty"` ComplementInfo string `json:"complementInfo,omitempty"` IdFacture int64 `json:"idFacture,omitempty"` IdPieceJointe int64 `json:"idPieceJointe,omitempty"` IdValideur int64 `json:"idValideur,omitempty"` MotifRefus string `json:"motifRefus,omitempty"` TypeValideur string `json:"typeValideur,omitempty"` }
TraiterFactureAValiderOptions est la structure de données utilisée pour appeler la méthode TraiterFactureAValider.
type TraiterFactureAValiderResponse ¶
type TraiterFactureAValiderResponse struct { CodeRetour int `json:"codeRetour,omitempty"` DateTraitement *Date `json:"dateTraitement,omitempty"` IdFacture int64 `json:"idFacture,omitempty"` Libelle string `json:"libelle,omitempty"` NumeroFacture string `json:"numeroFacture,omitempty"` StatutFacture string `json:"statutFacture,omitempty"` }
TraiterFactureAValiderResponse est la réponse renvoyée par la méthode TraiterFactureAValider.
type TraiterFactureRecueOptions ¶
type TraiterFactureRecueOptions struct { IdFacture int64 `json:"idFacture"` IdUtilisateurCourant int64 `json:"idUtilisateurCourant"` Motif string `json:"motif"` NouveauStatut string `json:"nouveauStatut"` NumeroDPMandat string `json:"numeroDPMandat"` }
TraiterFactureRecueOptions est la structure de données utilisée pour appeler la méthode TraiterFactureRecue.
type TraiterFactureRecueResponse ¶
type TraiterFactureRecueResponse struct { CodeRetour int32 `json:"codeRetour"` DateTraitement *Date `json:"dateTraitement"` IdFacture int64 `json:"idFacture"` Libelle string `json:"libelle"` NouveauStatut string `json:"nouveauStatut"` NumeroFacture string `json:"numeroFacture"` }
TraiterFactureRecueResponse est la réponse renvoyée par la méthode TraiterFactureRecue.
type TraiterRejetOptions ¶
type TraiterRejetOptions struct { CpltInfos string `json:"cpltInfos"` ListeDemandePaiement []DemandePaiementParam `json:"listeDemandePaiement"` MotifRejet string `json:"motifRejet"` }
TraiterRejetOptions est la structure de données utilisée pour appeler la méthode TraiterRejet.
type TraiterRejetResponse ¶
type TraiterRejetResponse struct { CodeRetour int32 `json:"codeRetour"` Libelle string `json:"libelle"` }
TraiterRejetResponse est la réponse renvoyée par la méthode TraiterRejet.
type TransversesService ¶
type TransversesService service
TransversesService gère les appels à l'API Transverses API docs : https://developer.aife.economie.gouv.fr/api-catalog-sandbox?filter=Transverses
func (*TransversesService) AjouterPieceJointe ¶
func (s *TransversesService) AjouterPieceJointe(ctx context.Context, opts AjouterPieceOptions) (*AjouterPieceResponse, error)
La méthode AjouterPieceJointe permet d'ajouter une pièce-jointe au compte utilisateur courant et d'en obtenir l'identifiant technique. La pièce jointe ne doit pas dépasser 10Mo. Si le fichier dépasse cette taille, une erreur 20003 sera remontée.
func (*TransversesService) ConsulterCompteRendu ¶
func (s *TransversesService) ConsulterCompteRendu(ctx context.Context, opts ConsulterCompteRenduOptions) (*ConsulterCompteRenduResponse, error)
Le service ConsulterCompteRendu permet de consulter les informations liées au dépôt d'un flux et de récupérer au format PDF le compte rendu de traitement du flux déposé via le portail ou le service exposé DeposerFluxFacture.
func (*TransversesService) ConsulterCompteRenduDetaille ¶
func (s *TransversesService) ConsulterCompteRenduDetaille(ctx context.Context, opts ConsulterCompteRenduDetailleOptions) (*CompteRenduDetailleResponse, error)
Le service ConsulterCompteRenduDetaille permet de consulter l'état d'intégration d'un flux émis en API, avec le cas échéant les erreurs identifiées par le système pour l'irrecevabilité du flux ou le rejet d'une ou plusieurs demandes de paiement.
func (*TransversesService) ConsulterInformationsSIRET ¶
func (s *TransversesService) ConsulterInformationsSIRET(ctx context.Context, opts ConsulterInformationsSIRETOptions) (*InformationsSIRETResponse, error)
La méthode ConsulterInformationsSIRET permet de récupérer les données de la structure de type SIRET correspondant aux paramètres dans le référentiel de l'INSEE (service exposé ne fonctionnant pas sur l'espace de qualification).
func (*TransversesService) HealthCheck ¶
func (s *TransversesService) HealthCheck(ctx context.Context) (*HealthCheck, error)
HealthCheck permet de vérifier que l'API est accessible
func (*TransversesService) RechercherCategoriesSollicitation ¶
func (s *TransversesService) RechercherCategoriesSollicitation(ctx context.Context, opts ListeCategoriesSollicitationOptions) (*ListeCategoriesSollicitationResponse, error)
La méthode RechercherCategoriesSollicitation permet de rechercher les valeurs du référentiel catégorie Sollicitation paramétrées pour le mode connecté
func (*TransversesService) RechercherDestinataires ¶
func (s *TransversesService) RechercherDestinataires(ctx context.Context, opts ListeDestinatairesOptions) (*ListeDestinatairesResponse, error)
La méthode RechercherDestinataires permet de rechercher les informations légales d'une structure publique.
func (*TransversesService) RechercherPiecesJointesMonCompte ¶
func (s *TransversesService) RechercherPiecesJointesMonCompte(ctx context.Context, opts ListePiecesJointesMonCompteOptions) (*ListePiecesJointesMonCompteResponse, error)
La méthode RechercherPiecesJointesMonCompte permet de rechercher un fichier associé au compte utilisateur.
func (*TransversesService) RechercherPiecesJointesStructure ¶
func (s *TransversesService) RechercherPiecesJointesStructure(ctx context.Context, opts ListePiecesJointesStructureOptions) (*ListePiecesJointesStructureResponse, error)
La méthode RechercherPiecesJointesStructure permet de rechercher une pièce-jointe associée à une structure à laquelle est habilité l'utilisateur.
func (*TransversesService) RechercherSousCategoriesSollicitation ¶
func (s *TransversesService) RechercherSousCategoriesSollicitation(ctx context.Context, opts ListeSousCategoriesSollicitationOptions) (*ListeSousCategoriesSollicitationResponse, error)
Le service RechercherSousCategoriesSollicitation permet de rechercher les valeurs du référentiel Sous-catégorie Sollicitation paramétrées pour le mode connecté.
func (*TransversesService) RecupererCadresFacturation ¶
func (s *TransversesService) RecupererCadresFacturation(ctx context.Context, typeDP string) (*ListeCadresFacturation, error)
RecupererCadresFacturation permet de récupérer la liste des cadres de facturation pouvant être renseignés lors de la saisie d'une facture. typeDP est le type de demande de paiement. La liste des types de demande peut être récupérée avec TransversesService.RecupererTypesDemandePaiement
func (*TransversesService) RecupererCoordonneesBancairesValides ¶
func (s *TransversesService) RecupererCoordonneesBancairesValides(ctx context.Context, opts ListeCoordonneesBancairesOptions) (*ListeCoordonneesBancaires, error)
RecupererCoordonneesBancairesValides permet de récupérer la liste des coordonnées bancaires renseignées pour une structure à laquelle l'utilisateur courant est rattaché.
func (*TransversesService) RecupererDevises ¶
func (s *TransversesService) RecupererDevises(ctx context.Context, lang CodeLangue) (*ListeDevises, error)
RecupererDevises permet de récupérer la liste des codes devises pouvant être renseignés lors de la saisie dans une facture. lang est la langue dans laquelle les devises seront retournées. Si lang n'est pas spécifié, la langue par défaut est le français (CodeLangueFr)
func (*TransversesService) RecupererEtatParTypeDemandePaiement ¶
func (s *TransversesService) RecupererEtatParTypeDemandePaiement(ctx context.Context, opts ListeEtatsTypeDemandePaiementOptions) (*ListeEtatsTypeDemandePaiementResponse, error)
La méthode recupererEtatParTypeDemandePaiement permet de récupérer l'ensemble des statuts pouvant s'appliquer à une demande de paiement en fonction du type de demande de paiement.
func (*TransversesService) RecupererEtatsPossiblesPourTraitement ¶
func (s *TransversesService) RecupererEtatsPossiblesPourTraitement(ctx context.Context, opts ListeEtatsTraitementOptions) (*ListeEtatsTraitementResponse, error)
La méthode RecupererEtatsPossiblesPourTraitement permet de récupérer la liste des statuts pouvant être renseignés par un destinataire souhaitant traiter une facture en fonction du statut actuel de la demande de paiement.
func (*TransversesService) RecupererFormatFlux ¶
func (s *TransversesService) RecupererFormatFlux(ctx context.Context) (*ListeFormatsFluxResponse, error)
La méthode RecupererFormatFlux permet de récupérer les valeurs pouvant être renseignées lors du dépôt d'un flux pour renseigner le format du flux.
func (*TransversesService) RecupererModesDepot ¶
func (s *TransversesService) RecupererModesDepot(ctx context.Context) (*ListeModesDepot, error)
RecupererModesDepot permet de récupérer la liste des modes de dépôt ou de saisie d'une facture
func (*TransversesService) RecupererModesReglement ¶
func (s *TransversesService) RecupererModesReglement(ctx context.Context) (*ListeModesReglement, error)
RecupererModesReglement permet de récupérer la liste des modes de règlement pouvant être renseignées lors de la saisie d'une facture pour renseigner le mode de règlement de la demande de paiement déposée par le fournisseur.
func (*TransversesService) RecupererMotifsExonerationTva ¶
func (s *TransversesService) RecupererMotifsExonerationTva(ctx context.Context, lang CodeLangue) (*ListeMotifsExonerationTvaResponse, error)
La méthode RecupererMotifsExonerationTva permet de récupérer la liste des motifs d'exonération à la TVA pouvant être renseignés lors du dépôt d'une facture.
func (*TransversesService) RecupererMotifsRefusFactureAValider ¶
func (s *TransversesService) RecupererMotifsRefusFactureAValider(ctx context.Context, opts ListeMotifsRefusFactureAValiderOptions) (*ListeMotifsRefusFactureAValider, error)
RecupererMotifsRefusFactureAValider permet de récupérer la liste des motifs
func (*TransversesService) RecupererPays ¶
func (s *TransversesService) RecupererPays(ctx context.Context, lang CodeLangue) (*ListePays, error)
RecupererPays permet de récupérer la liste des codes pays (liste ISO 3166) dans la langue spécifiée par lang. Si lang n'est pas spécifié, la langue par défaut est le français (CodeLangueFr)
func (*TransversesService) RecupererStructuresActivesDestinataire ¶
func (s *TransversesService) RecupererStructuresActivesDestinataire(ctx context.Context) (*ListeStructuresActivesResponse, error)
La méthode RecupererStructuresActivesDestinataire permet de récupérer la liste des structures actives auxquelles un utilisateur est rattaché et habilité à l'espace "factures reçues".
func (*TransversesService) RecupererStructuresActivesFactureTravaux ¶
func (s *TransversesService) RecupererStructuresActivesFactureTravaux(ctx context.Context) (*ListeStructuresActivesResponse, error)
La méthode RecupererStructuresActivesFactureTravaux permet de récupérer la liste des structures actives auxquelles un utilisateur est rattaché et habilité à l'espace "factures de travaux".
func (*TransversesService) RecupererStructuresActivesFournisseur ¶
func (s *TransversesService) RecupererStructuresActivesFournisseur(ctx context.Context) (*ListeStructuresActivesResponse, error)
La méthode RecupererStructuresActivesFournisseur permet de récupérer la liste des structures actives auxquelles un utilisateur est rattaché et habilité à l’espace "factures émises".
func (*TransversesService) RecupererTauxTva ¶
func (s *TransversesService) RecupererTauxTva(ctx context.Context, lang CodeLangue) (*ListeTauxTvaResponse, error)
La méthode recupererTauxTva permet de récupérer la liste des taux de TVA applicables.
func (*TransversesService) RecupererTypesDemandePaiement ¶
func (s *TransversesService) RecupererTypesDemandePaiement(ctx context.Context) (*ListeTypesDemandePaiementResponse, error)
La méthode RecupererTypesDemandePaiement permet de récupérer les types de demandes de paiement pouvant être renseignées dans Chorus Pro.
func (*TransversesService) RecupererTypesFactureTravaux ¶
func (s *TransversesService) RecupererTypesFactureTravaux(ctx context.Context) (*ListeTypesFactureTravauxResponse, error)
La méthode RecupererTypesFactureTravaux permet de renseigner les éléments de facturations pouvant être renseignés lors du dépôt d'un dossier de facturation de travaux.
func (*TransversesService) RecupererTypesIdentifiantsStructure ¶
func (s *TransversesService) RecupererTypesIdentifiantsStructure(ctx context.Context) (*ListeTypesIdentifiantsStructureResponse, error)
La méthode recupererTypeIdentifiantStructure permet de récupérer les types d'identifiants pouvant être renseignés par un fournisseur ou un valideur de facture.
func (*TransversesService) RecupererTypesPieceJointe ¶
func (s *TransversesService) RecupererTypesPieceJointe(ctx context.Context, opts ListeTypesPieceJointeOptions) (*ListeTypesPieceJointeResponse, error)
La méthode RecupererTypesPieceJointe permet de récupérer le type de pièce-jointe pouvant être déposé en fonction de l'espace sur lequel l'objet peut être rattaché.
func (*TransversesService) TelechargerAnnuaireDestinataire ¶
func (s *TransversesService) TelechargerAnnuaireDestinataire(ctx context.Context) (*AnnuaireDestinataire, error)
TelechargerAnnuaireDestinataire permet de télécharger l'annuaire des destinataires.
func (*TransversesService) TelechargerPieceJointe ¶
func (s *TransversesService) TelechargerPieceJointe(ctx context.Context, opts TelechargerPieceJointeOptions) (*PieceJointe, error)
La méthode TelechargerPieceJointe permet à un utilisateur de télécharger les pieces jointes des types objets suivants : sollicitation, demande de remboursement, facture, facture travaux, mémoire, coordonnée bancaire, structure, mandat, utilisateur (courant), engagement juridique.
type TypeDemandePaiement ¶
type TypeDemandePaiement struct {
Type string `json:"typeDemandePaiement"`
}
TypeDemandePaiement est la structure de données représentant un type de demande de paiement.
type TypeFacture ¶
type TypeFacture string
TypeFacture est le type des factures
const ( TypeFactureFacture TypeFacture = "FACTURE" TypeFactureAvoir TypeFacture = "AVOIR" TypeFactureAcompte TypeFacture = "ACOMPTE" )
type TypeFactureTravaux ¶
type TypeFactureTravaux struct {
Type string `json:"typeFactureTravaux"`
}
TypeFactureTravaux est la structure de données représentant un type de facture de travaux.
type TypeIdentifiant ¶
type TypeIdentifiant string
TypeIdentifiant est le type des identifiants pour identifier un tiers
const ( TypeIdentifiantSiret TypeIdentifiant = "SIRET" TypeIdentifiantUEHorsFrance TypeIdentifiant = "UE_HORS_FRANCE" TypeIdentifiantHorsUE TypeIdentifiant = "HORS_UE" TypeIdentifiantRidet TypeIdentifiant = "RIDET" TypeIdentifiantTahiti TypeIdentifiant = "TAHITI" TypeIdentifiantAutre TypeIdentifiant = "AUTRE" TypeIdentifiantParticulier TypeIdentifiant = "PARTICULIER" )
type TypeIdentifiantStructure ¶
type TypeIdentifiantStructure struct {
Type string `json:"typeIdentifiantStructure"`
}
TypeIdentifiantStructure est la structure de données représentant un type d'identifiant de structure.
type TypeObjet ¶
type TypeObjet string
TypeObjet est le type de l'objet d'une pièce jointe.
const ( TypeObjetStructure TypeObjet = "STRUCTURE" TypeObjetUtilisateur TypeObjet = "UTILISATEUR" TypeObjetCb TypeObjet = "CB" TypeObjetMandat TypeObjet = "MANDAT" TypeObjetFicheRaccordement TypeObjet = "FICHE_RACCORDEMENT" TypeObjetEj TypeObjet = "EJ" TypeObjetMemoire TypeObjet = "MEMOIRE" TypeObjetDmdRbst TypeObjet = "DMD_RBST" TypeObjetTransverse TypeObjet = "TRANSVERSE" TypeObjetFactureTravaux TypeObjet = "FACTURE_TRAVAUX" TypeObjetFacture TypeObjet = "FACTURE" TypeObjetDmdeCpteDevSiExt TypeObjet = "DMDE_CPTE_DEV_SI_EXT" TypeObjetSolicitation TypeObjet = "SOLLICITATION" TypeObjetCertificat TypeObjet = "CERTIFICAT" TypeObjetPjRejetEdi TypeObjet = "PJ_REJET_EDI" )
type TypePieceJointe ¶
type TypePieceJointe struct { Code string `json:"codeTypePieceJointe"` Libelle string `json:"libelleTypePieceJointe"` Id int64 `json:"idTypePieceJointe"` TypeObjet TypeObjet `json:"typeObjet"` }
TypePieceJointe est le type d'une pièce jointe.
type UtilisateursService ¶
type UtilisateursService service
UtilisateursService gère les appels à l'API Utilisateurs API docs : https://developer.aife.economie.gouv.fr/api-catalog-sandbox?filter=Utilisateurs
func (*UtilisateursService) RecupererRattachementsUtilisateur ¶
func (s *UtilisateursService) RecupererRattachementsUtilisateur(ctx context.Context, opts ListeRattachementsUtilisateurOptions) (*ListeRattachementsUtilisateurResponse, error)
La méthode recupererRattachementsMonCompteUtilisateur permet de rechercher les structures pour lesquelles l'utilisateur possède au moins un rattachement actif.
Source Files
¶
- choruspro.go
- date.go
- error.go
- factures.go
- factures_consultations.go
- factures_depots.go
- factures_misc.go
- factures_recherches.go
- factures_traitements.go
- pagination.go
- structures.go
- structures_consultations.go
- structures_rattachements.go
- structures_recherches.go
- transverses.go
- transverses_categories.go
- transverses_etats.go
- transverses_flux.go
- transverses_misc.go
- transverses_pieces_jointes.go
- transverses_structures.go
- transverses_tva.go
- transverses_types.go
- utilisateurs.go
- utilisateurs_rattachements.go