@factpulse/sdk 2.0.12 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/SETUP_GITHUB_ACTIONS.md +70 -8
- package/.github/workflows/publish-npm.yml +5 -7
- package/.openapi-generator/FILES +206 -174
- package/CHANGELOG.md +3 -3
- package/README.md +181 -132
- package/api/afnorpdppaapi.ts +159 -10
- package/api/afnorpdppadirectory-service-api.ts +78 -78
- package/api/afnorpdppaflow-service-api.ts +30 -30
- package/api/chorus-pro-api.ts +358 -388
- package/api/health-api.ts +176 -0
- package/api/invoice-processing-api.ts +1083 -0
- package/api/pdfxmlverification-api.ts +536 -0
- package/api/user-api.ts +119 -0
- package/api.ts +6 -5
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api/afnorpdppaapi.d.ts +75 -10
- package/dist/api/afnorpdppaapi.js +152 -11
- package/dist/api/afnorpdppadirectory-service-api.d.ts +78 -78
- package/dist/api/afnorpdppadirectory-service-api.js +82 -79
- package/dist/api/afnorpdppaflow-service-api.d.ts +30 -30
- package/dist/api/afnorpdppaflow-service-api.js +34 -31
- package/dist/api/chorus-pro-api.d.ts +345 -280
- package/dist/api/chorus-pro-api.js +351 -356
- package/dist/api/health-api.d.ts +90 -0
- package/dist/api/health-api.js +184 -0
- package/dist/api/invoice-processing-api.d.ts +480 -0
- package/dist/api/invoice-processing-api.js +1010 -0
- package/dist/api/pdfxmlverification-api.d.ts +237 -0
- package/dist/api/pdfxmlverification-api.js +514 -0
- package/dist/api/user-api.d.ts +62 -0
- package/dist/api/user-api.js +128 -0
- package/dist/api.d.ts +6 -5
- package/dist/api.js +6 -5
- package/dist/base.d.ts +2 -2
- package/dist/base.js +6 -3
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api/afnorpdppaapi.d.ts +75 -10
- package/dist/esm/api/afnorpdppaapi.js +149 -11
- package/dist/esm/api/afnorpdppadirectory-service-api.d.ts +78 -78
- package/dist/esm/api/afnorpdppadirectory-service-api.js +78 -78
- package/dist/esm/api/afnorpdppaflow-service-api.d.ts +30 -30
- package/dist/esm/api/afnorpdppaflow-service-api.js +30 -30
- package/dist/esm/api/chorus-pro-api.d.ts +345 -280
- package/dist/esm/api/chorus-pro-api.js +347 -355
- package/dist/esm/api/health-api.d.ts +90 -0
- package/dist/esm/api/health-api.js +174 -0
- package/dist/esm/api/invoice-processing-api.d.ts +480 -0
- package/dist/esm/api/invoice-processing-api.js +1000 -0
- package/dist/esm/api/pdfxmlverification-api.d.ts +237 -0
- package/dist/esm/api/pdfxmlverification-api.js +504 -0
- package/dist/esm/api/user-api.d.ts +62 -0
- package/dist/esm/api/user-api.js +118 -0
- package/dist/esm/api.d.ts +6 -5
- package/dist/esm/api.js +6 -5
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/models/acknowledgment-status.d.ts +20 -0
- package/dist/esm/models/acknowledgment-status.js +21 -0
- package/dist/esm/models/afnorcredentials.d.ts +19 -0
- package/dist/esm/models/afnorcredentials.js +14 -0
- package/dist/esm/models/afnordestination.d.ts +34 -0
- package/dist/esm/models/afnordestination.js +21 -0
- package/dist/esm/models/afnorhealth-check-response.d.ts +28 -0
- package/dist/esm/models/afnorhealth-check-response.js +14 -0
- package/dist/esm/models/afnorresult.d.ts +30 -0
- package/dist/esm/models/afnorresult.js +14 -0
- package/dist/esm/models/allowance-reason-code.d.ts +24 -0
- package/dist/esm/models/allowance-reason-code.js +25 -0
- package/dist/esm/models/amount-due.d.ts +16 -0
- package/dist/esm/models/amount-due.js +14 -0
- package/dist/esm/models/apierror.d.ts +26 -0
- package/dist/esm/models/apierror.js +14 -0
- package/dist/esm/models/apiprofile.d.ts +21 -0
- package/dist/esm/models/apiprofile.js +22 -0
- package/dist/esm/models/bounding-box-schema.d.ts +44 -0
- package/dist/esm/models/bounding-box-schema.js +14 -0
- package/dist/esm/models/celery-status.d.ts +22 -0
- package/dist/esm/models/celery-status.js +23 -0
- package/dist/esm/models/certificate-info-response.d.ts +23 -23
- package/dist/esm/models/certificate-info-response.js +2 -2
- package/dist/esm/models/chorus-pro-destination.d.ts +23 -0
- package/dist/esm/models/chorus-pro-destination.js +16 -0
- package/dist/esm/models/chorus-pro-result.d.ts +22 -0
- package/dist/esm/models/chorus-pro-result.js +14 -0
- package/dist/esm/models/destination.d.ts +7 -7
- package/dist/esm/models/destination.js +2 -2
- package/dist/esm/models/document-type.d.ts +37 -0
- package/dist/esm/models/document-type.js +38 -0
- package/dist/esm/models/electronic-address.d.ts +19 -0
- package/dist/esm/models/electronic-address.js +14 -0
- package/dist/esm/models/enriched-invoice-info.d.ts +24 -0
- package/dist/esm/models/enriched-invoice-info.js +14 -0
- package/dist/esm/models/error-level.d.ts +16 -0
- package/dist/esm/models/error-level.js +17 -0
- package/dist/esm/models/error-source.d.ts +22 -0
- package/dist/esm/models/error-source.js +23 -0
- package/dist/esm/models/factur-xpdfinfo.d.ts +28 -0
- package/dist/esm/models/factur-xpdfinfo.js +14 -0
- package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts +36 -0
- package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +14 -0
- package/dist/esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts +24 -0
- package/dist/esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js +14 -0
- package/dist/esm/models/facture-factur-x.d.ts +30 -28
- package/dist/esm/models/facture-factur-x.js +2 -2
- package/dist/esm/models/field-status.d.ts +22 -0
- package/dist/esm/models/field-status.js +23 -0
- package/dist/esm/models/flow-direction.d.ts +19 -0
- package/dist/esm/models/flow-direction.js +20 -0
- package/dist/esm/models/flow-profile.d.ts +20 -0
- package/dist/esm/models/flow-profile.js +21 -0
- package/dist/esm/models/flow-summary.d.ts +24 -0
- package/dist/esm/models/flow-summary.js +14 -0
- package/dist/esm/models/flow-syntax.d.ts +22 -0
- package/dist/esm/models/flow-syntax.js +23 -0
- package/dist/esm/models/flow-type.d.ts +22 -0
- package/dist/esm/models/flow-type.js +23 -0
- package/dist/esm/models/generate-certificate-request.d.ts +21 -21
- package/dist/esm/models/generate-certificate-request.js +2 -2
- package/dist/esm/models/generate-certificate-response.d.ts +12 -12
- package/dist/esm/models/generate-certificate-response.js +2 -2
- package/dist/esm/models/get-chorus-pro-id-request.d.ts +26 -0
- package/dist/esm/models/get-chorus-pro-id-request.js +14 -0
- package/dist/esm/models/get-chorus-pro-id-response.d.ts +29 -0
- package/dist/esm/models/get-chorus-pro-id-response.js +14 -0
- package/dist/esm/models/get-invoice-request.d.ts +22 -0
- package/dist/esm/models/get-invoice-request.js +14 -0
- package/dist/esm/models/get-invoice-response.d.ts +26 -0
- package/dist/esm/models/get-invoice-response.js +14 -0
- package/dist/esm/models/get-structure-request.d.ts +26 -0
- package/dist/esm/models/get-structure-request.js +14 -0
- package/dist/esm/models/get-structure-response.d.ts +26 -0
- package/dist/esm/models/get-structure-response.js +14 -0
- package/dist/esm/models/global-allowance-amount.d.ts +16 -0
- package/dist/esm/models/global-allowance-amount.js +14 -0
- package/dist/esm/models/httpvalidation-error.d.ts +2 -2
- package/dist/esm/models/httpvalidation-error.js +2 -2
- package/dist/esm/models/incoming-invoice.d.ts +68 -0
- package/dist/esm/models/incoming-invoice.js +14 -0
- package/dist/esm/models/incoming-supplier.d.ts +29 -0
- package/dist/esm/models/incoming-supplier.js +14 -0
- package/dist/esm/models/index.d.ts +99 -84
- package/dist/esm/models/index.js +99 -84
- package/dist/esm/models/invoice-format.d.ts +20 -0
- package/dist/esm/models/invoice-format.js +21 -0
- package/dist/esm/models/invoice-line-allowance-amount.d.ts +16 -0
- package/dist/esm/models/invoice-line-allowance-amount.js +14 -0
- package/dist/esm/models/invoice-line.d.ts +39 -0
- package/dist/esm/models/invoice-line.js +14 -0
- package/dist/esm/models/invoice-note.d.ts +18 -0
- package/dist/esm/models/invoice-note.js +14 -0
- package/dist/esm/models/invoice-references.d.ts +27 -0
- package/dist/esm/models/invoice-references.js +14 -0
- package/dist/esm/models/invoice-status.d.ts +25 -0
- package/dist/esm/models/invoice-status.js +14 -0
- package/dist/esm/models/invoice-totals-prepayment.d.ts +16 -0
- package/dist/esm/models/invoice-totals-prepayment.js +14 -0
- package/dist/esm/models/invoice-totals.d.ts +29 -0
- package/dist/esm/models/invoice-totals.js +14 -0
- package/dist/esm/models/invoice-type-code.d.ts +97 -0
- package/dist/esm/models/invoice-type-code.js +98 -0
- package/dist/esm/models/invoicing-framework-code.d.ts +25 -0
- package/dist/esm/models/invoicing-framework-code.js +26 -0
- package/dist/esm/models/invoicing-framework.d.ts +22 -0
- package/dist/esm/models/invoicing-framework.js +14 -0
- package/dist/esm/models/line-net-amount.d.ts +16 -0
- package/dist/esm/models/line-net-amount.js +14 -0
- package/dist/esm/models/mandatory-note-schema.d.ts +34 -0
- package/dist/esm/models/mandatory-note-schema.js +14 -0
- package/dist/esm/models/manual-rate.d.ts +16 -0
- package/dist/esm/models/manual-rate.js +14 -0
- package/dist/esm/models/manual-vat-rate.d.ts +16 -0
- package/dist/esm/models/manual-vat-rate.js +14 -0
- package/dist/esm/models/operation-nature.d.ts +31 -0
- package/dist/esm/models/operation-nature.js +32 -0
- package/dist/esm/models/output-format.d.ts +19 -0
- package/dist/esm/models/output-format.js +20 -0
- package/dist/esm/models/page-dimensions-schema.d.ts +24 -0
- package/dist/esm/models/page-dimensions-schema.js +14 -0
- package/dist/esm/models/payee.d.ts +26 -0
- package/dist/esm/models/payee.js +14 -0
- package/dist/esm/models/payment-means.d.ts +29 -0
- package/dist/esm/models/payment-means.js +30 -0
- package/dist/esm/models/pdfvalidation-result-api.d.ts +93 -0
- package/dist/esm/models/pdfvalidation-result-api.js +14 -0
- package/dist/esm/models/pdpcredentials.d.ts +33 -0
- package/dist/esm/models/pdpcredentials.js +14 -0
- package/dist/esm/models/postal-address.d.ts +21 -0
- package/dist/esm/models/postal-address.js +14 -0
- package/dist/esm/models/processing-options.d.ts +33 -0
- package/dist/esm/models/processing-options.js +14 -0
- package/dist/esm/models/quantity.d.ts +16 -0
- package/dist/esm/models/quantity.js +14 -0
- package/dist/esm/models/recipient.d.ts +24 -0
- package/dist/esm/models/recipient.js +14 -0
- package/dist/esm/models/scheme-id.d.ts +5 -5
- package/dist/esm/models/scheme-id.js +5 -5
- package/dist/esm/models/search-flow-request.d.ts +34 -0
- package/dist/esm/models/search-flow-request.js +14 -0
- package/dist/esm/models/search-flow-response.d.ts +33 -0
- package/dist/esm/models/search-flow-response.js +14 -0
- package/dist/esm/models/search-services-response.d.ts +24 -0
- package/dist/esm/models/search-services-response.js +14 -0
- package/dist/esm/models/search-structure-request.d.ts +25 -0
- package/dist/esm/models/search-structure-request.js +14 -0
- package/dist/esm/models/search-structure-response.d.ts +30 -0
- package/dist/esm/models/search-structure-response.js +14 -0
- package/dist/esm/models/signature-info-api.d.ts +25 -0
- package/dist/esm/models/signature-info-api.js +14 -0
- package/dist/esm/models/signature-info.d.ts +5 -5
- package/dist/esm/models/signature-info.js +2 -2
- package/dist/esm/models/signature-parameters.d.ts +34 -0
- package/dist/esm/models/signature-parameters.js +14 -0
- package/dist/esm/models/simplified-invoice-data.d.ts +46 -0
- package/dist/esm/models/simplified-invoice-data.js +14 -0
- package/dist/esm/models/structure-info.d.ts +13 -13
- package/dist/esm/models/structure-info.js +2 -2
- package/dist/esm/models/structure-parameters.d.ts +28 -0
- package/dist/esm/models/structure-parameters.js +14 -0
- package/dist/esm/models/structure-service.d.ts +32 -0
- package/dist/esm/models/structure-service.js +14 -0
- package/dist/esm/models/submission-mode.d.ts +23 -0
- package/dist/esm/models/submission-mode.js +24 -0
- package/dist/esm/models/submit-complete-invoice-request.d.ts +34 -0
- package/dist/esm/models/submit-complete-invoice-request.js +14 -0
- package/dist/esm/models/submit-complete-invoice-response.d.ts +53 -0
- package/dist/esm/models/submit-complete-invoice-response.js +17 -0
- package/dist/esm/models/submit-flow-request.d.ts +31 -0
- package/dist/esm/models/submit-flow-request.js +14 -0
- package/dist/esm/models/submit-flow-response.d.ts +38 -0
- package/dist/esm/models/submit-flow-response.js +14 -0
- package/dist/esm/models/submit-invoice-request.d.ts +44 -0
- package/dist/esm/models/submit-invoice-request.js +14 -0
- package/dist/esm/models/submit-invoice-response.d.ts +26 -0
- package/dist/esm/models/submit-invoice-response.js +14 -0
- package/dist/esm/models/supplementary-attachment.d.ts +21 -0
- package/dist/esm/models/supplementary-attachment.js +14 -0
- package/dist/esm/models/supplier.d.ts +28 -0
- package/dist/esm/models/supplier.js +14 -0
- package/dist/esm/models/task-response.d.ts +20 -0
- package/dist/esm/models/task-response.js +14 -0
- package/dist/esm/models/task-status.d.ts +28 -0
- package/dist/esm/models/task-status.js +14 -0
- package/dist/esm/models/taxable-amount.d.ts +16 -0
- package/dist/esm/models/taxable-amount.js +14 -0
- package/dist/esm/models/total-gross-amount.d.ts +16 -0
- package/dist/esm/models/total-gross-amount.js +14 -0
- package/dist/esm/models/total-net-amount.d.ts +16 -0
- package/dist/esm/models/total-net-amount.js +14 -0
- package/dist/esm/models/total-vatamount.d.ts +16 -0
- package/dist/esm/models/total-vatamount.js +14 -0
- package/dist/esm/models/unit-net-price.d.ts +16 -0
- package/dist/esm/models/unit-net-price.js +14 -0
- package/dist/esm/models/unit-of-measure.d.ts +29 -0
- package/dist/esm/models/unit-of-measure.js +30 -0
- package/dist/esm/models/validation-error-detail.d.ts +32 -0
- package/dist/esm/models/validation-error-detail.js +14 -0
- package/dist/esm/models/validation-error-loc-inner.d.ts +2 -2
- package/dist/esm/models/validation-error-loc-inner.js +2 -2
- package/dist/esm/models/validation-error-response.d.ts +20 -0
- package/dist/esm/models/validation-error-response.js +14 -0
- package/dist/esm/models/validation-error.d.ts +2 -2
- package/dist/esm/models/validation-error.js +2 -2
- package/dist/esm/models/validation-success-response.d.ts +20 -0
- package/dist/esm/models/validation-success-response.js +14 -0
- package/dist/esm/models/vat-amount.d.ts +16 -0
- package/dist/esm/models/vat-amount.js +14 -0
- package/dist/esm/models/vataccounting-code.d.ts +25 -0
- package/dist/esm/models/vataccounting-code.js +26 -0
- package/dist/esm/models/vatamount.d.ts +16 -0
- package/dist/esm/models/vatamount.js +14 -0
- package/dist/esm/models/vatcategory.d.ts +26 -0
- package/dist/esm/models/vatcategory.js +27 -0
- package/dist/esm/models/vatline.d.ts +27 -0
- package/dist/esm/models/vatline.js +14 -0
- package/dist/esm/models/verification-success-response.d.ts +56 -0
- package/dist/esm/models/verification-success-response.js +14 -0
- package/dist/esm/models/verified-field-schema.d.ts +42 -0
- package/dist/esm/models/verified-field-schema.js +14 -0
- package/dist/esm/src/helpers/client.d.ts +265 -0
- package/dist/esm/src/helpers/client.js +817 -0
- package/dist/esm/src/helpers/exceptions.d.ts +23 -0
- package/dist/esm/src/helpers/exceptions.js +27 -0
- package/dist/esm/src/helpers/index.d.ts +3 -0
- package/dist/esm/src/helpers/index.js +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/acknowledgment-status.d.ts +20 -0
- package/dist/models/acknowledgment-status.js +24 -0
- package/dist/models/afnorcredentials.d.ts +19 -0
- package/dist/models/afnorcredentials.js +15 -0
- package/dist/models/afnordestination.d.ts +34 -0
- package/dist/models/afnordestination.js +24 -0
- package/dist/models/afnorhealth-check-response.d.ts +28 -0
- package/dist/models/afnorhealth-check-response.js +15 -0
- package/dist/models/afnorresult.d.ts +30 -0
- package/dist/models/afnorresult.js +15 -0
- package/dist/models/allowance-reason-code.d.ts +24 -0
- package/dist/models/allowance-reason-code.js +28 -0
- package/dist/models/amount-due.d.ts +16 -0
- package/dist/models/amount-due.js +15 -0
- package/dist/models/apierror.d.ts +26 -0
- package/dist/models/apierror.js +15 -0
- package/dist/models/apiprofile.d.ts +21 -0
- package/dist/models/apiprofile.js +25 -0
- package/dist/models/bounding-box-schema.d.ts +44 -0
- package/dist/models/bounding-box-schema.js +15 -0
- package/dist/models/celery-status.d.ts +22 -0
- package/dist/models/celery-status.js +26 -0
- package/dist/models/certificate-info-response.d.ts +23 -23
- package/dist/models/certificate-info-response.js +2 -2
- package/dist/models/chorus-pro-destination.d.ts +23 -0
- package/dist/models/chorus-pro-destination.js +19 -0
- package/dist/models/chorus-pro-result.d.ts +22 -0
- package/dist/models/chorus-pro-result.js +15 -0
- package/dist/models/destination.d.ts +7 -7
- package/dist/models/destination.js +2 -2
- package/dist/models/document-type.d.ts +37 -0
- package/dist/models/document-type.js +41 -0
- package/dist/models/electronic-address.d.ts +19 -0
- package/dist/models/electronic-address.js +15 -0
- package/dist/models/enriched-invoice-info.d.ts +24 -0
- package/dist/models/enriched-invoice-info.js +15 -0
- package/dist/models/error-level.d.ts +16 -0
- package/dist/models/error-level.js +20 -0
- package/dist/models/error-source.d.ts +22 -0
- package/dist/models/error-source.js +26 -0
- package/dist/models/factur-xpdfinfo.d.ts +28 -0
- package/dist/models/factur-xpdfinfo.js +15 -0
- package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts +36 -0
- package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +15 -0
- package/dist/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts +24 -0
- package/dist/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js +15 -0
- package/dist/models/facture-factur-x.d.ts +30 -28
- package/dist/models/facture-factur-x.js +2 -2
- package/dist/models/field-status.d.ts +22 -0
- package/dist/models/field-status.js +26 -0
- package/dist/models/flow-direction.d.ts +19 -0
- package/dist/models/flow-direction.js +23 -0
- package/dist/models/flow-profile.d.ts +20 -0
- package/dist/models/flow-profile.js +24 -0
- package/dist/models/flow-summary.d.ts +24 -0
- package/dist/models/flow-summary.js +15 -0
- package/dist/models/flow-syntax.d.ts +22 -0
- package/dist/models/flow-syntax.js +26 -0
- package/dist/models/flow-type.d.ts +22 -0
- package/dist/models/flow-type.js +26 -0
- package/dist/models/generate-certificate-request.d.ts +21 -21
- package/dist/models/generate-certificate-request.js +2 -2
- package/dist/models/generate-certificate-response.d.ts +12 -12
- package/dist/models/generate-certificate-response.js +2 -2
- package/dist/models/get-chorus-pro-id-request.d.ts +26 -0
- package/dist/models/get-chorus-pro-id-request.js +15 -0
- package/dist/models/get-chorus-pro-id-response.d.ts +29 -0
- package/dist/models/get-chorus-pro-id-response.js +15 -0
- package/dist/models/get-invoice-request.d.ts +22 -0
- package/dist/models/get-invoice-request.js +15 -0
- package/dist/models/get-invoice-response.d.ts +26 -0
- package/dist/models/get-invoice-response.js +15 -0
- package/dist/models/get-structure-request.d.ts +26 -0
- package/dist/models/get-structure-request.js +15 -0
- package/dist/models/get-structure-response.d.ts +26 -0
- package/dist/models/get-structure-response.js +15 -0
- package/dist/models/global-allowance-amount.d.ts +16 -0
- package/dist/models/global-allowance-amount.js +15 -0
- package/dist/models/httpvalidation-error.d.ts +2 -2
- package/dist/models/httpvalidation-error.js +2 -2
- package/dist/models/incoming-invoice.d.ts +68 -0
- package/dist/models/incoming-invoice.js +15 -0
- package/dist/models/incoming-supplier.d.ts +29 -0
- package/dist/models/incoming-supplier.js +15 -0
- package/dist/models/index.d.ts +99 -84
- package/dist/models/index.js +99 -84
- package/dist/models/invoice-format.d.ts +20 -0
- package/dist/models/invoice-format.js +24 -0
- package/dist/models/invoice-line-allowance-amount.d.ts +16 -0
- package/dist/models/invoice-line-allowance-amount.js +15 -0
- package/dist/models/invoice-line.d.ts +39 -0
- package/dist/models/invoice-line.js +15 -0
- package/dist/models/invoice-note.d.ts +18 -0
- package/dist/models/invoice-note.js +15 -0
- package/dist/models/invoice-references.d.ts +27 -0
- package/dist/models/invoice-references.js +15 -0
- package/dist/models/invoice-status.d.ts +25 -0
- package/dist/models/invoice-status.js +15 -0
- package/dist/models/invoice-totals-prepayment.d.ts +16 -0
- package/dist/models/invoice-totals-prepayment.js +15 -0
- package/dist/models/invoice-totals.d.ts +29 -0
- package/dist/models/invoice-totals.js +15 -0
- package/dist/models/invoice-type-code.d.ts +97 -0
- package/dist/models/invoice-type-code.js +101 -0
- package/dist/models/invoicing-framework-code.d.ts +25 -0
- package/dist/models/invoicing-framework-code.js +29 -0
- package/dist/models/invoicing-framework.d.ts +22 -0
- package/dist/models/invoicing-framework.js +15 -0
- package/dist/models/line-net-amount.d.ts +16 -0
- package/dist/models/line-net-amount.js +15 -0
- package/dist/models/mandatory-note-schema.d.ts +34 -0
- package/dist/models/mandatory-note-schema.js +15 -0
- package/dist/models/manual-rate.d.ts +16 -0
- package/dist/models/manual-rate.js +15 -0
- package/dist/models/manual-vat-rate.d.ts +16 -0
- package/dist/models/manual-vat-rate.js +15 -0
- package/dist/models/operation-nature.d.ts +31 -0
- package/dist/models/operation-nature.js +35 -0
- package/dist/models/output-format.d.ts +19 -0
- package/dist/models/output-format.js +23 -0
- package/dist/models/page-dimensions-schema.d.ts +24 -0
- package/dist/models/page-dimensions-schema.js +15 -0
- package/dist/models/payee.d.ts +26 -0
- package/dist/models/payee.js +15 -0
- package/dist/models/payment-means.d.ts +29 -0
- package/dist/models/payment-means.js +33 -0
- package/dist/models/pdfvalidation-result-api.d.ts +93 -0
- package/dist/models/pdfvalidation-result-api.js +15 -0
- package/dist/models/pdpcredentials.d.ts +33 -0
- package/dist/models/pdpcredentials.js +15 -0
- package/dist/models/postal-address.d.ts +21 -0
- package/dist/models/postal-address.js +15 -0
- package/dist/models/processing-options.d.ts +33 -0
- package/dist/models/processing-options.js +15 -0
- package/dist/models/quantity.d.ts +16 -0
- package/dist/models/quantity.js +15 -0
- package/dist/models/recipient.d.ts +24 -0
- package/dist/models/recipient.js +15 -0
- package/dist/models/scheme-id.d.ts +5 -5
- package/dist/models/scheme-id.js +5 -5
- package/dist/models/search-flow-request.d.ts +34 -0
- package/dist/models/search-flow-request.js +15 -0
- package/dist/models/search-flow-response.d.ts +33 -0
- package/dist/models/search-flow-response.js +15 -0
- package/dist/models/search-services-response.d.ts +24 -0
- package/dist/models/search-services-response.js +15 -0
- package/dist/models/search-structure-request.d.ts +25 -0
- package/dist/models/search-structure-request.js +15 -0
- package/dist/models/search-structure-response.d.ts +30 -0
- package/dist/models/search-structure-response.js +15 -0
- package/dist/models/signature-info-api.d.ts +25 -0
- package/dist/models/signature-info-api.js +15 -0
- package/dist/models/signature-info.d.ts +5 -5
- package/dist/models/signature-info.js +2 -2
- package/dist/models/signature-parameters.d.ts +34 -0
- package/dist/models/signature-parameters.js +15 -0
- package/dist/models/simplified-invoice-data.d.ts +46 -0
- package/dist/models/simplified-invoice-data.js +15 -0
- package/dist/models/structure-info.d.ts +13 -13
- package/dist/models/structure-info.js +2 -2
- package/dist/models/structure-parameters.d.ts +28 -0
- package/dist/models/structure-parameters.js +15 -0
- package/dist/models/structure-service.d.ts +32 -0
- package/dist/models/structure-service.js +15 -0
- package/dist/models/submission-mode.d.ts +23 -0
- package/dist/models/submission-mode.js +27 -0
- package/dist/models/submit-complete-invoice-request.d.ts +34 -0
- package/dist/models/submit-complete-invoice-request.js +15 -0
- package/dist/models/submit-complete-invoice-response.d.ts +53 -0
- package/dist/models/submit-complete-invoice-response.js +20 -0
- package/dist/models/submit-flow-request.d.ts +31 -0
- package/dist/models/submit-flow-request.js +15 -0
- package/dist/models/submit-flow-response.d.ts +38 -0
- package/dist/models/submit-flow-response.js +15 -0
- package/dist/models/submit-invoice-request.d.ts +44 -0
- package/dist/models/submit-invoice-request.js +15 -0
- package/dist/models/submit-invoice-response.d.ts +26 -0
- package/dist/models/submit-invoice-response.js +15 -0
- package/dist/models/supplementary-attachment.d.ts +21 -0
- package/dist/models/supplementary-attachment.js +15 -0
- package/dist/models/supplier.d.ts +28 -0
- package/dist/models/supplier.js +15 -0
- package/dist/models/task-response.d.ts +20 -0
- package/dist/models/task-response.js +15 -0
- package/dist/models/task-status.d.ts +28 -0
- package/dist/models/task-status.js +15 -0
- package/dist/models/taxable-amount.d.ts +16 -0
- package/dist/models/taxable-amount.js +15 -0
- package/dist/models/total-gross-amount.d.ts +16 -0
- package/dist/models/total-gross-amount.js +15 -0
- package/dist/models/total-net-amount.d.ts +16 -0
- package/dist/models/total-net-amount.js +15 -0
- package/dist/models/total-vatamount.d.ts +16 -0
- package/dist/models/total-vatamount.js +15 -0
- package/dist/models/unit-net-price.d.ts +16 -0
- package/dist/models/unit-net-price.js +15 -0
- package/dist/models/unit-of-measure.d.ts +29 -0
- package/dist/models/unit-of-measure.js +33 -0
- package/dist/models/validation-error-detail.d.ts +32 -0
- package/dist/models/validation-error-detail.js +15 -0
- package/dist/models/validation-error-loc-inner.d.ts +2 -2
- package/dist/models/validation-error-loc-inner.js +2 -2
- package/dist/models/validation-error-response.d.ts +20 -0
- package/dist/models/validation-error-response.js +15 -0
- package/dist/models/validation-error.d.ts +2 -2
- package/dist/models/validation-error.js +2 -2
- package/dist/models/validation-success-response.d.ts +20 -0
- package/dist/models/validation-success-response.js +15 -0
- package/dist/models/vat-amount.d.ts +16 -0
- package/dist/models/vat-amount.js +15 -0
- package/dist/models/vataccounting-code.d.ts +25 -0
- package/dist/models/vataccounting-code.js +29 -0
- package/dist/models/vatamount.d.ts +16 -0
- package/dist/models/vatamount.js +15 -0
- package/dist/models/vatcategory.d.ts +26 -0
- package/dist/models/vatcategory.js +30 -0
- package/dist/models/vatline.d.ts +27 -0
- package/dist/models/vatline.js +15 -0
- package/dist/models/verification-success-response.d.ts +56 -0
- package/dist/models/verification-success-response.js +15 -0
- package/dist/models/verified-field-schema.d.ts +42 -0
- package/dist/models/verified-field-schema.js +15 -0
- package/dist/src/helpers/client.d.ts +265 -0
- package/dist/src/helpers/client.js +866 -0
- package/dist/src/helpers/exceptions.d.ts +23 -0
- package/dist/src/helpers/exceptions.js +35 -0
- package/dist/src/helpers/index.d.ts +3 -0
- package/dist/src/helpers/index.js +24 -0
- package/docs/AFNORCredentials.md +25 -0
- package/docs/AFNORDestination.md +27 -0
- package/docs/AFNORHealthCheckResponse.md +25 -0
- package/docs/AFNORPDPPAApi.md +112 -4
- package/docs/AFNORPDPPADirectoryServiceApi.md +70 -70
- package/docs/AFNORPDPPAFlowServiceApi.md +23 -23
- package/docs/AFNORResult.md +29 -0
- package/docs/APIError.md +25 -0
- package/docs/APIProfile.md +15 -0
- package/docs/AcknowledgmentStatus.md +13 -0
- package/docs/AllowanceReasonCode.md +21 -0
- package/docs/AmountDue.md +19 -0
- package/docs/BoundingBoxSchema.md +33 -0
- package/docs/CeleryStatus.md +17 -0
- package/docs/CertificateInfoResponse.md +21 -21
- package/docs/ChorusProApi.md +116 -131
- package/docs/ChorusProDestination.md +23 -0
- package/docs/ChorusProResult.md +25 -0
- package/docs/Destination.md +6 -6
- package/docs/DocumentType.md +17 -0
- package/docs/ElectronicAddress.md +23 -0
- package/docs/EnrichedInvoiceInfo.md +35 -0
- package/docs/ErrorLevel.md +10 -0
- package/docs/ErrorSource.md +22 -0
- package/docs/FacturXPDFInfo.md +25 -0
- package/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +29 -0
- package/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +29 -0
- package/docs/FactureFacturX.md +31 -29
- package/docs/FieldStatus.md +17 -0
- package/docs/FlowDirection.md +11 -0
- package/docs/FlowProfile.md +13 -0
- package/docs/FlowSummary.md +35 -0
- package/docs/FlowSyntax.md +17 -0
- package/docs/FlowType.md +17 -0
- package/docs/GenerateCertificateRequest.md +20 -20
- package/docs/GenerateCertificateResponse.md +11 -11
- package/docs/GetChorusProIdRequest.md +25 -0
- package/docs/GetChorusProIdResponse.md +27 -0
- package/docs/GetInvoiceRequest.md +23 -0
- package/docs/GetInvoiceResponse.md +37 -0
- package/docs/GetStructureRequest.md +25 -0
- package/docs/GetStructureResponse.md +37 -0
- package/docs/GlobalAllowanceAmount.md +19 -0
- package/docs/HealthApi.md +97 -0
- package/docs/IncomingInvoice.md +57 -0
- package/docs/IncomingSupplier.md +35 -0
- package/docs/InvoiceFormat.md +13 -0
- package/docs/InvoiceLine.md +49 -0
- package/docs/InvoiceLineAllowanceAmount.md +19 -0
- package/docs/InvoiceNote.md +23 -0
- package/docs/InvoiceProcessingApi.md +670 -0
- package/docs/InvoiceReferences.md +35 -0
- package/docs/InvoiceStatus.md +25 -0
- package/docs/InvoiceTotals.md +33 -0
- package/docs/InvoiceTotalsPrepayment.md +19 -0
- package/docs/InvoiceTypeCode.md +71 -0
- package/docs/InvoicingFramework.md +27 -0
- package/docs/InvoicingFrameworkCode.md +23 -0
- package/docs/LineNetAmount.md +19 -0
- package/docs/MandatoryNoteSchema.md +33 -0
- package/docs/ManualRate.md +19 -0
- package/docs/ManualVatRate.md +19 -0
- package/docs/OperationNature.md +35 -0
- package/docs/OutputFormat.md +11 -0
- package/docs/PDFValidationResultAPI.md +65 -0
- package/docs/PDFXMLVerificationApi.md +335 -0
- package/docs/PDPCredentials.md +29 -0
- package/docs/PageDimensionsSchema.md +23 -0
- package/docs/Payee.md +31 -0
- package/docs/PaymentMeans.md +31 -0
- package/docs/PostalAddress.md +29 -0
- package/docs/ProcessingOptions.md +27 -0
- package/docs/Quantity.md +19 -0
- package/docs/Recipient.md +31 -0
- package/docs/SchemeID.md +1 -1
- package/docs/SearchFlowRequest.md +37 -0
- package/docs/SearchFlowResponse.md +27 -0
- package/docs/SearchServicesResponse.md +27 -0
- package/docs/SearchStructureRequest.md +29 -0
- package/docs/SearchStructureResponse.md +27 -0
- package/docs/SignatureInfo.md +3 -3
- package/docs/SignatureInfoAPI.md +31 -0
- package/docs/SignatureParameters.md +37 -0
- package/docs/SimplifiedInvoiceData.md +37 -0
- package/docs/StructureInfo.md +11 -11
- package/docs/StructureParameters.md +25 -0
- package/docs/StructureService.md +27 -0
- package/docs/SubmissionMode.md +19 -0
- package/docs/SubmitCompleteInvoiceRequest.md +29 -0
- package/docs/SubmitCompleteInvoiceResponse.md +37 -0
- package/docs/SubmitFlowRequest.md +31 -0
- package/docs/SubmitFlowResponse.md +33 -0
- package/docs/SubmitInvoiceRequest.md +49 -0
- package/docs/SubmitInvoiceResponse.md +27 -0
- package/docs/SupplementaryAttachment.md +29 -0
- package/docs/Supplier.md +39 -0
- package/docs/TaskResponse.md +21 -0
- package/docs/TaskStatus.md +25 -0
- package/docs/TaxableAmount.md +19 -0
- package/docs/TotalGrossAmount.md +19 -0
- package/docs/TotalNetAmount.md +19 -0
- package/docs/TotalVATAmount.md +19 -0
- package/docs/UnitNetPrice.md +19 -0
- package/docs/UnitOfMeasure.md +31 -0
- package/docs/UserApi.md +52 -0
- package/docs/VATAccountingCode.md +23 -0
- package/docs/VATAmount.md +19 -0
- package/docs/VATCategory.md +25 -0
- package/docs/VATLine.md +33 -0
- package/docs/ValidationErrorDetail.md +29 -0
- package/docs/ValidationErrorResponse.md +21 -0
- package/docs/ValidationSuccessResponse.md +21 -0
- package/docs/VatAmount.md +19 -0
- package/docs/VerificationSuccessResponse.md +39 -0
- package/docs/VerifiedFieldSchema.md +37 -0
- package/index.ts +2 -2
- package/models/acknowledgment-status.ts +30 -0
- package/models/afnorcredentials.ts +25 -0
- package/models/afnordestination.ts +46 -0
- package/models/afnorhealth-check-response.ts +34 -0
- package/models/afnorresult.ts +36 -0
- package/models/allowance-reason-code.ts +34 -0
- package/models/amount-due.ts +22 -0
- package/models/apierror.ts +34 -0
- package/models/apiprofile.ts +31 -0
- package/models/bounding-box-schema.ts +50 -0
- package/models/celery-status.ts +32 -0
- package/models/certificate-info-response.ts +23 -23
- package/models/chorus-pro-destination.ts +34 -0
- package/models/chorus-pro-result.ts +28 -0
- package/models/destination.ts +7 -7
- package/models/document-type.ts +47 -0
- package/models/electronic-address.ts +29 -0
- package/models/enriched-invoice-info.ts +30 -0
- package/models/error-level.ts +26 -0
- package/models/error-source.ts +32 -0
- package/models/factur-xpdfinfo.ts +34 -0
- package/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts +42 -0
- package/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts +30 -0
- package/models/facture-factur-x.ts +32 -28
- package/models/field-status.ts +32 -0
- package/models/flow-direction.ts +29 -0
- package/models/flow-profile.ts +30 -0
- package/models/flow-summary.ts +30 -0
- package/models/flow-syntax.ts +32 -0
- package/models/flow-type.ts +32 -0
- package/models/generate-certificate-request.ts +21 -21
- package/models/generate-certificate-response.ts +12 -12
- package/models/get-chorus-pro-id-request.ts +34 -0
- package/models/get-chorus-pro-id-response.ts +35 -0
- package/models/get-invoice-request.ts +30 -0
- package/models/get-invoice-response.ts +34 -0
- package/models/get-structure-request.ts +34 -0
- package/models/get-structure-response.ts +34 -0
- package/models/global-allowance-amount.ts +22 -0
- package/models/httpvalidation-error.ts +2 -2
- package/models/incoming-invoice.ts +82 -0
- package/models/incoming-supplier.ts +39 -0
- package/models/index.ts +99 -84
- package/models/invoice-format.ts +30 -0
- package/models/invoice-line-allowance-amount.ts +22 -0
- package/models/invoice-line.ts +63 -0
- package/models/invoice-note.ts +24 -0
- package/models/invoice-references.ts +41 -0
- package/models/invoice-status.ts +31 -0
- package/models/invoice-totals-prepayment.ts +22 -0
- package/models/invoice-totals.ts +47 -0
- package/models/invoice-type-code.ts +107 -0
- package/models/invoicing-framework-code.ts +35 -0
- package/models/invoicing-framework.ts +34 -0
- package/models/line-net-amount.ts +22 -0
- package/models/mandatory-note-schema.ts +46 -0
- package/models/manual-rate.ts +22 -0
- package/models/manual-vat-rate.ts +22 -0
- package/models/operation-nature.ts +41 -0
- package/models/output-format.ts +29 -0
- package/models/page-dimensions-schema.ts +30 -0
- package/models/payee.ts +34 -0
- package/models/payment-means.ts +39 -0
- package/models/pdfvalidation-result-api.ts +99 -0
- package/models/pdpcredentials.ts +39 -0
- package/models/postal-address.ts +27 -0
- package/models/processing-options.ts +43 -0
- package/models/quantity.ts +22 -0
- package/models/recipient.ts +34 -0
- package/models/scheme-id.ts +5 -5
- package/models/search-flow-request.ts +48 -0
- package/models/search-flow-response.ts +41 -0
- package/models/search-services-response.ts +32 -0
- package/models/search-structure-request.ts +33 -0
- package/models/search-structure-response.ts +38 -0
- package/models/signature-info-api.ts +31 -0
- package/models/signature-info.ts +5 -5
- package/models/signature-parameters.ts +40 -0
- package/models/simplified-invoice-data.ts +46 -0
- package/models/structure-info.ts +13 -13
- package/models/structure-parameters.ts +34 -0
- package/models/structure-service.ts +38 -0
- package/models/submission-mode.ts +33 -0
- package/models/submit-complete-invoice-request.ts +48 -0
- package/models/submit-complete-invoice-response.ts +72 -0
- package/models/submit-flow-request.ts +45 -0
- package/models/submit-flow-response.ts +44 -0
- package/models/submit-invoice-request.ts +58 -0
- package/models/submit-invoice-response.ts +32 -0
- package/models/supplementary-attachment.ts +27 -0
- package/models/supplier.ts +38 -0
- package/models/task-response.ts +26 -0
- package/models/task-status.ts +36 -0
- package/models/taxable-amount.ts +22 -0
- package/models/total-gross-amount.ts +22 -0
- package/models/total-net-amount.ts +22 -0
- package/models/total-vatamount.ts +22 -0
- package/models/unit-net-price.ts +22 -0
- package/models/unit-of-measure.ts +39 -0
- package/models/validation-error-detail.ts +44 -0
- package/models/validation-error-loc-inner.ts +2 -2
- package/models/validation-error-response.ts +26 -0
- package/models/validation-error.ts +2 -2
- package/models/validation-success-response.ts +26 -0
- package/models/vat-amount.ts +22 -0
- package/models/vataccounting-code.ts +35 -0
- package/models/vatamount.ts +22 -0
- package/models/vatcategory.ts +36 -0
- package/models/vatline.ts +43 -0
- package/models/verification-success-response.ts +68 -0
- package/models/verified-field-schema.ts +54 -0
- package/package.json +2 -2
- package/src/helpers/client.ts +882 -0
- package/src/helpers/exceptions.ts +32 -0
- package/src/helpers/index.ts +6 -0
- package/tsconfig.esm.json +1 -0
- package/tsconfig.json +1 -0
- package/api/sant-api.ts +0 -176
- package/api/traitement-facture-api.ts +0 -1083
- package/api/utilisateur-api.ts +0 -119
- package/dist/api/sant-api.d.ts +0 -90
- package/dist/api/sant-api.js +0 -181
- package/dist/api/traitement-facture-api.d.ts +0 -480
- package/dist/api/traitement-facture-api.js +0 -1007
- package/dist/api/utilisateur-api.d.ts +0 -62
- package/dist/api/utilisateur-api.js +0 -125
- package/dist/esm/api/sant-api.d.ts +0 -90
- package/dist/esm/api/sant-api.js +0 -174
- package/dist/esm/api/traitement-facture-api.d.ts +0 -480
- package/dist/esm/api/traitement-facture-api.js +0 -1000
- package/dist/esm/api/utilisateur-api.d.ts +0 -62
- package/dist/esm/api/utilisateur-api.js +0 -118
- package/dist/esm/models/adresse-electronique.d.ts +0 -19
- package/dist/esm/models/adresse-electronique.js +0 -14
- package/dist/esm/models/adresse-postale.d.ts +0 -21
- package/dist/esm/models/adresse-postale.js +0 -14
- package/dist/esm/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +0 -20
- package/dist/esm/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js +0 -14
- package/dist/esm/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +0 -20
- package/dist/esm/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.js +0 -14
- package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
- package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js +0 -14
- package/dist/esm/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +0 -20
- package/dist/esm/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js +0 -14
- package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
- package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js +0 -14
- package/dist/esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +0 -20
- package/dist/esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js +0 -14
- package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
- package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js +0 -14
- package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
- package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js +0 -14
- package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js +0 -14
- package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js +0 -14
- package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js +0 -14
- package/dist/esm/models/cadre-de-facturation.d.ts +0 -20
- package/dist/esm/models/cadre-de-facturation.js +0 -14
- package/dist/esm/models/categorie-tva.d.ts +0 -53
- package/dist/esm/models/categorie-tva.js +0 -54
- package/dist/esm/models/chorus-pro-credentials.d.ts +0 -36
- package/dist/esm/models/chorus-pro-credentials.js +0 -14
- package/dist/esm/models/code-cadre-facturation.d.ts +0 -18
- package/dist/esm/models/code-cadre-facturation.js +0 -19
- package/dist/esm/models/code-raison-reduction.d.ts +0 -45
- package/dist/esm/models/code-raison-reduction.js +0 -46
- package/dist/esm/models/consulter-facture-request.d.ts +0 -22
- package/dist/esm/models/consulter-facture-request.js +0 -14
- package/dist/esm/models/consulter-facture-response.d.ts +0 -26
- package/dist/esm/models/consulter-facture-response.js +0 -14
- package/dist/esm/models/consulter-structure-request.d.ts +0 -26
- package/dist/esm/models/consulter-structure-request.js +0 -14
- package/dist/esm/models/consulter-structure-response.d.ts +0 -26
- package/dist/esm/models/consulter-structure-response.js +0 -14
- package/dist/esm/models/credentials-afnor.d.ts +0 -19
- package/dist/esm/models/credentials-afnor.js +0 -14
- package/dist/esm/models/credentials-chorus-pro.d.ts +0 -24
- package/dist/esm/models/credentials-chorus-pro.js +0 -14
- package/dist/esm/models/destinataire.d.ts +0 -24
- package/dist/esm/models/destinataire.js +0 -14
- package/dist/esm/models/destination-afnor.d.ts +0 -34
- package/dist/esm/models/destination-afnor.js +0 -21
- package/dist/esm/models/destination-chorus-pro.d.ts +0 -23
- package/dist/esm/models/destination-chorus-pro.js +0 -16
- package/dist/esm/models/donnees-facture-simplifiees.d.ts +0 -46
- package/dist/esm/models/donnees-facture-simplifiees.js +0 -14
- package/dist/esm/models/facture-enrichie-info.d.ts +0 -24
- package/dist/esm/models/facture-enrichie-info.js +0 -14
- package/dist/esm/models/format-sortie.d.ts +0 -16
- package/dist/esm/models/format-sortie.js +0 -17
- package/dist/esm/models/fournisseur.d.ts +0 -28
- package/dist/esm/models/fournisseur.js +0 -14
- package/dist/esm/models/information-signature-api.d.ts +0 -25
- package/dist/esm/models/information-signature-api.js +0 -14
- package/dist/esm/models/ligne-de-poste-montant-remise-ht.d.ts +0 -16
- package/dist/esm/models/ligne-de-poste-montant-remise-ht.js +0 -14
- package/dist/esm/models/ligne-de-poste-taux-tva-manuel.d.ts +0 -16
- package/dist/esm/models/ligne-de-poste-taux-tva-manuel.js +0 -14
- package/dist/esm/models/ligne-de-poste.d.ts +0 -39
- package/dist/esm/models/ligne-de-poste.js +0 -14
- package/dist/esm/models/ligne-de-tva.d.ts +0 -25
- package/dist/esm/models/ligne-de-tva.js +0 -14
- package/dist/esm/models/mode-depot.d.ts +0 -20
- package/dist/esm/models/mode-depot.js +0 -21
- package/dist/esm/models/mode-paiement.d.ts +0 -23
- package/dist/esm/models/mode-paiement.js +0 -24
- package/dist/esm/models/montant-apayer.d.ts +0 -16
- package/dist/esm/models/montant-apayer.js +0 -14
- package/dist/esm/models/montant-base-ht.d.ts +0 -16
- package/dist/esm/models/montant-base-ht.js +0 -14
- package/dist/esm/models/montant-ht-total.d.ts +0 -16
- package/dist/esm/models/montant-ht-total.js +0 -14
- package/dist/esm/models/montant-remise-globale-ttc.d.ts +0 -16
- package/dist/esm/models/montant-remise-globale-ttc.js +0 -14
- package/dist/esm/models/montant-total-acompte.d.ts +0 -16
- package/dist/esm/models/montant-total-acompte.js +0 -14
- package/dist/esm/models/montant-total-ligne-ht.d.ts +0 -16
- package/dist/esm/models/montant-total-ligne-ht.js +0 -14
- package/dist/esm/models/montant-total.d.ts +0 -29
- package/dist/esm/models/montant-total.js +0 -14
- package/dist/esm/models/montant-ttc-total.d.ts +0 -16
- package/dist/esm/models/montant-ttc-total.js +0 -14
- package/dist/esm/models/montant-tva-ligne.d.ts +0 -16
- package/dist/esm/models/montant-tva-ligne.js +0 -14
- package/dist/esm/models/montant-tva-total.d.ts +0 -16
- package/dist/esm/models/montant-tva-total.js +0 -14
- package/dist/esm/models/montant-tva.d.ts +0 -16
- package/dist/esm/models/montant-tva.js +0 -14
- package/dist/esm/models/montant-unitaire-ht.d.ts +0 -16
- package/dist/esm/models/montant-unitaire-ht.js +0 -14
- package/dist/esm/models/note.d.ts +0 -18
- package/dist/esm/models/note.js +0 -14
- package/dist/esm/models/obtenir-id-chorus-pro-request.d.ts +0 -26
- package/dist/esm/models/obtenir-id-chorus-pro-request.js +0 -14
- package/dist/esm/models/obtenir-id-chorus-pro-response.d.ts +0 -29
- package/dist/esm/models/obtenir-id-chorus-pro-response.js +0 -14
- package/dist/esm/models/options-processing.d.ts +0 -33
- package/dist/esm/models/options-processing.js +0 -14
- package/dist/esm/models/parametres-signature.d.ts +0 -34
- package/dist/esm/models/parametres-signature.js +0 -14
- package/dist/esm/models/parametres-structure.d.ts +0 -28
- package/dist/esm/models/parametres-structure.js +0 -14
- package/dist/esm/models/pdffactur-xinfo.d.ts +0 -28
- package/dist/esm/models/pdffactur-xinfo.js +0 -14
- package/dist/esm/models/piece-jointe-complementaire.d.ts +0 -21
- package/dist/esm/models/piece-jointe-complementaire.js +0 -14
- package/dist/esm/models/profil-api.d.ts +0 -18
- package/dist/esm/models/profil-api.js +0 -19
- package/dist/esm/models/quantite.d.ts +0 -16
- package/dist/esm/models/quantite.js +0 -14
- package/dist/esm/models/quota-info.d.ts +0 -21
- package/dist/esm/models/quota-info.js +0 -14
- package/dist/esm/models/rechercher-services-response.d.ts +0 -24
- package/dist/esm/models/rechercher-services-response.js +0 -14
- package/dist/esm/models/rechercher-structure-request.d.ts +0 -25
- package/dist/esm/models/rechercher-structure-request.js +0 -14
- package/dist/esm/models/rechercher-structure-response.d.ts +0 -30
- package/dist/esm/models/rechercher-structure-response.js +0 -14
- package/dist/esm/models/references.d.ts +0 -27
- package/dist/esm/models/references.js +0 -14
- package/dist/esm/models/reponse-tache.d.ts +0 -17
- package/dist/esm/models/reponse-tache.js +0 -14
- package/dist/esm/models/reponse-validation-erreur.d.ts +0 -17
- package/dist/esm/models/reponse-validation-erreur.js +0 -14
- package/dist/esm/models/reponse-validation-succes.d.ts +0 -17
- package/dist/esm/models/reponse-validation-succes.js +0 -14
- package/dist/esm/models/resultat-afnor.d.ts +0 -30
- package/dist/esm/models/resultat-afnor.js +0 -14
- package/dist/esm/models/resultat-chorus-pro.d.ts +0 -22
- package/dist/esm/models/resultat-chorus-pro.js +0 -14
- package/dist/esm/models/resultat-validation-pdfapi.d.ts +0 -93
- package/dist/esm/models/resultat-validation-pdfapi.js +0 -14
- package/dist/esm/models/service-structure.d.ts +0 -32
- package/dist/esm/models/service-structure.js +0 -14
- package/dist/esm/models/soumettre-facture-complete-request.d.ts +0 -34
- package/dist/esm/models/soumettre-facture-complete-request.js +0 -14
- package/dist/esm/models/soumettre-facture-complete-response.d.ts +0 -53
- package/dist/esm/models/soumettre-facture-complete-response.js +0 -17
- package/dist/esm/models/soumettre-facture-request.d.ts +0 -44
- package/dist/esm/models/soumettre-facture-request.js +0 -14
- package/dist/esm/models/soumettre-facture-response.d.ts +0 -26
- package/dist/esm/models/soumettre-facture-response.js +0 -14
- package/dist/esm/models/statut-celery.d.ts +0 -22
- package/dist/esm/models/statut-celery.js +0 -23
- package/dist/esm/models/statut-facture.d.ts +0 -25
- package/dist/esm/models/statut-facture.js +0 -14
- package/dist/esm/models/statut-tache.d.ts +0 -25
- package/dist/esm/models/statut-tache.js +0 -14
- package/dist/esm/models/tauxmanuel.d.ts +0 -16
- package/dist/esm/models/tauxmanuel.js +0 -14
- package/dist/esm/models/type-facture.d.ts +0 -19
- package/dist/esm/models/type-facture.js +0 -20
- package/dist/esm/models/type-tva.d.ts +0 -21
- package/dist/esm/models/type-tva.js +0 -22
- package/dist/esm/models/unite.d.ts +0 -23
- package/dist/esm/models/unite.js +0 -24
- package/dist/esm/models/utilisateur.d.ts +0 -29
- package/dist/esm/models/utilisateur.js +0 -14
- package/dist/models/adresse-electronique.d.ts +0 -19
- package/dist/models/adresse-electronique.js +0 -15
- package/dist/models/adresse-postale.d.ts +0 -21
- package/dist/models/adresse-postale.js +0 -15
- package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +0 -20
- package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js +0 -15
- package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +0 -20
- package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.js +0 -15
- package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
- package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js +0 -15
- package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +0 -20
- package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js +0 -15
- package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
- package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js +0 -15
- package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +0 -20
- package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js +0 -15
- package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
- package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js +0 -15
- package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
- package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js +0 -15
- package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
- package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js +0 -15
- package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
- package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js +0 -15
- package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
- package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js +0 -15
- package/dist/models/cadre-de-facturation.d.ts +0 -20
- package/dist/models/cadre-de-facturation.js +0 -15
- package/dist/models/categorie-tva.d.ts +0 -53
- package/dist/models/categorie-tva.js +0 -57
- package/dist/models/chorus-pro-credentials.d.ts +0 -36
- package/dist/models/chorus-pro-credentials.js +0 -15
- package/dist/models/code-cadre-facturation.d.ts +0 -18
- package/dist/models/code-cadre-facturation.js +0 -22
- package/dist/models/code-raison-reduction.d.ts +0 -45
- package/dist/models/code-raison-reduction.js +0 -49
- package/dist/models/consulter-facture-request.d.ts +0 -22
- package/dist/models/consulter-facture-request.js +0 -15
- package/dist/models/consulter-facture-response.d.ts +0 -26
- package/dist/models/consulter-facture-response.js +0 -15
- package/dist/models/consulter-structure-request.d.ts +0 -26
- package/dist/models/consulter-structure-request.js +0 -15
- package/dist/models/consulter-structure-response.d.ts +0 -26
- package/dist/models/consulter-structure-response.js +0 -15
- package/dist/models/credentials-afnor.d.ts +0 -19
- package/dist/models/credentials-afnor.js +0 -15
- package/dist/models/credentials-chorus-pro.d.ts +0 -24
- package/dist/models/credentials-chorus-pro.js +0 -15
- package/dist/models/destinataire.d.ts +0 -24
- package/dist/models/destinataire.js +0 -15
- package/dist/models/destination-afnor.d.ts +0 -34
- package/dist/models/destination-afnor.js +0 -24
- package/dist/models/destination-chorus-pro.d.ts +0 -23
- package/dist/models/destination-chorus-pro.js +0 -19
- package/dist/models/donnees-facture-simplifiees.d.ts +0 -46
- package/dist/models/donnees-facture-simplifiees.js +0 -15
- package/dist/models/facture-enrichie-info.d.ts +0 -24
- package/dist/models/facture-enrichie-info.js +0 -15
- package/dist/models/format-sortie.d.ts +0 -16
- package/dist/models/format-sortie.js +0 -20
- package/dist/models/fournisseur.d.ts +0 -28
- package/dist/models/fournisseur.js +0 -15
- package/dist/models/information-signature-api.d.ts +0 -25
- package/dist/models/information-signature-api.js +0 -15
- package/dist/models/ligne-de-poste-montant-remise-ht.d.ts +0 -16
- package/dist/models/ligne-de-poste-montant-remise-ht.js +0 -15
- package/dist/models/ligne-de-poste-taux-tva-manuel.d.ts +0 -16
- package/dist/models/ligne-de-poste-taux-tva-manuel.js +0 -15
- package/dist/models/ligne-de-poste.d.ts +0 -39
- package/dist/models/ligne-de-poste.js +0 -15
- package/dist/models/ligne-de-tva.d.ts +0 -25
- package/dist/models/ligne-de-tva.js +0 -15
- package/dist/models/mode-depot.d.ts +0 -20
- package/dist/models/mode-depot.js +0 -24
- package/dist/models/mode-paiement.d.ts +0 -23
- package/dist/models/mode-paiement.js +0 -27
- package/dist/models/montant-apayer.d.ts +0 -16
- package/dist/models/montant-apayer.js +0 -15
- package/dist/models/montant-base-ht.d.ts +0 -16
- package/dist/models/montant-base-ht.js +0 -15
- package/dist/models/montant-ht-total.d.ts +0 -16
- package/dist/models/montant-ht-total.js +0 -15
- package/dist/models/montant-remise-globale-ttc.d.ts +0 -16
- package/dist/models/montant-remise-globale-ttc.js +0 -15
- package/dist/models/montant-total-acompte.d.ts +0 -16
- package/dist/models/montant-total-acompte.js +0 -15
- package/dist/models/montant-total-ligne-ht.d.ts +0 -16
- package/dist/models/montant-total-ligne-ht.js +0 -15
- package/dist/models/montant-total.d.ts +0 -29
- package/dist/models/montant-total.js +0 -15
- package/dist/models/montant-ttc-total.d.ts +0 -16
- package/dist/models/montant-ttc-total.js +0 -15
- package/dist/models/montant-tva-ligne.d.ts +0 -16
- package/dist/models/montant-tva-ligne.js +0 -15
- package/dist/models/montant-tva-total.d.ts +0 -16
- package/dist/models/montant-tva-total.js +0 -15
- package/dist/models/montant-tva.d.ts +0 -16
- package/dist/models/montant-tva.js +0 -15
- package/dist/models/montant-unitaire-ht.d.ts +0 -16
- package/dist/models/montant-unitaire-ht.js +0 -15
- package/dist/models/note.d.ts +0 -18
- package/dist/models/note.js +0 -15
- package/dist/models/obtenir-id-chorus-pro-request.d.ts +0 -26
- package/dist/models/obtenir-id-chorus-pro-request.js +0 -15
- package/dist/models/obtenir-id-chorus-pro-response.d.ts +0 -29
- package/dist/models/obtenir-id-chorus-pro-response.js +0 -15
- package/dist/models/options-processing.d.ts +0 -33
- package/dist/models/options-processing.js +0 -15
- package/dist/models/parametres-signature.d.ts +0 -34
- package/dist/models/parametres-signature.js +0 -15
- package/dist/models/parametres-structure.d.ts +0 -28
- package/dist/models/parametres-structure.js +0 -15
- package/dist/models/pdffactur-xinfo.d.ts +0 -28
- package/dist/models/pdffactur-xinfo.js +0 -15
- package/dist/models/piece-jointe-complementaire.d.ts +0 -21
- package/dist/models/piece-jointe-complementaire.js +0 -15
- package/dist/models/profil-api.d.ts +0 -18
- package/dist/models/profil-api.js +0 -22
- package/dist/models/quantite.d.ts +0 -16
- package/dist/models/quantite.js +0 -15
- package/dist/models/quota-info.d.ts +0 -21
- package/dist/models/quota-info.js +0 -15
- package/dist/models/rechercher-services-response.d.ts +0 -24
- package/dist/models/rechercher-services-response.js +0 -15
- package/dist/models/rechercher-structure-request.d.ts +0 -25
- package/dist/models/rechercher-structure-request.js +0 -15
- package/dist/models/rechercher-structure-response.d.ts +0 -30
- package/dist/models/rechercher-structure-response.js +0 -15
- package/dist/models/references.d.ts +0 -27
- package/dist/models/references.js +0 -15
- package/dist/models/reponse-tache.d.ts +0 -17
- package/dist/models/reponse-tache.js +0 -15
- package/dist/models/reponse-validation-erreur.d.ts +0 -17
- package/dist/models/reponse-validation-erreur.js +0 -15
- package/dist/models/reponse-validation-succes.d.ts +0 -17
- package/dist/models/reponse-validation-succes.js +0 -15
- package/dist/models/resultat-afnor.d.ts +0 -30
- package/dist/models/resultat-afnor.js +0 -15
- package/dist/models/resultat-chorus-pro.d.ts +0 -22
- package/dist/models/resultat-chorus-pro.js +0 -15
- package/dist/models/resultat-validation-pdfapi.d.ts +0 -93
- package/dist/models/resultat-validation-pdfapi.js +0 -15
- package/dist/models/service-structure.d.ts +0 -32
- package/dist/models/service-structure.js +0 -15
- package/dist/models/soumettre-facture-complete-request.d.ts +0 -34
- package/dist/models/soumettre-facture-complete-request.js +0 -15
- package/dist/models/soumettre-facture-complete-response.d.ts +0 -53
- package/dist/models/soumettre-facture-complete-response.js +0 -20
- package/dist/models/soumettre-facture-request.d.ts +0 -44
- package/dist/models/soumettre-facture-request.js +0 -15
- package/dist/models/soumettre-facture-response.d.ts +0 -26
- package/dist/models/soumettre-facture-response.js +0 -15
- package/dist/models/statut-celery.d.ts +0 -22
- package/dist/models/statut-celery.js +0 -26
- package/dist/models/statut-facture.d.ts +0 -25
- package/dist/models/statut-facture.js +0 -15
- package/dist/models/statut-tache.d.ts +0 -25
- package/dist/models/statut-tache.js +0 -15
- package/dist/models/tauxmanuel.d.ts +0 -16
- package/dist/models/tauxmanuel.js +0 -15
- package/dist/models/type-facture.d.ts +0 -19
- package/dist/models/type-facture.js +0 -23
- package/dist/models/type-tva.d.ts +0 -21
- package/dist/models/type-tva.js +0 -25
- package/dist/models/unite.d.ts +0 -23
- package/dist/models/unite.js +0 -27
- package/dist/models/utilisateur.d.ts +0 -29
- package/dist/models/utilisateur.js +0 -15
- package/docs/AdresseElectronique.md +0 -23
- package/docs/AdressePostale.md +0 -29
- package/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +0 -24
- package/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +0 -24
- package/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +0 -22
- package/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +0 -24
- package/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +0 -24
- package/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +0 -24
- package/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +0 -24
- package/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +0 -24
- package/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +0 -24
- package/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +0 -24
- package/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +0 -24
- package/docs/CadreDeFacturation.md +0 -25
- package/docs/CategorieTVA.md +0 -25
- package/docs/ChorusProCredentials.md +0 -29
- package/docs/CodeCadreFacturation.md +0 -14
- package/docs/CodeRaisonReduction.md +0 -21
- package/docs/ConsulterFactureRequest.md +0 -23
- package/docs/ConsulterFactureResponse.md +0 -37
- package/docs/ConsulterStructureRequest.md +0 -25
- package/docs/ConsulterStructureResponse.md +0 -37
- package/docs/CredentialsAFNOR.md +0 -25
- package/docs/CredentialsChorusPro.md +0 -29
- package/docs/Destinataire.md +0 -31
- package/docs/DestinationAFNOR.md +0 -27
- package/docs/DestinationChorusPro.md +0 -23
- package/docs/DonneesFactureSimplifiees.md +0 -37
- package/docs/FactureEnrichieInfo.md +0 -35
- package/docs/FormatSortie.md +0 -10
- package/docs/Fournisseur.md +0 -39
- package/docs/InformationSignatureAPI.md +0 -31
- package/docs/LigneDePoste.md +0 -49
- package/docs/LigneDePosteMontantRemiseHt.md +0 -19
- package/docs/LigneDePosteTauxTvaManuel.md +0 -19
- package/docs/LigneDeTVA.md +0 -29
- package/docs/ModeDepot.md +0 -13
- package/docs/ModePaiement.md +0 -19
- package/docs/MontantAPayer.md +0 -19
- package/docs/MontantBaseHt.md +0 -19
- package/docs/MontantHtTotal.md +0 -19
- package/docs/MontantRemiseGlobaleTtc.md +0 -19
- package/docs/MontantTotal.md +0 -33
- package/docs/MontantTotalAcompte.md +0 -19
- package/docs/MontantTotalLigneHt.md +0 -19
- package/docs/MontantTtcTotal.md +0 -19
- package/docs/MontantTva.md +0 -19
- package/docs/MontantTvaLigne.md +0 -19
- package/docs/MontantTvaTotal.md +0 -19
- package/docs/MontantUnitaireHt.md +0 -19
- package/docs/Note.md +0 -23
- package/docs/ObtenirIdChorusProRequest.md +0 -25
- package/docs/ObtenirIdChorusProResponse.md +0 -27
- package/docs/OptionsProcessing.md +0 -27
- package/docs/PDFFacturXInfo.md +0 -25
- package/docs/ParametresSignature.md +0 -37
- package/docs/ParametresStructure.md +0 -25
- package/docs/PieceJointeComplementaire.md +0 -29
- package/docs/ProfilAPI.md +0 -14
- package/docs/Quantite.md +0 -19
- package/docs/QuotaInfo.md +0 -29
- package/docs/RechercherServicesResponse.md +0 -27
- package/docs/RechercherStructureRequest.md +0 -29
- package/docs/RechercherStructureResponse.md +0 -27
- package/docs/References.md +0 -35
- package/docs/ReponseTache.md +0 -21
- package/docs/ReponseValidationErreur.md +0 -20
- package/docs/ReponseValidationSucces.md +0 -20
- package/docs/ResultatAFNOR.md +0 -29
- package/docs/ResultatChorusPro.md +0 -25
- package/docs/ResultatValidationPDFAPI.md +0 -65
- package/docs/SantApi.md +0 -97
- package/docs/ServiceStructure.md +0 -27
- package/docs/SoumettreFactureCompleteRequest.md +0 -29
- package/docs/SoumettreFactureCompleteResponse.md +0 -37
- package/docs/SoumettreFactureRequest.md +0 -49
- package/docs/SoumettreFactureResponse.md +0 -27
- package/docs/StatutCelery.md +0 -17
- package/docs/StatutFacture.md +0 -25
- package/docs/StatutTache.md +0 -25
- package/docs/Tauxmanuel.md +0 -19
- package/docs/TraitementFactureApi.md +0 -670
- package/docs/TypeFacture.md +0 -11
- package/docs/TypeTVA.md +0 -15
- package/docs/Unite.md +0 -19
- package/docs/Utilisateur.md +0 -43
- package/docs/UtilisateurApi.md +0 -52
- package/models/adresse-electronique.ts +0 -29
- package/models/adresse-postale.ts +0 -27
- package/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.ts +0 -28
- package/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.ts +0 -28
- package/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.ts +0 -27
- package/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts +0 -28
- package/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts +0 -28
- package/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts +0 -28
- package/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts +0 -28
- package/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts +0 -28
- package/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts +0 -28
- package/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts +0 -28
- package/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts +0 -28
- package/models/cadre-de-facturation.ts +0 -30
- package/models/categorie-tva.ts +0 -63
- package/models/chorus-pro-credentials.ts +0 -42
- package/models/code-cadre-facturation.ts +0 -28
- package/models/code-raison-reduction.ts +0 -55
- package/models/consulter-facture-request.ts +0 -30
- package/models/consulter-facture-response.ts +0 -34
- package/models/consulter-structure-request.ts +0 -34
- package/models/consulter-structure-response.ts +0 -34
- package/models/credentials-afnor.ts +0 -25
- package/models/credentials-chorus-pro.ts +0 -30
- package/models/destinataire.ts +0 -34
- package/models/destination-afnor.ts +0 -46
- package/models/destination-chorus-pro.ts +0 -34
- package/models/donnees-facture-simplifiees.ts +0 -46
- package/models/facture-enrichie-info.ts +0 -30
- package/models/format-sortie.ts +0 -26
- package/models/fournisseur.ts +0 -38
- package/models/information-signature-api.ts +0 -31
- package/models/ligne-de-poste-montant-remise-ht.ts +0 -22
- package/models/ligne-de-poste-taux-tva-manuel.ts +0 -22
- package/models/ligne-de-poste.ts +0 -63
- package/models/ligne-de-tva.ts +0 -41
- package/models/mode-depot.ts +0 -30
- package/models/mode-paiement.ts +0 -33
- package/models/montant-apayer.ts +0 -22
- package/models/montant-base-ht.ts +0 -22
- package/models/montant-ht-total.ts +0 -22
- package/models/montant-remise-globale-ttc.ts +0 -22
- package/models/montant-total-acompte.ts +0 -22
- package/models/montant-total-ligne-ht.ts +0 -22
- package/models/montant-total.ts +0 -47
- package/models/montant-ttc-total.ts +0 -22
- package/models/montant-tva-ligne.ts +0 -22
- package/models/montant-tva-total.ts +0 -22
- package/models/montant-tva.ts +0 -22
- package/models/montant-unitaire-ht.ts +0 -22
- package/models/note.ts +0 -24
- package/models/obtenir-id-chorus-pro-request.ts +0 -34
- package/models/obtenir-id-chorus-pro-response.ts +0 -35
- package/models/options-processing.ts +0 -43
- package/models/parametres-signature.ts +0 -40
- package/models/parametres-structure.ts +0 -34
- package/models/pdffactur-xinfo.ts +0 -34
- package/models/piece-jointe-complementaire.ts +0 -27
- package/models/profil-api.ts +0 -28
- package/models/quantite.ts +0 -22
- package/models/quota-info.ts +0 -27
- package/models/rechercher-services-response.ts +0 -32
- package/models/rechercher-structure-request.ts +0 -33
- package/models/rechercher-structure-response.ts +0 -38
- package/models/references.ts +0 -41
- package/models/reponse-tache.ts +0 -23
- package/models/reponse-validation-erreur.ts +0 -23
- package/models/reponse-validation-succes.ts +0 -23
- package/models/resultat-afnor.ts +0 -36
- package/models/resultat-chorus-pro.ts +0 -28
- package/models/resultat-validation-pdfapi.ts +0 -99
- package/models/service-structure.ts +0 -38
- package/models/soumettre-facture-complete-request.ts +0 -48
- package/models/soumettre-facture-complete-response.ts +0 -72
- package/models/soumettre-facture-request.ts +0 -58
- package/models/soumettre-facture-response.ts +0 -32
- package/models/statut-celery.ts +0 -32
- package/models/statut-facture.ts +0 -31
- package/models/statut-tache.ts +0 -33
- package/models/tauxmanuel.ts +0 -22
- package/models/type-facture.ts +0 -29
- package/models/type-tva.ts +0 -31
- package/models/unite.ts +0 -33
- package/models/utilisateur.ts +0 -37
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* FactPulse REST API
|
|
5
|
+
* REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://www.factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://www.factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }\' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://www.factpulse.fr/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://www.factpulse.fr/documentation-api/
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
*
|
|
@@ -32,15 +32,15 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
33
33
|
return {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @summary
|
|
37
|
-
* @param {
|
|
35
|
+
* Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
36
|
+
* @summary Add an attachment
|
|
37
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', '
|
|
41
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
42
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
43
|
+
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', 'requestBody', requestBody);
|
|
44
44
|
const localVarPath = `/api/v1/chorus-pro/transverses/ajouter-fichier`;
|
|
45
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -59,22 +59,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
59
59
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
60
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
61
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
62
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
63
63
|
return {
|
|
64
64
|
url: toPathString(localVarUrlObj),
|
|
65
65
|
options: localVarRequestOptions,
|
|
66
66
|
};
|
|
67
67
|
}),
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @summary
|
|
71
|
-
* @param {
|
|
69
|
+
* Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
70
|
+
* @summary Complete a suspended invoice (Supplier)
|
|
71
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
73
73
|
* @throws {RequiredError}
|
|
74
74
|
*/
|
|
75
|
-
completerFactureApiV1ChorusProFacturesCompleterPost: (
|
|
76
|
-
// verify required parameter '
|
|
77
|
-
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', '
|
|
75
|
+
completerFactureApiV1ChorusProFacturesCompleterPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
76
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
77
|
+
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', 'requestBody', requestBody);
|
|
78
78
|
const localVarPath = `/api/v1/chorus-pro/factures/completer`;
|
|
79
79
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
80
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -93,22 +93,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94
94
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
95
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
96
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
96
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
97
97
|
return {
|
|
98
98
|
url: toPathString(localVarUrlObj),
|
|
99
99
|
options: localVarRequestOptions,
|
|
100
100
|
};
|
|
101
101
|
}),
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @summary
|
|
105
|
-
* @param {
|
|
103
|
+
* Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
104
|
+
* @summary Consult invoice status
|
|
105
|
+
* @param {GetInvoiceRequest} getInvoiceRequest
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
*/
|
|
109
|
-
consulterFactureApiV1ChorusProFacturesConsulterPost: (
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
assertParamExists('consulterFactureApiV1ChorusProFacturesConsulterPost', '
|
|
109
|
+
consulterFactureApiV1ChorusProFacturesConsulterPost: (getInvoiceRequest_1, ...args_1) => __awaiter(this, [getInvoiceRequest_1, ...args_1], void 0, function* (getInvoiceRequest, options = {}) {
|
|
110
|
+
// verify required parameter 'getInvoiceRequest' is not null or undefined
|
|
111
|
+
assertParamExists('consulterFactureApiV1ChorusProFacturesConsulterPost', 'getInvoiceRequest', getInvoiceRequest);
|
|
112
112
|
const localVarPath = `/api/v1/chorus-pro/factures/consulter`;
|
|
113
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -127,22 +127,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
129
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
130
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getInvoiceRequest, localVarRequestOptions, configuration);
|
|
131
131
|
return {
|
|
132
132
|
url: toPathString(localVarUrlObj),
|
|
133
133
|
options: localVarRequestOptions,
|
|
134
134
|
};
|
|
135
135
|
}),
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
138
|
-
* @summary
|
|
139
|
-
* @param {
|
|
137
|
+
* Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
138
|
+
* @summary Consult structure details
|
|
139
|
+
* @param {GetStructureRequest} getStructureRequest
|
|
140
140
|
* @param {*} [options] Override http request option.
|
|
141
141
|
* @throws {RequiredError}
|
|
142
142
|
*/
|
|
143
|
-
consulterStructureApiV1ChorusProStructuresConsulterPost: (
|
|
144
|
-
// verify required parameter '
|
|
145
|
-
assertParamExists('consulterStructureApiV1ChorusProStructuresConsulterPost', '
|
|
143
|
+
consulterStructureApiV1ChorusProStructuresConsulterPost: (getStructureRequest_1, ...args_1) => __awaiter(this, [getStructureRequest_1, ...args_1], void 0, function* (getStructureRequest, options = {}) {
|
|
144
|
+
// verify required parameter 'getStructureRequest' is not null or undefined
|
|
145
|
+
assertParamExists('consulterStructureApiV1ChorusProStructuresConsulterPost', 'getStructureRequest', getStructureRequest);
|
|
146
146
|
const localVarPath = `/api/v1/chorus-pro/structures/consulter`;
|
|
147
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
148
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -161,25 +161,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
161
161
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
162
162
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
163
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getStructureRequest, localVarRequestOptions, configuration);
|
|
165
165
|
return {
|
|
166
166
|
url: toPathString(localVarUrlObj),
|
|
167
167
|
options: localVarRequestOptions,
|
|
168
168
|
};
|
|
169
169
|
}),
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
172
|
-
* @summary
|
|
171
|
+
* Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
172
|
+
* @summary List structure services
|
|
173
173
|
* @param {number} idStructureCpp
|
|
174
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
175
174
|
* @param {*} [options] Override http request option.
|
|
176
175
|
* @throws {RequiredError}
|
|
177
176
|
*/
|
|
178
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: (idStructureCpp_1,
|
|
177
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: (idStructureCpp_1, ...args_1) => __awaiter(this, [idStructureCpp_1, ...args_1], void 0, function* (idStructureCpp, options = {}) {
|
|
179
178
|
// verify required parameter 'idStructureCpp' is not null or undefined
|
|
180
179
|
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'idStructureCpp', idStructureCpp);
|
|
181
|
-
// verify required parameter 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet' is not null or undefined
|
|
182
|
-
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet);
|
|
183
180
|
const localVarPath = `/api/v1/chorus-pro/structures/{id_structure_cpp}/services`
|
|
184
181
|
.replace(`{${"id_structure_cpp"}}`, encodeURIComponent(String(idStructureCpp)));
|
|
185
182
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -194,27 +191,25 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
194
191
|
// authentication HTTPBearer required
|
|
195
192
|
// http bearer authentication required
|
|
196
193
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
197
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
198
194
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
199
195
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
196
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
197
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
-
localVarRequestOptions.data = serializeDataIfNeeded(bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, localVarRequestOptions, configuration);
|
|
203
198
|
return {
|
|
204
199
|
url: toPathString(localVarUrlObj),
|
|
205
200
|
options: localVarRequestOptions,
|
|
206
201
|
};
|
|
207
202
|
}),
|
|
208
203
|
/**
|
|
209
|
-
* **
|
|
210
|
-
* @summary
|
|
211
|
-
* @param {
|
|
204
|
+
* **Convenient utility** to get a structure\'s Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
205
|
+
* @summary Utility: Get Chorus Pro ID from SIRET
|
|
206
|
+
* @param {GetChorusProIdRequest} getChorusProIdRequest
|
|
212
207
|
* @param {*} [options] Override http request option.
|
|
213
208
|
* @throws {RequiredError}
|
|
214
209
|
*/
|
|
215
|
-
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost: (
|
|
216
|
-
// verify required parameter '
|
|
217
|
-
assertParamExists('obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost', '
|
|
210
|
+
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost: (getChorusProIdRequest_1, ...args_1) => __awaiter(this, [getChorusProIdRequest_1, ...args_1], void 0, function* (getChorusProIdRequest, options = {}) {
|
|
211
|
+
// verify required parameter 'getChorusProIdRequest' is not null or undefined
|
|
212
|
+
assertParamExists('obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost', 'getChorusProIdRequest', getChorusProIdRequest);
|
|
218
213
|
const localVarPath = `/api/v1/chorus-pro/structures/obtenir-id-depuis-siret`;
|
|
219
214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
215
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -233,22 +228,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
233
228
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
234
229
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
230
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
231
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getChorusProIdRequest, localVarRequestOptions, configuration);
|
|
237
232
|
return {
|
|
238
233
|
url: toPathString(localVarUrlObj),
|
|
239
234
|
options: localVarRequestOptions,
|
|
240
235
|
};
|
|
241
236
|
}),
|
|
242
237
|
/**
|
|
243
|
-
*
|
|
244
|
-
* @summary
|
|
245
|
-
* @param {
|
|
238
|
+
* Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
239
|
+
* @summary Search received invoices (Recipient)
|
|
240
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
246
241
|
* @param {*} [options] Override http request option.
|
|
247
242
|
* @throws {RequiredError}
|
|
248
243
|
*/
|
|
249
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: (
|
|
250
|
-
// verify required parameter '
|
|
251
|
-
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', '
|
|
244
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
245
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
246
|
+
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', 'requestBody', requestBody);
|
|
252
247
|
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-destinataire`;
|
|
253
248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -267,22 +262,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
267
262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
264
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
265
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
271
266
|
return {
|
|
272
267
|
url: toPathString(localVarUrlObj),
|
|
273
268
|
options: localVarRequestOptions,
|
|
274
269
|
};
|
|
275
270
|
}),
|
|
276
271
|
/**
|
|
277
|
-
*
|
|
278
|
-
* @summary
|
|
279
|
-
* @param {
|
|
272
|
+
* Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
273
|
+
* @summary Search issued invoices (Supplier)
|
|
274
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
280
275
|
* @param {*} [options] Override http request option.
|
|
281
276
|
* @throws {RequiredError}
|
|
282
277
|
*/
|
|
283
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: (
|
|
284
|
-
// verify required parameter '
|
|
285
|
-
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', '
|
|
278
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
279
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
280
|
+
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', 'requestBody', requestBody);
|
|
286
281
|
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-fournisseur`;
|
|
287
282
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
288
283
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -301,22 +296,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
301
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
298
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
304
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
305
300
|
return {
|
|
306
301
|
url: toPathString(localVarUrlObj),
|
|
307
302
|
options: localVarRequestOptions,
|
|
308
303
|
};
|
|
309
304
|
}),
|
|
310
305
|
/**
|
|
311
|
-
*
|
|
312
|
-
* @summary
|
|
313
|
-
* @param {
|
|
306
|
+
* Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient\'s `id_structure_cpp`.
|
|
307
|
+
* @summary Search Chorus Pro structures
|
|
308
|
+
* @param {SearchStructureRequest} searchStructureRequest
|
|
314
309
|
* @param {*} [options] Override http request option.
|
|
315
310
|
* @throws {RequiredError}
|
|
316
311
|
*/
|
|
317
|
-
rechercherStructuresApiV1ChorusProStructuresRechercherPost: (
|
|
318
|
-
// verify required parameter '
|
|
319
|
-
assertParamExists('rechercherStructuresApiV1ChorusProStructuresRechercherPost', '
|
|
312
|
+
rechercherStructuresApiV1ChorusProStructuresRechercherPost: (searchStructureRequest_1, ...args_1) => __awaiter(this, [searchStructureRequest_1, ...args_1], void 0, function* (searchStructureRequest, options = {}) {
|
|
313
|
+
// verify required parameter 'searchStructureRequest' is not null or undefined
|
|
314
|
+
assertParamExists('rechercherStructuresApiV1ChorusProStructuresRechercherPost', 'searchStructureRequest', searchStructureRequest);
|
|
320
315
|
const localVarPath = `/api/v1/chorus-pro/structures/rechercher`;
|
|
321
316
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
317
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -335,22 +330,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
335
330
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
331
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
332
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
338
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
333
|
+
localVarRequestOptions.data = serializeDataIfNeeded(searchStructureRequest, localVarRequestOptions, configuration);
|
|
339
334
|
return {
|
|
340
335
|
url: toPathString(localVarUrlObj),
|
|
341
336
|
options: localVarRequestOptions,
|
|
342
337
|
};
|
|
343
338
|
}),
|
|
344
339
|
/**
|
|
345
|
-
* Recycle
|
|
346
|
-
* @summary
|
|
347
|
-
* @param {
|
|
340
|
+
* Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
341
|
+
* @summary Recycle an invoice (Supplier)
|
|
342
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
348
343
|
* @param {*} [options] Override http request option.
|
|
349
344
|
* @throws {RequiredError}
|
|
350
345
|
*/
|
|
351
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost: (
|
|
352
|
-
// verify required parameter '
|
|
353
|
-
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', '
|
|
346
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
347
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
348
|
+
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', 'requestBody', requestBody);
|
|
354
349
|
const localVarPath = `/api/v1/chorus-pro/factures/recycler`;
|
|
355
350
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
356
351
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -369,22 +364,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
369
364
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
370
365
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
371
366
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
372
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
367
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
373
368
|
return {
|
|
374
369
|
url: toPathString(localVarUrlObj),
|
|
375
370
|
options: localVarRequestOptions,
|
|
376
371
|
};
|
|
377
372
|
}),
|
|
378
373
|
/**
|
|
379
|
-
*
|
|
380
|
-
* @summary
|
|
381
|
-
* @param {
|
|
374
|
+
* Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient\'s `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
375
|
+
* @summary Submit an invoice to Chorus Pro
|
|
376
|
+
* @param {SubmitInvoiceRequest} submitInvoiceRequest
|
|
382
377
|
* @param {*} [options] Override http request option.
|
|
383
378
|
* @throws {RequiredError}
|
|
384
379
|
*/
|
|
385
|
-
soumettreFactureApiV1ChorusProFacturesSoumettrePost: (
|
|
386
|
-
// verify required parameter '
|
|
387
|
-
assertParamExists('soumettreFactureApiV1ChorusProFacturesSoumettrePost', '
|
|
380
|
+
soumettreFactureApiV1ChorusProFacturesSoumettrePost: (submitInvoiceRequest_1, ...args_1) => __awaiter(this, [submitInvoiceRequest_1, ...args_1], void 0, function* (submitInvoiceRequest, options = {}) {
|
|
381
|
+
// verify required parameter 'submitInvoiceRequest' is not null or undefined
|
|
382
|
+
assertParamExists('soumettreFactureApiV1ChorusProFacturesSoumettrePost', 'submitInvoiceRequest', submitInvoiceRequest);
|
|
388
383
|
const localVarPath = `/api/v1/chorus-pro/factures/soumettre`;
|
|
389
384
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
390
385
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -403,22 +398,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
403
398
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
404
399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
405
400
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
406
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
401
|
+
localVarRequestOptions.data = serializeDataIfNeeded(submitInvoiceRequest, localVarRequestOptions, configuration);
|
|
407
402
|
return {
|
|
408
403
|
url: toPathString(localVarUrlObj),
|
|
409
404
|
options: localVarRequestOptions,
|
|
410
405
|
};
|
|
411
406
|
}),
|
|
412
407
|
/**
|
|
413
|
-
*
|
|
414
|
-
* @summary
|
|
415
|
-
* @param {
|
|
408
|
+
* Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
409
|
+
* @summary Download a group of invoices
|
|
410
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
416
411
|
* @param {*} [options] Override http request option.
|
|
417
412
|
* @throws {RequiredError}
|
|
418
413
|
*/
|
|
419
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: (
|
|
420
|
-
// verify required parameter '
|
|
421
|
-
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', '
|
|
414
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
415
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
416
|
+
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', 'requestBody', requestBody);
|
|
422
417
|
const localVarPath = `/api/v1/chorus-pro/factures/telecharger-groupe`;
|
|
423
418
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
424
419
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -437,22 +432,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
437
432
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
438
433
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
434
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
440
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
435
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
441
436
|
return {
|
|
442
437
|
url: toPathString(localVarUrlObj),
|
|
443
438
|
options: localVarRequestOptions,
|
|
444
439
|
};
|
|
445
440
|
}),
|
|
446
441
|
/**
|
|
447
|
-
* Change
|
|
448
|
-
* @summary
|
|
449
|
-
* @param {
|
|
442
|
+
* Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice\'s current status
|
|
443
|
+
* @summary Process a received invoice (Recipient)
|
|
444
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
450
445
|
* @param {*} [options] Override http request option.
|
|
451
446
|
* @throws {RequiredError}
|
|
452
447
|
*/
|
|
453
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: (
|
|
454
|
-
// verify required parameter '
|
|
455
|
-
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', '
|
|
448
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
449
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
450
|
+
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', 'requestBody', requestBody);
|
|
456
451
|
const localVarPath = `/api/v1/chorus-pro/factures/traiter-facture-recue`;
|
|
457
452
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
458
453
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -471,22 +466,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
471
466
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
472
467
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
468
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
474
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
469
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
475
470
|
return {
|
|
476
471
|
url: toPathString(localVarUrlObj),
|
|
477
472
|
options: localVarRequestOptions,
|
|
478
473
|
};
|
|
479
474
|
}),
|
|
480
475
|
/**
|
|
481
|
-
*
|
|
482
|
-
* @summary
|
|
483
|
-
* @param {
|
|
476
|
+
*
|
|
477
|
+
* @summary Consult an invoice (Validator)
|
|
478
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
484
479
|
* @param {*} [options] Override http request option.
|
|
485
480
|
* @throws {RequiredError}
|
|
486
481
|
*/
|
|
487
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: (
|
|
488
|
-
// verify required parameter '
|
|
489
|
-
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', '
|
|
482
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
483
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
484
|
+
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', 'requestBody', requestBody);
|
|
490
485
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/consulter`;
|
|
491
486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
487
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -505,22 +500,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
505
500
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
502
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
508
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
503
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
509
504
|
return {
|
|
510
505
|
url: toPathString(localVarUrlObj),
|
|
511
506
|
options: localVarRequestOptions,
|
|
512
507
|
};
|
|
513
508
|
}),
|
|
514
509
|
/**
|
|
515
|
-
*
|
|
516
|
-
* @summary
|
|
517
|
-
* @param {
|
|
510
|
+
* Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
511
|
+
* @summary Search invoices to validate (Validator)
|
|
512
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
518
513
|
* @param {*} [options] Override http request option.
|
|
519
514
|
* @throws {RequiredError}
|
|
520
515
|
*/
|
|
521
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: (
|
|
522
|
-
// verify required parameter '
|
|
523
|
-
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', '
|
|
516
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
517
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
518
|
+
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', 'requestBody', requestBody);
|
|
524
519
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/rechercher`;
|
|
525
520
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
521
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -539,22 +534,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
539
534
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
540
535
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
541
536
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
542
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
537
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
543
538
|
return {
|
|
544
539
|
url: toPathString(localVarUrlObj),
|
|
545
540
|
options: localVarRequestOptions,
|
|
546
541
|
};
|
|
547
542
|
}),
|
|
548
543
|
/**
|
|
549
|
-
*
|
|
550
|
-
* @summary
|
|
551
|
-
* @param {
|
|
544
|
+
* Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
545
|
+
* @summary Validate or reject an invoice (Validator)
|
|
546
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
552
547
|
* @param {*} [options] Override http request option.
|
|
553
548
|
* @throws {RequiredError}
|
|
554
549
|
*/
|
|
555
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: (
|
|
556
|
-
// verify required parameter '
|
|
557
|
-
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', '
|
|
550
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
551
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
552
|
+
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', 'requestBody', requestBody);
|
|
558
553
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/traiter`;
|
|
559
554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
560
555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -573,7 +568,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
573
568
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
574
569
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
575
570
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
576
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
571
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
577
572
|
return {
|
|
578
573
|
url: toPathString(localVarUrlObj),
|
|
579
574
|
options: localVarRequestOptions,
|
|
@@ -588,257 +583,256 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
588
583
|
const localVarAxiosParamCreator = ChorusProApiAxiosParamCreator(configuration);
|
|
589
584
|
return {
|
|
590
585
|
/**
|
|
591
|
-
*
|
|
592
|
-
* @summary
|
|
593
|
-
* @param {
|
|
586
|
+
* Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
587
|
+
* @summary Add an attachment
|
|
588
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
594
589
|
* @param {*} [options] Override http request option.
|
|
595
590
|
* @throws {RequiredError}
|
|
596
591
|
*/
|
|
597
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
592
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options) {
|
|
598
593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
599
594
|
var _a, _b, _c;
|
|
600
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
595
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options);
|
|
601
596
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
602
597
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
603
598
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
604
599
|
});
|
|
605
600
|
},
|
|
606
601
|
/**
|
|
607
|
-
*
|
|
608
|
-
* @summary
|
|
609
|
-
* @param {
|
|
602
|
+
* Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
603
|
+
* @summary Complete a suspended invoice (Supplier)
|
|
604
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
610
605
|
* @param {*} [options] Override http request option.
|
|
611
606
|
* @throws {RequiredError}
|
|
612
607
|
*/
|
|
613
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
608
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options) {
|
|
614
609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
615
610
|
var _a, _b, _c;
|
|
616
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
611
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options);
|
|
617
612
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
618
613
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.completerFactureApiV1ChorusProFacturesCompleterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
619
614
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
620
615
|
});
|
|
621
616
|
},
|
|
622
617
|
/**
|
|
623
|
-
*
|
|
624
|
-
* @summary
|
|
625
|
-
* @param {
|
|
618
|
+
* Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
619
|
+
* @summary Consult invoice status
|
|
620
|
+
* @param {GetInvoiceRequest} getInvoiceRequest
|
|
626
621
|
* @param {*} [options] Override http request option.
|
|
627
622
|
* @throws {RequiredError}
|
|
628
623
|
*/
|
|
629
|
-
consulterFactureApiV1ChorusProFacturesConsulterPost(
|
|
624
|
+
consulterFactureApiV1ChorusProFacturesConsulterPost(getInvoiceRequest, options) {
|
|
630
625
|
return __awaiter(this, void 0, void 0, function* () {
|
|
631
626
|
var _a, _b, _c;
|
|
632
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.consulterFactureApiV1ChorusProFacturesConsulterPost(
|
|
627
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.consulterFactureApiV1ChorusProFacturesConsulterPost(getInvoiceRequest, options);
|
|
633
628
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
634
629
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.consulterFactureApiV1ChorusProFacturesConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
635
630
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
636
631
|
});
|
|
637
632
|
},
|
|
638
633
|
/**
|
|
639
|
-
*
|
|
640
|
-
* @summary
|
|
641
|
-
* @param {
|
|
634
|
+
* Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
635
|
+
* @summary Consult structure details
|
|
636
|
+
* @param {GetStructureRequest} getStructureRequest
|
|
642
637
|
* @param {*} [options] Override http request option.
|
|
643
638
|
* @throws {RequiredError}
|
|
644
639
|
*/
|
|
645
|
-
consulterStructureApiV1ChorusProStructuresConsulterPost(
|
|
640
|
+
consulterStructureApiV1ChorusProStructuresConsulterPost(getStructureRequest, options) {
|
|
646
641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
647
642
|
var _a, _b, _c;
|
|
648
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.consulterStructureApiV1ChorusProStructuresConsulterPost(
|
|
643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.consulterStructureApiV1ChorusProStructuresConsulterPost(getStructureRequest, options);
|
|
649
644
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
650
645
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.consulterStructureApiV1ChorusProStructuresConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
651
646
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
652
647
|
});
|
|
653
648
|
},
|
|
654
649
|
/**
|
|
655
|
-
*
|
|
656
|
-
* @summary
|
|
650
|
+
* Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
651
|
+
* @summary List structure services
|
|
657
652
|
* @param {number} idStructureCpp
|
|
658
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
659
653
|
* @param {*} [options] Override http request option.
|
|
660
654
|
* @throws {RequiredError}
|
|
661
655
|
*/
|
|
662
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
656
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options) {
|
|
663
657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
664
658
|
var _a, _b, _c;
|
|
665
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options);
|
|
666
660
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
667
661
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
668
662
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
669
663
|
});
|
|
670
664
|
},
|
|
671
665
|
/**
|
|
672
|
-
* **
|
|
673
|
-
* @summary
|
|
674
|
-
* @param {
|
|
666
|
+
* **Convenient utility** to get a structure\'s Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
667
|
+
* @summary Utility: Get Chorus Pro ID from SIRET
|
|
668
|
+
* @param {GetChorusProIdRequest} getChorusProIdRequest
|
|
675
669
|
* @param {*} [options] Override http request option.
|
|
676
670
|
* @throws {RequiredError}
|
|
677
671
|
*/
|
|
678
|
-
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(
|
|
672
|
+
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(getChorusProIdRequest, options) {
|
|
679
673
|
return __awaiter(this, void 0, void 0, function* () {
|
|
680
674
|
var _a, _b, _c;
|
|
681
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(
|
|
675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(getChorusProIdRequest, options);
|
|
682
676
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
683
677
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
684
678
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
685
679
|
});
|
|
686
680
|
},
|
|
687
681
|
/**
|
|
688
|
-
*
|
|
689
|
-
* @summary
|
|
690
|
-
* @param {
|
|
682
|
+
* Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
683
|
+
* @summary Search received invoices (Recipient)
|
|
684
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
691
685
|
* @param {*} [options] Override http request option.
|
|
692
686
|
* @throws {RequiredError}
|
|
693
687
|
*/
|
|
694
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
688
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options) {
|
|
695
689
|
return __awaiter(this, void 0, void 0, function* () {
|
|
696
690
|
var _a, _b, _c;
|
|
697
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options);
|
|
698
692
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
699
693
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
700
694
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
701
695
|
});
|
|
702
696
|
},
|
|
703
697
|
/**
|
|
704
|
-
*
|
|
705
|
-
* @summary
|
|
706
|
-
* @param {
|
|
698
|
+
* Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
699
|
+
* @summary Search issued invoices (Supplier)
|
|
700
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
707
701
|
* @param {*} [options] Override http request option.
|
|
708
702
|
* @throws {RequiredError}
|
|
709
703
|
*/
|
|
710
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
704
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options) {
|
|
711
705
|
return __awaiter(this, void 0, void 0, function* () {
|
|
712
706
|
var _a, _b, _c;
|
|
713
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
707
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options);
|
|
714
708
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
715
709
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
716
710
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
717
711
|
});
|
|
718
712
|
},
|
|
719
713
|
/**
|
|
720
|
-
*
|
|
721
|
-
* @summary
|
|
722
|
-
* @param {
|
|
714
|
+
* Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient\'s `id_structure_cpp`.
|
|
715
|
+
* @summary Search Chorus Pro structures
|
|
716
|
+
* @param {SearchStructureRequest} searchStructureRequest
|
|
723
717
|
* @param {*} [options] Override http request option.
|
|
724
718
|
* @throws {RequiredError}
|
|
725
719
|
*/
|
|
726
|
-
rechercherStructuresApiV1ChorusProStructuresRechercherPost(
|
|
720
|
+
rechercherStructuresApiV1ChorusProStructuresRechercherPost(searchStructureRequest, options) {
|
|
727
721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
728
722
|
var _a, _b, _c;
|
|
729
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherStructuresApiV1ChorusProStructuresRechercherPost(
|
|
723
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherStructuresApiV1ChorusProStructuresRechercherPost(searchStructureRequest, options);
|
|
730
724
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
731
725
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.rechercherStructuresApiV1ChorusProStructuresRechercherPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
732
726
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
733
727
|
});
|
|
734
728
|
},
|
|
735
729
|
/**
|
|
736
|
-
* Recycle
|
|
737
|
-
* @summary
|
|
738
|
-
* @param {
|
|
730
|
+
* Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
731
|
+
* @summary Recycle an invoice (Supplier)
|
|
732
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
739
733
|
* @param {*} [options] Override http request option.
|
|
740
734
|
* @throws {RequiredError}
|
|
741
735
|
*/
|
|
742
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
736
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options) {
|
|
743
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
744
738
|
var _a, _b, _c;
|
|
745
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options);
|
|
746
740
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
747
741
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.recyclerFactureApiV1ChorusProFacturesRecyclerPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
748
742
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
749
743
|
});
|
|
750
744
|
},
|
|
751
745
|
/**
|
|
752
|
-
*
|
|
753
|
-
* @summary
|
|
754
|
-
* @param {
|
|
746
|
+
* Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient\'s `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
747
|
+
* @summary Submit an invoice to Chorus Pro
|
|
748
|
+
* @param {SubmitInvoiceRequest} submitInvoiceRequest
|
|
755
749
|
* @param {*} [options] Override http request option.
|
|
756
750
|
* @throws {RequiredError}
|
|
757
751
|
*/
|
|
758
|
-
soumettreFactureApiV1ChorusProFacturesSoumettrePost(
|
|
752
|
+
soumettreFactureApiV1ChorusProFacturesSoumettrePost(submitInvoiceRequest, options) {
|
|
759
753
|
return __awaiter(this, void 0, void 0, function* () {
|
|
760
754
|
var _a, _b, _c;
|
|
761
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.soumettreFactureApiV1ChorusProFacturesSoumettrePost(
|
|
755
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.soumettreFactureApiV1ChorusProFacturesSoumettrePost(submitInvoiceRequest, options);
|
|
762
756
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
763
757
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.soumettreFactureApiV1ChorusProFacturesSoumettrePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
764
758
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
765
759
|
});
|
|
766
760
|
},
|
|
767
761
|
/**
|
|
768
|
-
*
|
|
769
|
-
* @summary
|
|
770
|
-
* @param {
|
|
762
|
+
* Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
763
|
+
* @summary Download a group of invoices
|
|
764
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
771
765
|
* @param {*} [options] Override http request option.
|
|
772
766
|
* @throws {RequiredError}
|
|
773
767
|
*/
|
|
774
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
768
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options) {
|
|
775
769
|
return __awaiter(this, void 0, void 0, function* () {
|
|
776
770
|
var _a, _b, _c;
|
|
777
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options);
|
|
778
772
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
779
773
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
780
774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
781
775
|
});
|
|
782
776
|
},
|
|
783
777
|
/**
|
|
784
|
-
* Change
|
|
785
|
-
* @summary
|
|
786
|
-
* @param {
|
|
778
|
+
* Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice\'s current status
|
|
779
|
+
* @summary Process a received invoice (Recipient)
|
|
780
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
787
781
|
* @param {*} [options] Override http request option.
|
|
788
782
|
* @throws {RequiredError}
|
|
789
783
|
*/
|
|
790
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
784
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options) {
|
|
791
785
|
return __awaiter(this, void 0, void 0, function* () {
|
|
792
786
|
var _a, _b, _c;
|
|
793
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
787
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options);
|
|
794
788
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
795
789
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
796
790
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
797
791
|
});
|
|
798
792
|
},
|
|
799
793
|
/**
|
|
800
|
-
*
|
|
801
|
-
* @summary
|
|
802
|
-
* @param {
|
|
794
|
+
*
|
|
795
|
+
* @summary Consult an invoice (Validator)
|
|
796
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
803
797
|
* @param {*} [options] Override http request option.
|
|
804
798
|
* @throws {RequiredError}
|
|
805
799
|
*/
|
|
806
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
800
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options) {
|
|
807
801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
808
802
|
var _a, _b, _c;
|
|
809
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
803
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options);
|
|
810
804
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
811
805
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
812
806
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
813
807
|
});
|
|
814
808
|
},
|
|
815
809
|
/**
|
|
816
|
-
*
|
|
817
|
-
* @summary
|
|
818
|
-
* @param {
|
|
810
|
+
* Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
811
|
+
* @summary Search invoices to validate (Validator)
|
|
812
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
819
813
|
* @param {*} [options] Override http request option.
|
|
820
814
|
* @throws {RequiredError}
|
|
821
815
|
*/
|
|
822
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
816
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options) {
|
|
823
817
|
return __awaiter(this, void 0, void 0, function* () {
|
|
824
818
|
var _a, _b, _c;
|
|
825
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
819
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options);
|
|
826
820
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
827
821
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
828
822
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
829
823
|
});
|
|
830
824
|
},
|
|
831
825
|
/**
|
|
832
|
-
*
|
|
833
|
-
* @summary
|
|
834
|
-
* @param {
|
|
826
|
+
* Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
827
|
+
* @summary Validate or reject an invoice (Validator)
|
|
828
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
835
829
|
* @param {*} [options] Override http request option.
|
|
836
830
|
* @throws {RequiredError}
|
|
837
831
|
*/
|
|
838
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
832
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options) {
|
|
839
833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
840
834
|
var _a, _b, _c;
|
|
841
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
835
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options);
|
|
842
836
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
843
837
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
844
838
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -853,165 +847,164 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
853
847
|
const localVarFp = ChorusProApiFp(configuration);
|
|
854
848
|
return {
|
|
855
849
|
/**
|
|
856
|
-
*
|
|
857
|
-
* @summary
|
|
858
|
-
* @param {
|
|
850
|
+
* Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
851
|
+
* @summary Add an attachment
|
|
852
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
859
853
|
* @param {*} [options] Override http request option.
|
|
860
854
|
* @throws {RequiredError}
|
|
861
855
|
*/
|
|
862
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
863
|
-
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
856
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options) {
|
|
857
|
+
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options).then((request) => request(axios, basePath));
|
|
864
858
|
},
|
|
865
859
|
/**
|
|
866
|
-
*
|
|
867
|
-
* @summary
|
|
868
|
-
* @param {
|
|
860
|
+
* Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
861
|
+
* @summary Complete a suspended invoice (Supplier)
|
|
862
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
869
863
|
* @param {*} [options] Override http request option.
|
|
870
864
|
* @throws {RequiredError}
|
|
871
865
|
*/
|
|
872
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
873
|
-
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
866
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options) {
|
|
867
|
+
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
874
868
|
},
|
|
875
869
|
/**
|
|
876
|
-
*
|
|
877
|
-
* @summary
|
|
878
|
-
* @param {
|
|
870
|
+
* Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
871
|
+
* @summary Consult invoice status
|
|
872
|
+
* @param {GetInvoiceRequest} getInvoiceRequest
|
|
879
873
|
* @param {*} [options] Override http request option.
|
|
880
874
|
* @throws {RequiredError}
|
|
881
875
|
*/
|
|
882
|
-
consulterFactureApiV1ChorusProFacturesConsulterPost(
|
|
883
|
-
return localVarFp.consulterFactureApiV1ChorusProFacturesConsulterPost(
|
|
876
|
+
consulterFactureApiV1ChorusProFacturesConsulterPost(getInvoiceRequest, options) {
|
|
877
|
+
return localVarFp.consulterFactureApiV1ChorusProFacturesConsulterPost(getInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
884
878
|
},
|
|
885
879
|
/**
|
|
886
|
-
*
|
|
887
|
-
* @summary
|
|
888
|
-
* @param {
|
|
880
|
+
* Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
881
|
+
* @summary Consult structure details
|
|
882
|
+
* @param {GetStructureRequest} getStructureRequest
|
|
889
883
|
* @param {*} [options] Override http request option.
|
|
890
884
|
* @throws {RequiredError}
|
|
891
885
|
*/
|
|
892
|
-
consulterStructureApiV1ChorusProStructuresConsulterPost(
|
|
893
|
-
return localVarFp.consulterStructureApiV1ChorusProStructuresConsulterPost(
|
|
886
|
+
consulterStructureApiV1ChorusProStructuresConsulterPost(getStructureRequest, options) {
|
|
887
|
+
return localVarFp.consulterStructureApiV1ChorusProStructuresConsulterPost(getStructureRequest, options).then((request) => request(axios, basePath));
|
|
894
888
|
},
|
|
895
889
|
/**
|
|
896
|
-
*
|
|
897
|
-
* @summary
|
|
890
|
+
* Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
891
|
+
* @summary List structure services
|
|
898
892
|
* @param {number} idStructureCpp
|
|
899
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
900
893
|
* @param {*} [options] Override http request option.
|
|
901
894
|
* @throws {RequiredError}
|
|
902
895
|
*/
|
|
903
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
904
|
-
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
896
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options) {
|
|
897
|
+
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options).then((request) => request(axios, basePath));
|
|
905
898
|
},
|
|
906
899
|
/**
|
|
907
|
-
* **
|
|
908
|
-
* @summary
|
|
909
|
-
* @param {
|
|
900
|
+
* **Convenient utility** to get a structure\'s Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
901
|
+
* @summary Utility: Get Chorus Pro ID from SIRET
|
|
902
|
+
* @param {GetChorusProIdRequest} getChorusProIdRequest
|
|
910
903
|
* @param {*} [options] Override http request option.
|
|
911
904
|
* @throws {RequiredError}
|
|
912
905
|
*/
|
|
913
|
-
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(
|
|
914
|
-
return localVarFp.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(
|
|
906
|
+
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(getChorusProIdRequest, options) {
|
|
907
|
+
return localVarFp.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(getChorusProIdRequest, options).then((request) => request(axios, basePath));
|
|
915
908
|
},
|
|
916
909
|
/**
|
|
917
|
-
*
|
|
918
|
-
* @summary
|
|
919
|
-
* @param {
|
|
910
|
+
* Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
911
|
+
* @summary Search received invoices (Recipient)
|
|
912
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
920
913
|
* @param {*} [options] Override http request option.
|
|
921
914
|
* @throws {RequiredError}
|
|
922
915
|
*/
|
|
923
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
924
|
-
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
916
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options) {
|
|
917
|
+
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options).then((request) => request(axios, basePath));
|
|
925
918
|
},
|
|
926
919
|
/**
|
|
927
|
-
*
|
|
928
|
-
* @summary
|
|
929
|
-
* @param {
|
|
920
|
+
* Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
921
|
+
* @summary Search issued invoices (Supplier)
|
|
922
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
930
923
|
* @param {*} [options] Override http request option.
|
|
931
924
|
* @throws {RequiredError}
|
|
932
925
|
*/
|
|
933
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
934
|
-
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
926
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options) {
|
|
927
|
+
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options).then((request) => request(axios, basePath));
|
|
935
928
|
},
|
|
936
929
|
/**
|
|
937
|
-
*
|
|
938
|
-
* @summary
|
|
939
|
-
* @param {
|
|
930
|
+
* Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient\'s `id_structure_cpp`.
|
|
931
|
+
* @summary Search Chorus Pro structures
|
|
932
|
+
* @param {SearchStructureRequest} searchStructureRequest
|
|
940
933
|
* @param {*} [options] Override http request option.
|
|
941
934
|
* @throws {RequiredError}
|
|
942
935
|
*/
|
|
943
|
-
rechercherStructuresApiV1ChorusProStructuresRechercherPost(
|
|
944
|
-
return localVarFp.rechercherStructuresApiV1ChorusProStructuresRechercherPost(
|
|
936
|
+
rechercherStructuresApiV1ChorusProStructuresRechercherPost(searchStructureRequest, options) {
|
|
937
|
+
return localVarFp.rechercherStructuresApiV1ChorusProStructuresRechercherPost(searchStructureRequest, options).then((request) => request(axios, basePath));
|
|
945
938
|
},
|
|
946
939
|
/**
|
|
947
|
-
* Recycle
|
|
948
|
-
* @summary
|
|
949
|
-
* @param {
|
|
940
|
+
* Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
941
|
+
* @summary Recycle an invoice (Supplier)
|
|
942
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
950
943
|
* @param {*} [options] Override http request option.
|
|
951
944
|
* @throws {RequiredError}
|
|
952
945
|
*/
|
|
953
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
954
|
-
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
946
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options) {
|
|
947
|
+
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options).then((request) => request(axios, basePath));
|
|
955
948
|
},
|
|
956
949
|
/**
|
|
957
|
-
*
|
|
958
|
-
* @summary
|
|
959
|
-
* @param {
|
|
950
|
+
* Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient\'s `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
951
|
+
* @summary Submit an invoice to Chorus Pro
|
|
952
|
+
* @param {SubmitInvoiceRequest} submitInvoiceRequest
|
|
960
953
|
* @param {*} [options] Override http request option.
|
|
961
954
|
* @throws {RequiredError}
|
|
962
955
|
*/
|
|
963
|
-
soumettreFactureApiV1ChorusProFacturesSoumettrePost(
|
|
964
|
-
return localVarFp.soumettreFactureApiV1ChorusProFacturesSoumettrePost(
|
|
956
|
+
soumettreFactureApiV1ChorusProFacturesSoumettrePost(submitInvoiceRequest, options) {
|
|
957
|
+
return localVarFp.soumettreFactureApiV1ChorusProFacturesSoumettrePost(submitInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
965
958
|
},
|
|
966
959
|
/**
|
|
967
|
-
*
|
|
968
|
-
* @summary
|
|
969
|
-
* @param {
|
|
960
|
+
* Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
961
|
+
* @summary Download a group of invoices
|
|
962
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
970
963
|
* @param {*} [options] Override http request option.
|
|
971
964
|
* @throws {RequiredError}
|
|
972
965
|
*/
|
|
973
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
974
|
-
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
966
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options) {
|
|
967
|
+
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options).then((request) => request(axios, basePath));
|
|
975
968
|
},
|
|
976
969
|
/**
|
|
977
|
-
* Change
|
|
978
|
-
* @summary
|
|
979
|
-
* @param {
|
|
970
|
+
* Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice\'s current status
|
|
971
|
+
* @summary Process a received invoice (Recipient)
|
|
972
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
980
973
|
* @param {*} [options] Override http request option.
|
|
981
974
|
* @throws {RequiredError}
|
|
982
975
|
*/
|
|
983
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
984
|
-
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
976
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options) {
|
|
977
|
+
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options).then((request) => request(axios, basePath));
|
|
985
978
|
},
|
|
986
979
|
/**
|
|
987
|
-
*
|
|
988
|
-
* @summary
|
|
989
|
-
* @param {
|
|
980
|
+
*
|
|
981
|
+
* @summary Consult an invoice (Validator)
|
|
982
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
990
983
|
* @param {*} [options] Override http request option.
|
|
991
984
|
* @throws {RequiredError}
|
|
992
985
|
*/
|
|
993
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
994
|
-
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
986
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options) {
|
|
987
|
+
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
995
988
|
},
|
|
996
989
|
/**
|
|
997
|
-
*
|
|
998
|
-
* @summary
|
|
999
|
-
* @param {
|
|
990
|
+
* Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
991
|
+
* @summary Search invoices to validate (Validator)
|
|
992
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1000
993
|
* @param {*} [options] Override http request option.
|
|
1001
994
|
* @throws {RequiredError}
|
|
1002
995
|
*/
|
|
1003
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1004
|
-
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
996
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options) {
|
|
997
|
+
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1005
998
|
},
|
|
1006
999
|
/**
|
|
1007
|
-
*
|
|
1008
|
-
* @summary
|
|
1009
|
-
* @param {
|
|
1000
|
+
* Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
1001
|
+
* @summary Validate or reject an invoice (Validator)
|
|
1002
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1010
1003
|
* @param {*} [options] Override http request option.
|
|
1011
1004
|
* @throws {RequiredError}
|
|
1012
1005
|
*/
|
|
1013
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1014
|
-
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1006
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options) {
|
|
1007
|
+
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1015
1008
|
},
|
|
1016
1009
|
};
|
|
1017
1010
|
};
|
|
@@ -1020,164 +1013,163 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
1020
1013
|
*/
|
|
1021
1014
|
export class ChorusProApi extends BaseAPI {
|
|
1022
1015
|
/**
|
|
1023
|
-
*
|
|
1024
|
-
* @summary
|
|
1025
|
-
* @param {
|
|
1016
|
+
* Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
1017
|
+
* @summary Add an attachment
|
|
1018
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1026
1019
|
* @param {*} [options] Override http request option.
|
|
1027
1020
|
* @throws {RequiredError}
|
|
1028
1021
|
*/
|
|
1029
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
1030
|
-
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
1022
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options) {
|
|
1023
|
+
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1031
1024
|
}
|
|
1032
1025
|
/**
|
|
1033
|
-
*
|
|
1034
|
-
* @summary
|
|
1035
|
-
* @param {
|
|
1026
|
+
* Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
1027
|
+
* @summary Complete a suspended invoice (Supplier)
|
|
1028
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1036
1029
|
* @param {*} [options] Override http request option.
|
|
1037
1030
|
* @throws {RequiredError}
|
|
1038
1031
|
*/
|
|
1039
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
1040
|
-
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
1032
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options) {
|
|
1033
|
+
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1041
1034
|
}
|
|
1042
1035
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
* @summary
|
|
1045
|
-
* @param {
|
|
1036
|
+
* Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
1037
|
+
* @summary Consult invoice status
|
|
1038
|
+
* @param {GetInvoiceRequest} getInvoiceRequest
|
|
1046
1039
|
* @param {*} [options] Override http request option.
|
|
1047
1040
|
* @throws {RequiredError}
|
|
1048
1041
|
*/
|
|
1049
|
-
consulterFactureApiV1ChorusProFacturesConsulterPost(
|
|
1050
|
-
return ChorusProApiFp(this.configuration).consulterFactureApiV1ChorusProFacturesConsulterPost(
|
|
1042
|
+
consulterFactureApiV1ChorusProFacturesConsulterPost(getInvoiceRequest, options) {
|
|
1043
|
+
return ChorusProApiFp(this.configuration).consulterFactureApiV1ChorusProFacturesConsulterPost(getInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1051
1044
|
}
|
|
1052
1045
|
/**
|
|
1053
|
-
*
|
|
1054
|
-
* @summary
|
|
1055
|
-
* @param {
|
|
1046
|
+
* Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
1047
|
+
* @summary Consult structure details
|
|
1048
|
+
* @param {GetStructureRequest} getStructureRequest
|
|
1056
1049
|
* @param {*} [options] Override http request option.
|
|
1057
1050
|
* @throws {RequiredError}
|
|
1058
1051
|
*/
|
|
1059
|
-
consulterStructureApiV1ChorusProStructuresConsulterPost(
|
|
1060
|
-
return ChorusProApiFp(this.configuration).consulterStructureApiV1ChorusProStructuresConsulterPost(
|
|
1052
|
+
consulterStructureApiV1ChorusProStructuresConsulterPost(getStructureRequest, options) {
|
|
1053
|
+
return ChorusProApiFp(this.configuration).consulterStructureApiV1ChorusProStructuresConsulterPost(getStructureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1061
1054
|
}
|
|
1062
1055
|
/**
|
|
1063
|
-
*
|
|
1064
|
-
* @summary
|
|
1056
|
+
* Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
1057
|
+
* @summary List structure services
|
|
1065
1058
|
* @param {number} idStructureCpp
|
|
1066
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1067
1059
|
* @param {*} [options] Override http request option.
|
|
1068
1060
|
* @throws {RequiredError}
|
|
1069
1061
|
*/
|
|
1070
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
1071
|
-
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
1062
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options) {
|
|
1063
|
+
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options).then((request) => request(this.axios, this.basePath));
|
|
1072
1064
|
}
|
|
1073
1065
|
/**
|
|
1074
|
-
* **
|
|
1075
|
-
* @summary
|
|
1076
|
-
* @param {
|
|
1066
|
+
* **Convenient utility** to get a structure\'s Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
1067
|
+
* @summary Utility: Get Chorus Pro ID from SIRET
|
|
1068
|
+
* @param {GetChorusProIdRequest} getChorusProIdRequest
|
|
1077
1069
|
* @param {*} [options] Override http request option.
|
|
1078
1070
|
* @throws {RequiredError}
|
|
1079
1071
|
*/
|
|
1080
|
-
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(
|
|
1081
|
-
return ChorusProApiFp(this.configuration).obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(
|
|
1072
|
+
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(getChorusProIdRequest, options) {
|
|
1073
|
+
return ChorusProApiFp(this.configuration).obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(getChorusProIdRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1082
1074
|
}
|
|
1083
1075
|
/**
|
|
1084
|
-
*
|
|
1085
|
-
* @summary
|
|
1086
|
-
* @param {
|
|
1076
|
+
* Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
1077
|
+
* @summary Search received invoices (Recipient)
|
|
1078
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1087
1079
|
* @param {*} [options] Override http request option.
|
|
1088
1080
|
* @throws {RequiredError}
|
|
1089
1081
|
*/
|
|
1090
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
1091
|
-
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
1082
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options) {
|
|
1083
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1092
1084
|
}
|
|
1093
1085
|
/**
|
|
1094
|
-
*
|
|
1095
|
-
* @summary
|
|
1096
|
-
* @param {
|
|
1086
|
+
* Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
1087
|
+
* @summary Search issued invoices (Supplier)
|
|
1088
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1097
1089
|
* @param {*} [options] Override http request option.
|
|
1098
1090
|
* @throws {RequiredError}
|
|
1099
1091
|
*/
|
|
1100
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1101
|
-
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1092
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options) {
|
|
1093
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1102
1094
|
}
|
|
1103
1095
|
/**
|
|
1104
|
-
*
|
|
1105
|
-
* @summary
|
|
1106
|
-
* @param {
|
|
1096
|
+
* Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient\'s `id_structure_cpp`.
|
|
1097
|
+
* @summary Search Chorus Pro structures
|
|
1098
|
+
* @param {SearchStructureRequest} searchStructureRequest
|
|
1107
1099
|
* @param {*} [options] Override http request option.
|
|
1108
1100
|
* @throws {RequiredError}
|
|
1109
1101
|
*/
|
|
1110
|
-
rechercherStructuresApiV1ChorusProStructuresRechercherPost(
|
|
1111
|
-
return ChorusProApiFp(this.configuration).rechercherStructuresApiV1ChorusProStructuresRechercherPost(
|
|
1102
|
+
rechercherStructuresApiV1ChorusProStructuresRechercherPost(searchStructureRequest, options) {
|
|
1103
|
+
return ChorusProApiFp(this.configuration).rechercherStructuresApiV1ChorusProStructuresRechercherPost(searchStructureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1112
1104
|
}
|
|
1113
1105
|
/**
|
|
1114
|
-
* Recycle
|
|
1115
|
-
* @summary
|
|
1116
|
-
* @param {
|
|
1106
|
+
* Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
1107
|
+
* @summary Recycle an invoice (Supplier)
|
|
1108
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1117
1109
|
* @param {*} [options] Override http request option.
|
|
1118
1110
|
* @throws {RequiredError}
|
|
1119
1111
|
*/
|
|
1120
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1121
|
-
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1112
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options) {
|
|
1113
|
+
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1122
1114
|
}
|
|
1123
1115
|
/**
|
|
1124
|
-
*
|
|
1125
|
-
* @summary
|
|
1126
|
-
* @param {
|
|
1116
|
+
* Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient\'s `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
1117
|
+
* @summary Submit an invoice to Chorus Pro
|
|
1118
|
+
* @param {SubmitInvoiceRequest} submitInvoiceRequest
|
|
1127
1119
|
* @param {*} [options] Override http request option.
|
|
1128
1120
|
* @throws {RequiredError}
|
|
1129
1121
|
*/
|
|
1130
|
-
soumettreFactureApiV1ChorusProFacturesSoumettrePost(
|
|
1131
|
-
return ChorusProApiFp(this.configuration).soumettreFactureApiV1ChorusProFacturesSoumettrePost(
|
|
1122
|
+
soumettreFactureApiV1ChorusProFacturesSoumettrePost(submitInvoiceRequest, options) {
|
|
1123
|
+
return ChorusProApiFp(this.configuration).soumettreFactureApiV1ChorusProFacturesSoumettrePost(submitInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1132
1124
|
}
|
|
1133
1125
|
/**
|
|
1134
|
-
*
|
|
1135
|
-
* @summary
|
|
1136
|
-
* @param {
|
|
1126
|
+
* Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
1127
|
+
* @summary Download a group of invoices
|
|
1128
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1137
1129
|
* @param {*} [options] Override http request option.
|
|
1138
1130
|
* @throws {RequiredError}
|
|
1139
1131
|
*/
|
|
1140
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1141
|
-
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1132
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options) {
|
|
1133
|
+
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1142
1134
|
}
|
|
1143
1135
|
/**
|
|
1144
|
-
* Change
|
|
1145
|
-
* @summary
|
|
1146
|
-
* @param {
|
|
1136
|
+
* Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice\'s current status
|
|
1137
|
+
* @summary Process a received invoice (Recipient)
|
|
1138
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1147
1139
|
* @param {*} [options] Override http request option.
|
|
1148
1140
|
* @throws {RequiredError}
|
|
1149
1141
|
*/
|
|
1150
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1151
|
-
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1142
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options) {
|
|
1143
|
+
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1152
1144
|
}
|
|
1153
1145
|
/**
|
|
1154
|
-
*
|
|
1155
|
-
* @summary
|
|
1156
|
-
* @param {
|
|
1146
|
+
*
|
|
1147
|
+
* @summary Consult an invoice (Validator)
|
|
1148
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1157
1149
|
* @param {*} [options] Override http request option.
|
|
1158
1150
|
* @throws {RequiredError}
|
|
1159
1151
|
*/
|
|
1160
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1161
|
-
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1152
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options) {
|
|
1153
|
+
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1162
1154
|
}
|
|
1163
1155
|
/**
|
|
1164
|
-
*
|
|
1165
|
-
* @summary
|
|
1166
|
-
* @param {
|
|
1156
|
+
* Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
1157
|
+
* @summary Search invoices to validate (Validator)
|
|
1158
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1167
1159
|
* @param {*} [options] Override http request option.
|
|
1168
1160
|
* @throws {RequiredError}
|
|
1169
1161
|
*/
|
|
1170
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1171
|
-
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1162
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options) {
|
|
1163
|
+
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1172
1164
|
}
|
|
1173
1165
|
/**
|
|
1174
|
-
*
|
|
1175
|
-
* @summary
|
|
1176
|
-
* @param {
|
|
1166
|
+
* Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
1167
|
+
* @summary Validate or reject an invoice (Validator)
|
|
1168
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1177
1169
|
* @param {*} [options] Override http request option.
|
|
1178
1170
|
* @throws {RequiredError}
|
|
1179
1171
|
*/
|
|
1180
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1181
|
-
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1172
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options) {
|
|
1173
|
+
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1182
1174
|
}
|
|
1183
1175
|
}
|