@pronesoft-rd/ecf-sdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/.openapi-generator/FILES +96 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +234 -0
  5. package/dist/apis/AssociatedCompaniesApi.d.ts +150 -0
  6. package/dist/apis/AssociatedCompaniesApi.js +229 -0
  7. package/dist/apis/AuthenticationApi.d.ts +64 -0
  8. package/dist/apis/AuthenticationApi.js +75 -0
  9. package/dist/apis/DigitalCertificatesApi.d.ts +70 -0
  10. package/dist/apis/DigitalCertificatesApi.js +113 -0
  11. package/dist/apis/ECFSubmissionApi.d.ts +70 -0
  12. package/dist/apis/ECFSubmissionApi.js +96 -0
  13. package/dist/apis/TaxSequencesApi.d.ts +152 -0
  14. package/dist/apis/TaxSequencesApi.js +214 -0
  15. package/dist/apis/WebhookConfigurationApi.d.ts +146 -0
  16. package/dist/apis/WebhookConfigurationApi.js +197 -0
  17. package/dist/apis/index.d.ts +6 -0
  18. package/dist/apis/index.js +24 -0
  19. package/dist/esm/apis/AssociatedCompaniesApi.d.ts +150 -0
  20. package/dist/esm/apis/AssociatedCompaniesApi.js +225 -0
  21. package/dist/esm/apis/AuthenticationApi.d.ts +64 -0
  22. package/dist/esm/apis/AuthenticationApi.js +71 -0
  23. package/dist/esm/apis/DigitalCertificatesApi.d.ts +70 -0
  24. package/dist/esm/apis/DigitalCertificatesApi.js +109 -0
  25. package/dist/esm/apis/ECFSubmissionApi.d.ts +70 -0
  26. package/dist/esm/apis/ECFSubmissionApi.js +92 -0
  27. package/dist/esm/apis/TaxSequencesApi.d.ts +152 -0
  28. package/dist/esm/apis/TaxSequencesApi.js +210 -0
  29. package/dist/esm/apis/WebhookConfigurationApi.d.ts +146 -0
  30. package/dist/esm/apis/WebhookConfigurationApi.js +193 -0
  31. package/dist/esm/apis/index.d.ts +6 -0
  32. package/dist/esm/apis/index.js +8 -0
  33. package/dist/esm/index.d.ts +3 -0
  34. package/dist/esm/index.js +5 -0
  35. package/dist/esm/models/AccountType.d.ts +30 -0
  36. package/dist/esm/models/AccountType.js +48 -0
  37. package/dist/esm/models/AdditionalInfo.d.ts +50 -0
  38. package/dist/esm/models/AdditionalInfo.js +47 -0
  39. package/dist/esm/models/AlternativeCurrency.d.ts +46 -0
  40. package/dist/esm/models/AlternativeCurrency.js +49 -0
  41. package/dist/esm/models/AssociatedCompany.d.ts +125 -0
  42. package/dist/esm/models/AssociatedCompany.js +77 -0
  43. package/dist/esm/models/AssociatedCompanySubscription.d.ts +45 -0
  44. package/dist/esm/models/AssociatedCompanySubscription.js +46 -0
  45. package/dist/esm/models/AssociatedCompanySubscriptionPlan.d.ts +38 -0
  46. package/dist/esm/models/AssociatedCompanySubscriptionPlan.js +43 -0
  47. package/dist/esm/models/BillingIndicator.d.ts +34 -0
  48. package/dist/esm/models/BillingIndicator.js +52 -0
  49. package/dist/esm/models/Buyer.d.ts +68 -0
  50. package/dist/esm/models/Buyer.js +55 -0
  51. package/dist/esm/models/CreateAssociatedCompany201Response.d.ts +39 -0
  52. package/dist/esm/models/CreateAssociatedCompany201Response.js +44 -0
  53. package/dist/esm/models/CreateTaxSequenceRequest.d.ts +47 -0
  54. package/dist/esm/models/CreateTaxSequenceRequest.js +52 -0
  55. package/dist/esm/models/CreateWebhookConfig.d.ts +53 -0
  56. package/dist/esm/models/CreateWebhookConfig.js +52 -0
  57. package/dist/esm/models/DiscountOrSurcharge.d.ts +93 -0
  58. package/dist/esm/models/DiscountOrSurcharge.js +78 -0
  59. package/dist/esm/models/EcfSubmissionResponse.d.ts +56 -0
  60. package/dist/esm/models/EcfSubmissionResponse.js +53 -0
  61. package/dist/esm/models/ElectronicDocument.d.ts +252 -0
  62. package/dist/esm/models/ElectronicDocument.js +143 -0
  63. package/dist/esm/models/Environment.d.ts +30 -0
  64. package/dist/esm/models/Environment.js +48 -0
  65. package/dist/esm/models/ErrorResponse.d.ts +44 -0
  66. package/dist/esm/models/ErrorResponse.js +45 -0
  67. package/dist/esm/models/GetNextNumber200Response.d.ts +39 -0
  68. package/dist/esm/models/GetNextNumber200Response.js +44 -0
  69. package/dist/esm/models/GetNextNumber200ResponseData.d.ts +38 -0
  70. package/dist/esm/models/GetNextNumber200ResponseData.js +43 -0
  71. package/dist/esm/models/InvoiceType.d.ts +44 -0
  72. package/dist/esm/models/InvoiceType.js +62 -0
  73. package/dist/esm/models/Item.d.ts +106 -0
  74. package/dist/esm/models/Item.js +83 -0
  75. package/dist/esm/models/ItemAdditionalTax.d.ts +38 -0
  76. package/dist/esm/models/ItemAdditionalTax.js +47 -0
  77. package/dist/esm/models/ListTaxSequences200Response.d.ts +39 -0
  78. package/dist/esm/models/ListTaxSequences200Response.js +44 -0
  79. package/dist/esm/models/OAuthTokenRequest.d.ts +43 -0
  80. package/dist/esm/models/OAuthTokenRequest.js +47 -0
  81. package/dist/esm/models/OAuthTokenResponse.d.ts +46 -0
  82. package/dist/esm/models/OAuthTokenResponse.js +45 -0
  83. package/dist/esm/models/Page.d.ts +116 -0
  84. package/dist/esm/models/Page.js +75 -0
  85. package/dist/esm/models/PaymentMethod.d.ts +40 -0
  86. package/dist/esm/models/PaymentMethod.js +58 -0
  87. package/dist/esm/models/PrintFormat.d.ts +30 -0
  88. package/dist/esm/models/PrintFormat.js +48 -0
  89. package/dist/esm/models/ReferenceInfo.d.ts +76 -0
  90. package/dist/esm/models/ReferenceInfo.js +63 -0
  91. package/dist/esm/models/Subquantity.d.ts +38 -0
  92. package/dist/esm/models/Subquantity.js +47 -0
  93. package/dist/esm/models/Subtotal.d.ts +110 -0
  94. package/dist/esm/models/Subtotal.js +71 -0
  95. package/dist/esm/models/TaxSequence.d.ts +45 -0
  96. package/dist/esm/models/TaxSequence.js +46 -0
  97. package/dist/esm/models/Totals.d.ts +173 -0
  98. package/dist/esm/models/Totals.js +90 -0
  99. package/dist/esm/models/Transport.d.ts +62 -0
  100. package/dist/esm/models/Transport.js +51 -0
  101. package/dist/esm/models/UploadCertificate201Response.d.ts +44 -0
  102. package/dist/esm/models/UploadCertificate201Response.js +45 -0
  103. package/dist/esm/models/UploadCertificateResponse.d.ts +44 -0
  104. package/dist/esm/models/UploadCertificateResponse.js +45 -0
  105. package/dist/esm/models/WebhookConfigResponse.d.ts +63 -0
  106. package/dist/esm/models/WebhookConfigResponse.js +52 -0
  107. package/dist/esm/models/WebhookEventType.d.ts +40 -0
  108. package/dist/esm/models/WebhookEventType.js +58 -0
  109. package/dist/esm/models/WebhookNotificationPayload.d.ts +59 -0
  110. package/dist/esm/models/WebhookNotificationPayload.js +60 -0
  111. package/dist/esm/models/index.d.ts +37 -0
  112. package/dist/esm/models/index.js +39 -0
  113. package/dist/esm/runtime.d.ts +184 -0
  114. package/dist/esm/runtime.js +349 -0
  115. package/dist/index.d.ts +3 -0
  116. package/dist/index.js +21 -0
  117. package/dist/models/AccountType.d.ts +30 -0
  118. package/dist/models/AccountType.js +56 -0
  119. package/dist/models/AdditionalInfo.d.ts +50 -0
  120. package/dist/models/AdditionalInfo.js +54 -0
  121. package/dist/models/AlternativeCurrency.d.ts +46 -0
  122. package/dist/models/AlternativeCurrency.js +56 -0
  123. package/dist/models/AssociatedCompany.d.ts +125 -0
  124. package/dist/models/AssociatedCompany.js +85 -0
  125. package/dist/models/AssociatedCompanySubscription.d.ts +45 -0
  126. package/dist/models/AssociatedCompanySubscription.js +53 -0
  127. package/dist/models/AssociatedCompanySubscriptionPlan.d.ts +38 -0
  128. package/dist/models/AssociatedCompanySubscriptionPlan.js +50 -0
  129. package/dist/models/BillingIndicator.d.ts +34 -0
  130. package/dist/models/BillingIndicator.js +60 -0
  131. package/dist/models/Buyer.d.ts +68 -0
  132. package/dist/models/Buyer.js +62 -0
  133. package/dist/models/CreateAssociatedCompany201Response.d.ts +39 -0
  134. package/dist/models/CreateAssociatedCompany201Response.js +51 -0
  135. package/dist/models/CreateTaxSequenceRequest.d.ts +47 -0
  136. package/dist/models/CreateTaxSequenceRequest.js +59 -0
  137. package/dist/models/CreateWebhookConfig.d.ts +53 -0
  138. package/dist/models/CreateWebhookConfig.js +59 -0
  139. package/dist/models/DiscountOrSurcharge.d.ts +93 -0
  140. package/dist/models/DiscountOrSurcharge.js +86 -0
  141. package/dist/models/EcfSubmissionResponse.d.ts +56 -0
  142. package/dist/models/EcfSubmissionResponse.js +60 -0
  143. package/dist/models/ElectronicDocument.d.ts +252 -0
  144. package/dist/models/ElectronicDocument.js +151 -0
  145. package/dist/models/Environment.d.ts +30 -0
  146. package/dist/models/Environment.js +56 -0
  147. package/dist/models/ErrorResponse.d.ts +44 -0
  148. package/dist/models/ErrorResponse.js +52 -0
  149. package/dist/models/GetNextNumber200Response.d.ts +39 -0
  150. package/dist/models/GetNextNumber200Response.js +51 -0
  151. package/dist/models/GetNextNumber200ResponseData.d.ts +38 -0
  152. package/dist/models/GetNextNumber200ResponseData.js +50 -0
  153. package/dist/models/InvoiceType.d.ts +44 -0
  154. package/dist/models/InvoiceType.js +70 -0
  155. package/dist/models/Item.d.ts +106 -0
  156. package/dist/models/Item.js +91 -0
  157. package/dist/models/ItemAdditionalTax.d.ts +38 -0
  158. package/dist/models/ItemAdditionalTax.js +54 -0
  159. package/dist/models/ListTaxSequences200Response.d.ts +39 -0
  160. package/dist/models/ListTaxSequences200Response.js +51 -0
  161. package/dist/models/OAuthTokenRequest.d.ts +43 -0
  162. package/dist/models/OAuthTokenRequest.js +54 -0
  163. package/dist/models/OAuthTokenResponse.d.ts +46 -0
  164. package/dist/models/OAuthTokenResponse.js +52 -0
  165. package/dist/models/Page.d.ts +116 -0
  166. package/dist/models/Page.js +82 -0
  167. package/dist/models/PaymentMethod.d.ts +40 -0
  168. package/dist/models/PaymentMethod.js +66 -0
  169. package/dist/models/PrintFormat.d.ts +30 -0
  170. package/dist/models/PrintFormat.js +56 -0
  171. package/dist/models/ReferenceInfo.d.ts +76 -0
  172. package/dist/models/ReferenceInfo.js +71 -0
  173. package/dist/models/Subquantity.d.ts +38 -0
  174. package/dist/models/Subquantity.js +54 -0
  175. package/dist/models/Subtotal.d.ts +110 -0
  176. package/dist/models/Subtotal.js +78 -0
  177. package/dist/models/TaxSequence.d.ts +45 -0
  178. package/dist/models/TaxSequence.js +53 -0
  179. package/dist/models/Totals.d.ts +173 -0
  180. package/dist/models/Totals.js +97 -0
  181. package/dist/models/Transport.d.ts +62 -0
  182. package/dist/models/Transport.js +58 -0
  183. package/dist/models/UploadCertificate201Response.d.ts +44 -0
  184. package/dist/models/UploadCertificate201Response.js +52 -0
  185. package/dist/models/UploadCertificateResponse.d.ts +44 -0
  186. package/dist/models/UploadCertificateResponse.js +52 -0
  187. package/dist/models/WebhookConfigResponse.d.ts +63 -0
  188. package/dist/models/WebhookConfigResponse.js +59 -0
  189. package/dist/models/WebhookEventType.d.ts +40 -0
  190. package/dist/models/WebhookEventType.js +66 -0
  191. package/dist/models/WebhookNotificationPayload.d.ts +59 -0
  192. package/dist/models/WebhookNotificationPayload.js +67 -0
  193. package/dist/models/index.d.ts +37 -0
  194. package/dist/models/index.js +55 -0
  195. package/dist/runtime.d.ts +184 -0
  196. package/dist/runtime.js +365 -0
  197. package/docs/AccountType.md +33 -0
  198. package/docs/AdditionalInfo.md +41 -0
  199. package/docs/AlternativeCurrency.md +39 -0
  200. package/docs/AssociatedCompaniesApi.md +207 -0
  201. package/docs/AssociatedCompany.md +63 -0
  202. package/docs/AssociatedCompanySubscription.md +38 -0
  203. package/docs/AssociatedCompanySubscriptionPlan.md +36 -0
  204. package/docs/AuthenticationApi.md +77 -0
  205. package/docs/BillingIndicator.md +33 -0
  206. package/docs/Buyer.md +47 -0
  207. package/docs/CreateAssociatedCompany201Response.md +36 -0
  208. package/docs/CreateTaxSequenceRequest.md +39 -0
  209. package/docs/CreateWebhookConfig.md +41 -0
  210. package/docs/DigitalCertificatesApi.md +90 -0
  211. package/docs/DiscountOrSurcharge.md +49 -0
  212. package/docs/ECFSubmissionApi.md +90 -0
  213. package/docs/EcfSubmissionResponse.md +43 -0
  214. package/docs/ElectronicDocument.md +87 -0
  215. package/docs/Environment.md +33 -0
  216. package/docs/ErrorResponse.md +39 -0
  217. package/docs/GetNextNumber200Response.md +36 -0
  218. package/docs/GetNextNumber200ResponseData.md +36 -0
  219. package/docs/InvoiceType.md +33 -0
  220. package/docs/Item.md +55 -0
  221. package/docs/ItemAdditionalTax.md +37 -0
  222. package/docs/ListTaxSequences200Response.md +36 -0
  223. package/docs/OAuthTokenRequest.md +37 -0
  224. package/docs/OAuthTokenResponse.md +39 -0
  225. package/docs/Page.md +63 -0
  226. package/docs/PaymentMethod.md +33 -0
  227. package/docs/PrintFormat.md +33 -0
  228. package/docs/ReferenceInfo.md +43 -0
  229. package/docs/Subquantity.md +37 -0
  230. package/docs/Subtotal.md +61 -0
  231. package/docs/TaxSequence.md +39 -0
  232. package/docs/TaxSequencesApi.md +246 -0
  233. package/docs/Totals.md +81 -0
  234. package/docs/Transport.md +45 -0
  235. package/docs/UploadCertificate201Response.md +38 -0
  236. package/docs/UploadCertificateResponse.md +39 -0
  237. package/docs/WebhookConfigResponse.md +45 -0
  238. package/docs/WebhookConfigurationApi.md +241 -0
  239. package/docs/WebhookEventType.md +33 -0
  240. package/docs/WebhookNotificationPayload.md +43 -0
  241. package/package.json +21 -0
  242. package/src/apis/AssociatedCompaniesApi.ts +415 -0
  243. package/src/apis/AuthenticationApi.ts +122 -0
  244. package/src/apis/DigitalCertificatesApi.ts +175 -0
  245. package/src/apis/ECFSubmissionApi.ts +163 -0
  246. package/src/apis/TaxSequencesApi.ts +374 -0
  247. package/src/apis/WebhookConfigurationApi.ts +332 -0
  248. package/src/apis/index.ts +8 -0
  249. package/src/index.ts +5 -0
  250. package/src/models/AccountType.ts +58 -0
  251. package/src/models/AdditionalInfo.ts +89 -0
  252. package/src/models/AlternativeCurrency.ts +85 -0
  253. package/src/models/AssociatedCompany.ts +196 -0
  254. package/src/models/AssociatedCompanySubscription.ts +89 -0
  255. package/src/models/AssociatedCompanySubscriptionPlan.ts +73 -0
  256. package/src/models/BillingIndicator.ts +62 -0
  257. package/src/models/Buyer.ts +114 -0
  258. package/src/models/CreateAssociatedCompany201Response.ts +81 -0
  259. package/src/models/CreateTaxSequenceRequest.ts +96 -0
  260. package/src/models/CreateWebhookConfig.ts +101 -0
  261. package/src/models/DiscountOrSurcharge.ts +155 -0
  262. package/src/models/EcfSubmissionResponse.ts +99 -0
  263. package/src/models/ElectronicDocument.ts +421 -0
  264. package/src/models/Environment.ts +58 -0
  265. package/src/models/ErrorResponse.ts +81 -0
  266. package/src/models/GetNextNumber200Response.ts +81 -0
  267. package/src/models/GetNextNumber200ResponseData.ts +73 -0
  268. package/src/models/InvoiceType.ts +72 -0
  269. package/src/models/Item.ts +187 -0
  270. package/src/models/ItemAdditionalTax.ts +75 -0
  271. package/src/models/ListTaxSequences200Response.ts +81 -0
  272. package/src/models/OAuthTokenRequest.ts +80 -0
  273. package/src/models/OAuthTokenResponse.ts +83 -0
  274. package/src/models/Page.ts +180 -0
  275. package/src/models/PaymentMethod.ts +68 -0
  276. package/src/models/PrintFormat.ts +58 -0
  277. package/src/models/ReferenceInfo.ts +122 -0
  278. package/src/models/Subquantity.ts +75 -0
  279. package/src/models/Subtotal.ts +171 -0
  280. package/src/models/TaxSequence.ts +91 -0
  281. package/src/models/Totals.ts +260 -0
  282. package/src/models/Transport.ts +105 -0
  283. package/src/models/UploadCertificate201Response.ts +81 -0
  284. package/src/models/UploadCertificateResponse.ts +81 -0
  285. package/src/models/WebhookConfigResponse.ts +113 -0
  286. package/src/models/WebhookEventType.ts +68 -0
  287. package/src/models/WebhookNotificationPayload.ts +114 -0
  288. package/src/models/index.ts +39 -0
  289. package/src/runtime.ts +450 -0
  290. package/tsconfig.esm.json +7 -0
  291. package/tsconfig.json +16 -0
@@ -0,0 +1,96 @@
1
+ .gitignore
2
+ .npmignore
3
+ README.md
4
+ docs/AccountType.md
5
+ docs/AdditionalInfo.md
6
+ docs/AlternativeCurrency.md
7
+ docs/AssociatedCompaniesApi.md
8
+ docs/AssociatedCompany.md
9
+ docs/AssociatedCompanySubscription.md
10
+ docs/AssociatedCompanySubscriptionPlan.md
11
+ docs/AuthenticationApi.md
12
+ docs/BillingIndicator.md
13
+ docs/Buyer.md
14
+ docs/CreateAssociatedCompany201Response.md
15
+ docs/CreateTaxSequenceRequest.md
16
+ docs/CreateWebhookConfig.md
17
+ docs/DigitalCertificatesApi.md
18
+ docs/DiscountOrSurcharge.md
19
+ docs/ECFSubmissionApi.md
20
+ docs/EcfSubmissionResponse.md
21
+ docs/ElectronicDocument.md
22
+ docs/Environment.md
23
+ docs/ErrorResponse.md
24
+ docs/GetNextNumber200Response.md
25
+ docs/GetNextNumber200ResponseData.md
26
+ docs/InvoiceType.md
27
+ docs/Item.md
28
+ docs/ItemAdditionalTax.md
29
+ docs/ListTaxSequences200Response.md
30
+ docs/OAuthTokenRequest.md
31
+ docs/OAuthTokenResponse.md
32
+ docs/Page.md
33
+ docs/PaymentMethod.md
34
+ docs/PrintFormat.md
35
+ docs/ReferenceInfo.md
36
+ docs/Subquantity.md
37
+ docs/Subtotal.md
38
+ docs/TaxSequence.md
39
+ docs/TaxSequencesApi.md
40
+ docs/Totals.md
41
+ docs/Transport.md
42
+ docs/UploadCertificateResponse.md
43
+ docs/WebhookConfigResponse.md
44
+ docs/WebhookConfigurationApi.md
45
+ docs/WebhookEventType.md
46
+ docs/WebhookNotificationPayload.md
47
+ package.json
48
+ src/apis/AssociatedCompaniesApi.ts
49
+ src/apis/AuthenticationApi.ts
50
+ src/apis/DigitalCertificatesApi.ts
51
+ src/apis/ECFSubmissionApi.ts
52
+ src/apis/TaxSequencesApi.ts
53
+ src/apis/WebhookConfigurationApi.ts
54
+ src/apis/index.ts
55
+ src/index.ts
56
+ src/models/AccountType.ts
57
+ src/models/AdditionalInfo.ts
58
+ src/models/AlternativeCurrency.ts
59
+ src/models/AssociatedCompany.ts
60
+ src/models/AssociatedCompanySubscription.ts
61
+ src/models/AssociatedCompanySubscriptionPlan.ts
62
+ src/models/BillingIndicator.ts
63
+ src/models/Buyer.ts
64
+ src/models/CreateAssociatedCompany201Response.ts
65
+ src/models/CreateTaxSequenceRequest.ts
66
+ src/models/CreateWebhookConfig.ts
67
+ src/models/DiscountOrSurcharge.ts
68
+ src/models/EcfSubmissionResponse.ts
69
+ src/models/ElectronicDocument.ts
70
+ src/models/Environment.ts
71
+ src/models/ErrorResponse.ts
72
+ src/models/GetNextNumber200Response.ts
73
+ src/models/GetNextNumber200ResponseData.ts
74
+ src/models/InvoiceType.ts
75
+ src/models/Item.ts
76
+ src/models/ItemAdditionalTax.ts
77
+ src/models/ListTaxSequences200Response.ts
78
+ src/models/OAuthTokenRequest.ts
79
+ src/models/OAuthTokenResponse.ts
80
+ src/models/Page.ts
81
+ src/models/PaymentMethod.ts
82
+ src/models/PrintFormat.ts
83
+ src/models/ReferenceInfo.ts
84
+ src/models/Subquantity.ts
85
+ src/models/Subtotal.ts
86
+ src/models/TaxSequence.ts
87
+ src/models/Totals.ts
88
+ src/models/Transport.ts
89
+ src/models/UploadCertificateResponse.ts
90
+ src/models/WebhookConfigResponse.ts
91
+ src/models/WebhookEventType.ts
92
+ src/models/WebhookNotificationPayload.ts
93
+ src/models/index.ts
94
+ src/runtime.ts
95
+ tsconfig.esm.json
96
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.21.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,234 @@
1
+ # @pronesoft/ecf-sdk@0.0.1
2
+
3
+ A TypeScript SDK client for the api.ecf.sandbox.pronesoft.com API.
4
+
5
+ ## Usage
6
+
7
+ First, install the SDK from npm.
8
+
9
+ ```bash
10
+ npm install @pronesoft/ecf-sdk --save
11
+ ```
12
+
13
+ Next, try it out.
14
+
15
+
16
+ ```ts
17
+ import {
18
+ Configuration,
19
+ AssociatedCompaniesApi,
20
+ } from '@pronesoft/ecf-sdk';
21
+ import type { CreateAssociatedCompanyRequest } from '@pronesoft/ecf-sdk';
22
+
23
+ async function example() {
24
+ console.log("🚀 Testing @pronesoft/ecf-sdk SDK...");
25
+ const config = new Configuration({
26
+ // To configure OAuth2 access token for authorization: oauth2 application
27
+ accessToken: "YOUR ACCESS TOKEN",
28
+ // Configure HTTP bearer authorization: bearerAuth
29
+ accessToken: "YOUR BEARER TOKEN",
30
+ });
31
+ const api = new AssociatedCompaniesApi(config);
32
+
33
+ const body = {
34
+ // string | UUID of the company or branch (tenant) making the request. Obtained from the Pronesoft portal after account setup.
35
+ xTenantId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
36
+ // string | Owner\\\'s email address (used for login).
37
+ email: email_example,
38
+ // string | Initial password for the new account (min 8 characters).
39
+ password: password_example,
40
+ // string | Legal business name.
41
+ name: name_example,
42
+ // string | Company RNC (9 digits) or personal cedula (11 digits).
43
+ rnc: rnc_example,
44
+ // string
45
+ phone: phone_example,
46
+ // string
47
+ address: address_example,
48
+ // string
49
+ city: city_example,
50
+ // string
51
+ country: country_example,
52
+ // string (optional)
53
+ firstName: firstName_example,
54
+ // string (optional)
55
+ lastName: lastName_example,
56
+ // string (optional)
57
+ jobTitle: jobTitle_example,
58
+ // string (optional)
59
+ website: website_example,
60
+ // string | Business category or industry. (optional)
61
+ category: category_example,
62
+ // string | Estimated monthly sales range (e.g. \\\"0-500000\\\"). (optional)
63
+ monthlySalesRange: monthlySalesRange_example,
64
+ // PrintFormat (optional)
65
+ printerType: ...,
66
+ // Blob | Company logo image file (multipart upload). (optional)
67
+ logo: BINARY_DATA_HERE,
68
+ } satisfies CreateAssociatedCompanyRequest;
69
+
70
+ try {
71
+ const data = await api.createAssociatedCompany(body);
72
+ console.log(data);
73
+ } catch (error) {
74
+ console.error(error);
75
+ }
76
+ }
77
+
78
+ // Run the test
79
+ example().catch(console.error);
80
+ ```
81
+
82
+
83
+ ## Documentation
84
+
85
+ ### API Endpoints
86
+
87
+ All URIs are relative to *https://api.ecf.sandbox.pronesoft.com/api/v1*
88
+
89
+ | Class | Method | HTTP request | Description
90
+ | ----- | ------ | ------------ | -------------
91
+ *AssociatedCompaniesApi* | [**createAssociatedCompany**](docs/AssociatedCompaniesApi.md#createassociatedcompany) | **POST** /associated-companies | Create new associated company
92
+ *AssociatedCompaniesApi* | [**listAssociatedCompanies**](docs/AssociatedCompaniesApi.md#listassociatedcompanies) | **GET** /associated-companies | List associated companies / branches
93
+ *AuthenticationApi* | [**getAccessToken**](docs/AuthenticationApi.md#getaccesstoken) | **POST** /oauth/token | Get access token
94
+ *DigitalCertificatesApi* | [**uploadCertificate**](docs/DigitalCertificatesApi.md#uploadcertificate) | **POST** /{rnc}/certificates | Upload digital certificate (P12)
95
+ *ECFSubmissionApi* | [**submitEcf**](docs/ECFSubmissionApi.md#submitecf) | **POST** /{environment}/ecf/submit | Submit e-CF document to DGII
96
+ *TaxSequencesApi* | [**createTaxSequence**](docs/TaxSequencesApi.md#createtaxsequenceoperation) | **POST** /tax-sequences | Create new tax sequence
97
+ *TaxSequencesApi* | [**getNextNumber**](docs/TaxSequencesApi.md#getnextnumber) | **GET** /tax-sequences/next | Get next available fiscal number
98
+ *TaxSequencesApi* | [**listTaxSequences**](docs/TaxSequencesApi.md#listtaxsequences) | **GET** /tax-sequences | List tax sequences
99
+ *WebhookConfigurationApi* | [**createWebhook**](docs/WebhookConfigurationApi.md#createwebhook) | **POST** /{rnc}/webhooks | Register new webhook
100
+ *WebhookConfigurationApi* | [**deleteWebhook**](docs/WebhookConfigurationApi.md#deletewebhook) | **DELETE** /{rnc}/webhooks/{webhookId} | Delete webhook configuration
101
+ *WebhookConfigurationApi* | [**listWebhooks**](docs/WebhookConfigurationApi.md#listwebhooks) | **GET** /{rnc}/webhooks | List webhook configurations
102
+
103
+
104
+ ### Models
105
+
106
+ - [AccountType](docs/AccountType.md)
107
+ - [AdditionalInfo](docs/AdditionalInfo.md)
108
+ - [AlternativeCurrency](docs/AlternativeCurrency.md)
109
+ - [AssociatedCompany](docs/AssociatedCompany.md)
110
+ - [AssociatedCompanySubscription](docs/AssociatedCompanySubscription.md)
111
+ - [AssociatedCompanySubscriptionPlan](docs/AssociatedCompanySubscriptionPlan.md)
112
+ - [BillingIndicator](docs/BillingIndicator.md)
113
+ - [Buyer](docs/Buyer.md)
114
+ - [CreateAssociatedCompany201Response](docs/CreateAssociatedCompany201Response.md)
115
+ - [CreateTaxSequenceRequest](docs/CreateTaxSequenceRequest.md)
116
+ - [CreateWebhookConfig](docs/CreateWebhookConfig.md)
117
+ - [DiscountOrSurcharge](docs/DiscountOrSurcharge.md)
118
+ - [EcfSubmissionResponse](docs/EcfSubmissionResponse.md)
119
+ - [ElectronicDocument](docs/ElectronicDocument.md)
120
+ - [Environment](docs/Environment.md)
121
+ - [ErrorResponse](docs/ErrorResponse.md)
122
+ - [GetNextNumber200Response](docs/GetNextNumber200Response.md)
123
+ - [GetNextNumber200ResponseData](docs/GetNextNumber200ResponseData.md)
124
+ - [InvoiceType](docs/InvoiceType.md)
125
+ - [Item](docs/Item.md)
126
+ - [ItemAdditionalTax](docs/ItemAdditionalTax.md)
127
+ - [ListTaxSequences200Response](docs/ListTaxSequences200Response.md)
128
+ - [OAuthTokenRequest](docs/OAuthTokenRequest.md)
129
+ - [OAuthTokenResponse](docs/OAuthTokenResponse.md)
130
+ - [Page](docs/Page.md)
131
+ - [PaymentMethod](docs/PaymentMethod.md)
132
+ - [PrintFormat](docs/PrintFormat.md)
133
+ - [ReferenceInfo](docs/ReferenceInfo.md)
134
+ - [Subquantity](docs/Subquantity.md)
135
+ - [Subtotal](docs/Subtotal.md)
136
+ - [TaxSequence](docs/TaxSequence.md)
137
+ - [Totals](docs/Totals.md)
138
+ - [Transport](docs/Transport.md)
139
+ - [UploadCertificateResponse](docs/UploadCertificateResponse.md)
140
+ - [WebhookConfigResponse](docs/WebhookConfigResponse.md)
141
+ - [WebhookEventType](docs/WebhookEventType.md)
142
+ - [WebhookNotificationPayload](docs/WebhookNotificationPayload.md)
143
+
144
+ ### Authorization
145
+
146
+
147
+ Authentication schemes defined for the API:
148
+ <a id="bearerAuth"></a>
149
+ #### bearerAuth
150
+
151
+
152
+ - **Type**: HTTP Bearer Token authentication (JWT)
153
+ <a id="oauth2-application"></a>
154
+ #### oauth2 application
155
+
156
+
157
+ - **Type**: OAuth
158
+ - **Flow**: application
159
+ - **Authorization URL**:
160
+ - **Scopes**:
161
+ - `business:read`: Read company data.
162
+ - `business:create`: Create a new company.
163
+ - `business:update`: Update company data.
164
+ - `members:read`: View team members.
165
+ - `members:invite`: Invite new members.
166
+ - `members:revoke`: Revoke member access.
167
+ - `certificates:read`: View digital certificates.
168
+ - `certificates:upload`: Upload new certificates.
169
+ - `certificates:update`: Update existing certificates.
170
+ - `documents:read`: List and view document details.
171
+ - `documents:create`: Create drafts or internal documents.
172
+ - `documents:send`: Submit e-CF to the DGII.
173
+ - `documents:receive`: Receive e-CF from third parties.
174
+ - `documents:update`: Modify document metadata.
175
+ - `approvals:read`: View approval statuses.
176
+ - `approvals:commercial`: Perform commercial approvals or rejections.
177
+ - `sequences:read`: View NCF/e-NCF ranges.
178
+ - `sequences:create`: Request or add new sequences.
179
+ - `sequences:update`: Modify sequence configurations.
180
+ - `sequences:cancel`: Cancel unused sequences.
181
+ - `business_info:read`: Access dashboard statistics and metrics.
182
+ - `certification:read`: View DGII certification progress.
183
+ - `certification:write`: Execute automated DGII certification tests.
184
+ - `reports:read`: Generate and export reports (e.g. format 606).
185
+
186
+ ## About
187
+
188
+ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
189
+ and is automatically generated by the
190
+ [OpenAPI Generator](https://openapi-generator.tech) project:
191
+
192
+ - API version: `0.0.1`
193
+ - Package version: `0.0.1`
194
+ - Generator version: `7.21.0`
195
+ - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
196
+
197
+ The generated npm module supports the following:
198
+
199
+ - Environments
200
+ * Node.js
201
+ * Webpack
202
+ * Browserify
203
+ - Language levels
204
+ * ES5 - you must have a Promises/A+ library installed
205
+ * ES6
206
+ - Module systems
207
+ * CommonJS
208
+ * ES6 module system
209
+
210
+ For more information, please visit [https://pronesoft.com](https://pronesoft.com)
211
+
212
+ ## Development
213
+
214
+ ### Building
215
+
216
+ To build the TypeScript source code, you need to have Node.js and npm installed.
217
+ After cloning the repository, navigate to the project directory and run:
218
+
219
+ ```bash
220
+ npm install
221
+ npm run build
222
+ ```
223
+
224
+ ### Publishing
225
+
226
+ Once you've built the package, you can publish it to npm:
227
+
228
+ ```bash
229
+ npm publish
230
+ ```
231
+
232
+ ## License
233
+
234
+ [Proprietary](https://pronesoft.com/terms)
@@ -0,0 +1,150 @@
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, 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) |
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: contacto@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 { AssociatedCompany, CreateAssociatedCompany201Response, PrintFormat } from '../models/index';
14
+ export interface CreateAssociatedCompanyRequest {
15
+ xTenantId: string;
16
+ email: string;
17
+ password: string;
18
+ name: string;
19
+ rnc: string;
20
+ phone: string;
21
+ address: string;
22
+ city: string;
23
+ country: string;
24
+ firstName?: string;
25
+ lastName?: string;
26
+ jobTitle?: string;
27
+ website?: string;
28
+ category?: string;
29
+ monthlySalesRange?: string;
30
+ printerType?: PrintFormat;
31
+ logo?: Blob;
32
+ }
33
+ export interface ListAssociatedCompaniesRequest {
34
+ xTenantId: string;
35
+ }
36
+ /**
37
+ * AssociatedCompaniesApi - interface
38
+ *
39
+ * @export
40
+ * @interface AssociatedCompaniesApiInterface
41
+ */
42
+ export interface AssociatedCompaniesApiInterface {
43
+ /**
44
+ * Creates request options for createAssociatedCompany without sending the request
45
+ * @param {string} xTenantId UUID of the company or branch (tenant) making the request. Obtained from the Pronesoft portal after account setup.
46
+ * @param {string} email Owner\\\&#39;s email address (used for login).
47
+ * @param {string} password Initial password for the new account (min 8 characters).
48
+ * @param {string} name Legal business name.
49
+ * @param {string} rnc Company RNC (9 digits) or personal cedula (11 digits).
50
+ * @param {string} phone
51
+ * @param {string} address
52
+ * @param {string} city
53
+ * @param {string} country
54
+ * @param {string} [firstName]
55
+ * @param {string} [lastName]
56
+ * @param {string} [jobTitle]
57
+ * @param {string} [website]
58
+ * @param {string} [category] Business category or industry.
59
+ * @param {string} [monthlySalesRange] Estimated monthly sales range (e.g. \\\&quot;0-500000\\\&quot;).
60
+ * @param {PrintFormat} [printerType]
61
+ * @param {Blob} [logo] Company logo image file (multipart upload).
62
+ * @throws {RequiredError}
63
+ * @memberof AssociatedCompaniesApiInterface
64
+ */
65
+ createAssociatedCompanyRequestOpts(requestParameters: CreateAssociatedCompanyRequest): Promise<runtime.RequestOpts>;
66
+ /**
67
+ * Registers a new branch or associated company under the current tenant account. Accepts multipart/form-data to support logo upload.
68
+ * @summary Create new associated company
69
+ * @param {string} xTenantId UUID of the company or branch (tenant) making the request. Obtained from the Pronesoft portal after account setup.
70
+ * @param {string} email Owner\\\&#39;s email address (used for login).
71
+ * @param {string} password Initial password for the new account (min 8 characters).
72
+ * @param {string} name Legal business name.
73
+ * @param {string} rnc Company RNC (9 digits) or personal cedula (11 digits).
74
+ * @param {string} phone
75
+ * @param {string} address
76
+ * @param {string} city
77
+ * @param {string} country
78
+ * @param {string} [firstName]
79
+ * @param {string} [lastName]
80
+ * @param {string} [jobTitle]
81
+ * @param {string} [website]
82
+ * @param {string} [category] Business category or industry.
83
+ * @param {string} [monthlySalesRange] Estimated monthly sales range (e.g. \\\&quot;0-500000\\\&quot;).
84
+ * @param {PrintFormat} [printerType]
85
+ * @param {Blob} [logo] Company logo image file (multipart upload).
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ * @memberof AssociatedCompaniesApiInterface
89
+ */
90
+ createAssociatedCompanyRaw(requestParameters: CreateAssociatedCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAssociatedCompany201Response>>;
91
+ /**
92
+ * Registers a new branch or associated company under the current tenant account. Accepts multipart/form-data to support logo upload.
93
+ * Create new associated company
94
+ */
95
+ createAssociatedCompany(requestParameters: CreateAssociatedCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAssociatedCompany201Response>;
96
+ /**
97
+ * Creates request options for listAssociatedCompanies without sending the request
98
+ * @param {string} xTenantId UUID of the company or branch (tenant) making the request. Obtained from the Pronesoft portal after account setup.
99
+ * @throws {RequiredError}
100
+ * @memberof AssociatedCompaniesApiInterface
101
+ */
102
+ listAssociatedCompaniesRequestOpts(requestParameters: ListAssociatedCompaniesRequest): Promise<runtime.RequestOpts>;
103
+ /**
104
+ * Returns all companies and branches linked to the current tenant.
105
+ * @summary List associated companies / branches
106
+ * @param {string} xTenantId UUID of the company or branch (tenant) making the request. Obtained from the Pronesoft portal after account setup.
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ * @memberof AssociatedCompaniesApiInterface
110
+ */
111
+ listAssociatedCompaniesRaw(requestParameters: ListAssociatedCompaniesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssociatedCompany>>>;
112
+ /**
113
+ * Returns all companies and branches linked to the current tenant.
114
+ * List associated companies / branches
115
+ */
116
+ listAssociatedCompanies(requestParameters: ListAssociatedCompaniesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssociatedCompany>>;
117
+ }
118
+ /**
119
+ *
120
+ */
121
+ export declare class AssociatedCompaniesApi extends runtime.BaseAPI implements AssociatedCompaniesApiInterface {
122
+ /**
123
+ * Creates request options for createAssociatedCompany without sending the request
124
+ */
125
+ createAssociatedCompanyRequestOpts(requestParameters: CreateAssociatedCompanyRequest): Promise<runtime.RequestOpts>;
126
+ /**
127
+ * Registers a new branch or associated company under the current tenant account. Accepts multipart/form-data to support logo upload.
128
+ * Create new associated company
129
+ */
130
+ createAssociatedCompanyRaw(requestParameters: CreateAssociatedCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAssociatedCompany201Response>>;
131
+ /**
132
+ * Registers a new branch or associated company under the current tenant account. Accepts multipart/form-data to support logo upload.
133
+ * Create new associated company
134
+ */
135
+ createAssociatedCompany(requestParameters: CreateAssociatedCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAssociatedCompany201Response>;
136
+ /**
137
+ * Creates request options for listAssociatedCompanies without sending the request
138
+ */
139
+ listAssociatedCompaniesRequestOpts(requestParameters: ListAssociatedCompaniesRequest): Promise<runtime.RequestOpts>;
140
+ /**
141
+ * Returns all companies and branches linked to the current tenant.
142
+ * List associated companies / branches
143
+ */
144
+ listAssociatedCompaniesRaw(requestParameters: ListAssociatedCompaniesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssociatedCompany>>>;
145
+ /**
146
+ * Returns all companies and branches linked to the current tenant.
147
+ * List associated companies / branches
148
+ */
149
+ listAssociatedCompanies(requestParameters: ListAssociatedCompaniesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssociatedCompany>>;
150
+ }