@pronesoft-rd/ecf-sdk 0.0.1 → 0.0.2
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/.openapi-generator/FILES +104 -2
- package/README.md +90 -24
- package/dist/apis/AssociatedCompaniesApi.d.ts +195 -40
- package/dist/apis/AssociatedCompaniesApi.js +252 -23
- package/dist/apis/AuthenticationApi.d.ts +11 -11
- package/dist/apis/AuthenticationApi.js +7 -7
- package/dist/apis/AutomatedCertificationApi.d.ts +164 -0
- package/dist/apis/AutomatedCertificationApi.js +232 -0
- package/dist/apis/CommercialApprovalsApi.d.ts +120 -0
- package/dist/apis/CommercialApprovalsApi.js +141 -0
- package/dist/apis/DigitalCertificatesApi.d.ts +17 -17
- package/dist/apis/DigitalCertificatesApi.js +7 -7
- package/dist/apis/DocumentsReceivedApi.d.ts +117 -0
- package/dist/apis/DocumentsReceivedApi.js +152 -0
- package/dist/apis/DocumentsSentApi.d.ts +216 -0
- package/dist/apis/DocumentsSentApi.js +286 -0
- package/dist/apis/ECFSubmissionApi.d.ts +130 -13
- package/dist/apis/ECFSubmissionApi.js +168 -8
- package/dist/apis/ReportsApi.d.ts +143 -0
- package/dist/apis/ReportsApi.js +193 -0
- package/dist/apis/TaxSequencesApi.d.ts +120 -38
- package/dist/apis/TaxSequencesApi.js +129 -22
- package/dist/apis/WebhookConfigurationApi.d.ts +60 -53
- package/dist/apis/WebhookConfigurationApi.js +49 -41
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +5 -0
- package/dist/esm/apis/AssociatedCompaniesApi.d.ts +195 -40
- package/dist/esm/apis/AssociatedCompaniesApi.js +253 -24
- package/dist/esm/apis/AuthenticationApi.d.ts +11 -11
- package/dist/esm/apis/AuthenticationApi.js +7 -7
- package/dist/esm/apis/AutomatedCertificationApi.d.ts +164 -0
- package/dist/esm/apis/AutomatedCertificationApi.js +228 -0
- package/dist/esm/apis/CommercialApprovalsApi.d.ts +120 -0
- package/dist/esm/apis/CommercialApprovalsApi.js +137 -0
- package/dist/esm/apis/DigitalCertificatesApi.d.ts +17 -17
- package/dist/esm/apis/DigitalCertificatesApi.js +7 -7
- package/dist/esm/apis/DocumentsReceivedApi.d.ts +117 -0
- package/dist/esm/apis/DocumentsReceivedApi.js +148 -0
- package/dist/esm/apis/DocumentsSentApi.d.ts +216 -0
- package/dist/esm/apis/DocumentsSentApi.js +282 -0
- package/dist/esm/apis/ECFSubmissionApi.d.ts +130 -13
- package/dist/esm/apis/ECFSubmissionApi.js +169 -9
- package/dist/esm/apis/ReportsApi.d.ts +143 -0
- package/dist/esm/apis/ReportsApi.js +189 -0
- package/dist/esm/apis/TaxSequencesApi.d.ts +120 -38
- package/dist/esm/apis/TaxSequencesApi.js +130 -23
- package/dist/esm/apis/WebhookConfigurationApi.d.ts +60 -53
- package/dist/esm/apis/WebhookConfigurationApi.js +49 -41
- package/dist/esm/apis/index.d.ts +5 -0
- package/dist/esm/apis/index.js +5 -0
- package/dist/esm/models/AccountType.d.ts +4 -8
- package/dist/esm/models/AccountType.js +4 -8
- package/dist/esm/models/AdditionalInfo.d.ts +60 -12
- package/dist/esm/models/AdditionalInfo.js +23 -7
- package/dist/esm/models/AlternativeCurrency.d.ts +78 -8
- package/dist/esm/models/AlternativeCurrency.js +27 -3
- package/dist/esm/models/ApprovalItem.d.ts +74 -0
- package/dist/esm/models/ApprovalItem.js +55 -0
- package/dist/esm/models/ApprovalListResponse.d.ts +40 -0
- package/dist/esm/models/ApprovalListResponse.js +45 -0
- package/dist/esm/models/AssociatedCompany.d.ts +33 -14
- package/dist/esm/models/AssociatedCompany.js +18 -11
- package/dist/esm/models/AssociatedCompanySubscription.d.ts +5 -5
- package/dist/esm/models/AssociatedCompanySubscription.js +3 -3
- package/dist/esm/models/AssociatedCompanySubscriptionPlan.d.ts +4 -4
- package/dist/esm/models/AssociatedCompanySubscriptionPlan.js +3 -3
- package/dist/esm/models/BillingIndicator.d.ts +4 -10
- package/dist/esm/models/BillingIndicator.js +4 -10
- package/dist/esm/models/Buyer.d.ts +71 -11
- package/dist/esm/models/Buyer.js +23 -3
- package/dist/esm/models/CertificationNiche.d.ts +51 -0
- package/dist/esm/models/CertificationNiche.js +48 -0
- package/dist/esm/models/CertificationNicheNicheItemsInner.d.ts +38 -0
- package/dist/esm/models/CertificationNicheNicheItemsInner.js +43 -0
- package/dist/esm/models/CertificationStatus.d.ts +54 -0
- package/dist/esm/models/CertificationStatus.js +54 -0
- package/dist/esm/models/CompanyDocumentMetrics.d.ts +53 -0
- package/dist/esm/models/CompanyDocumentMetrics.js +50 -0
- package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInner.d.ts +39 -0
- package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInner.js +44 -0
- package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInnerCount.d.ts +32 -0
- package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInnerCount.js +41 -0
- package/dist/esm/models/CompanyDocumentMetricsMainBusiness.d.ts +44 -0
- package/dist/esm/models/CompanyDocumentMetricsMainBusiness.js +45 -0
- package/dist/esm/models/CompanyDocumentMetricsTotals.d.ts +38 -0
- package/dist/esm/models/CompanyDocumentMetricsTotals.js +43 -0
- package/dist/esm/models/CompanyMetrics.d.ts +81 -0
- package/dist/esm/models/CompanyMetrics.js +58 -0
- package/dist/esm/models/CompanyMetricsDocumentsStatus.d.ts +44 -0
- package/dist/esm/models/CompanyMetricsDocumentsStatus.js +45 -0
- package/dist/esm/models/CreateAssociatedCompany201Response.d.ts +3 -3
- package/dist/esm/models/CreateAssociatedCompany201Response.js +3 -3
- package/dist/esm/models/CreateTaxSequence201Response.d.ts +39 -0
- package/dist/esm/models/CreateTaxSequence201Response.js +44 -0
- package/dist/esm/models/CreateTaxSequenceRequest.d.ts +27 -10
- package/dist/esm/models/CreateTaxSequenceRequest.js +13 -6
- package/dist/esm/models/DeleteAssociatedCompany200Response.d.ts +32 -0
- package/dist/esm/models/DeleteAssociatedCompany200Response.js +41 -0
- package/dist/esm/models/DiscountOrSurcharge.d.ts +31 -19
- package/dist/esm/models/DiscountOrSurcharge.js +16 -7
- package/dist/esm/models/DocumentStatsResponse.d.ts +54 -0
- package/dist/esm/models/DocumentStatsResponse.js +47 -0
- package/dist/esm/models/DocumentStatus.d.ts +28 -0
- package/dist/esm/models/DocumentStatus.js +46 -0
- package/dist/esm/models/EcfHistoryItem.d.ts +83 -0
- package/dist/esm/models/EcfHistoryItem.js +60 -0
- package/dist/esm/models/EcfStatsResponse.d.ts +80 -0
- package/dist/esm/models/EcfStatsResponse.js +57 -0
- package/dist/esm/models/EcfStatusResponse.d.ts +110 -0
- package/dist/esm/models/EcfStatusResponse.js +74 -0
- package/dist/esm/models/EcfStatusResponseMensajesInner.d.ts +38 -0
- package/dist/esm/models/EcfStatusResponseMensajesInner.js +43 -0
- package/dist/esm/models/EcfSubmissionResponse.d.ts +68 -11
- package/dist/esm/models/EcfSubmissionResponse.js +25 -8
- package/dist/esm/models/EcfSubmissionResponseDgiiResponse.d.ts +50 -0
- package/dist/esm/models/EcfSubmissionResponseDgiiResponse.js +47 -0
- package/dist/esm/models/ElectronicDocument.d.ts +166 -64
- package/dist/esm/models/ElectronicDocument.js +66 -22
- package/dist/esm/models/Environment.d.ts +4 -8
- package/dist/esm/models/Environment.js +4 -8
- package/dist/esm/models/ErrorResponse.d.ts +13 -7
- package/dist/esm/models/ErrorResponse.js +5 -3
- package/dist/esm/models/GetNextNumber200Response.d.ts +3 -3
- package/dist/esm/models/GetNextNumber200Response.js +3 -3
- package/dist/esm/models/GetNextNumber200ResponseData.d.ts +11 -5
- package/dist/esm/models/GetNextNumber200ResponseData.js +5 -3
- package/dist/esm/models/InvoiceType.d.ts +6 -14
- package/dist/esm/models/InvoiceType.js +6 -14
- package/dist/esm/models/InvoiceTypeSequence.d.ts +33 -0
- package/dist/esm/models/InvoiceTypeSequence.js +51 -0
- package/dist/esm/models/Item.d.ts +118 -21
- package/dist/esm/models/Item.js +45 -9
- package/dist/esm/models/ItemAdditionalTax.d.ts +7 -7
- package/dist/esm/models/ItemAdditionalTax.js +4 -6
- package/dist/esm/models/ItemAlternativeCurrency.d.ts +50 -0
- package/dist/esm/models/ItemAlternativeCurrency.js +47 -0
- package/dist/esm/models/ItemCodesInner.d.ts +38 -0
- package/dist/esm/models/ItemCodesInner.js +43 -0
- package/dist/esm/models/ItemDiscountInner.d.ts +44 -0
- package/dist/esm/models/ItemDiscountInner.js +45 -0
- package/dist/esm/models/ItemMiningInfo.d.ts +50 -0
- package/dist/esm/models/ItemMiningInfo.js +47 -0
- package/dist/esm/models/ListTaxSequences200Response.d.ts +10 -3
- package/dist/esm/models/ListTaxSequences200Response.js +6 -3
- package/dist/esm/models/OAuthTokenRequest.d.ts +6 -11
- package/dist/esm/models/OAuthTokenRequest.js +3 -3
- package/dist/esm/models/OAuthTokenResponse.d.ts +7 -9
- package/dist/esm/models/OAuthTokenResponse.js +3 -3
- package/dist/esm/models/Page.d.ts +15 -15
- package/dist/esm/models/Page.js +10 -16
- package/dist/esm/models/PaginationMeta.d.ts +50 -0
- package/dist/esm/models/PaginationMeta.js +47 -0
- package/dist/esm/models/PaymentForm.d.ts +39 -0
- package/dist/esm/models/PaymentForm.js +48 -0
- package/dist/esm/models/PaymentMethod.d.ts +4 -13
- package/dist/esm/models/PaymentMethod.js +4 -13
- package/dist/esm/models/PrintFormat.d.ts +3 -7
- package/dist/esm/models/PrintFormat.js +3 -7
- package/dist/esm/models/ProcessingLog.d.ts +54 -0
- package/dist/esm/models/ProcessingLog.js +54 -0
- package/dist/esm/models/RateLimitErrorResponse.d.ts +50 -0
- package/dist/esm/models/RateLimitErrorResponse.js +47 -0
- package/dist/esm/models/ReceivedDocument.d.ts +81 -0
- package/dist/esm/models/ReceivedDocument.js +58 -0
- package/dist/esm/models/ReceivedDocumentListResponse.d.ts +46 -0
- package/dist/esm/models/ReceivedDocumentListResponse.js +47 -0
- package/dist/esm/models/ReceivedDocumentStatsResponse.d.ts +46 -0
- package/dist/esm/models/ReceivedDocumentStatsResponse.js +45 -0
- package/dist/esm/models/ReferenceInfo.d.ts +9 -18
- package/dist/esm/models/ReferenceInfo.js +4 -4
- package/dist/esm/models/SentDocumentDetail.d.ts +107 -0
- package/dist/esm/models/SentDocumentDetail.js +68 -0
- package/dist/esm/models/SentDocumentListResponse.d.ts +46 -0
- package/dist/esm/models/SentDocumentListResponse.js +47 -0
- package/dist/esm/models/SentDocumentSummary.d.ts +94 -0
- package/dist/esm/models/SentDocumentSummary.js +63 -0
- package/dist/esm/models/SentDocumentSummaryBusiness.d.ts +38 -0
- package/dist/esm/models/SentDocumentSummaryBusiness.js +43 -0
- package/dist/esm/models/StartCertification200Response.d.ts +32 -0
- package/dist/esm/models/StartCertification200Response.js +41 -0
- package/dist/esm/models/StartCertificationRequest.d.ts +51 -0
- package/dist/esm/models/StartCertificationRequest.js +54 -0
- package/dist/esm/models/Subquantity.d.ts +6 -6
- package/dist/esm/models/Subquantity.js +3 -3
- package/dist/esm/models/Subtotal.d.ts +18 -12
- package/dist/esm/models/Subtotal.js +8 -10
- package/dist/esm/models/TaxSequence.d.ts +68 -10
- package/dist/esm/models/TaxSequence.js +33 -8
- package/dist/esm/models/TaxSequenceCreated.d.ts +64 -0
- package/dist/esm/models/TaxSequenceCreated.js +53 -0
- package/dist/esm/models/Totals.d.ts +29 -32
- package/dist/esm/models/Totals.js +5 -6
- package/dist/esm/models/Transport.d.ts +26 -14
- package/dist/esm/models/Transport.js +11 -7
- package/dist/esm/models/UpdateTaxSequenceRequest.d.ts +64 -0
- package/dist/esm/models/UpdateTaxSequenceRequest.js +53 -0
- package/dist/esm/models/UploadCertificateResponse.d.ts +7 -7
- package/dist/esm/models/UploadCertificateResponse.js +3 -3
- package/dist/esm/models/VoidTaxSequence200Response.d.ts +39 -0
- package/dist/esm/models/VoidTaxSequence200Response.js +44 -0
- package/dist/esm/models/VoidTaxSequence200ResponseData.d.ts +44 -0
- package/dist/esm/models/VoidTaxSequence200ResponseData.js +45 -0
- package/dist/esm/models/VoidTaxSequenceRequest.d.ts +50 -0
- package/dist/esm/models/VoidTaxSequenceRequest.js +55 -0
- package/dist/esm/models/WebhookConfigDetail.d.ts +81 -0
- package/dist/esm/models/WebhookConfigDetail.js +58 -0
- package/dist/esm/models/WebhookConfigResponse.d.ts +21 -9
- package/dist/esm/models/WebhookConfigResponse.js +7 -3
- package/dist/esm/models/WebhookEventType.d.ts +9 -8
- package/dist/esm/models/WebhookEventType.js +9 -8
- package/dist/esm/models/WebhookNotificationPayload.d.ts +10 -9
- package/dist/esm/models/WebhookNotificationPayload.js +3 -3
- package/dist/esm/models/WebhookStats.d.ts +45 -0
- package/dist/esm/models/WebhookStats.js +46 -0
- package/dist/esm/models/WebhookStatsStats.d.ts +62 -0
- package/dist/esm/models/WebhookStatsStats.js +51 -0
- package/dist/esm/models/index.d.ts +47 -1
- package/dist/esm/models/index.js +47 -1
- package/dist/esm/runtime.d.ts +3 -3
- package/dist/esm/runtime.js +3 -3
- package/dist/models/AccountType.d.ts +4 -8
- package/dist/models/AccountType.js +4 -8
- package/dist/models/AdditionalInfo.d.ts +60 -12
- package/dist/models/AdditionalInfo.js +23 -7
- package/dist/models/AlternativeCurrency.d.ts +78 -8
- package/dist/models/AlternativeCurrency.js +27 -3
- package/dist/models/ApprovalItem.d.ts +74 -0
- package/dist/models/ApprovalItem.js +62 -0
- package/dist/models/ApprovalListResponse.d.ts +40 -0
- package/dist/models/ApprovalListResponse.js +52 -0
- package/dist/models/AssociatedCompany.d.ts +33 -14
- package/dist/models/AssociatedCompany.js +18 -11
- package/dist/models/AssociatedCompanySubscription.d.ts +5 -5
- package/dist/models/AssociatedCompanySubscription.js +3 -3
- package/dist/models/AssociatedCompanySubscriptionPlan.d.ts +4 -4
- package/dist/models/AssociatedCompanySubscriptionPlan.js +3 -3
- package/dist/models/BillingIndicator.d.ts +4 -10
- package/dist/models/BillingIndicator.js +4 -10
- package/dist/models/Buyer.d.ts +71 -11
- package/dist/models/Buyer.js +23 -3
- package/dist/models/CertificationNiche.d.ts +51 -0
- package/dist/models/CertificationNiche.js +55 -0
- package/dist/models/CertificationNicheNicheItemsInner.d.ts +38 -0
- package/dist/models/CertificationNicheNicheItemsInner.js +50 -0
- package/dist/models/CertificationStatus.d.ts +54 -0
- package/dist/models/CertificationStatus.js +62 -0
- package/dist/models/CompanyDocumentMetrics.d.ts +53 -0
- package/dist/models/CompanyDocumentMetrics.js +57 -0
- package/dist/models/CompanyDocumentMetricsGroupByStatusInner.d.ts +39 -0
- package/dist/models/CompanyDocumentMetricsGroupByStatusInner.js +51 -0
- package/dist/models/CompanyDocumentMetricsGroupByStatusInnerCount.d.ts +32 -0
- package/dist/models/CompanyDocumentMetricsGroupByStatusInnerCount.js +48 -0
- package/dist/models/CompanyDocumentMetricsMainBusiness.d.ts +44 -0
- package/dist/models/CompanyDocumentMetricsMainBusiness.js +52 -0
- package/dist/models/CompanyDocumentMetricsTotals.d.ts +38 -0
- package/dist/models/CompanyDocumentMetricsTotals.js +50 -0
- package/dist/models/CompanyMetrics.d.ts +81 -0
- package/dist/models/CompanyMetrics.js +65 -0
- package/dist/models/CompanyMetricsDocumentsStatus.d.ts +44 -0
- package/dist/models/CompanyMetricsDocumentsStatus.js +52 -0
- package/dist/models/CreateAssociatedCompany201Response.d.ts +3 -3
- package/dist/models/CreateAssociatedCompany201Response.js +3 -3
- package/dist/models/CreateTaxSequence201Response.d.ts +39 -0
- package/dist/models/CreateTaxSequence201Response.js +51 -0
- package/dist/models/CreateTaxSequenceRequest.d.ts +27 -10
- package/dist/models/CreateTaxSequenceRequest.js +13 -6
- package/dist/models/DeleteAssociatedCompany200Response.d.ts +32 -0
- package/dist/models/DeleteAssociatedCompany200Response.js +48 -0
- package/dist/models/DiscountOrSurcharge.d.ts +31 -19
- package/dist/models/DiscountOrSurcharge.js +17 -8
- package/dist/models/DocumentStatsResponse.d.ts +54 -0
- package/dist/models/DocumentStatsResponse.js +54 -0
- package/dist/models/DocumentStatus.d.ts +28 -0
- package/dist/models/DocumentStatus.js +54 -0
- package/dist/models/EcfHistoryItem.d.ts +83 -0
- package/dist/models/EcfHistoryItem.js +67 -0
- package/dist/models/EcfStatsResponse.d.ts +80 -0
- package/dist/models/EcfStatsResponse.js +64 -0
- package/dist/models/EcfStatusResponse.d.ts +110 -0
- package/dist/models/EcfStatusResponse.js +82 -0
- package/dist/models/EcfStatusResponseMensajesInner.d.ts +38 -0
- package/dist/models/EcfStatusResponseMensajesInner.js +50 -0
- package/dist/models/EcfSubmissionResponse.d.ts +68 -11
- package/dist/models/EcfSubmissionResponse.js +25 -8
- package/dist/models/EcfSubmissionResponseDgiiResponse.d.ts +50 -0
- package/dist/models/EcfSubmissionResponseDgiiResponse.js +54 -0
- package/dist/models/ElectronicDocument.d.ts +166 -64
- package/dist/models/ElectronicDocument.js +67 -23
- package/dist/models/Environment.d.ts +4 -8
- package/dist/models/Environment.js +4 -8
- package/dist/models/ErrorResponse.d.ts +13 -7
- package/dist/models/ErrorResponse.js +5 -3
- package/dist/models/GetNextNumber200Response.d.ts +3 -3
- package/dist/models/GetNextNumber200Response.js +3 -3
- package/dist/models/GetNextNumber200ResponseData.d.ts +11 -5
- package/dist/models/GetNextNumber200ResponseData.js +5 -3
- package/dist/models/InvoiceType.d.ts +6 -14
- package/dist/models/InvoiceType.js +6 -14
- package/dist/models/InvoiceTypeSequence.d.ts +33 -0
- package/dist/models/InvoiceTypeSequence.js +59 -0
- package/dist/models/Item.d.ts +118 -21
- package/dist/models/Item.js +45 -9
- package/dist/models/ItemAdditionalTax.d.ts +7 -7
- package/dist/models/ItemAdditionalTax.js +4 -6
- package/dist/models/ItemAlternativeCurrency.d.ts +50 -0
- package/dist/models/ItemAlternativeCurrency.js +54 -0
- package/dist/models/ItemCodesInner.d.ts +38 -0
- package/dist/models/ItemCodesInner.js +50 -0
- package/dist/models/ItemDiscountInner.d.ts +44 -0
- package/dist/models/ItemDiscountInner.js +52 -0
- package/dist/models/ItemMiningInfo.d.ts +50 -0
- package/dist/models/ItemMiningInfo.js +54 -0
- package/dist/models/ListTaxSequences200Response.d.ts +10 -3
- package/dist/models/ListTaxSequences200Response.js +6 -3
- package/dist/models/OAuthTokenRequest.d.ts +6 -11
- package/dist/models/OAuthTokenRequest.js +3 -3
- package/dist/models/OAuthTokenResponse.d.ts +7 -9
- package/dist/models/OAuthTokenResponse.js +3 -3
- package/dist/models/Page.d.ts +15 -15
- package/dist/models/Page.js +10 -16
- package/dist/models/PaginationMeta.d.ts +50 -0
- package/dist/models/PaginationMeta.js +54 -0
- package/dist/models/PaymentForm.d.ts +39 -0
- package/dist/models/PaymentForm.js +55 -0
- package/dist/models/PaymentMethod.d.ts +4 -13
- package/dist/models/PaymentMethod.js +4 -13
- package/dist/models/PrintFormat.d.ts +3 -7
- package/dist/models/PrintFormat.js +3 -7
- package/dist/models/ProcessingLog.d.ts +54 -0
- package/dist/models/ProcessingLog.js +62 -0
- package/dist/models/RateLimitErrorResponse.d.ts +50 -0
- package/dist/models/RateLimitErrorResponse.js +54 -0
- package/dist/models/ReceivedDocument.d.ts +81 -0
- package/dist/models/ReceivedDocument.js +65 -0
- package/dist/models/ReceivedDocumentListResponse.d.ts +46 -0
- package/dist/models/ReceivedDocumentListResponse.js +54 -0
- package/dist/models/ReceivedDocumentStatsResponse.d.ts +46 -0
- package/dist/models/ReceivedDocumentStatsResponse.js +52 -0
- package/dist/models/ReferenceInfo.d.ts +9 -18
- package/dist/models/ReferenceInfo.js +4 -4
- package/dist/models/SentDocumentDetail.d.ts +107 -0
- package/dist/models/SentDocumentDetail.js +75 -0
- package/dist/models/SentDocumentListResponse.d.ts +46 -0
- package/dist/models/SentDocumentListResponse.js +54 -0
- package/dist/models/SentDocumentSummary.d.ts +94 -0
- package/dist/models/SentDocumentSummary.js +70 -0
- package/dist/models/SentDocumentSummaryBusiness.d.ts +38 -0
- package/dist/models/SentDocumentSummaryBusiness.js +50 -0
- package/dist/models/StartCertification200Response.d.ts +32 -0
- package/dist/models/StartCertification200Response.js +48 -0
- package/dist/models/StartCertificationRequest.d.ts +51 -0
- package/dist/models/StartCertificationRequest.js +61 -0
- package/dist/models/Subquantity.d.ts +6 -6
- package/dist/models/Subquantity.js +3 -3
- package/dist/models/Subtotal.d.ts +18 -12
- package/dist/models/Subtotal.js +8 -10
- package/dist/models/TaxSequence.d.ts +68 -10
- package/dist/models/TaxSequence.js +34 -8
- package/dist/models/TaxSequenceCreated.d.ts +64 -0
- package/dist/models/TaxSequenceCreated.js +60 -0
- package/dist/models/Totals.d.ts +29 -32
- package/dist/models/Totals.js +5 -6
- package/dist/models/Transport.d.ts +26 -14
- package/dist/models/Transport.js +11 -7
- package/dist/models/UpdateTaxSequenceRequest.d.ts +64 -0
- package/dist/models/UpdateTaxSequenceRequest.js +60 -0
- package/dist/models/UploadCertificateResponse.d.ts +7 -7
- package/dist/models/UploadCertificateResponse.js +3 -3
- package/dist/models/VoidTaxSequence200Response.d.ts +39 -0
- package/dist/models/VoidTaxSequence200Response.js +51 -0
- package/dist/models/VoidTaxSequence200ResponseData.d.ts +44 -0
- package/dist/models/VoidTaxSequence200ResponseData.js +52 -0
- package/dist/models/VoidTaxSequenceRequest.d.ts +50 -0
- package/dist/models/VoidTaxSequenceRequest.js +62 -0
- package/dist/models/WebhookConfigDetail.d.ts +81 -0
- package/dist/models/WebhookConfigDetail.js +65 -0
- package/dist/models/WebhookConfigResponse.d.ts +21 -9
- package/dist/models/WebhookConfigResponse.js +7 -3
- package/dist/models/WebhookEventType.d.ts +9 -8
- package/dist/models/WebhookEventType.js +9 -8
- package/dist/models/WebhookNotificationPayload.d.ts +10 -9
- package/dist/models/WebhookNotificationPayload.js +3 -3
- package/dist/models/WebhookStats.d.ts +45 -0
- package/dist/models/WebhookStats.js +53 -0
- package/dist/models/WebhookStatsStats.d.ts +62 -0
- package/dist/models/WebhookStatsStats.js +58 -0
- package/dist/models/index.d.ts +47 -1
- package/dist/models/index.js +47 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +3 -3
- package/docs/AccountType.md +2 -2
- package/docs/AdditionalInfo.md +21 -6
- package/docs/AlternativeCurrency.md +26 -3
- package/docs/ApprovalItem.md +48 -0
- package/docs/ApprovalListResponse.md +36 -0
- package/docs/AssociatedCompaniesApi.md +350 -42
- package/docs/AssociatedCompany.md +15 -10
- package/docs/AssociatedCompanySubscription.md +1 -1
- package/docs/AssociatedCompanySubscriptionPlan.md +1 -1
- package/docs/AuthenticationApi.md +8 -8
- package/docs/AutomatedCertificationApi.md +294 -0
- package/docs/BillingIndicator.md +2 -2
- package/docs/Buyer.md +24 -5
- package/docs/CertificationNiche.md +40 -0
- package/docs/CertificationNicheNicheItemsInner.md +36 -0
- package/docs/CertificationStatus.md +38 -0
- package/docs/CommercialApprovalsApi.md +114 -0
- package/docs/CompanyDocumentMetrics.md +40 -0
- package/docs/CompanyDocumentMetricsGroupByStatusInner.md +36 -0
- package/docs/CompanyDocumentMetricsGroupByStatusInnerCount.md +34 -0
- package/docs/CompanyDocumentMetricsMainBusiness.md +38 -0
- package/docs/CompanyDocumentMetricsTotals.md +36 -0
- package/docs/CompanyMetrics.md +50 -0
- package/docs/CompanyMetricsDocumentsStatus.md +38 -0
- package/docs/CreateAssociatedCompany201Response.md +1 -1
- package/docs/CreateTaxSequence201Response.md +36 -0
- package/docs/CreateTaxSequenceRequest.md +9 -4
- package/docs/DeleteAssociatedCompany200Response.md +34 -0
- package/docs/DigitalCertificatesApi.md +18 -16
- package/docs/DiscountOrSurcharge.md +7 -6
- package/docs/DocumentStatsResponse.md +40 -0
- package/docs/DocumentStatus.md +32 -0
- package/docs/DocumentsReceivedApi.md +175 -0
- package/docs/DocumentsSentApi.md +330 -0
- package/docs/ECFSubmissionApi.md +245 -13
- package/docs/EcfHistoryItem.md +50 -0
- package/docs/EcfStatsResponse.md +50 -0
- package/docs/EcfStatusResponse.md +56 -0
- package/docs/EcfStatusResponseMensajesInner.md +36 -0
- package/docs/EcfSubmissionResponse.md +22 -4
- package/docs/EcfSubmissionResponseDgiiResponse.md +40 -0
- package/docs/ElectronicDocument.md +52 -12
- package/docs/Environment.md +2 -2
- package/docs/ErrorResponse.md +6 -5
- package/docs/GetNextNumber200Response.md +1 -1
- package/docs/GetNextNumber200ResponseData.md +5 -3
- package/docs/InvoiceType.md +2 -2
- package/docs/InvoiceTypeSequence.md +33 -0
- package/docs/Item.md +42 -11
- package/docs/ItemAdditionalTax.md +1 -2
- package/docs/ItemAlternativeCurrency.md +40 -0
- package/docs/ItemCodesInner.md +36 -0
- package/docs/ItemDiscountInner.md +38 -0
- package/docs/ItemMiningInfo.md +40 -0
- package/docs/ListTaxSequences200Response.md +3 -1
- package/docs/OAuthTokenRequest.md +4 -4
- package/docs/OAuthTokenResponse.md +4 -4
- package/docs/Page.md +5 -6
- package/docs/PaginationMeta.md +40 -0
- package/docs/PaymentForm.md +36 -0
- package/docs/PaymentMethod.md +2 -2
- package/docs/PrintFormat.md +1 -2
- package/docs/ProcessingLog.md +38 -0
- package/docs/RateLimitErrorResponse.md +40 -0
- package/docs/ReceivedDocument.md +50 -0
- package/docs/ReceivedDocumentListResponse.md +38 -0
- package/docs/ReceivedDocumentStatsResponse.md +38 -0
- package/docs/ReferenceInfo.md +2 -2
- package/docs/ReportsApi.md +186 -0
- package/docs/SentDocumentDetail.md +58 -0
- package/docs/SentDocumentListResponse.md +38 -0
- package/docs/SentDocumentSummary.md +54 -0
- package/docs/SentDocumentSummaryBusiness.md +36 -0
- package/docs/StartCertification200Response.md +34 -0
- package/docs/StartCertificationRequest.md +40 -0
- package/docs/Subquantity.md +1 -2
- package/docs/Subtotal.md +5 -4
- package/docs/TaxSequence.md +21 -6
- package/docs/TaxSequenceCreated.md +44 -0
- package/docs/TaxSequencesApi.md +197 -38
- package/docs/Totals.md +2 -3
- package/docs/Transport.md +9 -6
- package/docs/UpdateTaxSequenceRequest.md +44 -0
- package/docs/UploadCertificateResponse.md +2 -3
- package/docs/VoidTaxSequence200Response.md +36 -0
- package/docs/VoidTaxSequence200ResponseData.md +38 -0
- package/docs/VoidTaxSequenceRequest.md +40 -0
- package/docs/WebhookConfigDetail.md +50 -0
- package/docs/WebhookConfigResponse.md +6 -3
- package/docs/WebhookConfigurationApi.md +47 -50
- package/docs/WebhookEventType.md +1 -2
- package/docs/WebhookNotificationPayload.md +3 -3
- package/docs/WebhookStats.md +38 -0
- package/docs/WebhookStatsStats.md +44 -0
- package/package.json +1 -1
- package/src/apis/AssociatedCompaniesApi.ts +455 -57
- package/src/apis/AuthenticationApi.ts +11 -11
- package/src/apis/AutomatedCertificationApi.ts +382 -0
- package/src/apis/CommercialApprovalsApi.ts +234 -0
- package/src/apis/DigitalCertificatesApi.ts +17 -17
- package/src/apis/DocumentsReceivedApi.ts +256 -0
- package/src/apis/DocumentsSentApi.ts +481 -0
- package/src/apis/ECFSubmissionApi.ts +309 -17
- package/src/apis/ReportsApi.ts +323 -0
- package/src/apis/TaxSequencesApi.ts +264 -63
- package/src/apis/WebhookConfigurationApi.ts +90 -76
- package/src/apis/index.ts +5 -0
- package/src/models/AccountType.ts +4 -8
- package/src/models/AdditionalInfo.ts +80 -16
- package/src/models/AlternativeCurrency.ts +102 -8
- package/src/models/ApprovalItem.ts +121 -0
- package/src/models/ApprovalListResponse.ts +88 -0
- package/src/models/AssociatedCompany.ts +53 -22
- package/src/models/AssociatedCompanySubscription.ts +5 -5
- package/src/models/AssociatedCompanySubscriptionPlan.ts +4 -4
- package/src/models/BillingIndicator.ts +4 -10
- package/src/models/Buyer.ts +91 -11
- package/src/models/CertificationNiche.ts +97 -0
- package/src/models/CertificationNicheNicheItemsInner.ts +73 -0
- package/src/models/CertificationStatus.ts +94 -0
- package/src/models/CompanyDocumentMetrics.ts +111 -0
- package/src/models/CompanyDocumentMetricsGroupByStatusInner.ts +81 -0
- package/src/models/CompanyDocumentMetricsGroupByStatusInnerCount.ts +65 -0
- package/src/models/CompanyDocumentMetricsMainBusiness.ts +81 -0
- package/src/models/CompanyDocumentMetricsTotals.ts +73 -0
- package/src/models/CompanyMetrics.ts +137 -0
- package/src/models/CompanyMetricsDocumentsStatus.ts +81 -0
- package/src/models/CreateAssociatedCompany201Response.ts +3 -3
- package/src/models/CreateTaxSequence201Response.ts +81 -0
- package/src/models/CreateTaxSequenceRequest.ts +46 -17
- package/src/models/DeleteAssociatedCompany200Response.ts +65 -0
- package/src/models/DiscountOrSurcharge.ts +38 -23
- package/src/models/DocumentStatsResponse.ts +89 -0
- package/src/models/DocumentStatus.ts +56 -0
- package/src/models/EcfHistoryItem.ts +153 -0
- package/src/models/EcfStatsResponse.ts +129 -0
- package/src/models/EcfStatusResponse.ts +193 -0
- package/src/models/EcfStatusResponseMensajesInner.ts +73 -0
- package/src/models/EcfSubmissionResponse.ts +96 -15
- package/src/models/EcfSubmissionResponseDgiiResponse.ts +89 -0
- package/src/models/ElectronicDocument.ts +252 -97
- package/src/models/Environment.ts +4 -8
- package/src/models/ErrorResponse.ts +15 -7
- package/src/models/GetNextNumber200Response.ts +3 -3
- package/src/models/GetNextNumber200ResponseData.ts +13 -5
- package/src/models/InvoiceType.ts +6 -14
- package/src/models/InvoiceTypeSequence.ts +61 -0
- package/src/models/Item.ts +180 -27
- package/src/models/ItemAdditionalTax.ts +8 -9
- package/src/models/ItemAlternativeCurrency.ts +89 -0
- package/src/models/ItemCodesInner.ts +73 -0
- package/src/models/ItemDiscountInner.ts +81 -0
- package/src/models/ItemMiningInfo.ts +89 -0
- package/src/models/ListTaxSequences200Response.ts +18 -3
- package/src/models/OAuthTokenRequest.ts +6 -11
- package/src/models/OAuthTokenResponse.ts +7 -9
- package/src/models/Page.ts +22 -25
- package/src/models/PaginationMeta.ts +89 -0
- package/src/models/PaymentForm.ts +85 -0
- package/src/models/PaymentMethod.ts +4 -13
- package/src/models/PrintFormat.ts +3 -7
- package/src/models/ProcessingLog.ts +94 -0
- package/src/models/RateLimitErrorResponse.ts +89 -0
- package/src/models/ReceivedDocument.ts +137 -0
- package/src/models/ReceivedDocumentListResponse.ts +96 -0
- package/src/models/ReceivedDocumentStatsResponse.ts +81 -0
- package/src/models/ReferenceInfo.ts +10 -19
- package/src/models/SentDocumentDetail.ts +185 -0
- package/src/models/SentDocumentListResponse.ts +96 -0
- package/src/models/SentDocumentSummary.ts +162 -0
- package/src/models/SentDocumentSummaryBusiness.ts +73 -0
- package/src/models/StartCertification200Response.ts +65 -0
- package/src/models/StartCertificationRequest.ts +102 -0
- package/src/models/Subquantity.ts +6 -6
- package/src/models/Subtotal.ts +23 -17
- package/src/models/TaxSequence.ts +94 -19
- package/src/models/TaxSequenceCreated.ts +122 -0
- package/src/models/Totals.ts +31 -41
- package/src/models/Transport.ts +34 -18
- package/src/models/UpdateTaxSequenceRequest.ts +122 -0
- package/src/models/UploadCertificateResponse.ts +7 -7
- package/src/models/VoidTaxSequence200Response.ts +81 -0
- package/src/models/VoidTaxSequence200ResponseData.ts +81 -0
- package/src/models/VoidTaxSequenceRequest.ts +93 -0
- package/src/models/WebhookConfigDetail.ts +137 -0
- package/src/models/WebhookConfigResponse.ts +25 -9
- package/src/models/WebhookEventType.ts +9 -8
- package/src/models/WebhookNotificationPayload.ts +10 -9
- package/src/models/WebhookStats.ts +89 -0
- package/src/models/WebhookStatsStats.ts +105 -0
- package/src/models/index.ts +47 -1
- package/src/runtime.ts +3 -3
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* eCF-Pronesoft Integration API
|
|
3
|
+
* ## Overview Production-grade API for issuing Electronic Tax Receipts (e-CF) in the Dominican Republic through the Pronesoft platform. ## Authentication — OAuth 2.0 Client Credentials ### Steps 1. Get credentials from the portal: - Sandbox: https://ecf.sandbox.pronesoft.com -> Apps -> Default Sandbox App - Production: https://ecf.pronesoft.com -> Integrations -> Apps -> Create App 2. Request a token via POST /oauth/token — valid for 24 hours (86400s). 3. Use: Authorization: Bearer <accessToken> on every request. 4. Renew on HTTP 401. Best practice: renew 5 minutes before expiry. ### Multi-company delegation To act on behalf of an associated company (branch), add: x-tenant-id: <business-uuid> Do NOT send x-tenant-id when acting as the main company. ### Sandbox specifics - Use any RNC starting with SBX (e.g. SBX123456) — no real certificate needed. - Sequences are automatic — no need to create them manually. - The environment field in the document body MUST be TesteCF. ### Scopes business:read, business:create, business:update, members:read, members:invite, members:revoke, certificates:read, certificates:upload, certificates:update, documents:read, documents:create, documents:send, documents:receive, documents:update, approvals:read, approvals:commercial, sequences:read, sequences:create, sequences:update, sequences:cancel, business_info:read, certification:read, certification:write, reports:read
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
* Contact: support@pronesoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CertificationNiche, CertificationStatus, StartCertification200Response, StartCertificationRequest } from '../models/index';
|
|
14
|
+
export interface DownloadCertificationRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetCertificationStatusRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface StartCertificationOperationRequest {
|
|
21
|
+
startCertificationRequest: StartCertificationRequest;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* AutomatedCertificationApi - interface
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomatedCertificationApiInterface
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomatedCertificationApiInterface {
|
|
30
|
+
/**
|
|
31
|
+
* Creates request options for downloadCertification without sending the request
|
|
32
|
+
* @param {string} id
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
* @memberof AutomatedCertificationApiInterface
|
|
35
|
+
*/
|
|
36
|
+
downloadCertificationRequestOpts(requestParameters: DownloadCertificationRequest): Promise<runtime.RequestOpts>;
|
|
37
|
+
/**
|
|
38
|
+
* Downloads ZIP with PDFs and XMLs. Only available when status is COMPLETED.
|
|
39
|
+
* @summary Download certification ZIP
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof AutomatedCertificationApiInterface
|
|
44
|
+
*/
|
|
45
|
+
downloadCertificationRaw(requestParameters: DownloadCertificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
46
|
+
/**
|
|
47
|
+
* Downloads ZIP with PDFs and XMLs. Only available when status is COMPLETED.
|
|
48
|
+
* Download certification ZIP
|
|
49
|
+
*/
|
|
50
|
+
downloadCertification(requestParameters: DownloadCertificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates request options for getCertificationStatus without sending the request
|
|
53
|
+
* @param {string} id
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
* @memberof AutomatedCertificationApiInterface
|
|
56
|
+
*/
|
|
57
|
+
getCertificationStatusRequestOpts(requestParameters: GetCertificationStatusRequest): Promise<runtime.RequestOpts>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary Get certification process status
|
|
61
|
+
* @param {string} id
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof AutomatedCertificationApiInterface
|
|
65
|
+
*/
|
|
66
|
+
getCertificationStatusRaw(requestParameters: GetCertificationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificationStatus>>;
|
|
67
|
+
/**
|
|
68
|
+
* Get certification process status
|
|
69
|
+
*/
|
|
70
|
+
getCertificationStatus(requestParameters: GetCertificationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificationStatus>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for listCertificationNiches without sending the request
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof AutomatedCertificationApiInterface
|
|
75
|
+
*/
|
|
76
|
+
listCertificationNichesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @summary List certification niches
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
* @memberof AutomatedCertificationApiInterface
|
|
83
|
+
*/
|
|
84
|
+
listCertificationNichesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CertificationNiche>>>;
|
|
85
|
+
/**
|
|
86
|
+
* List certification niches
|
|
87
|
+
*/
|
|
88
|
+
listCertificationNiches(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CertificationNiche>>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for startCertification without sending the request
|
|
91
|
+
* @param {StartCertificationRequest} startCertificationRequest
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof AutomatedCertificationApiInterface
|
|
94
|
+
*/
|
|
95
|
+
startCertificationRequestOpts(requestParameters: StartCertificationOperationRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Start certification process
|
|
99
|
+
* @param {StartCertificationRequest} startCertificationRequest
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof AutomatedCertificationApiInterface
|
|
103
|
+
*/
|
|
104
|
+
startCertificationRaw(requestParameters: StartCertificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StartCertification200Response>>;
|
|
105
|
+
/**
|
|
106
|
+
* Start certification process
|
|
107
|
+
*/
|
|
108
|
+
startCertification(requestParameters: StartCertificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StartCertification200Response>;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
export declare class AutomatedCertificationApi extends runtime.BaseAPI implements AutomatedCertificationApiInterface {
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for downloadCertification without sending the request
|
|
116
|
+
*/
|
|
117
|
+
downloadCertificationRequestOpts(requestParameters: DownloadCertificationRequest): Promise<runtime.RequestOpts>;
|
|
118
|
+
/**
|
|
119
|
+
* Downloads ZIP with PDFs and XMLs. Only available when status is COMPLETED.
|
|
120
|
+
* Download certification ZIP
|
|
121
|
+
*/
|
|
122
|
+
downloadCertificationRaw(requestParameters: DownloadCertificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
123
|
+
/**
|
|
124
|
+
* Downloads ZIP with PDFs and XMLs. Only available when status is COMPLETED.
|
|
125
|
+
* Download certification ZIP
|
|
126
|
+
*/
|
|
127
|
+
downloadCertification(requestParameters: DownloadCertificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
128
|
+
/**
|
|
129
|
+
* Creates request options for getCertificationStatus without sending the request
|
|
130
|
+
*/
|
|
131
|
+
getCertificationStatusRequestOpts(requestParameters: GetCertificationStatusRequest): Promise<runtime.RequestOpts>;
|
|
132
|
+
/**
|
|
133
|
+
* Get certification process status
|
|
134
|
+
*/
|
|
135
|
+
getCertificationStatusRaw(requestParameters: GetCertificationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificationStatus>>;
|
|
136
|
+
/**
|
|
137
|
+
* Get certification process status
|
|
138
|
+
*/
|
|
139
|
+
getCertificationStatus(requestParameters: GetCertificationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificationStatus>;
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for listCertificationNiches without sending the request
|
|
142
|
+
*/
|
|
143
|
+
listCertificationNichesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
144
|
+
/**
|
|
145
|
+
* List certification niches
|
|
146
|
+
*/
|
|
147
|
+
listCertificationNichesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CertificationNiche>>>;
|
|
148
|
+
/**
|
|
149
|
+
* List certification niches
|
|
150
|
+
*/
|
|
151
|
+
listCertificationNiches(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CertificationNiche>>;
|
|
152
|
+
/**
|
|
153
|
+
* Creates request options for startCertification without sending the request
|
|
154
|
+
*/
|
|
155
|
+
startCertificationRequestOpts(requestParameters: StartCertificationOperationRequest): Promise<runtime.RequestOpts>;
|
|
156
|
+
/**
|
|
157
|
+
* Start certification process
|
|
158
|
+
*/
|
|
159
|
+
startCertificationRaw(requestParameters: StartCertificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StartCertification200Response>>;
|
|
160
|
+
/**
|
|
161
|
+
* Start certification process
|
|
162
|
+
*/
|
|
163
|
+
startCertification(requestParameters: StartCertificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StartCertification200Response>;
|
|
164
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* eCF-Pronesoft Integration API
|
|
5
|
+
* ## Overview Production-grade API for issuing Electronic Tax Receipts (e-CF) in the Dominican Republic through the Pronesoft platform. ## Authentication — OAuth 2.0 Client Credentials ### Steps 1. Get credentials from the portal: - Sandbox: https://ecf.sandbox.pronesoft.com -> Apps -> Default Sandbox App - Production: https://ecf.pronesoft.com -> Integrations -> Apps -> Create App 2. Request a token via POST /oauth/token — valid for 24 hours (86400s). 3. Use: Authorization: Bearer <accessToken> on every request. 4. Renew on HTTP 401. Best practice: renew 5 minutes before expiry. ### Multi-company delegation To act on behalf of an associated company (branch), add: x-tenant-id: <business-uuid> Do NOT send x-tenant-id when acting as the main company. ### Sandbox specifics - Use any RNC starting with SBX (e.g. SBX123456) — no real certificate needed. - Sequences are automatic — no need to create them manually. - The environment field in the document body MUST be TesteCF. ### Scopes business:read, business:create, business:update, members:read, members:invite, members:revoke, certificates:read, certificates:upload, certificates:update, documents:read, documents:create, documents:send, documents:receive, documents:update, approvals:read, approvals:commercial, sequences:read, sequences:create, sequences:update, sequences:cancel, business_info:read, certification:read, certification:write, reports:read
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
|
+
* Contact: support@pronesoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { CertificationNicheFromJSON, CertificationStatusFromJSON, StartCertification200ResponseFromJSON, StartCertificationRequestToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class AutomatedCertificationApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for downloadCertification without sending the request
|
|
31
|
+
*/
|
|
32
|
+
downloadCertificationRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling downloadCertification().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
// oauth required
|
|
41
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["certification:read"]);
|
|
42
|
+
}
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("bearerAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
let urlPath = `/dgii-ecf/automated-certification/{id}/download`;
|
|
51
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
52
|
+
return {
|
|
53
|
+
path: urlPath,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Downloads ZIP with PDFs and XMLs. Only available when status is COMPLETED.
|
|
62
|
+
* Download certification ZIP
|
|
63
|
+
*/
|
|
64
|
+
downloadCertificationRaw(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const requestOptions = yield this.downloadCertificationRequestOpts(requestParameters);
|
|
67
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
68
|
+
return new runtime.BlobApiResponse(response);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Downloads ZIP with PDFs and XMLs. Only available when status is COMPLETED.
|
|
73
|
+
* Download certification ZIP
|
|
74
|
+
*/
|
|
75
|
+
downloadCertification(requestParameters, initOverrides) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const response = yield this.downloadCertificationRaw(requestParameters, initOverrides);
|
|
78
|
+
return yield response.value();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Creates request options for getCertificationStatus without sending the request
|
|
83
|
+
*/
|
|
84
|
+
getCertificationStatusRequestOpts(requestParameters) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
if (requestParameters['id'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCertificationStatus().');
|
|
88
|
+
}
|
|
89
|
+
const queryParameters = {};
|
|
90
|
+
const headerParameters = {};
|
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
92
|
+
// oauth required
|
|
93
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["certification:read"]);
|
|
94
|
+
}
|
|
95
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
96
|
+
const token = this.configuration.accessToken;
|
|
97
|
+
const tokenString = yield token("bearerAuth", []);
|
|
98
|
+
if (tokenString) {
|
|
99
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
let urlPath = `/dgii-ecf/automated-certification/{id}/status`;
|
|
103
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
104
|
+
return {
|
|
105
|
+
path: urlPath,
|
|
106
|
+
method: 'GET',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get certification process status
|
|
114
|
+
*/
|
|
115
|
+
getCertificationStatusRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const requestOptions = yield this.getCertificationStatusRequestOpts(requestParameters);
|
|
118
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CertificationStatusFromJSON(jsonValue));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get certification process status
|
|
124
|
+
*/
|
|
125
|
+
getCertificationStatus(requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const response = yield this.getCertificationStatusRaw(requestParameters, initOverrides);
|
|
128
|
+
return yield response.value();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for listCertificationNiches without sending the request
|
|
133
|
+
*/
|
|
134
|
+
listCertificationNichesRequestOpts() {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
139
|
+
// oauth required
|
|
140
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["certification:read"]);
|
|
141
|
+
}
|
|
142
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
143
|
+
const token = this.configuration.accessToken;
|
|
144
|
+
const tokenString = yield token("bearerAuth", []);
|
|
145
|
+
if (tokenString) {
|
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
let urlPath = `/dgii-ecf/automated-certification/niches`;
|
|
150
|
+
return {
|
|
151
|
+
path: urlPath,
|
|
152
|
+
method: 'GET',
|
|
153
|
+
headers: headerParameters,
|
|
154
|
+
query: queryParameters,
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* List certification niches
|
|
160
|
+
*/
|
|
161
|
+
listCertificationNichesRaw(initOverrides) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const requestOptions = yield this.listCertificationNichesRequestOpts();
|
|
164
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
165
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CertificationNicheFromJSON));
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* List certification niches
|
|
170
|
+
*/
|
|
171
|
+
listCertificationNiches(initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
const response = yield this.listCertificationNichesRaw(initOverrides);
|
|
174
|
+
return yield response.value();
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Creates request options for startCertification without sending the request
|
|
179
|
+
*/
|
|
180
|
+
startCertificationRequestOpts(requestParameters) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
if (requestParameters['startCertificationRequest'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('startCertificationRequest', 'Required parameter "startCertificationRequest" was null or undefined when calling startCertification().');
|
|
184
|
+
}
|
|
185
|
+
const queryParameters = {};
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
// oauth required
|
|
190
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["certification:write"]);
|
|
191
|
+
}
|
|
192
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
193
|
+
const token = this.configuration.accessToken;
|
|
194
|
+
const tokenString = yield token("bearerAuth", []);
|
|
195
|
+
if (tokenString) {
|
|
196
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
let urlPath = `/dgii-ecf/automated-certification/start`;
|
|
200
|
+
return {
|
|
201
|
+
path: urlPath,
|
|
202
|
+
method: 'POST',
|
|
203
|
+
headers: headerParameters,
|
|
204
|
+
query: queryParameters,
|
|
205
|
+
body: StartCertificationRequestToJSON(requestParameters['startCertificationRequest']),
|
|
206
|
+
};
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Start certification process
|
|
211
|
+
*/
|
|
212
|
+
startCertificationRaw(requestParameters, initOverrides) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
const requestOptions = yield this.startCertificationRequestOpts(requestParameters);
|
|
215
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StartCertification200ResponseFromJSON(jsonValue));
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Start certification process
|
|
221
|
+
*/
|
|
222
|
+
startCertification(requestParameters, initOverrides) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
const response = yield this.startCertificationRaw(requestParameters, initOverrides);
|
|
225
|
+
return yield response.value();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* eCF-Pronesoft Integration API
|
|
3
|
+
* ## Overview Production-grade API for issuing Electronic Tax Receipts (e-CF) in the Dominican Republic through the Pronesoft platform. ## Authentication — OAuth 2.0 Client Credentials ### Steps 1. Get credentials from the portal: - Sandbox: https://ecf.sandbox.pronesoft.com -> Apps -> Default Sandbox App - Production: https://ecf.pronesoft.com -> Integrations -> Apps -> Create App 2. Request a token via POST /oauth/token — valid for 24 hours (86400s). 3. Use: Authorization: Bearer <accessToken> on every request. 4. Renew on HTTP 401. Best practice: renew 5 minutes before expiry. ### Multi-company delegation To act on behalf of an associated company (branch), add: x-tenant-id: <business-uuid> Do NOT send x-tenant-id when acting as the main company. ### Sandbox specifics - Use any RNC starting with SBX (e.g. SBX123456) — no real certificate needed. - Sequences are automatic — no need to create them manually. - The environment field in the document body MUST be TesteCF. ### Scopes business:read, business:create, business:update, members:read, members:invite, members:revoke, certificates:read, certificates:upload, certificates:update, documents:read, documents:create, documents:send, documents:receive, documents:update, approvals:read, approvals:commercial, sequences:read, sequences:create, sequences:update, sequences:cancel, business_info:read, certification:read, certification:write, reports:read
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
* Contact: support@pronesoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ApprovalListResponse } from '../models/index';
|
|
14
|
+
export interface ListApprovalsRequest {
|
|
15
|
+
businessId: string;
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
status?: ListApprovalsStatusEnum;
|
|
19
|
+
documentType?: string;
|
|
20
|
+
dateFrom?: Date;
|
|
21
|
+
dateTo?: Date;
|
|
22
|
+
minAmount?: number;
|
|
23
|
+
maxAmount?: number;
|
|
24
|
+
search?: string;
|
|
25
|
+
sortBy?: ListApprovalsSortByEnum;
|
|
26
|
+
sortOrder?: ListApprovalsSortOrderEnum;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* CommercialApprovalsApi - interface
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CommercialApprovalsApiInterface
|
|
33
|
+
*/
|
|
34
|
+
export interface CommercialApprovalsApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for listApprovals without sending the request
|
|
37
|
+
* @param {string} businessId
|
|
38
|
+
* @param {number} [page]
|
|
39
|
+
* @param {number} [limit]
|
|
40
|
+
* @param {'PENDING' | 'APPROVED' | 'REJECTED'} [status]
|
|
41
|
+
* @param {string} [documentType]
|
|
42
|
+
* @param {Date} [dateFrom]
|
|
43
|
+
* @param {Date} [dateTo]
|
|
44
|
+
* @param {number} [minAmount]
|
|
45
|
+
* @param {number} [maxAmount]
|
|
46
|
+
* @param {string} [search]
|
|
47
|
+
* @param {'createdAt' | 'amount' | 'status'} [sortBy]
|
|
48
|
+
* @param {'asc' | 'desc'} [sortOrder]
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
* @memberof CommercialApprovalsApiInterface
|
|
51
|
+
*/
|
|
52
|
+
listApprovalsRequestOpts(requestParameters: ListApprovalsRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary List commercial approvals
|
|
56
|
+
* @param {string} businessId
|
|
57
|
+
* @param {number} [page]
|
|
58
|
+
* @param {number} [limit]
|
|
59
|
+
* @param {'PENDING' | 'APPROVED' | 'REJECTED'} [status]
|
|
60
|
+
* @param {string} [documentType]
|
|
61
|
+
* @param {Date} [dateFrom]
|
|
62
|
+
* @param {Date} [dateTo]
|
|
63
|
+
* @param {number} [minAmount]
|
|
64
|
+
* @param {number} [maxAmount]
|
|
65
|
+
* @param {string} [search]
|
|
66
|
+
* @param {'createdAt' | 'amount' | 'status'} [sortBy]
|
|
67
|
+
* @param {'asc' | 'desc'} [sortOrder]
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
* @memberof CommercialApprovalsApiInterface
|
|
71
|
+
*/
|
|
72
|
+
listApprovalsRaw(requestParameters: ListApprovalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApprovalListResponse>>;
|
|
73
|
+
/**
|
|
74
|
+
* List commercial approvals
|
|
75
|
+
*/
|
|
76
|
+
listApprovals(requestParameters: ListApprovalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApprovalListResponse>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
export declare class CommercialApprovalsApi extends runtime.BaseAPI implements CommercialApprovalsApiInterface {
|
|
82
|
+
/**
|
|
83
|
+
* Creates request options for listApprovals without sending the request
|
|
84
|
+
*/
|
|
85
|
+
listApprovalsRequestOpts(requestParameters: ListApprovalsRequest): Promise<runtime.RequestOpts>;
|
|
86
|
+
/**
|
|
87
|
+
* List commercial approvals
|
|
88
|
+
*/
|
|
89
|
+
listApprovalsRaw(requestParameters: ListApprovalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApprovalListResponse>>;
|
|
90
|
+
/**
|
|
91
|
+
* List commercial approvals
|
|
92
|
+
*/
|
|
93
|
+
listApprovals(requestParameters: ListApprovalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApprovalListResponse>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const ListApprovalsStatusEnum: {
|
|
99
|
+
readonly Pending: "PENDING";
|
|
100
|
+
readonly Approved: "APPROVED";
|
|
101
|
+
readonly Rejected: "REJECTED";
|
|
102
|
+
};
|
|
103
|
+
export type ListApprovalsStatusEnum = typeof ListApprovalsStatusEnum[keyof typeof ListApprovalsStatusEnum];
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const ListApprovalsSortByEnum: {
|
|
108
|
+
readonly CreatedAt: "createdAt";
|
|
109
|
+
readonly Amount: "amount";
|
|
110
|
+
readonly Status: "status";
|
|
111
|
+
};
|
|
112
|
+
export type ListApprovalsSortByEnum = typeof ListApprovalsSortByEnum[keyof typeof ListApprovalsSortByEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const ListApprovalsSortOrderEnum: {
|
|
117
|
+
readonly Asc: "asc";
|
|
118
|
+
readonly Desc: "desc";
|
|
119
|
+
};
|
|
120
|
+
export type ListApprovalsSortOrderEnum = typeof ListApprovalsSortOrderEnum[keyof typeof ListApprovalsSortOrderEnum];
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* eCF-Pronesoft Integration API
|
|
5
|
+
* ## Overview Production-grade API for issuing Electronic Tax Receipts (e-CF) in the Dominican Republic through the Pronesoft platform. ## Authentication — OAuth 2.0 Client Credentials ### Steps 1. Get credentials from the portal: - Sandbox: https://ecf.sandbox.pronesoft.com -> Apps -> Default Sandbox App - Production: https://ecf.pronesoft.com -> Integrations -> Apps -> Create App 2. Request a token via POST /oauth/token — valid for 24 hours (86400s). 3. Use: Authorization: Bearer <accessToken> on every request. 4. Renew on HTTP 401. Best practice: renew 5 minutes before expiry. ### Multi-company delegation To act on behalf of an associated company (branch), add: x-tenant-id: <business-uuid> Do NOT send x-tenant-id when acting as the main company. ### Sandbox specifics - Use any RNC starting with SBX (e.g. SBX123456) — no real certificate needed. - Sequences are automatic — no need to create them manually. - The environment field in the document body MUST be TesteCF. ### Scopes business:read, business:create, business:update, members:read, members:invite, members:revoke, certificates:read, certificates:upload, certificates:update, documents:read, documents:create, documents:send, documents:receive, documents:update, approvals:read, approvals:commercial, sequences:read, sequences:create, sequences:update, sequences:cancel, business_info:read, certification:read, certification:write, reports:read
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
|
+
* Contact: support@pronesoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { ApprovalListResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class CommercialApprovalsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for listApprovals without sending the request
|
|
31
|
+
*/
|
|
32
|
+
listApprovalsRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['businessId'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('businessId', 'Required parameter "businessId" was null or undefined when calling listApprovals().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['businessId'] != null) {
|
|
39
|
+
queryParameters['businessId'] = requestParameters['businessId'];
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['page'] != null) {
|
|
42
|
+
queryParameters['page'] = requestParameters['page'];
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['limit'] != null) {
|
|
45
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
46
|
+
}
|
|
47
|
+
if (requestParameters['status'] != null) {
|
|
48
|
+
queryParameters['status'] = requestParameters['status'];
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['documentType'] != null) {
|
|
51
|
+
queryParameters['documentType'] = requestParameters['documentType'];
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['dateFrom'] != null) {
|
|
54
|
+
queryParameters['dateFrom'] = requestParameters['dateFrom'].toISOString();
|
|
55
|
+
}
|
|
56
|
+
if (requestParameters['dateTo'] != null) {
|
|
57
|
+
queryParameters['dateTo'] = requestParameters['dateTo'].toISOString();
|
|
58
|
+
}
|
|
59
|
+
if (requestParameters['minAmount'] != null) {
|
|
60
|
+
queryParameters['minAmount'] = requestParameters['minAmount'];
|
|
61
|
+
}
|
|
62
|
+
if (requestParameters['maxAmount'] != null) {
|
|
63
|
+
queryParameters['maxAmount'] = requestParameters['maxAmount'];
|
|
64
|
+
}
|
|
65
|
+
if (requestParameters['search'] != null) {
|
|
66
|
+
queryParameters['search'] = requestParameters['search'];
|
|
67
|
+
}
|
|
68
|
+
if (requestParameters['sortBy'] != null) {
|
|
69
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
70
|
+
}
|
|
71
|
+
if (requestParameters['sortOrder'] != null) {
|
|
72
|
+
queryParameters['sortOrder'] = requestParameters['sortOrder'];
|
|
73
|
+
}
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
// oauth required
|
|
77
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["approvals:read"]);
|
|
78
|
+
}
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
const token = this.configuration.accessToken;
|
|
81
|
+
const tokenString = yield token("bearerAuth", []);
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
let urlPath = `/documents/approvals/all`;
|
|
87
|
+
return {
|
|
88
|
+
path: urlPath,
|
|
89
|
+
method: 'GET',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* List commercial approvals
|
|
97
|
+
*/
|
|
98
|
+
listApprovalsRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.listApprovalsRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApprovalListResponseFromJSON(jsonValue));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* List commercial approvals
|
|
107
|
+
*/
|
|
108
|
+
listApprovals(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.listApprovalsRaw(requestParameters, initOverrides);
|
|
111
|
+
return yield response.value();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const ListApprovalsStatusEnum = {
|
|
119
|
+
Pending: 'PENDING',
|
|
120
|
+
Approved: 'APPROVED',
|
|
121
|
+
Rejected: 'REJECTED'
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const ListApprovalsSortByEnum = {
|
|
127
|
+
CreatedAt: 'createdAt',
|
|
128
|
+
Amount: 'amount',
|
|
129
|
+
Status: 'status'
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export const ListApprovalsSortOrderEnum = {
|
|
135
|
+
Asc: 'asc',
|
|
136
|
+
Desc: 'desc'
|
|
137
|
+
};
|