@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.
Files changed (582) hide show
  1. package/.openapi-generator/FILES +104 -2
  2. package/README.md +90 -24
  3. package/dist/apis/AssociatedCompaniesApi.d.ts +195 -40
  4. package/dist/apis/AssociatedCompaniesApi.js +252 -23
  5. package/dist/apis/AuthenticationApi.d.ts +11 -11
  6. package/dist/apis/AuthenticationApi.js +7 -7
  7. package/dist/apis/AutomatedCertificationApi.d.ts +164 -0
  8. package/dist/apis/AutomatedCertificationApi.js +232 -0
  9. package/dist/apis/CommercialApprovalsApi.d.ts +120 -0
  10. package/dist/apis/CommercialApprovalsApi.js +141 -0
  11. package/dist/apis/DigitalCertificatesApi.d.ts +17 -17
  12. package/dist/apis/DigitalCertificatesApi.js +7 -7
  13. package/dist/apis/DocumentsReceivedApi.d.ts +117 -0
  14. package/dist/apis/DocumentsReceivedApi.js +152 -0
  15. package/dist/apis/DocumentsSentApi.d.ts +216 -0
  16. package/dist/apis/DocumentsSentApi.js +286 -0
  17. package/dist/apis/ECFSubmissionApi.d.ts +130 -13
  18. package/dist/apis/ECFSubmissionApi.js +168 -8
  19. package/dist/apis/ReportsApi.d.ts +143 -0
  20. package/dist/apis/ReportsApi.js +193 -0
  21. package/dist/apis/TaxSequencesApi.d.ts +120 -38
  22. package/dist/apis/TaxSequencesApi.js +129 -22
  23. package/dist/apis/WebhookConfigurationApi.d.ts +60 -53
  24. package/dist/apis/WebhookConfigurationApi.js +49 -41
  25. package/dist/apis/index.d.ts +5 -0
  26. package/dist/apis/index.js +5 -0
  27. package/dist/esm/apis/AssociatedCompaniesApi.d.ts +195 -40
  28. package/dist/esm/apis/AssociatedCompaniesApi.js +253 -24
  29. package/dist/esm/apis/AuthenticationApi.d.ts +11 -11
  30. package/dist/esm/apis/AuthenticationApi.js +7 -7
  31. package/dist/esm/apis/AutomatedCertificationApi.d.ts +164 -0
  32. package/dist/esm/apis/AutomatedCertificationApi.js +228 -0
  33. package/dist/esm/apis/CommercialApprovalsApi.d.ts +120 -0
  34. package/dist/esm/apis/CommercialApprovalsApi.js +137 -0
  35. package/dist/esm/apis/DigitalCertificatesApi.d.ts +17 -17
  36. package/dist/esm/apis/DigitalCertificatesApi.js +7 -7
  37. package/dist/esm/apis/DocumentsReceivedApi.d.ts +117 -0
  38. package/dist/esm/apis/DocumentsReceivedApi.js +148 -0
  39. package/dist/esm/apis/DocumentsSentApi.d.ts +216 -0
  40. package/dist/esm/apis/DocumentsSentApi.js +282 -0
  41. package/dist/esm/apis/ECFSubmissionApi.d.ts +130 -13
  42. package/dist/esm/apis/ECFSubmissionApi.js +169 -9
  43. package/dist/esm/apis/ReportsApi.d.ts +143 -0
  44. package/dist/esm/apis/ReportsApi.js +189 -0
  45. package/dist/esm/apis/TaxSequencesApi.d.ts +120 -38
  46. package/dist/esm/apis/TaxSequencesApi.js +130 -23
  47. package/dist/esm/apis/WebhookConfigurationApi.d.ts +60 -53
  48. package/dist/esm/apis/WebhookConfigurationApi.js +49 -41
  49. package/dist/esm/apis/index.d.ts +5 -0
  50. package/dist/esm/apis/index.js +5 -0
  51. package/dist/esm/models/AccountType.d.ts +4 -8
  52. package/dist/esm/models/AccountType.js +4 -8
  53. package/dist/esm/models/AdditionalInfo.d.ts +60 -12
  54. package/dist/esm/models/AdditionalInfo.js +23 -7
  55. package/dist/esm/models/AlternativeCurrency.d.ts +78 -8
  56. package/dist/esm/models/AlternativeCurrency.js +27 -3
  57. package/dist/esm/models/ApprovalItem.d.ts +74 -0
  58. package/dist/esm/models/ApprovalItem.js +55 -0
  59. package/dist/esm/models/ApprovalListResponse.d.ts +40 -0
  60. package/dist/esm/models/ApprovalListResponse.js +45 -0
  61. package/dist/esm/models/AssociatedCompany.d.ts +33 -14
  62. package/dist/esm/models/AssociatedCompany.js +18 -11
  63. package/dist/esm/models/AssociatedCompanySubscription.d.ts +5 -5
  64. package/dist/esm/models/AssociatedCompanySubscription.js +3 -3
  65. package/dist/esm/models/AssociatedCompanySubscriptionPlan.d.ts +4 -4
  66. package/dist/esm/models/AssociatedCompanySubscriptionPlan.js +3 -3
  67. package/dist/esm/models/BillingIndicator.d.ts +4 -10
  68. package/dist/esm/models/BillingIndicator.js +4 -10
  69. package/dist/esm/models/Buyer.d.ts +71 -11
  70. package/dist/esm/models/Buyer.js +23 -3
  71. package/dist/esm/models/CertificationNiche.d.ts +51 -0
  72. package/dist/esm/models/CertificationNiche.js +48 -0
  73. package/dist/esm/models/CertificationNicheNicheItemsInner.d.ts +38 -0
  74. package/dist/esm/models/CertificationNicheNicheItemsInner.js +43 -0
  75. package/dist/esm/models/CertificationStatus.d.ts +54 -0
  76. package/dist/esm/models/CertificationStatus.js +54 -0
  77. package/dist/esm/models/CompanyDocumentMetrics.d.ts +53 -0
  78. package/dist/esm/models/CompanyDocumentMetrics.js +50 -0
  79. package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInner.d.ts +39 -0
  80. package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInner.js +44 -0
  81. package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInnerCount.d.ts +32 -0
  82. package/dist/esm/models/CompanyDocumentMetricsGroupByStatusInnerCount.js +41 -0
  83. package/dist/esm/models/CompanyDocumentMetricsMainBusiness.d.ts +44 -0
  84. package/dist/esm/models/CompanyDocumentMetricsMainBusiness.js +45 -0
  85. package/dist/esm/models/CompanyDocumentMetricsTotals.d.ts +38 -0
  86. package/dist/esm/models/CompanyDocumentMetricsTotals.js +43 -0
  87. package/dist/esm/models/CompanyMetrics.d.ts +81 -0
  88. package/dist/esm/models/CompanyMetrics.js +58 -0
  89. package/dist/esm/models/CompanyMetricsDocumentsStatus.d.ts +44 -0
  90. package/dist/esm/models/CompanyMetricsDocumentsStatus.js +45 -0
  91. package/dist/esm/models/CreateAssociatedCompany201Response.d.ts +3 -3
  92. package/dist/esm/models/CreateAssociatedCompany201Response.js +3 -3
  93. package/dist/esm/models/CreateTaxSequence201Response.d.ts +39 -0
  94. package/dist/esm/models/CreateTaxSequence201Response.js +44 -0
  95. package/dist/esm/models/CreateTaxSequenceRequest.d.ts +27 -10
  96. package/dist/esm/models/CreateTaxSequenceRequest.js +13 -6
  97. package/dist/esm/models/DeleteAssociatedCompany200Response.d.ts +32 -0
  98. package/dist/esm/models/DeleteAssociatedCompany200Response.js +41 -0
  99. package/dist/esm/models/DiscountOrSurcharge.d.ts +31 -19
  100. package/dist/esm/models/DiscountOrSurcharge.js +16 -7
  101. package/dist/esm/models/DocumentStatsResponse.d.ts +54 -0
  102. package/dist/esm/models/DocumentStatsResponse.js +47 -0
  103. package/dist/esm/models/DocumentStatus.d.ts +28 -0
  104. package/dist/esm/models/DocumentStatus.js +46 -0
  105. package/dist/esm/models/EcfHistoryItem.d.ts +83 -0
  106. package/dist/esm/models/EcfHistoryItem.js +60 -0
  107. package/dist/esm/models/EcfStatsResponse.d.ts +80 -0
  108. package/dist/esm/models/EcfStatsResponse.js +57 -0
  109. package/dist/esm/models/EcfStatusResponse.d.ts +110 -0
  110. package/dist/esm/models/EcfStatusResponse.js +74 -0
  111. package/dist/esm/models/EcfStatusResponseMensajesInner.d.ts +38 -0
  112. package/dist/esm/models/EcfStatusResponseMensajesInner.js +43 -0
  113. package/dist/esm/models/EcfSubmissionResponse.d.ts +68 -11
  114. package/dist/esm/models/EcfSubmissionResponse.js +25 -8
  115. package/dist/esm/models/EcfSubmissionResponseDgiiResponse.d.ts +50 -0
  116. package/dist/esm/models/EcfSubmissionResponseDgiiResponse.js +47 -0
  117. package/dist/esm/models/ElectronicDocument.d.ts +166 -64
  118. package/dist/esm/models/ElectronicDocument.js +66 -22
  119. package/dist/esm/models/Environment.d.ts +4 -8
  120. package/dist/esm/models/Environment.js +4 -8
  121. package/dist/esm/models/ErrorResponse.d.ts +13 -7
  122. package/dist/esm/models/ErrorResponse.js +5 -3
  123. package/dist/esm/models/GetNextNumber200Response.d.ts +3 -3
  124. package/dist/esm/models/GetNextNumber200Response.js +3 -3
  125. package/dist/esm/models/GetNextNumber200ResponseData.d.ts +11 -5
  126. package/dist/esm/models/GetNextNumber200ResponseData.js +5 -3
  127. package/dist/esm/models/InvoiceType.d.ts +6 -14
  128. package/dist/esm/models/InvoiceType.js +6 -14
  129. package/dist/esm/models/InvoiceTypeSequence.d.ts +33 -0
  130. package/dist/esm/models/InvoiceTypeSequence.js +51 -0
  131. package/dist/esm/models/Item.d.ts +118 -21
  132. package/dist/esm/models/Item.js +45 -9
  133. package/dist/esm/models/ItemAdditionalTax.d.ts +7 -7
  134. package/dist/esm/models/ItemAdditionalTax.js +4 -6
  135. package/dist/esm/models/ItemAlternativeCurrency.d.ts +50 -0
  136. package/dist/esm/models/ItemAlternativeCurrency.js +47 -0
  137. package/dist/esm/models/ItemCodesInner.d.ts +38 -0
  138. package/dist/esm/models/ItemCodesInner.js +43 -0
  139. package/dist/esm/models/ItemDiscountInner.d.ts +44 -0
  140. package/dist/esm/models/ItemDiscountInner.js +45 -0
  141. package/dist/esm/models/ItemMiningInfo.d.ts +50 -0
  142. package/dist/esm/models/ItemMiningInfo.js +47 -0
  143. package/dist/esm/models/ListTaxSequences200Response.d.ts +10 -3
  144. package/dist/esm/models/ListTaxSequences200Response.js +6 -3
  145. package/dist/esm/models/OAuthTokenRequest.d.ts +6 -11
  146. package/dist/esm/models/OAuthTokenRequest.js +3 -3
  147. package/dist/esm/models/OAuthTokenResponse.d.ts +7 -9
  148. package/dist/esm/models/OAuthTokenResponse.js +3 -3
  149. package/dist/esm/models/Page.d.ts +15 -15
  150. package/dist/esm/models/Page.js +10 -16
  151. package/dist/esm/models/PaginationMeta.d.ts +50 -0
  152. package/dist/esm/models/PaginationMeta.js +47 -0
  153. package/dist/esm/models/PaymentForm.d.ts +39 -0
  154. package/dist/esm/models/PaymentForm.js +48 -0
  155. package/dist/esm/models/PaymentMethod.d.ts +4 -13
  156. package/dist/esm/models/PaymentMethod.js +4 -13
  157. package/dist/esm/models/PrintFormat.d.ts +3 -7
  158. package/dist/esm/models/PrintFormat.js +3 -7
  159. package/dist/esm/models/ProcessingLog.d.ts +54 -0
  160. package/dist/esm/models/ProcessingLog.js +54 -0
  161. package/dist/esm/models/RateLimitErrorResponse.d.ts +50 -0
  162. package/dist/esm/models/RateLimitErrorResponse.js +47 -0
  163. package/dist/esm/models/ReceivedDocument.d.ts +81 -0
  164. package/dist/esm/models/ReceivedDocument.js +58 -0
  165. package/dist/esm/models/ReceivedDocumentListResponse.d.ts +46 -0
  166. package/dist/esm/models/ReceivedDocumentListResponse.js +47 -0
  167. package/dist/esm/models/ReceivedDocumentStatsResponse.d.ts +46 -0
  168. package/dist/esm/models/ReceivedDocumentStatsResponse.js +45 -0
  169. package/dist/esm/models/ReferenceInfo.d.ts +9 -18
  170. package/dist/esm/models/ReferenceInfo.js +4 -4
  171. package/dist/esm/models/SentDocumentDetail.d.ts +107 -0
  172. package/dist/esm/models/SentDocumentDetail.js +68 -0
  173. package/dist/esm/models/SentDocumentListResponse.d.ts +46 -0
  174. package/dist/esm/models/SentDocumentListResponse.js +47 -0
  175. package/dist/esm/models/SentDocumentSummary.d.ts +94 -0
  176. package/dist/esm/models/SentDocumentSummary.js +63 -0
  177. package/dist/esm/models/SentDocumentSummaryBusiness.d.ts +38 -0
  178. package/dist/esm/models/SentDocumentSummaryBusiness.js +43 -0
  179. package/dist/esm/models/StartCertification200Response.d.ts +32 -0
  180. package/dist/esm/models/StartCertification200Response.js +41 -0
  181. package/dist/esm/models/StartCertificationRequest.d.ts +51 -0
  182. package/dist/esm/models/StartCertificationRequest.js +54 -0
  183. package/dist/esm/models/Subquantity.d.ts +6 -6
  184. package/dist/esm/models/Subquantity.js +3 -3
  185. package/dist/esm/models/Subtotal.d.ts +18 -12
  186. package/dist/esm/models/Subtotal.js +8 -10
  187. package/dist/esm/models/TaxSequence.d.ts +68 -10
  188. package/dist/esm/models/TaxSequence.js +33 -8
  189. package/dist/esm/models/TaxSequenceCreated.d.ts +64 -0
  190. package/dist/esm/models/TaxSequenceCreated.js +53 -0
  191. package/dist/esm/models/Totals.d.ts +29 -32
  192. package/dist/esm/models/Totals.js +5 -6
  193. package/dist/esm/models/Transport.d.ts +26 -14
  194. package/dist/esm/models/Transport.js +11 -7
  195. package/dist/esm/models/UpdateTaxSequenceRequest.d.ts +64 -0
  196. package/dist/esm/models/UpdateTaxSequenceRequest.js +53 -0
  197. package/dist/esm/models/UploadCertificateResponse.d.ts +7 -7
  198. package/dist/esm/models/UploadCertificateResponse.js +3 -3
  199. package/dist/esm/models/VoidTaxSequence200Response.d.ts +39 -0
  200. package/dist/esm/models/VoidTaxSequence200Response.js +44 -0
  201. package/dist/esm/models/VoidTaxSequence200ResponseData.d.ts +44 -0
  202. package/dist/esm/models/VoidTaxSequence200ResponseData.js +45 -0
  203. package/dist/esm/models/VoidTaxSequenceRequest.d.ts +50 -0
  204. package/dist/esm/models/VoidTaxSequenceRequest.js +55 -0
  205. package/dist/esm/models/WebhookConfigDetail.d.ts +81 -0
  206. package/dist/esm/models/WebhookConfigDetail.js +58 -0
  207. package/dist/esm/models/WebhookConfigResponse.d.ts +21 -9
  208. package/dist/esm/models/WebhookConfigResponse.js +7 -3
  209. package/dist/esm/models/WebhookEventType.d.ts +9 -8
  210. package/dist/esm/models/WebhookEventType.js +9 -8
  211. package/dist/esm/models/WebhookNotificationPayload.d.ts +10 -9
  212. package/dist/esm/models/WebhookNotificationPayload.js +3 -3
  213. package/dist/esm/models/WebhookStats.d.ts +45 -0
  214. package/dist/esm/models/WebhookStats.js +46 -0
  215. package/dist/esm/models/WebhookStatsStats.d.ts +62 -0
  216. package/dist/esm/models/WebhookStatsStats.js +51 -0
  217. package/dist/esm/models/index.d.ts +47 -1
  218. package/dist/esm/models/index.js +47 -1
  219. package/dist/esm/runtime.d.ts +3 -3
  220. package/dist/esm/runtime.js +3 -3
  221. package/dist/models/AccountType.d.ts +4 -8
  222. package/dist/models/AccountType.js +4 -8
  223. package/dist/models/AdditionalInfo.d.ts +60 -12
  224. package/dist/models/AdditionalInfo.js +23 -7
  225. package/dist/models/AlternativeCurrency.d.ts +78 -8
  226. package/dist/models/AlternativeCurrency.js +27 -3
  227. package/dist/models/ApprovalItem.d.ts +74 -0
  228. package/dist/models/ApprovalItem.js +62 -0
  229. package/dist/models/ApprovalListResponse.d.ts +40 -0
  230. package/dist/models/ApprovalListResponse.js +52 -0
  231. package/dist/models/AssociatedCompany.d.ts +33 -14
  232. package/dist/models/AssociatedCompany.js +18 -11
  233. package/dist/models/AssociatedCompanySubscription.d.ts +5 -5
  234. package/dist/models/AssociatedCompanySubscription.js +3 -3
  235. package/dist/models/AssociatedCompanySubscriptionPlan.d.ts +4 -4
  236. package/dist/models/AssociatedCompanySubscriptionPlan.js +3 -3
  237. package/dist/models/BillingIndicator.d.ts +4 -10
  238. package/dist/models/BillingIndicator.js +4 -10
  239. package/dist/models/Buyer.d.ts +71 -11
  240. package/dist/models/Buyer.js +23 -3
  241. package/dist/models/CertificationNiche.d.ts +51 -0
  242. package/dist/models/CertificationNiche.js +55 -0
  243. package/dist/models/CertificationNicheNicheItemsInner.d.ts +38 -0
  244. package/dist/models/CertificationNicheNicheItemsInner.js +50 -0
  245. package/dist/models/CertificationStatus.d.ts +54 -0
  246. package/dist/models/CertificationStatus.js +62 -0
  247. package/dist/models/CompanyDocumentMetrics.d.ts +53 -0
  248. package/dist/models/CompanyDocumentMetrics.js +57 -0
  249. package/dist/models/CompanyDocumentMetricsGroupByStatusInner.d.ts +39 -0
  250. package/dist/models/CompanyDocumentMetricsGroupByStatusInner.js +51 -0
  251. package/dist/models/CompanyDocumentMetricsGroupByStatusInnerCount.d.ts +32 -0
  252. package/dist/models/CompanyDocumentMetricsGroupByStatusInnerCount.js +48 -0
  253. package/dist/models/CompanyDocumentMetricsMainBusiness.d.ts +44 -0
  254. package/dist/models/CompanyDocumentMetricsMainBusiness.js +52 -0
  255. package/dist/models/CompanyDocumentMetricsTotals.d.ts +38 -0
  256. package/dist/models/CompanyDocumentMetricsTotals.js +50 -0
  257. package/dist/models/CompanyMetrics.d.ts +81 -0
  258. package/dist/models/CompanyMetrics.js +65 -0
  259. package/dist/models/CompanyMetricsDocumentsStatus.d.ts +44 -0
  260. package/dist/models/CompanyMetricsDocumentsStatus.js +52 -0
  261. package/dist/models/CreateAssociatedCompany201Response.d.ts +3 -3
  262. package/dist/models/CreateAssociatedCompany201Response.js +3 -3
  263. package/dist/models/CreateTaxSequence201Response.d.ts +39 -0
  264. package/dist/models/CreateTaxSequence201Response.js +51 -0
  265. package/dist/models/CreateTaxSequenceRequest.d.ts +27 -10
  266. package/dist/models/CreateTaxSequenceRequest.js +13 -6
  267. package/dist/models/DeleteAssociatedCompany200Response.d.ts +32 -0
  268. package/dist/models/DeleteAssociatedCompany200Response.js +48 -0
  269. package/dist/models/DiscountOrSurcharge.d.ts +31 -19
  270. package/dist/models/DiscountOrSurcharge.js +17 -8
  271. package/dist/models/DocumentStatsResponse.d.ts +54 -0
  272. package/dist/models/DocumentStatsResponse.js +54 -0
  273. package/dist/models/DocumentStatus.d.ts +28 -0
  274. package/dist/models/DocumentStatus.js +54 -0
  275. package/dist/models/EcfHistoryItem.d.ts +83 -0
  276. package/dist/models/EcfHistoryItem.js +67 -0
  277. package/dist/models/EcfStatsResponse.d.ts +80 -0
  278. package/dist/models/EcfStatsResponse.js +64 -0
  279. package/dist/models/EcfStatusResponse.d.ts +110 -0
  280. package/dist/models/EcfStatusResponse.js +82 -0
  281. package/dist/models/EcfStatusResponseMensajesInner.d.ts +38 -0
  282. package/dist/models/EcfStatusResponseMensajesInner.js +50 -0
  283. package/dist/models/EcfSubmissionResponse.d.ts +68 -11
  284. package/dist/models/EcfSubmissionResponse.js +25 -8
  285. package/dist/models/EcfSubmissionResponseDgiiResponse.d.ts +50 -0
  286. package/dist/models/EcfSubmissionResponseDgiiResponse.js +54 -0
  287. package/dist/models/ElectronicDocument.d.ts +166 -64
  288. package/dist/models/ElectronicDocument.js +67 -23
  289. package/dist/models/Environment.d.ts +4 -8
  290. package/dist/models/Environment.js +4 -8
  291. package/dist/models/ErrorResponse.d.ts +13 -7
  292. package/dist/models/ErrorResponse.js +5 -3
  293. package/dist/models/GetNextNumber200Response.d.ts +3 -3
  294. package/dist/models/GetNextNumber200Response.js +3 -3
  295. package/dist/models/GetNextNumber200ResponseData.d.ts +11 -5
  296. package/dist/models/GetNextNumber200ResponseData.js +5 -3
  297. package/dist/models/InvoiceType.d.ts +6 -14
  298. package/dist/models/InvoiceType.js +6 -14
  299. package/dist/models/InvoiceTypeSequence.d.ts +33 -0
  300. package/dist/models/InvoiceTypeSequence.js +59 -0
  301. package/dist/models/Item.d.ts +118 -21
  302. package/dist/models/Item.js +45 -9
  303. package/dist/models/ItemAdditionalTax.d.ts +7 -7
  304. package/dist/models/ItemAdditionalTax.js +4 -6
  305. package/dist/models/ItemAlternativeCurrency.d.ts +50 -0
  306. package/dist/models/ItemAlternativeCurrency.js +54 -0
  307. package/dist/models/ItemCodesInner.d.ts +38 -0
  308. package/dist/models/ItemCodesInner.js +50 -0
  309. package/dist/models/ItemDiscountInner.d.ts +44 -0
  310. package/dist/models/ItemDiscountInner.js +52 -0
  311. package/dist/models/ItemMiningInfo.d.ts +50 -0
  312. package/dist/models/ItemMiningInfo.js +54 -0
  313. package/dist/models/ListTaxSequences200Response.d.ts +10 -3
  314. package/dist/models/ListTaxSequences200Response.js +6 -3
  315. package/dist/models/OAuthTokenRequest.d.ts +6 -11
  316. package/dist/models/OAuthTokenRequest.js +3 -3
  317. package/dist/models/OAuthTokenResponse.d.ts +7 -9
  318. package/dist/models/OAuthTokenResponse.js +3 -3
  319. package/dist/models/Page.d.ts +15 -15
  320. package/dist/models/Page.js +10 -16
  321. package/dist/models/PaginationMeta.d.ts +50 -0
  322. package/dist/models/PaginationMeta.js +54 -0
  323. package/dist/models/PaymentForm.d.ts +39 -0
  324. package/dist/models/PaymentForm.js +55 -0
  325. package/dist/models/PaymentMethod.d.ts +4 -13
  326. package/dist/models/PaymentMethod.js +4 -13
  327. package/dist/models/PrintFormat.d.ts +3 -7
  328. package/dist/models/PrintFormat.js +3 -7
  329. package/dist/models/ProcessingLog.d.ts +54 -0
  330. package/dist/models/ProcessingLog.js +62 -0
  331. package/dist/models/RateLimitErrorResponse.d.ts +50 -0
  332. package/dist/models/RateLimitErrorResponse.js +54 -0
  333. package/dist/models/ReceivedDocument.d.ts +81 -0
  334. package/dist/models/ReceivedDocument.js +65 -0
  335. package/dist/models/ReceivedDocumentListResponse.d.ts +46 -0
  336. package/dist/models/ReceivedDocumentListResponse.js +54 -0
  337. package/dist/models/ReceivedDocumentStatsResponse.d.ts +46 -0
  338. package/dist/models/ReceivedDocumentStatsResponse.js +52 -0
  339. package/dist/models/ReferenceInfo.d.ts +9 -18
  340. package/dist/models/ReferenceInfo.js +4 -4
  341. package/dist/models/SentDocumentDetail.d.ts +107 -0
  342. package/dist/models/SentDocumentDetail.js +75 -0
  343. package/dist/models/SentDocumentListResponse.d.ts +46 -0
  344. package/dist/models/SentDocumentListResponse.js +54 -0
  345. package/dist/models/SentDocumentSummary.d.ts +94 -0
  346. package/dist/models/SentDocumentSummary.js +70 -0
  347. package/dist/models/SentDocumentSummaryBusiness.d.ts +38 -0
  348. package/dist/models/SentDocumentSummaryBusiness.js +50 -0
  349. package/dist/models/StartCertification200Response.d.ts +32 -0
  350. package/dist/models/StartCertification200Response.js +48 -0
  351. package/dist/models/StartCertificationRequest.d.ts +51 -0
  352. package/dist/models/StartCertificationRequest.js +61 -0
  353. package/dist/models/Subquantity.d.ts +6 -6
  354. package/dist/models/Subquantity.js +3 -3
  355. package/dist/models/Subtotal.d.ts +18 -12
  356. package/dist/models/Subtotal.js +8 -10
  357. package/dist/models/TaxSequence.d.ts +68 -10
  358. package/dist/models/TaxSequence.js +34 -8
  359. package/dist/models/TaxSequenceCreated.d.ts +64 -0
  360. package/dist/models/TaxSequenceCreated.js +60 -0
  361. package/dist/models/Totals.d.ts +29 -32
  362. package/dist/models/Totals.js +5 -6
  363. package/dist/models/Transport.d.ts +26 -14
  364. package/dist/models/Transport.js +11 -7
  365. package/dist/models/UpdateTaxSequenceRequest.d.ts +64 -0
  366. package/dist/models/UpdateTaxSequenceRequest.js +60 -0
  367. package/dist/models/UploadCertificateResponse.d.ts +7 -7
  368. package/dist/models/UploadCertificateResponse.js +3 -3
  369. package/dist/models/VoidTaxSequence200Response.d.ts +39 -0
  370. package/dist/models/VoidTaxSequence200Response.js +51 -0
  371. package/dist/models/VoidTaxSequence200ResponseData.d.ts +44 -0
  372. package/dist/models/VoidTaxSequence200ResponseData.js +52 -0
  373. package/dist/models/VoidTaxSequenceRequest.d.ts +50 -0
  374. package/dist/models/VoidTaxSequenceRequest.js +62 -0
  375. package/dist/models/WebhookConfigDetail.d.ts +81 -0
  376. package/dist/models/WebhookConfigDetail.js +65 -0
  377. package/dist/models/WebhookConfigResponse.d.ts +21 -9
  378. package/dist/models/WebhookConfigResponse.js +7 -3
  379. package/dist/models/WebhookEventType.d.ts +9 -8
  380. package/dist/models/WebhookEventType.js +9 -8
  381. package/dist/models/WebhookNotificationPayload.d.ts +10 -9
  382. package/dist/models/WebhookNotificationPayload.js +3 -3
  383. package/dist/models/WebhookStats.d.ts +45 -0
  384. package/dist/models/WebhookStats.js +53 -0
  385. package/dist/models/WebhookStatsStats.d.ts +62 -0
  386. package/dist/models/WebhookStatsStats.js +58 -0
  387. package/dist/models/index.d.ts +47 -1
  388. package/dist/models/index.js +47 -1
  389. package/dist/runtime.d.ts +3 -3
  390. package/dist/runtime.js +3 -3
  391. package/docs/AccountType.md +2 -2
  392. package/docs/AdditionalInfo.md +21 -6
  393. package/docs/AlternativeCurrency.md +26 -3
  394. package/docs/ApprovalItem.md +48 -0
  395. package/docs/ApprovalListResponse.md +36 -0
  396. package/docs/AssociatedCompaniesApi.md +350 -42
  397. package/docs/AssociatedCompany.md +15 -10
  398. package/docs/AssociatedCompanySubscription.md +1 -1
  399. package/docs/AssociatedCompanySubscriptionPlan.md +1 -1
  400. package/docs/AuthenticationApi.md +8 -8
  401. package/docs/AutomatedCertificationApi.md +294 -0
  402. package/docs/BillingIndicator.md +2 -2
  403. package/docs/Buyer.md +24 -5
  404. package/docs/CertificationNiche.md +40 -0
  405. package/docs/CertificationNicheNicheItemsInner.md +36 -0
  406. package/docs/CertificationStatus.md +38 -0
  407. package/docs/CommercialApprovalsApi.md +114 -0
  408. package/docs/CompanyDocumentMetrics.md +40 -0
  409. package/docs/CompanyDocumentMetricsGroupByStatusInner.md +36 -0
  410. package/docs/CompanyDocumentMetricsGroupByStatusInnerCount.md +34 -0
  411. package/docs/CompanyDocumentMetricsMainBusiness.md +38 -0
  412. package/docs/CompanyDocumentMetricsTotals.md +36 -0
  413. package/docs/CompanyMetrics.md +50 -0
  414. package/docs/CompanyMetricsDocumentsStatus.md +38 -0
  415. package/docs/CreateAssociatedCompany201Response.md +1 -1
  416. package/docs/CreateTaxSequence201Response.md +36 -0
  417. package/docs/CreateTaxSequenceRequest.md +9 -4
  418. package/docs/DeleteAssociatedCompany200Response.md +34 -0
  419. package/docs/DigitalCertificatesApi.md +18 -16
  420. package/docs/DiscountOrSurcharge.md +7 -6
  421. package/docs/DocumentStatsResponse.md +40 -0
  422. package/docs/DocumentStatus.md +32 -0
  423. package/docs/DocumentsReceivedApi.md +175 -0
  424. package/docs/DocumentsSentApi.md +330 -0
  425. package/docs/ECFSubmissionApi.md +245 -13
  426. package/docs/EcfHistoryItem.md +50 -0
  427. package/docs/EcfStatsResponse.md +50 -0
  428. package/docs/EcfStatusResponse.md +56 -0
  429. package/docs/EcfStatusResponseMensajesInner.md +36 -0
  430. package/docs/EcfSubmissionResponse.md +22 -4
  431. package/docs/EcfSubmissionResponseDgiiResponse.md +40 -0
  432. package/docs/ElectronicDocument.md +52 -12
  433. package/docs/Environment.md +2 -2
  434. package/docs/ErrorResponse.md +6 -5
  435. package/docs/GetNextNumber200Response.md +1 -1
  436. package/docs/GetNextNumber200ResponseData.md +5 -3
  437. package/docs/InvoiceType.md +2 -2
  438. package/docs/InvoiceTypeSequence.md +33 -0
  439. package/docs/Item.md +42 -11
  440. package/docs/ItemAdditionalTax.md +1 -2
  441. package/docs/ItemAlternativeCurrency.md +40 -0
  442. package/docs/ItemCodesInner.md +36 -0
  443. package/docs/ItemDiscountInner.md +38 -0
  444. package/docs/ItemMiningInfo.md +40 -0
  445. package/docs/ListTaxSequences200Response.md +3 -1
  446. package/docs/OAuthTokenRequest.md +4 -4
  447. package/docs/OAuthTokenResponse.md +4 -4
  448. package/docs/Page.md +5 -6
  449. package/docs/PaginationMeta.md +40 -0
  450. package/docs/PaymentForm.md +36 -0
  451. package/docs/PaymentMethod.md +2 -2
  452. package/docs/PrintFormat.md +1 -2
  453. package/docs/ProcessingLog.md +38 -0
  454. package/docs/RateLimitErrorResponse.md +40 -0
  455. package/docs/ReceivedDocument.md +50 -0
  456. package/docs/ReceivedDocumentListResponse.md +38 -0
  457. package/docs/ReceivedDocumentStatsResponse.md +38 -0
  458. package/docs/ReferenceInfo.md +2 -2
  459. package/docs/ReportsApi.md +186 -0
  460. package/docs/SentDocumentDetail.md +58 -0
  461. package/docs/SentDocumentListResponse.md +38 -0
  462. package/docs/SentDocumentSummary.md +54 -0
  463. package/docs/SentDocumentSummaryBusiness.md +36 -0
  464. package/docs/StartCertification200Response.md +34 -0
  465. package/docs/StartCertificationRequest.md +40 -0
  466. package/docs/Subquantity.md +1 -2
  467. package/docs/Subtotal.md +5 -4
  468. package/docs/TaxSequence.md +21 -6
  469. package/docs/TaxSequenceCreated.md +44 -0
  470. package/docs/TaxSequencesApi.md +197 -38
  471. package/docs/Totals.md +2 -3
  472. package/docs/Transport.md +9 -6
  473. package/docs/UpdateTaxSequenceRequest.md +44 -0
  474. package/docs/UploadCertificateResponse.md +2 -3
  475. package/docs/VoidTaxSequence200Response.md +36 -0
  476. package/docs/VoidTaxSequence200ResponseData.md +38 -0
  477. package/docs/VoidTaxSequenceRequest.md +40 -0
  478. package/docs/WebhookConfigDetail.md +50 -0
  479. package/docs/WebhookConfigResponse.md +6 -3
  480. package/docs/WebhookConfigurationApi.md +47 -50
  481. package/docs/WebhookEventType.md +1 -2
  482. package/docs/WebhookNotificationPayload.md +3 -3
  483. package/docs/WebhookStats.md +38 -0
  484. package/docs/WebhookStatsStats.md +44 -0
  485. package/package.json +1 -1
  486. package/src/apis/AssociatedCompaniesApi.ts +455 -57
  487. package/src/apis/AuthenticationApi.ts +11 -11
  488. package/src/apis/AutomatedCertificationApi.ts +382 -0
  489. package/src/apis/CommercialApprovalsApi.ts +234 -0
  490. package/src/apis/DigitalCertificatesApi.ts +17 -17
  491. package/src/apis/DocumentsReceivedApi.ts +256 -0
  492. package/src/apis/DocumentsSentApi.ts +481 -0
  493. package/src/apis/ECFSubmissionApi.ts +309 -17
  494. package/src/apis/ReportsApi.ts +323 -0
  495. package/src/apis/TaxSequencesApi.ts +264 -63
  496. package/src/apis/WebhookConfigurationApi.ts +90 -76
  497. package/src/apis/index.ts +5 -0
  498. package/src/models/AccountType.ts +4 -8
  499. package/src/models/AdditionalInfo.ts +80 -16
  500. package/src/models/AlternativeCurrency.ts +102 -8
  501. package/src/models/ApprovalItem.ts +121 -0
  502. package/src/models/ApprovalListResponse.ts +88 -0
  503. package/src/models/AssociatedCompany.ts +53 -22
  504. package/src/models/AssociatedCompanySubscription.ts +5 -5
  505. package/src/models/AssociatedCompanySubscriptionPlan.ts +4 -4
  506. package/src/models/BillingIndicator.ts +4 -10
  507. package/src/models/Buyer.ts +91 -11
  508. package/src/models/CertificationNiche.ts +97 -0
  509. package/src/models/CertificationNicheNicheItemsInner.ts +73 -0
  510. package/src/models/CertificationStatus.ts +94 -0
  511. package/src/models/CompanyDocumentMetrics.ts +111 -0
  512. package/src/models/CompanyDocumentMetricsGroupByStatusInner.ts +81 -0
  513. package/src/models/CompanyDocumentMetricsGroupByStatusInnerCount.ts +65 -0
  514. package/src/models/CompanyDocumentMetricsMainBusiness.ts +81 -0
  515. package/src/models/CompanyDocumentMetricsTotals.ts +73 -0
  516. package/src/models/CompanyMetrics.ts +137 -0
  517. package/src/models/CompanyMetricsDocumentsStatus.ts +81 -0
  518. package/src/models/CreateAssociatedCompany201Response.ts +3 -3
  519. package/src/models/CreateTaxSequence201Response.ts +81 -0
  520. package/src/models/CreateTaxSequenceRequest.ts +46 -17
  521. package/src/models/DeleteAssociatedCompany200Response.ts +65 -0
  522. package/src/models/DiscountOrSurcharge.ts +38 -23
  523. package/src/models/DocumentStatsResponse.ts +89 -0
  524. package/src/models/DocumentStatus.ts +56 -0
  525. package/src/models/EcfHistoryItem.ts +153 -0
  526. package/src/models/EcfStatsResponse.ts +129 -0
  527. package/src/models/EcfStatusResponse.ts +193 -0
  528. package/src/models/EcfStatusResponseMensajesInner.ts +73 -0
  529. package/src/models/EcfSubmissionResponse.ts +96 -15
  530. package/src/models/EcfSubmissionResponseDgiiResponse.ts +89 -0
  531. package/src/models/ElectronicDocument.ts +252 -97
  532. package/src/models/Environment.ts +4 -8
  533. package/src/models/ErrorResponse.ts +15 -7
  534. package/src/models/GetNextNumber200Response.ts +3 -3
  535. package/src/models/GetNextNumber200ResponseData.ts +13 -5
  536. package/src/models/InvoiceType.ts +6 -14
  537. package/src/models/InvoiceTypeSequence.ts +61 -0
  538. package/src/models/Item.ts +180 -27
  539. package/src/models/ItemAdditionalTax.ts +8 -9
  540. package/src/models/ItemAlternativeCurrency.ts +89 -0
  541. package/src/models/ItemCodesInner.ts +73 -0
  542. package/src/models/ItemDiscountInner.ts +81 -0
  543. package/src/models/ItemMiningInfo.ts +89 -0
  544. package/src/models/ListTaxSequences200Response.ts +18 -3
  545. package/src/models/OAuthTokenRequest.ts +6 -11
  546. package/src/models/OAuthTokenResponse.ts +7 -9
  547. package/src/models/Page.ts +22 -25
  548. package/src/models/PaginationMeta.ts +89 -0
  549. package/src/models/PaymentForm.ts +85 -0
  550. package/src/models/PaymentMethod.ts +4 -13
  551. package/src/models/PrintFormat.ts +3 -7
  552. package/src/models/ProcessingLog.ts +94 -0
  553. package/src/models/RateLimitErrorResponse.ts +89 -0
  554. package/src/models/ReceivedDocument.ts +137 -0
  555. package/src/models/ReceivedDocumentListResponse.ts +96 -0
  556. package/src/models/ReceivedDocumentStatsResponse.ts +81 -0
  557. package/src/models/ReferenceInfo.ts +10 -19
  558. package/src/models/SentDocumentDetail.ts +185 -0
  559. package/src/models/SentDocumentListResponse.ts +96 -0
  560. package/src/models/SentDocumentSummary.ts +162 -0
  561. package/src/models/SentDocumentSummaryBusiness.ts +73 -0
  562. package/src/models/StartCertification200Response.ts +65 -0
  563. package/src/models/StartCertificationRequest.ts +102 -0
  564. package/src/models/Subquantity.ts +6 -6
  565. package/src/models/Subtotal.ts +23 -17
  566. package/src/models/TaxSequence.ts +94 -19
  567. package/src/models/TaxSequenceCreated.ts +122 -0
  568. package/src/models/Totals.ts +31 -41
  569. package/src/models/Transport.ts +34 -18
  570. package/src/models/UpdateTaxSequenceRequest.ts +122 -0
  571. package/src/models/UploadCertificateResponse.ts +7 -7
  572. package/src/models/VoidTaxSequence200Response.ts +81 -0
  573. package/src/models/VoidTaxSequence200ResponseData.ts +81 -0
  574. package/src/models/VoidTaxSequenceRequest.ts +93 -0
  575. package/src/models/WebhookConfigDetail.ts +137 -0
  576. package/src/models/WebhookConfigResponse.ts +25 -9
  577. package/src/models/WebhookEventType.ts +9 -8
  578. package/src/models/WebhookNotificationPayload.ts +10 -9
  579. package/src/models/WebhookStats.ts +89 -0
  580. package/src/models/WebhookStatsStats.ts +105 -0
  581. package/src/models/index.ts +47 -1
  582. package/src/runtime.ts +3 -3
@@ -1,40 +1,53 @@
1
1
  /**
2
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, which handles all communication with the DGII on your behalf. ## Authentication — OAuth 2.0 Client Credentials This API uses the **OAuth 2.0 Client Credentials** flow. There is no user login — authentication is machine-to-machine using a `clientId` and `clientSecret` issued by the Pronesoft portal. ### Step-by-step 1. **Get credentials**: - Sandbox: https://ecf.sandbox.pronesoft.com - Production: https://ecf.pronesoft.com 2. **Request a token** call `POST /oauth/token` with your credentials. The server returns an `accessToken` valid for `expiresIn` seconds. 3. **Authorize requests** include the token in every subsequent request: ``` Authorization: Bearer <accessToken> ``` 4. **Identify your tenant** include your company/branch UUID in every protected request: ``` x-tenant-id: <your-tenant-uuid> ``` 5. **Refresh** when the token expires, simply call `POST /oauth/token` again. ### Scopes | Category | Scope | Description | |---|---|---| | **Business** | `business:read` | Read company data | | | `business:create` | Create a new company | | | `business:update` | Update company data | | **Members** | `members:read` | View team members | | | `members:invite` | Invite new members | | | `members:revoke` | Revoke member access | | **Certificates** | `certificates:read` | View digital certificates | | | `certificates:upload` | Upload new certificates | | | `certificates:update` | Update existing certificates | | **Documents** | `documents:read` | List and view documents | | | `documents:create` | Create drafts or internal documents | | | `documents:send` | Submit e-CF to DGII | | | `documents:receive` | Receive e-CF from third parties | | | `documents:update` | Modify document metadata | | **Approvals** | `approvals:read` | View approval statuses | | | `approvals:commercial` | Perform commercial approvals/rejections | | **Sequences** | `sequences:read` | View NCF/e-NCF ranges | | | `sequences:create` | Request new sequences | | | `sequences:update` | Modify sequence configurations | | | `sequences:cancel` | Cancel unused sequences | | **Dashboard** | `business_info:read` | Access dashboard stats and metrics | | **Certification** | `certification:read` | View certification progress | | | `certification:write` | Run automated DGII certification tests | | **Reports** | `reports:read` | Generate and export reports (e.g. 606) | ## Environments | Environment | Portal | API Host | Purpose | |---|---|---|---| | Sandbox | https://ecf.sandbox.pronesoft.com | `api.ecf.sandbox.pronesoft.com` | Development & testing | | Production | https://ecf.pronesoft.com | `api.ecf.pronesoft.com` | Live e-CF issuance | ## Invoice Types (e-NCF) | Code | Name | |---|---| | `31` | Tax Credit Invoice (Factura de Crédito Fiscal) | | `32` | Consumer Invoice (Factura de Consumo) | | `33` | Debit Note (Nota de Débito) | | `34` | Credit Note (Nota de Crédito) | | `41` | Purchases (Compras) | | `43` | Minor Expenses (Gastos Menores) | | `44` | Special Regimes (Regímenes Especiales) | | `45` | Governmental (Gubernamentales) | | `46` | Exports (Exportaciones) | | `47` | Overseas Payments (Pagos al Exterior) |
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
4
  *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: contacto@pronesoft.com
5
+ * The version of the OpenAPI document: 1.1.0
6
+ * Contact: support@pronesoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ItemDiscountInner } from './ItemDiscountInner';
12
13
  import type { BillingIndicator } from './BillingIndicator';
13
14
  import type { ItemAdditionalTax } from './ItemAdditionalTax';
15
+ import type { ItemCodesInner } from './ItemCodesInner';
14
16
  import type { Subquantity } from './Subquantity';
17
+ import type { ItemAlternativeCurrency } from './ItemAlternativeCurrency';
18
+ import type { ItemMiningInfo } from './ItemMiningInfo';
15
19
  /**
16
- * A single line item in the electronic document.
20
+ *
17
21
  * @export
18
22
  * @interface Item
19
23
  */
20
24
  export interface Item {
21
25
  /**
22
- * Sequential line number (1-based). Auto-assigned if omitted.
26
+ *
23
27
  * @type {number}
24
28
  * @memberof Item
25
29
  */
26
30
  lineNumber?: number;
27
31
  /**
28
- * Product or service name.
32
+ *
33
+ * @type {Array<ItemCodesInner>}
34
+ * @memberof Item
35
+ */
36
+ codes?: Array<ItemCodesInner>;
37
+ /**
38
+ *
29
39
  * @type {string}
30
40
  * @memberof Item
31
41
  */
32
42
  name: string;
33
43
  /**
34
- * Item type:
35
- * - `1`: Product (Bien)
36
- * - `2`: Service (Servicio)
37
44
  *
45
+ * @type {string}
46
+ * @memberof Item
47
+ */
48
+ description?: string;
49
+ /**
50
+ * 1=Product, 2=Service
38
51
  * @type {ItemTypeEnum}
39
52
  * @memberof Item
40
53
  */
@@ -46,47 +59,131 @@ export interface Item {
46
59
  */
47
60
  billingIndicator: BillingIndicator;
48
61
  /**
49
- * Quantity (as string to support decimals with precision).
62
+ *
63
+ * @type {number}
64
+ * @memberof Item
65
+ */
66
+ withholdingAgentIndicator?: number;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof Item
71
+ */
72
+ withheldITBISAmount?: number;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof Item
77
+ */
78
+ withheldISRAmount?: number;
79
+ /**
80
+ *
50
81
  * @type {string}
51
82
  * @memberof Item
52
83
  */
53
84
  quantity: string;
54
85
  /**
55
- * Unit price (as string to support decimals with precision).
86
+ *
87
+ * @type {number}
88
+ * @memberof Item
89
+ */
90
+ unitOfMeasure?: number;
91
+ /**
92
+ *
93
+ * @type {number}
94
+ * @memberof Item
95
+ */
96
+ referenceQuantity?: number;
97
+ /**
98
+ *
99
+ * @type {number}
100
+ * @memberof Item
101
+ */
102
+ referenceUnit?: number;
103
+ /**
104
+ *
105
+ * @type {number}
106
+ * @memberof Item
107
+ */
108
+ referenceUnitPrice?: number;
109
+ /**
110
+ *
111
+ * @type {Array<Subquantity>}
112
+ * @memberof Item
113
+ */
114
+ subquantities?: Array<Subquantity>;
115
+ /**
116
+ *
117
+ * @type {number}
118
+ * @memberof Item
119
+ */
120
+ alcoholDegree?: number;
121
+ /**
122
+ *
123
+ * @type {Date}
124
+ * @memberof Item
125
+ */
126
+ manufacturingDate?: Date;
127
+ /**
128
+ *
129
+ * @type {Date}
130
+ * @memberof Item
131
+ */
132
+ expirationDate?: Date;
133
+ /**
134
+ *
135
+ * @type {ItemMiningInfo}
136
+ * @memberof Item
137
+ */
138
+ miningInfo?: ItemMiningInfo;
139
+ /**
140
+ *
56
141
  * @type {string}
57
142
  * @memberof Item
58
143
  */
59
144
  unitPrice: string;
60
145
  /**
61
- * Total line amount (quantity × unitPrice, before discounts).
146
+ *
62
147
  * @type {number}
63
148
  * @memberof Item
64
149
  */
65
- amount: number;
150
+ discountAmount?: number;
66
151
  /**
67
- * Discount amount applied to this line item.
152
+ *
153
+ * @type {Array<ItemDiscountInner>}
154
+ * @memberof Item
155
+ */
156
+ discount?: Array<ItemDiscountInner>;
157
+ /**
158
+ *
68
159
  * @type {number}
69
160
  * @memberof Item
70
161
  */
71
- discountAmount?: number;
162
+ surchargeAmount?: number;
72
163
  /**
73
- * Additional taxes (e.g. ISC, IECS) for this line item.
164
+ *
165
+ * @type {Array<ItemDiscountInner>}
166
+ * @memberof Item
167
+ */
168
+ surcharge?: Array<ItemDiscountInner>;
169
+ /**
170
+ *
74
171
  * @type {Array<ItemAdditionalTax>}
75
172
  * @memberof Item
76
173
  */
77
174
  additionalTaxes?: Array<ItemAdditionalTax>;
78
175
  /**
79
- * Sub-quantities (for items with multiple units of measure).
80
- * @type {Array<Subquantity>}
176
+ *
177
+ * @type {ItemAlternativeCurrency}
81
178
  * @memberof Item
82
179
  */
83
- subquantities?: Array<Subquantity>;
180
+ alternativeCurrency?: ItemAlternativeCurrency;
84
181
  /**
85
- * Alcohol degree (required for alcoholic beverages subject to ISC).
182
+ *
86
183
  * @type {number}
87
184
  * @memberof Item
88
185
  */
89
- alcoholDegree?: number;
186
+ amount: number;
90
187
  }
91
188
  /**
92
189
  * @export
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * eCF-Pronesoft Integration API
6
- * ## Overview Production-grade API for issuing Electronic Tax Receipts (e-CF) in the Dominican Republic through the Pronesoft platform, which handles all communication with the DGII on your behalf. ## Authentication — OAuth 2.0 Client Credentials This API uses the **OAuth 2.0 Client Credentials** flow. There is no user login — authentication is machine-to-machine using a `clientId` and `clientSecret` issued by the Pronesoft portal. ### Step-by-step 1. **Get credentials**: - Sandbox: https://ecf.sandbox.pronesoft.com - Production: https://ecf.pronesoft.com 2. **Request a token** call `POST /oauth/token` with your credentials. The server returns an `accessToken` valid for `expiresIn` seconds. 3. **Authorize requests** include the token in every subsequent request: ``` Authorization: Bearer <accessToken> ``` 4. **Identify your tenant** include your company/branch UUID in every protected request: ``` x-tenant-id: <your-tenant-uuid> ``` 5. **Refresh** when the token expires, simply call `POST /oauth/token` again. ### Scopes | Category | Scope | Description | |---|---|---| | **Business** | `business:read` | Read company data | | | `business:create` | Create a new company | | | `business:update` | Update company data | | **Members** | `members:read` | View team members | | | `members:invite` | Invite new members | | | `members:revoke` | Revoke member access | | **Certificates** | `certificates:read` | View digital certificates | | | `certificates:upload` | Upload new certificates | | | `certificates:update` | Update existing certificates | | **Documents** | `documents:read` | List and view documents | | | `documents:create` | Create drafts or internal documents | | | `documents:send` | Submit e-CF to DGII | | | `documents:receive` | Receive e-CF from third parties | | | `documents:update` | Modify document metadata | | **Approvals** | `approvals:read` | View approval statuses | | | `approvals:commercial` | Perform commercial approvals/rejections | | **Sequences** | `sequences:read` | View NCF/e-NCF ranges | | | `sequences:create` | Request new sequences | | | `sequences:update` | Modify sequence configurations | | | `sequences:cancel` | Cancel unused sequences | | **Dashboard** | `business_info:read` | Access dashboard stats and metrics | | **Certification** | `certification:read` | View certification progress | | | `certification:write` | Run automated DGII certification tests | | **Reports** | `reports:read` | Generate and export reports (e.g. 606) | ## Environments | Environment | Portal | API Host | Purpose | |---|---|---|---| | Sandbox | https://ecf.sandbox.pronesoft.com | `api.ecf.sandbox.pronesoft.com` | Development & testing | | Production | https://ecf.pronesoft.com | `api.ecf.pronesoft.com` | Live e-CF issuance | ## Invoice Types (e-NCF) | Code | Name | |---|---| | `31` | Tax Credit Invoice (Factura de Crédito Fiscal) | | `32` | Consumer Invoice (Factura de Consumo) | | `33` | Debit Note (Nota de Débito) | | `34` | Credit Note (Nota de Crédito) | | `41` | Purchases (Compras) | | `43` | Minor Expenses (Gastos Menores) | | `44` | Special Regimes (Regímenes Especiales) | | `45` | Governmental (Gubernamentales) | | `46` | Exports (Exportaciones) | | `47` | Overseas Payments (Pagos al Exterior) |
6
+ * ## 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
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: contacto@pronesoft.com
8
+ * The version of the OpenAPI document: 1.1.0
9
+ * Contact: support@pronesoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -19,9 +19,13 @@ exports.ItemFromJSON = ItemFromJSON;
19
19
  exports.ItemFromJSONTyped = ItemFromJSONTyped;
20
20
  exports.ItemToJSON = ItemToJSON;
21
21
  exports.ItemToJSONTyped = ItemToJSONTyped;
22
+ const ItemDiscountInner_1 = require("./ItemDiscountInner");
22
23
  const BillingIndicator_1 = require("./BillingIndicator");
23
24
  const ItemAdditionalTax_1 = require("./ItemAdditionalTax");
25
+ const ItemCodesInner_1 = require("./ItemCodesInner");
24
26
  const Subquantity_1 = require("./Subquantity");
27
+ const ItemAlternativeCurrency_1 = require("./ItemAlternativeCurrency");
28
+ const ItemMiningInfo_1 = require("./ItemMiningInfo");
25
29
  /**
26
30
  * @export
27
31
  */
@@ -56,16 +60,32 @@ function ItemFromJSONTyped(json, ignoreDiscriminator) {
56
60
  }
57
61
  return {
58
62
  'lineNumber': json['lineNumber'] == null ? undefined : json['lineNumber'],
63
+ 'codes': json['codes'] == null ? undefined : (json['codes'].map(ItemCodesInner_1.ItemCodesInnerFromJSON)),
59
64
  'name': json['name'],
65
+ 'description': json['description'] == null ? undefined : json['description'],
60
66
  'type': json['type'],
61
67
  'billingIndicator': (0, BillingIndicator_1.BillingIndicatorFromJSON)(json['billingIndicator']),
68
+ 'withholdingAgentIndicator': json['withholdingAgentIndicator'] == null ? undefined : json['withholdingAgentIndicator'],
69
+ 'withheldITBISAmount': json['withheldITBISAmount'] == null ? undefined : json['withheldITBISAmount'],
70
+ 'withheldISRAmount': json['withheldISRAmount'] == null ? undefined : json['withheldISRAmount'],
62
71
  'quantity': json['quantity'],
72
+ 'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
73
+ 'referenceQuantity': json['referenceQuantity'] == null ? undefined : json['referenceQuantity'],
74
+ 'referenceUnit': json['referenceUnit'] == null ? undefined : json['referenceUnit'],
75
+ 'referenceUnitPrice': json['referenceUnitPrice'] == null ? undefined : json['referenceUnitPrice'],
76
+ 'subquantities': json['subquantities'] == null ? undefined : (json['subquantities'].map(Subquantity_1.SubquantityFromJSON)),
77
+ 'alcoholDegree': json['alcoholDegree'] == null ? undefined : json['alcoholDegree'],
78
+ 'manufacturingDate': json['manufacturingDate'] == null ? undefined : (new Date(json['manufacturingDate'])),
79
+ 'expirationDate': json['expirationDate'] == null ? undefined : (new Date(json['expirationDate'])),
80
+ 'miningInfo': json['miningInfo'] == null ? undefined : (0, ItemMiningInfo_1.ItemMiningInfoFromJSON)(json['miningInfo']),
63
81
  'unitPrice': json['unitPrice'],
64
- 'amount': json['amount'],
65
82
  'discountAmount': json['discountAmount'] == null ? undefined : json['discountAmount'],
83
+ 'discount': json['discount'] == null ? undefined : (json['discount'].map(ItemDiscountInner_1.ItemDiscountInnerFromJSON)),
84
+ 'surchargeAmount': json['surchargeAmount'] == null ? undefined : json['surchargeAmount'],
85
+ 'surcharge': json['surcharge'] == null ? undefined : (json['surcharge'].map(ItemDiscountInner_1.ItemDiscountInnerFromJSON)),
66
86
  'additionalTaxes': json['additionalTaxes'] == null ? undefined : (json['additionalTaxes'].map(ItemAdditionalTax_1.ItemAdditionalTaxFromJSON)),
67
- 'subquantities': json['subquantities'] == null ? undefined : (json['subquantities'].map(Subquantity_1.SubquantityFromJSON)),
68
- 'alcoholDegree': json['alcoholDegree'] == null ? undefined : json['alcoholDegree'],
87
+ 'alternativeCurrency': json['alternativeCurrency'] == null ? undefined : (0, ItemAlternativeCurrency_1.ItemAlternativeCurrencyFromJSON)(json['alternativeCurrency']),
88
+ 'amount': json['amount'],
69
89
  };
70
90
  }
71
91
  function ItemToJSON(json) {
@@ -77,15 +97,31 @@ function ItemToJSONTyped(value, ignoreDiscriminator = false) {
77
97
  }
78
98
  return {
79
99
  'lineNumber': value['lineNumber'],
100
+ 'codes': value['codes'] == null ? undefined : (value['codes'].map(ItemCodesInner_1.ItemCodesInnerToJSON)),
80
101
  'name': value['name'],
102
+ 'description': value['description'],
81
103
  'type': value['type'],
82
104
  'billingIndicator': (0, BillingIndicator_1.BillingIndicatorToJSON)(value['billingIndicator']),
105
+ 'withholdingAgentIndicator': value['withholdingAgentIndicator'],
106
+ 'withheldITBISAmount': value['withheldITBISAmount'],
107
+ 'withheldISRAmount': value['withheldISRAmount'],
83
108
  'quantity': value['quantity'],
109
+ 'unitOfMeasure': value['unitOfMeasure'],
110
+ 'referenceQuantity': value['referenceQuantity'],
111
+ 'referenceUnit': value['referenceUnit'],
112
+ 'referenceUnitPrice': value['referenceUnitPrice'],
113
+ 'subquantities': value['subquantities'] == null ? undefined : (value['subquantities'].map(Subquantity_1.SubquantityToJSON)),
114
+ 'alcoholDegree': value['alcoholDegree'],
115
+ 'manufacturingDate': value['manufacturingDate'] == null ? value['manufacturingDate'] : value['manufacturingDate'].toISOString(),
116
+ 'expirationDate': value['expirationDate'] == null ? value['expirationDate'] : value['expirationDate'].toISOString(),
117
+ 'miningInfo': (0, ItemMiningInfo_1.ItemMiningInfoToJSON)(value['miningInfo']),
84
118
  'unitPrice': value['unitPrice'],
85
- 'amount': value['amount'],
86
119
  'discountAmount': value['discountAmount'],
120
+ 'discount': value['discount'] == null ? undefined : (value['discount'].map(ItemDiscountInner_1.ItemDiscountInnerToJSON)),
121
+ 'surchargeAmount': value['surchargeAmount'],
122
+ 'surcharge': value['surcharge'] == null ? undefined : (value['surcharge'].map(ItemDiscountInner_1.ItemDiscountInnerToJSON)),
87
123
  'additionalTaxes': value['additionalTaxes'] == null ? undefined : (value['additionalTaxes'].map(ItemAdditionalTax_1.ItemAdditionalTaxToJSON)),
88
- 'subquantities': value['subquantities'] == null ? undefined : (value['subquantities'].map(Subquantity_1.SubquantityToJSON)),
89
- 'alcoholDegree': value['alcoholDegree'],
124
+ 'alternativeCurrency': (0, ItemAlternativeCurrency_1.ItemAlternativeCurrencyToJSON)(value['alternativeCurrency']),
125
+ 'amount': value['amount'],
90
126
  };
91
127
  }
@@ -1,32 +1,32 @@
1
1
  /**
2
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, which handles all communication with the DGII on your behalf. ## Authentication — OAuth 2.0 Client Credentials This API uses the **OAuth 2.0 Client Credentials** flow. There is no user login — authentication is machine-to-machine using a `clientId` and `clientSecret` issued by the Pronesoft portal. ### Step-by-step 1. **Get credentials**: - Sandbox: https://ecf.sandbox.pronesoft.com - Production: https://ecf.pronesoft.com 2. **Request a token** call `POST /oauth/token` with your credentials. The server returns an `accessToken` valid for `expiresIn` seconds. 3. **Authorize requests** include the token in every subsequent request: ``` Authorization: Bearer <accessToken> ``` 4. **Identify your tenant** include your company/branch UUID in every protected request: ``` x-tenant-id: <your-tenant-uuid> ``` 5. **Refresh** when the token expires, simply call `POST /oauth/token` again. ### Scopes | Category | Scope | Description | |---|---|---| | **Business** | `business:read` | Read company data | | | `business:create` | Create a new company | | | `business:update` | Update company data | | **Members** | `members:read` | View team members | | | `members:invite` | Invite new members | | | `members:revoke` | Revoke member access | | **Certificates** | `certificates:read` | View digital certificates | | | `certificates:upload` | Upload new certificates | | | `certificates:update` | Update existing certificates | | **Documents** | `documents:read` | List and view documents | | | `documents:create` | Create drafts or internal documents | | | `documents:send` | Submit e-CF to DGII | | | `documents:receive` | Receive e-CF from third parties | | | `documents:update` | Modify document metadata | | **Approvals** | `approvals:read` | View approval statuses | | | `approvals:commercial` | Perform commercial approvals/rejections | | **Sequences** | `sequences:read` | View NCF/e-NCF ranges | | | `sequences:create` | Request new sequences | | | `sequences:update` | Modify sequence configurations | | | `sequences:cancel` | Cancel unused sequences | | **Dashboard** | `business_info:read` | Access dashboard stats and metrics | | **Certification** | `certification:read` | View certification progress | | | `certification:write` | Run automated DGII certification tests | | **Reports** | `reports:read` | Generate and export reports (e.g. 606) | ## Environments | Environment | Portal | API Host | Purpose | |---|---|---|---| | Sandbox | https://ecf.sandbox.pronesoft.com | `api.ecf.sandbox.pronesoft.com` | Development & testing | | Production | https://ecf.pronesoft.com | `api.ecf.pronesoft.com` | Live e-CF issuance | ## Invoice Types (e-NCF) | Code | Name | |---|---| | `31` | Tax Credit Invoice (Factura de Crédito Fiscal) | | `32` | Consumer Invoice (Factura de Consumo) | | `33` | Debit Note (Nota de Débito) | | `34` | Credit Note (Nota de Crédito) | | `41` | Purchases (Compras) | | `43` | Minor Expenses (Gastos Menores) | | `44` | Special Regimes (Regímenes Especiales) | | `45` | Governmental (Gubernamentales) | | `46` | Exports (Exportaciones) | | `47` | Overseas Payments (Pagos al Exterior) |
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
4
  *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: contacto@pronesoft.com
5
+ * The version of the OpenAPI document: 1.1.0
6
+ * Contact: support@pronesoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * An additional tax applied to a line item (e.g. ISC, IECS).
13
+ *
14
14
  * @export
15
15
  * @interface ItemAdditionalTax
16
16
  */
17
17
  export interface ItemAdditionalTax {
18
18
  /**
19
- * Tax code as defined by the DGII (e.g. "ISC", "IECS").
19
+ * DGII tax code (e.g. ISC, IECS)
20
20
  * @type {string}
21
21
  * @memberof ItemAdditionalTax
22
22
  */
23
23
  code: string;
24
24
  /**
25
- * Tax amount.
25
+ *
26
26
  * @type {number}
27
27
  * @memberof ItemAdditionalTax
28
28
  */
29
- amount: number;
29
+ amount?: number;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the ItemAdditionalTax interface.
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * eCF-Pronesoft Integration API
6
- * ## Overview Production-grade API for issuing Electronic Tax Receipts (e-CF) in the Dominican Republic through the Pronesoft platform, which handles all communication with the DGII on your behalf. ## Authentication — OAuth 2.0 Client Credentials This API uses the **OAuth 2.0 Client Credentials** flow. There is no user login — authentication is machine-to-machine using a `clientId` and `clientSecret` issued by the Pronesoft portal. ### Step-by-step 1. **Get credentials**: - Sandbox: https://ecf.sandbox.pronesoft.com - Production: https://ecf.pronesoft.com 2. **Request a token** call `POST /oauth/token` with your credentials. The server returns an `accessToken` valid for `expiresIn` seconds. 3. **Authorize requests** include the token in every subsequent request: ``` Authorization: Bearer <accessToken> ``` 4. **Identify your tenant** include your company/branch UUID in every protected request: ``` x-tenant-id: <your-tenant-uuid> ``` 5. **Refresh** when the token expires, simply call `POST /oauth/token` again. ### Scopes | Category | Scope | Description | |---|---|---| | **Business** | `business:read` | Read company data | | | `business:create` | Create a new company | | | `business:update` | Update company data | | **Members** | `members:read` | View team members | | | `members:invite` | Invite new members | | | `members:revoke` | Revoke member access | | **Certificates** | `certificates:read` | View digital certificates | | | `certificates:upload` | Upload new certificates | | | `certificates:update` | Update existing certificates | | **Documents** | `documents:read` | List and view documents | | | `documents:create` | Create drafts or internal documents | | | `documents:send` | Submit e-CF to DGII | | | `documents:receive` | Receive e-CF from third parties | | | `documents:update` | Modify document metadata | | **Approvals** | `approvals:read` | View approval statuses | | | `approvals:commercial` | Perform commercial approvals/rejections | | **Sequences** | `sequences:read` | View NCF/e-NCF ranges | | | `sequences:create` | Request new sequences | | | `sequences:update` | Modify sequence configurations | | | `sequences:cancel` | Cancel unused sequences | | **Dashboard** | `business_info:read` | Access dashboard stats and metrics | | **Certification** | `certification:read` | View certification progress | | | `certification:write` | Run automated DGII certification tests | | **Reports** | `reports:read` | Generate and export reports (e.g. 606) | ## Environments | Environment | Portal | API Host | Purpose | |---|---|---|---| | Sandbox | https://ecf.sandbox.pronesoft.com | `api.ecf.sandbox.pronesoft.com` | Development & testing | | Production | https://ecf.pronesoft.com | `api.ecf.pronesoft.com` | Live e-CF issuance | ## Invoice Types (e-NCF) | Code | Name | |---|---| | `31` | Tax Credit Invoice (Factura de Crédito Fiscal) | | `32` | Consumer Invoice (Factura de Consumo) | | `33` | Debit Note (Nota de Débito) | | `34` | Credit Note (Nota de Crédito) | | `41` | Purchases (Compras) | | `43` | Minor Expenses (Gastos Menores) | | `44` | Special Regimes (Regímenes Especiales) | | `45` | Governmental (Gubernamentales) | | `46` | Exports (Exportaciones) | | `47` | Overseas Payments (Pagos al Exterior) |
6
+ * ## 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
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: contacto@pronesoft.com
8
+ * The version of the OpenAPI document: 1.1.0
9
+ * Contact: support@pronesoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -24,8 +24,6 @@ exports.ItemAdditionalTaxToJSONTyped = ItemAdditionalTaxToJSONTyped;
24
24
  function instanceOfItemAdditionalTax(value) {
25
25
  if (!('code' in value) || value['code'] === undefined)
26
26
  return false;
27
- if (!('amount' in value) || value['amount'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function ItemAdditionalTaxFromJSON(json) {
@@ -37,7 +35,7 @@ function ItemAdditionalTaxFromJSONTyped(json, ignoreDiscriminator) {
37
35
  }
38
36
  return {
39
37
  'code': json['code'],
40
- 'amount': json['amount'],
38
+ 'amount': json['amount'] == null ? undefined : json['amount'],
41
39
  };
42
40
  }
43
41
  function ItemAdditionalTaxToJSON(json) {
@@ -0,0 +1,50 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ItemAlternativeCurrency
16
+ */
17
+ export interface ItemAlternativeCurrency {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ItemAlternativeCurrency
22
+ */
23
+ unitPrice?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ItemAlternativeCurrency
28
+ */
29
+ discount?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ItemAlternativeCurrency
34
+ */
35
+ surcharge?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ItemAlternativeCurrency
40
+ */
41
+ amount?: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ItemAlternativeCurrency interface.
45
+ */
46
+ export declare function instanceOfItemAlternativeCurrency(value: object): value is ItemAlternativeCurrency;
47
+ export declare function ItemAlternativeCurrencyFromJSON(json: any): ItemAlternativeCurrency;
48
+ export declare function ItemAlternativeCurrencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemAlternativeCurrency;
49
+ export declare function ItemAlternativeCurrencyToJSON(json: any): ItemAlternativeCurrency;
50
+ export declare function ItemAlternativeCurrencyToJSONTyped(value?: ItemAlternativeCurrency | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * eCF-Pronesoft Integration API
6
+ * ## 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
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0
9
+ * Contact: support@pronesoft.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfItemAlternativeCurrency = instanceOfItemAlternativeCurrency;
17
+ exports.ItemAlternativeCurrencyFromJSON = ItemAlternativeCurrencyFromJSON;
18
+ exports.ItemAlternativeCurrencyFromJSONTyped = ItemAlternativeCurrencyFromJSONTyped;
19
+ exports.ItemAlternativeCurrencyToJSON = ItemAlternativeCurrencyToJSON;
20
+ exports.ItemAlternativeCurrencyToJSONTyped = ItemAlternativeCurrencyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ItemAlternativeCurrency interface.
23
+ */
24
+ function instanceOfItemAlternativeCurrency(value) {
25
+ return true;
26
+ }
27
+ function ItemAlternativeCurrencyFromJSON(json) {
28
+ return ItemAlternativeCurrencyFromJSONTyped(json, false);
29
+ }
30
+ function ItemAlternativeCurrencyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'unitPrice': json['unitPrice'] == null ? undefined : json['unitPrice'],
36
+ 'discount': json['discount'] == null ? undefined : json['discount'],
37
+ 'surcharge': json['surcharge'] == null ? undefined : json['surcharge'],
38
+ 'amount': json['amount'] == null ? undefined : json['amount'],
39
+ };
40
+ }
41
+ function ItemAlternativeCurrencyToJSON(json) {
42
+ return ItemAlternativeCurrencyToJSONTyped(json, false);
43
+ }
44
+ function ItemAlternativeCurrencyToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'unitPrice': value['unitPrice'],
50
+ 'discount': value['discount'],
51
+ 'surcharge': value['surcharge'],
52
+ 'amount': value['amount'],
53
+ };
54
+ }
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ItemCodesInner
16
+ */
17
+ export interface ItemCodesInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ItemCodesInner
22
+ */
23
+ codeType?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ItemCodesInner
28
+ */
29
+ code?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ItemCodesInner interface.
33
+ */
34
+ export declare function instanceOfItemCodesInner(value: object): value is ItemCodesInner;
35
+ export declare function ItemCodesInnerFromJSON(json: any): ItemCodesInner;
36
+ export declare function ItemCodesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemCodesInner;
37
+ export declare function ItemCodesInnerToJSON(json: any): ItemCodesInner;
38
+ export declare function ItemCodesInnerToJSONTyped(value?: ItemCodesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * eCF-Pronesoft Integration API
6
+ * ## 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
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0
9
+ * Contact: support@pronesoft.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfItemCodesInner = instanceOfItemCodesInner;
17
+ exports.ItemCodesInnerFromJSON = ItemCodesInnerFromJSON;
18
+ exports.ItemCodesInnerFromJSONTyped = ItemCodesInnerFromJSONTyped;
19
+ exports.ItemCodesInnerToJSON = ItemCodesInnerToJSON;
20
+ exports.ItemCodesInnerToJSONTyped = ItemCodesInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ItemCodesInner interface.
23
+ */
24
+ function instanceOfItemCodesInner(value) {
25
+ return true;
26
+ }
27
+ function ItemCodesInnerFromJSON(json) {
28
+ return ItemCodesInnerFromJSONTyped(json, false);
29
+ }
30
+ function ItemCodesInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'codeType': json['codeType'] == null ? undefined : json['codeType'],
36
+ 'code': json['code'] == null ? undefined : json['code'],
37
+ };
38
+ }
39
+ function ItemCodesInnerToJSON(json) {
40
+ return ItemCodesInnerToJSONTyped(json, false);
41
+ }
42
+ function ItemCodesInnerToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'codeType': value['codeType'],
48
+ 'code': value['code'],
49
+ };
50
+ }